/* ============================================================
   SOVITAE / VESTA — Marketing website (faithful build)
   Matches VESTA_WEB_A mockup, with live-site flair.
   Foundations from ../colors_and_type.css
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-grotesque);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* local chart + cream tokens (sampled from mockup) */
:root {
  --cream:        #FEFCF9;
  --chart-darkred:#8A0000;
  --chart-red:    #E00105;
  --chart-navy:   #34455C;
  --chart-div:    #AE7F98;
  --case-yellow:  #FBE99B; /* pale-yellow card behind lemon */
}

/* ---- container -------------------------------------------- */
.wrap { width: 100%; max-width: 1568px; margin: 0 auto; padding: 0 clamp(22px, 4.6vw, 80px); }
section { position: relative; }

/* ---- type utilities --------------------------------------- */
.d-hero    { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.14; letter-spacing: -0.005em; }
.d-section { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5.6vw, 92px); line-height: 1.0; }
.d-mid     { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 78px); line-height: 1.1; letter-spacing: -0.005em; }
.d-xl      { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 8.4vw, 132px); line-height: 0.92; }
.eyebrow   { font-family: var(--font-grotesque); font-weight: 700; font-size: clamp(13px, 1vw, 17px); letter-spacing: 0.07em; text-transform: uppercase; }
.body      { font-family: var(--font-grotesque); font-weight: 500; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; }
.body-sm   { font-family: var(--font-grotesque); font-weight: 500; font-size: 14.5px; line-height: 1.45; }
.wordmark  { font-family: var(--font-grotesque); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; line-height: 0.9; }

