/* Public sketchbook: faint component studies over fixed paper grain. */
html:has(body.paper-theme){color-scheme:light;background:#f7f5ef;scrollbar-color:#938a7a #f7f5ef;scroll-behavior:auto}
body.paper-theme{--muted:#57534b;--accent:#423d34;--studio-line:#cfc8bb;--studio-soft:#57534b;color:#211f1b;background:#f7f5ef}
body.paper-theme::before{
 content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
 opacity:1;mask-image:none;-webkit-mask-image:none;
 background:url('paper-component-studies.svg') center top / 100% 100% no-repeat,url('paper-fibre.svg') 0 0/112px 112px repeat;
}
body.paper-theme::after{content:none}
body.paper-theme>header{background:#faf8f2;border-bottom:1px solid #d4cec2;box-shadow:0 2px 8px #241e140a;backdrop-filter:none;-webkit-backdrop-filter:none}
.paper-theme :is(nav a,.header-basket,.page-breadcrumb a,.text-link,.viewer-controls a,.footer-top){color:#353028}
.paper-theme nav a[aria-current="page"]:not(.nav-cta){color:#211f1b}
.paper-theme nav a:not(.nav-cta)::after{background:#4b4033}
.paper-theme .header-basket,.paper-theme .basket-count{background:#eee9de;border-color:#d4cabb;color:#28241f}
.paper-theme :is(h1,h2,h3,.section-page .page-title,.hero .hero-intro>.hero-tagline,.hero .featured figcaption>span:first-child,.viewer-top h2,.basket-summary h2,.steps h3,summary,details[open] summary){color:#26221d}
.paper-theme :is(p,p.fine,.eyebrow,.path-status,.portfolio-notice,.page-breadcrumb,.artwork-kind,.artwork-price dt,.artwork-price dd,.artwork-page .artwork-availability,.footer-trademark,.builder-credit,footer .builder-credit,.hero .featured figcaption>span:last-child,.hero .hero-masthead>.masthead-introduction,.hero-slideshow-controls,label,summary::marker){color:#575148}
.paper-theme .hero-masthead::before,.paper-theme .featured::before,.paper-theme .gallery figure::before{content:none}
.paper-theme :is(.studio-paths>a,.commission-panel,.basket-summary,.enquiry-form,.portrait-slot,.shop-product,.basket-item){background:#fffdf7;border-color:#d7cfc0;box-shadow:none}
.paper-theme.artwork-page.gallery-page .gallery>figure{background:#fffdf7;border-color:#d7cfc0;box-shadow:none}
.paper-theme.artwork-page.gallery-page .gallery .art-frame{background:#ede9df}
.paper-theme :is(.artwork-view,.viewer-top button,.viewer-controls button,.hero-slide-arrow,.hero-slideshow-controls>.hero-slide-toggle){background:#eee9df;color:#29251f;border-color:#bcb2a2}
.paper-theme :is(.hero-slide-toggle)::before{color:inherit}
.paper-theme .hero-slide-picker button{background:#e5ded0;opacity:.76}
.paper-theme .hero-slide-picker button[aria-pressed=true]{border-color:#4b4033;opacity:1}
.paper-theme :is(.button,.skip-link){background:#292620;color:#fffdf8;border-color:#292620;box-shadow:none}
.paper-theme :is(.button,.skip-link):hover{background:#494035;color:#fffdf8;box-shadow:none}
.paper-theme :is(input,select,textarea,#order-request-form input,#order-request-form textarea){background:#fffefa;color:#24211d;border-color:#bdb3a3}
.paper-theme #enquire .email-contact-address{color:#3c342a}
.paper-theme .portrait-slot .monogram{color:#5f5344}
.paper-theme .portrait-slot p{color:#575148}
.paper-theme dialog{background:#faf7ef;color:#28231d;border-color:#c4b8a5}
.paper-theme dialog::backdrop{background:#211e1ab8;backdrop-filter:none}
.paper-theme :focus-visible{outline-color:#493a2b}
.paper-theme .hero-slide-progress{background:#cfc7b7}
.paper-theme .hero-slide-progress>span{background:#615749}
.paper-theme .hero-slide .paper-crop{box-shadow:0 5px 18px #2d261b1c}
.paper-theme .hero-carousel:not(.is-manual) .hero-slide{transition-duration:.65s}
.paper-theme :is(.studio-paths>a,.gallery figure){transition:none}
@media(max-width:760px){body.paper-theme::before{background-size:100% 100%,112px 112px;opacity:.64}}
@media(prefers-reduced-motion:reduce){.paper-theme .hero-carousel:not(.is-manual) .hero-slide{transition:none}}

/* Fine graphite grain on the mounting edges, without tinting the drawings. */
.paper-theme.artwork-page.gallery-page .gallery>figure,
.paper-theme :is(.studio-paths>a,.commission-panel,.basket-summary,.enquiry-form){
 background-image:url('paper-fibre.svg');background-size:112px 112px;
 border-color:#cbc2b2;
 box-shadow:inset 0 0 0 2px #88785e0d;
}
.paper-theme .hero-slide .paper-crop{outline:1px solid #8e817259;outline-offset:4px}

/* A short paper reveal for same-site page navigation. */
@media (prefers-reduced-motion:no-preference){
 @view-transition{navigation:auto}
 ::view-transition-old(root){animation:page-paper-out .18s ease-in both}
 ::view-transition-new(root){animation:page-paper-in .26s ease-out both}
 @keyframes page-paper-out{to{opacity:0}}
 @keyframes page-paper-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
}
.paper-theme .portfolio-feature{
 margin:24px auto 34px; padding:clamp(20px,4vw,48px); max-width:1120px;
 border:1px solid #d7cfc0;border-radius:14px;background:#fffdf7 url('paper-fibre.svg') 0 0/112px 112px;
}
.portfolio-feature h2{margin:.3em 0}
.portfolio-feature p{max-width:62ch;margin:0 0 22px}
.detail-pair{display:grid;grid-template-columns:1.1fr 1fr;gap:18px}
.detail-pair figure{min-width:0;margin:0}
.detail-pair :is(.art-frame,.detail-engine){border:1px solid #d7cfc0;border-radius:6px;padding:0;background:#ede9df;overflow:hidden}
.detail-pair figcaption{padding:9px 0 0;font-size:.85rem;color:#575148}
.detail-engine{position:relative;aspect-ratio:1.56}
.detail-engine img{position:absolute;width:221%;max-width:none;height:auto;left:-4%;top:-23%}
.commission-journey ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 28px;margin:20px 0;padding-left:1.35rem;line-height:1.55}
.commission-journey strong{display:block;color:#202628}
.paper-theme .display-examples{margin:20px 0 28px}
.paper-theme .display-examples .room figcaption{color:#575148}
@media(max-width:650px){.detail-pair,.commission-journey ol{grid-template-columns:1fr}}
.paper-theme .display-examples .room figcaption :is(strong,span){color:#575148}

.paper-theme .closer-gallery{padding:12px 0 22px}
.paper-theme .closer-gallery .featured{--hero-art-height:min(560px,60svh,calc(62vw / var(--active-ratio)))}
@media(max-width:760px){.paper-theme .closer-gallery .featured{--hero-art-height:min(420px,55svh,calc(72vw / var(--active-ratio)))}}



.reel-opening{width:min(100%,1000px);margin-inline:auto}
.intro-reel-track{pointer-events:none}
.intro-reel{margin:0}
.intro-reel video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.reel-content{position:relative;pointer-events:none}
.reel-content :is(a,button,.portfolio-feature){pointer-events:auto}
.reel-content .hero-masthead,.reel-content .hero-intro{background:#f7f5ef}
.reel-content .portfolio-feature{margin-bottom:0}
.reel-scene{margin-bottom:34px}


@media(prefers-reduced-motion:no-preference){
 .home-page .reel-opening{animation:reel-arrival .85s .18s cubic-bezier(.2,.7,.3,1) both}
 @keyframes reel-arrival{from{opacity:0}to{opacity:1}}
}

@media(max-width:760px){.reel-opening{width:100vw;width:100dvw;margin-inline:calc((100% - 100vw)/2);margin-inline:calc((100% - 100dvw)/2)}}
.commission-pen{margin:16px 0 22px;width:min(100%,260px)}
.commission-pen video{pointer-events:none;display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:5px;background:#ede9df}
.commission-pen figcaption{padding-top:8px;color:#575148;font-size:.8rem}

@media(prefers-reduced-motion:no-preference){
 @supports (animation-timeline:view()){
  .intro-reel video,.commission-pen video{
   animation:video-scroll-away linear both;
   animation-timeline:view(block);
   animation-range:exit 0% exit 85%;
  }
  @keyframes video-scroll-away{from{opacity:1}to{opacity:0}}
 }
}

/* Keep the widescreen master for desktop and frame it in portrait on phones. */
.reel-opening{width:min(100%,1280px)}
@media(max-width:760px){
 .reel-opening{width:100dvw}
 .intro-reel video{height:min(80svh,133.333dvw);aspect-ratio:3/4;object-fit:cover;object-position:center}
}

/* The reel's own section bounds the transparent sticky wordmark. */
.home-page .reel-hero > .hero-masthead{background:none;margin-top:-16px}
@media(prefers-reduced-motion:no-preference){
 .home-page .reel-hero > .motoring-title{
  position:sticky;top:var(--wordmark-top,68px);z-index:1;pointer-events:none;background:none;
 }
 .home-page .reel-hero > .reel-opening{position:relative;z-index:2}
 .home-page .reel-hero > .motoring-title picture{filter:drop-shadow(0 1px 2px #fffdf7a6)}
}

/* Feather only the perimeter, leaving the detail in the middle sharp. */
.home-page .reel-opening{width:min(100%,1120px)}
.home-page .intro-reel video{
 mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent),linear-gradient(transparent,#000 4%,#000 96%,transparent);
 mask-composite:intersect;
}
@media(max-width:760px){
 .home-page .reel-opening{width:min(100%,92dvw);margin-inline:auto}
 .home-page .intro-reel video{height:auto;max-height:72svh}
}

@media(prefers-reduced-motion:no-preference){
 .home-page .reel-hero > .motoring-title{animation:none}
 .home-page .reel-hero > .motoring-title picture{animation:wordmark-write 1.4s .12s cubic-bezier(.25,.55,.35,1) both}
 .home-page .reel-hero > .motoring-title.wordmark-hidden picture{animation:wordmark-erase .7s cubic-bezier(.25,.55,.35,1) both}
 @keyframes wordmark-write{from{clip-path:inset(-4px 100% -4px 0)}to{clip-path:inset(-4px -4px -4px -4px)}}
 @keyframes wordmark-erase{from{clip-path:inset(-4px -4px -4px -4px)}to{clip-path:inset(-4px 0 -4px 100%);visibility:hidden}}
}

.commission-request{display:grid;gap:clamp(30px,4vw,42px);min-width:0}
.commission-brief{width:min(100%,740px);margin:clamp(30px,4vw,52px) auto 0;display:grid;gap:12px;scroll-margin-top:100px}
.commission-brief :is(h2,p){margin:0}
.commission-brief .brief-photos{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.brief-photos li{font-size:.75rem;overflow-wrap:anywhere}
.brief-photos img{display:block;width:100%;height:76px;object-fit:contain;background:#eee9de;border-radius:5px}
.commission-brief .brief-mail{justify-self:start;border:0;background:none;color:#423d34;text-decoration:underline;cursor:pointer;padding:6px 0}

@media(prefers-reduced-motion:no-preference){
 /* The paper behind the feathered video also occludes the sticky title. */
 .home-page .reel-hero > .reel-opening::before{
  content:"";position:absolute;inset:0 calc((100% - 100vw)/2);z-index:-1;
  background:#f7f5ef;pointer-events:none;
 }
 .home-page .reel-hero > .reel-opening{isolation:isolate}
 .home-page .reel-hero{overflow-x:clip;overflow-y:visible}
}

/* Keep the full opening artwork in frame on phones. */
@media(max-width:760px){.home-page .intro-reel video{aspect-ratio:16/9;object-fit:contain}}
