/* OnsiteHub — Brand System v2.1 tokens
 * These are the in-code source of truth for the code components.
 * Names mirror what we'll register as Webflow Variables later, so the
 * components inherit the site's values when present and fall back to these.
 *
 * Fonts (Quicksand, Montserrat, JetBrains Mono) are loaded by the Webflow site
 * itself — we only reference the families here, never @import them. */

:host {
  /* Primary */
  --oh-cadmium: #ffec00; /* signature yellow — accent only, ~10% coverage */
  --oh-sun-soft: #fff7a8; /* tint: backgrounds, hover washes */

  /* Dark surface (replaces black) */
  --oh-adriatic: #0e5b7a;

  /* Neutrals — warm, replace pure black/white */
  --oh-paper: #faf6ec;
  --oh-cream: #f4eddf;
  --oh-stone: #dcd7cc;
  --oh-mist: #d7d4cc;
  --oh-slate: #6b6b72;
  --oh-charcoal: #2a2a2e;
  --oh-ink: #0e0e10; /* text only — never a surface */

  /* Supporting */
  --oh-olive: #6f8f3a;
  --oh-terracotta: #d96b3f;

  /* Type */
  --oh-font-display: "Quicksand", system-ui, sans-serif; /* headings */
  --oh-font-body: "Montserrat", system-ui, sans-serif; /* body */
  --oh-font-mono: "JetBrains Mono", ui-monospace, monospace; /* tags/labels */
}

/* Fonoa case study — brand CSS, scoped to the component shadow DOM.
   Tokens on :host so custom properties inherit into the shadow tree.
   Generic selectors (.hero, .section, h1, blockquote, ...) are safe:
   shadow DOM isolates them from the page. Fonts load from the site. */

/* =========================================================================
   ONSITEHUB BRAND SYSTEM v2.1 — IFT CASE STUDY
   Tokens lifted directly from Brand Book v2.1 (pages 8–13, 17)
   Patterns lifted from live case studies (winapp, coldiq, quointelligence)
   ========================================================================= */

:host, :host{
  /* Warm neutrals — PDF page 10 */
  --paper:#FAF6EC;
  --cream:#F4EDDF;
  --stone:#DCD7CC;
  --mist:#D7D4CC;
  --slate:#6B6B72;
  --charcoal:#2A2A2E;
  --ink:#0E0E10;             /* text-only — PDF rule */

  /* Signature — PDF page 8 */
  --yellow:#FFEC00;          /* Cadmium Heat */
  --yellow-soft:#FFF7A8;     /* Sun Soft tint */
  --yellow-10:rgba(255,236,0,0.10); /* matches live blockquote bg */
  --yellow-20:rgba(255,236,0,0.20);

  /* Supporting cast — PDF page 9 */
  --adriatic:#0E5B7A;
  --olive:#6F8F3A;
  --terracotta:#D96B3F;

  /* Layout — live case study uses container 80rem (1280px) with 16px padding */
  --wide:1280px;
  --max:960px;
  --read:780px;
  --radius-card:16px;
  --radius-btn:6px;
  --radius-chip:999px;
}

/* ---------- Reset & base ---------- */
*{margin:0;padding:0;box-sizing:border-box}

.cs-root{
  font-family:'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:400;
  font-size:18px;            /* PDF body 18/27 */
  line-height:1.55;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid var(--adriatic);outline-offset:3px}

/* ---------- Typography — PDF page 13 scale ---------- */
h1,h2,h3,h4{
  font-family:'Quicksand',sans-serif;
  color:var(--ink);
  letter-spacing:-0.015em;
}
h1{font-weight:700;line-height:1.04}          /* H1 88/92 ratio */
h2{font-weight:600;line-height:1.07}          /* H2 56/60 */
h3{font-weight:600;line-height:1.12}          /* H3 36/40 */
h4{font-weight:600;line-height:1.2}
/* Headings render as authored (not shouty caps) — override any global text-transform from the host theme */
.hero h1,
.section h2,.section h3,
.two-col h2,.two-col h3,
.fix-bg h2,.cta h2,.layer-card h4{
  text-transform:none !important;
}
p{margin-bottom:1.1em}
p strong{font-weight:600;color:var(--ink)}
p em{font-style:italic}