/* ---- pills / buttons -------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-grotesque); font-weight: 700; font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 15px 30px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: background .3s cubic-bezier(.2,.7,.2,1), color .3s, transform .15s, box-shadow .3s;
}
.pill:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.pill:active { transform: translateY(0); }

/* solid wine rectangular submit */
.btn-submit {
  width: 100%; padding: 22px; background: var(--wine); color: #fff;
  font-family: var(--font-grotesque); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 16px;
  transition: background .3s, transform .15s, box-shadow .3s;
}
.btn-submit:hover { background: #4a0029; box-shadow: 0 10px 26px rgba(95,1,56,.3); transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); }

/* ---- bands ------------------------------------------------ */
.band { padding-block: clamp(60px, 8vw, 132px); }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .4s ease, box-shadow .4s ease, padding .3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.nav-left { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 38px); }
.nav-link { color: #fff; font-family: var(--font-grotesque); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; position: relative; transition: opacity .2s; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: currentColor; transition: right .3s ease; }
.nav-link:hover::after { right: 0; }
.nav.scrolled { background: rgba(12,2,8,0.86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.scrolled .nav-inner { padding-block: 16px; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.flags { display: flex; align-items: center; gap: 12px; }
.flag { font-size: 21px; line-height: 1; filter: saturate(1.05); opacity: .65; transition: opacity .2s, transform .2s; text-decoration: none; }
.flag:hover { opacity: 1; transform: translateY(-2px) scale(1.12); }
.flag.is-active { opacity: 1; }

/* mobile menu toggle (hidden on desktop) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-right: -8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: #11140f; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url(assets/hero-field.png) center 38% / cover no-repeat; will-change: transform; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.13) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,.10) 100%); }
.hero-wordmark { position: absolute; left: clamp(22px, 4.6vw, 80px); bottom: clamp(70px, 12vh, 150px); display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1vw, 16px); color: var(--pale-yellow); z-index: 3; }
.hero-wordmark .mk { width: clamp(40px, 4.2vw, 64px); height: auto; }
.hero-wordmark .wm { font-size: clamp(58px, 9.2vw, 150px); }
.hero-card {
  position: absolute; top: 0; right: 0; z-index: 4;
  width: clamp(360px, 47vw, 815px); min-height: clamp(460px, 70vh, 760px);
  background: var(--yellow);
  padding: clamp(34px, 3.6vw, 64px) clamp(34px, 4vw, 72px) clamp(40px, 4.4vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 3.4vh, 46px);
}
.hero-card h1 { color: var(--ink); max-width: 19ch; }
.hero-card .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   MISSION
   ============================================================ */
.mission { background: var(--paper); }
.mission .body { color: var(--wine); max-width: 62ch; }

/* full-bleed photo */
.fullphoto { position: relative; width: 100%; height: clamp(340px, 44vw, 720px); overflow: hidden; }
.fullphoto > .img { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }

/* clever-farming card: floats over the bottom-right of the photo so the wine
   Approach section butts directly against the photo (no cream gap below). */
.clever-wrap { position: relative; height: 0; z-index: 5; }
.clever {
  position: absolute; right: 0; bottom: 0; width: min(50vw, 720px);
  background: var(--paper); padding: clamp(34px, 3.6vw, 64px);
}
.clever .eyebrow { color: var(--wine); margin-bottom: 16px; }
.clever .body { color: var(--wine); }

/* ============================================================
   APPROACH (wine)
   ============================================================ */
.approach { background: var(--wine); padding-block: clamp(60px, 8vw, 120px); }
.approach .eyebrow { color: var(--lavender); text-align: center; }
.approach .d-section { color: var(--lavender); text-align: center; }
/* callout diagram: labels flank the centered beetroot, each connected to the
   plant by a thin rule that runs from the text to the image edge */
.approach-diagram { display: grid; grid-template-columns: 1fr clamp(300px, 30vw, 500px) 1fr; align-items: stretch; margin-top: clamp(40px, 5vw, 70px); }
.diag-img { background: url(assets/plant-roots.png) 40% center / cover no-repeat; min-height: clamp(440px, 46vw, 660px); }
.diag-col { display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(6px, 1.4vw, 22px); }
.diag-col.left  { text-align: left;  padding-right: clamp(8px, 1vw, 18px); }
.diag-col.right { text-align: right; padding-left:  clamp(8px, 1vw, 18px); }
.annot { padding-bottom: 12px; border-bottom: 1px solid rgba(226, 194, 229, .5); }
.annot .k-title { font-family: var(--font-grotesque); font-weight: 700; font-size: clamp(16px, 1.25vw, 19px); letter-spacing: .02em; color: var(--lavender); margin-bottom: 8px; }
.annot .k-body { color: var(--sand); font-size: 13.5px; line-height: 1.45; font-weight: 500; max-width: 34ch; }
.diag-col.right .annot .k-body { margin-left: auto; }
.approach-foot { color: var(--sand); text-align: center; max-width: 70ch; margin: clamp(40px,5vw,64px) auto 0; }

/* ============================================================
   HOW WE WORK (sage)
   ============================================================ */
.work { background: var(--sage); position: relative; overflow: hidden; padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(150px, 20vw, 340px); }
.work .eyebrow { color: var(--green); text-align: center; }
.work .d-section { color: var(--green); text-align: center; }
/* pre-rotated cabbage (90° CW) rests at the very bottom of the band; its lower
   part is cut off by the section edge via the section's overflow:hidden */
.work-photo { position: absolute; left: 50%; bottom: clamp(-150px, -12vw, -80px); transform: translateX(-50%); width: clamp(340px, 46vw, 720px); pointer-events: none; }
.work-photo img { display: block; width: 100%; height: auto; }
.work-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.2vw, 56px); }
.work-cols h3 { font-family: var(--font-grotesque); font-weight: 700; font-size: clamp(17px,1.4vw,20px); color: var(--green); margin-bottom: 12px; }
.work-cols p { color: var(--green); }

/* ============================================================
   PRODUCTS (two-tone split cards)
   ============================================================ */
.products { background: var(--paper); }
.products .eyebrow { color: var(--wine); text-align: center; letter-spacing: .12em; }
.products .d-mid { color: var(--wine); text-align: center; max-width: 18ch; margin: 12px auto 0; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 26px); margin-top: clamp(40px,5vw,68px); }
.pcard { position: relative; aspect-ratio: 0.78; overflow: hidden; }
.pcard .split { position: absolute; inset: 0; display: flex; }
.pcard .split > div:first-child { flex: 0 0 38%; }
.pcard .split > div:last-child { flex: 1; }
.pcard .pc-content { position: absolute; inset: 0; z-index: 2; padding: clamp(20px,1.8vw,30px); display: flex; flex-direction: column; }
.pcard .pc-eyebrow { font-family: var(--font-grotesque); font-weight: 700; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.pcard .pc-title { font-family: var(--font-display); font-size: clamp(20px,1.8vw,27px); line-height: 1.06; margin-top: 6px; }
.pcard .pc-body { margin-top: auto; font-size: 13.5px; line-height: 1.4; font-weight: 500; max-width: 24ch; }
.pcard .cut { position: absolute; z-index: 1; pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .cut { transform: scale(1.06) rotate(-3deg); }
.pcard.photo .cut { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .photo-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 45%, rgba(0,0,0,.55)); }

/* ============================================================
   EVIDENCE (paired bars)
   ============================================================ */
.evidence { background: var(--cream); padding-block: clamp(56px, 7vw, 110px); }
.evidence .eyebrow { color: var(--wine); text-align: center; letter-spacing: .1em; }
.evidence .d-mid { color: var(--wine); text-align: center; margin: 12px auto 0; }
.evidence .lead { color: var(--ink); text-align: center; max-width: 60ch; margin: 20px auto 0; }
.cases { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(44px,5vw,72px); }
.case { position: relative; padding: 0 clamp(20px,2.4vw,44px); border-right: 1px solid var(--chart-div); }
.case:last-child { border-right: none; }
.case-bars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px,0.9vw,16px); height: clamp(220px, 22vw, 300px); }
.bar-wrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: clamp(32px, 3vw, 52px); height: var(--h); transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.in .bar { animation: bar-grow .95s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.case-pct { font-family: var(--font-display); font-size: clamp(20px,1.8vw,26px); line-height: 1; margin-bottom: 8px; }
.case-fruit { margin-bottom: -16px; z-index: 3; pointer-events: none; filter: drop-shadow(0 7px 9px rgba(0,0,0,.14)); }
.case-label { font-family: var(--font-grotesque); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--wine); margin-top: 18px; }
.case-text { color: var(--fg-muted); font-size: 13px; line-height: 1.4; margin-top: 6px; font-weight: 500; }

