/* ============================================================
   v2 — "Botly-structure" exploration for Crystal Zhang
   Derived from botly-template.webflow.io, measured not guessed:
     display   Clash Display 600, letter-spacing -0.04em, line-height 1.0
     body      Switzer (our Inter equivalent, same foundry as Clash)
     ground    #F2F2F2   paper #FFFFFF   ink #111111
     radius    24px dominant (51 uses), 16/12px minor, 50% circles, pills
     nav       rgba(255,255,255,0.10) + blur(12px), 1px rgba(255,255,255,.14)

   House rules kept from Quiet Precision: sentence case everywhere, no
   uppercase tracked labels, 16px functional minimum, no em dashes in copy,
   reduced-motion honoured. The template's one uppercase label
   ("DESIGN AGENCY") is deliberately NOT reproduced.
   ============================================================ */

/* Tokens live in v2-tokens.css, which every page loads BEFORE this file.
   This stylesheet holds components only. It reads semantic and component
   tokens and never a raw primitive, so there is one definition of each
   value in the system rather than two that drift. */
@import url("v2-tokens.css");

*, *::before, *::after { box-sizing: border-box; }

body.v2 {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.v2-frame { max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
/* The hero plate is inset by --hero-inset, so a frame inside it starts that
   much further in than a frame on the page. Shrinking the frame and its
   padding by exactly the inset cancels this in BOTH regimes: when the frame
   is max-width constrained the centring already absorbed it, and when it is
   not, the padding does. Without this the hero text sat 10px right of every
   section heading on any screen under ~1380px. */
.v2-hero .v2-frame {
  max-width: calc(var(--frame-max) - 2 * var(--hero-inset));
  padding-inline: calc(var(--space-inline) - var(--hero-inset));
}

/* ---------- display type ----------
   line-height 1.0 and -0.04em are the template's measured values. At this
   tracking the type only works at size: never set .v2-display below 32px. */
/* SplitText clips each line to its own box so a word can rise from nothing.
   At --leading-tight (0.88) that box is SHORTER than the glyphs: an 78px
   line gets a 69px box and the descender of "Zhang" loses 11px. The padding
   gives the mask room and the matching negative margin gives the height
   back, so the fix is invisible to layout. */
.v2-line { padding-bottom: 0.18em; margin-bottom: -0.18em; }

.v2-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.v2-d1 { font-size: clamp(3.5rem, 2rem + 9vw, 10.5rem); line-height: 0.88; }
.v2-d2 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
.v2-d3 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.v2-num { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; font-size: clamp(2.75rem, 1.8rem + 4vw, 4.5rem); }

/* superscript counter, as in "Selected work." with a (5) */
.v2-count { font-family: var(--font-body); font-size: 0.28em; font-weight: 500; vertical-align: super; letter-spacing: 0; color: var(--ink-3); }

/* ---------- labels: a dot and sentence case, never uppercase ---------- */
.v2-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink); margin: 0;
}
.v2-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.v2-label--light { color: var(--on-dark); }

.v2-lede { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); line-height: 1.4; color: var(--ink); margin: 0; }
.v2-sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.v2-sub--light { color: var(--on-dark-2); }

/* ---------- nav pill ---------- */
/* The bar is full width; its CONTENTS sit on .v2-frame, the same frame every
   section uses, so the logo starts on the identical left edge as the headings
   below it. Padding the bar directly put it 30px adrift of them. */
/* Fixed, not absolute: the bar follows the reader down the page. It starts
   transparent over the hero, then condenses into a floating dark pill once
   the hero is behind it. The pill stays dark on every ground, which is what
   lets one set of colours work over the hero AND over the light sections,
   and it keeps the language toggle reachable at any scroll position rather
   than stranding it at the top of the document. */
.v2-nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-block: var(--s3); min-height: var(--nav-h); pointer-events: none; }
.v2-nav > .v2-frame,
.v2-nav > .v2-menu-panel { pointer-events: auto; }
.v2-nav > .v2-frame {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
/* The condensed pill is PAINTED, not laid out. Transitioning padding and
   max-width meant every frame of the condense was a reflow of the whole
   bar, which is the lurch. This is a backdrop behind the same, unmoved
   content: only opacity and transform change, so it composites. */
.v2-nav > .v2-frame::before {
  content: ""; position: absolute; inset: -10px -14px; z-index: -1;
  border-radius: var(--radius-full);
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-4);
  opacity: 0; transform: scale(0.96);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.v2-nav.is-stuck > .v2-frame::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .v2-nav > .v2-frame::before { transition: none; }
}
/* once condensed the bar is dark wherever it is, so it borrows the on-dark
   treatment regardless of the section underneath */
