/* ==========================================================================
   METAWYM — core stylesheet
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #9aa3b8;
  --dim: #5f6880;

  --c1: #7cf7ff;   /* cyan  — AI       */
  --c2: #8b7bff;   /* violet — VR      */
  --c3: #ff7ad9;   /* pink  — Social   */
  --grad: linear-gradient(100deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);

  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eceef6;
  --surface: rgba(10, 14, 30, 0.035);
  --surface-2: rgba(10, 14, 30, 0.06);
  --line: rgba(10, 14, 30, 0.09);
  --line-2: rgba(10, 14, 30, 0.16);
  --text: #0b0e1a;
  --muted: #535b70;
  --dim: #8a91a5;
  --c1: #00a7c4;
  --c2: #5b47ff;
  --c3: #e0359f;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; word-break: keep-all; }
p { margin: 0; word-break: keep-all; }
::selection { background: color-mix(in srgb, var(--c2) 45%, transparent); }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 16px; }

/* scroll progress + film grain */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
[data-theme="light"] .grain { opacity: .03; }
@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; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner { height: 100%; width: min(1280px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.brand__mark { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
/* Mid-width desktops: tighten the menu so longer labels (FR) still fit on one row. */
@media (min-width: 1001px) and (max-width: 1180px) {
  .nav__inner { gap: 14px; }
  .nav__links { gap: 0; }
  .nav__links a { padding: 8px 9px; font-size: 14px; }
  .kbd-btn kbd { display: none; }
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .kbd-btn {
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover, .kbd-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg, .kbd-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }
.burger { display: none; width: 38px; height: 38px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 22px; }
.nav.is-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ───────── Buttons ───────── */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 15.5px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { color: #05060a; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 40px -10px color-mix(in srgb, var(--c2) 70%, transparent); }
.btn--primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(14px); opacity: .0; transition: opacity .4s var(--ease);
}
.btn--primary:hover::before { opacity: .75; }
[data-theme="light"] .btn--primary { color: #fff; background: #0b0e1a; }
.btn--ghost { border: 1px solid var(--line-2); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); }

/* ───────── Hero ───────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__aurora {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 30%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%),
    radial-gradient(35% 30% at 80% 25%, color-mix(in srgb, var(--c3) 18%, transparent), transparent 70%),
    radial-gradient(45% 40% at 60% 75%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%);
  filter: blur(40px); animation: aurora 18s var(--ease) infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
@keyframes aurora { to { transform: translate3d(3%, 4%, 0) rotate(4deg) scale(1.08); } }

.hero__content { position: relative; max-width: 1200px; }
/* Always one line: spacing is in em so it shrinks with the text; main.js fits the font size per language. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em; padding: .56em 1.12em .56em .96em; margin-bottom: 28px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; white-space: nowrap;
}
.dot { flex: none; width: .56em; height: .56em; border-radius: 50%; background: var(--c1); box-shadow: 0 0 12px var(--c1); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__title { font-size: clamp(40px, 7.4vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; max-width: 16ch; }
.grad { background: linear-gradient(100deg, var(--c1), var(--c2), var(--c3), var(--c2), var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shift 8s linear infinite; }
@keyframes shift { to { background-position: 200% 0; } }
.hero__lead { margin-top: 28px; max-width: 620px; font-size: clamp(16.5px, 1.6vw, 19.5px); color: var(--muted); line-height: 1.7; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mode { margin-top: 56px; display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12.5px; }
.hero__mode-label { color: var(--dim); letter-spacing: .12em; }
.hero__mode-word { min-width: 11ch; color: var(--text); transition: opacity .35s, transform .35s var(--ease); }
.hero__mode-word.is-out { opacity: 0; transform: translateY(6px); }
.hero__mode-bars { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.hero__mode-bars i { width: 3px; background: var(--c1); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.hero__mode-bars i:nth-child(2) { animation-delay: .2s; background: var(--c2); }
.hero__mode-bars i:nth-child(3) { animation-delay: .4s; background: var(--c3); }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ───────── Marquee ───────── */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--muted); }
.marquee__track i { font-style: normal; color: var(--c2); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
.section { position: relative; padding: clamp(96px, 14vw, 170px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.section__head { max-width: 780px; margin-bottom: 64px; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c1); margin-bottom: 20px; }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
.section__sub { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 640px; }

/* ───────── Cards / Bento ───────── */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c2) 14%, transparent), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c1) 70%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 34px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; overflow: hidden;
  transition: transform .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card--xl { grid-row: span 2; min-height: 560px; }
.card--wide { grid-column: span 2; min-height: 0; }
.card h3 { font-size: clamp(24px, 2.4vw, 32px); }
.card p { color: var(--muted); }
.card__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--dim) !important; }
/* Fixed space under the icon so every card's label/title starts at the same height;
   spare height collects at the bottom. The large AI card instead centers a bigger icon in it. */
