/* =========================================================
   SynapGen — modern about page
   Palette is sampled from the logo: charcoal → maroon → red
   ========================================================= */

@font-face {
  font-family: "Gordita";
  src: url("../fonts/gordita/gordita-regular-webfont.woff2") format("woff2"),
       url("../fonts/gordita/gordita-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gordita";
  src: url("../fonts/gordita/gordita-medium-webfont.woff2") format("woff2"),
       url("../fonts/gordita/gordita-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Gordita";
  src: url("../fonts/gordita/gordita-bold-webfont.woff2") format("woff2"),
       url("../fonts/gordita/gordita-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #FAF7F5;
  --paper-2: #F2EDE9;
  --surface: #FFFFFF;
  --ink: #1B1818;
  --ink-2: #5B5352;
  --ink-3: #8C8382;
  --line: rgba(27, 24, 24, .10);

  --charcoal: #343434;
  --maroon: #6A2022;
  --crimson: #C30A0B;
  --red: #E5070C;
  --red-bright: #FF4A3D;
  --blush: #FFE4DE;

  --night: #131010;
  --on-night: #F5EFEC;
  --on-night-2: rgba(245, 239, 236, .64);
  --night-line: rgba(245, 239, 236, .12);

  --grad-brand: linear-gradient(100deg, #343434 0%, #6A2022 36%, #C30A0B 70%, #FE0000 100%);
  --grad-hot: linear-gradient(120deg, #6A2022 0%, #C30A0B 50%, #FF2A1F 100%);
  --grad-word: linear-gradient(100deg, #7A1F21 0%, #C30A0B 45%, #F51010 100%);
  --em-grad: var(--grad-word);

  --font-sans: "Gordita", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --radius: 24px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Content that waits for its entrance animation (only while JS motion is on) */
.js [data-anim],
.js [data-intro],
.js [data-split],
.js [data-split-chars],
.js [data-hero-title] { visibility: hidden; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 7, 12, .14);
}
.eyebrow--light { color: var(--red-bright); }
.eyebrow--light .eyebrow__dot { background: var(--red-bright); box-shadow: 0 0 0 4px rgba(255, 74, 61, .18); }

.h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  word-spacing: .05em;
}

/* Italic serif accent words — gradient lives on the em, or on each word once split */
.h2 em, .hero__title em, .display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-size: 1.1em;
  line-height: .9;
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
/* once split, transformed children can't share the parent's text clip,
   so the gradient moves down onto each word (or each char in .display) */
.is-split em { background: none; color: inherit; }
.is-split em .w,
.display.is-split em .ch {
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.display.is-split em .w { background: none; color: inherit; padding-right: 0; }
.display.is-split em .ch { padding-right: 0; }
.process { --em-grad: linear-gradient(100deg, #FF7A6B, #FF3B30 55%, #FF1E1E); }

/* SplitText wrappers */
.w, .ch, .w-mask { display: inline-block; }
.w-mask {
  /* room for italic overhang and descenders inside the clipping mask */
  padding: 0 .1em .14em;
  margin: 0 -.1em -.14em;
  vertical-align: top;
}

.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h);
  padding: 0 8px 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color .4s var(--ease-out), background-color .4s, border-color .4s;
}
.btn__label { position: relative; z-index: 1; }
.btn__chip {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red);
  color: #fff;
  transition: transform .5s var(--ease-out), background-color .4s;
}
.btn__chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__chip { transform: rotate(-45deg); }

.btn--primary { background: var(--ink); color: #fff; }
/* red fill that grows out of the arrow chip */
.btn--primary::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad-hot);
  clip-path: circle(0% at calc(100% - 29px) 50%);
  transition: clip-path .7s var(--ease-out);
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { clip-path: circle(150% at calc(100% - 29px) 50%); }
.btn--primary:hover .btn__chip { background: rgba(255, 255, 255, .18); }

.btn--ghost {
  padding: 0 28px;
  border-color: rgba(27, 24, 24, .18);
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; border-color: rgba(27, 24, 24, .3); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--crimson); }
.btn--sm { --h: 44px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn:disabled { cursor: progress; opacity: .7; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  height: 3px; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 60;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.site-header__bar {
  max-width: var(--maxw);
  margin-inline: auto;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.site-header__bar {
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-color: rgba(255, 255, 255, .6);
}
.site-header.is-scrolled .site-header__bar,
.menu-open .site-header__bar {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: rgba(27, 24, 24, .08);
  box-shadow: 0 12px 32px -14px rgba(27, 24, 24, .2);
}
.brand img { width: 128px; height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  position: relative;
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-2);
  transition: color .3s, background-color .3s;
}
.nav__link:hover { color: var(--ink); background: rgba(27, 24, 24, .05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--red);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .45s var(--ease-out);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--gutter) 40px;
  background: var(--paper);
  visibility: hidden; opacity: 0;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .45s var(--ease-out); }
.mobile-menu__list li { overflow: hidden; }
.mobile-menu__list a {
  display: block;
  font-size: clamp(40px, 11vw, 64px); font-weight: 500;
  letter-spacing: -.04em; line-height: 1.2;
  transform: translateY(100%);
  transition: transform .6s var(--ease-out), color .3s;
}
.mobile-menu__list a:hover { color: var(--crimson); }
.menu-open .mobile-menu__list a { transform: none; }
.menu-open .mobile-menu__list li:nth-child(2) a { transition-delay: .04s; }
.menu-open .mobile-menu__list li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mobile-menu__list li:nth-child(4) a { transition-delay: .12s; }
.menu-open .mobile-menu__list li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 120px;
  overflow: hidden;
  /* shown when WebGL is unavailable */
  background:
    radial-gradient(60% 70% at 85% 60%, rgba(229, 7, 12, .55), transparent 70%),
    radial-gradient(40% 50% at 70% 85%, rgba(106, 32, 34, .5), transparent 70%),
    radial-gradient(50% 60% at 95% 15%, rgba(255, 196, 184, .9), transparent 70%),
    var(--paper);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250, 247, 245, .9) 0%, rgba(250, 247, 245, .55) 34%, rgba(250, 247, 245, 0) 58%),
    linear-gradient(0deg, var(--paper) 0%, rgba(250, 247, 245, 0) 18%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 40px;
}
.hero__title {
  font-size: clamp(2.9rem, 6.6vw, 6.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  word-spacing: .06em;
  margin-bottom: 32px;
}
.hero__title em {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: 1.12em;
}
.scribble {
  position: absolute; left: 0; right: 0; bottom: -.12em;
  width: 100%; height: .22em;
  overflow: visible;
}
.scribble path {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero__lede {
  max-width: 34rem;
  font-size: clamp(17px, 1.45vw, 20px);
  color: var(--ink-2);
  margin-bottom: 40px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute; left: 0; right: 0; bottom: 28px;
  width: max-content; margin-inline: auto;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero__scroll-line {
  position: relative; overflow: hidden;
  width: 1px; height: 36px;
  background: rgba(27, 24, 24, .15);
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--red);
  animation: scrollcue 2.2s var(--ease-out) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* Floating glass cards (CSS 3D with per-card depth) */
.hero-stack {
  --px: 0; --py: 0; --spread: 0;
  position: relative;
  height: 540px;
}
.hcard-wrap { position: absolute; }
.js .hcard-wrap { visibility: hidden; }
.hcard-wrap--a { top: 0; right: 0; width: 250px; }
.hcard-wrap--b { top: 150px; left: -30px; width: 300px; }
.hcard-wrap--c { bottom: 0; right: 20px; width: 240px; }

.hcard {
  --d: 20;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    0 30px 60px -24px rgba(70, 10, 12, .45),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform:
    perspective(1000px)
    translate3d(calc(var(--px) * var(--d) * -1px), calc(var(--py) * var(--d) * -1px - var(--spread) * var(--d) * 4px), 0)
    rotateX(calc(var(--py) * -9deg))
    rotateY(calc(var(--px) * 12deg));
  animation: bob 7s ease-in-out infinite;
  will-change: transform;
}
.hcard-wrap--b .hcard { animation-duration: 8s; animation-delay: -2s; }
.hcard-wrap--c .hcard { animation-duration: 6.5s; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.hcard__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.hcard__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hcard__dot--live { animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(229, 7, 12, .18); } }

.graph { width: 100%; height: auto; overflow: visible; }
.graph__edges path { fill: none; stroke: rgba(27, 24, 24, .25); stroke-width: 1.2; }
.graph__node { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.graph__node--hot { fill: var(--red); stroke: none; }
.graph__pulse {
  fill: rgba(229, 7, 12, .25);
  transform-origin: 132px 56px;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px; line-height: 1.4;
  margin-bottom: 8px;
}
.bubble--user {
  margin-left: auto;
  background: var(--ink); color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble--bot {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.typing { display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.metric strong { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.metric span { font-size: 13px; color: var(--crimson); font-weight: 500; }
.spark { width: 100%; height: 56px; overflow: visible; }
.spark__area { fill: url(#sparkFill); }
.spark__line { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 30px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.marquee__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee--driven .marquee__track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__group li {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  white-space: nowrap;
}
.marquee__group em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.01em;
  color: var(--crimson);
}
.marquee__sep svg {
  width: .5em; height: .5em;
  fill: var(--red);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 136px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__text { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 26rem; justify-self: end; }

/* ---------- Services (3D tilt cards) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.svc { perspective: 1100px; }
.svc__inner {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex; flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.svc.is-tilting .svc__inner { transition: transform .12s linear, box-shadow .6s var(--ease-out); }
.svc:hover .svc__inner { box-shadow: 0 50px 90px -40px rgba(106, 32, 34, .45); }
.svc__glow {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(229, 7, 12, .12), transparent 45%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.svc:hover .svc__glow { opacity: 1; }
.svc__index {
  position: absolute; top: 30px; right: 32px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; color: var(--ink-3);
}
/* layers sit flat (and render crisp) until the card is hovered, then lift */
.svc__icon, .svc h3, .svc p, .tags, .svc__index { transition: transform .7s var(--ease-out); }
.svc:hover .svc__icon { transform: translateZ(60px); }
.svc:hover h3 { transform: translateZ(44px); }
.svc:hover p { transform: translateZ(28px); }
.svc:hover .tags { transform: translateZ(18px); }
.svc:hover .svc__index { transform: translateZ(20px); }
.svc__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--grad-hot);
  color: #fff;
  box-shadow: 0 22px 34px -14px rgba(195, 10, 11, .65);
}
.svc__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 {
  padding-top: 72px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.svc p { margin-top: 12px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px; line-height: 1.4;
  color: var(--ink-2);
}
.svc--dark .svc__inner {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(229, 7, 12, .32), transparent 55%),
    var(--night);
  border-color: transparent;
  color: var(--on-night);
}
.svc--dark p, .svc--dark .tags li { color: var(--on-night-2); }
.svc--dark .tags li { border-color: var(--night-line); }
.svc--dark .svc__index { color: var(--on-night-2); }
.svc--dark .svc__glow { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 74, 61, .22), transparent 45%); }

/* ---------- About (tree rings) ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}
.about__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  justify-self: center;
}
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rings path { fill: none; stroke-linecap: round; }
.about__stat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.about__num {
  display: flex; align-items: flex-start;
  font-size: clamp(84px, 11vw, 150px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .9;
}
.about__num em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: .7em;
  line-height: 1;
  color: var(--red);
  margin-left: .02em;
}
.about__label {
  margin-top: 10px;
  font-size: 13px; line-height: 1.45;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}

.about__copy .h2 { margin-bottom: 24px; }
.creds { margin: 36px 0 44px; border-top: 1px solid var(--line); }
.creds li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.creds__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--crimson);
}
.creds__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Process (dark, pinned) ---------- */
.process { position: relative; }
.process__frame {
  background:
    radial-gradient(60% 40% at 80% 20%, rgba(229, 7, 12, .16), transparent 70%),
    var(--night);
  color: var(--on-night);
}
.process__track { position: relative; }
.js .process__track { height: 340vh; }
.process__sticky { padding: clamp(96px, 12vw, 160px) 0 40px; }
.js .process__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  padding: 80px 0 40px;
  overflow: hidden;
}
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.process__progress {
  height: 2px;
  margin: 36px 0 8px;
  background: var(--night-line);
  border-radius: 2px;
  overflow: hidden;
}
.process__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #6A2022, #FF3B30);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-line);
  transition: opacity .5s var(--ease-out);
}
@media (min-width: 1024px) {
  .js .step { opacity: .34; }
  .js .step.is-active { opacity: 1; }
}
.step__num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 26px; line-height: 1.2;
  color: var(--on-night-2);
  transition: color .5s;
}
.step.is-active .step__num { color: var(--red-bright); }
.step h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.step p { margin-top: 4px; font-size: 16px; color: var(--on-night-2); }

.process__visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  justify-self: center;
}
.process__halo {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 7, 12, .55), rgba(229, 7, 12, 0) 68%);
  filter: blur(30px);
}
.morph { position: relative; width: 100%; height: 100%; overflow: visible; }
.orbit path { fill: none; stroke: rgba(245, 239, 236, .22); stroke-width: 1.2; }
.orbit--outer path { stroke-dasharray: 2 7; stroke: rgba(245, 239, 236, .3); }
.orbit__dot { fill: #fff; }
.orbit__dot--red { fill: var(--red-bright); }
.morph__counter {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(60, 0, 0, .4));
}
.morph__window {
  height: 1em; overflow: hidden;
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
  color: #fff;
}
.morph__digits { display: flex; flex-direction: column; }
.morph__digits span { display: block; height: 1em; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.stat { padding: 48px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--night-line); }
.stat__value {
  display: flex; align-items: baseline;
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__value em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: .62em;
  letter-spacing: -.01em;
  color: var(--red-bright);
  margin-left: .06em;
}
.stat__value em.pre { margin: 0 .04em 0 0; }
.stat p { margin-top: 16px; max-width: 18rem; color: var(--on-night-2); }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.faq__intro { position: sticky; top: 120px; }
.faq__intro .lede { margin: 20px 0 32px; }

.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc__h { font-size: inherit; font-weight: inherit; }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  border: 0; background: none;
  text-align: left;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 500;
  letter-spacing: -.015em; line-height: 1.35;
  cursor: pointer;
  transition: color .3s;
}
.acc__btn:hover { color: var(--crimson); }
.acc__icon {
  position: relative; flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(27, 24, 24, .16);
  transition: background-color .4s, border-color .4s, transform .6s var(--ease-out);
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.6px; margin: -.8px 0 0 -7px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc.is-open .acc__icon::before, .acc.is-open .acc__icon::after { background: #fff; }
.acc.is-open .acc__icon::after { transform: rotate(90deg) scaleX(0); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .6s var(--ease-out), visibility 0s .6s;
}
.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .6s var(--ease-out), visibility 0s;
}
.acc__inner { min-height: 0; overflow: hidden; color: var(--ink-2); padding-right: 64px; }
.acc__inner > :last-child { margin-bottom: 30px; }
.acc__inner p + .acc__list, .acc__inner p + p { margin-top: 12px; }
.acc__list li {
  position: relative;
  padding-left: 20px;
  margin-top: 12px;
}
.acc__list li::before {
  content: "";
  position: absolute; left: 0; top: .7em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}
.acc__list strong { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__bg {
  position: absolute; z-index: -1;
  width: 900px; height: 900px;
  right: -300px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 184, .7), rgba(255, 196, 184, 0) 65%);
  pointer-events: none;
}
.display {
  font-size: clamp(3.6rem, 12vw, 11rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.055em;
}
.display .ch { transition: transform .5s var(--ease-out); }
.display .w:hover .ch { transform: translateY(-.06em); }
.display .w:hover .ch:nth-child(2n) { transform: translateY(.04em) rotate(-4deg); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}
.contact__info { display: grid; gap: 20px; align-content: start; }
.info-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.info-card__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--blush);
  color: var(--crimson);
}
.info-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.info-card p { color: var(--ink-2); }
.info-card a { color: var(--ink); background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; transition: color .3s; }
.info-card a:hover { color: var(--crimson); }

.contact-form {
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgba(106, 32, 34, .35);
}
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 28px 18px 10px;
  border: 1px solid rgba(27, 24, 24, .14);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit; font-size: 16px;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(195, 10, 11, .12);
}
.field label {
  position: absolute; left: 19px; top: 19px;
  color: var(--ink-3);
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.76);
  color: var(--crimson);
}
.contact-form .btn { margin-top: 8px; }
.contact-form.is-sending .btn__chip svg { animation: spin 1s linear infinite; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error { padding: 14px 16px; border-radius: 12px; }
.form-status.is-success { background: #E9F6EE; color: #165C36; }
.form-status.is-error { background: #FDECEC; color: #9B1111; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 28px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .9fr);
  gap: 40px;
}
.footer__intro { max-width: 26rem; }
.footer__intro .brand img { width: 140px; }
.footer__intro p { margin: 20px 0 16px; color: var(--ink-2); }
.footer__intro address { color: var(--ink-2); font-size: 15px; }
.footer__title {
  font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.footer__list li { margin-bottom: 10px; color: var(--ink-2); }
.footer__list a { transition: color .3s; }
.footer__list a:hover { color: var(--crimson); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .3s; }
.footer__top:hover { color: var(--crimson); }
.footer__top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero-stack { display: none; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(250, 247, 245, .92) 0%, rgba(250, 247, 245, .6) 45%, rgba(250, 247, 245, 0) 75%),
      linear-gradient(0deg, var(--paper) 0%, rgba(250, 247, 245, 0) 14%);
  }
}

@media (max-width: 1023px) {
  .section-head, .about__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .section-head__text { justify-self: start; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .svc__inner { min-height: 0; }
  .about__visual { max-width: 440px; }
  .faq__intro { position: static; }

  .js .process__track { height: auto; }
  .js .process__sticky { position: relative; height: auto; display: block; padding: 96px 0 24px; overflow: visible; }
  .process__grid { grid-template-columns: minmax(0, 1fr); }
  .process__visual { order: -1; max-width: 360px; }
  .process__progress { display: none; }
  .steps { margin-top: 28px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 36px 0; border-left: 0; border-bottom: 1px solid var(--night-line); }
  .stat:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header__bar { padding: 0 10px 0 18px; height: 60px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 112px 0 104px; align-items: flex-start; }
  .hero__title { margin-bottom: 24px; }
  .hero__lede { margin-bottom: 32px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__ctas .btn--ghost { justify-content: center; }
  .hero__scroll { display: none; }
  .svc__inner { padding: 26px; }
  .acc__inner { padding-right: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__intro { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