.v2-nav.is-stuck .v2-logo,
.v2-nav.is-stuck .v2-navlink,
.v2-nav.is-stuck .v2-btn--outline { color: var(--color-text-on-invert); }
.v2-nav.is-stuck .v2-btn--outline { border-color: var(--btn-ghost-border-on-invert); }
.v2-nav.is-stuck .v2-navpill { background: rgba(255,255,255,0.10); border-color: var(--line-dark); }
.v2-nav.is-stuck .v2-lang { border-color: var(--btn-ghost-border-on-invert); }
.v2-nav.is-stuck .v2-lang button { color: var(--color-text-on-invert); }
.v2-nav.is-stuck .v2-lang button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); }
@media (prefers-reduced-motion: reduce) { .v2-nav > .v2-frame { transition: none; } }
.v2-logo { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.v2-nav--on-dark .v2-logo { color: var(--on-dark); }

.v2-navpill { display: flex; align-items: center; gap: 2px; padding: 7px; border-radius: var(--r-pill); background: var(--ground-2); border: 1px solid transparent; }
.v2-nav--on-dark .v2-navpill { background: rgba(255,255,255,0.10); border-color: var(--line-dark); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* The label is present twice and the stack rolls up by exactly one line on
   hover, so the word appears to flip over to a fresh copy of itself. The
   reference does this, which is why reading its nav returns "StudioStudio".
   --roll-h is the clip height AND the travel, so they cannot drift apart. */
.v2-navlink { --roll-h: 1.4em; display: inline-block; padding: 11px 22px; border-radius: var(--r-pill); font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.v2-roll-wrap { display: block; height: var(--roll-h); overflow: hidden; }
.v2-roll { display: block; transition: transform var(--dur) var(--ease); }
.v2-roll-i { display: block; height: var(--roll-h); line-height: var(--roll-h); white-space: nowrap; }
.v2-navlink:hover .v2-roll, .v2-navlink:focus-visible .v2-roll { transform: translateY(calc(-1 * var(--roll-h))); }
@media (prefers-reduced-motion: reduce) {
  /* the second copy is decoration, so reduced motion simply never shows it */
  .v2-navlink:hover .v2-roll, .v2-navlink:focus-visible .v2-roll { transform: none; }
}
.v2-nav--on-dark .v2-navlink { color: var(--on-dark); }
.v2-navlink:hover, .v2-navlink:focus-visible { background: var(--paper); color: var(--ink); }
.v2-nav--on-dark .v2-navlink:hover, .v2-nav--on-dark .v2-navlink:focus-visible { background: rgba(255,255,255,0.18); color: var(--on-dark); }
.v2-navlink sup { font-size: 12px; color: var(--ink-3); }
.v2-nav--on-dark .v2-navlink sup { color: var(--on-dark-3); }

/* ---------- buttons ---------- */
/* Height is set, not derived. Vertical padding plus a 16px label would run
   past the reference's 48px, and the control height is the thing the eye
   actually compares across a row of buttons. Every variant carries a 1px
   border so they all occupy the same box whether the border is visible or
   not. */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--btn-gap);
  height: var(--btn-height); padding-inline: var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-family: var(--font-body); font-size: var(--btn-font-size); font-weight: var(--weight-medium);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* A disc is 40px inside a 48px control, so that side keeps 4px and the disc
   supplies the rest of the optical padding itself. */
.v2-btn:has(.v2-btn-disc) { padding-right: var(--btn-pad-x-disc); }

/* glass: the quiet button ON a dark ground. Not a white fill, which is what
   made our pair read as two primaries competing. */
.v2-btn--glass { background: var(--btn-glass-bg); border-color: var(--btn-glass-border); color: var(--color-text-on-invert); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.v2-btn--glass:hover { background: rgba(255,255,255,0.16); border-color: var(--color-text-on-invert); }

.v2-btn--dark { background: var(--color-text); color: var(--color-text-on-invert); border-color: var(--color-text); }
.v2-btn--dark:hover { background: var(--c-neutral-800); border-color: var(--c-neutral-800); }
.v2-btn--light { background: var(--color-surface); color: var(--color-text); border-color: var(--btn-light-border); }
.v2-btn--light:hover { background: var(--color-surface-sunk); }
.v2-btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.v2-btn--outline:hover { border-color: var(--color-text); }
.v2-nav--on-dark .v2-btn--outline { color: var(--color-text-on-invert); border-color: var(--btn-ghost-border-on-invert); }
.v2-nav--on-dark .v2-btn--outline:hover { background: rgba(255,255,255,0.10); border-color: var(--color-text-on-invert); }

.v2-btn-disc { width: var(--btn-disc); height: var(--btn-disc); border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--color-text); color: var(--color-text-on-invert); }
.v2-btn--dark .v2-btn-disc, .v2-btn--glass .v2-btn-disc { background: var(--color-surface); color: var(--color-text); }
.v2-btn-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.v2-iconbtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.v2-iconbtn:hover { background: var(--ink); color: var(--on-dark); }
.v2-iconbtn--solid { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.v2-iconbtn--solid:hover { background: #282828; }

/* ---------- hero: a dark rounded plate inset on the light ground ---------- */
.v2-hero {
  position: relative; margin: var(--hero-inset); border-radius: var(--hero-radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, #3A3A3E 0%, rgba(58,58,62,0) 58%),
    radial-gradient(90% 70% at 10% 95%, #252529 0%, rgba(37,37,41,0) 60%),
    #141416;
  color: var(--on-dark);
  min-height: min(92vh, 900px);
  display: flex; flex-direction: column; justify-content: space-between;
  /* no inline padding: the hero's children sit on .v2-frame instead, so the
     giant title starts on the same left edge as every section heading. */
  padding: var(--hero-pad-top) 0 var(--gutter);
}
/* The live field (components/v2-hero-field.js). It is the plate's FIRST
   child, so it paints under the nav, under the grain and under the
   z-index:1 content groups without a z-index race. The CSS gradients above
   stay exactly as they are: they are the fallback whenever the canvas is
   not there (no WebGL, lost context, JS blocked), and the shader's palette
   is pitched to match them so the swap is not visible. */
.v2-hero-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
  /* The field carries the plate's own tonality, so it fades in rather than
     cutting over the gradients on the first frame. */
  animation: v2-field-in 900ms var(--ease) both;
}
@keyframes v2-field-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .v2-hero-field { animation: none; }
}

/* grain, so the plate is tonal rather than flat */
.v2-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Only the content groups are lifted above the grain. This used to be
   `.v2-hero > *`, which also caught the nav: same specificity, later in the
   file, so it overrode `position: absolute` and dropped the nav into flow,
   where the hero's top padding pushed it 128px down the plate. */
.v2-hero-top, .v2-hero-bottom { position: relative; z-index: 1; }
/* The grid moved onto the frame child. The groups themselves are now only
   stacking contexts, so their contents align with every section below. */
.v2-hero-top > .v2-frame { display: grid; gap: var(--size-4); }
.v2-hero-rule { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; color: var(--on-dark); }
.v2-hero-rule::before { content: ""; width: 38px; height: 2px; background: currentColor; flex: none; }
.v2-hero-bottom { margin-top: var(--size-8); }
/* stretch, not end: with `end` the two columns only agreed on their bottom
   edge and the taller strip overhung the text by whatever the difference
   happened to be. Stretched, the strip takes its height from the column
   beside it, so both tops and both bottoms line up. */
.v2-hero-cols { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.25fr); gap: var(--size-7); align-items: end; }
/* The reference holds roughly a 2:1 ratio between "lede to buttons" and the
   gaps inside the lede itself. 40px reads as a deliberate step; the 28px it
   replaced let the buttons collide with the sentence above them. */
.v2-hero-say { display: grid; gap: var(--block-gap); max-width: 440px; }
.v2-hero-slash { font-family: var(--font-display); font-size: 20px; color: var(--on-dark-3); }
.v2-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* card strip: a marquee that plays by itself, as the reference does.
   Not a native scroller any more. The track holds the set twice and
   translates by exactly half its width plus half a gap, so the second set
   lands where the first began and the loop has no seam. Both edges fade
   permanently here, because with the track always moving there is always
   something passing under them. */
.v2-strip {
  --strip-gap: var(--size-4);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent 100%);
}
.v2-strip-track {
  display: flex; align-items: flex-end; gap: var(--strip-gap); width: max-content;
  animation: v2marquee var(--strip-duration, 48s) linear infinite;
}
/* pause when someone is looking at a particular card, or tabbing through */
.v2-strip:hover .v2-strip-track,
.v2-strip:focus-within .v2-strip-track { animation-play-state: paused; }
@keyframes v2marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - (var(--strip-gap) / 2))); }
}
/* Measured off the reference: 321x200, so 8:5, at a 24px radius and with NO
   box-shadow. Letting these stretch to the height of the text column made
   them 240+ and heavy; the elegance is the short frame and the edge mask,
   not a shadow. The columns bottom-align instead, which is what the
   reference does. */
