/* digital.gt — "el hilo": one cochineal thread woven through the page.
   Palette from Guatemala's dyes: manta (cotton), añil (indigo), grana (cochineal), jade, maíz.

   Layout model (measured on the reference at 1440×900, 1920×1080, 2842×900, 2842×1468):
   · 12-column grid, 24px gutters, side padding min(4vw, 64px), NO max content width.
   · Vertical rhythm scales with viewport HEIGHT: sections 19vh, half-steps 9.5vh, card padding 5vh.
   · Type scales with viewport WIDTH, then caps: hero min(9.3vw,190px), cta min(10.1vw,210px), etc.
   Motion model (also measured): one-shot reveals at 82% of the viewport — blocks fade + rise 24px
   (700ms expo-out, 80ms stagger), big headings rise line by line out of a mask (900ms, 90ms stagger),
   SVG lines draw (900ms) and nodes scale in (600ms). Loader 1.7s, then slides up 800ms ease-in-out. */
:root {
  --manta: #E8E7E2;
  --surface: #F6F5F1;
  --ink: #15172B;
  --ink-hover: #2A2C46;
  --ink-2: #55576A;
  --line: #CBCAC2;
  --anil: #1C2356;
  --anil-2: #283170;
  --grana: #C41E3A;
  --grana-d: #7E1226;
  --jade: #1E8A6D;
  --jade-d: #0E5443;
  --maiz: #F0B429;
  --maiz-d: #7A5606;
  --cielo: #2E7BD3;

  --f-display: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* spacing */
  --pad-x: clamp(20px, 4vw, 64px);
  --gut: 24px;
  --sec: 19vh;            /* 171 @900 · 279 @1468 */
  --sec-half: 9.5vh;      /* 86 · 139 */
  --card-pad: 5vh;        /* 45 · 73 */

  /* type (value at 1440 → cap) */
  --t-hero: clamp(2.8rem, 9.3vw, 190px);     /* 134 → 190 */
  --t-cta: clamp(3rem, 10.1vw, 210px);       /* 145 → 210 */
  --t-xl: clamp(2.5rem, 7.3vw, 158px);       /* 105 → 158 */
  --t-l: clamp(2.1rem, 4.4vw, 76px);         /* 63 → 76 */
  --t-m: clamp(1.6rem, 2.6vw, 40px);         /* 37 → 40 */
  --t-lede: clamp(1.4rem, 2.85vw, 46px);     /* 41 → 46 */
  --t-stat: clamp(2.8rem, 5.4vw, 80px);      /* 78 → 80 */
  --t-name: clamp(1.4rem, 2vw, 30px);        /* 29 → 30 */
  --t-body-l: clamp(1rem, 1.32vw, 20px);     /* 19 → 20 */
  --t-body-r: clamp(1.0625rem, 1.39vw, 22px);/* 20 → 22 (reason cards) */
  --t-body: clamp(.9375rem, 1.11vw, 18px);   /* 16 → 18 (cards) */
  --t-small: .9375rem;                        /* 15 (footer) */
  --t-label: .6875rem;                        /* 11 */

  /* motion */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
  --ease-inout: cubic-bezier(.7, 0, .2, 1);
  --thread-w: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--manta);
  color: var(--ink);
  font: 400 var(--t-body-l)/1.6 var(--f-body);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--grana); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--manta); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- layout primitives ---------- */
