/* =========================================================
   Romain Mathon - one-page portfolio
   Dark only · Primary: electric violet · Accent: acid lime
   ========================================================= */

:root {
  --bg: #07060c;
  --bg-2: #0c0a15;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f6f4ff;
  --muted: #aaa5c2;
  --dim: #6f6a88;

  --primary: #7b5cff;
  --primary-hi: #a48fff;
  --primary-deep: #3b1fd1;
  --primary-glow: rgba(123, 92, 255, .55);
  --accent: #c6ff3d;
  --accent-ink: #0d1200;

  --grad: linear-gradient(100deg, #a48fff 0%, #7b5cff 40%, #9fd8ff 72%, #c6ff3d 100%);
  --grad-ok: linear-gradient(100deg in oklch, #a48fff 0%, #7b5cff 38%, #c6ff3d 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, .25), rgba(198, 255, 61, .08));

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.is-locked { 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; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Typo helpers ---------- */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad-text {
  background: var(--grad);
  background: var(--grad-ok, var(--grad));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 8s ease-in-out infinite alternate;
  padding-right: .06em; /* avoid italic clipping */
}
@keyframes gradShift { to { background-position: 100% 0; } }
@supports not (background: linear-gradient(in oklch, red, blue)) { .grad-text, .art__big { background-image: var(--grad); } }

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.h2 > em { display: block; }
.h2 .serif { font-size: 1.08em; letter-spacing: -.02em; }
.h2--xl { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .78rem/1 var(--f-body);
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow span:first-child {
  font-family: var(--f-display); color: var(--accent);
  letter-spacing: .05em;
  padding: 6px 9px; border: 1px solid rgba(198, 255, 61, .35); border-radius: 999px;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  font-size: .85rem; color: var(--text);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 255, 61, .7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); } }

.tag {
  display: inline-block; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .74rem; letter-spacing: .04em; color: var(--muted);
}
.tag--accent { border-color: rgba(198, 255, 61, .4); color: var(--accent); }

.link { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 24px;
  border-radius: 999px;
  font: 600 .95rem/1 var(--f-body);
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn--sm { --bh: 42px; padding: 0 18px; font-size: .88rem; }
.btn--lg { --bh: 58px; padding: 0 30px; font-size: 1rem; }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn .ico--fill { fill: currentColor; stroke: none; }
.btn:hover .ico { transform: translate(2px, -2px) rotate(0deg); }
.btn--accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 40px -10px rgba(198, 255, 61, .55), inset 0 -2px 0 rgba(0,0,0,.12);
  overflow: hidden;
}
.btn--accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--accent:hover::before { transform: translateX(120%); }
.btn--accent:hover { box-shadow: 0 16px 50px -10px rgba(198, 255, 61, .75); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--primary-hi); background: rgba(123, 92, 255, .14); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 22px;
  background: var(--bg);
  transition: clip-path 1s var(--ease-out) .1s, visibility 0s 1.2s;
  clip-path: inset(0 0 0 0);
}
.no-js .loader, .is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__mark { display: flex; gap: .25em; font: 800 clamp(2rem, 7vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.04em; overflow: hidden; }
.loader__mark span { display: inline-block; animation: loaderIn .7s var(--ease-out) both; }
.loader__mark span:last-child { color: var(--accent); animation-delay: .08s; }
@keyframes loaderIn { from { transform: translateY(110%); } }
.loader__bar { width: 100%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad); animation: loaderBar .9s var(--ease) both; }
@keyframes loaderBar { from { transform: translateX(-100%); } }

/* ---------- Progress, cursor, grain ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 300; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.cursor {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, .16), transparent 65%);
  transform: translate3d(var(--cx, -500px), var(--cy, -500px), 0);
  transition: opacity .3s;
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 500; pointer-events: none; opacity: .055;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 200; inset: 14px 0 auto;
  width: min(100% - 2 * var(--gutter) + 24px, var(--container) + 24px);
  margin-inline: auto;
  height: 64px; padding: 0 10px 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, transform .5s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(12, 10, 21, .66); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav.is-hidden { transform: translateY(-130%); }
.nav__brand { display: flex; align-items: center; gap: 12px; padding-left: 10px; }
.nav__name { display: flex; flex-direction: column; font: 700 1rem/1.1 var(--f-display); letter-spacing: -.01em; }
.nav__name small { font: 500 .7rem/1.3 var(--f-body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.logo {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-hi), var(--primary-deep));
  font: 800 .95rem/1 var(--f-display); letter-spacing: -.03em; color: #fff;
  position: relative; flex: none;
  box-shadow: 0 6px 24px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.3);
}
.logo::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.logo--sm { width: 30px; height: 30px; font-size: .72rem; border-radius: 9px; display: inline-grid; vertical-align: middle; margin-left: 8px; }
.logo--sm::after { width: 8px; height: 8px; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: .9rem; color: var(--muted); transition: color .25s, background .25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 10px; }

.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.lang__btn { padding: 7px 11px; border-radius: 999px; font: 600 .74rem/1 var(--f-body); letter-spacing: .08em; color: var(--dim); transition: background .25s, color .25s; }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--text); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--text); transition: transform .35s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { bottom: 17px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(7, 6, 12, .96); backdrop-filter: blur(16px);
  display: grid; place-items: center;
  animation: fadeIn .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-menu a { font: 700 2.2rem/1.25 var(--f-display); letter-spacing: -.03em; animation: slideUp .5s var(--ease-out) both; }
.mobile-menu a:nth-child(2) { animation-delay: .04s; } .mobile-menu a:nth-child(3) { animation-delay: .08s; } .mobile-menu a:nth-child(4) { animation-delay: .12s; } .mobile-menu a:nth-child(5) { animation-delay: .16s; } .mobile-menu a:nth-child(6) { animation-delay: .2s; color: var(--accent); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  --edge: max(var(--gutter), calc((100vw - 1320px) / 2));
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 680px; max-height: 1060px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 72% at 50% 40%, #7d60ff 0%, #5a38f2 26%, #3d1fcc 48%, #22107a 70%, #0e0829 90%, var(--bg) 100%);
}
.hero__bg::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(rgba(7,6,12,0), var(--bg) 88%); }
.hero__halo {
  position: absolute; left: 50%; top: 38%; width: min(74vw, 960px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 182, 255, .5), rgba(196, 182, 255, 0) 62%);
  animation: haloPulse 9s ease-in-out infinite;
}
.hero__rim {
  position: absolute; left: 54%; top: 12%; width: 30vw; max-width: 420px; aspect-ratio: .8;
  border-radius: 50%; background: radial-gradient(circle, rgba(198, 255, 61, .3), rgba(198, 255, 61, 0) 62%);
  filter: blur(30px);
}
@keyframes haloPulse { 50% { opacity: .7; } }

.hero__stage { position: absolute; inset: 0; }
.hero__stage::after { /* one shared fade so the t-shirt melts into the background */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(7,6,12,0) 55%, rgba(7,6,12,.55) 72%, var(--bg) 92%);
}
.hero__person {
  position: absolute; left: 50%; bottom: 0;
  height: 91%; aspect-ratio: 1089 / 1444;
  transform: translateX(calc(-50% + var(--px, 0px))) perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transform-origin: 50% 75%;
  will-change: transform;
}
.hero__img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(#000 58%, rgba(0,0,0,0) 100%), linear-gradient(90deg, rgba(0,0,0,0) 2%, #000 22%, #000 78%, rgba(0,0,0,0) 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 58%, rgba(0,0,0,0) 100%), linear-gradient(90deg, rgba(0,0,0,0) 2%, #000 22%, #000 78%, rgba(0,0,0,0) 98%);
  mask-composite: intersect;
}
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--lx, 55%) var(--ly, 30%), rgba(236, 230, 255, .5), rgba(198, 255, 61, .14) 16%, rgba(198, 255, 61, 0) 38%);
  -webkit-mask: url(../img/romain-mathon-hero.webp) 50% 100% / 100% 100% no-repeat, linear-gradient(#000 40%, rgba(0,0,0,0) 70%), linear-gradient(90deg, rgba(0,0,0,0) 10%, #000 30%, #000 70%, rgba(0,0,0,0) 90%);
  -webkit-mask-composite: source-in;
  mask: url(../img/romain-mathon-hero.webp) 50% 100% / 100% 100% no-repeat, linear-gradient(#000 40%, rgba(0,0,0,0) 70%), linear-gradient(90deg, rgba(0,0,0,0) 10%, #000 30%, #000 70%, rgba(0,0,0,0) 90%);
  mask-composite: intersect;
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .8s var(--ease);
}

.hero__title { position: absolute; inset: 0; margin: 0; z-index: 2; pointer-events: none; font-weight: inherit; }
.hero__side {
  position: absolute; display: flex; flex-direction: column;
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0);
}
.hero__side--l { left: var(--edge); top: 20%; align-items: flex-start; }
.hero__side--r { right: var(--edge); top: 40%; align-items: flex-end; text-align: right; }
.hero__big {
  font-family: var(--f-display); font-weight: 800;
  font-stretch: 75%; font-variation-settings: "wdth" 75;
  font-size: clamp(3.4rem, 8.2vw, 9.4rem); line-height: .84; letter-spacing: -.005em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 14px 60px rgba(20, 8, 90, .35);
}
.hero__it { font-size: clamp(2.6rem, 6vw, 6.8rem); line-height: 1; color: #fff; margin-top: -.02em; text-shadow: 0 14px 60px rgba(20, 8, 90, .35); }
.hero__side--l .hero__it { margin-left: .5em; }

.hero__bottom {
  position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: clamp(28px, 6vh, 60px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero__left { max-width: 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__lead { font-size: 1.02rem; line-height: 1.55; color: rgba(246, 244, 255, .84); }
.hero__facts { width: 300px; }
.hero__facts li {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
  font: 600 .72rem/1.25 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(246, 244, 255, .86); text-align: right;
}
.hero__facts li:first-child { color: var(--accent); }

/* entrance (uses `translate` so it never fights the cursor `transform`) */
.js .hero__side, .js .hero__person, .js .hero__left, .js .hero__facts { opacity: 0; }
.is-loaded .hero__person { animation: heroUp 1.4s var(--ease-out) .1s both; }
.is-loaded .hero__side--l { animation: heroInL 1.2s var(--ease-out) .35s both; }
.is-loaded .hero__side--r { animation: heroInR 1.2s var(--ease-out) .5s both; }
.is-loaded .hero__left { animation: heroUp 1s var(--ease-out) .75s both; }
.is-loaded .hero__facts { animation: heroUp 1s var(--ease-out) .85s both; }
@keyframes heroUp { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@keyframes heroInL { from { opacity: 0; translate: -60px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes heroInR { from { opacity: 0; translate: 60px 0; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 1100px) {
  .hero__side--l { top: 17%; }
  .hero__side--r { top: 42%; }
  .hero__facts { width: 230px; }
}

@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; max-height: none; padding-top: 78px; }
  .hero__bg { background: radial-gradient(90% 55% at 50% 30%, #7d60ff 0%, #5a38f2 30%, #3d1fcc 52%, #22107a 72%, #0e0829 90%, var(--bg) 100%); }
  .hero__bg::after { height: 55%; }
  .hero__halo { top: 26%; width: 120vw; }
  .hero__rim { left: 50%; top: 8%; width: 70vw; }
  .hero__stage { position: relative; inset: auto; height: min(150vw, 660px); }
  .hero__person { height: 74%; bottom: 13%; }
  .hero__side--l { left: 18px; top: 0; }
  .hero__side--r { right: 18px; top: auto; bottom: 0; }
  .hero__big { font-size: 15.5vw; }
  .hero__it { font-size: 12vw; }
  .hero__bottom { position: relative; left: auto; right: auto; bottom: auto; flex-direction: column; align-items: stretch; gap: 26px; padding: 22px 20px 44px; background: var(--bg); }
  .hero__left { max-width: none; }
  .hero__left .btn { width: 100%; }
  .hero__facts { width: auto; }
  .hero__facts li { justify-content: flex-start; text-align: left; }
}

/* ---------- Trust marquee ---------- */
.trust { padding: clamp(60px, 8vw, 100px) 0 20px; }
.trust__title { text-align: center; font-size: .95rem; color: var(--muted); margin: 0 var(--gutter) 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; }
.marquee__list li { display: flex; align-items: center; font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--f-display); letter-spacing: -.03em; color: rgba(246,244,255,.42); white-space: nowrap; transition: color .3s; padding-right: 54px; }
.marquee__list li::after { content: "✦"; font-size: .55em; color: var(--primary); margin-left: 54px; }
.marquee__list li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(90px, 12vw, 170px) 0; }
.manifesto__text {
  font: 600 clamp(1.7rem, 3.8vw, 3.4rem)/1.12 var(--f-display);
  letter-spacing: -.035em;
  max-width: 24ch;
}
.manifesto__text .mw { opacity: .14; transition: opacity .25s linear, color .25s; }
.manifesto__text .mw.is-lit { opacity: 1; }
.manifesto__text .mw.is-key { color: var(--accent); }
.manifesto__text .key { white-space: normal; }
.no-js .manifesto__text { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section__head { margin-bottom: clamp(40px, 5vw, 70px); }
.section__intro { max-width: 60ch; margin-top: 26px; color: var(--muted); font-size: 1.08rem; }
.section__head > .btn { margin-top: 28px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
  transition: border-color .4s, transform .5s var(--ease);
}
.card:hover { border-color: rgba(164, 143, 255, .35); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(123, 92, 255, .22), transparent 45%);
  transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.card__num { font: 500 .85rem/1 var(--f-display); color: var(--dim); }
.card__title { font: 700 clamp(1.6rem, 2.6vw, 2.3rem)/1.05 var(--f-display); letter-spacing: -.035em; margin-top: 18px; }
.card__text { color: var(--muted); font-size: .98rem; max-width: 46ch; }

.card--ux { grid-column: span 4; min-height: 420px; padding-right: 46%; }
.card--self { grid-column: span 2; }
.card--auto, .card--ai, .card--ent { grid-column: span 2; }

/* UX demo */
.ux-demo { position: absolute; right: 4%; top: 50%; width: 40%; transform: translateY(-50%) rotate(-3deg); }
.ux-demo__win { border-radius: 16px; background: #120f20; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 6px rgba(123,92,255,.06); overflow: hidden; }
.ux-demo__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ux-demo__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.ux-demo__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sk { height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); width: 80%; }
.sk--h { height: 14px; width: 60%; background: rgba(255,255,255,.22); }
.sk--s { width: 50%; }
.ux-demo__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.ux-demo__cards span { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, rgba(123,92,255,.35), rgba(123,92,255,.08)); }
.ux-demo__cards span:nth-child(2) { background: linear-gradient(135deg, rgba(198,255,61,.3), rgba(198,255,61,.05)); }
.ux-demo__btn { align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; animation: btnPress 4s var(--ease) infinite; }
.ux-demo__cursor { position: absolute; width: 26px; height: 26px; fill: #fff; stroke: #000; stroke-width: 1; left: 70%; top: 30%; animation: cursorMove 4s var(--ease) infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.ux-demo__kpi { position: absolute; right: -10px; top: -18px; padding: 8px 12px; border-radius: 12px; background: var(--primary); font: 700 1rem/1 var(--f-display); box-shadow: 0 10px 30px -8px var(--primary-glow); animation: kpiPop 4s var(--ease) infinite; }
.ux-demo__kpi small { font: 500 .7rem var(--f-body); opacity: .8; }
@keyframes cursorMove { 0%, 15% { left: 75%; top: 25%; } 45%, 60% { left: 16%; top: 84%; } 100% { left: 75%; top: 25%; } }
@keyframes btnPress { 0%, 48% { transform: scale(1); } 52% { transform: scale(.9); } 58%, 100% { transform: scale(1); } }
@keyframes kpiPop { 0%, 52% { transform: scale(.6); opacity: 0; } 62%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: 0; } }

.learn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.learn li { padding: 6px 11px; border-radius: 9px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.learn li.is-new { background: rgba(198,255,61,.12); border-color: rgba(198,255,61,.4); color: var(--accent); animation: glowTag 2.4s ease-in-out infinite; }
@keyframes glowTag { 50% { box-shadow: 0 0 22px -2px rgba(198,255,61,.5); } }

.flow { display: flex; align-items: center; gap: 0; margin-top: 6px; counter-reset: f; }
.flow li { flex: 1; position: relative; font-size: .74rem; font-weight: 600; color: var(--muted); padding-top: 16px; }
.flow li::before { content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(123,92,255,.18); }
.flow li::after { content: ""; position: absolute; top: 4px; left: 14px; right: 4px; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.flow li:last-child::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(198,255,61,.18); }
.flow li:last-child::after { display: none; }

.card--ai { background: radial-gradient(120% 90% at 100% 0%, rgba(198,255,61,.1), transparent 50%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.terminal { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #0b0a12; border: 1px solid var(--line); font: 500 .76rem/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); }
.terminal em { color: var(--accent); font-style: normal; }
.t-ok { color: var(--accent); animation: blink 1.6s infinite; }
.t-line { color: var(--text); min-height: 1.7em; }
.t-line::after { content: "▍"; color: var(--primary-hi); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.card--ent { padding-bottom: 110px; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.spark__line { fill: none; stroke: url(#sg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2.2s var(--ease-out) .3s; }
.card--ent.is-in .spark__line { stroke-dashoffset: 0; }
.spark__dot { fill: var(--accent); opacity: 0; transition: opacity .4s 2.2s; }
.card--ent.is-in .spark__dot { opacity: 1; }
.exit-badge { position: absolute; right: 22px; bottom: 54px; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 800 .7rem/1 var(--f-display); letter-spacing: .1em; }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 80px 1fr auto 56px; align-items: center; gap: 28px;
  padding: 34px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(123,92,255,.18), rgba(123,92,255,.02) 60%, rgba(198,255,61,.06));
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
  border-radius: 18px;
}
.service:hover::before { transform: scaleY(1); }
.service:hover { padding-left: 24px; padding-right: 24px; }
.service__num { font: 500 1rem/1 var(--f-display); color: var(--dim); }
.service h3 { font: 700 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.service p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 260px; }
.service__tags li { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .76rem; color: var(--muted); }
.service__arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .4s, transform .5s var(--ease), border-color .4s; }
.service__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__arrow { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: rotate(45deg); }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; margin-top: clamp(20px, 4vw, 60px); }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 88px 0 28px; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.work__head .eyebrow { margin-bottom: 18px; }
.work__head .h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.work__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.work__hint { font-size: .82rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.work__bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.work__bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--wp, 0)); }
.work__viewport { overflow: visible; }
.work__track { display: flex; gap: 22px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: var(--gutter); will-change: transform; }
.project {
  flex: 0 0 min(34vw, 460px, 62vh);
  min-width: 300px;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease);
}
.project:hover { border-color: rgba(164,143,255,.4); transform: translateY(-6px); }
.project__visual { position: relative; display: block; aspect-ratio: 16 / 9.4; overflow: hidden; background: #110e1c; }
.shot { padding: 18px 18px 0; background: radial-gradient(120% 120% at 0% 0%, rgba(123,92,255,.5), transparent 60%), linear-gradient(160deg, #1b1236, #0c0a15); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 10px 10px 0 0; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-bottom: 0; }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.shot__bar em { margin-left: 10px; font: 500 .72rem/1 var(--f-body); color: var(--muted); font-style: normal; }
.shot img { width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top; border: 1px solid var(--line); border-top: 0; transition: transform 1.2s var(--ease-out); transform-origin: top; }
.project:hover .shot img { transform: scale(1.04); }
.project__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.project__title { font: 700 1.7rem/1.05 var(--f-display); letter-spacing: -.035em; }
.project__title small { font-size: .55em; color: var(--muted); font-weight: 600; letter-spacing: -.01em; }
.project__body > p:not(.project__meta) { color: var(--muted); font-size: .95rem; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.project__tags li { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: .74rem; color: var(--muted); }

/* project art */
.art { display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; isolation: isolate; }
.art__big { font: 800 clamp(5rem, 9vw, 8rem)/.85 var(--f-display); letter-spacing: -.06em; background: var(--grad-ok, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art__label { font: 600 1rem/1.2 var(--f-display); color: var(--text); }
.art__label--lg { font: 800 clamp(2rem, 3.6vw, 3rem)/.95 var(--f-display); letter-spacing: -.045em; }
.art__badge { position: absolute; top: 20px; right: 20px; padding: 7px 11px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 800 .72rem/1 var(--f-display); letter-spacing: .1em; }
.art__badge--mint { background: #fff; }
.art__name { position: absolute; top: 22px; left: 26px; font: 700 .85rem/1 var(--f-display); letter-spacing: .02em; color: var(--muted); }
.art--mi { background: radial-gradient(90% 90% at 100% 0%, rgba(123,92,255,.6), transparent 60%), linear-gradient(160deg, #150e2c, #08070e); }
.art__lines { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-28deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px); mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); animation: speed 1.2s linear infinite; }
@keyframes speed { to { background-position: 60px 0; } }
.art--dc { background: radial-gradient(80% 80% at 20% 10%, rgba(198,255,61,.28), transparent 60%), linear-gradient(160deg, #2a1d63, #120c2a); }
.art__write { position: absolute; inset: 18% 6% auto; width: 88%; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 0 10px rgba(198,255,61,.5)); }
.project.is-in .art__write, .art--dc:hover .art__write { animation: write 3.2s var(--ease) forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
.art--pa { background: radial-gradient(90% 90% at 80% 20%, rgba(123,92,255,.75), transparent 60%), linear-gradient(160deg, #1d1144, #0a0814); }
.art__cubes { position: absolute; right: 12%; top: 18%; width: 40%; aspect-ratio: 1; }
.art__cubes i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #a48fff, #5b3cff); box-shadow: 0 20px 40px -10px rgba(91,60,255,.8); animation: cube 6s ease-in-out infinite; }
.art__cubes i:nth-child(1) { left: 0; top: 0; }
.art__cubes i:nth-child(2) { right: 0; top: 14%; opacity: .7; animation-delay: -1.5s; }
.art__cubes i:nth-child(3) { left: 18%; bottom: 0; opacity: .85; animation-delay: -3s; }
.art__cubes i:nth-child(4) { right: 10%; bottom: 8%; width: 22%; background: var(--accent); animation-delay: -4.5s; }
@keyframes cube { 50% { transform: translate(6px, -10px) rotate(6deg); } }

.project--cta { background: none; border: 0; }
.project--cta:hover { transform: none; }
.cta-card {
  height: 100%; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: 34px; border-radius: var(--r-lg);
  background: var(--accent); color: var(--accent-ink);
  position: relative; overflow: hidden;
  transition: transform .6s var(--ease);
}
.cta-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -110px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,255,.55), transparent 70%); transition: transform .8s var(--ease); }
.cta-card:hover::after { transform: scale(1.4); }
.cta-card__eyebrow { font: 600 .78rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .16em; }
.cta-card__title { font: 800 clamp(2rem, 3.6vw, 3.1rem)/1 var(--f-display); letter-spacing: -.045em; position: relative; z-index: 1; }
.cta-card__title .serif { font-weight: 400; }
.cta-card__btn { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 16px 22px; border-radius: 999px; background: var(--accent-ink); color: var(--accent); font-weight: 600; position: relative; z-index: 1; }
.cta-card__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.cta-card:hover .cta-card__btn svg { transform: rotate(45deg); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .5; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); transition: transform .2s linear; }
.step { position: relative; padding: 0 8px 0 0; }
.step__n { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 700 1.05rem/1 var(--f-display); color: var(--text); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.step.is-in .step__n { border-color: var(--primary); box-shadow: 0 0 0 6px rgba(123,92,255,.12), 0 0 30px -4px var(--primary-glow); }
.step:last-child.is-in .step__n { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 6px rgba(198,255,61,.12), 0 0 30px -4px rgba(198,255,61,.6); }
.step h3 { font: 700 1.45rem/1.1 var(--f-display); letter-spacing: -.03em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Compare ---------- */
.vs { color: var(--dim); -webkit-text-fill-color: var(--dim); font-size: .7em; margin-right: .15em; }
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.compare__col { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.compare__col h3 { display: flex; align-items: center; font: 700 1.35rem/1 var(--f-display); letter-spacing: -.02em; margin-bottom: 26px; }
.compare__col li { position: relative; padding: 14px 0 14px 38px; border-top: 1px solid var(--line); font-size: 1rem; }
.compare__col li::before { position: absolute; left: 0; top: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.compare__col--them { color: var(--muted); background: rgba(255,255,255,.015); }
.compare__col--them li::before { content: "✕"; background: rgba(255,255,255,.06); color: var(--dim); }
.compare__col--me { background: radial-gradient(120% 120% at 100% 0%, rgba(123,92,255,.28), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: rgba(164,143,255,.35); box-shadow: 0 40px 100px -40px rgba(91,60,255,.6); }
.compare__col--me li::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline__line { position: absolute; left: 180px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__line i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--primary), var(--accent)); transform-origin: 50% 0; transform: scaleY(var(--tp, 0)); }
.tl { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 0 48px; padding: 0 0 46px; }
.tl::before { content: ""; position: absolute; left: 175px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); transition: background .4s, box-shadow .4s; }
.tl.is-in::before { background: var(--primary); box-shadow: 0 0 0 5px rgba(123,92,255,.18); }
.tl--hl::before { border-color: var(--accent); }
.tl--hl.is-in::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(198,255,61,.18); }
.tl__year { font: 600 .9rem/1.6 var(--f-display); color: var(--muted); padding-right: 24px; }
.tl h3 { font: 700 1.35rem/1.15 var(--f-display); letter-spacing: -.025em; }
.tl--hl h3 { color: var(--accent); }
.tl__role { font-size: .88rem; color: var(--primary-hi); margin: 4px 0 8px; font-weight: 500; }
.tl p:not(.tl__role) { color: var(--muted); max-width: 70ch; }

.edu { margin-top: 30px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 180px 1fr; gap: 20px 48px; align-items: start; }
.edu__title { font: 600 .78rem/1.6 var(--f-body); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.edu ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.edu li { display: flex; flex-direction: column; gap: 4px; }
.edu b { font: 700 1rem/1.2 var(--f-display); }
.edu span { font-size: .85rem; color: var(--muted); }

/* ---------- Tools ---------- */
.tools { padding: 20px 0 clamp(40px, 6vw, 80px); display: grid; gap: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tools__row { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.tools__row--rev { animation-direction: reverse; animation-duration: 60s; }
.tools__row ul { display: flex; gap: 12px; padding-right: 12px; }
.tools__row li { padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 1rem/1 var(--f-display); white-space: nowrap; color: var(--muted); transition: color .3s, border-color .3s; }
.tools__row li:hover { color: var(--text); border-color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-wrap .section__head { position: sticky; top: 120px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0;
  font: 600 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -.015em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 400 1.3rem/1 var(--f-body); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.faq summary:hover { color: var(--primary-hi); }
.faq details p { padding: 0 60px 26px 0; color: var(--muted); animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 150px) 0; }
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact__bg .aurora--1 { right: auto; left: -20vw; top: 10%; }
.contact__bg .aurora--2 { left: auto; right: -10vw; bottom: -10%; background: radial-gradient(circle, rgba(198,255,61,.18), transparent 70%); }
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact__lead { color: var(--muted); font-size: 1.1rem; max-width: 44ch; margin-top: 26px; }
.contact__list { margin-top: 34px; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.contact__list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); fill: var(--text); flex: none; }
.contact__list a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.contact__list a:hover { color: var(--accent); border-color: var(--accent); }

.form {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 17, 34, .85), rgba(12, 10, 21, .85));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  box-shadow: 0 50px 120px -40px rgba(91,60,255,.55);
  display: grid; gap: 16px;
}
.form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(164,143,255,.6), transparent 40%, transparent 70%, rgba(198,255,61,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.form__chips { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { width: 100%; margin-bottom: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.form__chips label { position: relative; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; color: var(--muted); transition: all .25s var(--ease); }
.form__chips label:hover span { border-color: var(--primary-hi); color: var(--text); }
.form__chips input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 24px -8px var(--primary-glow); }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 16px 10px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  color: var(--text); font: 400 1rem/1.4 var(--f-body);
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { padding: 18px 44px 18px 16px; cursor: pointer; color: var(--muted); }
.field select.has-value { color: var(--text); }
.field select option { background: var(--bg-2); color: var(--text); }
.field--select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease), color .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary-hi); background: rgba(123,92,255,.07); box-shadow: 0 0 0 4px rgba(123,92,255,.15); }
.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(--primary-hi); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b8b; }
.field.is-invalid label { color: #ff8aa3; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.form__legal { font-size: .8rem; color: var(--dim); max-width: 34ch; }
.form__status { font-size: .95rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #ff8aa3; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form.is-sent { text-align: left; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 120px) 0 30px; overflow: hidden; }
.footer__big {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25em;
  font: 800 clamp(3rem, 10.5vw, 9.6rem)/.98 var(--f-display); letter-spacing: -.045em;
  transition: color .4s;
}
.footer__big .serif { font-weight: 400; }
.footer__arrow { display: inline-grid; place-items: center; width: clamp(56px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-left: .15em; transition: transform .6s var(--ease); }
.footer__arrow svg { width: 42%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.footer__big:hover .footer__arrow { transform: rotate(45deg) scale(1.05); }
.footer__bottom { margin-top: clamp(50px, 7vw, 90px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: .86rem; color: var(--dim); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom a, .footer__bottom .link { color: var(--muted); text-decoration: none; transition: color .25s; }
.footer__bottom a:hover, .footer__bottom .link:hover { color: var(--text); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 250; left: 50%; bottom: 16px; translate: -50% 0;
  width: min(100% - 32px, 420px);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: rgba(16, 14, 28, .9); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.8);
  font-size: .76rem; color: var(--muted); line-height: 1.45;
  animation: cookieIn .7s var(--ease-out) 1.6s both;
}
.cookie[hidden] { display: none; }
.cookie.is-leaving { animation: cookieOut .45s var(--ease) forwards; }
.cookie p { flex: 1; }
.cookie__ok { flex: none; padding: 10px 18px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .82rem; transition: background .25s; }
.cookie__ok:hover { background: var(--accent); }
@keyframes cookieIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes cookieOut { to { opacity: 0; transform: translateY(30px); } }

/* ---------- Modals ---------- */
.modal {
  padding: 0; border: 0; color: var(--text);
  background: transparent;
  max-width: min(100% - 24px, 880px); max-height: calc(100% - 24px);
  overflow: visible;
}
.modal::backdrop { background: rgba(4, 3, 8, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal[open] { animation: modalIn .6s var(--ease-out); }
.modal[open]::backdrop { animation: fadeIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal__close { position: absolute; z-index: 3; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 1.5rem; line-height: 1; transition: background .25s, transform .35s var(--ease); }
.modal__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

.modal--exit { width: 880px; }
.modal__glow { position: absolute; inset: -30% -10% auto; height: 70%; background: radial-gradient(circle, var(--primary-glow), transparent 60%); filter: blur(50px); z-index: -1; pointer-events: none; }
.exit { display: grid; grid-template-columns: .8fr 1.2fr; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #15112a, #0b0915); border: 1px solid var(--line-2); box-shadow: 0 60px 140px -40px rgba(91,60,255,.7); }
.exit__photo { position: relative; background: radial-gradient(120% 70% at 85% 15%, rgba(198,255,61,.85), transparent 45%), linear-gradient(170deg, #8e74ff, #5b3cff 45%, #1e0f6b); min-height: 100%; }
.exit__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.exit__copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.exit__copy h2 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.02 var(--f-display); letter-spacing: -.04em; }
.exit__copy h2 .serif { display: block; }
.exit__copy > p { color: var(--muted); }
.exit__copy .pill { align-self: flex-start; }
.exit__list { display: grid; gap: 8px; }
.exit__list li { position: relative; padding-left: 28px; font-size: .95rem; }
.exit__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; }
.exit__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.modal--legal { width: 760px; }
.legal { max-height: calc(100vh - 60px); overflow: auto; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: #100d1c; border: 1px solid var(--line-2); }
.legal h2 { font: 700 1.9rem/1.1 var(--f-display); letter-spacing: -.03em; margin: 0 0 18px; }
.legal h2:not(:first-child) { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal h3 { font: 600 1rem/1.3 var(--f-display); color: var(--primary-hi); margin: 22px 0 6px; }
.legal p { color: var(--muted); font-size: .94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .card--ux { grid-column: span 6; }
  .card--self { grid-column: span 6; }
  .card--auto, .card--ai, .card--ent { grid-column: span 3; }
  .card--ent { grid-column: span 6; }
  .service { grid-template-columns: 56px 1fr 56px; }
  .service__tags { display: none; }
  .edu ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { inset: 10px 0 auto; height: 58px; }
  .nav__name small { display: none; }
  .card--ux { padding-right: clamp(24px, 2.6vw, 34px); min-height: 0; }
  .ux-demo { position: relative; top: auto; right: auto; width: min(88%, 340px); margin: 22px auto 8px; transform: rotate(-2deg); }
  /* work becomes swipeable */
  .work { padding-bottom: 40px; }
  .work__sticky { position: relative; height: auto; padding: 60px 0 0; overflow: visible; }
  .work__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
  .work__track::-webkit-scrollbar { display: none; }
  .project { flex-basis: min(84vw, 420px); min-width: 0; scroll-snap-align: center; }
  .work__meta { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .steps::before { display: none; }
  .compare { grid-template-columns: 1fr; }
  .timeline__line { left: 5px; }
  .tl { grid-template-columns: 1fr; padding-left: 34px; }
  .tl::before { left: 0; }
  .tl__year { padding: 0 0 4px; }
  .edu { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 10px; }
  .faq-wrap .section__head { position: static; }
  .contact__inner { grid-template-columns: 1fr; }
  .exit { grid-template-columns: 1fr; }
  .exit__photo { min-height: 200px; }
}

@media (max-width: 600px) {
  .nav__right .btn { display: none; }
  .lang__btn { padding: 7px 9px; }
  .card--auto, .card--ai { grid-column: span 6; }
  .card { min-height: 0; }
  .card--ent { padding-bottom: 120px; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr 48px; gap: 16px; padding: 26px 4px; }
  .service__num { display: none; }
  .service__arrow { width: 48px; height: 48px; }
  .edu ul { grid-template-columns: 1fr 1fr; }
  .cookie { bottom: 10px; width: calc(100% - 20px); }
  .faq details p { padding-right: 0; }
  .exit__photo { min-height: 190px; }
  .exit__photo img { object-position: 50% 30%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track, .tools__row { animation: none !important; }
  .grain { display: none; }
  .manifesto__text .mw { opacity: 1; }
}