/* ============================================================
   CASE STUDIES (lemon before/after)
   ============================================================ */
.casestudy { background: var(--paper); padding-block: clamp(40px, 5vw, 90px); }
.cs-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(28px, 4vw, 80px); align-items: center; }
.cs-grid h2 { color: var(--wine); }
.cs-grid .body { color: var(--wine); margin-top: 18px; max-width: 30ch; }
.cs-stage-wrap { position: relative; }
.cs-stage { position: relative; width: 100%; aspect-ratio: 1.25; background: var(--case-yellow); overflow: hidden; user-select: none; }
.cs-stage .cs-img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; z-index: 1; user-select: none; }
.cs-img--dull { z-index: 2; filter: grayscale(.5) brightness(.97) saturate(.45) sepia(.16) hue-rotate(32deg); }
.cs-line { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.92); transform: translateX(-1px); z-index: 3; }
.cs-handle { position: absolute; top: 50%; width: 58px; height: 58px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; cursor: ew-resize; z-index: 4; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .12s; }
.cs-handle:active { transform: translate(-50%,-50%) scale(.94); }
.cs-tag { position: absolute; top: 18px; font-family: var(--font-grotesque); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; z-index: 3; }
.cs-tag.left { left: 18px; color: var(--ink); }
.cs-tag.right { right: 18px; color: var(--ink); }
.cs-offset { position: absolute; right: -26px; top: 8%; bottom: 8%; width: 60px; background: var(--sage); z-index: 0; }
.cs-captions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.cs-captions h4 { font-family: var(--font-grotesque); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.cs-captions p { color: var(--fg-muted); font-size: 13.5px; line-height: 1.45; font-weight: 500; }

/* ============================================================
   TESTIMONIALS (sky)
   ============================================================ */
.testi { background: var(--sky); padding-block: clamp(60px, 8vw, 120px); }
.testi .eyebrow { color: var(--navy); text-align: center; }
.testi .d-section { color: var(--navy); text-align: center; max-width: 22ch; margin: 14px auto clamp(40px,5vw,64px); font-size: clamp(34px,4.8vw,80px); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 34px); }
.tcard .tphoto { width: 100%; aspect-ratio: 1.5; overflow: hidden; background: var(--sage); }
.tcard .tphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tcard:hover .tphoto img { transform: scale(1.05); }
.tcard .trole { font-family: var(--font-grotesque); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); opacity: .65; margin-top: 18px; }
.tcard .tname { font-family: var(--font-display); font-size: clamp(22px,2vw,30px); color: var(--navy); margin-top: 4px; }
.tcard .tbody { color: var(--navy); margin-top: 14px; font-size: 14.5px; line-height: 1.5; font-weight: 500; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--cream); padding-block: clamp(60px, 8vw, 130px); }
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact h2 { color: var(--wine); }
.contact .lead { color: var(--wine); max-width: 36ch; margin-top: 26px; }
.contact .eyebrow { color: var(--wine); margin-bottom: 22px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-grotesque); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--wine); margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-grotesque); font-weight: 500; font-size: 16px;
  border: 1px solid var(--wine); background: transparent; color: var(--ink);
  padding: 16px 18px; outline: none; transition: box-shadow .25s, border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(95,1,56,.14); }
