/* ==========================================================================
   CIB Design — main stylesheet
   ========================================================================== */

:root {
  /* Colour */
  --bg: #0A0A0B;
  --bg-2: #111113;
  --bg-3: #17171A;
  --fg: #F2EFE9;
  --fg-2: #C9C5BD;
  --muted: #8C8880;
  --line: rgba(242, 239, 233, 0.1);
  --line-2: rgba(242, 239, 233, 0.18);
  --accent: #D4FF3A;
  --accent-ink: #0A0A0B;
  --accent-soft: rgba(212, 255, 58, 0.14);

  /* Type */
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: calc(var(--header-h) + 24px); overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading, body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, label, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.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; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 14vw, 180px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; transform: translateY(-200%); transition: transform .3s; }
.skip-link:focus { transform: none; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.h2 {
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 14ch;
}
.h2 .serif { font-size: 1.08em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 52ch; }

.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }

/* ----- Grain overlay ----- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Preloader ----- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path .8s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.no-js .loader { display: none; }
.loader.is-done { clip-path: inset(0 0 100% 0); }
/* CSS failsafe: if scripts fail to load, hide the loader anyway */
.js .loader { animation: loader-failsafe .6s 7s forwards; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__inner { display: flex; align-items: flex-end; gap: 24px; }
.loader__mark { width: 64px; height: 64px; color: var(--fg); animation: spin 1.6s var(--ease-in-out) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__count { font-size: clamp(64px, 12vw, 140px); line-height: .8; font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.loader__count sup { font-size: .3em; color: var(--muted); vertical-align: top; margin-left: 4px; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--fg-2); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ----- Buttons ----- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px;
  border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), border-color .3s, transform .2s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn > * { pointer-events: none; }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--fg); }
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light::before { background: var(--accent); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--small { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { --h: 64px; padding: 0 36px; font-size: 17px; }
.btn--block { width: 100%; }

/* Hover effects only on devices with a real pointer (stops "stuck" hover colours after a tap on phones) */
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:hover svg { transform: translateX(4px); }
  .btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
}

/* ----- Header ----- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10,10,11,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; margin-right: auto; }
.logo svg { width: 30px; height: 30px; color: var(--accent); transition: transform .8s var(--ease-out); }
.logo:hover svg { transform: rotate(-180deg); }
.logo em { font-family: var(--f-serif); font-weight: 400; font-size: 1.15em; margin-left: 3px; color: var(--fg-2); }
.nav { display: flex; gap: 6px; }
.nav__link { position: relative; padding: 11px 14px; font-size: 15px; color: var(--fg-2); border-radius: 999px; transition: color .3s, background-color .3s; }
.nav__link .roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.5; height: 1.5em; }
.nav__link .roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease-out); }
.nav__link .roll > span::after { content: attr(data-hover); position: absolute; left: 0; top: 100%; color: var(--fg); }
.nav__link:hover .roll > span { transform: translateY(-100%); }
.nav__link.is-active { color: var(--fg); background: var(--line); }
.nav__link:hover { color: var(--fg); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg-2);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .5s var(--ease-in-out);
}
.menu.is-open { transition-duration: .8s; }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(40px, 11vw, 64px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.menu__nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.menu__nav a:hover { color: var(--accent); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: grid; gap: 14px; color: var(--muted); }
.menu__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.menu__mail:hover { color: var(--accent); }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: radial-gradient(circle, rgba(200,200,215,.32), transparent 65%); animation: float1 18s ease-in-out infinite alternate; }
.blob--2 { width: 34vw; height: 34vw; right: 18vw; bottom: -14vw; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .08; animation: float2 22s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(-8vw, 10vw) scale(1.15); } }
@keyframes float2 { to { transform: translate(10vw, -8vw) scale(.9); } }
.hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(242,239,233,.045), transparent 45%);
  transition: opacity .4s;
}
.hero__inner { position: relative; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.hero__eyebrow { color: var(--fg-2); padding: 8px 16px 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }

.hero__title {
  font-size: clamp(50px, 10.2vw, 168px);
  line-height: .9;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 8px 0 48px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--muted { color: var(--muted); }
.hero__title .serif { font-size: 1.06em; letter-spacing: -0.03em; color: var(--fg); padding-right: .04em; }
.hero__title .line--muted .serif { color: var(--accent); }

.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.hero__lead { max-width: 44ch; font-size: clamp(17px, 1.45vw, 20px); color: var(--fg-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 16px 56px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stat { display: flex; align-items: center; gap: 14px; }
.hero__stat strong { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.hero__stat span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* char split */
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.js .hero__title .char { transform: translateY(105%) rotate(6deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 22ms + var(--d, 0ms)); }
.js .is-ready .hero__title .char { transform: none; }
.js [data-hero-fade] { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .is-ready [data-hero-fade] { opacity: 1; transform: none; }
.js .is-ready .hero__eyebrow[data-hero-fade] { transition-delay: .1s; }
.js .is-ready .hero__lead[data-hero-fade] { transition-delay: .7s; }
.js .is-ready .hero__actions[data-hero-fade] { transition-delay: .8s; }
.js .is-ready .hero__meta[data-hero-fade] { transition-delay: 1s; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.scroll-cue__line { width: 1px; height: 48px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--fg-2); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ----- Marquee ----- */
.marquee { position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg); }
.marquee__toggle { position: absolute; right: var(--gutter); top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--fg); transition: background-color .3s, color .3s, border-color .3s; }
.marquee__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.marquee__toggle .i-play { fill: currentColor; stroke-width: 1.5; display: none; }
.marquee__toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee__toggle[aria-pressed="true"] .i-play { display: block; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (hover: hover) { .marquee__toggle:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(32px, 4.5vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.marquee__track span.serif { color: var(--fg-2); }
.marquee__track i { font-style: normal; color: var(--muted); font-size: clamp(18px, 2vw, 28px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Statement ----- */
.statement__text {
  font-size: clamp(30px, 4.3vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 450;
  max-width: 22ch;
  max-width: 1100px;
}
.statement__text .w { opacity: .22; transition: opacity .2s; }
.no-js .statement__text .w, .statement__text:not(.is-split) { opacity: 1; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; max-width: 820px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.founder__photo { width: clamp(88px, 10vw, 124px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); }
.founder__photo span { font-family: var(--f-serif); font-style: italic; font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--fg); transform: translateY(-2px); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__bio { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--fg-2); }
.founder__name { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.founder__name strong { font-weight: 500; font-size: 18px; }
.founder__name span { font-size: 15px; }

/* ----- Section head ----- */
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.section-head__aside { max-width: 36ch; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .h2 { max-width: 16ch; }
.section-head--center .lead { margin-top: 24px; }

/* ----- Bento / cards ----- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, transform .6s var(--ease-out);
  min-height: 280px;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--line-2); }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(242,239,233,.05), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-spotlight]:hover::before { opacity: 1; }
.card--xl { grid-row: span 2; grid-column: span 2; }
.card--xl .card__visual--design { flex: 1; min-height: 240px; }
.card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; margin: 24px 0 10px; }
.card p { color: var(--muted); font-size: 16px; max-width: 42ch; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .4s, transform .6s var(--ease-spring); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.card:hover .card__icon { background: var(--fg); transform: rotate(-8deg) scale(1.05); }
.card:hover .card__icon svg { stroke: var(--accent-ink); }

.card__visual--design { position: relative; margin-top: auto; height: 240px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; margin-top: 32px; }
.dv { position: absolute; border-radius: 10px; transition: transform 1s var(--ease-out); }
.dv--1 { left: 8%; top: 12%; width: 55%; height: 22%; background: linear-gradient(90deg, var(--fg) 0 60%, transparent 60%); background-size: 100% 26%; background-repeat: no-repeat; opacity: .9; }
.dv--1::after { content: ""; position: absolute; left: 0; top: 45%; width: 85%; height: 26%; border-radius: 6px; background: var(--fg-2); opacity: .5; }
.dv--2 { left: 8%; bottom: 14%; width: 30%; height: 16%; background: var(--accent); border-radius: 999px; }
.dv--3 { right: 7%; top: 12%; width: 30%; height: 74%; background: linear-gradient(160deg, #3A3A40, #1C1C20); border: 1px solid var(--line-2); }
.card--xl:hover .dv--1 { transform: translateY(-6px); }
.card--xl:hover .dv--2 { transform: translateX(10px); }
.card--xl:hover .dv--3 { transform: rotate(-3deg) scale(1.04); }

.gauge { position: relative; width: 120px; height: 120px; margin-top: auto; align-self: flex-end; }
.gauge svg { transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; }
.gauge__track { stroke: var(--bg-3); }
.gauge__fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 2s var(--ease-out); }
.gauge.is-in .gauge__fill { stroke-dashoffset: 0; }
.gauge span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 500; letter-spacing: -0.04em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.tags li { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); transition: background-color .3s, color .3s, border-color .3s; }
.tags li:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ----- Process ----- */
.process { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.process__pin { padding-block: clamp(96px, 12vw, 150px); overflow: hidden; }
.process__head { position: relative; margin-bottom: 64px; }
.process__head .h2 { max-width: 13ch; }
.process__progress { height: 2px; background: var(--line); margin-top: 48px; border-radius: 2px; overflow: hidden; }
.process__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.process__track { display: flex; gap: 20px; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: max-content; }
.step {
  position: relative;
  width: clamp(300px, 30vw, 420px);
  min-height: 380px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease-out);
}
.step:hover { border-color: var(--line-2); transform: translateY(-6px); }
.step__day { color: var(--accent); }
.step h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin: auto 0 14px; line-height: 1.05; padding-top: 80px; }
.step p { color: var(--muted); font-size: 16px; }
.step__num { position: absolute; right: 24px; top: 12px; font-size: 120px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.step--accent { background: var(--bg-3); border-color: rgba(212,255,58,.45); }

/* ----- Work / showcase ----- */
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); flex: none; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__bar span { margin-left: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); padding: 4px 12px; border-radius: 6px; background: rgba(255,255,255,.04); }
.showcase { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.showcase__frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-3);
  box-shadow: 0 60px 120px -50px rgba(0,0,0,.7);
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out);
}
.showcase:hover .showcase__frame { transform: translateY(-6px) scale(.99); box-shadow: 0 60px 120px -40px rgba(0,0,0,.8); }
.showcase__live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 12px; color: var(--accent); }
.showcase__live .pulse { width: 6px; height: 6px; }
.showcase__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0f1012; }
.showcase__screen img { width: 100%; height: auto; will-change: transform; transition: transform 6s cubic-bezier(.45, 0, .55, 1); }
.no-scrub .showcase:hover .showcase__screen img { transform: translateY(-78%); }
.showcase__info h3 { font-size: clamp(40px, 5vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: 12px 0 18px; }
.showcase__info > p.muted { max-width: 40ch; }
.showcase__meta { margin: 32px 0; border-top: 1px solid var(--line); }
.showcase__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.showcase__meta dt { font-size: 12px; }
.showcase__meta dd { margin: 0; color: var(--fg-2); }
.showcase:hover .showcase__btn::before { transform: none; }
.showcase:hover .showcase__btn svg { transform: translate(3px, -3px); }

/* ----- Testimonial ----- */
.testimonial { text-align: center; }
.testimonial__eyebrow { font-weight: 400; justify-content: center; width: 100%; }
.testimonial__fig { margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.testimonial__mark { width: 44px; fill: var(--fg-2); opacity: .5; margin-bottom: 28px; }
.testimonial__quote { margin: 0; }
.testimonial__quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.testimonial__fig figcaption { margin-top: 28px; }

/* ----- Numbers ----- */
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.number strong { display: block; font-size: clamp(56px, 7vw, 104px); font-weight: 500; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.number strong span { color: var(--fg); }
.number p { color: var(--muted); font-size: 15px; margin-top: 14px; line-height: 1.4; }

/* ----- Maintain ----- */
.maintain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.maintain .lead { margin-top: 28px; }
.checks { margin-top: 40px; display: grid; gap: 22px; }
.checks li { display: flex; gap: 16px; }
.checks strong { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.checks p { font-size: 15px; margin-top: 2px; }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin-top: 1px; }
.check svg { width: 14px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.chat { border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0,0,0,.7); }
.editor__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.editor__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.editor__bar span { margin-left: 12px; color: var(--muted); }
.chat__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.chat__preview { padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px; }
.chat__preview .mono { font-size: 12px; }
.chat__hours { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; font-size: 17px; }
.chat__hours strong { font-weight: 500; }
.chat__hours span { color: var(--fg-2); }
.chat__hours b { font-weight: 500; padding: 2px 6px; border-radius: 6px; transition: background-color .6s, color .6s; }
.chat__hours b.is-updated { background: var(--accent); color: var(--accent-ink); }
.chat__msg { max-width: 82%; padding: 14px 18px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.chat__msg span { display: block; margin-top: 6px; font-size: 12px; opacity: .75; }
.chat__msg--in { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__msg--out { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat__typing { align-self: flex-end; display: flex; gap: 5px; padding: 14px 18px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.js .chat [data-step] { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .chat [data-step].is-on { opacity: 1; transform: none; }
.js .chat .chat__typing:not(.is-on) { position: absolute; visibility: hidden; }

/* ----- Pricing ----- */
.quote {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  padding: clamp(32px, 6vw, 80px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-2); border: 1px solid var(--line);
}
.quote::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(242,239,233,.05), transparent); z-index: -2; pointer-events: none; }
.quote .h2 { max-width: 12ch; }
.quote .lead { margin-top: 28px; }
.quote__steps { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.quote__steps li { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: -0.01em; }
.quote__steps .mono { color: var(--accent); }
.quote__note { font-size: 14px; margin-top: 18px; }

/* ----- FAQ ----- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(48px, 7vw, 120px); }
.faq__grid .h2 + p { margin-top: 28px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc h3 { font-size: inherit; font-weight: inherit; }
.acc button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; text-align: left; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; transition: color .3s; }
.acc button:hover { color: var(--accent); }
.acc__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .6s var(--ease-out), background-color .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
.acc button[aria-expanded="true"] .acc__icon { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.acc button[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--muted); padding-bottom: 28px; max-width: 60ch; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* ----- Contact ----- */
.contact { overflow: hidden; border-top: 1px solid var(--line); }
.contact__glow { position: absolute; left: 50%; top: 0; width: 80vw; height: 60vw; transform: translate(-50%, -60%); background: radial-gradient(closest-side, rgba(242,239,233,.05), transparent); pointer-events: none; }
.contact__title { font-size: clamp(56px, 11vw, 176px); line-height: .9; letter-spacing: -0.06em; font-weight: 500; margin-bottom: clamp(56px, 8vw, 100px); }
.contact__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.contact__title .line > span { display: inline-block; }
.contact__title .serif { color: var(--fg-2); }
.contact__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
  font: inherit; font-size: 20px; letter-spacing: -0.01em;
  padding: 28px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  resize: vertical;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 0; top: 28px; font-size: 20px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .5s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-26px) scale(.65); color: var(--fg-2); }
.field::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field input + label + .field__error, .field textarea + label + .field__error { }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #FF6A6A; }
.field__error { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #FF8A8A; margin-top: 8px; }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #FF8A8A; color: var(--bg); font-size: 12px; font-weight: 700; }
.field__error:empty { display: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

.req { color: var(--accent); }
.form__hint { font-size: 14px; margin-top: -8px; }
.form__summary { padding: 18px 20px; border-radius: 14px; border: 1px solid #FF8A8A; background: rgba(255,138,138,.06); }
.form__summary:focus-visible { outline: 2px solid #FF8A8A; outline-offset: 3px; }
.form__summary-title { font-weight: 500; color: #FF8A8A; margin-bottom: 8px; }
.form__summary ul { display: grid; gap: 2px; padding-left: 18px; list-style: disc; color: #FF8A8A; }
.form__summary a { display: inline-flex; align-items: center; min-height: 32px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading svg { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 8px; }
.form__status { font-size: 15px; color: var(--fg-2); }
.form__status:empty { display: none; }
.form__status.is-success, .form__status.is-error { flex-basis: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid currentColor; background: rgba(255,255,255,.02); }
.form__status.is-success { color: var(--accent); }
.form__status.is-error { color: #FF8A8A; }
.btn.is-loading { pointer-events: none; opacity: .75; }

.contact__aside { display: grid; gap: 12px; }
.contact__card { padding: 26px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.contact__card .mono { font-size: 12px; margin-bottom: 8px; }
.contact__big { font-size: 20px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.35; }
a.contact__big { display: inline-flex; align-items: center; min-height: 44px; word-break: break-word; }

/* ----- Footer ----- */
.footer { padding-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 48px; }
.footer__brand p { max-width: 38ch; margin: 18px 0 28px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col > .mono { font-size: 12px; margin-bottom: 10px; }
.footer__col a, .footer__col span { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--fg-2); transition: color .3s; word-break: break-word; }
.footer__col a:hover { color: var(--accent); }
.footer__word {
  display: flex; align-items: baseline; justify-content: center;
  font-size: clamp(90px, 25vw, 400px);
  line-height: .78; letter-spacing: -0.07em; font-weight: 600;
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding-bottom: .04em;
  user-select: none;
}
.footer__word span { display: inline-block; }
.footer__word .serif { font-weight: 400; color: var(--fg-2); margin-left: .04em; letter-spacing: -0.04em; font-size: .62em; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.to-top { font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--fg-2); min-height: 44px; transition: color .3s; }
.to-top:hover { color: var(--accent); }

/* ----- Scroll reveal (vanilla fallback + base) ----- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .contact__title .char { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 25ms); }
.js .contact__title.is-in .char { transform: none; }

/* ----- Responsive ----- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl { grid-row: auto; grid-column: span 2; }
  .showcase, .quote { grid-template-columns: 1fr; }
  .maintain__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (min-width: 1081px) {
  .menu { display: none !important; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; --radius: 18px; }
  .hero { padding-bottom: 72px; }
  .hero__title { margin-bottom: 36px; }
  .hero__meta { margin-top: 48px; gap: 20px 32px; }
  .hero__stat strong { font-size: 32px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card--xl { grid-column: auto; }
  .card { padding: 26px; min-height: 0; }
  .card__visual--design { height: 200px; }
  .form__row { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .chat__body { padding: 20px; min-height: 380px; }
  .chat__hours { flex-direction: column; gap: 4px; }
  .quote__steps li { font-size: 16px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .founder { grid-template-columns: 1fr; margin-top: 48px; }
  .footer__brand { grid-column: 1 / -1; }
  .showcase__meta div { flex-direction: column; gap: 2px; }
  .quote { padding: 28px 22px; }
  .quote__side .btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 60px; padding: 14px 24px; }
  .hero__stat { flex: 1 1 40%; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 46px; }
  .h2 { font-size: 36px; }
  .contact__title { font-size: 50px; }
  .btn { padding: 0 22px; }
  .card, .step { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Process: vertical stack when not pinned (mobile / reduced motion / no GSAP) */
.process:not(.is-pinned) .process__track { width: auto; flex-direction: column; padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; }
.process:not(.is-pinned) .step { width: 100%; min-height: 0; }
.process:not(.is-pinned) .step h3 { padding-top: 56px; }
.process:not(.is-pinned) .process__progress { display: none; }
@media (min-width: 900px) {
  .process:not(.is-pinned) .process__track { display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-hero-fade], .js .hero__title .char, .js .contact__title .char, .js .chat [data-step] { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1 !important; }
  .marquee__track { animation: none; }
  .grain { display: none; }
}

/* ----- Sub-pages (privacy, thank-you) ----- */
.subhead { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subhead .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subhead .logo { margin: 0; }
.subpage { padding: clamp(64px, 10vw, 120px) 0; min-height: 60vh; }
.subpage .container { max-width: 820px; }
.subpage h1 { font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -0.045em; font-weight: 500; margin-bottom: 20px; }
.subpage h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 48px 0 12px; }
.subpage p, .subpage li { color: var(--fg-2); margin-bottom: 14px; }
.subpage ul { list-style: disc; padding-left: 22px; }
.subpage .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.subfoot { border-top: 1px solid var(--line); padding: 32px 0; }
.subfoot .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.subfoot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.subfoot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); transition: color .3s; }
.subfoot a:hover { color: var(--accent); }
.thanks-state--error { display: none; }
#error:target ~ .thanks-state--ok, .thanks-error-active .thanks-state--ok { display: none; }
#error:target ~ .thanks-state--error { display: block; }
@media (max-width: 720px) { .subhead .btn { display: none; } }
