/* ==========================================================================
   TEMPLATE STYLES
   Everything is driven by four colour tokens (--bg, --fg, --accent, --accent-2)
   plus two font tokens. They are set from js/config.js — you rarely need to
   touch this file when re-skinning.
   ========================================================================== */

:root {
  --bg: #0a0a0d;
  --fg: #f4efe6;
  --accent: #f2b872;
  --accent-2: #8a78ff;
  --on-accent: #14110c;

  /* derived surfaces — recalculated automatically for any palette */
  --surface:   color-mix(in oklab, var(--fg) 4%, var(--bg));
  --surface-2: color-mix(in oklab, var(--fg) 8%, var(--bg));
  --line:      color-mix(in oklab, var(--fg) 12%, transparent);
  --line-2:    color-mix(in oklab, var(--fg) 24%, transparent);
  --muted:     color-mix(in oklab, var(--fg) 64%, var(--bg));
  --faint:     color-mix(in oklab, var(--fg) 38%, var(--bg));
  --glass:     color-mix(in oklab, var(--bg) 62%, transparent);
  --shadow:    0 40px 90px -40px rgba(0, 0, 0, .75);

  --font-d: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --d-weight: 400;
  --d-track: -.02em;
  --d-case: none;
  --em-style: italic;
  --d-scale: 1;

  --r-card: 22px;
  --r-img: 26px;
  --r-btn: 999px;
  --r-chip: 16px;

  --wrap: 1320px;
  --pad: clamp(20px, 4.6vw, 64px);
  --sec: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

:root[data-mode="light"] {
  --shadow: 0 40px 80px -45px color-mix(in oklab, var(--fg) 55%, transparent);
  --glass: color-mix(in oklab, var(--bg) 72%, transparent);
}
:root[data-radius="sharp"] { --r-card: 3px;  --r-img: 3px;  --r-btn: 3px;   --r-chip: 3px; }
:root[data-radius="round"] { --r-card: 34px; --r-img: 44px; --r-btn: 999px; --r-chip: 22px; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

html { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- global layers ---------- */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); position: relative; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: grid; place-content: center; gap: 22px; justify-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader__name {
  font: var(--d-weight) clamp(2rem, 6vw, 3.6rem)/1 var(--font-d);
  letter-spacing: var(--d-track); text-transform: var(--d-case);
  opacity: 0; transform: translateY(12px); animation: ld-in .7s var(--ease) .05s forwards;
}
.loader__bar { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: ld-bar 1.1s var(--ease-io) forwards; }
.is-ready .loader { opacity: 0; visibility: hidden; }
@keyframes ld-in { to { opacity: 1; transform: none; } }
@keyframes ld-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.h1, .h2, .h3 {
  font-family: var(--font-d); font-weight: var(--d-weight);
  letter-spacing: var(--d-track); text-transform: var(--d-case); text-wrap: balance;
}
.h1 { font-size: calc(clamp(2.9rem, 7.1vw, 7rem) * var(--d-scale)); line-height: .96; }
.h2 { font-size: calc(clamp(2.2rem, 4.7vw, 4.3rem) * var(--d-scale)); line-height: 1.02; }
.h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; }
.h1 em, .h2 em, .h3 em, .quote__text em {
  font-style: var(--em-style); color: var(--accent);
}
.lead { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 54ch; text-wrap: pretty; }

.head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5.5vw, 76px); }
.head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; column-gap: 48px; }
.head--split .eyebrow { grid-column: 1 / -1; }
.head--center { text-align: center; justify-items: center; }
.head--center .lead { margin-inline: auto; }