.thanks { border: 1px solid var(--wine); padding: 40px 36px; background: #fff; }
.thanks h3 { font-family: var(--font-display); color: var(--wine); font-size: 32px; margin: 14px 0 8px; }
.thanks p { color: var(--ink); }

/* ============================================================
   FOOTER (wine)
   ============================================================ */
.foot { background: var(--wine); padding: clamp(56px,7vw,110px) 0 56px; color: var(--lavender); }
.foot .wordmark { color: var(--lavender); font-size: clamp(64px, 11vw, 168px); margin-bottom: clamp(48px,6vw,90px); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: clamp(28px,3vw,48px); }
.foot h4 { font-family: var(--font-grotesque); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender); margin-bottom: 16px; }
.foot a, .foot p { color: var(--sand); font-weight: 500; font-size: 16px; line-height: 1.9; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--lavender); }
.foot .loc { display: grid; grid-template-columns: 1fr 1fr; }
.foot-rule { height: 1px; background: rgba(226,194,229,.3); margin: clamp(36px,4vw,56px) 0; }
.foot-bottom { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px,3vw,48px); align-items: start; }
.socials { display: flex; gap: 14px; }
.soc { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(226,194,229,.55); display: flex; align-items: center; justify-content: center; transition: background .25s, transform .2s, border-color .25s; }
.soc:hover { background: var(--lavender); transform: translateY(-3px); border-color: var(--lavender); }
.soc:hover svg { fill: var(--wine); }
.soc svg { fill: var(--lavender); transition: fill .25s; }
.main-pages { display: grid; grid-template-columns: 1fr 1fr; }

/* ============================================================
   ENTRANCE — content is ALWAYS visible (opacity never gated).
   The animation is transform-only enhancement: if it's frozen,
   never fires, or JS is absent, text is at most offset a few px
   and stays fully readable. .in is added on scroll where possible.
   ============================================================ */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.in { animation: rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
  .js .reveal.in.d1 { animation-delay: .09s; }
  .js .reveal.in.d2 { animation-delay: .18s; }
  .js .reveal.in.d3 { animation-delay: .27s; }
}
@keyframes rise-in { from { transform: translateY(18px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  /* approach diagram stacks: photo on top, labelled list below */
  .approach-diagram { grid-template-columns: 1fr; }
  .diag-img { order: -1; min-height: clamp(300px, 58vw, 460px); margin-bottom: 30px; }
  .diag-col { justify-content: flex-start; padding-block: 0; }
  .diag-col.left, .diag-col.right { text-align: left; padding-left: 0; padding-right: 0; }
  .diag-col.right .annot .k-body { margin-left: 0; }
  .annot { margin-bottom: 20px; }
  .annot .k-body { max-width: none; }
  .work-cols { grid-template-columns: 1fr; gap: 24px; }
  .pgrid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pcard { aspect-ratio: 1.4; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case:nth-child(2) { border-right: none; }
  .case { border-bottom: 1px solid var(--chart-div); padding-bottom: 28px; margin-bottom: 12px; }
  .cs-grid { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { grid-template-columns: 1fr; }
  .hero-card { width: 56vw; }
  /* card returns to normal flow below the photo on smaller screens */
  .clever-wrap { height: auto; }
  .clever { position: static; right: auto; bottom: auto; width: auto; margin-top: clamp(-90px, -9vw, -50px); }
}
@media (max-width: 680px) {
  /* nav: collapse links into a toggle dropdown */
  .nav-toggle { display: flex; }
  .nav-left {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12,2,8,0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open .nav-left { max-height: 320px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav-left .nav-link { padding: 16px clamp(22px, 4.6vw, 80px); }
  .nav-left .nav-link::after { display: none; }

  /* hero: media block on top, yellow card stacked below */
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-media { position: relative; inset: auto; height: 56vh; min-height: 360px; }
  .hero-card { position: relative; width: 100%; min-height: 0; }
  .hero-wordmark { left: clamp(22px, 5vw, 40px); bottom: clamp(28px, 6vh, 48px); gap: 8px; }
  .hero-wordmark .mk { width: 40px; }
  .hero-wordmark .wm { font-size: clamp(46px, 14vw, 78px); }

  /* misc mobile cleanups */
  .clever { margin-top: -32px; }
  .cs-offset { display: none; }
  .cases { grid-template-columns: 1fr; }
  .case { border-right: none; }
  .cs-captions, .foot-cols, .foot .loc, .main-pages { grid-template-columns: 1fr; }
}
