/* V5 homepage only; all other routes retain their frozen V4 presentation. */
body[data-v4-page=home] .v5-opening{position:relative;isolation:isolate;z-index:0}
body[data-v4-page=home] .v5-opening>.v4-hero{position:sticky;top:0;height:100dvh;padding:0;z-index:0}
body[data-v4-page=home] .v4-hero::after{display:none}
body[data-v4-page=home] .v4-river{position:relative;margin:0;border:0;height:100dvh;min-height:100dvh}
.v5-opening .v3-ocean{z-index:2}
.v5-opening .v5-founders-hold{position:relative;z-index:1;pointer-events:none}
.v5-founders-hold::after{content:"";display:block;height:124svh}
body[data-v4-page=home] .v5-founders-hold>.founders-note{position:sticky;top:var(--founders-pin-top,0px);background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
body[data-v4-page=home] .v5-why{margin-top:-100svh;position:relative;z-index:3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured{margin-top:0!important}
@media(max-width:650px){.v5-founders-hold::after{height:118svh}}
@media(prefers-reduced-motion:reduce){
 body[data-v4-page=home] .v5-opening>.v4-hero{position:relative}
 body[data-v4-page=home] .v5-founders-hold>.founders-note{position:relative;top:auto;background:linear-gradient(#08140e66,#08140e66),url('/v5/client-media-20261119/089-poster.jpg') center/cover}
 .v5-founders-hold::after{height:0}
 body[data-v4-page=home] .v5-why{margin-top:0}
 .v5-opening .v3-ocean{display:none}
}

/* Requested transparent homepage header, including its top/light scroll states. */
body[data-v4-page=home] .site-header.site-header{background:transparent;color:var(--paper);--v4-header-logo:url('/v5/idalia-header-ivory.svg');backdrop-filter:none;-webkit-backdrop-filter:none;border-color:transparent}

/* Original root homepage composition. Keep its fonts isolated from V4 type rules. */
@font-face{font-family:V5WhySource;src:url('/assets/fonts/SourceSans3.ttf') format('truetype');font-weight:200 900;font-display:swap}
@font-face{font-family:V5WhyInstrument;src:url('/assets/fonts/InstrumentSans.ttf') format('truetype');font-weight:400 700;font-display:swap}
body[data-v4-page=home] .v5-why{--edge:clamp(24px,5vw,88px);--content:1320px;--paper:#f3f0e8;--sage:#b8d2ae;background:#000;color:var(--paper);font:400 16px/1.75 V5WhyInstrument,Arial,Helvetica,sans-serif}
body[data-v4-page=home] .v5-why>.intro{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(40px,7vw,112px);align-items:center;min-height:100svh;padding:80px max(var(--edge),calc((100vw - var(--content))/2));background:#000;color:var(--paper)}
body[data-v4-page=home] .v5-why .why-image-frame{position:relative;width:100%;aspect-ratio:3/4;max-height:calc(100svh - 160px);overflow:hidden;mask-image:linear-gradient(to bottom,transparent,#000 3%,#000 95%,transparent)}
body[data-v4-page=home] .v5-why .why-image{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;transform-origin:50% 50%}
body[data-v4-page=home] .v5-why .why-story{display:block}
body[data-v4-page=home] .v5-why .why-story h2{font-family:V5WhySource,Arial,sans-serif;font-size:clamp(38px,4.5vw,64px);font-weight:300;line-height:1.15;letter-spacing:-.015em;text-wrap:balance;max-width:none;margin:0;color:var(--paper)}
body[data-v4-page=home] .v5-why .why-story em{font:inherit;color:#b8d2ae}
body[data-v4-page=home] .v5-why .eyebrow{font-family:V5WhyInstrument,Arial,Helvetica,sans-serif;font-size:11px;line-height:1.5;letter-spacing:.15em;text-transform:uppercase;font-weight:500;margin:0 0 30px;color:var(--paper)}
@media(max-width:650px){body[data-v4-page=home] .v5-why>.intro{grid-template-columns:1fr;gap:40px;min-height:0;padding-top:72px;padding-bottom:40px}body[data-v4-page=home] .v5-why .why-image-frame{max-height:560px}body[data-v4-page=home] .v5-why .why-story h2{font-size:42px;margin-bottom:30px}}
@media(prefers-reduced-motion:reduce){body[data-v4-page=home] .v5-why .why-image{transform:none!important}}
/* V3 translucent contact button, including both header states. */
body[data-v4-page=home] .site-header.site-header .header-contact{color:var(--paper);background:color-mix(in srgb,var(--ink) 38%,transparent);border-color:transparent;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:6px;text-shadow:0 1px 3px #00000080;transition:background-color 220ms ease}
body[data-v4-page=home] .site-header.site-header .header-contact:is(:hover,:focus-visible){color:var(--paper);background:color-mix(in srgb,var(--ink) 48%,transparent)}
body[data-v4-page=home] .site-header.site-header.is-light .header-contact{background:color-mix(in srgb,var(--ink) 65%,transparent)}
body[data-v4-page=home] .site-header.site-header.is-light .header-contact:is(:hover,:focus-visible){background:color-mix(in srgb,var(--ink) 73%,transparent)}
/* All Films colours only; retain Explore's existing morph/arrow geometry. */
body[data-v4-page=home] .v4-all-work .v4-work-flow{background:transparent;border-color:#b8d2ae66;color:var(--paper)}
body[data-v4-page=home] .v4-all-work .v4-flow-fill{background:var(--sage)}
body[data-v4-page=home] .v4-all-work .v4-work-flow:is(:hover,:focus-visible,:active){background:transparent;border-color:transparent;color:var(--ink)}
body[data-v4-page=home] .v4-all-work .v4-work-flow:focus-visible{outline:2px solid var(--sage);outline-offset:5px}

body[data-v4-page=home] .site-header.site-header .header-contact:focus-visible{outline:2px solid currentColor;outline-offset:5px;box-shadow:none}

/* V5 editorial gallery: clip the stage, never the sticky ancestor. */
body:is([data-v4-page=home],[data-v4-page=featured]) #featured{padding:0;overflow:visible;border-radius:28px 28px 0 0;background:transparent}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured::after{display:none}
body:is([data-v4-page=home],[data-v4-page=featured]) .v5-featured-stage{position:relative;isolation:isolate;overflow:clip;border-radius:28px 28px 0 0;background:var(--ink);padding:100px 1.33vw 80px}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal{margin-top:-28px!important}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v5-featured-stage{position:sticky;top:0;height:100svh;min-height:600px;padding:0}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-heading{position:absolute;inset:88px 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 var(--edge);margin:0;z-index:3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-heading h2{margin:0;max-width:none}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-grid{position:absolute;left:0;top:170px;width:310vw;height:calc(100% - 275px);display:block;padding:0;margin:0;will-change:transform}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-film-column{display:contents;transform:none;padding:0}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-film{position:absolute;left:var(--tile-x);top:var(--tile-y);width:var(--tile-w);height:var(--tile-h);aspect-ratio:auto;margin:0;transform:none;border-radius:5px}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-layer{overflow:visible}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor{left:17vw;right:auto;top:43%;width:42vw}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor:nth-child(2){left:113vw;top:43%}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor:nth-child(3){left:228vw;top:43%;width:48vw}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial{opacity:1;transform:none;font-size:clamp(30px,3.1vw,54px)}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v4-all-work{position:absolute;inset:auto 0 24px;padding:0;margin:0;z-index:3}
@media(min-width:651px) and (max-width:1000px){
 body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-heading{top:100px}
 body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-grid{top:190px;height:calc(100% - 305px)}
 body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-film{height:calc(var(--tile-h) * .85)}
 body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial{font-size:clamp(26px,4vw,38px)}
}
@media(max-width:650px){
 body:is([data-v4-page=home],[data-v4-page=featured]) #featured,body:is([data-v4-page=home],[data-v4-page=featured]) .v5-featured-stage{border-radius:20px 20px 0 0}
 body:is([data-v4-page=home],[data-v4-page=featured]) .v5-featured-stage{padding:64px 18px}
}

/* Editorial copy occupies measured negative space, never a media overlay. */
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor{left:5vw;top:64%;width:29vw}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor:nth-child(2){left:118vw;top:1%;width:29vw}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor:nth-child(3){left:237vw;top:59%;width:30vw}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial{font-size:clamp(25px,2.5vw,44px);padding:0;text-shadow:none;max-width:none}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial::before{display:none}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial-layer{position:relative;inset:auto;grid-column:1/-1;display:flex;flex-direction:column;gap:56px;overflow:visible;padding:32px 0 0}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial-anchor{position:relative;inset:auto}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial{opacity:1;transform:none;text-shadow:none}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial::before{display:none}

/* Transparent contour strokes only; retain the stage's original base surface. */
body:is([data-v4-page=home],[data-v4-page=featured]) .v5-featured-contours{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:.18}

/* Why stays below the arriving gallery, within a shared, unclipped scroll boundary. */
body[data-v4-page=home] .v5-work-sequence{position:relative;isolation:isolate;z-index:3;margin-top:-100svh;--v5-overlap-radius:28px}
body[data-v4-page=home] .v5-work-sequence .v5-why{position:sticky;top:min(0px,calc(100svh - var(--why-height,100svh)));margin-top:0;margin-bottom:24svh;z-index:0}
body[data-v4-page=home] .v5-why>.intro{min-height:100svh;box-sizing:border-box}
body[data-v4-page=home] .v5-why .v5-why-statement{font-family:V5WhySource,Arial,sans-serif;font-size:clamp(24px,2.35vw,34px);font-weight:300;line-height:1.35;letter-spacing:-.01em;max-width:31ch;margin:clamp(28px,4svh,48px) 0 0;text-wrap:pretty}
body[data-v4-page=home] .v5-work-sequence #featured{position:relative;z-index:1;margin-top:0!important}
/* Contact's rounded top reveals the actual gallery beneath, without a square shell. */
body[data-v4-page=home] .v4-contact-shell{position:relative;z-index:4;background:transparent;margin-top:-28px}
body[data-v4-page=home] #contact{border-radius:28px 28px 0 0;clip-path:inset(0 round 28px 28px 0 0)}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v4-all-work{bottom:44px}
@media(max-width:650px){
 body[data-v4-page=home] .v5-work-sequence{--v5-overlap-radius:20px}
 body[data-v4-page=home] .v5-why>.intro{min-height:100svh;grid-template-columns:1fr;gap:24px;padding-top:84px;padding-bottom:64px;align-content:center}
 body[data-v4-page=home] .v5-why .why-image-frame{height:clamp(170px,29svh,300px);max-height:none;aspect-ratio:auto}
 body[data-v4-page=home] .v5-why .why-story h2{font-size:clamp(32px,8.4vw,42px);margin:0}
 body[data-v4-page=home] .v5-why .eyebrow{margin-bottom:16px}
 body[data-v4-page=home] .v5-why .v5-why-statement{font-size:clamp(22px,5.8vw,28px);margin-top:24px;max-width:32ch}
 body[data-v4-page=home] .v4-contact-shell{margin-top:-20px}
 body[data-v4-page=home] #contact{border-radius:20px 20px 0 0;clip-path:inset(0 round 20px 20px 0 0)}
}
@media(prefers-reduced-motion:reduce){
 body[data-v4-page=home] .v5-work-sequence{margin-top:0}
 body[data-v4-page=home] .v5-work-sequence .v5-why{position:relative;top:auto;margin-bottom:0}
}

/* Breathing room below Explore; keep the pinned gallery's content and travel unchanged. */
body:is([data-v4-page=home],[data-v4-page=featured]) .v5-featured-stage{--v5-work-bottom-space:clamp(72px,10svh,120px);padding-bottom:calc(80px + var(--v5-work-bottom-space))}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v5-featured-stage{height:calc(100svh + var(--v5-work-bottom-space));padding-bottom:0}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-grid{height:calc(100% - 275px - var(--v5-work-bottom-space))}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v4-all-work{bottom:calc(44px + var(--v5-work-bottom-space))}
@media(min-width:651px) and (max-width:1000px){
 body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-grid{height:calc(100% - 305px - var(--v5-work-bottom-space))}
}
@media(max-width:650px){
 body:is([data-v4-page=home],[data-v4-page=featured]) .v5-featured-stage{padding-bottom:calc(64px + var(--v5-work-bottom-space))}
}

/* Requested white, two-phase line wipe; original text colour is inherited. */
body[data-v4-page=home] .v5-reveal-line{display:block;position:relative;width:max-content;max-width:100%;white-space:pre;overflow:hidden}
body[data-v4-page=home] .v5-reveal-text{opacity:0}
body[data-v4-page=home] .v5-reveal-wipe{position:absolute;inset:0;background:#FFFFFF;transform:scaleX(0);transform-origin:left center;pointer-events:none}

body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor:nth-child(2){top:calc(1% + 20px)}
@media(prefers-reduced-motion:reduce){
 body[data-v4-page=home] .v5-reveal-text{opacity:1!important}
 body[data-v4-page=home] .v5-reveal-wipe{display:none}
}

/* Source-led thumbnails: modest 6.25% crop, balanced areas rather than fixed boxes. */
body:is([data-v4-page=home],[data-v4-page=featured]) #featured .v3-film{aspect-ratio:var(--thumb-ratio);height:auto}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured .v3-film>img,
body:is([data-v4-page=home],[data-v4-page=featured]) #featured .v3-film>video{object-fit:cover;object-position:center;transform:none}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-featured-grid{width:var(--balanced-track-width,310vw)}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-film{left:var(--balanced-x);top:var(--balanced-y);width:var(--balanced-w);height:auto;aspect-ratio:var(--thumb-ratio)}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured.v5-horizontal .v3-editorial-anchor:nth-child(n){left:var(--editorial-x);top:var(--editorial-top);width:var(--editorial-width)}
/* The same proportions in a staggered mobile/static layout. Landscapes get a
   full row, so they retain comparable visual weight beside the portraits. */
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-featured-grid{max-width:640px;margin-inline:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 20px;align-items:center;padding:24px 0 64px}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-film-column,
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial-layer{display:contents}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-film{width:100%;max-width:calc((100svh - 180px) * (var(--thumb-ratio)));justify-self:center;transform:none}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="1"]{grid-area:1/1;align-self:start}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="2"]{grid-area:1/2;margin-top:44px}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="3"]{grid-area:3/1/4/3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="4"]{grid-area:4/1}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="5"]{grid-area:5/1/6/3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="6"]{grid-area:6/1/7/3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="7"]{grid-area:7/1/8/3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) [data-slot="8"]{grid-area:8/2}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial-anchor:nth-child(1){grid-area:2/1/3/3}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial-anchor:nth-child(2){grid-area:4/2}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial-anchor:nth-child(3){grid-area:8/1}
body:is([data-v4-page=home],[data-v4-page=featured]) #featured:not(.v5-horizontal) .v3-editorial{font-size:clamp(22px,3vw,32px);padding:0}

/* The opening fills the viewport; only background footage is cropped to cover. */
body[data-v4-page=home] .v4-river .hero-image,
body[data-v4-page=home] .v4-river .v4-hero-film{object-fit:cover;object-position:center;transform:none;background:#000}
body[data-v4-page=home] .v4-river .hero-image{z-index:0}
body[data-v4-page=home] .v4-river .v4-hero-film{z-index:1}

/* One mobile text gutter over the full-bleed founders video. The note retains
   natural height so short screens can scroll through every line before pinning. */
@media(max-width:650px){
 body[data-v4-page=home] .v5-founders-hold>.founders-note{height:auto;min-height:100svh;padding:96px 24px 64px;box-sizing:border-box}
 body[data-v4-page=home] .v5-founders-hold .founders-postcard{width:100%;max-width:none;margin:0;padding:0;border:0}
 body[data-v4-page=home] .v5-founders-hold .note-message{max-width:none;font-size:clamp(26px,7vw,30px);line-height:1.5;overflow-wrap:break-word}
 body[data-v4-page=home] .v5-founders-hold .founder-names{font-size:32px;line-height:1.5;margin-top:32px;padding:0}
}

/* Standalone Featured note shares the Home footage without a green surround. */
body[data-v4-page=featured] .founders-note{position:relative;isolation:isolate;box-sizing:border-box;width:100%;min-height:100svh;margin:0;border:0;border-radius:0;background:#000;overflow:hidden;padding-top:100px}
body[data-v4-page=featured] .v5-founders-film{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;margin:0;border:0;border-radius:0}
body[data-v4-page=featured] .founders-note::after{content:"";position:absolute;inset:0;z-index:-1;background:#0005;pointer-events:none}
body[data-v4-page=featured] .founders-postcard{background:none;border:0;box-shadow:none}
.v5-founders-motion{position:absolute;right:24px;bottom:20px;z-index:2;width:44px;height:44px;padding:0;border:0;background:#0006;color:#f3f0e8;font-size:20px;cursor:pointer}
.v5-founders-motion:focus-visible{outline:2px solid #f3f0e8;outline-offset:3px}
@media(max-width:650px){
 body[data-v4-page=featured] .founders-note{height:auto;min-height:100svh;padding:96px 24px 64px}
 body[data-v4-page=featured] .founders-postcard{width:100%;max-width:none;margin:0;padding:0}
 body[data-v4-page=featured] .note-message{max-width:none;font-size:clamp(26px,7vw,30px);line-height:1.5;overflow-wrap:break-word}
 body[data-v4-page=featured] .founder-names{font-size:32px;line-height:1.5;margin-top:32px;padding:0}
}