.wrap { position: relative; z-index: 2; width: calc(100% - 2 * var(--pad-x)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 32px; }
.c-all { grid-column: 1 / -1; }
.c-1-4 { grid-column: 1 / span 4; }
.c-1-6 { grid-column: 1 / span 6; }
.c-1-8 { grid-column: 1 / span 8; }
.c-5-12 { grid-column: 5 / -1; }
.c-7-12 { grid-column: 7 / -1; }
.c-9-12 { grid-column: 9 / -1; }
.c-3 { grid-column: span 3; }
.c-4 { grid-column: span 4; }

.sec { position: relative; padding-block: var(--sec); }
.sec-tail { padding-bottom: var(--sec-half); }
.block { position: relative; z-index: 3; }
.block-anil { background: var(--anil); color: var(--manta); }

.label {
  font: 600 var(--t-label)/1.45 var(--f-body);
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.block-anil .label, .reason .label { color: color-mix(in srgb, var(--manta) 66%, transparent); }
.label + :is(.grid, .stack) { margin-top: var(--sec-half); }

.hero-title, .display-xl, .display-l, .display-m, .cta-title, .product-name, .wordmark, .logo, .chip b, .clients b {
  font-family: var(--f-display);
  font-weight: 600;
}
.hero-title, .display-xl, .display-l, .display-m, .cta-title { text-wrap: balance; }
.display-xl { font-size: var(--t-xl); line-height: .94; letter-spacing: -.035em; }
.display-l { font-size: var(--t-l); line-height: .97; letter-spacing: -.035em; }
.display-m { font-size: var(--t-m); line-height: 1.08; letter-spacing: -.03em; }

.mark {
  background: linear-gradient(var(--maiz), var(--maiz)) no-repeat 0 62% / 100% 86%;
  padding-inline: .08em;
  margin-inline: -.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .mark { background-size: 0% 86%; transition: background-size .9s var(--ease-inout); }
.js .mark.in { background-size: 100% 86%; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding-inline: 32px 28px;
  border-radius: 999px;
  font: 500 1rem/1 var(--f-body); letter-spacing: .006em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease-std), color .15s var(--ease-std), transform .5s var(--ease-expo);
}
.btn.mag { transition-duration: .15s, .15s, .12s; }
.btn-ink { background: var(--ink); color: var(--manta); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-manta { background: var(--manta); color: var(--ink); }
.btn-manta:hover { background: #fff; }
.btn .arrow { transition: transform .25s var(--ease-expo); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- reveals (one-shot, like the reference) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }
.rise .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rise .ln { display: block; }
.js .rise .ln { transform: translateY(105%); transition: transform .9s var(--ease-expo); }
.js .rise .line:nth-child(2) .ln { transition-delay: 90ms; }
.js .rise .line:nth-child(3) .ln { transition-delay: 180ms; }
.js .rise .line:nth-child(4) .ln { transition-delay: 270ms; }
.js .rise.in .ln { transform: none; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; gap: 14px;
  padding: var(--pad-x);
  background: var(--manta);
  animation: loader-failsafe .01s 4s forwards;
  transition: transform .8s var(--ease-inout);
}
.js .loader.done { transform: translateY(-100%); }
.skip-loader .loader { display: none !important; }
.loader-num { font: 500 clamp(3.5rem, 7vw, 7rem)/.9 var(--f-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader-tag { font: 500 var(--t-label) var(--f-mono); letter-spacing: .075em; text-transform: uppercase; padding-bottom: .6em; }
@keyframes loader-failsafe { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- paper grain, cursor dot, stitch trail ---------- */
.grain {
  position: fixed; inset: 0; z-index: 72; pointer-events: none;
  opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.cursor, .stitch { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 95;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--ink);
  pointer-events: none; opacity: 0; will-change: transform;
  transition: opacity .12s linear, background-color .12s linear, width .14s ease, height .14s ease, margin .14s ease;
}
.has-cursor .cursor.show { opacity: 1; }
.has-cursor .cursor.light { background: var(--manta); }
.has-cursor .cursor.down { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.has-cursor .stitch { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 94; pointer-events: none; }

/* ---------- header + menu ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--pad-x) 20px;
  pointer-events: none;
  color: var(--ink);
  transition: color .3s ease;
}
.top > * { pointer-events: auto; }
.top[data-tone="dark"], .menu-open .top { color: var(--manta); }
.logo { font-size: 1.5rem; line-height: 1; letter-spacing: -.04em; text-decoration: none; transition: transform .42s var(--ease-expo), opacity .26s linear; }
.top.away .logo { transform: translateY(-140%); opacity: 0; pointer-events: none; }
.menu-open .top .logo { transform: none; opacity: 1; pointer-events: auto; }
.logo .dot, .wordmark .dot { color: var(--grana); }
.menu-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid currentColor; background: var(--manta); color: var(--ink);
  display: grid; place-content: center; gap: 6px; cursor: pointer; padding: 0;
  transition: background-color .15s var(--ease-std), color .15s var(--ease-std), transform .5s var(--ease-expo);
}
.menu-btn.mag { transition-duration: .15s, .15s, .12s; }
.top[data-tone="dark"] .menu-btn { background: var(--anil); color: var(--manta); }
.top[data-tone="accent"] .menu-btn { background: var(--maiz); color: var(--ink); }
.menu-open .menu-btn { background: var(--anil); color: var(--manta); }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .32s var(--ease-expo); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open body { overflow: hidden; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column;
  background: var(--anil); color: var(--manta);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .9s var(--ease-expo), visibility 0s linear .9s;
}
.menu.open { transform: none; visibility: visible; transition: transform .9s var(--ease-expo); }
.menu-main { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; min-height: 0; }
.menu-nav {
  display: flex; flex-direction: column; justify-content: safe center; gap: 4px;
  padding: calc(env(safe-area-inset-top, 0px) + 112px) var(--pad-x) 40px;
  overflow: auto;
}
.menu-nav a {
  display: flex; align-items: baseline; gap: 24px; padding: 8px 0;
  text-decoration: none; color: var(--manta);
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s ease, transform .5s var(--ease-expo), color .2s linear;
}
.menu.open .menu-nav a { opacity: 1; transform: none; transition-delay: calc(260ms + var(--i) * 60ms), calc(260ms + var(--i) * 60ms), 0s; }
.menu-nav a:hover { color: var(--maiz); }
.menu-nav .n { font: 600 12px/1 var(--f-body); letter-spacing: .07em; color: var(--c); min-width: 1.6em; }
.menu-nav .t { font: 600 clamp(30px, min(7vw, 9vh), 96px)/1 var(--f-display); letter-spacing: -.035em; }
.menu-panel {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 20px;
  padding: calc(env(safe-area-inset-top, 0px) + 112px) var(--pad-x) 40px;
  background: var(--anil-2);
  opacity: 0; transition: opacity .5s ease;
}
.menu.open .menu-panel { opacity: 1; transition-delay: .45s; }
.menu-panel .label { color: color-mix(in srgb, var(--manta) 66%, transparent); }
.menu-panel-title { font: 500 clamp(1.25rem, 1.7vw, 1.6rem)/1.3 var(--f-body); letter-spacing: -.02em; max-width: 26ch; }
.menu-foot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px;
  padding: 24px var(--pad-x) calc(env(safe-area-inset-bottom, 0px) + 36px);
  border-top: 1px solid color-mix(in srgb, var(--manta) 14%, transparent);
  opacity: 0; transition: opacity .5s ease;
}
.menu.open .menu-foot { opacity: 1; transition-delay: .5s; }
.menu-foot .label { color: color-mix(in srgb, var(--manta) 66%, transparent); margin-bottom: 8px; }
.menu-foot a, .menu-foot span { font-size: var(--t-small); color: color-mix(in srgb, var(--manta) 90%, transparent); text-decoration: none; }
.menu-foot a:hover { color: var(--maiz); }

/* ---------- the thread ---------- */
.thread { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
.thread-mask { fill: none; stroke: #fff; stroke-width: 44px; stroke-linecap: round; stroke-linejoin: round; }
.thread-path { fill: none; stroke: var(--grana); stroke-width: var(--thread-w); stroke-linecap: round; stroke-linejoin: round; }
.thread-twist { fill: none; stroke: var(--grana-d); stroke-opacity: .45; stroke-width: var(--thread-w); stroke-dasharray: 2.5 9; }
.thread-head, .thread-knot { fill: var(--grana); }
.thread-knot-core { fill: var(--maiz); }

/* ---------- 01 hero: full viewport, content bottom-aligned ---------- */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 140px); padding-bottom: 40px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.hero .label { margin-bottom: 40px; }
.hero-title { font-size: var(--t-hero); line-height: .92; letter-spacing: -.035em; }
.hero .mark { transition-delay: .55s; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 64px; }
.hero-sub { max-width: 44ch; font-size: var(--t-body); color: var(--ink-2); line-height: 1.5; }
.scroll-cue { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.needle {
  position: absolute; left: 94%; top: 0;
  width: clamp(56px, 5.6vw, 96px); height: auto;
  transform: translateX(-50%); transform-origin: 50% 50%;
  fill: var(--anil); will-change: transform;
}

/* ---------- 02 wall ---------- */
.wall-head { display: grid; gap: 12px; justify-items: start; padding-bottom: 40px; }
.wall-lead { color: var(--ink-2); max-width: 46ch; }
.marquee { position: relative; z-index: 2; overflow: hidden; }
.marquee + .marquee { margin-top: 16px; }
.track { display: flex; gap: 16px; width: max-content; }
.js .track { animation: slide var(--dur, 60s) linear infinite; }
.js .marquee[data-dir="right"] .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: clamp(200px, 12vw, 340px); height: clamp(112px, 10.2vh, 150px);
  padding: 24px 28px;
  background: var(--surface); border-radius: 16px;
  transition: background-color .18s linear, color .18s linear;
}
.chip:hover { background: var(--ink); color: var(--manta); }
.chip b { font-size: clamp(1.4rem, 1.9vw, 34px); line-height: 1; letter-spacing: -.03em; }
.chip span { font: 500 var(--t-label) var(--f-mono); letter-spacing: .075em; text-transform: uppercase; color: var(--ink-2); transition: color .18s linear; }
.chip:hover span { color: color-mix(in srgb, var(--manta) 70%, transparent); }

/* ---------- 03 who / 10 clients ---------- */
.lede { display: grid; gap: 32px; font: 500 var(--t-lede)/1.28 var(--f-body); letter-spacing: -.03em; }
.stats, .clients { row-gap: var(--gut); margin-top: var(--sec-half); }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 154px; padding: 24px; background: var(--surface); border-radius: 16px;
}
.stat-num { font: 600 var(--t-stat)/.92 var(--f-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-label, .clients span { font: 600 var(--t-label)/1.4 var(--f-body); letter-spacing: .075em; text-transform: uppercase; color: var(--ink-2); }
.clients li {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 9px;
  min-height: clamp(120px, 13vh, 190px); padding: 32px;
  background: var(--surface); border-radius: 16px;
}
.clients b { font-size: var(--t-name); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }

/* ---------- 04 problem (pinned, 3 viewports tall) ---------- */
.pin { height: 300vh; height: 300svh; }
.pin-inner {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  grid-template-rows: auto 1fr auto; row-gap: 0;
  padding-block: 7vh var(--sec-half);
}
.pin .display-xl { align-self: center; max-width: 7.6em; }
/* scrubbed by main.js (--p 0→1 per line) and smoothed by the same 0.8s expo ease as the reference */
.js .pin-title .line .ln { transform: translateY(calc((1 - var(--p, 0)) * 105%)); transition: transform .8s var(--ease-expo); transition-delay: 0s; }
.pin-body { display: grid; gap: 1em; max-width: 600px; font-size: var(--t-small); color: color-mix(in srgb, var(--manta) 84%, transparent); }
.js .pin-body { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease-expo); }
.js .pin.body-in .pin-body { opacity: 1; transform: none; }
.rule { width: 48px; height: 3px; background: var(--maiz); }

/* ---------- 05 hub ---------- */
.hub-grid { align-items: start; row-gap: var(--sec-half); }
.hub-copy { display: grid; gap: 32px; align-content: start; padding-right: 5%; }
.hub-copy > p { color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--surface);
  font: 500 .8125rem var(--f-body); letter-spacing: -.005em;
}
.pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grana); }
.hub { padding: clamp(16px, 2.5vh, 40px); background: var(--surface); border-radius: 24px; }
.hub-svg { display: block; width: 100%; height: auto; }
.hub-label { font: 600 11px var(--f-body); letter-spacing: .075em; fill: var(--ink-2); }
.hub-mark { font: 600 30px var(--f-display); fill: var(--ink); }
.js .hub-svg .tr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
.js .hub.in .tr { stroke-dashoffset: 0; }
.js .hub-svg .nd { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease-expo); transition-delay: calc(250ms + var(--i, 0) * 90ms); }
.js .hub.in .nd { transform: scale(1); }
.js .hub-svg .pulses { opacity: 0; transition: opacity .6s ease 1.2s; }
.js .hub.in .pulses { opacity: 1; }
.pulses path { stroke-dasharray: 3 97; animation: pulse 3.5s linear infinite; animation-delay: var(--pd); }
@keyframes pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---------- 06 reasons (full-viewport stacking cards) ---------- */
.stack { display: grid; }
.reason {
  position: sticky; top: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  height: 100vh; height: 100svh;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 -16px 44px -28px rgba(21, 23, 43, .5);
}
.r1 { --dk: var(--grana-d); --c: var(--grana); --nc: var(--manta); }
.r2 { --dk: var(--maiz-d); --c: var(--maiz); --nc: var(--anil); }
.r3 { --dk: var(--jade-d); --c: var(--jade); --nc: var(--manta); }
.reason-text { display: flex; flex-direction: column; gap: 24px; padding: var(--card-pad); background: var(--dk); color: var(--manta); }
.reason .display-l { max-width: 11ch; }
.reason-text p:last-child { max-width: 34ch; font-size: var(--t-body-r); line-height: 1.5; color: color-mix(in srgb, var(--manta) 86%, transparent); }
.reason-num { position: relative; overflow: hidden; background: var(--c); }
.reason-num span {
  position: absolute; right: -.03em; bottom: -.19em;
  font: 600 156vh/.78 var(--f-display); font-size: 156svh;
  letter-spacing: -.05em; color: var(--nc);
}

/* ---------- 07 cards ---------- */
.label + .cards3 { margin-top: 40px; }
.cards3 { row-gap: var(--gut); }
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  min-height: clamp(400px, 40vh, 520px);
  padding: var(--card-pad);
  background: var(--surface); border-radius: 20px;
}
.card-kicker { font: 600 var(--t-label) var(--f-body); letter-spacing: .075em; text-transform: uppercase; color: var(--grana); }
.card .display-m { margin-bottom: 12px; }
.card p:last-child { font-size: var(--t-body); line-height: 1.56; color: var(--ink-2); max-width: 40ch; }

/* ---------- 08 products ---------- */
.products { margin-top: var(--sec-half); border-top: 1px solid var(--line); }
.product { align-items: center; row-gap: 12px; padding-block: clamp(28px, 4vh, 60px); border-bottom: 1px solid var(--line); }
.product-name {
  grid-column: 1 / span 5;
  display: flex; align-items: center; gap: .3em;
  font-size: var(--t-l); line-height: 1; letter-spacing: -.035em;
  transition: color .25s ease;
}
.product-name::before { content: ""; flex: none; width: .24em; height: .24em; border-radius: 50%; background: var(--c); }
.product:hover .product-name { color: var(--c); }
.product-desc { grid-column: 6 / span 4; color: var(--ink-2); }
.product-link { grid-column: 10 / -1; justify-self: end; font: 500 .8125rem var(--f-mono); letter-spacing: .02em; text-underline-offset: 4px; white-space: nowrap; }
.product-link.is-muted { color: var(--ink-2); text-transform: uppercase; letter-spacing: .075em; font-size: var(--t-label); }

/* ---------- 09 process ---------- */
.steps { position: relative; row-gap: 48px; margin-top: var(--sec-half); }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--grana) 0 16px, transparent 16px 26px);
}
.steps li { position: relative; display: grid; gap: 14px; align-content: start; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--anil); border: 1.5px solid var(--manta);
  font: 600 .72rem var(--f-body); margin-bottom: 20px;
}
.steps p { font-size: var(--t-body); line-height: 1.56; color: color-mix(in srgb, var(--manta) 78%, transparent); max-width: 36ch; }