.v2-strip-card { flex: 0 0 clamp(200px, 26vw, 321px); aspect-ratio: 8 / 5; border-radius: var(--radius-4); overflow: hidden; background: var(--ground-2); box-shadow: none; }
.v2-strip-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Scroll cue. The label reads vertically; the line underneath is a dim track
   with a bright segment that travels down it and repeats. Transform only, so
   nothing lays out per frame. */
.v2-scrolldown { position: absolute; right: var(--s3); top: 38%; z-index: 2; display: grid; justify-items: center; gap: var(--s2); margin: 0; }
.v2-scroll-txt { writing-mode: vertical-rl; font-size: 14px; color: var(--on-dark-2); letter-spacing: 0.01em; }
.v2-scroll-line { position: relative; width: 1px; height: 76px; overflow: hidden; background: rgba(255,255,255,0.16); }
.v2-scroll-line::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--on-dark));
  transform: translateY(-100%);
  animation: v2drop 2600ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
@keyframes v2drop {
  0%   { transform: translateY(-100%); }
  70%  { transform: translateY(253%); }
  100% { transform: translateY(253%); }
}

/* ---------- sections ---------- */
.v2-section { padding-block: var(--section-y); }
/* Two sections on the same ground used to stack their padding, so a plain
   section following a plain section opened a ~190px hole with nothing in it.
   A change of ground still gets both paddings, because there the gap is
   doing visible work. */