/* ---------- Section rhythm ---------- */
.section{
  padding:clamp(56px,8vw,112px) clamp(20px,4vw,32px);
  position:relative;
}
.section--paper{background:var(--paper)}
.section--cream{background:var(--cream)}
.section--sunsoft{background:var(--yellow-soft)}
.section--adriatic{background:var(--adriatic);color:var(--cream)}
.section--adriatic h2,.section--adriatic h3,.section--adriatic h4,.section--adriatic p,.section--adriatic strong{color:var(--cream)}
/* Beat .prose p / .prose strong specificity so body copy stays readable on dark blue */
.section--adriatic .prose p,.section--adriatic .prose strong,.section--adriatic .prose p.lead{color:var(--cream)}
/* Eyebrow label must contrast against dark blue — use Cadmium yellow */
.section--adriatic .eyebrow{color:var(--yellow)}
/* Override low-contrast slate cite on dark surface */
.section--adriatic blockquote{background:rgba(250,246,236,0.08);border-left-color:var(--yellow)}
.section--adriatic blockquote p{color:var(--cream)}
.section--adriatic blockquote cite{color:var(--yellow)}
/* Sun-soft surface: blockquote bg must contrast against the yellow page bg */
.section--sunsoft blockquote{background:var(--paper);border-left-color:var(--ink)}

.container{
  max-width:var(--wide);
  margin:0 auto;
}
.read{max-width:var(--read);margin-left:auto;margin-right:auto}
.read-wide{max-width:920px;margin-left:auto;margin-right:auto}

/* ---------- Mono eyebrow / chip / tag — PDF page 12 ---------- */
.eyebrow{
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--slate);
  display:inline-block;
  margin-bottom:14px;
}
.eyebrow--ink{color:var(--ink)}

/* Chip — PDF page 17 */
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  padding:6px 12px;
  border-radius:var(--radius-chip);
  border:1.5px solid var(--ink);
  background:var(--cream);
  color:var(--ink);
}
.chip--yellow{background:var(--yellow);border-color:var(--ink)}
.chip--ink{background:var(--ink);color:var(--cream);border-color:var(--ink)}

/* Tape tag — PDF page 16/17 (yellow rectangular caption) */
.tape{
  display:inline-block;
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  background:var(--yellow);
  color:var(--ink);
  padding:5px 10px;
  border-radius:3px;
}

/* ---------- Highlighter motif — PDF page 14 ---------- */
/* SWIPE — behind a word, ~110% of text width, real-marker scratchy edges */
/* Text on yellow MUST be Ink — overrides parent surface color */
.mark{
  position:relative;
  display:inline-block;
  padding:0 0.12em;
  z-index:0;
  color:var(--ink) !important;
}
.mark::before{
  content:"";
  position:absolute;
  inset:18% -4% 8% -4%;
  background:var(--yellow);
  z-index:-1;
  /* irregular edges to mimic real marker */
  clip-path:polygon(
    0% 18%, 3% 6%, 8% 12%, 14% 2%, 22% 9%, 30% 0%, 38% 8%,
    46% 3%, 54% 10%, 62% 1%, 70% 9%, 78% 4%, 86% 11%, 92% 2%, 97% 9%, 100% 6%,
    100% 86%, 96% 96%, 90% 90%, 84% 98%, 76% 92%, 68% 100%, 60% 93%,
    52% 99%, 44% 92%, 36% 100%, 28% 93%, 20% 99%, 12% 92%, 6% 98%, 2% 90%, 0% 96%
  );
  transform:rotate(-0.6deg);
}

