/* EB Garamond: SIL OFL 1.1. */
@font-face{font-family:"EB Garamond";src:url("fonts/EBGaramond-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
body{font-family:"EB Garamond",Garamond,serif;font-size:18px;line-height:1.6}
/* Explicit selectors keep the cascade consistent in mobile Safari. */
body,body *{font-family:"EB Garamond",Garamond,serif!important}
body h1,body h1 *{font-family:"EB Garamond",Garamond,serif!important;text-transform:none;font-weight:400}
body .brand,body .brand *{font-family:Michroma,Arial,Helvetica,sans-serif!important}
.page-heading h1{font-size:clamp(43px,5.5vw,76px);line-height:1.15;letter-spacing:.015em}
.menu-ready .menu-intro,.stage-copy .eyebrow,.resume-role,.about-role{text-transform:none}
.credit p,.resume-intro>p+p,.skills dd{font-size:18px;line-height:1.55}
.eyebrow,.page-heading .eyebrow{font-size:14px;line-height:1.55;letter-spacing:.09em}
.stage-copy>p:last-of-type{font-size:17px;line-height:1.6;letter-spacing:.045em}
.site-footer>span,.menu-ready .menu-footnote{font-size:15px;line-height:1.6;letter-spacing:.035em}
.menu-toggle,.menu-close,.intro-controls button{font-size:15px;letter-spacing:.04em}
.menu-ready .menu-intro,.menu-ready .menu-intro p+p{font-size:15px;line-height:1.65;letter-spacing:.04em}
.menu-ready .menu-index,.group-number,.count,.credit-head{font-size:14px;letter-spacing:.04em}
.contact-details{font-size:16px;line-height:1.65;letter-spacing:.025em}
.measurements dt,.skills dt{font-size:17px;letter-spacing:.025em}

body h1,body h1 *{text-transform:uppercase}
.skills dt,.measurements dt{text-transform:none}
/* Make the literal Menu/Close control easier to read without resizing links. */
.menu-ready .menu-toggle,.menu-ready .menu-close{font-size:20px;min-height:48px}
/* Compact hero actions keep the label and arrow together. */
.stage-actions a{flex:0 0 auto;justify-content:flex-start;min-width:0;gap:20px;padding-inline:16px}
@media(max-width:600px){
 .menu-ready .menu-index{display:none}
 .menu-ready .site-header .menu-panel nav a{grid-template-columns:1fr 18px}
 .stage-actions a{gap:16px;padding-inline:14px}
}
.menu-instagram{display:none}
@media(max-width:600px){
 .menu-ready .menu-footnote .menu-instagram{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:none;color:var(--ink)}
 .menu-instagram svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
}
/* Slightly quieter link labels; the Menu and Close controls remain 20px. */
.menu-ready .site-header .menu-panel nav a{font-size:clamp(32px,4vw,58px);min-height:48px}
@media(max-width:600px){.menu-ready .site-header .menu-panel nav a{font-size:clamp(28px,8vw,44px)}}
@media(max-height:600px) and (min-width:601px){.menu-ready .site-header .menu-panel nav a{font-size:clamp(26px,5.5vh,38px)}}
@media(max-width:600px),(hover:none) and (pointer:coarse){.menu-ready .menu-panel .menu-arrow{opacity:1;transform:none}}

.page-heading h1:first-child{margin-top:0}
/* Identity typography is independent of editorial page headings. */
body .blade-name h1,body .blade-name h1 *,body .stage-copy h1,body .stage-copy h1 *{font-family:Michroma,Arial,Helvetica,sans-serif!important;font-weight:400}

.menu-ready .menu-footnote{border-top:0}
/* Current page: one quiet dot, independent of hover or keyboard focus. */
.menu-ready .menu-panel .menu-index,.menu-ready .menu-panel .menu-arrow{display:none}
.menu-ready .site-header .menu-panel nav a{grid-template-columns:8px 1fr;gap:14px}
.menu-ready .site-header .menu-panel nav a::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:transparent}
.menu-ready .site-header .menu-panel nav a[aria-current="page"]::before{background:currentColor}

/* Compact Resume introduction, scoped to the supplied mobile reference. */
.resume-intro .resume-role{font-size:23px}
body[data-page="resume"] .page-heading p.resume-meta{font-size:clamp(13px,3.6vw,16px);line-height:1.55;letter-spacing:0;white-space:nowrap}
.resume-meta span{padding-inline:3px}

/* Editorial page titles and supporting headings share EB Garamond. */
.skills h2,.measurements h2{font-size:18px;line-height:1.5;letter-spacing:.08em;text-transform:uppercase}
.credits-title{text-transform:uppercase;letter-spacing:.025em}

/* Credit titles lead each entry; contributions remain supporting text. */
.credit h3{font-size:22px;font-weight:600;line-height:1.3;margin-bottom:6px}
.credit p{font-size:17px;line-height:1.55}

body[data-page="resume"] .page-heading h1{margin-bottom:12px}

/* Header balance: enlarge only the wordmark text, never the supplied symbol. */
.menu-ready .site-header .brand{font-size:13px}
.menu-ready .menu-toggle,.menu-ready .menu-close{font-size:18px}
body[data-page="resume"] .credits{padding-left:0}
@media(max-width:600px){.menu-ready .site-header .brand{font-size:12px}}

/* Button labels retain authored Title Case without affecting headings. */
button,button *,a.text-link,.stage-actions a{text-transform:none!important}
/* Slightly quieter controls beside the preserved Michroma wordmark. */
.menu-ready .menu-toggle,.menu-ready .menu-close{font-size:16px;min-height:48px}
/* Intro Skip matches the persistent text-only passage Skip treatment. */
.intro-controls #skip{min-height:48px;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1px}
.intro-controls #skip:focus-visible{outline:2px solid currentColor;outline-offset:5px}

/* Desktop menu art and social link, matching the annotated left column. */
.menu-watermark,.menu-instagram-desktop{display:none}
@media(min-width:601px){
 .menu-ready .menu-watermark{display:block;width:min(100%,360px);height:clamp(140px,28vh,320px);object-fit:contain;object-position:left center;opacity:.2;pointer-events:none;margin:0 0 24px}
 .menu-ready .menu-role-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
 .menu-ready .menu-instagram-desktop{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;color:var(--ink)}
 .menu-instagram-desktop svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
 .menu-ready .menu-intro p+p{margin-top:12px}
}
@media(min-width:601px) and (max-height:600px){.menu-ready .menu-watermark{height:90px;margin-bottom:12px}}

@media(max-width:600px){.menu-ready .menu-footnote>span:first-child{display:block}}

/* Align desktop section rules after moving metadata above both columns. */
@media(min-width:601px){body[data-page="resume"] .skills{margin-top:0}}
.credit-group summary .toggle{margin-left:auto}
@media(min-width:601px){body[data-page="resume"] .credit-head{padding-left:0;text-align:left}}
@media(min-width:901px){body[data-page="resume"] .credit{align-items:center}body[data-page="resume"] .credit h3{margin-bottom:0}}
/* Desktop controls and identity scale with the wider composition. */
@media(min-width:901px){
 .menu-ready .site-header .brand{font-size:18px;gap:18px}
 .site-header .brand-mark-box{width:52px;height:52px}
 .site-header .brand-mark-box .brand-mark{width:29px;height:40px}
 .text-link{display:inline-flex;align-items:center;gap:24px;font-size:20px;line-height:1.5;letter-spacing:.04em;min-height:52px;padding:10px 0}
 .text-link span{margin-left:0}
 .stage-actions a{font-size:20px;line-height:1.5;letter-spacing:.04em;min-height:60px;padding:14px 24px;gap:24px}
}

/* Neutral menu rules; keep page accents and mobile link scale intact. */
.menu-ready .menu-panel-head,.menu-ready .site-header .menu-panel nav a{border-bottom-color:rgba(255,255,255,.18)}
@media(min-width:601px){.menu-ready .site-header .menu-panel nav a{font-size:clamp(28px,3.2vw,46px);letter-spacing:.02em}}
@media(min-width:601px) and (max-height:600px){.menu-ready .site-header .menu-panel nav a{font-size:clamp(25px,4.8vh,34px)}}
/* One outer height keeps the playback circle aligned with both hero links. */
.stage-actions{--hero-control-height:52px}
.stage-actions a{height:var(--hero-control-height);min-height:var(--hero-control-height)}
.stage-actions .stage-playback{width:var(--hero-control-height);height:var(--hero-control-height);min-width:var(--hero-control-height);min-height:var(--hero-control-height)}
@media(max-height:500px) and (orientation:landscape){.stage-actions{--hero-control-height:44px}}
@media(min-width:901px){.stage-actions{--hero-control-height:60px}}

/* The intro meets Safari's neutral #222 theme area without the hero's green shade. */
html{background:#222222}
body[data-page="home"].intro-active .site-header,body[data-page="home"].intro-leaving .site-header{background:transparent}

/* Safari must not select the filtered image layers during an interactive cut. */
#scene,#scene *{-webkit-user-select:none;user-select:none}
#bamboo-box img{-webkit-user-drag:none}

/* One neutral intro action row, with Skip available throughout the cut. */
#intro .intro-controls{justify-content:center;gap:32px;bottom:max(22px,6svh);color:#e4e1d8}
#intro .intro-controls #watch,#intro .intro-controls #skip{margin:0;padding:8px 4px;min-height:48px;font-size:18px;line-height:1.5;color:#e4e1d8;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.22em;text-decoration-thickness:1px}
#intro .intro-controls button:focus-visible{outline:2px solid currentColor;outline-offset:5px}
#intro #instruction{color:#e4e1d8}
#intro #prompt{bottom:calc(max(22px,6svh) + 64px)}

/* Shared neutral canvas reaches browser chrome on every page and intro state. */
html,body[data-page]{background:#2c2c2c;--ink:#e4e4e4;--muted:#b4b4b4}
body[data-page="home"] .site-header{background:linear-gradient(to bottom,#2c2c2c 0%,rgba(44,44,44,.85) 20%,rgba(44,44,44,0) 100%)}
body[data-page="home"].intro-active #intro,#intro #blade-scene,#intro .air{background:#2c2c2c}
#intro .intro-controls,#intro .intro-controls #watch,#intro .intro-controls #skip,#intro #instruction{color:#e4e4e4}
.menu-ready .site-header .menu-panel nav a{font-size:28px;line-height:1.2;letter-spacing:.02em;padding:20px 0;min-height:48px}
.menu-ready .menu-instagram-desktop{gap:10px;font-size:17px;letter-spacing:0;text-transform:none;white-space:nowrap}
.menu-ready .menu-footnote{justify-content:flex-end}
@media(min-width:601px){.menu-ready .menu-footnote{display:none}}
@media(max-width:600px){.menu-ready .site-header .menu-panel nav a{font-size:22px;padding:16px 0}}
@media(max-height:600px){.menu-ready .site-header .menu-panel nav a{padding:10px 0}.menu-ready .menu-content{padding-top:20px;padding-bottom:20px;gap:18px}}

/* Quiet structural separators; functional controls retain their stronger boundaries. */
@media screen{
 html,body[data-page]{--line:rgba(255,255,255,.18)}
 .site-header,.site-footer,.menu-panel-head,.menu-panel nav a,.credit-group,.credit,.skills h2,.measurements h2,.measurements dl div,.next-page,.clip-grid{border-color:rgba(255,255,255,.18)}
 .reel-placeholder,.text-link,.email-link,.stage-actions a,.stage-actions .stage-playback{border-color:rgba(255,255,255,.5)}
 .contact-form input,.contact-form textarea,.send-preview{border-color:rgba(255,255,255,.5)}
}
@media(max-width:600px){.menu-ready .menu-intro{display:none}}
.garden-passage-controls,.garden-passage-skip{color:#e4e4e4}
@media screen{body .contact-form input,body .contact-form textarea,body .send-preview{border-color:rgba(255,255,255,.5)}}
/* Oversized decorative mark bleeds through the menu's left half only. */
@media(min-width:601px){
 .menu-ready .menu-watermark{position:absolute;z-index:-1;left:0;top:-1.5dvh;transform:none;width:min(46vw,73.4dvh);max-width:none;height:auto;object-fit:contain;object-position:center;opacity:.04;margin:0}
 .menu-ready .menu-intro{align-self:end;padding-bottom:0}
}
@media print{body[data-page="resume"]{background:white;--ink:#000;--muted:#444;--line:#bbb}}
/* Thirty percent more breathing room; overflow remains scrollable on short screens. */
.menu-ready .site-header .menu-panel nav a{padding-block:26px}
@media(max-width:600px){.menu-ready .site-header .menu-panel nav a{padding-block:20.8px}}

@media(max-width:600px){
 .menu-ready .menu-footnote{justify-content:flex-start}
 .menu-ready .menu-footnote .menu-instagram{width:auto;gap:10px;font-size:17px;letter-spacing:0;text-transform:none;white-space:nowrap}
}

.menu-backdrop{display:none}
@media(max-width:600px){
 .menu-open .menu-backdrop{display:block;position:fixed;inset:0;z-index:79;background:rgba(0,0,0,.55)}
 .menu-ready .menu-panel{inset:0 0 auto;height:auto;min-height:0;max-height:calc(100dvh - 16px);overflow-y:auto}
 .menu-ready .menu-content{flex:none;margin:0;padding:20px 0 12px;gap:0}
 .menu-ready .menu-footnote{padding:12px 0 24px}
}

/* Mobile dividers keep their full row width in every interaction state. */
@media(max-width:600px){
 .menu-ready .site-header .menu-panel nav a,.menu-ready .site-header .menu-panel nav a:active,.menu-ready .site-header .menu-panel nav a:focus,.menu-ready .site-header .menu-panel nav a[aria-current]{width:100%;margin-inline:0;transform:none!important;box-sizing:border-box}
 .menu-ready .site-header .menu-panel nav a::after{display:none!important;content:none!important;transform:none!important}
}
@media(min-width:601px){.menu-ready .site-header .menu-panel nav a{padding-block:33.8px}}
@media(max-width:600px){.menu-ready .site-header .menu-panel nav a{font-size:18px}}

.garden-passage:focus{outline:none}
.garden-passage[data-input="pointer"] .garden-passage-skip:focus{outline:none}

/* Mobile Menu stroke stays full width; touch hover must not pull it inward. */
@media(max-width:600px){
 .menu-ready .menu-toggle .menu-lines::after{left:0;width:100%;transform:none;transition:none}
}

/* Resume uses whitespace within groups and rules only at major boundaries. */
@media screen{
 body[data-page="resume"] .credit{border-top:0}
 body[data-page="resume"] .measurements dl div{border-bottom:0}
 body[data-page="resume"] .credit-group:last-child{border-bottom:0}
 body[data-page="resume"] .resume-page{padding-bottom:64px}
}

/* Paint the document and transient surfaces consistently into mobile safe areas. */
html,body[data-page]{--bg:#2c2c2c;min-height:100dvh}
.site-footer{background:#2c2c2c}
@media(max-width:600px){.site-footer{padding-bottom:max(27px,env(safe-area-inset-bottom,0px))}}
@media(max-width:899px),(hover:none) and (pointer:coarse){
 .menu-ready .site-header,.menu-ready .menu-panel-head{padding-top:env(safe-area-inset-top,0px);height:calc(88px + env(safe-area-inset-top,0px));min-height:calc(88px + env(safe-area-inset-top,0px))}
 .site-header,.menu-panel,.site-footer,.page-content{padding-left:max(6%,env(safe-area-inset-left,0px));padding-right:max(6%,env(safe-area-inset-right,0px))}
 .intro-active #intro,.intro-leaving #intro{height:100dvh}
 .menu-ready .menu-footnote{padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:600px){
 .menu-ready .site-header,.menu-ready .menu-panel-head{height:calc(82px + env(safe-area-inset-top,0px));min-height:calc(82px + env(safe-area-inset-top,0px))}
}

/* Blend moving artwork into the neutral mobile browser edge. */
@media(max-width:899px),(hover:none) and (pointer:coarse){
 .mainstage .stage-shade{background:linear-gradient(to top,#2c2c2c 0,rgba(44,44,44,0) 112px),linear-gradient(180deg,#10171022 25%,#101710d9 100%)}
 .garden-passage-controls{background:linear-gradient(to top,#2c2c2c 0,rgba(44,44,44,0) 112px)}
}

/* Fade artwork at its own bounds, independent of browser/safe-area coverage. */
@media(max-width:899px),(hover:none) and (pointer:coarse){
 .garden-passage-forest .garden-depth-canvas{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 96px);mask-image:linear-gradient(to bottom,transparent 0,#000 96px)}
 .garden-passage-sand .garden-approved-canvas{
  -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 96%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 calc(100% - 112px),transparent 100%);
  mask-image:linear-gradient(to right,transparent,#000 9%,#000 96%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 calc(100% - 112px),transparent 100%);
 }
}