.v2-section:not(.v2-section--paper):not(.v2-section--dark)
  + .v2-section:not(.v2-section--paper):not(.v2-section--dark) { padding-top: 0; }
.v2-section--paper { background: var(--paper); }
.v2-section--dark { background: var(--ink); color: var(--on-dark); }
.v2-section--dark .v2-display, .v2-section--dark .v2-lede { color: var(--on-dark); }

.v2-head { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: var(--s4); align-items: start; margin-bottom: var(--head-gap); }
.v2-head-body { display: grid; gap: var(--s3); }
.v2-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); align-items: end; }

/* ---------- about: image column matches the body column's height ----------
   align-items default (stretch) is the point: the picture runs the full
   length of the text beside it instead of stopping at its own aspect ratio
   and leaving the column short. */
.v2-about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s5); }
.v2-about-media { border-radius: var(--r-card); overflow: hidden; background: var(--ground-2); min-height: 420px; }
.v2-about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-about-body { display: grid; gap: var(--block-gap); align-content: start; }
.v2-about-body .v2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-about-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.v2-about-logos { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.v2-about-logos img { height: 22px; width: auto; }
.v2-rulehair { height: 1px; background: var(--line); }
@media (max-width: 1000px) {
  .v2-about { grid-template-columns: minmax(0, 1fr); }
  .v2-about-media { min-height: 300px; aspect-ratio: 16 / 10; }
}

/* ---------- work grid: image plate + caption bar ---------- */
/* Measured off the reference: 40px between rows, 12px between columns. The
   rows carry more air than the columns because a row break is a change of
   subject and a column break is not. */
.v2-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 12px; }
.v2-work--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); margin-bottom: 40px; }
/* Two elements, not one card. The reference puts the image plate and the
   white title bar side by side on the grey ground with a gap between them,
   rather than a white card with a picture inside it. That is what lets the
   bar read as a label FOR the image instead of part of it, and it is why
   the section ground has to stay grey. */