/* UNDERLINE — for verbs/nouns inside body */
.uline{
  position:relative;
  display:inline-block;
  font-weight:600;
  color:var(--ink) !important;
}
.uline::after{
  content:"";
  position:absolute;
  left:-2%;
  right:-2%;
  bottom:-2px;
  height:10px;
  background:var(--yellow);
  clip-path:polygon(
    0% 30%, 4% 60%, 10% 25%, 18% 70%, 26% 35%, 34% 65%, 42% 30%, 50% 60%,
    58% 30%, 66% 70%, 74% 35%, 82% 60%, 90% 30%, 96% 65%, 100% 40%,
    100% 100%, 0% 100%
  );
  transform:rotate(-0.4deg);
  z-index:-1;
}

/* CIRCLE — annotated key number/word */
.circle{
  position:relative;
  display:inline-block;
  padding:0.05em 0.6em;
  z-index:0;
  color:var(--ink) !important;
}
.circle::before{
  content:"";
  position:absolute;
  inset:-12% -6%;
  border:5px solid var(--yellow);
  border-radius:50%;
  z-index:-1;
  transform:rotate(-2deg);
}

/* ---------- HERO ---------- */
.hero{
  padding:clamp(80px,10vw,140px) clamp(20px,4vw,32px) clamp(16px,2.5vw,28px);
  background:var(--paper);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero .container{max-width:1180px}
.hero .chip{margin-bottom:28px}
.hero h1{
  font-size:clamp(2.4rem,6.2vw,5.5rem);
  max-width:1100px;
  margin:0 auto 0.7em;
  font-weight:700;
}
.hero .lede{
  font-family:'Quicksand',sans-serif;
  font-weight:500;
  font-size:clamp(1.05rem,1.4vw,1.35rem);
  line-height:1.5;
  color:var(--slate);
  max-width:780px;
  margin:0 auto clamp(40px,5vw,64px);
}

/* Stats strip — 4 cards on Cream, follows PDF retreat card style */
.stats-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  max-width:1080px;
  margin:0 auto;
}
.stat{
  background:var(--cream);
  border:1.5px solid var(--ink);
  border-radius:var(--radius-card);
  padding:24px 22px;
  text-align:left;
  position:relative;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1);
}
.stat:hover{transform:translateY(-4px);box-shadow:6px 6px 0 var(--ink)}
.stat .stat-label{
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--slate);
  margin-bottom:10px;
  display:block;
}
.stat .stat-value{
  font-family:'Quicksand',sans-serif;
  font-weight:700;
  font-size:clamp(1.1rem,1.6vw,1.4rem);
  color:var(--ink);
  line-height:1.15;
  letter-spacing:-0.01em;
}

/* ---------- Hero image — standalone full-bleed ---------- */
.hero-img-wrap{
  max-width:var(--wide);
  margin:clamp(28px,4vw,56px) auto 0;
  padding:0 clamp(20px,4vw,32px);
}
.hero-img-wrap .figure{
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  border:1.5px solid var(--ink);
  background:var(--cream);
}
.hero-img-wrap img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
.hero-img-wrap .tape{
  position:absolute;
  top:18px;
  left:18px;
  z-index:2;
}

/* ---------- Read column / prose ---------- */
.prose h2{
  font-size:clamp(2rem,4.2vw,3.5rem);
  margin-bottom:0.45em;
  letter-spacing:-0.02em;
}
.prose h3{
  font-size:clamp(1.4rem,2.4vw,2.25rem);
  margin:1.6em 0 0.5em;
}
.prose p{
  font-size:clamp(1rem,1.18vw,1.125rem);
  line-height:1.65;
  margin-bottom:1.1em;
  color:var(--ink);
}
.prose a{
  display:inline !important;
  background:transparent !important;
  color:inherit !important;
  font-weight:600;
  padding:0;
  border:0;
  text-decoration:underline;
  text-decoration-color:var(--yellow);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  transition:text-decoration-color .2s ease;
}
.prose a:hover{text-decoration-color:var(--ink);background:transparent !important}
.prose p.lead{
  font-family:'Quicksand',sans-serif;
  font-size:clamp(1.15rem,1.55vw,1.5rem);
  font-weight:500;
  line-height:1.45;
  color:var(--ink);
  margin-bottom:1.1em;
  letter-spacing:-0.005em;
}
.prose ul{
  padding:0;
  margin:1.2em 0 1.6em;
  list-style:none !important;
}
.prose ul li{
  position:relative;
  padding-left:1.6em;
  margin-bottom:0.6em;
  line-height:1.6;
  list-style:none !important;
}
.prose ul li::marker{content:none}
.prose ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.7em;
  width:14px;
  height:8px;
  background:var(--yellow);
  border-radius:2px;
  transform:rotate(-8deg);
}

