/* Shared palette: the citric accent appears on interaction; brand red remains primary. */
:root{--electric:#eae31f;--pill:999px}
button:not(.image-button):not(.play-overlay),.case-open,.play-disc,.project-open,.theme-toggle,.contact-submit,.wave-button,.residents summary{border-radius:var(--pill)!important}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--electric);outline-offset:5px}
.case:hover .case-open,.case:focus-visible .case-open,.project-card:hover .project-open,.next-case:hover .next-label,.play-overlay:hover .play-disc,button:not(.image-button):not(.play-overlay):not(:disabled):hover,.residents summary:hover,.media-switch[aria-pressed=true]{background:var(--electric)!important;color:#0d201c!important;border-color:var(--electric)!important}
button,.case-open,.play-disc{transition:background .22s,color .22s,border-color .22s,transform .22s}
.case-open,.play-disc{padding:12px 22px!important;min-height:44px}
#resident-note{border-radius:22px;border-left-width:1px;border:1px solid var(--line)}
#resident-note #greet{padding:12px 18px;border:1px solid var(--line)}
.bottom-bar button{padding:8px 12px}.scene-tools{gap:8px}
body:has(.journey){--paper:var(--green)}
.contact-dialog .contact-top{position:static;background:transparent;height:auto;padding:0;gap:12px}
.contact-dialog .contact-close{padding:8px}
.contact-dialog .contact-actions button{border-radius:999px}
.contact-dialog .contact-actions{font-family:var(--body)}
/* Let the photograph retain both faces; the family lives behind its silhouette. */
.farmer{position:relative;z-index:16;background:var(--green);padding:40px var(--pad) 130px}
.farmer-top{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;gap:24px}
.farmer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9vw;align-items:start;padding-top:45px}
.farmer h2{font:400 clamp(60px,7vw,108px)/.98 var(--slab);margin:0 0 45px;letter-spacing:-.025em}
.farmer h2 em{font-style:normal;color:var(--red)}
.farmer-family{position:relative;isolation:isolate;width:min(420px,82%);margin:100px auto 28px}
.farmer-portrait{position:relative;z-index:2;margin:0;border-radius:60px 10px 48px 10px}
.farmer-portrait>img{display:block;width:100%;height:auto;border-radius:inherit;filter:grayscale(1) sepia(.25);mix-blend-mode:luminosity;opacity:.93;box-shadow:0 24px 60px #00150f33}
.farmer-portrait figcaption{font:11px var(--body);color:var(--muted);padding:17px 0}
.farmer-friend{position:absolute;z-index:1;width:132px;height:165px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 6px #03140d45)}
.friend-mamiloide{left:-72px;top:-85px;transform:rotate(-12deg)}
.friend-mimosa{right:-56px;top:-85px;transform:rotate(11deg)}
.friend-palmito{left:-85px;top:38%;transform:rotate(-18deg)}
.friend-pepino{right:-70px;top:55%;transform:rotate(14deg)}
.farmer-description{padding-top:12px}.farmer-description .lead{font:400 clamp(26px,3vw,40px)/1.15 var(--slab);margin:0 0 32px}
.farmer-description p:not(.lead){font-size:clamp(15px,1.3vw,18px);line-height:1.7;margin:0 0 24px}
.farmer-description .contact-link{display:flex;align-items:center;justify-content:space-between;padding:24px 0;border-top:1px solid var(--line);margin-top:45px}
/* Media is never cropped: wide stage work and portrait collectible cards keep their native framing. */
.video-shell video{display:block;width:100%;height:auto;object-fit:contain}
.media-rail{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 0 26px;scrollbar-color:var(--electric) transparent}
.media-rail>figure{flex:0 0 clamp(240px,29vw,350px);scroll-snap-align:start}
.media-rail .video-shell{aspect-ratio:4/5}.media-rail .play-disc{font-size:11px;padding:10px 16px!important;gap:10px}
.media-rail .media-caption{font-size:10px}.media-rail .media-caption span:last-child{display:none}
.rail-controls{display:flex;gap:10px;justify-content:flex-end;margin-bottom:18px}.rail-controls button{border:1px solid var(--line);padding:10px 18px;min-height:44px}
.film-versions{border-top:1px solid var(--line);margin:26px 0 0;padding-top:18px}.film-versions summary{cursor:pointer;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:12px 20px;font-size:12px}.film-versions .chapter-media{margin-top:25px}
.case-chapter .chapter-media.single-image{grid-template-columns:1fr}.chapter-anchor{display:flex;gap:15px;flex-wrap:wrap;margin:30px 0}.chapter-anchor a{padding:12px 18px;border:1px solid var(--line);border-radius:999px;font-size:12px}.chapter-anchor a:hover{background:var(--electric);color:#0d201c}
.case-page .case-chapter .image-button{display:block;width:100%;border:0;padding:0;border-radius:0;background:transparent;overflow:hidden}
.case-page .edge-trim img{transform:scale(1.014);transform-origin:center}
.case-page .case-overview .case-facts dd{line-height:1.65}
@view-transition{navigation:auto}
@media(max-width:760px){.farmer{padding-bottom:85px}.farmer-layout{grid-template-columns:1fr;gap:50px}.farmer-top .eyebrow{font-size:8px}.farmer h2{font-size:66px}.farmer-family{width:min(300px,72%)}.farmer-friend{width:110px;height:140px}.friend-mamiloide{left:-50px;top:-75px}.friend-mimosa{right:-45px;top:-75px}.friend-palmito{left:-68px}.friend-pepino{right:-59px}.farmer-description p:not(.lead){font-size:16px}.media-rail>figure{flex-basis:76vw}.case-open{padding:9px 16px!important}.site-header .nav-links{gap:18px}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}button,.case-open,.play-disc{transition:none}}

.rail-controls{grid-column:2;align-self:start;align-items:center;margin:0}.rail-controls button{height:44px;width:54px;flex:none;display:grid;place-items:center;padding:10px}.media-rail{grid-column:2;min-width:0}.media-rail>figure{margin:0}.media-rail .video-shell{max-height:none}
@media(max-width:760px){.rail-controls,.media-rail{grid-column:1/-1}}

/* The grounded siblings peek from behind; the floating pair overlap the frame. */
.farmer-portrait{background:#245b49}.farmer-portrait>img{filter:grayscale(1);mix-blend-mode:luminosity;opacity:.84}.farmer-portrait figcaption{background:var(--green);position:relative}
.farmer-friend{width:106px;height:133px}
.friend-mamiloide{z-index:3;left:auto;right:-9%;top:-24%;width:33%;height:auto;transform:rotate(13deg)}
.friend-palmito{z-index:3;left:-18%;right:auto;top:3%;width:30%;height:auto;transform:rotate(-13deg)}
.friend-mimosa{left:-15%;right:auto;top:60%;width:29%;height:auto;transform:rotate(-25deg)}
.friend-pepino{left:auto;right:-15%;top:45%;width:26%;height:auto;transform:rotate(24deg)}
@media(max-width:760px){.farmer-family{width:min(370px,78%);margin-top:85px}.friend-mamiloide{top:-23%}.friend-palmito{top:1%}}

/* CON's identity and films get a wider, editorial rhythm. */
.chapter-feature{grid-template-columns:minmax(0,1fr);gap:0;padding-bottom:45px}
.chapter-feature .chapter-title{position:static;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr);gap:24px 7%;padding-bottom:48px}
.chapter-feature .chapter-title>.eyebrow{grid-column:1/-1;grid-row:1;align-self:start}
.chapter-feature .chapter-title>h2{grid-column:1;grid-row:2;align-self:start;margin:0;max-width:330px}
.chapter-feature .chapter-title>p,.chapter-feature .chapter-story{grid-column:2;grid-row:2;align-self:start;margin:0;max-width:none}
.chapter-story{display:grid;grid-template-columns:1fr 1fr;gap:22px 32px}
.chapter-story p{margin:0;max-width:none;font-size:14px;line-height:1.8}
.chapter-fullfilm{grid-column:1/-1;margin:0 0 54px;min-width:0}
.chapter-fullfilm>figure{margin:0}
.chapter-fullfilm .video-shell video{max-height:none;width:100%;height:auto}
.chapter-fullfilm .media-caption{padding-top:16px;border-bottom:1px solid var(--line);padding-bottom:22px}
.portfolio-rail{grid-column:1/-1;min-width:0;margin:12px 0 64px}
.portfolio-rail-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:26px}
.portfolio-rail-heading .eyebrow{font-size:10px}
.portfolio-rail-heading p{font-size:12px;margin:9px 0 0;color:var(--muted)}
.portfolio-rail .rail-controls{display:flex;gap:12px;align-items:center;flex:none}
.rail-position{font-size:11px;font-variant-numeric:tabular-nums;margin-right:14px;min-width:55px}
.portfolio-track{position:relative;display:flex;gap:24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--electric) transparent;padding-bottom:24px}
.portfolio-track>figure{flex:0 0 87%;margin:0;min-width:0;scroll-snap-align:start}
.portfolio-track img{display:block;width:100%;height:auto}
.portfolio-track .video-shell{aspect-ratio:auto}
.portfolio-track video{max-height:none;width:100%;height:auto;object-fit:contain}
.portfolio-track .media-caption{font-size:11px;line-height:1.55;min-height:42px}
.portfolio-track .media-caption span:last-child{display:none}
.portfolio-track .image-button{overflow:hidden;cursor:zoom-in}
.rail-stage .portfolio-track>figure{flex-basis:94%}
@media(max-width:1000px){.chapter-feature .chapter-title{grid-template-columns:minmax(190px,.7fr) minmax(0,1.6fr)}.chapter-story{grid-template-columns:1fr;gap:20px}}
@media(max-width:760px){.chapter-feature .chapter-title{display:block;padding-bottom:28px}.chapter-feature .chapter-title>h2{max-width:none}.chapter-story{gap:18px}.chapter-story p{font-size:14px}.portfolio-rail-heading{align-items:flex-start;gap:18px;flex-direction:column}.portfolio-rail .rail-controls{align-self:flex-end}.portfolio-track>figure{flex-basis:93%}.rail-stage .portfolio-track>figure{flex-basis:100%}.portfolio-track .media-caption{font-size:10px}.portfolio-rail{margin-bottom:38px}.chapter-fullfilm{margin-bottom:32px}}

