/* ==========================================================================
   Tonomik homepage v2 — Phase 1 (hero + dive + name story)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext subsets) ---------- */
/* latin-ext covers Romanian (ș ț ă î â) and the rest of Central/Eastern Europe;
   Spanish (á é í ó ú ñ ü ¿ ¡) is inside the latin subset. */
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/geist-latin-ext-300-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/geist-latin-300-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/geist-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/geist-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/space-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/space-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #131313;
  --bone: #E6E3DA;
  --muted: #9B9B9B;
  --hair: rgba(230, 227, 218, .25);
  --hair-ink: rgba(19, 19, 19, .22);
  --signal: #FF5500;
  --tile: #EDEAE3;

  --f-display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-logo: 'Plus Jakarta Sans', var(--f-display);

  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; background: var(--ink); color: var(--bone); }
body {
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
p { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
svg.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
svg.icon--stroke { fill: none; }
svg.flag { width: 18px; height: 18px; border-radius: 50%; flex: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--ink); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.skip-link {
  position: fixed; left: var(--gutter); top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--bone); color: var(--ink);
  font: 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.num { font-family: var(--f-mono); color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.eyebrow {
  font: 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .num { margin-right: .6em; }

/* Hairline with small down-turned corner brackets at both ends */
.frame-line {
  position: relative;
  border-top: 1px solid var(--hair);
}
.frame-line::before, .frame-line::after {
  content: ''; position: absolute; top: -1px; width: 7px; height: 7px;
  border-top: 1px solid var(--hair);
}
.frame-line::before { left: 0; border-left: 1px solid var(--hair); border-top-left-radius: 4px; }
.frame-line::after { right: 0; border-right: 1px solid var(--hair); border-top-right-radius: 4px; }

/* Box with four corner brackets over a hairline border */
.brackets {
  --bc: rgba(230, 227, 218, .7);
  --bl: 12px;
  border: 1px solid var(--hair);
  background:
    linear-gradient(var(--bc), var(--bc)) top left / var(--bl) 1px no-repeat,
    linear-gradient(var(--bc), var(--bc)) top left / 1px var(--bl) no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / var(--bl) 1px no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / 1px var(--bl) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / var(--bl) 1px no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / 1px var(--bl) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom right / var(--bl) 1px no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom right / 1px var(--bl) no-repeat;
}

/* ---------- Hero backdrop: poster + canvas ---------- */
/* The poster paints at 0 ms: warm fog at the top, a receding tile grid, bottom fade to ink. */
.poster {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  /* soft, luminous bone → ink: the WebGL scene resolves out of this */
  background:
    radial-gradient(120% 70% at 62% 30%, rgba(247, 244, 238, .95) 0%, rgba(240, 237, 230, 0) 60%),
    linear-gradient(180deg, #EEEBE5 0%, #E8E5DE 34%, #CFCBC2 50%, #7E7A73 66%, #2A2825 84%, var(--ink) 100%);
}
.poster__grid {
  position: absolute; left: -80%; right: -80%; top: 10%; height: 150%;
  background-image:
    linear-gradient(90deg, rgba(60, 55, 48, .13) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(60, 55, 48, .13) 0 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: calc(50% + 17px) 0;
  transform-origin: 50% 0;
  transform: perspective(420px) rotateX(66deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 60%, transparent 85%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 60%, transparent 85%);
  opacity: .7;
}
.poster__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0) 40%, rgba(19, 19, 19, .45) 62%, rgba(19, 19, 19, .94) 84%, var(--ink) 100%);
}
.field {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.1s var(--ease-out);
  pointer-events: none;
}
.field.is-ready { opacity: 1; }
.field.is-off { visibility: hidden; }

/* ---------- The opening (dark page coming up through the tile) ---------- */
.hole {
  position: fixed; inset: 0; z-index: 3;
  background: var(--ink);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  visibility: hidden;
  pointer-events: none;
  contain: strict;
}
.hole__wordmark {
  position: absolute; left: 50%; top: 50%;
  padding: .14em 0;
  overflow: hidden;
  font: 800 clamp(72px, 15vw, 240px)/1 var(--f-logo);
  letter-spacing: -0.03em;
  color: var(--bone);
  white-space: nowrap;
  will-change: transform;
  transform: translate(-50%, -50%);
}
.hole__word { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
  color: var(--ink);
  transition: color .5s var(--ease-out);
}
.site-header.is-dark { color: var(--bone); }
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(19, 19, 19, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 227, 218, .08);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.site-header.is-solid::before { opacity: 1; }

.logo {
  position: relative; display: inline-block;
  font: 800 23px/1 var(--f-logo);
  letter-spacing: -0.03em;
  margin-right: auto;
  padding: 6px 0;
}
.logo__word { display: inline-block; white-space: nowrap; }
.logo__line {
  position: absolute; left: 0; top: 0;
  width: 0; height: max(2px, .042em);
  background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

.nav__list { display: flex; gap: clamp(18px, 2vw, 30px); }
.nav a, .lang__btn {
  font: 12.5px/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
}
.nav a {
  position: relative; padding: 8px 0; display: inline-block;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.lang__btn .icon { font-size: 16px; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 172px; padding: 6px;
  background: rgba(19, 19, 19, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  color: var(--bone);
}
.lang__list button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; font: 12.5px/1 var(--f-mono); letter-spacing: .06em;
  text-align: left;
}
.lang__list button:hover { background: rgba(230, 227, 218, .08); }
.lang__list button[aria-current="true"]::after { content: '•'; margin-left: auto; color: var(--signal); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.burger .icon { font-size: 24px; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu__brand { font: 800 23px/1 var(--f-logo); letter-spacing: -0.03em; }
.menu__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-right: -10px; }
.menu__close .icon { font-size: 26px; }
.menu nav { flex: 1; display: flex; align-items: center; }
.menu__list { width: 100%; }
.menu__list li { border-top: 1px solid var(--hair); }
.menu__list li:last-child { border-bottom: 1px solid var(--hair); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  font: 300 clamp(40px, 11vw, 72px)/1 var(--f-display);
  letter-spacing: -0.03em;
}
.menu__list .num { font-size: 12px; transform: translateY(-.2em); }
.menu__langs { display: flex; gap: 10px; padding-top: 24px; flex: none; }
.menu__langs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid var(--hair); font: 12.5px/1 var(--f-mono); letter-spacing: .1em;
}
.menu__langs button[aria-current="true"] { border-color: var(--bone); }

/* ---------- Hero ---------- */
main { position: relative; }
.hero {
  position: relative; z-index: 2;
  height: 100vh; height: 100svh;
  min-height: 560px;
  color: var(--bone);
}
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(92px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr minmax(0, 28rem);
  align-items: end; gap: 32px;
}
.hero__title {
  font: 300 clamp(56px, 9vw, 168px)/.9 var(--f-display);
  letter-spacing: -0.03em;
  margin-left: -.04em;
}
.hero__line { display: block; will-change: transform; }
.hero__sub {
  font: 400 20px/1.38 var(--f-display);
  letter-spacing: -0.005em;
  max-width: 26em;
  padding-bottom: .5em;
  text-wrap: pretty;
}
.hero__bar {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  font: 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.explore { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.explore .icon { font-size: 14px; transition: transform .5s var(--ease-out); }
.explore:hover { color: var(--signal); }
.explore:hover .icon { transform: translateY(3px); }

/* Centred dive lines */
.dive-lines {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; place-items: center;
}
.dive-line {
  grid-area: 1 / 1;
  max-width: min(92vw, 16em);
  text-align: center;
  font: 300 clamp(36px, 5vw, 76px)/1.02 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--bone);
  text-shadow: 0 1px 2px rgba(19, 19, 19, .28), 0 4px 30px rgba(19, 19, 19, .38), 0 0 80px rgba(19, 19, 19, .25);
  opacity: 0;
}
.dive-line .word { display: inline-block; }

/* ---------- Name story ---------- */
.story {
  position: relative; z-index: 4;
  background: var(--ink);
  min-height: 100vh;
  padding: clamp(120px, 22vh, 220px) var(--gutter) clamp(96px, 16vh, 180px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.story .eyebrow { margin-bottom: 32px; }
/* With the dive, the story rides up over the (full-screen, ink) opening so it
   starts revealing as the wordmark docks instead of after a blank screen. */
.has-dive .story {
  background: transparent;
  margin-top: -26vh;
  padding-top: clamp(64px, 10vh, 120px);
}
.story__title {
  font: 300 clamp(40px, 6vw, 96px)/1 var(--f-display);
  letter-spacing: -0.03em;
  max-width: 14em;
  text-wrap: balance;
}
.story__body {
  margin-top: clamp(40px, 7vh, 72px);
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
}
.story__body p + p { margin-top: 1.6em; }
.story__body em { font-style: normal; color: var(--bone); }

/* ---------- Intro gate: hide intro elements until GSAP takes over ---------- */
.js-anim [data-intro="title"],
.js-anim [data-intro="sub"],
.js-anim [data-intro="bar"],
.js-anim [data-intro="nav"],
.js-anim .logo__word { opacity: 0; }

/* Lines revealed on scroll start hidden only when JS drives them */
.js-anim [data-reveal] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero__content { grid-template-columns: 1fr; gap: 24px; }
  .hero__sub { max-width: 30em; padding-bottom: 0; }
}
@media (max-width: 899px) {
  .nav, .lang { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .logo { font-size: 21px; }
  .hero__content { grid-template-columns: 1fr; gap: 20px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero__sub { font-size: 17px; max-width: 24em; padding-bottom: 0; }
  .hero__bar { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion / no-WebGL: static layout ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .dive-lines { display: none; }
  .field { transition: none; }
}
.no-dive .dive-lines { display: none; }

/* ==========================================================================
   Phase 2 — sections after the name story
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.section {
  position: relative; z-index: 4;
  background: var(--ink);
  padding: clamp(96px, 16vh, 180px) var(--gutter);
}
.section__head { max-width: 62rem; margin-bottom: clamp(56px, 9vh, 104px); }
.section__head .eyebrow, .how__sticky .eyebrow, .contact__intro > .eyebrow { margin-bottom: 28px; }
.section__title {
  font: 300 clamp(40px, 5.4vw, 88px)/1.02 var(--f-display);
  letter-spacing: -0.03em;
  max-width: 16em;
}
.section__sub {
  margin-top: 28px; max-width: 52ch;
  color: var(--muted); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75;
}
.rline { will-change: transform; }

/* Signal CTA: mono, hairline underline, arrow nudge, orange on hover */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 0 8px;
  font: 12.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--hair);
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.cta .icon { font-size: 15px; transition: transform .45s var(--ease-out); }
.cta:hover, .cta:focus-visible { color: var(--signal); border-color: var(--signal); }
.cta:hover .icon { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--bone); color: var(--ink); background: var(--bone);
  font: 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn .icon { font-size: 15px; transition: transform .45s var(--ease-out); }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn:hover .icon { transform: translateX(4px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--quiet { background: transparent; color: var(--bone); border-color: var(--hair); min-height: 42px; padding: 0 18px; }
.btn--quiet:hover { background: transparent; color: var(--signal); border-color: var(--signal); }

/* Status tags */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 5px;
  border: 1px solid var(--hair);
  font: 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.tag--live { color: var(--bone); }
.tag--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 85, 0, .5); animation: livePulse 2.4s var(--ease-out) infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 85, 0, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 85, 0, 0); } }

/* Feature lists */
.feats { display: flex; flex-wrap: wrap; gap: 10px 26px; font: 13px/1.5 var(--f-mono); color: var(--bone); }
.feats li { display: inline-flex; align-items: center; gap: 10px; }
.feats .icon { font-size: 14px; color: var(--muted); }
.feats--dots i { width: 5px; height: 5px; border: 1px solid var(--muted); border-radius: 50%; flex: none; }
.feats--stack { flex-direction: column; gap: 14px; }
.feats--stack li { align-items: flex-start; }
.feats--stack .icon { margin-top: 3px; }

/* ---------- 02. Products: numbered index ---------- */
.plist { border-top: 1px solid var(--hair); }
.product {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px);
  padding: clamp(44px, 7vh, 80px) 0;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.product__head { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 18px; row-gap: 22px; }
.product__num { font: 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; }
.product__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--hair); color: var(--bone);
}
.product__icon .icon { font-size: 22px; }
.product.is-wip .product__icon { color: var(--muted); }
.product__name {
  flex: 0 0 100%; order: 5;   /* meta row (num, icon, tag) first, then the name */
  font: 300 clamp(48px, 7.4vw, 124px)/.95 var(--f-display);
  letter-spacing: -0.035em;
  text-wrap: nowrap;
}
.product.is-wip .product__name { color: rgba(230, 227, 218, .78); }
.product__body { grid-column: 8 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 8px; }
.product__desc { color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 46ch; }
/* product film: its own full-width row under name + copy, sized to fit one screen */
.product__media {
  grid-column: 1 / -1; justify-self: center; position: relative; margin: clamp(16px, 3vh, 36px) 0 0;
  width: min(100%, calc((100svh - var(--header-h) - 40px) * 16 / 9));
  aspect-ratio: 16 / 9; background: #0B0D12; border: 1px solid var(--hair); overflow: hidden;
}
.product__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media__play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 14px;
  padding: clamp(16px, 2.4vw, 32px); border: 0; background: linear-gradient(to top, rgba(11, 13, 18, .55), transparent 45%);
  color: var(--bone); font: 12px/1 var(--f-mono); letter-spacing: .12em; cursor: pointer;
}
.media__play-ring {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(230, 227, 218, .35); background: rgba(11, 13, 18, .35);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.media__play-ring svg { width: 18px; height: 18px; margin-left: 3px; }
.media__play:hover .media__play-ring, .media__play:focus-visible .media__play-ring { background: var(--signal); border-color: var(--signal); transform: scale(1.06); }
.media__play-time { padding-bottom: 22px; color: var(--muted); }
.product__media.is-playing .media__play { display: none; }
/* zig-zag */
.product:nth-child(even) .product__head { grid-column: 6 / span 7; grid-row: 1; justify-content: flex-end; }
.product:nth-child(even) .product__head > .product__num { order: 3; }
.product:nth-child(even) .product__head > .product__icon { order: 2; }
.product:nth-child(even) .product__head > .tag { order: 1; }
.product:nth-child(even) .product__name { text-align: right; }
.product:nth-child(even) .product__body { grid-column: 1 / span 5; grid-row: 1; }

/* ---------- 03. How it works: sticky title, steps scroll ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
/* the aside must stretch the whole row so its sticky child has room to stick */
.how__aside { align-self: stretch; }
.how__sticky { position: sticky; top: calc(var(--header-h) + 6vh); }
.how__title {
  max-width: 16em;
  font: 300 clamp(40px, 4.8vw, 84px)/1.02 var(--f-display);
  letter-spacing: -0.03em;
}
.how__sticky .cta { margin-top: 36px; }
.steps { border-top: 1px solid var(--hair); }
.step {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 10px 20px;
  padding: clamp(36px, 7vh, 72px) 0;
  border-bottom: 1px solid var(--hair);
  min-height: 34vh;
}
.step__num { grid-row: 1 / span 2; font: 300 clamp(32px, 3vw, 48px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--muted); }
.step__title { font: 300 clamp(28px, 2.6vw, 44px)/1.08 var(--f-display); letter-spacing: -0.025em; }
.step__desc { margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 46ch; }

/* ---------- 04. Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 36px); }
.plan { padding: clamp(28px, 3.2vw, 52px); display: flex; flex-direction: column; gap: 22px; }
.plan__tag { display: inline-flex; align-items: center; gap: 10px; font: 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan__tag .icon { font-size: 18px; color: var(--bone); }
.plan__name { font: 300 clamp(32px, 3.2vw, 54px)/1.02 var(--f-display); letter-spacing: -0.03em; }
.plan__tagline { color: var(--bone); font: 400 17px/1.45 var(--f-display); max-width: 30em; }
.plan .feats { color: var(--muted); font-size: 13.5px; line-height: 1.6; padding-top: 18px; border-top: 1px solid var(--hair); }
.plan .feats .icon { color: var(--bone); }
.plan__best { margin-top: auto; padding-top: 18px; font: 12.5px/1.6 var(--f-mono); color: var(--bone); }
.pricing__note { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.pricing__note p { color: var(--muted); max-width: 58ch; font-size: 14px; line-height: 1.7; }

/* ---------- 05. Why / principles ---------- */
.why__title {
  font: 300 clamp(40px, 5.6vw, 96px)/1.02 var(--f-display);
  letter-spacing: -0.035em; color: var(--muted); max-width: 15em;
}
.why__title em { font-style: normal; color: var(--bone); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.principle { padding: clamp(32px, 5vh, 56px) clamp(0px, 3vw, 48px) clamp(32px, 5vh, 56px) 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 3.5rem 1fr; gap: 12px 16px; }
.principle:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--hair); }
.principle .num { grid-row: 1 / span 2; padding-top: 8px; }
.principle__title { font: 300 clamp(26px, 2.4vw, 40px)/1.1 var(--f-display); letter-spacing: -0.025em; }
.principle__desc { color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 46ch; }

/* ---------- 06. Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.founder { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: clamp(150px, 17vw, 240px) 1fr; gap: clamp(16px, 2vw, 28px); align-items: center; }
/* cut-out portrait composited straight onto the ink page: no frame, bust fade at the bottom */
.founder__photo { margin: 0; aspect-ratio: 480 / 636; }
.founder__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.founder__info .eyebrow { margin-bottom: 10px; }
.founder__name { font: 300 clamp(26px, 2.3vw, 36px)/1.1 var(--f-display); letter-spacing: -0.02em; }
.founder__role { margin-top: 6px; color: var(--muted); font-size: 13px; }
.meta { margin: 24px 0 0; display: grid; gap: 12px; }
.meta > div { display: grid; grid-template-columns: minmax(9.5rem, auto) 1fr; gap: 12px; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 12px; }
.meta dt { display: inline-flex; align-items: center; gap: 10px; font: 11.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meta dt .icon { font-size: 15px; color: var(--bone); }
.meta dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.meta a { border-bottom: 1px solid var(--hair); transition: color .3s, border-color .3s; }
.meta a:hover { color: var(--signal); border-color: var(--signal); }

.form { display: grid; gap: 30px; padding-top: 8px; }
.fld { display: grid; gap: 10px; }
.fld label { font: 11.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fld__opt { text-transform: none; letter-spacing: .02em; opacity: .8; }
.fld input, .fld textarea {
  width: 100%; font: 400 18px/1.45 var(--f-display); color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid var(--hair);
  padding: 8px 0 12px; border-radius: 0; resize: vertical;
  transition: border-color .3s var(--ease-out);
}
.fld textarea { min-height: 7.5em; }
.fld input:hover, .fld textarea:hover { border-color: rgba(230, 227, 218, .5); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--bone); }
.fld input:focus-visible, .fld textarea:focus-visible { outline: none; box-shadow: 0 2px 0 0 var(--signal); border-color: var(--signal); }
.fld.is-invalid input, .fld.is-invalid textarea { border-color: #ff8a57; }
.fld__err { font: 12px/1.4 var(--f-mono); color: #ff9d73; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.form__fine { font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 36ch; }
.form__status { font: 13px/1.6 var(--f-mono); min-height: 1.6em; }
.form__status.is-ok { color: var(--bone); }
.form__status.is-ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-right: 10px; vertical-align: 2px; }
.form__status.is-error { color: #ff9d73; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 4; background: var(--ink); padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom)); }
.footer { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 64px); display: grid; gap: clamp(36px, 6vh, 64px); }
/* calm, fully ordered grid bookend (CSS, no WebGL) */
.footer__grid {
  position: absolute; left: -20%; right: -20%; bottom: -30%; height: 120%;
  background-image:
    linear-gradient(90deg, rgba(230, 227, 218, .07) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(230, 227, 218, .07) 0 1px, transparent 1px);
  background-size: 48px 48px; background-position: 50% 0;
  transform-origin: 50% 100%; transform: perspective(700px) rotateX(58deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  pointer-events: none;
}
.footer > :not(.footer__grid) { position: relative; }
.footer__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
.footer__logo { font: 800 clamp(56px, 11vw, 176px)/.9 var(--f-logo); letter-spacing: -0.035em; }
.footer__tag { font: 300 clamp(20px, 1.8vw, 28px)/1.2 var(--f-display); color: var(--muted); max-width: 18em; }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font: 12.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.footer__nav a, .footer__contact a, .footer__legal a, .footer__legal button { transition: color .3s; }
.footer__nav a:hover, .footer__contact a:hover, .footer__legal a:hover, .footer__legal button:hover { color: var(--signal); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .icon { font-size: 17px; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--hair);
  font: 11.5px/1.6 var(--f-mono); letter-spacing: .06em; color: var(--muted);
}
.footer__legal button { font: inherit; letter-spacing: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.footer__legal a { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.footer__legal > span { margin-left: auto; }

/* ---------- Cookie consent: compact bar ---------- */
/* Desktop: a single row sitting in the empty middle of the hero's bottom
   bracket bar (between "TONOMIK ©2026" and "EXPLORE"). Mobile: compact sheet. */
.consent {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(7px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  display: flex; align-items: center; gap: 18px;
  height: 42px; padding: 0 6px 0 16px;
  max-width: calc(100vw - 2 * var(--gutter) - 380px);
  background: rgba(19, 19, 19, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--hair);
  color: var(--bone);
  opacity: 0;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.consent.is-visible { opacity: 1; transform: translate(-50%, 0); }
.consent[hidden] { display: none; }
.consent__text { display: flex; align-items: center; gap: 10px; min-width: 0; font: 11.5px/1.3 var(--f-mono); letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.consent__text > span { overflow: hidden; text-overflow: ellipsis; }
.consent__text i { width: 5px; height: 5px; border-radius: 50%; background: var(--bone); flex: none; }
.consent__text a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); flex: none; }
.consent__text a:hover { color: var(--signal); }
.consent__actions { display: flex; gap: 6px; flex: none; }
.consent__actions .btn { min-height: 30px; height: 30px; padding: 0 14px; font-size: 11px; }
@media (max-width: 1099px) {
  .consent {
    left: var(--gutter); right: var(--gutter); bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateY(8px);
    max-width: none; height: auto; padding: 12px 12px 12px 14px;
    flex-wrap: wrap; gap: 10px 14px;
  }
  .consent.is-visible { transform: none; }
  .consent__text { white-space: normal; flex: 1 1 220px; line-height: 1.5; }
  .consent__actions { flex: 0 0 auto; margin-left: auto; }
}

/* nav: active section */
.nav a[aria-current="true"]::after { transform: scaleX(1); }

/* reveal helpers (hidden only when JS animates) */
.js-anim [data-rise] { opacity: 0; }

/* ---------- Legal page ---------- */
.legal-page { background: var(--ink); }
.legal {
  position: relative; z-index: 4;
  max-width: 46rem; margin: 0 auto;
  padding: calc(var(--header-h) + clamp(56px, 12vh, 120px)) var(--gutter) clamp(96px, 14vh, 160px);
}
.legal__back { display: inline-block; margin-bottom: 48px; font: 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal__back:hover { color: var(--signal); }
.legal h1 { font: 300 clamp(44px, 6vw, 88px)/1 var(--f-display); letter-spacing: -0.035em; }
.legal__updated { margin-top: 20px; font: 12px/1.5 var(--f-mono); color: var(--muted); }
.legal__flag { margin: 40px 0 0; padding: 22px 24px; display: grid; gap: 10px; }
.legal__flag p:not(.eyebrow) { color: var(--bone); font-size: 13.5px; line-height: 1.7; }
.legal__note { margin-top: 28px; font-size: 13px; color: var(--muted); font-style: normal; }
.legal h2 { margin: 56px 0 16px; font: 300 clamp(24px, 2.2vw, 32px)/1.2 var(--f-display); letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.legal strong { color: var(--bone); font-weight: 400; }
.legal ul { display: grid; gap: 14px; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ''; position: absolute; left: 2px; top: .8em; width: 6px; height: 1px; background: var(--bone); }
.legal a:not(.legal__back) { color: var(--bone); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.legal a:not(.legal__back):hover { color: var(--signal); }

/* ---------- Phase 2 responsive ---------- */
@media (max-width: 1023px) {
  .product__head, .product:nth-child(even) .product__head { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .product:nth-child(even) .product__head > :not(.product__name) { order: 0; }
  .product:nth-child(even) .product__name { text-align: left; }
  .product__body, .product:nth-child(even) .product__body { grid-column: 1 / -1; grid-row: auto; }
  .product__media { order: 1; margin-top: 0; }
  .media__play-ring { width: 44px; height: 44px; }
  .media__play-time { padding-bottom: 16px; }
  .product__body { order: 2; }
  .how { grid-template-columns: 1fr; }
  .how__sticky { position: static; }
  .step { min-height: 0; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .plans, .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding-left: 0; border-left: 0; padding-right: 0; }
  .product__name { text-wrap: wrap; }
  .step { grid-template-columns: 3.4rem 1fr; }
  .founder { grid-template-columns: 132px 1fr; }
  .meta > div { grid-template-columns: 1fr; gap: 4px; }
  .footer__legal > span { margin-left: 0; }
  .consent__actions { flex-direction: row; }
}

/* ==========================================================================
   2026-10-09 — services: "What we automate" (#automate) + "Websites" (#websites)
   ========================================================================== */
/* nav: 7 links. Between the burger breakpoint and 1280px, drop the two
   secondary links (still in the mobile menu + footer) so the bar stays tidy. */
@media (min-width: 900px) and (max-width: 1279px) {
  .nav__opt { display: none; }
  .nav__list { gap: clamp(16px, 1.6vw, 24px); }
}
.menu__list a { font-size: clamp(32px, 9vw, 64px); padding: 12px 0; }

/* shared line-art vocabulary for the inline SVG animations */
.art, .mock { display: block; width: 100%; height: auto; color: var(--bone); overflow: visible; }
.art .l, .mock .l { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.art .d, .mock .d { stroke: rgba(230, 227, 218, .32); }
.art .s, .mock .s { stroke: var(--signal); }
.art .sf, .mock .sf { fill: var(--signal); stroke: none; }
.art .bf, .mock .bf { fill: currentColor; stroke: none; }
.mock .mf { fill: rgba(230, 227, 218, .3); stroke: none; }
.art .ink, .mock .ink { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art .bk rect { fill: rgba(230, 227, 218, .12); }
.art__mono { font: 10px var(--f-mono); letter-spacing: .08em; fill: var(--muted); }
.art__mono--bone { fill: var(--bone); font-size: 12px; }

/* ---------- 02. What we automate ---------- */
.autos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.auto {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 10px 14px;
  padding: clamp(24px, 2.6vw, 40px);
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  transition: background .5s var(--ease-out);
}
/* orange corner bracket on hover, echoing the frame language */
.auto::before, .auto::after {
  content: ''; position: absolute; width: 12px; height: 12px; opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.auto::before { left: -1px; top: -1px; border-left: 1px solid var(--signal); border-top: 1px solid var(--signal); }
.auto::after { right: -1px; bottom: -1px; border-right: 1px solid var(--signal); border-bottom: 1px solid var(--signal); }
.auto:hover { background: rgba(230, 227, 218, .025); }
.auto:hover::before, .auto:hover::after { opacity: 1; }
.auto__art { grid-column: 1 / -1; margin: 0 0 clamp(14px, 2vh, 24px); padding: 8px 4px; }
.auto__art .art { max-width: 300px; margin: 0 auto; }
.auto__num { font: 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; padding-top: .55em; }
.auto__title { margin: 0; font: 300 clamp(22px, 1.9vw, 30px)/1.12 var(--f-display); letter-spacing: -0.02em; }
.auto__desc { grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 40ch; }

/* industries strip */
.inds { margin-top: clamp(48px, 8vh, 88px); display: grid; gap: 20px; }
.inds__view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.inds__track { display: flex; width: max-content; animation: indsRoll 46s linear infinite; animation-play-state: paused; }
.inds.is-on .inds__track { animation-play-state: running; }
.inds__view:hover .inds__track { animation-play-state: paused; }
.inds__set { display: flex; gap: 12px; padding-right: 12px; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 16px 10px; border: 1px solid var(--hair);
  font: 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
}
.chip::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--muted); flex: none; }
.chip:nth-child(3n+1)::before { background: var(--signal); border-color: var(--signal); }
@keyframes indsRoll { to { transform: translate3d(-50%, 0, 0); } }
/* reduced motion / reduced path: no marquee, wrapped static chips */
.reduced .inds__view { -webkit-mask-image: none; mask-image: none; }
.reduced .inds__track { animation: none; width: auto; }
.reduced .inds__set { flex-wrap: wrap; padding-right: 0; }
.reduced .inds__set--dup { display: none; }
@media (prefers-reduced-motion: reduce) {
  .inds__view { -webkit-mask-image: none; mask-image: none; }
  .inds__track { animation: none !important; width: auto; }
  .inds__set { flex-wrap: wrap; padding-right: 0; }
  .inds__set--dup { display: none; }
}

/* ---------- 03. Websites ---------- */
.web__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.web__feats { border-top: 1px solid var(--hair); }
.wfeat { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: clamp(20px, 3.2vh, 32px) 0; border-bottom: 1px solid var(--hair); }
.wfeat__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--hair); color: var(--bone); }
.wfeat__icon .icon { font-size: 19px; }
.wfeat__title { margin: 0; font: 300 clamp(21px, 1.7vw, 27px)/1.15 var(--f-display); letter-spacing: -0.02em; }
.wfeat__desc { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 46ch; }
.web__mock { margin: 0; padding: clamp(10px, 1.4vw, 18px); background-color: rgba(230, 227, 218, .02); }
.mock .wf { fill: none; stroke: rgba(230, 227, 218, .45); stroke-width: 1; stroke-dasharray: 4 4; }
.mock__url { font: 10.5px var(--f-mono); letter-spacing: .06em; fill: var(--muted); }
.mock__toast-t { font: 11.5px var(--f-mono); letter-spacing: .02em; fill: var(--bone); }
.web__foot { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.web__proof { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 60ch; }
.web__proof a { color: var(--bone); border-bottom: 1px solid var(--hair); transition: color .3s, border-color .3s; }
.web__proof a .icon { font-size: 13px; margin-left: 5px; vertical-align: -1px; }
.web__proof a:hover, .web__proof a:focus-visible { color: var(--signal); border-color: var(--signal); }

@media (max-width: 1023px) {
  .autos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web__grid { grid-template-columns: 1fr; }
  .web__mock { order: -1; }
}
@media (max-width: 639px) {
  .autos { grid-template-columns: 1fr; }
  .auto__art { margin-bottom: 10px; padding: 0; }
  .auto__art .art { max-width: 250px; }
}

/* ==========================================================================
   2026-10-10 — product videos: one-line pitch + music credit
   ========================================================================== */
.product__pitch {
  margin-bottom: -10px;   /* pitch + desc read as one block inside the 26px body gap */
  font: 300 clamp(21px, 1.7vw, 27px)/1.2 var(--f-display);
  letter-spacing: -0.02em; color: var(--bone); max-width: 30ch;
}
.product.is-wip .product__pitch { color: rgba(230, 227, 218, .86); }
.plist__credit {
  margin-top: 22px; max-width: 80ch;
  font: 11px/1.7 var(--f-mono); letter-spacing: .02em; color: var(--muted);
}
.plist__credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; transition: color .3s; }
.plist__credit a:hover, .plist__credit a:focus-visible { color: var(--signal); }

/* ==========================================================================
   2026-10-10 — product details: who / what / how / get, one spec sheet per product
   ========================================================================== */
.pdet { grid-column: 1 / -1; margin-top: clamp(28px, 5vh, 56px); }
.pdet__row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 18px clamp(20px, 3vw, 48px); padding: clamp(24px, 3.6vh, 38px) 0;
}
.pdet__row:last-child { padding-bottom: 0; }
.pdet__label {
  margin: 0; padding-top: 5px;
  font: 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.pdet__who {
  max-width: 40ch; color: var(--bone);
  font: 300 clamp(21px, 1.7vw, 27px)/1.25 var(--f-display); letter-spacing: -0.02em;
}
.product.is-wip .pdet__who { color: rgba(230, 227, 218, .86); }
.pcaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.6vh, 36px) clamp(20px, 2.4vw, 40px); }
.pcap { padding-left: 18px; border-left: 1px solid var(--hair); }
.pcap__t { margin: 0; font: 300 clamp(18px, 1.35vw, 21px)/1.2 var(--f-display); letter-spacing: -0.015em; color: var(--bone); }
.pcap__d { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.65; max-width: 40ch; }
.pflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(20px, 2.4vw, 40px); counter-reset: none; }
.pflow__step { position: relative; padding-top: 18px; border-top: 1px dashed var(--hair); }
.pflow__step::before {
  content: ''; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal);
}
.product.is-wip .pflow__step::before { background: var(--muted); }
.pflow__n { display: block; margin-bottom: 10px; font: 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.pflow__step p { color: var(--bone); font-size: 14.5px; line-height: 1.65; max-width: 36ch; }
.pget { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(20px, 2.4vw, 40px); margin: 0; }
.pget dt { font: 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pget dd { margin: 8px 0 0; color: var(--bone); font-size: 14.5px; line-height: 1.6; max-width: 34ch; }

@media (max-width: 1199px) {
  .pcaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pdet { order: 3; margin-top: 8px; }
}
@media (max-width: 767px) {
  .pdet__row { grid-template-columns: 1fr; gap: 16px; }
  .pdet__label { padding-top: 0; }
  .pcaps, .pflow, .pget { grid-template-columns: 1fr; }
  .pcaps { gap: 22px; }
  .pflow { gap: 22px; }
  .pget { gap: 16px; }
}
@media (max-width: 767px) {
  .pget { padding-left: 18px; border-left: 1px solid var(--hair); }
}

/* ==========================================================================
   2026-10-10 — mobile: product details toggle, tighter rhythm, tap targets,
   readable type, stacked contact card. Every visual rule sits inside
   max-width: 767px; the only rule outside hides the (phone-only) toggle.
   ========================================================================== */
.pdet__toggle, .pdet__toggle[hidden] { display: none; }

@media (max-width: 767px) {
  /* ---------- A. Product details: collapsed behind a toggle ---------- */
  /* full-width accordion row in the .cta vocabulary (mono, uppercase, hairlines) */
  .pdet__toggle:not([hidden]) {
    display: flex; align-self: stretch; justify-content: space-between; gap: 16px;
    min-height: 52px; padding: 14px 0 12px;
    border-top: 1px solid var(--hair); border-bottom: 0;   /* the product rule / first spec row supply the line below */
    text-align: left;
  }
  .pdet__toggle .pdet__plus { font-size: 18px; transition: transform .45s var(--ease-out); }
  .pdet__toggle:hover .pdet__plus { transform: none; }
  .pdet__toggle[aria-expanded="true"] .pdet__plus { transform: rotate(45deg); }
  /* touch: no sticky orange hover after a tap */
  @media (hover: none) {
    .pdet__toggle:hover:not(:focus-visible) { color: inherit; border-color: var(--hair); }
  }
  /* collapsed: kept in the DOM (and laid out at full width, so the line splits
     inside stay right), just 0 tall; the negative margin cancels the 24px row gap */
  .pdet[data-state="closed"] { height: 0; margin-top: -24px; overflow: hidden; visibility: hidden; }
  /* closed: the product's bottom rule closes the toggle row, no dead band under it */
  .product:has(> .pdet[data-state="closed"]) { padding-bottom: 0; }
  /* the reduced-motion rule gives everything a .01ms transition: the margin would
     still be mid-"transition" when ScrollTrigger re-measures, so none here */
  .pdet { transition: none !important; }

  /* ---------- B. Tighter vertical rhythm ---------- */
  .section { padding-top: 68px; padding-bottom: 68px; }
  .section__head { margin-bottom: 44px; }
  .section__head .eyebrow, .how__sticky .eyebrow, .contact__intro > .eyebrow { margin-bottom: 20px; }
  .section__sub { margin-top: 20px; }
  /* story: drop the full-screen min-height (dead space below the copy). The
     dive variant keeps its own padding-top / -26vh overlap, so the dock timing is unchanged. */
  .story { min-height: 0; padding-top: 96px; padding-bottom: 68px; }
  .story .eyebrow { margin-bottom: 24px; }
  .story__body { margin-top: 36px; }
  .inds { margin-top: 44px; }
  .web__foot, .pricing__note { margin-top: 32px; }

  /* products: h3 default margins (1em of a 48px name) were most of the gap */
  .product { padding: 40px 0 28px; }
  .product__name { margin: 0; }
  .product__body { gap: 22px; }
  .pdet__row { padding: 24px 0; }
  .pdet__row:last-child { padding-bottom: 0; }

  /* numbered lists: number above the title, text uses the full width */
  .how__sticky .cta { margin-top: 28px; }
  .step { grid-template-columns: 1fr; gap: 0; padding: 32px 0; }
  .step__num { grid-row: auto; margin-bottom: 14px; font-size: 28px; }
  .step__title { margin: 0; }
  .step__desc { margin-top: 10px; }
  .principle, .principle:nth-child(even) { grid-template-columns: 1fr; gap: 10px; padding-top: 28px; padding-bottom: 28px; }
  .principle .num { grid-row: auto; padding-top: 0; }
  .principle__title { margin: 0; }
  .auto__desc { grid-column: 1 / -1; }
  .plan__name { margin: 0; }
  .founder { margin-top: 32px; }
  .footer { gap: 32px; }

  /* ---------- C. Tap targets ≥ 44px ---------- */
  .cta { min-height: 44px; padding: 12px 0 10px; }
  /* invisible hit areas: the visual stays exactly as it was */
  .logo::before { content: ''; position: absolute; inset: -6px -8px; }
  .explore { position: relative; }
  .explore::before { content: ''; position: absolute; inset: -9px -12px; }
  .meta a { position: relative; }
  .meta a::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
  .consent__actions .btn { position: relative; }
  .consent__actions .btn::before { content: ''; position: absolute; left: -1px; right: -1px; top: -8px; bottom: -8px; }
  .plist__credit a { position: relative; padding: 14px 0; }   /* inline padding: bigger hit box, same line layout; positioned so it sits above the next line */
  .menu__langs button { min-height: 44px; }
  .footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .footer__nav a, .footer__contact a, .footer__legal a, .footer__legal button { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__contact { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer__legal { row-gap: 0; }
  .footer__legal > span { padding-top: 6px; }

  /* ---------- D. Readability ---------- */
  /* body copy: at least 14px; Space Mono runs wide, so pull the tracking in a touch */
  .section__sub, .story__body, .auto__desc, .wfeat__desc, .web__proof, .feats, .plan .feats,
  .pcap__d, .pricing__note p, .founder__role, .meta dd, .footer__contact, .legal__note, .legal__flag p:not(.eyebrow) {
    font-size: 14px;
  }
  .section__sub, .story__body, .auto__desc, .wfeat__desc, .web__proof, .feats, .plan__best,
  .product__desc, .pcap__d, .pflow__step p, .pget dd, .step__desc, .principle__desc, .pricing__note p,
  .founder__role, .meta dd, .footer__contact, .form__fine, .legal p, .legal li {
    letter-spacing: -0.01em;
  }
  /* small labels: 12px floor (SVG illustration text excluded) */
  .plan__best { font-size: 14px; }
  .tag, .pget dt, .plist__credit, .meta dt, .fld label, .footer__legal, .consent__text, .consent__actions .btn { font-size: 12px; }

  /* ---------- E. Contact card: portrait on top, details full width ---------- */
  .founder { grid-template-columns: 1fr; gap: 12px; }
  .founder__photo { width: min(200px, 58%); }
}