/* ---------- Blockquote — live site pattern ---------- */
blockquote{
  position:relative;
  padding:26px 30px 24px 34px;
  margin:2em 0;
  background:var(--yellow-10);
  border-left:5px solid var(--yellow);
  border-radius:0 var(--radius-card) var(--radius-card) 0;
}
blockquote p{
  font-family:'Quicksand',sans-serif;
  font-weight:500;
  font-style:italic;
  font-size:clamp(1.2rem,2vw,1.65rem);
  line-height:1.4;
  color:var(--ink);
  margin-bottom:0.7em;
  letter-spacing:-0.005em;
}
blockquote p:last-of-type{margin-bottom:0}
blockquote cite{
  display:block;
  margin-top:0.5em;
  font-family:'JetBrains Mono',monospace;
  font-style:normal;
  font-weight:500;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--slate);
}
blockquote cite::before{content:"— "}

/* ---------- Two-column section: text + image (or quote) ---------- */
/* Mirrors live .two-column-grid.large-gap inside .main-section */
.two-col{
  display:grid;
  grid-template-columns:6fr 6fr;
  gap:clamp(28px,5vw,72px);
  align-items:center;
  max-width:var(--wide);
  margin:0 auto;
  padding:clamp(56px,8vw,112px) clamp(20px,4vw,32px);
}
/* Two-col already lives inside a padded .section — drop its own vertical padding to avoid a doubled gap */
.section > .two-col{padding-top:0;padding-bottom:0}
.two-col--reverse > *:first-child{order:2}
.two-col--small-gap{gap:clamp(20px,3vw,40px);grid-template-columns:5fr 7fr}
.two-col--small-gap.two-col--reverse{grid-template-columns:7fr 5fr}
.two-col .figure{
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  border:1.5px solid var(--ink);
}
.two-col .figure img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.two-col .figure:hover img{transform:scale(1.03)}
/* Quote-paired two-col: cap the image so the quote card doesn't drown */
.two-col--quote .figure img{
  aspect-ratio:5/4;
  max-height:clamp(280px,38vh,420px);
}
.two-col--quote .body blockquote{margin:0}
.two-col--quote .body blockquote p{font-size:clamp(1.15rem,1.9vw,1.55rem)}
.two-col .figure .tape{
  position:absolute;
  top:14px;
  left:14px;
}
.two-col .body h2{
  font-size:clamp(1.7rem,3.4vw,2.8rem);
  margin-bottom:0.5em;
}
.two-col .body h3{
  font-size:clamp(1.3rem,2.2vw,1.9rem);
  margin-bottom:0.5em;
}
.two-col .body p{
  font-size:clamp(1rem,1.15vw,1.1rem);
  line-height:1.65;
}
.two-col .body blockquote{margin:0}