.portfolio-rail .rail-forward{transform:rotate(180deg)}

/* The original Brand Center is a deliberate, click-to-explore interlude. */
.brandcenter-preview{grid-column:1/-1;margin:0 0 64px;min-width:0}
.brandcenter-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-top:1px solid var(--line)}
.brandcenter-toolbar>div{display:flex;align-items:center;gap:12px}
.brandcenter-toolbar a,.brandcenter-toolbar button{display:inline-flex;align-items:center;gap:12px;font-size:11px;white-space:nowrap;padding:9px 14px;border:1px solid var(--line);border-radius:999px}
.brandcenter-toolbar a:hover{background:var(--electric);color:#0d201c;border-color:var(--electric)}
.brandcenter-toolbar [hidden],.brandcenter-screen [hidden]{display:none!important}
.brandcenter-screen{position:relative;aspect-ratio:16/9;background:#2687e9;overflow:hidden;border:0}
.brandcenter-launch{position:relative;display:block;width:100%;height:100%;border:0;padding:0;background:#2687e9;color:white;cursor:pointer}
.brandcenter-launch>img{width:100%;height:100%;object-fit:cover;object-position:center}
.brandcenter-launch:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#02164c66,transparent 45%);pointer-events:none}
.brandcenter-launch-label{position:absolute;z-index:1;left:50%;bottom:8%;transform:translateX(-50%);display:flex;align-items:center;gap:22px;padding:16px 24px;border-radius:999px;background:var(--paper);color:var(--ink);font-size:13px;white-space:nowrap;box-shadow:0 8px 30px #00234c33;transition:background .2s,color .2s}
.brandcenter-launch:hover .brandcenter-launch-label{background:var(--electric);color:#0d201c}
.brandcenter-screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#2687e9}
.brandcenter-preview .media-caption{padding-top:16px;line-height:1.6}
@media(max-width:760px){.brandcenter-toolbar{align-items:flex-start;flex-direction:column;gap:14px}.brandcenter-toolbar>.eyebrow{font-size:9px}.brandcenter-screen.is-active{min-height:560px}.brandcenter-preview.is-active .brandcenter-screen{aspect-ratio:auto;height:68svh;min-height:480px}.brandcenter-launch-label{font-size:11px;padding:12px 18px;bottom:6%}.brandcenter-preview .media-caption span:last-child{display:none}}

/* Authored screens retain their canvas proportions, from LED panoramas to vertical totems. */
.case-hero.native-aspect video{aspect-ratio:var(--video-ratio);max-height:none}
.hero-image>img{display:block;width:100%;height:auto}
.case-page .gallery-phones{gap:clamp(18px,4vw,56px);padding:28px 0 50px;align-items:start}
.case-page .gallery-phones img{object-fit:contain;max-height:640px;width:100%;background:transparent}
.case-page .gallery-phones .image-button{background:transparent}
.case-page[data-project="g4-valley"] .rail-identity .image-button{height:clamp(250px,48vw,620px);background:#081220}
.case-page[data-project="g4-valley"] .rail-identity img{height:100%;object-fit:contain}
@media(max-width:620px){.case-page .gallery-phones{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:20px}.case-page .gallery-phones>figure{flex:0 0 78%;scroll-snap-align:start}.chapter-anchor{flex-wrap:wrap}}
.chapter-feature>.chapter-title,.chapter-feature>.chapter-media,.chapter-feature>.case-gallery{grid-column:1/-1}
.chapter-feature>.case-gallery{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}
@media(max-width:620px){.chapter-feature>.case-gallery{grid-template-columns:1fr}}

/* Keep the player's box, poster and controls on the original film canvas. */
.case-page .video-shell{aspect-ratio:var(--video-ratio);background:transparent}
.case-page .video-shell video{display:block;width:100%;height:auto;max-height:none;aspect-ratio:var(--video-ratio);object-fit:contain;background:transparent}
.case-page .portrait-film{width:min(100%,calc(70svh * var(--video-aspect)));justify-self:center;margin-inline:auto}
.case-page .chapter-media:has(>.portrait-film):not(:has(>figure:not(.portrait-film))){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.case-page .chapter-media>.portrait-film.wide{grid-column:1/-1}
.case-page .media-rail>.portrait-film,.case-page .portfolio-track>.portrait-film{flex:0 0 min(80%,calc(70svh * var(--video-aspect)))}
@media(max-width:620px){.case-page .chapter-media:has(>.portrait-film):not(:has(>figure:not(.portrait-film))){grid-template-columns:1fr}}

/* A dark green multiply wash, lifted on hover or keyboard focus. */
.farmer-portrait{background:transparent;outline-offset:7px}
.farmer-photo{position:relative;isolation:isolate;overflow:hidden;border-radius:inherit;background:#173c2e;box-shadow:0 24px 60px #00150f33}
.farmer-photo>img{display:block;width:100%;height:auto;filter:grayscale(1) contrast(1.04) brightness(1.12);transition:filter .45s}
.farmer-photo:after{content:'';position:absolute;inset:0;background:#50836b;mix-blend-mode:multiply;pointer-events:none;transition:opacity .45s}
.farmer-portrait:hover .farmer-photo>img,.farmer-portrait:focus .farmer-photo>img{filter:none}
.farmer-portrait:hover .farmer-photo:after,.farmer-portrait:focus .farmer-photo:after{opacity:0}
.farmer-portrait:focus-visible{outline:2px solid var(--electric)}
.friend-mamiloide{right:-7%;top:-13%}
.friend-palmito{left:-8%;top:5%}
@media(prefers-reduced-motion:reduce){.farmer-photo>img,.farmer-photo:after{transition:none}}

/* The fixed header includes the iPhone's status-bar area, in both themes. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
html{background:#0b1e1a;scroll-padding-top:calc(100px + var(--safe-top))}
html:has(body[data-theme="day"]){background:#e6e9d5}
body>header:before{content:'';position:absolute;left:0;right:0;top:0;height:var(--safe-top);background:var(--paper);pointer-events:none}
body:has(.journey)>header{--nav-height:104px;--nav-pad:22px;height:calc(var(--nav-height) + var(--safe-top));padding-top:calc(var(--nav-pad) + var(--safe-top));padding-left:max(var(--pad),var(--safe-left));padding-right:max(var(--pad),var(--safe-right))}
body>.site-header,.header-condensed>.site-header{--nav-height:88px;height:calc(var(--nav-height) + var(--safe-top));padding-top:var(--safe-top);padding-left:max(var(--pad),var(--safe-left));padding-right:max(var(--pad),var(--safe-right))}
.header-condensed>.site-header{--nav-height:76px}
body[data-page="case"]>main{padding-top:calc(100px + var(--safe-top))}
.case-chapter{scroll-margin-top:calc(95px + var(--safe-top))}
.chapter-title{top:calc(115px + var(--safe-top))}
.bottom-bar{margin-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:1100px){body:has(.journey)>header{--nav-height:88px;--nav-pad:16px}body:has(.journey)>header nav{top:calc(var(--nav-height) + var(--safe-top) - 1px)}}
@media(max-width:700px){body>.site-header{--nav-height:74px}.header-condensed>.site-header{--nav-height:68px}body[data-page="case"]>main{padding-top:calc(88px + var(--safe-top))}}
@media(max-width:600px){body:has(.journey)>header{--nav-height:78px}.hero-copy{top:calc(15% + var(--safe-top))}.residents{bottom:calc(74px + env(safe-area-inset-bottom,0px))}}

/* The opaque status strip is a separate fixed element: WebKit's edge sampler
   must not encounter the menu's backdrop filter. Keep it >10px even when Safari
   reports a zero safe-area inset, and leave the navigation surface translucent. */
.statusbar-guard{display:none}
@media(max-width:700px){
 body:after{z-index:19}
 body>.statusbar-guard{display:block;position:fixed;inset:0 0 auto;height:max(12px,var(--safe-top));background:var(--paper);z-index:60;pointer-events:none}
 body.trail-reading>.statusbar-guard{background:rgb(var(--trail-header-rgb,11 30 26))}
 body>header:before{display:none}
 body>header,body[data-theme]>header{
  background:rgba(var(--ground-rgb,11,30,26),.64);
  -webkit-backdrop-filter:blur(24px) saturate(1.18);backdrop-filter:blur(24px) saturate(1.18);
  transition:height .3s,border-color .3s;
 }
}

/* One professional profile, reachable on every page. */
.linkedin-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;color:inherit;border-radius:50%;transition:background .2s}
.linkedin-icon svg,.bio-linkedin svg{width:19px;height:19px;flex:none}
.linkedin-icon:hover,.linkedin-icon:focus-visible{background:color-mix(in srgb,currentColor 12%,transparent)}
.linkedin-icon:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:700px){.site-header .header-actions{gap:10px}.site-header .linkedin-icon{width:34px}.site-header .theme-toggle{padding-inline:12px}}