.v2-case { display: grid; gap: var(--size-2); text-decoration: none; color: inherit; background: none; }
.v2-case-media { aspect-ratio: 16 / 11; background: var(--ground-2); overflow: hidden; border-radius: var(--radius-4); }
.v2-case-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.v2-case:hover .v2-case-media img { transform: scale(1.035); }
.v2-case-bar { display: flex; align-items: baseline; justify-content: space-between; gap: var(--size-2); padding: 20px 24px; background: var(--color-surface); border-radius: var(--radius-3); }
.v2-case:hover .v2-case-bar { background: var(--c-neutral-50); }
.v2-case-name { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); letter-spacing: -0.02em; margin: 0; }
.v2-case-n { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; flex: none; }
.v2-case-year { font-size: 16px; color: var(--ink-3); flex: none; }

/* ---------- writing: a bento of article tiles ----------
   One tall feature on the left carrying the argument, three cards beside it
   carrying the evidence. Same shape as the reference's hero bento: a large
   media tile against a cluster of smaller white cards, so the eye gets one
   big thing to land on rather than four equal rectangles. */
.v2-bento { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 12px; }
.v2-bento > * { border-radius: var(--radius-4); text-decoration: none; color: inherit; }

.v2-bento-feature {
  grid-row: span 2; position: relative; overflow: hidden;
  min-height: 460px; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--size-6);
  background: var(--color-surface-invert); color: var(--color-text-on-invert);
}
/* a tonal field rather than a photograph: there is no stock image here that
   would not be decoration pretending to be evidence */
.v2-bento-feature::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 80% 6%, #3A3A3E 0%, rgba(58,58,62,0) 60%),
    radial-gradient(90% 70% at 8% 98%, #252529 0%, rgba(37,37,41,0) 62%);
}
.v2-bento-feature > * { position: relative; z-index: 1; }
.v2-bento-feature .v2-art-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }

.v2-bento-card {
  background: var(--color-surface); padding: var(--size-6);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--size-6);
  min-height: 224px;
  transition: background var(--dur) var(--ease);
}
.v2-bento-card:hover { background: var(--c-neutral-50); }
.v2-bento-wide { grid-column: span 2; }

.v2-art-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--size-4); font-size: var(--size-base); color: var(--color-text-muted); }
.v2-bento-feature .v2-art-top { color: var(--color-text-on-invert-muted); }
.v2-art-n { font-weight: var(--weight-medium); }
.v2-art-title { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); line-height: 1.04; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem); margin: 0; }
.v2-art-sub { font-size: var(--size-base); line-height: 1.45; color: var(--color-text-muted); margin: var(--size-3) 0 0; max-width: 46ch; }
.v2-bento-feature .v2-art-sub { color: var(--color-text-on-invert-muted); max-width: 38ch; }
.v2-art-foot { display: flex; align-items: center; gap: var(--size-2); font-size: var(--size-base); font-weight: var(--weight-medium); }
.v2-art-foot svg { transition: transform var(--dur) var(--ease); }
.v2-bento > a:hover .v2-art-foot svg { transform: translateX(4px); }

@media (max-width: 1000px) {
  .v2-bento { grid-template-columns: minmax(0, 1fr); }
  .v2-bento-feature { grid-row: auto; min-height: 360px; }
  .v2-bento-wide { grid-column: auto; }
}

/* ---------- article page ---------- */
.v2-art-head { padding: calc(var(--nav-height) + var(--size-7)) 0 var(--space-section); }
.v2-art-meta { display: flex; flex-wrap: wrap; gap: var(--size-5); font-size: var(--size-base); color: var(--color-text-muted); margin-top: var(--size-5); }
.v2-art-body { max-width: 68ch; display: grid; gap: var(--size-5); }
.v2-art-body h2 { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); font-size: var(--size-3xl); line-height: 1.08; margin: var(--size-6) 0 0; }
.v2-art-body p { font-size: var(--size-md); line-height: var(--leading-relaxed); color: var(--color-text-muted); margin: 0; }
.v2-art-body p strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.v2-art-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--size-3); }
.v2-art-body li { font-size: var(--size-md); line-height: var(--leading-relaxed); color: var(--color-text-muted); }
.v2-art-pull { border-left: 2px solid var(--color-text); padding-left: var(--size-5); font-size: var(--size-xl); line-height: 1.35; color: var(--color-text); }

