/* Paper, ink and the drawing-board grid are shared across every view. */
:root {
  color-scheme:light;
  --paper:#f6f4eb;
  --sheet:#fbfaf4;
  --ink:#222e29;
  --muted:#56605a;
  --rule:#c8cabe;
  --green:#22564c;
  --copper:#a34d27;
  --head-h:78px;
  --gutter:clamp(24px,4.7vw,88px);
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --serif:Georgia,"Times New Roman",serif;
}
* { box-sizing:border-box }
[hidden] { display:none!important }
html { scrollbar-gutter:stable; scroll-padding-top:calc(var(--head-h) + 16px) }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.55 "Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased }
a { color:inherit; text-decoration:none }
button,input,select { font:inherit; color:inherit }
button { cursor:pointer }
img,svg,video { max-width:100% }
h1,h2,h3,p,figure { margin:0 }
h1,h2,h3 { text-wrap:balance; overflow-wrap:anywhere }
h1:focus,main:focus { outline:none }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[role="button"]:focus-visible { outline:3px solid #147864; outline-offset:4px }
::selection { color:#15342a; background:#c3ddc6 }
.sr-only,.skip:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.skip:focus { position:fixed; top:8px; left:10px; background:var(--ink); padding:12px; color:white; z-index:30 }
.site-header { height:var(--head-h); position:fixed; inset:0 0 auto; z-index:20; display:flex; justify-content:space-between; align-items:center; padding:0 var(--gutter); border-bottom:1px solid var(--rule); background:var(--paper) }
.brand { font:italic 600 clamp(21px,2vw,31px)/1 "Segoe Script","Bradley Hand","Brush Script MT",cursive; letter-spacing:-.07em; color:var(--copper); white-space:nowrap }
.nav,.actions { display:flex; align-items:center; gap:clamp(16px,2.7vw,44px) }
.nav a,.nav button { touch-action:manipulation }
.nav-link,.nav-contact { position:relative; display:inline-flex; align-items:center; gap:9px; min-height:44px; padding:5px 0; border:0; background:none; font-size:15px; font-weight:600; transition:color .17s }
.nav-link::after { content:""; position:absolute; left:0; right:0; bottom:4px; height:2px; background:var(--green); transform:scaleX(0); transform-origin:left; transition:transform .17s }
.nav-link:is([aria-current],.current,:hover,:focus-visible)::after { transform:scaleX(1) }
.nav-contact { border:1px solid #889189; border-radius:5px; padding:8px 16px; gap:18px }
.nav-contact:is(:hover,[aria-current]),.nav-link:hover { color:var(--green) }
.nav-contact:hover { background:#e9ede2 }
 .route-count { font:12px/1.4 var(--mono); color:var(--muted) }
main { padding-top:var(--head-h) }
.eyebrow,.menu-num,.stage-no { font:600 12px/1.45 var(--mono); letter-spacing:.09em; text-transform:uppercase }
.eyebrow { display:flex; align-items:center; gap:10px }
.eyebrow { color:var(--green) }
.ink-rule { width:26px; height:2px; background:var(--copper) }
.hero-copy h1,.intro-heading { font-size:clamp(60px,min(6.5vw,11vh),120px); font-weight:620; line-height:.98; letter-spacing:-.078em; margin:clamp(18px,3vh,34px) 0 }
.hero-copy h1 em,.intro-heading em { font-family:var(--serif); font-weight:400; color:var(--green); letter-spacing:-.07em }
.hero-intro { max-width:35ch; font-size:clamp(16px,1.24vw,21px); line-height:1.6; color:var(--muted) }
.actions { gap:24px; flex-wrap:wrap; margin-top:clamp(18px,3vh,35px) }
.button,.text-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; gap:12px; font-weight:650; font-size:15px }
.button { padding:11px 18px; border:1px solid var(--rule); border-radius:5px; background:var(--sheet); transition:background .17s,transform .17s }
.primary { color:#fbfbf3; background:var(--ink); border-color:var(--ink) }
.primary:hover { background:var(--green) }
.text-link { color:var(--green) }
.text-link:hover { text-decoration:underline; text-underline-offset:5px }
a span[aria-hidden=true]:last-child { transition:transform .17s }
a:hover>span[aria-hidden=true]:last-child { transform:translateX(3px) }
button:active,.button:active { translate:0 1px }
.no-script,.route-wrap { max-width:1490px; margin:0 auto; padding:0 var(--gutter) 48px }
.route-wrap { animation:enter .18s ease-out }
@keyframes enter { from {opacity:.55; transform:translateY(4px)} to {opacity:1; transform:none} }
.route-topline,.case-footer,.route-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:15px 0; border-bottom:1px solid var(--rule) }
.back-link { display:inline-flex; align-items:center; min-height:44px; gap:8px; font-weight:600; color:var(--green) }
.back-link:hover { text-decoration:underline }
.page-heading,.case-hero,.about-hero { padding:clamp(32px,5vw,78px) 0; border-bottom:1px solid var(--rule) }
.page-heading h1,.case-hero h1,.about-hero .overview-title { font:500 clamp(42px,5.8vw,92px)/1.02 var(--serif); letter-spacing:-.055em; margin:12px 0 }
.case-hero,.about-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.85fr); align-items:center; gap:clamp(32px,6vw,82px) }
.case-hero.text-only { display:block }
.case-hero h1 { max-width:19ch }
.case-summary,.about-intro,.page-heading p:last-child:not(.eyebrow) { color:var(--muted); font-size:clamp(17px,1.5vw,21px); max-width:55ch }
.case-visual,.m-thumb { position:relative; display:grid; place-items:center; aspect-ratio:16/10; border:1px solid var(--rule); background:#e8ece1; overflow:hidden }
.case-visual img,.m-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain }
.visual-center,.m-ph { color:var(--muted); display:grid; justify-items:center; gap:8px }
.ph-svg { width:66px; max-height:90px }
.has-image .visual-center,.has-image .m-ph { visibility:hidden }
img[data-managed-image] { opacity:0; transition:opacity .18s }
img[data-image-loaded=true] { opacity:1 }
.m-list { display:grid; gap:24px; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); list-style:none; padding:0; margin:28px 0 }
.m-list li { max-width:540px; min-width:0 }
.m-card { display:block; height:100%; border:1px solid var(--rule); background:var(--sheet); border-radius:5px; overflow:hidden; transition:border-color .17s,transform .17s,box-shadow .17s }
.m-card:hover { border-color:#91a38f; transform:translateY(-3px); box-shadow:0 5px 14px #1e31220d }
.m-thumb { border-width:0 0 1px }
.m-thumb.image-missing { display:none }
@media (min-width:701px) {
  .m-list>li:only-child { width:100%; max-width:850px }
  .m-list>li:only-child .m-card:has(.m-thumb:not(.image-missing)) { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center }
  .m-list>li:only-child .m-thumb { height:100%; min-height:170px; border-width:0 1px 0 0 }
}
.m-body { padding:20px }
.m-cat { font:12px var(--mono); color:var(--green); text-transform:uppercase; letter-spacing:.06em }
.m-body h2,.m-body h3 { margin:6px 0 8px; line-height:1.15; letter-spacing:-.035em; font-size:24px }
.m-body p,.empty-box p,.case-copy p,.case-copy li,.info-row p { color:var(--muted); overflow-wrap:anywhere }
.m-open { display:inline-flex; align-items:center; gap:9px; color:var(--green); font-weight:650; margin-top:14px }
.empty-box { max-width:720px; padding:clamp(25px,4vw,46px); margin:28px 0; border:1px solid var(--rule); border-left:3px solid var(--green); background:var(--sheet) }
.empty-box h2 { font-size:26px; letter-spacing:-.035em }
.empty-box .text-link { margin-top:12px }
.case-body { display:grid; grid-template-columns:minmax(180px,240px) minmax(0,1fr); gap:clamp(30px,6vw,90px); padding:40px 0 }
.case-index { position:sticky; top:calc(var(--head-h) + 22px); align-self:start; display:grid; gap:2px; max-height:calc(100dvh - var(--head-h) - 44px); overflow:auto }
.case-index a { border-left:2px solid var(--rule); padding:7px 12px; color:var(--muted); font-size:15px }
.case-index a[aria-current] { border-color:var(--green); color:var(--green); font-weight:650 }
.case-index .eyebrow { margin-bottom:10px }
.case-jump { display:none }
.case-section { padding-bottom:32px; margin-bottom:28px; border-bottom:1px solid var(--rule); max-width:72ch }
.case-section h2,.info-row h2 { font:500 clamp(27px,3.1vw,44px)/1.14 var(--serif); letter-spacing:-.045em }
.case-section p,.case-section ul,.prototype-card,.about-intro p+p { margin-top:15px }
.case-section p,.case-section ul { line-height:1.75 }
.case-footer,.route-footer { border-bottom:0; border-top:1px solid var(--rule); padding:20px 0 }
.figure-carousel { margin:22px 0; border:1px solid var(--rule); background:#ebece3 }
.figure-carousel-stage { position:relative; aspect-ratio:16/11 }
.gallery-slide { position:absolute; inset:0; display:flex; flex-direction:column }
.gallery-slide>.expand-photo,.gallery-slide video,.gallery-slide>.gallery-fallback { flex:1; min-height:0 }
.gallery-slide img,.gallery-slide video { width:100%; height:100%; object-fit:contain }
.gallery-slide video { background:var(--ink) }
.gallery-slide figcaption { font-size:14px; padding:8px 12px; overflow:auto; max-height:35%; background:var(--sheet) }
.gallery-fallback { display:grid; align-content:center; justify-items:center; gap:8px; padding:16px; height:100%; text-align:center }
.gallery-controls { display:flex; justify-content:space-between; align-items:center; padding:4px 10px; border-top:1px solid var(--rule) }
.gallery-step { min-width:44px; min-height:44px; border:0; background:transparent; font-size:20px }
.gallery-count { font:13px var(--mono) }
.gallery-step { border-radius:4px; transition:background .16s,color .16s }
.gallery-step:is(:hover,:focus-visible),.case-index a:hover { color:var(--green); background:#e1e7db }
.prototype-list { list-style:none; padding:0 }
.prototype-card { border-left:2px solid #849a83; padding-left:18px }
.info-row { display:grid; grid-template-columns:minmax(160px,.65fr) minmax(0,1fr); gap:22px; padding:32px 0; border-bottom:1px solid var(--rule) }
.info-row ul { margin:0; padding-left:21px }
.info-row li+li { margin-top:10px }
.info-row small { display:block; color:var(--muted); font:12px var(--mono) }
.contact-item { color:var(--green); display:block; text-decoration:underline; text-underline-offset:4px; padding:10px 0; overflow-wrap:anywhere }
#cursorHalo { position:fixed; left:0; top:0; width:26px; height:26px; border-radius:50%; background:#58625912; border:1px solid #58625913; z-index:25; pointer-events:none; opacity:0; transition:opacity .16s; will-change:transform }
.data-banner { position:fixed; z-index:29; left:12px; bottom:12px; max-width:440px; padding:18px; background:var(--sheet); border:1px solid var(--copper); box-shadow:0 6px 24px #202b2219 }
.data-banner button { float:right; border:0; background:transparent; font-size:20px; min-width:44px; min-height:44px }
@media (max-width:700px) {
  :root { --gutter:20px; --head-h:104px }
  .site-header { align-content:center; flex-wrap:wrap; gap:0; padding-top:7px; padding-bottom:3px }
  .brand { width:100%; font-size:24px }
  .nav { width:100%; justify-content:space-between; gap:12px }
  .nav-contact { border:0; padding:0; gap:5px }
  .case-hero,.about-hero,.info-row,.case-body { grid-template-columns:1fr }
  .case-hero,.about-hero { padding:29px 0 }
  .info-row { gap:14px }
  .case-index { display:none }
  .case-jump { display:grid; gap:5px }
  .case-jump select { width:100%; max-width:100%; min-height:46px; background:var(--sheet); border:1px solid var(--rule); border-radius:4px; padding:4px 8px }
  .case-body { gap:26px; padding:24px 0 }
  .gallery-slide figcaption { font-size:13px }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
  #cursorHalo { display:none }
}
@media (hover:none),(pointer:coarse) { #cursorHalo { display:none } }

.studio-home { max-width:1660px; margin:auto; min-height:calc(100svh - var(--head-h)); padding:clamp(30px,5vh,76px) var(--gutter); display:grid; align-items:center; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); gap:clamp(30px,5vw,95px) }
.studio-home .hero-copy h1 { font-size:clamp(54px,6.4vw,110px) }
#modelStage { background-image:radial-gradient(#6575653b .7px,transparent .8px); background-size:20px 20px }
#modelArrows { display:flex; align-items:center; justify-content:space-between; gap:12px }
#modelHint,#pauseModel,#modelCounter { font:12px/1.5 var(--mono); color:var(--muted) }
#modelStage { position:relative; height:clamp(300px,53vh,690px); overflow:hidden; touch-action:pan-y; cursor:grab; outline-offset:3px }
#modelStage:focus-visible { outline:2px solid var(--green) }
#modelStage:active { cursor:grabbing }
#modelCanvas,#modelFallback { display:block; position:absolute; inset:0; width:100%; height:100% }
#modelFallback { display:grid; place-content:center; justify-items:center; padding:12px; text-align:center; color:var(--muted) }
#fallbackImage { max-height:32vh; max-width:100%; object-fit:contain }
#modelArrows { gap:6px }
#modelArrows button,#pauseModel { background:transparent; border:1px solid var(--rule); border-radius:50%; width:44px; height:44px; font-size:21px }
#pauseModel { width:auto; border:0; font:13px var(--mono) }
#modelArrows button { width:auto; border-radius:4px; padding-inline:10px; font:14px "Segoe UI",sans-serif; white-space:nowrap }
#modelArrows button:hover,#pauseModel:hover { background:#e8ecdf; color:var(--green) }
#cursorHalo { background:radial-gradient(circle,#777b7617,transparent 72%); border:0 }
@media(max-width:850px) {
 .studio-home { grid-template-columns:1fr; align-content:start; gap:28px; padding-block:34px }
 .studio-home .hero-copy h1 { margin-block:16px; font-size:clamp(54px,10vw,80px) }
 #modelStage { height:clamp(240px,78vw,500px) }
}


/* The model title and case-study link introduce the actual drawing. */
.brand { font-size:clamp(22px,1.8vw,28px); letter-spacing:-.055em }
.studio-home { gap:clamp(30px,4vw,72px); padding-block:clamp(22px,4vh,48px); grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) }
#showcase { min-width:0 }
.model-heading { border-top:1px solid var(--rule); padding:13px 0 15px }
.model-meta,.model-title-row,.inspection-bar { display:flex; align-items:center; justify-content:space-between; gap:12px }
.model-meta { font:600 12px/1.5 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--green) }
#modelCounter { font-variant-numeric:tabular-nums }
.model-title-row { margin:5px 0; flex-wrap:wrap }
.model-title-row h2 { font:500 clamp(31px,3.5vw,58px)/1.07 var(--serif); letter-spacing:-.048em; max-width:100% }
#modelLink { text-decoration:underline; text-underline-offset:5px }
#modelSummary { max-width:62ch; color:var(--muted); overflow-wrap:anywhere }
#modelStage { height:clamp(220px,48svh,560px) }
.inspection-bar { flex-wrap:wrap; border-top:1px solid var(--rule); padding-top:7px; gap:6px 12px }
#modelHint { margin-left:auto; font:13px/1.4 "Segoe UI",sans-serif }
#pauseModel { color:var(--green); font:600 14px/1.3 "Segoe UI",sans-serif; padding-inline:8px }
#modelArrows button { border-radius:3px; padding-inline:11px }
.collection,.about-page,.contact-page { padding-top:clamp(32px,6vw,88px) }
.collection-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:18px; padding-bottom:22px; border-bottom:1px solid var(--rule) }
.collection-heading .overview-title,.contact-layout .overview-title { font:500 clamp(45px,6vw,88px)/1.04 var(--serif); letter-spacing:-.055em }
.project-filter { display:grid; gap:4px; font-size:14px; color:var(--green); max-width:100% }
.project-filter input { min-width:0; padding:10px 12px; min-height:44px; border:1px solid var(--rule); border-radius:3px; background:var(--sheet) }
.collection-count { padding-block:13px; color:var(--muted); font:13px var(--mono) }
.collection .m-list { display:block; margin:0 }
.collection .m-list>li { max-width:none; border-bottom:1px solid var(--rule) }
.collection .m-card,.collection .m-list>li:only-child .m-card { display:flex; align-items:center; gap:clamp(18px,3vw,50px); padding:20px 4px; border:0; background:transparent; box-shadow:none; border-radius:0; transform:none }
.collection .m-card:hover { background:#e9ece270 }
.collection .m-body { padding:0; flex:1; min-width:0 }
.collection .m-body h3 { font:500 clamp(26px,3vw,44px)/1.12 var(--serif); letter-spacing:-.045em }
.collection .m-thumb,.collection .m-list>li:only-child .m-thumb { width:clamp(90px,20vw,230px); min-height:0; height:auto; border:0 }
.empty-projects { padding-block:28px }
.empty-projects h2 { font-size:20px; font-weight:550 }
.about-page .about-hero { display:block; padding-top:0 }
.about-page .about-stamp { width:min(100%,205px); background:transparent }
.about-page .about-intro { max-width:54ch }
.contact-layout { display:grid; grid-template-columns:minmax(200px,.85fr) minmax(0,1fr); gap:32px; padding-bottom:32px; align-items:start }
.contact-layout .overview-title { font-size:clamp(38px,4.3vw,65px); margin-top:12px }
.contact-methods { border-top:1px solid var(--rule); padding-top:12px; color:var(--muted) }
.contact-methods .contact-item { min-height:44px; border-bottom:1px solid var(--rule) }
@media(max-width:850px) {
 .studio-home { grid-template-columns:1fr; gap:24px }
 #modelStage { height:clamp(225px,65vw,410px) }
}
@media(max-width:600px) {
 .contact-layout { grid-template-columns:1fr; gap:20px }
 .about-page .about-hero { padding-top:17px }
 .about-page .about-stamp { width:64px; position:absolute; right:0; top:-12px }
 .about-page .about-hero .overview-title { font-size:clamp(42px,10vw,60px); margin-top:22px }
 #modelHint { width:100%; order:3; margin:0 }
 .inspection-bar { align-items:center }
 .collection .m-card { align-items:start }
}

body:has(noscript .no-script) > :is(header, main) { display: none; }

.expand-photo { border:0; background:transparent; padding:0; cursor:zoom-in }
#photoPreview { border:1px solid var(--rule); color:var(--ink); background:var(--sheet); padding:12px; max-width:95vw; max-height:95vh }
#photoPreview::backdrop { background:rgba(25,36,31,.75) }
#photoPreview img { display:block; max-width:100%; max-height:79vh; margin:auto; object-fit:contain }
#closePhoto { display:block; margin:0 0 8px auto; min-height:44px; padding:0 14px }

.project-star { color:var(--copper); font-size:.65em; vertical-align:.12em; margin-inline-end:.4em }

#overview-projects,#overview-about,#overview-contact { border-top:1px solid var(--rule); padding-block:clamp(44px,7vw,100px) }
#overview-about { background:var(--sheet) }
#overview-contact .route-footer { margin-top:32px }
.case-section h3 { margin:26px 0 8px; font-size:1.15rem }
.case-section,.case-copy { min-width:0; overflow-wrap:anywhere }