.card__glyph { flex: none; width: 120px; height: 120px; margin-bottom: 22px; transition: transform .8s var(--ease); }
.card:hover .card__glyph { transform: rotate(-8deg) scale(1.05); }
.card--xl .card__glyph { flex: 1; width: 100%; height: auto; min-height: 220px; margin-bottom: 26px; display: grid; place-items: center; }
.card--xl .card__glyph svg { width: min(280px, 78%); height: auto; transition: transform .8s var(--ease); }
.card--xl:hover .card__glyph { transform: none; }
.card--xl:hover .card__glyph svg { scale: 1.05; }
.g-ai { color: var(--c1); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c1) 60%, transparent)); }
.g-vr { color: var(--c2); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c2) 60%, transparent)); }
.g-social { color: var(--c3); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c3) 60%, transparent)); }
.g-ai svg { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card__link { align-self: flex-start; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-weight: 650; font-size: 15px; color: var(--c2); }
.card__link span { transition: transform .3s var(--ease); }
.card__link:hover span { transform: translateX(4px); }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }

.convergence { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; height: 100%; }
.convergence .card__tag { margin: 0 0 14px; }
.convergence h3 { margin-bottom: 14px; }
.venn { position: relative; aspect-ratio: 1.2; max-width: 300px; width: 100%; margin-inline: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.venn__c { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; mix-blend-mode: screen; border: 1px solid; animation: breathe 6s var(--ease) infinite; }
[data-theme="light"] .venn__c { mix-blend-mode: multiply; }
.venn__a { left: 0; top: 0; background: color-mix(in srgb, var(--c1) 22%, transparent); border-color: color-mix(in srgb, var(--c1) 60%, transparent); place-items: start center; padding-top: 24%; }
.venn__b { right: 0; top: 0; background: color-mix(in srgb, var(--c2) 22%, transparent); border-color: color-mix(in srgb, var(--c2) 60%, transparent); place-items: start center; padding-top: 24%; animation-delay: -2s; }
.venn__s { left: 21%; bottom: 0; background: color-mix(in srgb, var(--c3) 22%, transparent); border-color: color-mix(in srgb, var(--c3) 60%, transparent); place-items: end center; padding-bottom: 20%; animation-delay: -4s; }
.venn__core { position: absolute; left: 50%; top: 52%; width: 15%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c2) 55%, transparent)); }
/* Logo gradient follows the theme palette so it stays legible on the light circles too. */
.venn__core stop:nth-child(1) { stop-color: var(--c1); }
.venn__core stop:nth-child(2) { stop-color: var(--c2); }
.venn__core stop:nth-child(3) { stop-color: var(--c3); }
[data-theme="light"] .venn__core { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .95)) drop-shadow(0 0 10px rgba(255, 255, 255, .8)); }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* ───────── Platform ───────── */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); opacity: .2;
}
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--c1); border-bottom: 2px solid var(--c1); transform: rotate(-45deg); }