/* ---------- stat cards ---------- */
.v2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.v2-stat { display: grid; grid-template-rows: auto 1fr auto; gap: 48px; min-height: 320px; padding: 28px; border-radius: var(--r-card); background: var(--paper); }
.v2-stat--dark { background: var(--ink); color: var(--on-dark); }
.v2-stat-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 500; }
.v2-stat-mark { color: var(--ink-3); flex: none; }
.v2-stat--dark .v2-stat-mark { color: var(--on-dark-3); }
.v2-stat-foot { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; }
.v2-stat-note { font-size: 16px; line-height: 1.35; color: var(--ink-2); margin: 0; flex: 1 1 150px; }
.v2-stat--dark .v2-stat-note { color: var(--on-dark-2); }

/* ---------- testimonial ---------- */
.v2-quote-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.62fr); gap: 32px; padding: 32px; border-radius: var(--r-card); background: var(--paper); }
.v2-quote-body { display: grid; align-content: space-between; gap: 32px; }
.v2-quote-mark { font-family: var(--font-display); font-size: 56px; line-height: 0.6; color: var(--ground-2); }
.v2-quote-text { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.38; margin: 0; }
.v2-quote-rule { height: 1px; background: var(--line); }
.v2-quote-who { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink-2); }
.v2-quote-portrait { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ground-2); min-height: 320px; }
.v2-quote-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-quote-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: var(--on-dark); background: linear-gradient(transparent, rgba(0,0,0,0.72)); }
.v2-quote-name strong { display: block; font-size: 18px; font-weight: 600; }
.v2-quote-name span { font-size: 15px; color: var(--on-dark-2); }
.v2-quote-side { display: grid; align-content: space-between; gap: 20px; }
.v2-quote-next { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 5 / 4; background: var(--ground-2); }
.v2-quote-next img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-quote-counter { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.v2-quote-ctrl { display: flex; gap: 10px; }

/* ---------- accordion ---------- */
.v2-acc { display: grid; gap: 14px; }
.v2-acc-row { border-radius: var(--r-card); background: var(--paper); overflow: hidden; }
.v2-acc-btn { width: 100%; display: grid; grid-template-columns: minmax(130px, 0.9fr) minmax(0, 4fr) auto; gap: 24px; align-items: center; padding: 30px 32px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.v2-acc-org { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.v2-acc-title { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); font-weight: 500; color: var(--ink); }
.v2-acc-title b { font-weight: 500; color: var(--ink-3); }
.v2-acc-plus { width: 22px; height: 22px; position: relative; flex: none; }
.v2-acc-plus::before, .v2-acc-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform var(--dur) var(--ease); }
.v2-acc-plus::after { transform: rotate(90deg); }
.v2-acc-btn[aria-expanded="true"] .v2-acc-plus::after { transform: rotate(0deg); }
/* grid-template-rows, not height: animating height thrashes layout, and the
   0fr/1fr track is the house pattern for a disclosure. The row sizes itself
   to the content, so nothing has to be measured in JS and nothing has to be
   re-measured when the text rewraps at a new width.
   Safari below 16 cannot interpolate fr and simply snaps open, which is the
   correct degradation for a disclosure. */
.v2-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.v2-acc-row.is-open .v2-acc-panel { grid-template-rows: 1fr; }
.v2-acc-panel > div { overflow: hidden; min-height: 0; }
.v2-acc-inner { padding: 0 32px 30px; max-width: 70ch; color: var(--ink-2); font-size: 17px; line-height: 1.55; }

/* ---------- case page: meta table + bands ---------- */
.v2-case-head { padding: 150px 0 clamp(48px, 6vw, 90px); }
.v2-case-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 48px; align-items: end; }
.v2-meta { display: grid; }
.v2-meta-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: 17px; }
.v2-meta-row:first-child { border-top: 1px solid var(--line-strong); }
.v2-meta-k { font-weight: 500; color: var(--ink); }
.v2-meta-v { color: var(--ink-2); text-align: right; }

.v2-band { background: var(--ink); padding: clamp(28px, 4vw, 56px) 0; }
.v2-band-media { max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.v2-band-media img { width: 100%; display: block; border-radius: var(--r-card); }

/* two-column body block: dotted label left, prose right */
.v2-block { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.4fr); gap: 32px; align-items: start; padding-block: clamp(36px, 5vw, 72px); }
.v2-block-body { display: grid; gap: 18px; max-width: 68ch; }