/* word-by-word title reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .09em .16em; margin: -.08em -.09em -.16em; }
.w > span { display: inline-block; transform: translateY(112%) rotate(4deg); transform-origin: left bottom; transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.in .w > span, .in.w > span { transform: none; }

/* generic reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .95s var(--ease), transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0ms)); }
.rv.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  --bh: 56px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--bh); padding: 0 8px 0 26px;
  border-radius: var(--r-btn);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: .96rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
  box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--accent) 70%, transparent);
  will-change: transform;
}
.btn__ic {
  width: calc(var(--bh) - 16px); height: calc(var(--bh) - 16px); flex: none;
  display: grid; place-items: center; border-radius: var(--r-btn);
  background: var(--on-accent); color: var(--accent);
  overflow: hidden;
}
.btn__ic svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover { box-shadow: 0 20px 44px -14px color-mix(in oklab, var(--accent) 85%, transparent); }
.btn:hover .btn__ic svg { transform: translateX(3px) rotate(-45deg); }
.btn:active { transform: scale(.98); }
.btn--ghost {
  background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 26px;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); background: color-mix(in oklab, var(--fg) 6%, transparent); }
.btn--sm { --bh: 44px; padding: 0 6px 0 20px; font-size: .88rem; gap: 10px; }
.btn--sm .btn__ic svg { width: 14px; height: 14px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--ghost.btn--block { justify-content: center; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.link:hover { border-color: var(--accent); color: var(--accent); }

.chip {
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line); border-radius: var(--r-chip);
  box-shadow: var(--shadow);
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 100; padding-inline: var(--pad); transition: transform .6s var(--ease); pointer-events: none; }
.nav.is-hidden { transform: translateY(-140%); }
.nav__bar {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto; height: 64px; padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 24px;
  border-radius: calc(var(--r-btn) + 0px); border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
:root[data-radius="sharp"] .nav__bar { border-radius: 4px; }
.nav.is-stuck .nav__bar {
  background: var(--glass); border-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .6);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: var(--d-weight) 1.55rem/1 var(--font-d); letter-spacing: var(--d-track); text-transform: var(--d-case); margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 28%, #fff 0, var(--accent) 28%, var(--accent-2) 78%, color-mix(in oklab, var(--accent-2) 50%, #000) 100%);
  box-shadow: 0 0 22px -2px color-mix(in oklab, var(--accent) 70%, transparent);
}
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 10px 14px; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px var(--line-2); }
.nav__toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__toggle i:first-child { top: 18px; } .nav__toggle i:last-child { top: 25px; }
.menu-open .nav__toggle i:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__toggle i:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility .8s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu__links { display: grid; gap: 6px; }
.menu__links a { font: var(--d-weight) calc(clamp(2.4rem, 11vw, 4rem) * var(--d-scale))/1.1 var(--font-d); letter-spacing: var(--d-track); text-transform: var(--d-case); display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms + 200ms); }
.menu__links a small { font: 500 .75rem var(--font-b); color: var(--accent); letter-spacing: .1em; }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 132px 0 72px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 68% 42%, #000 0, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 65% at 68% 42%, #000 0, transparent 72%);
  opacity: .5;
}
.hero__bg::after {
  content: ""; position: absolute; left: -10%; bottom: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent);
  filter: blur(20px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: 30px; justify-items: start; }
.hero__title { margin-top: -6px; }
.hero__text { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); width: 100%; max-width: 560px; }
.stat { flex: 1 1 0; min-width: 120px; padding: 22px 20px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat__v { font: var(--d-weight) calc(clamp(2rem, 3.2vw, 2.9rem) * var(--d-scale))/1 var(--font-d); letter-spacing: var(--d-track); display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.stat__v i { font-style: normal; color: var(--accent); margin-left: 2px; }
.stat__l { margin-top: 8px; font-size: .84rem; color: var(--muted); }

.hero__visual { position: relative; width: 100%; aspect-ratio: 1 / 1.06; max-height: 78svh; margin-inline: auto; perspective: 1500px; }
.hero__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.hero__orb { position: absolute; left: 53%; top: 45%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.hero__visual[data-n="0"] .hero__orb { width: 86%; left: 50%; top: 50%; }

.hcard {
  position: absolute; margin: 0; overflow: hidden; border-radius: var(--r-img);
  background: var(--surface-2);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: translate3d(0, 0, var(--z, 0px)) rotate(var(--rot, 0deg));
  animation: floaty var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
}
.hcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); pointer-events: none; }
.hcard--a { left: 0; bottom: 5%; width: 50%; aspect-ratio: 3 / 4; --z: 60px; --rot: -3deg; --dur: 10s; }
.hcard--b { right: 0; top: 3%; width: 34%; aspect-ratio: 4 / 5; --z: -70px; --rot: 4deg; --dur: 12s; --delay: -3s; }
.hcard--c { right: 5%; bottom: 0; width: 31%; aspect-ratio: 1; --z: 130px; --rot: 2deg; --dur: 8s; --delay: -5s; }
:root[data-radius="round"] .hcard--a { border-radius: 999px 999px var(--r-img) var(--r-img); }
.hero__visual[data-n="1"] .hcard--a { left: 4%; width: 56%; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

.hero__badge {
  position: absolute; left: 6%; top: 9%; padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  transform: translate3d(0, 0, 170px); animation: floaty 11s ease-in-out -2s infinite;
}
.hero__badge b { font: var(--d-weight) 2rem/1 var(--font-d); letter-spacing: var(--d-track); }
.hero__badge span { display: block; font-size: .78rem; line-height: 1.35; color: var(--muted); max-width: 13ch; }
.stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 4px; }
.stars svg { width: 12px; height: 12px; }

.scrollcue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.scrollcue i { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- marquee ---------- */
.marquee { padding-block: clamp(26px, 3.4vw, 44px); border-block: 1px solid var(--line); overflow: hidden; position: relative; background: color-mix(in oklab, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--mq, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font: var(--d-weight) calc(clamp(1.7rem, 3.4vw, 3rem) * var(--d-scale))/1 var(--font-d); letter-spacing: var(--d-track); text-transform: var(--d-case); padding-inline: clamp(18px, 2.4vw, 36px); white-space: nowrap; color: var(--muted); transition: color .3s; }
.marquee__item:hover { color: var(--fg); }
.marquee__sep { color: var(--accent); flex: none; }
.marquee__sep svg { width: clamp(14px, 1.6vw, 22px); height: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.about__media { position: relative; perspective: 1400px; }
.frame3d { transform-style: preserve-3d; transform: rotateX(calc((1 - var(--p, 1)) * 16deg)) rotateY(calc((1 - var(--p, 1)) * -12deg)) scale(calc(.9 + var(--p, 1) * .1)); transform-origin: 50% 60%; will-change: transform; }
.frame3d__in { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: var(--surface-2); }
.frame3d__in img { width: 100%; height: 118%; object-fit: cover; transform: translateY(calc(var(--py, 0) * -15%)); will-change: transform; }
.frame3d::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-img); border: 1px solid var(--line-2); transform: translate3d(-22px, 22px, -60px); }
.about__card { position: absolute; right: -18px; bottom: 9%; padding: 20px 22px; min-width: 190px; transform: translateZ(60px); animation: floaty 10s ease-in-out infinite; }
.about__card b { display: flex; align-items: baseline; font: var(--d-weight) 3rem/1 var(--font-d); letter-spacing: var(--d-track); }
.about__card b i { font-style: normal; font-size: .45em; color: var(--accent); margin-left: 4px; }
.about__card-l { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); max-width: 16ch; line-height: 1.4; }
.about__copy { display: grid; gap: 26px; justify-items: start; }
.checks { display: grid; gap: 0; width: 100%; margin-top: 6px; }
.checks li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); font-weight: 500; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--accent); }
.checks i svg { width: 13px; height: 13px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc { perspective: 1100px; }
.tilt { position: relative; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), border-color .4s, background .4s; will-change: transform; }
.tilt.is-live { transition: transform .12s linear, border-color .4s, background .4s; }
.tilt__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 22%, transparent), transparent 62%); }
.tilt:hover .tilt__glare { opacity: 1; }
.tilt:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.svc__card { padding: clamp(26px, 2.6vw, 38px); display: grid; gap: 14px; align-content: start; min-height: 290px; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(26px, 4vw, 54px); transform: translateZ(40px); }
.svc__ic { width: 56px; height: 56px; border-radius: calc(var(--r-chip) + 2px); display: grid; place-items: center; color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent); }
.svc__ic svg { width: 24px; height: 24px; }
.svc__n { font: var(--d-weight) 1.1rem var(--font-d); color: var(--faint); }
.svc__card .h3 { transform: translateZ(28px); }
.svc__card p { color: var(--muted); font-size: .97rem; transform: translateZ(16px); }