/* ---------- FIXED-BG SECTION — matches live .cold-fix-bg / .win-fix-bg pattern ---------- */
.fix-bg{
  background-position:center 40%;
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:fixed;
  min-height:60vh;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(80px,12vw,160px) clamp(20px,4vw,32px);
  overflow:hidden;
}
.fix-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(14,91,122,0.35) 0%,rgba(14,14,16,0.55) 100%);
  z-index:0;
}
.fix-bg .fix-bg-inner{
  position:relative;
  z-index:1;
  max-width:880px;
  text-align:center;
  color:var(--cream);
}
.fix-bg .fix-bg-inner .eyebrow{
  color:var(--yellow);
}
.fix-bg .fix-bg-inner h2{
  font-family:'Quicksand',sans-serif;
  font-weight:600;
  color:var(--cream);
  font-size:clamp(1.6rem,3.6vw,3rem);
  line-height:1.15;
  margin-bottom:0.5em;
  letter-spacing:-0.015em;
}
.fix-bg .fix-bg-inner h2 .mark::before{
  background:var(--yellow);
}
.fix-bg .fix-bg-inner p{
  font-family:'Quicksand',sans-serif;
  font-weight:500;
  font-size:clamp(1.05rem,1.4vw,1.3rem);
  line-height:1.5;
  color:var(--cream);
  opacity:0.95;
  margin-bottom:0;
}
/* iOS — background-attachment fixed is unreliable; fall back to scroll on touch */
@media (hover:none) and (pointer:coarse){
  .fix-bg{
    background-attachment:scroll;
    min-height:50vh;
  }
}

/* ---------- Image full-bleed ---------- */
.img-full{
  max-width:var(--wide);
  margin:0 auto;
  padding:clamp(32px,4vw,56px) clamp(20px,4vw,32px);
}
.img-full .figure{
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  border:1.5px solid var(--ink);
}
.img-full img{
  width:100%;
  aspect-ratio:16/9;
  max-height:760px;
  object-fit:cover;
  display:block;
}
/* Wide/slide images inside a two-col: show the whole frame (native 3:2), no crop of slide text or group edges */
.two-col .figure--wide img{aspect-ratio:3/2}
.img-full .tape{
  position:absolute;
  top:18px;
  left:18px;
}

/* ---------- Image trio ---------- */
.img-trio{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  max-width:var(--wide);
  margin:0 auto;
  padding:clamp(24px,4vw,48px) clamp(20px,4vw,32px);
}
.img-trio .figure{
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  border:1.5px solid var(--ink);
}
.img-trio img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}

/* ---------- Image pair ---------- */
.img-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  max-width:var(--wide);
  margin:0 auto;
  padding:clamp(24px,4vw,48px) clamp(20px,4vw,32px);
}
.img-pair .figure{
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  border:1.5px solid var(--ink);
}
.img-pair img{
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  display:block;
}

/* ---------- Programme/Layer cards ---------- */
.layer-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:2.2em;
}
.layer-card{
  background:var(--cream);
  border:1.5px solid var(--ink);
  border-radius:var(--radius-card);
  padding:32px 28px;
  position:relative;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1);
}
.layer-card::before{
  content:"";
  position:absolute;
  top:-1.5px;left:-1.5px;
  width:60px;
  height:6px;
  background:var(--yellow);
  border-top-left-radius:var(--radius-card);
}
.layer-card:hover{
  transform:translateY(-4px);
  box-shadow:6px 6px 0 var(--ink);
}
.layer-card .layer-num{
  display:inline-block;
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--slate);
  margin:8px 0 14px;
}
.layer-card h4{
  font-family:'Quicksand',sans-serif;
  font-weight:600;
  font-size:clamp(1.15rem,1.7vw,1.4rem);
  margin-bottom:0.6em;
  letter-spacing:-0.01em;
}
.layer-card p{
  font-size:0.98rem;
  line-height:1.6;
  color:var(--ink);
  margin:0;
}

/* ---------- Results grid (big numbers) ---------- */
.results-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:2.4em 0;
}
.result-card{
  background:var(--paper);
  border:1.5px solid var(--ink);
  border-radius:var(--radius-card);
  padding:28px 20px;
  text-align:center;
  position:relative;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1);
}
.result-card:hover{
  transform:translateY(-3px);
  box-shadow:6px 6px 0 var(--ink);
}
.result-card .result-num{
  font-family:'Quicksand',sans-serif;
  font-weight:700;
  font-size:clamp(2rem,3.6vw,3rem);
  color:var(--ink);
  line-height:1;
  margin-bottom:10px;
  display:block;
  letter-spacing:-0.02em;
}
.result-card .result-desc{
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--slate);
  line-height:1.4;
}