.stack { position: relative; height: 460px; perspective: 1200px; }
.stack__layer {
  --i: 0;
  position: absolute; left: 50%; top: 50%; width: min(440px, 92%); height: 150px; margin: -75px 0 0 calc(min(440px, 92%) / -2);
  border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 24px;
  transform: rotateX(58deg) rotateZ(-38deg) translateZ(calc(var(--i) * 70px));
  transition: transform .8s var(--ease), box-shadow .6s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.stack__layer span { font-weight: 700; font-size: 18px; }
.stack__layer em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.stack__layer.l1 { --i: -1.5; border-color: color-mix(in srgb, var(--c1) 40%, transparent); }
.stack__layer.l2 { --i: -.5; border-color: color-mix(in srgb, var(--c2) 45%, transparent); }
.stack__layer.l3 { --i: .5; border-color: color-mix(in srgb, var(--c3) 45%, transparent); }
.stack__layer.l4 { --i: 1.5; background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 20%, transparent), var(--surface)); }
.stack:hover .stack__layer { transform: rotateX(58deg) rotateZ(-38deg) translateZ(calc(var(--i) * 110px)); }
.stack:hover .stack__layer.l4 { box-shadow: 0 0 80px -10px color-mix(in srgb, var(--c2) 60%, transparent); }

/* ───────── Steps & stats ───────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 34px; background: var(--surface); }
.step__n { font-family: var(--mono); font-size: 13px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 24px; margin: 46px 0 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

.stats { margin-top: 90px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 20px 0 0; display: grid; gap: 6px; }
.stat b { font-size: clamp(44px, 6vw, 80px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ───────── Vision ───────── */
.vision { padding-block: clamp(120px, 18vw, 240px); }
.manifesto { font-size: clamp(28px, 4.2vw, 58px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.28; max-width: 26ch; }
.manifesto .w { color: var(--dim); opacity: .35; transition: color .3s, opacity .3s; }
.manifesto .w.on { color: var(--text); opacity: 1; }

/* ───────── Contact ───────── */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.mail-link { display: inline-block; margin-top: 36px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 32px; display: grid; gap: 16px; backdrop-filter: blur(14px); }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 24px 16px 10px; outline: none; resize: vertical; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select option { color: #111; }
.field--select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-30%) rotate(45deg); pointer-events: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: color-mix(in srgb, var(--c2) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 18%, transparent); }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .2s var(--ease), font-size .2s, top .2s; transform-origin: 0 0; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 8px; font-size: 12px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b81; }
.form__note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ───────── Footer ───────── */
.footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 0; overflow: hidden; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer__brand .brand__word { font-weight: 800; letter-spacing: .08em; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: 14.5px; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; color: var(--dim); font-size: 13px; }
.footer__giant {
  font-size: clamp(64px, 20vw, 300px); font-weight: 900; letter-spacing: -0.06em; line-height: .78; text-align: center; margin-top: 40px;
  background: linear-gradient(180deg, var(--line-2), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}

/* ───────── Command palette ───────── */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 14vh 16px 0; }
.palette[hidden] { display: none; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); animation: fade .2s; }
.palette__panel {
  position: relative; width: min(600px, 100%); border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: pop .25s var(--ease);
}
.palette__search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.palette__search input { flex: 1; font: inherit; font-size: 16px; color: var(--text); background: none; border: 0; outline: none; }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.palette__list li small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.palette__list li[aria-selected="true"] { background: var(--surface-2); }
.palette__list .empty { color: var(--dim); cursor: default; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ───────── Reveal ───────── */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--xl { grid-row: auto; grid-column: span 2; min-height: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .platform, .contact__grid { grid-template-columns: 1fr; }
  .stack { height: 400px; }
}
@media (max-width: 1000px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 12px 16px 24px;
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 8px; font-size: 18px; border-radius: 10px; }
  .nav__actions { margin-left: auto; }
  .burger { display: block; }
  .kbd-btn kbd, .nav__cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .eyebrow { font-family: var(--font); font-weight: 500; letter-spacing: 0; font-size: clamp(9px, 3.3vw, 12.5px); margin-bottom: 22px; }
  .container { width: calc(100% - 32px); }
  .bento, .steps { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .card { padding: 26px; min-height: 0; }
  .card__glyph { width: 88px; height: 88px; margin-bottom: 16px; }
  .card--xl .card__glyph { width: 100%; height: auto; min-height: 170px; margin-bottom: 18px; }
  .card--xl .card__glyph svg { width: 170px; }
  .convergence { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .footer__inner { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .stack { height: 340px; }
  .stack__layer { height: 120px; margin-top: -60px; }
}

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