/* ---------- showcase (3D coverflow) ---------- */
.showcase { overflow: hidden; overflow: clip; }
.showcase .head { margin-bottom: clamp(18px, 2.5vw, 34px); }
.flow { position: relative; height: clamp(380px, 62vh, 680px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: -4px; }
.flow.is-drag { cursor: grabbing; }
.flow__track { position: absolute; inset: 0; perspective: 1700px; }
.flow__card {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: clamp(230px, 31vw, 440px); aspect-ratio: 4 / 5;
  border-radius: var(--r-img); overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  will-change: transform, opacity; backface-visibility: hidden;
}
.flow__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.flow__card::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; transition: opacity .1s linear; }
.flow__floor { position: absolute; left: 50%; bottom: -4%; width: min(900px, 80vw); height: 120px; translate: -50% 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 26%, transparent), transparent); filter: blur(30px); pointer-events: none; }
.flow__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(18px, 2.4vw, 34px); }
.flow__cap { display: grid; gap: 8px; min-height: 76px; }
.flow__tag { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.flow__title { transition: opacity .35s, transform .5s var(--ease); }
.flow__cap.is-swap .flow__title, .flow__cap.is-swap .flow__tag { opacity: 0; transform: translateY(10px); }
.flow__ctrl { display: flex; align-items: center; gap: 12px; }
.flow__count { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 10px; font-size: .92rem; }
.flow__count b { color: var(--fg); font-weight: 500; }
.rbtn { width: 54px; height: 54px; border-radius: var(--r-btn); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease); }
.rbtn svg { width: 18px; height: 18px; }
.rbtn:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rbtn:active { transform: scale(.94); }
.rbtn--prev svg { transform: scaleX(-1); }
.flow__bar { height: 1px; background: var(--line); margin-top: 22px; position: relative; }
.flow__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(100% / var(--n, 1)); background: var(--accent); transform: translateX(calc(var(--at, 0) * 100%)); transition: transform .6s var(--ease); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); position: relative; padding-top: 44px; counter-reset: s; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); height: 2px; top: -.5px; transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step::before { content: ""; position: absolute; left: 0; top: -49px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); transition: background .5s, box-shadow .5s; transition-delay: calc(var(--i) * 120ms + 200ms); }
.step.in::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent); }
.step__n { font: var(--d-weight) calc(clamp(3.4rem, 6vw, 5.6rem) * var(--d-scale))/.9 var(--font-d); letter-spacing: var(--d-track); color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.step p { color: var(--muted); font-size: .97rem; max-width: 30ch; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.quotes__stage { position: relative; display: grid; }
.quote { grid-area: 1 / 1; display: grid; gap: 34px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.quote.is-on { opacity: 1; visibility: visible; transform: none; }
.quote__mark { color: var(--accent); width: 46px; height: auto; }
.quote__text { font: var(--d-weight) calc(clamp(1.6rem, 3vw, 2.75rem) * var(--d-scale))/1.2 var(--font-d); letter-spacing: var(--d-track); text-wrap: balance; }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__by img, .quotes__tab img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.quote__by b { display: block; font-weight: 600; }
.quote__by span { font-size: .88rem; color: var(--muted); }
.quotes__nav { display: grid; gap: 10px; }
.quotes__tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; border-radius: var(--r-chip); border: 1px solid var(--line); overflow: hidden; opacity: .6; transition: opacity .4s, background .4s, border-color .4s; }
.quotes__tab:hover { opacity: 1; }
.quotes__tab.is-on { opacity: 1; background: var(--surface); border-color: var(--line-2); }
.quotes__tab b { display: block; font-size: .95rem; font-weight: 600; }
.quotes__tab span { display: block; font-size: .8rem; color: var(--muted); }
.quotes__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.quotes__tab.is-on::after { animation: tab-run var(--auto, 7s) linear forwards; }
.quotes.is-paused .quotes__tab.is-on::after { animation-play-state: paused; }
@keyframes tab-run { to { transform: scaleX(1); } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.plans > .rv { display: grid; }
.plan { position: relative; padding: clamp(28px, 2.8vw, 40px); display: grid; gap: 22px; align-content: start; grid-template-rows: auto auto 1fr auto; transition: transform .6s var(--ease), border-color .4s; }
.plan:hover { transform: translateY(-6px); }
.plan--featured { background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 16%, var(--surface)), var(--surface) 55%); border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); box-shadow: 0 40px 90px -50px color-mix(in oklab, var(--accent) 70%, transparent); }
.plan__badge { position: absolute; right: 22px; top: 22px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); }
.plan__name { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.plan__price { display: flex; align-items: baseline; gap: 10px; font: var(--d-weight) calc(clamp(2.8rem, 4.4vw, 4rem) * var(--d-scale))/1 var(--font-d); letter-spacing: var(--d-track); margin-top: 16px; }
.plan__price small { font: 400 .9rem var(--font-b); color: var(--muted); letter-spacing: 0; }
.plan__text { color: var(--muted); margin-top: 10px; }
.plan__list { display: grid; gap: 13px; padding-top: 22px; border-top: 1px solid var(--line); align-content: start; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.plan__list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.faq__grid .head { position: sticky; top: 120px; margin: 0; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font: var(--d-weight) clamp(1.25rem, 1.8vw, 1.6rem)/1.2 var(--font-d); letter-spacing: var(--d-track); transition: color .3s; }
.qa__q:hover { color: var(--accent); }
.qa__ic { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s, transform .6s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.qa__ic::after { transform: rotate(90deg); }
.qa.is-open .qa__ic { background: var(--accent); color: var(--on-accent); box-shadow: none; transform: rotate(180deg); }
.qa.is-open .qa__ic::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 60px 28px 0; color: var(--muted); max-width: 62ch; }

/* ---------- cta ---------- */
.cta { overflow: hidden; overflow: clip; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 60px); align-items: center; min-height: min(70vh, 640px); }
.cta__copy { display: grid; gap: 30px; justify-items: start; }
.cta__title { font-size: calc(clamp(2.7rem, 6.6vw, 6.4rem) * var(--d-scale)); line-height: .96; }
.cta__orb { width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.contact__info .head { margin-bottom: 40px; }
.contact__list { display: grid; }
.contact__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-2); }
.contact__list i svg { width: 18px; height: 18px; }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.contact__list a, .contact__list span { font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--accent); }