/* ---------- Divider ---------- */
.divider{
  height:1px;
  background:var(--mist);
  max-width:var(--max);
  margin:0 auto;
}

/* ---------- CTA — yellow on cream, scale hover from live site ---------- */
.cta{
  text-align:center;
  padding:clamp(80px,10vw,144px) clamp(20px,4vw,32px);
  background:var(--cream);
  border-top:1.5px solid var(--ink);
  position:relative;
  overflow:hidden;
}
.cta h2{
  font-size:clamp(2rem,4.5vw,3.75rem);
  margin-bottom:0.6em;
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
  letter-spacing:-0.02em;
}
.cta p{
  font-size:clamp(1.05rem,1.3vw,1.2rem);
  color:var(--slate);
  max-width:620px;
  margin:0 auto 2.2em;
  line-height:1.6;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--yellow);
  color:var(--ink);
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:13px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  padding:18px 36px;
  border:1.5px solid var(--ink);
  border-radius:var(--radius-btn);
  text-decoration:none;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1);
  position:relative;
}
.cta-btn::after{
  content:"→";
  font-family:'JetBrains Mono',monospace;
  font-size:16px;
  margin-left:4px;
}
.cta-btn:hover{
  transform:translate(-2px,-2px);
  box-shadow:6px 6px 0 var(--ink);
}
.cta-btn:active{
  transform:translate(0,0);
  box-shadow:0 0 0 var(--ink);
}

/* ---------- Global hover + image zoom ---------- */
.figure{transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1)}
.img-full .figure img,.img-trio .figure img,.img-pair .figure img,.hero-img-wrap .figure img{
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.img-full .figure:hover img,.img-trio .figure:hover img,.img-pair .figure:hover img,.hero-img-wrap .figure:hover img{
  transform:scale(1.025);
}
.img-trio .figure:hover,.img-pair .figure:hover{
  transform:translateY(-3px);
  box-shadow:6px 6px 0 var(--ink);
}

/* ---------- Scroll reveal — IntersectionObserver-driven .reveal class ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change:opacity, transform;
}
.reveal.is-visible{opacity:1;transform:none}
.reveal-delay-1{transition-delay:.08s}
.reveal-delay-2{transition-delay:.16s}
.reveal-delay-3{transition-delay:.24s}
.reveal-delay-4{transition-delay:.32s}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    transition:none !important;
    animation:none !important;
  }
  .reveal{opacity:1;transform:none}
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px){
  .stats-strip{grid-template-columns:repeat(2,1fr)}
  .layer-cards{grid-template-columns:1fr;gap:16px}
  .results-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .two-col,
  .two-col--small-gap,
  .two-col--small-gap.two-col--reverse{
    grid-template-columns:1fr;
    gap:32px;
    padding-top:48px;
    padding-bottom:48px;
  }
  .two-col--reverse > *:first-child{order:0}
  .two-col .figure img{aspect-ratio:16/10}
  .img-trio{grid-template-columns:1fr;gap:14px}
  .img-pair{grid-template-columns:1fr}
  .img-full img{aspect-ratio:16/10;max-height:none}
  .hero-img-wrap img{aspect-ratio:16/10}
  blockquote{padding:22px 24px 20px 26px}
  .stat{padding:20px 18px}
  .layer-card{padding:26px 22px}
  .result-card{padding:24px 16px}
}
@media (max-width:480px){
  .stats-strip{grid-template-columns:1fr 1fr;gap:12px}
  .results-grid{grid-template-columns:1fr 1fr;gap:12px}
  .section{padding:56px 18px}
  body{font-size:17px}
}