/* decision cards: what the sparkle bullet list becomes */
.v2-dec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.v2-dec-card { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-md); background: var(--paper); }
.v2-dec-n { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-3); }
.v2-dec-h { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; margin: 0; }
.v2-dec-p { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* ---------- footer ---------- */
.v2-footer { background: var(--paper); padding-top: clamp(56px, 7vw, 110px); overflow: hidden; }
.v2-footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; }
.v2-footer-media { border-radius: var(--r-md); overflow: hidden; background: var(--ground-2); aspect-ratio: 16 / 11; max-width: 420px; }
.v2-footer-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-footer-col h3 { font-size: 16px; font-weight: 500; color: var(--ink-2); margin: 0 0 20px; }
.v2-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v2-footer-col a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.v2-footer-col a:hover { color: var(--ink-2); }
.v2-footer-connect { display: flex; flex-wrap: wrap; align-items: baseline; gap: 32px; margin-top: 28px; }
.v2-footer-email { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.03em; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.v2-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.v2-wordmark { font-family: var(--font-display); font-weight: 600; font-size: clamp(5rem, 17vw, 19rem); letter-spacing: -0.045em; line-height: 0.78; color: var(--ink); margin: 36px 0 -0.14em; text-align: center; }

/* ---------- motion: GSAP will take these over, CSS is the floor ---------- */
.v2-rise { opacity: 0; transform: translateY(18px); animation: v2rise 900ms var(--ease) forwards; }
@keyframes v2rise { to { opacity: 1; transform: none; } }

:where(a, button):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.v2-section--dark :focus-visible, .v2-hero :focus-visible { outline-color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .v2-rise { opacity: 1; transform: none; animation: none; }
  /* a paused marquee would strand the second set off-screen, so the strip
     becomes an ordinary scroller instead */
  .v2-strip-track { animation: none; width: auto; }
  .v2-strip { overflow-x: auto; scrollbar-width: none; }
}

/* ---------- compact nav ----------
   Below 1000px the pill does not fit beside the logo and the CTA, so it
   collapses to a Menu button exactly as the reference does. The pill used to
   simply disappear under 760px, which left those widths with no navigation
   at all. */
/* Language toggle. Always present, at both widths: it is the control a
   German-speaking reader looks for first, so it does not get folded into a
   menu. Two states, so a segmented pair rather than a dropdown. */
.v2-lang { display: inline-flex; padding: 3px; border-radius: var(--radius-full); border: 1px solid var(--btn-ghost-border-on-invert); }
.v2-nav:not(.v2-nav--on-dark) .v2-lang { border-color: var(--color-border-strong); }
.v2-lang button {
  height: 34px; min-width: 42px; padding-inline: 10px; border: 0; cursor: pointer;
  border-radius: var(--radius-full); background: none; font-family: var(--font-body);
  font-size: var(--size-base); font-weight: var(--weight-medium);
  color: var(--color-text-on-invert); opacity: 0.6;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.v2-nav:not(.v2-nav--on-dark) .v2-lang button { color: var(--color-text); }
.v2-lang button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); opacity: 1; }
.v2-lang button:hover { opacity: 1; }

.v2-menu { display: none; }
.v2-menu-panel {
  position: absolute; top: calc(100% - var(--s2)); right: var(--gutter); left: var(--gutter);
  display: grid; gap: 2px; padding: var(--s2); border-radius: var(--r-md);
  background: var(--paper); box-shadow: 0 18px 50px -18px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.v2-menu-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.v2-menu-panel a { padding: 14px var(--s2); border-radius: var(--r-sm); font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; }
.v2-menu-panel a:hover { background: var(--ground); }

@media (max-width: 1000px) {
  .v2-hero-cols, .v2-head, .v2-quote-card, .v2-case-head-grid, .v2-block, .v2-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-quote-side { grid-auto-flow: column; align-items: center; }
  .v2-acc-btn { grid-template-columns: minmax(0, 1fr) auto; }
  .v2-acc-org { grid-column: 1 / -1; }
  .v2-scrolldown { display: none; }
  .v2-navpill { display: none; }
  .v2-menu { display: inline-flex; }
  /* the nav is shorter without the pill, so the plate's top padding follows it */
  :root { --nav-h: 86px; }
}
@media (max-width: 760px) {
  .v2-hero { min-height: 0; }
  .v2-hero-bottom { margin-top: var(--s5); }
  .v2-quote-side { grid-auto-flow: row; }
  .v2-quote-card, .v2-stat { padding: var(--s3); }
  :root { --nav-h: 78px; }
}

.v2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