.form { padding: clamp(24px, 3.2vw, 46px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; background: color-mix(in oklab, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.field { display: grid; gap: 8px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: color-mix(in oklab, var(--fg) 4%, transparent); border: 1px solid var(--line); border-radius: calc(var(--r-chip) - 2px);
  padding: 15px 16px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 136px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--bg); color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.field.is-bad input, .field.is-bad textarea { border-color: #ff6b6b; }
.field__err { font-size: .78rem; color: #ff8a8a; min-height: 0; }
.form__hp { position: absolute; left: -9999px; opacity: 0; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: .82rem; color: var(--faint); max-width: 34ch; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: var(--surface); display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 32px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.form.is-done .form__done { opacity: 1; visibility: visible; }
.form__done i { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); transform: scale(.4); transition: transform .8s var(--ease) .1s; }
.form.is-done .form__done i { transform: none; }
.form__done i svg { width: 28px; height: 28px; }
.form__done p { max-width: 36ch; color: var(--muted); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(50px, 6vw, 90px); overflow: hidden; background: color-mix(in oklab, var(--bg) 80%, transparent); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .55fr) minmax(0, .95fr) minmax(0, .5fr); gap: clamp(24px, 4vw, 60px); }
.footer__about { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer__about p { color: var(--muted); max-width: 34ch; }
.footer__col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.footer__col h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 6px; }
.footer__col a, .footer__col span { color: var(--muted); transition: color .3s; white-space: pre-line; font-size: .95rem; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--accent); }
.footer__word { margin-top: clamp(40px, 6vw, 80px); font: var(--d-weight) 20vw/.8 var(--font-d); letter-spacing: var(--d-track); text-transform: var(--d-case); white-space: nowrap; text-align: center; background: linear-gradient(180deg, color-mix(in oklab, var(--fg) 26%, transparent), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; padding-bottom: .08em; }
.footer__bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--faint); }
.footer__bot a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 54px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 26px; border-top: 1px solid var(--line); }
  .step::before { top: -6px; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { padding-top: 118px; }
  .hero__grid, .about__grid, .faq__grid, .cta__grid, .contact__grid, .quotes, .head--split { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 520px; margin-top: 10px; }
  .scrollcue { display: none; }
  .hero__bg::before { -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 72%, #000 0, transparent 75%); mask-image: radial-gradient(ellipse 90% 45% at 50% 72%, #000 0, transparent 75%); }
  .about__media { max-width: 520px; }
  .about__card { right: 8px; }
  .faq__grid .head { position: static; margin-bottom: 30px; }
  .cta__grid { min-height: 0; }
  .cta__orb { max-width: 340px; order: -1; }
  .quotes__nav { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .flow__meta { flex-direction: column; align-items: stretch; }
  .flow__ctrl { justify-content: space-between; }
}
@media (max-width: 640px) {
  .nav { inset: 10px 0 auto; }
  .nav__bar { height: 58px; padding: 0 8px 0 16px; gap: 10px; }
  .nav__bar .btn { display: none; }
  .svc-grid, .steps, .form, .footer__top { grid-template-columns: minmax(0, 1fr); }
  .svc__card { min-height: 0; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }
  .stat { min-width: 0; padding-right: 10px; }
  .stat + .stat { padding-left: 14px; }
  .hero__badge { padding: 10px 14px; }
  .hero__badge b { font-size: 1.6rem; }
  .qa__a p { padding-right: 0; }
  .flow { height: clamp(340px, 108vw, 520px); }
  .flow__card { width: 66vw; }
  .rbtn { width: 48px; height: 48px; }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; max-width: min(92vw, 520px); padding: 14px 20px; font-size: .92rem; line-height: 1.45; text-align: center; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- notice (config: notice.text — e.g. "Concept preview") ---------- */
.notice { position: fixed; left: 12px; bottom: 12px; z-index: 110; max-width: calc(100vw - 24px); padding: 7px 12px; border-radius: 999px; font: 500 .72rem/1.3 var(--font-b); letter-spacing: .04em; color: var(--fg); background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none; }

/* ---------- fallbacks: no WebGL / 3D switched off ---------- */
.no-webgl #scene { display: none; }
.no-webgl [data-orb] {
  background:
    radial-gradient(circle at 32% 28%, color-mix(in oklab, #fff 70%, var(--accent)) 0, var(--accent) 26%, var(--accent-2) 62%, color-mix(in oklab, var(--accent-2) 40%, var(--bg)) 100%);
  box-shadow: 0 0 120px -10px color-mix(in oklab, var(--accent) 55%, transparent), inset -30px -40px 80px color-mix(in oklab, var(--bg) 55%, transparent);
  scale: .74;
  animation: orb-float 9s ease-in-out infinite;
}
.no-orb [data-orb] { background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 26%, transparent) 0, transparent 68%); }
.no-orb .cta__orb { display: none; }
.no-orb .cta__grid { grid-template-columns: minmax(0, 1fr); }
@keyframes orb-float { 0%, 100% { translate: 0 -10px; } 50% { translate: 0 12px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rv, .w > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media (max-height: 820px), (max-width: 1200px) { .scrollcue { display: none; } }