/* ---------- 11 cta ---------- */
.cta { background: var(--maiz); }
.cta .label { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.cta .cta-title { margin-top: 48px; font-size: var(--t-cta); line-height: .94; letter-spacing: -.035em; }
.js .cta-title .line:nth-child(2) .ln { transition-delay: 110ms; }
.js .cta-title .line:nth-child(3) .ln { transition-delay: 220ms; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 56px; }
.cta-link { font-size: 1rem; font-weight: 500; text-underline-offset: 4px; }
.knot-anchor { position: absolute; left: 88%; top: 44%; width: 1px; height: 1px; }

/* ---------- footer ---------- */
.foot { overflow: hidden; padding-top: var(--sec); }
.foot .grid { padding-bottom: 72px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand p, .foot-col a, .foot-col span { font-size: var(--t-small); line-height: 1.5; }
.foot-brand p { max-width: 26ch; color: color-mix(in srgb, var(--manta) 72%, transparent); }
.foot-col { display: grid; gap: 10px; align-content: start; grid-column: span 2; }
.foot-brand + .foot-col { grid-column: 7 / span 2; }
.foot-col .label { margin-bottom: 6px; }
.foot-col a, .foot-col span { text-decoration: none; color: color-mix(in srgb, var(--manta) 88%, transparent); transition: color .2s linear; }
.foot-col a:hover { color: var(--maiz); }
.wordmark {
  margin: 0; padding-bottom: 64px;
  font-size: 17vw; line-height: .8;
  letter-spacing: -.05em; text-align: center; white-space: nowrap;
}
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
  font: 500 var(--t-label) var(--f-mono); letter-spacing: .075em; text-transform: uppercase;
  color: color-mix(in srgb, var(--manta) 65%, transparent);
}
.foot-base a { text-decoration: none; }

/* ---------- scroll-driven touches (progressive) ---------- */
@supports (animation-timeline: view()) {
  .marquee { animation: mq-shift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .marquee[data-dir="right"] { animation-name: mq-shift-r; }
  @keyframes mq-shift { from { translate: 5vw 0; } to { translate: -5vw 0; } }
  @keyframes mq-shift-r { from { translate: -5vw 0; } to { translate: 5vw 0; } }
  .wordmark { animation: wm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes wm-rise { from { translate: 0 .22em; opacity: .3; } to { translate: 0 0; opacity: 1; } }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .c-3 { grid-column: span 6; }
  .cards3 .c-4 { grid-column: 1 / -1; }
  .card { min-height: 0; }
  .c-9-12 { grid-column: 6 / -1; }
  .foot-brand { grid-column: 1 / -1; margin-bottom: 40px; }
  .foot-col, .foot-brand + .foot-col { grid-column: span 4; }
  .menu-main { grid-template-columns: 1fr; }
  .menu-panel { display: none; }
}
@media (max-width: 760px) {
  :root { --thread-w: 4px; --sec: 96px; --sec-half: 48px; --card-pad: 28px; }
  .grid > *, .foot-col, .foot-brand + .foot-col { grid-column: 1 / -1; }
  .grid { row-gap: 24px; }
  .stats > *, .clients > * { grid-column: span 6; }
  .needle, .scroll-cue { display: none; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 110px); }
  .hero .label { margin-bottom: 24px; }
  .hero-foot { margin-top: 40px; }
  .pin-inner { padding-block: 100px 48px; }
  .product > * { grid-column: 1 / -1; justify-self: start; }
  .reason { grid-template-columns: 1fr; grid-template-rows: auto minmax(160px, 1fr); }
  .reason-num span { font-size: 13rem; bottom: -.16em; }
  .steps::before { display: none; }
  .steps li { grid-column: 1 / -1; }
  .card { gap: 36px; }
  .thread-twist { display: none; }
  .menu-nav { padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .mark { background-size: 100% 86%; }
  .js .rv, .js .rise .ln, .js .pin-body { opacity: 1; transform: none; }
  .js .hub-svg .tr { stroke-dashoffset: 0; }
  .js .hub-svg .nd { transform: none; }
  .js .hub-svg .pulses { opacity: 1; }
  .marquee { overflow-x: auto; }
  .grain { display: none; }
}
