/* =========================================================
   Reseda Recreation — original stylesheet
   Responsive model mirrors the Brine template family:
   - Fluid site width capped by --site-max
   - Single primary breakpoint at 640px (Brine "mobile" tweak)
   - Secondary breakpoint at 1024px for tablet column collapse
   ========================================================= */

:root{
  --site-max: 1500px;        /* Brine "Site Width: Full" cap */
  --gutter: 4vw;             /* fluid outer gutters */
  --header-h: 80px;
  --ink:#000000;
  --paper:#f5f5f3;
  --muted:#8a8a82;
  --accent:#000000;
  --serif:"Bricolage Grotesque","Work Sans",-apple-system,"Helvetica Neue",Arial,sans-serif;
  /* Courier Std = Adobe proprietary (no free webfont). Courier Prime is the
     closest free match; Courier New / monospace as final fallbacks. */
  --mono:"Courier Std","Courier Prime","Courier New",monospace;
  /* Pragmatica Extended = ParaType proprietary (no free webfont). Listed first
     so it renders where installed/licensed; sans fallbacks otherwise. */
  --display:"Pragmatica Extended","Arial Narrow",var(--sans);
  --sans:"Bricolage Grotesque","Work Sans",-apple-system,"Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}

/* ---------- Heading system ---------- */
h1,h2,h3,h4{
  font-family:var(--serif);
  font-style:normal;
  font-weight:700;
  line-height:1.1em;
  letter-spacing:-0.04em;
  text-transform:capitalize;
}
h1{font-size:6rem;}
h2{font-size:4rem;}
h3{font-size:2rem;}
h4{font-size:1.6rem;}

.container{
  width:100%;
  max-width:var(--site-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ---------- Header ---------- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  height:var(--header-h);
  display:flex;align-items:center;
  border-bottom:1px solid #000;     /* divider stays pinned on top while scrolling */
  transition:transform .35s ease, background .35s ease, box-shadow .35s ease;
}
/* hide when scrolling down, reappear when scrolling up */
.site-header.nav-hidden{transform:translateY(-100%);}
.site-header.scrolled{
  background:rgba(245,245,243,.92);
  backdrop-filter:saturate(150%) blur(8px);
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.header-inner{
  width:100%;max-width:var(--site-max);margin-inline:auto;
  padding-inline:var(--gutter);
  display:flex;align-items:center;justify-content:space-between;
}
.brand{
  font-family:var(--sans);
  font-weight:500;letter-spacing:.42em;font-size:1.05rem;
  padding-left:.42em; /* optically center the tracked text */
  color:var(--ink);                    /* dark over the light page */
}

/* keep the normal cursor over the hologram SVG texts (no text I-beam) */
[data-holo], [data-holo] *{cursor:default;}

/* "::" kept only in the MASA::UX brand lockup — same colour as the wordmark */
.brand-sep{color:inherit;opacity:1;}
.meta-label{color:var(--ink);}
.site-nav{display:flex;gap:2.4rem;}
.site-nav a{
  font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink);position:relative;transition:color .3s ease;
}
.site-nav a::after{
  content:"";position:absolute;left:0;bottom:-6px;height:1px;width:0;
  background:currentColor;transition:width .3s ease;
}
.site-nav a:hover::after{width:100%;}

/* CV / Portfolio — download chips, set apart from anchor links */
.site-nav a.nav-doc{
  border:1px solid currentColor;border-radius:999px;
  padding:.5em 1.1em;
}
.site-nav a.nav-doc::after{display:none;}     /* no underline animation */
.site-nav a.nav-doc:hover{background:var(--ink);color:#fff;}

/* hamburger — hidden on desktop */
.nav-toggle{
  display:none;flex-direction:column;gap:5px;
  background:none;border:0;cursor:pointer;width:26px;
}
.nav-toggle span{height:2px;width:100%;background:var(--ink);transition:.3s;}

/* ---------- Hero ---------- */
.hero{
  position:relative;                  /* height follows content (no empty screen) */
  display:flex;flex-direction:column;
  padding:var(--header-h) 0 clamp(2rem,5vw,4rem);   /* clear header + small bottom gap */
  background:var(--paper);
  background-size:cover;background-position:center;
  color:var(--ink);overflow:hidden;
}
.hero-overlay{position:absolute;inset:0;background:transparent;}

/* full-width adaptive headline at the very top of the hero */
.hero-bigtext{
  position:relative;z-index:2;
  width:100%;max-width:var(--site-max);
  margin:clamp(1rem,3vw,2.5rem) auto 0;
  padding-inline:var(--gutter);
}
.hero-masa{display:block;width:100%;height:auto;fill:var(--ink);overflow:visible;}
.hero-masa text{
  font-family:var(--serif);   /* Bricolage Grotesque */
  font-weight:700;
  text-transform:uppercase;
  font-size:120px;     /* viewBox units; textLength stretches it to fill the line */
}

.hero-content{
  position:relative;z-index:2;
  flex:1 1 auto;
  display:flex;flex-direction:column;justify-content:center;
  max-width:var(--site-max);margin-inline:auto;
  padding-inline:var(--gutter);width:100%;
}
.eyebrow{
  font-size:.78rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--muted);margin-bottom:1.4rem;
}
.hero-title{margin-bottom:0;}
/* skills line — below the title, same muted eyebrow colour */
.hero-skills{
  margin:1.3rem 0 0;
  font-family:var(--mono);          /* same as section paragraphs */
  font-size:.72rem;                 /* smaller */
  letter-spacing:.02em;
  text-transform:none;
  line-height:1.8;
  max-width:64ch;
  color:#000000;
}
.hero-lede{
  margin-top:clamp(1.4rem,3vw,2.2rem);
  max-width:60ch;
  font-size:clamp(1rem,1.4vw,1.2rem);
  line-height:1.7;
  color:var(--muted);
}

/* paragraph type scale (Paragraph 1 = large ... 3 = small) */
.paragraph-1{font-size:1.25rem;line-height:1.7;}
.paragraph-2{font-size:1.05rem;line-height:1.7;}
.paragraph-3{font-size:.875rem;line-height:1.7;letter-spacing:.005em;}

/* ---------- Index sections ---------- */
/* unified #f5f5f3 background; 2px black rule divides each section.
   Height = one viewport minus the header, so header + a full section
   fit in a single screen. Content is vertically centred. */
.index-section{
  min-height:calc(100vh - var(--header-h));
  min-height:calc(100svh - var(--header-h));
  display:flex;align-items:center;
  padding:clamp(3.5rem,8vw,7rem) 0;
  border-top:1px solid #000;
  scroll-margin-top:var(--header-h);   /* anchor lands below fixed header */
}
.index-section > .container{width:100%;}
.index-section.alt{background:transparent;}
/* no divider between the hero and the first section */
#about{border-top:0;}

/* ---------- Availability line (under About title) ---------- */
.avail{
  display:flex;align-items:center;gap:.7em;
  margin-top:1rem;
  font-family:var(--mono);font-size:.8rem;letter-spacing:.04em;
  color:var(--muted);
}
.avail-dot{
  width:9px;height:9px;border-radius:50%;flex:0 0 auto;
  background:#22c55e;                         /* plain green "available" dot */
}

/* ---------- Featured Clients — scrolling marquee ---------- */
.marquee{
  background:transparent;color:var(--ink);
  padding:22px 0;overflow:hidden;white-space:nowrap;
  border-top:1px solid #000;       /* next section's top border forms the bottom line */
}
.marquee-track{display:inline-block;animation:marquee 32s linear infinite;}
.marquee:hover .marquee-track{animation-play-state:paused;}
.marquee span{
  font-family:var(--serif);font-weight:700;text-transform:none;
  font-size:2.4rem;letter-spacing:.01em;padding:0;color:#000;
}
/* dot carries equal spacing on both sides -> symmetric gaps */
.marquee span::after{content:"•";color:#000;margin:0 36px;font-size:1rem;vertical-align:middle;}
@keyframes marquee{to{transform:translateX(-50%);}}

/* ---------- Case study layout (Silver Fern Farms) ---------- */
.cases{padding:clamp(3.5rem,8vw,7rem) 0;border-top:1px solid #000;}
.case{max-width:1100px;margin:0 auto;}
.case-idx{font-family:var(--mono);font-size:.8rem;color:var(--muted);letter-spacing:.06em;}
.case-top{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin:8px 0 34px;}
.case h3{font-family:var(--serif);font-weight:700;font-size:clamp(1.6rem,3.4vw,2.6rem);line-height:1.04;letter-spacing:-.02em;margin:0;text-transform:none;}
.case .delta{font-size:1.18rem;color:var(--muted);max-width:520px;}
.case-meta{display:flex;flex-wrap:wrap;gap:10px 28px;font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);}
.case-meta b{color:var(--ink);font-weight:700;}
.figure{position:relative;background:#ecebe7;}   /* overflow visible so the slide shows */
.figure img{width:100%;display:block;}
.case-body{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:46px;}
.case-body h4{font-family:var(--mono);font-weight:400;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:14px;}
.case-body p{color:var(--muted);margin-bottom:18px;line-height:1.7;}
.case-body p b{color:var(--ink);font-weight:600;}
.decisions{list-style:none;}
.decisions li{padding:16px 0;border-top:1px solid rgba(0,0,0,.16);}
.decisions li b{display:block;color:var(--ink);font-weight:600;margin-bottom:4px;}
.decisions li span{color:var(--muted);font-size:.96rem;line-height:1.6;}
.impact{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:30px;border-top:1px solid #000;padding-top:22px;}
.impact .stat__num{font-family:var(--serif);font-size:clamp(1.4rem,3.2vw,2.1rem);font-weight:700;line-height:1;}
.impact .stat__lab{font-family:var(--mono);font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:8px;}
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:24px;}
.gallery .figure img{width:100%;}

/* ---------- Faded B&W showcase images, fade to colour on hover ----------
   Faded look is done with filter (opaque) — not opacity — so the frame
   behind the photo never shows through. */
/* photos stay OPAQUE (grayscale) — the faded look is a paper wash on top,
   so the frame behind can never bleed through the image */
.split-media,
.figure img{
  filter:grayscale(1);
  transition:filter .6s ease;
}
.media-frame:hover .split-media,
.figure:hover img{filter:none;}

/* ---------- Photo frame — on hover photo & its 1px frame slide apart ----------
   Applied to every work image (.media-frame wraps each .split-media). */
.media-frame{position:relative;order:1;align-self:start;}
.media-frame::before,
.figure::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;  /* frame below photo */
  border:1px solid #000;
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
/* faded wash sits ON TOP of the opaque photo (≈ opacity .72 look) */
.media-frame::after,
.figure::after{
  content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:var(--paper);opacity:.28;
  transition:transform .5s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.media-frame .split-media,
.figure img{
  position:relative;z-index:2;
  transition:transform .5s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
/* subtle fixed displacement */
.media-frame:hover::before,
.figure:hover::before{transform:translate(-7px,7px);}      /* frame -> down-left */
.media-frame:hover .split-media,
.figure:hover img{transform:translate(7px,-7px);}          /* photo -> up-right */
.media-frame:hover::after,
.figure:hover::after{transform:translate(7px,-7px);opacity:0;}  /* wash slides with photo & clears */
/* mirrored sections: frame goes to the right column */
.split--mirror .media-frame{order:2;}
@media(max-width:880px){
  .case-top,.case-body{grid-template-columns:1fr;gap:24px;}
  .gallery{grid-template-columns:1fr;}
  .impact{grid-template-columns:1fr;}
  .impact>div{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:10px;}
  .impact .stat__lab{margin-top:0;}
}

/* ---------- Experience / CV band ---------- */
.cv-band{background:var(--paper);padding:clamp(3rem,8vw,6rem) 0;border-top:1px solid #000;}
.cv-sub{margin-top:2.6rem;}
.cv-list{list-style:none;}
.cv-row{
  display:grid;grid-template-columns:1.5fr 1.4fr .8fr;gap:1rem;
  align-items:baseline;
  padding:1.1rem 0;border-bottom:1px solid rgba(0,0,0,.12);
}
.cv-role{font-family:var(--serif);font-weight:700;font-size:clamp(1.05rem,2vw,1.5rem);line-height:1.2;}
.cv-org{color:var(--muted);}
.cv-date{color:var(--muted);text-align:right;font-size:.85rem;letter-spacing:.04em;}
.cv-langs{color:var(--muted);margin-top:1.2rem;}
@media (max-width:640px){
  .cv-row{grid-template-columns:1fr;gap:.15rem;}
  .cv-date{text-align:left;}
}
.section-head{max-width:680px;margin-bottom:3.5rem;}
.section-num{
  display:block;font-size:.75rem;letter-spacing:.3em;
  color:var(--muted);margin-bottom:1rem;
}
.section-head h2,.split-text h2{margin-bottom:1rem;}
.section-head p{color:var(--muted);max-width:46ch;}

/* =========================================================
   SPLIT layouts — 4 variants
   .split--5050  : 50/50 columns
   .split--3070  : 3/7 columns (text 3 : media 7)
   add .split--mirror to flip media to the opposite side
   Text column: title pinned TOP (bold), body pinned BOTTOM (mono)
   ========================================================= */
.split{
  display:grid;
  gap:clamp(2rem,6vw,6rem);
  align-items:stretch;           /* let text column match media height */
}
.split--5050{grid-template-columns:1fr 1fr;}
/* About (5050): portrait fills the text column's height so the bio bottom-aligns
   with the image at every width (object-fit:cover = scaled, never distorted) */
.split--5050 .media-frame{align-self:stretch;min-height:0;}
.split--5050 .split-media{height:100%;object-fit:cover;}
/* 3:7 => text 3 : media 7 (media is the larger side) */
.split--3070{grid-template-columns:7fr 3fr;}
/* hero intro => media 3 (left) : text 7 (right); same gap + stretch as sections */
.hero-split{grid-template-columns:3fr 7fr;}

/* Portfolio images: scale ONLY by their own proportion — never distorted.
   width follows the column, height auto keeps the native aspect ratio. */
.split-media{
  display:block;
  width:100%;
  height:auto;                   /* keep intrinsic aspect ratio */
  border-radius:0;
  align-self:start;              /* don't let the grid stretch (distort) it */
  order:1;                       /* media on the left by default */
}

.split-text{
  order:2;                       /* text on the right by default */
  display:flex;
  flex-direction:column;         /* title top, body bottom */
}

/* MIRROR: flip the two columns */
.split--mirror .split-media{order:2;}
.split--mirror .split-text{order:1;}
.split--3070.split--mirror{grid-template-columns:3fr 7fr;}

/* Title: top-aligned + bold (heading system already 700) */
.split-title{margin:0;}

/* Body: bottom-aligned + Courier Std (mono) */
.split-body{
  margin-top:auto;               /* push to the bottom of the column */
  font-family:var(--mono);
  font-size:.95rem;
  line-height:1.7;
  color:var(--muted);
  max-width:52ch;
}
.split-body p{margin-bottom:1.4rem;}
.split-body p:last-child{margin-bottom:0;}   /* last line sits flush at the bottom */
.link-underline{
  font-family:var(--mono);
  border-bottom:1px solid currentColor;padding-bottom:3px;
  font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);
}

/* footer */
.site-footer{
  background:var(--ink);color:#f4f2ed;
  padding:clamp(4rem,9vw,7rem) 0 3rem;
  min-height:100vh;                 /* footer becomes a full-height region */
  display:flex;flex-direction:column;
}
.footer-inner{display:grid;gap:2.5rem;}
.site-footer h2{color:inherit;}
/* centred, heartfelt contact block */
.footer-contact{text-align:center;}
.footer-headline{
  text-transform:none;            /* it's a sentence, not a title */
  max-width:22ch;                 /* narrow, punchy block */
  margin:0 auto;
  line-height:1.18;
}
.footer-links{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:2.5rem;flex-wrap:wrap;margin-top:2.2rem;}
/* clip-to-text is ALWAYS on (base = solid text colour) so toggling on hover
   doesn't cause a one-frame flash when the mouse leaves */
.footer-link{
  font-family:var(--mono);font-size:1.6rem;
  background:#f4f2ed;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
/* hover: colours blend & drift (mesh), clipped to the text */
.footer-link:hover{
  background-color:#22d3ee;
  background-image:
    radial-gradient(60% 140% at 18% 50%, #34d399 0%, transparent 60%),
    radial-gradient(60% 140% at 45% 50%, #60a5fa 0%, transparent 60%),
    radial-gradient(60% 140% at 72% 50%, #a855f7 0%, transparent 60%),
    radial-gradient(60% 140% at 90% 50%, #a5f3fc 0%, transparent 60%);
  background-size:220% 220%;
  animation:holomesh 7s ease-in-out infinite;
}
/* colours drift around and merge into each other */
@keyframes holomesh{
  0%,100%{background-position:0% 0%, 100% 0%, 100% 100%, 0% 100%;}
  50%{background-position:100% 100%, 0% 100%, 0% 0%, 100% 0%;}
}

/* back-to-top button (centred where the footer nav used to be) */
.back-to-top{
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  width:81px;height:81px;margin:0 auto;
  border:1px solid rgba(244,242,237,.4);border-radius:50%;
  clip-path:circle(50%);            /* reliably clips the blurred glow to a circle */
  color:#f4f2ed;
  transition:border-color .3s ease;
}
.back-to-top svg{position:relative;z-index:2;width:33px;height:33px;}
/* full mesh holo runs across the whole button, but a small cursor-following
   mask reveals only a little circle of it — the rest stays black */
.back-to-top::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background-color:#a855f7;                 /* purple-dominant base */
  background-image:
    radial-gradient(46% 46% at 24% 30%, #34d399 0%, transparent 70%),
    radial-gradient(46% 46% at 80% 26%, #22d3ee 0%, transparent 70%),
    radial-gradient(64% 64% at 62% 74%, #a855f7 0%, transparent 78%),
    radial-gradient(46% 46% at 30% 82%, #818cf8 0%, transparent 70%);
  background-size:180% 180%;
  filter:blur(8px);                         /* softer, more diffuse */
  animation:holomesh 7s ease-in-out infinite;
  -webkit-mask:radial-gradient(circle 78px at var(--mx,50%) var(--my,50%), #000 0%, transparent 100%);
          mask:radial-gradient(circle 78px at var(--mx,50%) var(--my,50%), #000 0%, transparent 100%);
  opacity:0;transition:opacity .35s ease;
}
.back-to-top:hover::before{opacity:1;}
/* oversized RECTANGULAR ghost button — Download Portfolio (footer, dark bg) */
/* download band — light strip between last section and the footer */
.download-band{scroll-margin-top:var(--header-h);
  background:var(--paper);
  padding-block:clamp(2rem,5vw,4rem);   /* keeps the gap above the button */
}
.footer-cta-wrap{
  width:100%;max-width:var(--site-max);
  margin:0 auto;
  padding-inline:var(--gutter);
}
.footer-btn{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  width:100%;
  padding:clamp(1.4rem,4vw,3rem) clamp(1.5rem,4vw,3rem);
  border:1.5px solid var(--ink);border-radius:0;
  font-family:var(--serif);font-weight:700;
  font-size:clamp(1.6rem,6vw,4.5rem);line-height:1;
  letter-spacing:-.02em;text-transform:uppercase;color:var(--ink);
  transition:background .3s ease,color .3s ease,border-color .3s ease;
}
.footer-btn-label{flex:1 1 auto;}
.dl-icon{flex:0 0 auto;width:.95em;height:.95em;}
.footer-btn:hover{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.footer-nav{display:flex;gap:2rem;}
.footer-nav a{font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.7);}
.footer-nav a:hover{color:#fff;}
.copyright{font-size:.72rem;letter-spacing:.08em;color:rgba(255,255,255,.45);}
/* colophon — AI/Claude Code credit at the very bottom */
.colophon{
  position:relative;z-index:1;
  margin-top:clamp(1rem,2.5vw,1.75rem);
  padding-inline:var(--gutter);
  font-family:var(--mono);
  font-weight:400;                 /* override h4 heading weight */
  text-transform:none;             /* override h4 capitalize */
  letter-spacing:.01em;
  font-size:clamp(1.6rem,4vw,2rem);  /* heading-3 size */
  line-height:1.3;
  color:rgba(244,242,237,.45);
}

/* bottom half — oversized name filling the full width AND height */
.footer-big{
  flex:1 1 auto;                    /* grow to fill remaining footer height */
  display:flex;align-items:stretch;
  width:100%;max-width:var(--site-max);
  margin:clamp(1.5rem,4vw,3rem) auto 0;
  padding-inline:var(--gutter);
  min-height:16vh;
}
.masa{
  display:block;width:100%;height:100%;
  fill:#f4f2ed;
}
.masa text{
  font-family:var(--display);   /* Pragmatica Extended */
  font-weight:700;
  line-height:1.3em;
  font-size:130px;              /* viewBox units; textLength stretches to fill */
}

/* =========================================================
   RESPONSIVE — Brine-style breakpoints
   ========================================================= */

/* Tablet: collapse 3-col to 2-col (Brine collapses index columns here) */
@media (max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .site-nav{gap:1.6rem;}
  /* scale the heading system down proportionally */
  h1{font-size:4.4rem;}
  h2{font-size:3rem;}
  h3{font-size:1.8rem;}
  h4{font-size:1.4rem;}
}

/* MOBILE — Brine primary breakpoint at 640px.
   Nav collapses to overlay menu, all multi-col grids become single column. */
@media (max-width:640px){
  :root{--header-h:64px;--gutter:6vw;}

  /* mobile: no hover/slide effect, no faded look — images show full colour */
  .split-media,.figure img{filter:none!important;transform:none!important;}
  .media-frame::before,.figure::before,
  .media-frame::after,.figure::after{display:none;}
  /* marquee text at half size */
  .marquee span{font-size:1.2rem;}

  .nav-toggle{display:flex;}
  .site-nav{
    position:fixed;inset:0;z-index:40;
    flex-direction:column;align-items:center;justify-content:center;
    gap:2.2rem;background:var(--ink);
    transform:translateY(-100%);
    opacity:0;visibility:hidden;pointer-events:none;   /* fully hidden when closed */
    transition:transform .4s cubic-bezier(.7,0,.2,1), opacity .35s ease, visibility 0s linear .4s;
  }
  .site-nav.open{
    transform:translateY(0);
    opacity:1;visibility:visible;pointer-events:auto;
    transition:transform .4s cubic-bezier(.7,0,.2,1), opacity .35s ease;
  }
  /* don't let the scrolled header's backdrop-filter trap the fixed overlay */
  .site-header.menu-open{backdrop-filter:none;-webkit-backdrop-filter:none;background:transparent;box-shadow:none;}
  /* overlay menu links stay white even if header is in scrolled state */
  .site-nav a,
  .site-header.scrolled .site-nav a{color:#fff;font-size:1.1rem;}

  /* keep brand readable above dark overlay menu */
  .site-header.menu-open .brand{color:#fff;}
  .site-header.menu-open .nav-toggle span{background:#fff;}

  h1{font-size:3.2rem;}
  h2{font-size:2.4rem;}
  h3{font-size:1.6rem;}
  h4{font-size:1.3rem;}

  /* all split variants -> single column, media on top, body below */
  .split,
  .split--5050,
  .split--3070,
  .split--3070.split--mirror,
  .hero-split{grid-template-columns:1fr;}
  .media-frame{order:-1!important;}      /* image on top when stacked */
  .split-media{width:100%;height:auto;}
  .split-text{order:0;}
  .split-body{margin-top:1.4rem;}
  /* stacked sections scroll naturally instead of forcing one screen each */
  .index-section{min-height:0;height:auto;}
  .footer-nav{flex-wrap:wrap;gap:1.2rem;}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto;transition:none!important;}
}
