/* ==========================================================================
   ZERO FRICTION — Effortless Software, Frictionless Business
   Static site stylesheet (no build step). Dark, futuristic, brand-gradient.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #0a0711;
  --bg-elev: #110c1c;
  --bg-elev-2: #181127;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f5f3fa;
  --text-2: #cbc5dc;
  --muted: #958eab;

  /* Brand — sampled from the Zero Friction mark */
  --pink: #e36ba9;
  --magenta: #a33794;
  --purple: #872d91;
  --indigo: #3f55a4;
  --blue: #0465b1;
  --sky: #53a0cc;
  --cyan: #75b2ce;

  /* Glow variants, brightened for dark backgrounds */
  --glow-pink: #f27fbd;
  --glow-violet: #a46cf0;
  --glow-blue: #3d8cf5;
  --glow-cyan: #8fd9f7;

  --grad: linear-gradient(120deg, #e36ba9 0%, #a33794 28%, #5a4a9e 50%, #0465b1 74%, #75b2ce 100%);
  --grad-text: linear-gradient(100deg, #f58fc6 0%, #c36fe6 34%, #7f8ff7 66%, #92dbf8 100%);
  --grad-soft: linear-gradient(120deg, rgba(227, 107, 169, 0.18), rgba(63, 85, 164, 0.18) 55%, rgba(117, 178, 206, 0.16));

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;

  --font-head: "Prompt", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Prompt", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
blockquote { text-wrap: balance; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
@media (min-width: 600px) { h1 .gradient-text, h2 .gradient-text, blockquote .gradient-text { white-space: nowrap; } }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(227, 107, 169, 0.45); color: #fff; }

:focus-visible { outline: 2px solid var(--glow-cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Ambient page texture: soft grain + vignette, fixed so it never scrolls */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(135, 45, 145, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(4, 101, 177, 0.12), transparent 60%),
    var(--bg);
}

/* English pages: Latin script needs tighter leading than Thai */
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] .h-display { font-size: clamp(2.5rem, 5.8vw, 4.6rem); line-height: 1.06; letter-spacing: -0.03em; }
html[lang="en"] .h-1 { line-height: 1.12; letter-spacing: -0.025em; }
html[lang="en"] .h-2 { line-height: 1.18; letter-spacing: -0.02em; }
html[lang="en"] .hero__title-sub { line-height: 1.45; letter-spacing: 0; }
html[lang="en"] .statement blockquote { line-height: 1.3; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow-cyan);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-cyan));
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--glow-cyan), transparent); }

.h-display { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; }
.h-1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.22; letter-spacing: -0.02em; }
.h-2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.3; }
.h-3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-2); line-height: 1.8; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.section { position: relative; padding-block: clamp(64px, 8vw, 112px); }
.section + .section { padding-top: 0; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section-head { max-width: 760px; display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1;
  border: 0; cursor: pointer; white-space: nowrap; isolation: isolate;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: transform 0.35s var(--ease), translate 0.45s var(--ease), box-shadow 0.35s var(--ease), background-position 0.6s var(--ease), color 0.2s;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(110deg, #e36ba9, #a33794 30%, #3f55a4 65%, #0465b1 85%, #53a0cc) 0% 50% / 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(227, 107, 169, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(61, 140, 245, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }
.btn--ghost {
  color: var(--text);
  background: linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box, linear-gradient(120deg, rgba(242, 127, 189, 0.6), rgba(143, 217, 247, 0.6)) border-box;
  border: 1px solid transparent;
}
.btn--ghost:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -14px rgba(164, 108, 240, 0.6); }
.btn--sm { --btn-h: 42px; padding: 0 18px; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color 0.3s, gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 12px; border-color: var(--glow-pink); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 7, 17, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px; font-size: 0.98rem; color: var(--text-2);
  font-family: var(--font-head); font-weight: 400; transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--text); background: var(--glass-strong); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 2px; translate: -50% 0;
  border-radius: 2px; background: var(--grad);
}
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Language switcher (TH / EN) */
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass);
}
.lang-switch a {
  display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--text); background: var(--glass-strong); }
.lang-switch a[aria-current] { color: #fff; background: var(--grad); box-shadow: 0 4px 14px -6px rgba(227, 107, 169, 0.7); }
@media (max-width: 960px) { .lang-switch a { height: 36px; } }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--glass); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: rgba(10, 7, 17, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; color: var(--text);
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  transform: translateY(12px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.mobile-nav.is-open a.mobile-nav__link { transform: none; opacity: 1; }
.mobile-nav.is-open a.mobile-nav__link:nth-child(2) { transition-delay: 0.04s; }
.mobile-nav.is-open a.mobile-nav__link:nth-child(3) { transition-delay: 0.08s; }
.mobile-nav.is-open a.mobile-nav__link:nth-child(4) { transition-delay: 0.12s; }
.mobile-nav.is-open a.mobile-nav__link:nth-child(5) { transition-delay: 0.16s; }
.mobile-nav a.mobile-nav__link[aria-current="page"] .mobile-nav__label { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mobile-nav__index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.mobile-nav__foot { margin-top: auto; display: grid; gap: 14px; }
.mobile-nav__foot .btn { width: 100%; }
body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { width: 150px; }
}

/* --------------------------------------------------------------------------
   Backgrounds: grid + aurora
   -------------------------------------------------------------------------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; mix-blend-mode: screen;
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -10%; top: -20%; background: radial-gradient(circle, rgba(227, 107, 169, 0.55), transparent 65%); }
.aurora span:nth-child(2) { width: 50vw; height: 50vw; max-width: 720px; max-height: 720px; right: -15%; top: -10%; background: radial-gradient(circle, rgba(135, 45, 145, 0.6), transparent 65%); animation-duration: 28s; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: 30%; bottom: -30%; background: radial-gradient(circle, rgba(4, 101, 177, 0.6), transparent 65%); animation-duration: 25s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 2%, 0) scale(0.96); }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr 0.88fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__copy { display: grid; gap: 28px; }
.hero__badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-2);
}
.hero__badge b { font-weight: 500; color: var(--text); }
.hero__badge > span:last-child { line-height: 1.5; }
.pulse-dot {
  position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(143, 217, 247, 0.12);
}
.pulse-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow-cyan); box-shadow: 0 0 12px var(--glow-cyan); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--glow-cyan); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero__title .line { display: block; }
.hero__title .quote { font-weight: 300; color: var(--glow-pink); opacity: 0.8; }
.hero__title-sub { display: block; margin-top: 14px; font-size: 0.4em; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--text-2); }
.hero__sub { max-width: 580px; }
.hero__sub strong { font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }


.hero__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero__meta > div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.hero__meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__meta strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--text); line-height: 1.2; white-space: nowrap; }
.hero__meta > div > span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* Hero visual: brand mark in orbit + glass chips + terminal */
.hero__visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; justify-self: center; }
.orb {
  position: absolute; inset: 14%; border-radius: 50%;
  background: conic-gradient(from 200deg, #e36ba9, #a33794, #3f55a4, #0465b1, #75b2ce, #e36ba9);
  filter: blur(60px); opacity: 0.55; animation: spin 18s linear infinite;
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09); }
.ring--1 { inset: 6%; }
.ring--2 { inset: 18%; border-style: dashed; border-color: rgba(143, 217, 247, 0.22); animation: spin 60s linear infinite; }
.ring--3 { inset: 30%; border-color: rgba(242, 127, 189, 0.25); }
.ring__dot { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--glow-cyan); box-shadow: 0 0 16px 2px var(--glow-cyan); }
.ring--1 { animation: spin 24s linear infinite; }
.ring--3 { animation: spin 16s linear infinite reverse; }
.ring--3 .ring__dot { background: var(--glow-pink); box-shadow: 0 0 16px 2px var(--glow-pink); }
@keyframes spin { to { transform: rotate(360deg); } }

.mark {
  position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%;
  filter: drop-shadow(0 30px 60px rgba(135, 45, 145, 0.55)) drop-shadow(0 0 30px rgba(61, 140, 245, 0.35));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.mark3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__visual.has-3d .mark { display: none; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; color: #fff;
  animation: float 6s ease-in-out infinite;
}
.chip i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); }
.chip i .icon { width: 16px; height: 16px; color: #fff; }
.chip small { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.1em; color: var(--text-2); }
.chip--1 { top: 10%; left: -2%; animation-delay: -1s; }
.chip--2 { top: 42%; right: -6%; animation-delay: -3s; }
.chip--3 { bottom: 14%; left: 2%; animation-delay: -5s; }

.terminal {
  position: absolute; right: -2%; bottom: -9%; width: min(270px, 62%);
  border-radius: 14px; border: 1px solid var(--line-strong); overflow: hidden;
  background: rgba(13, 9, 22, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.8; color: var(--text-2);
}
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.terminal__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3348; }
.terminal__bar i:nth-child(1) { background: #f27fbd; }
.terminal__bar i:nth-child(2) { background: #a46cf0; }
.terminal__bar i:nth-child(3) { background: #8fd9f7; }
.terminal__bar span { margin-left: 6px; }
.terminal__body { padding: 10px 14px 12px; }
.terminal__body p { white-space: nowrap; overflow: hidden; opacity: 0; animation: type-in 0.5s var(--ease) forwards; }
.terminal__body p:nth-child(1) { animation-delay: 0.6s; }
.terminal__body p:nth-child(2) { animation-delay: 1.3s; }
.terminal__body p:nth-child(3) { animation-delay: 2s; }
.terminal__body p:nth-child(4) { animation-delay: 2.7s; }
.terminal__body .ok { color: var(--glow-cyan); }
.terminal__body .pr { color: var(--glow-pink); }
.caret { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: var(--glow-cyan); animation: blink 1s steps(1) infinite; }
@keyframes type-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }


@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin-top: 12px; }
}
@media (max-width: 520px) {
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
  .hero__meta > div { padding-right: 12px; margin-right: 12px; }
  .hero__meta strong { font-size: 1.25rem; }
  .hero__meta > div > span { font-size: 0.8rem; }
  .hide-sm { display: none; }
  .chip { font-size: 0.8rem; padding: 8px 12px 8px 8px; gap: 8px; }
  .chip i { width: 24px; height: 24px; border-radius: 8px; }
  .chip--2 { right: -2%; }
  .terminal { display: none; }
  .hero__visual { max-width: 340px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  background: linear-gradient(90deg, rgba(227, 107, 169, 0.05), rgba(4, 101, 177, 0.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee__item { display: inline-flex; align-items: center; gap: 40px; font-family: var(--font-head); font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: 0.08em; color: var(--text); white-space: nowrap; }
.marquee__item .icon { width: 18px; height: 18px; color: var(--glow-pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Cards (glass, gradient border, spotlight)
   -------------------------------------------------------------------------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(164, 108, 240, 0.16), transparent 45%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box, var(--grad) border-box;
  border: 1px solid transparent; color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(164, 108, 240, 0.6);
}
.icon-tile .icon { width: 24px; height: 24px; color: var(--glow-cyan); }
.icon-tile--pink .icon { color: var(--glow-pink); }
.icon-tile--violet .icon { color: var(--glow-violet); }
.icon-tile--blue .icon { color: var(--glow-blue); }

/* Feature grid (4 value props) */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { display: grid; gap: 18px; align-content: start; }
.feature h3 { font-size: 1.2rem; }
.feature p { font-size: 0.96rem; color: var(--muted); line-height: 1.7; }
.feature__no { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
@media (max-width: 1024px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Split (image + copy)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__copy { display: grid; gap: 22px; align-content: start; }
.split__media { position: relative; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2;
  border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(135, 45, 145, 0.6);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.08); }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 7, 17, 0.7)); }
.media-glow { position: absolute; inset: 8% -6% -6% 8%; border-radius: var(--radius-lg); background: var(--grad); filter: blur(50px); opacity: 0.35; z-index: -1; }

.stat-float {
  position: absolute; left: -24px; bottom: 28px; z-index: 2; padding: 18px 22px; border-radius: 18px;
  background: rgba(17, 12, 28, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); display: flex; align-items: center; gap: 16px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}
.stat-float strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; font-weight: 600; }
.stat-float > span { font-size: 0.9rem; color: var(--text-2); line-height: 1.45; }

.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; color: var(--text); font-weight: 500; }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); margin-top: 1px; }
.checklist .tick .icon { width: 15px; height: 15px; color: #fff; stroke-width: 2.4; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stat-float { left: 16px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   Works / products
   -------------------------------------------------------------------------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  --accent: 164, 108, 240;
  display: flex; flex-direction: column; padding: 0; min-height: 100%;
}
.work::before { background: radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--accent), 0.2), transparent 45%); }
.work:hover { transform: translateY(-6px); border-color: rgba(var(--accent), 0.45); }
.work--villix { --accent: 56, 214, 170; }
.work--sumo { --accent: 239, 68, 68; }
.work--fleetflow { --accent: 61, 140, 245; }
.work__media {
  position: relative; aspect-ratio: 829 / 538; overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(var(--accent), 0.28), transparent 70%),
    linear-gradient(180deg, #17112a, #0d0918);
  border-bottom: 1px solid var(--line);
}
.work__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); }
.work__tag {
  position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  background: rgba(10, 7, 17, 0.6); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.work__body { display: grid; gap: 12px; padding: 26px 28px 28px; flex: 1; align-content: start; }
.work__body h3 { font-size: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work__body p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
.work__link { margin-top: auto; padding-top: 12px; }
.work__link a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 0.97rem; }
.work__link a .icon { transition: transform 0.35s var(--ease); }
.work__link a:hover .icon { transform: translate(3px, -3px); }
.work__link a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
@media (max-width: 1024px) { .works { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .works { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Process timeline
   -------------------------------------------------------------------------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process::before, .process::after {
  content: ""; position: absolute; left: 37px; right: calc((100% - 66px) / 4 - 37px); top: 37px; height: 1px; z-index: 0;
}
.process::before { background: var(--line-strong); }
.process::after {
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s var(--ease) 0.2s; box-shadow: 0 0 12px rgba(164, 108, 240, 0.8);
}
.process.is-visible::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; display: grid; gap: 16px; align-content: start; }
.step__node {
  width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; position: relative;
  background: linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box, var(--grad) border-box; border: 1px solid transparent;
  box-shadow: 0 0 0 8px var(--bg), 0 18px 40px -16px rgba(164, 108, 240, 0.7);
}
.step__node .icon { width: 30px; height: 30px; color: var(--text); }
.step__node b {
  position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: #fff; background: var(--grad);
}
.step__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-top: 8px; }
.step h3 { font-family: "Prompt", sans-serif; font-size: 1.45rem; }
.step p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step { grid-template-columns: 74px 1fr; column-gap: 20px; }
  .step__node { grid-row: span 3; }
  .step__label { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative; border-radius: 32px; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); overflow: hidden; isolation: isolate;
  background: linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box, var(--grad) border-box; border: 1px solid transparent;
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(227, 107, 169, 0.25), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(4, 101, 177, 0.35), transparent 60%);
}
.cta .bg-grid { -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 20%, transparent 70%); }
.cta__copy { position: relative; display: grid; gap: 18px; }
.cta__actions { position: relative; display: grid; gap: 12px; min-width: 260px; }
.cta__actions .btn { width: 100%; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } .cta__actions { min-width: 0; } }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: 0; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__copy { display: grid; gap: 24px; max-width: 760px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--glow-cyan); }
.page-hero__art { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.page-hero__art img { position: relative; z-index: 1; filter: drop-shadow(0 40px 60px rgba(135, 45, 145, 0.5)); animation: float 8s ease-in-out infinite; }
.page-hero__art::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: conic-gradient(from 90deg, #e36ba9, #872d91, #0465b1, #75b2ce, #e36ba9); filter: blur(70px); opacity: 0.45; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { max-width: 360px; }
}

/* --------------------------------------------------------------------------
   About: fact sheet + values
   -------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--glass); }
.facts dt, .facts dd { margin: 0; }
.fact { padding: clamp(22px, 3vw, 34px); display: grid; gap: 8px; border-right: 1px solid var(--line); align-content: start; }
.fact:last-child { border-right: 0; }
.fact__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact__value { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; color: var(--text); line-height: 1.25; }
.fact__note { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { display: grid; gap: 18px; align-content: start; padding: clamp(28px, 3.4vw, 40px); }
.value h3 { font-size: 1.45rem; }
.value p { color: var(--muted); line-height: 1.8; }
.value__en { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--glow-cyan); text-transform: uppercase; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

.statement { position: relative; max-width: 980px; margin-inline: auto; text-align: center; display: grid; gap: 24px; }
.statement blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.45; font-weight: 500; color: var(--text); }
.statement blockquote .gradient-text { font-weight: 600; }

/* Capability list (about page) */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cap { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; }
.cap .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.cap .icon-tile .icon { width: 20px; height: 20px; }
.cap span { color: var(--text); font-weight: 500; line-height: 1.45; }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* Pillars (service page) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { display: grid; gap: 16px; align-content: start; }
.pillar__big { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: 1; }
.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--muted); line-height: 1.8; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.principle__no { font-family: var(--font-mono); font-size: 0.85rem; color: var(--glow-pink); padding-top: 4px; }
.principle p { color: var(--text-2); line-height: 1.8; }
.principle strong { color: var(--text); font-weight: 600; }
@media (max-width: 520px) { .principle { grid-template-columns: 44px 1fr; gap: 14px; } }

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; }
.perk .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.perk .icon-tile .icon { width: 20px; height: 20px; }
.perk h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.perk p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-top: 4px; }

.jobs { display: grid; gap: 12px; }
.job {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 22px 26px;
  border-radius: 18px; transition: transform 0.4s var(--ease), border-color 0.3s;
}
.job:hover { transform: translateX(6px); }
.job__no { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.job h3 { font-size: 1.2rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; color: var(--text-2); border: 1px solid var(--line-strong); background: var(--glass); }
.pill--accent { color: var(--glow-pink); border-color: rgba(242, 127, 189, 0.35); background: rgba(242, 127, 189, 0.08); }
.job .btn .icon { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .job { grid-template-columns: 1fr; gap: 12px; }
  .job__no { display: none; }
  .job .btn { justify-self: start; }
}
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; background: rgba(143, 217, 247, 0.06); border: 1px dashed rgba(143, 217, 247, 0.3); color: var(--text-2); font-size: 0.95rem; }
.note .icon { color: var(--glow-cyan); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { display: grid; gap: 14px; align-content: start; }
.contact-card__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; color: var(--text); word-break: break-word; }
.contact-card a.contact-card__value:hover { color: var(--glow-cyan); }
.contact-card .copy-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.contact-card .copy-btn:hover { color: var(--text); border-color: var(--glow-cyan); }
.contact-card .copy-btn .icon { width: 14px; height: 14px; }
.contact-card .copy-btn.is-copied { color: var(--glow-cyan); border-color: var(--glow-cyan); }
@media (max-width: 1024px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; color: var(--text-2); font-weight: 500; }
.field label .req { color: var(--glow-pink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 1rem; line-height: 1.5;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f6886; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--glow-violet); background: rgba(164, 108, 240, 0.06);
  box-shadow: 0 0 0 4px rgba(164, 108, 240, 0.15);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbc5dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--bg-elev); color: var(--text); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff7a9a; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__hint { font-size: 0.86rem; color: var(--muted); max-width: 420px; }
.form__status { font-size: 0.92rem; color: var(--glow-cyan); min-height: 1.4em; }

.map-card { padding: 0; display: flex; flex-direction: column; }
.map-card iframe { width: 100%; flex: 1; min-height: 320px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.88) hue-rotate(200deg) saturate(1.6) brightness(0.95); }
.map-card__info { padding: 24px 26px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.map-card__info p { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.map-card__info .icon { color: var(--glow-pink); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 88px) 0 32px; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(720px, 80%); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--glow-pink), var(--glow-violet), var(--glow-cyan), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 380px; }
.footer-brand img { width: 180px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; }
.footer-tagline { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-2); }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.footer-contact .icon { margin-top: 5px; color: var(--glow-cyan); width: 18px; height: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--glass); transition: border-color 0.3s, transform 0.3s var(--ease); }
.socials a:hover { border-color: var(--glow-pink); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.86rem; color: var(--muted); }
.footer-word { display: block; width: 100%; height: auto; margin-top: 40px; user-select: none; pointer-events: none; }
.footer-word text { font-family: var(--font-head); font-weight: 700; font-size: 132px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; position: relative; overflow: hidden; isolation: isolate; }
.notfound__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 22vw, 14rem); line-height: 1; letter-spacing: -0.04em; }
.notfound__inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; }

/* --------------------------------------------------------------------------
   Immersive layer (only when motion is allowed: html.motion is set by main.js)
   -------------------------------------------------------------------------- */

/* Cursor follower ring (mouse only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.35s var(--ease), background-color 0.35s, border-color 0.35s, opacity 0.25s;
}
.cursor.is-link::before { transform: scale(1.75); background-color: rgba(164, 108, 240, 0.12); border-color: rgba(242, 127, 189, 0.75); }
.cursor.is-text::before { transform: scale(0.4); opacity: 0; }
.cursor.is-down::before { transform: scale(0.8); }
.cursor.is-link.is-down::before { transform: scale(1.5); }

/* Kinetic hero headline: lines rise in one after another, out of a blur */
.js .hero__title [data-reveal] {
  transform: translateY(45%); filter: blur(12px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .hero__title [data-reveal].is-visible { transform: none; filter: blur(0); }

/* Hero parallax while scrolling away (--hp: 0 → 1, set by main.js) */
.motion .hero__copy { translate: 0 calc(var(--hp, 0) * -60px); opacity: calc(1 - var(--hp, 0) * 0.9); }
.motion .hero__visual { translate: 0 calc(var(--hp, 0) * 110px); }

/* Statement that lights up word by word as you scroll (--sp: 0 → 1) */
.scrub { position: relative; }
.scrub__sticky { position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 150px); }
.motion .scrub { height: 210vh; }
.motion .scrub__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 0; display: flex; align-items: center; }
.scrub .container { position: relative; z-index: 1; display: grid; gap: 28px; }
.scrub__text {
  max-width: 1080px; font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.32; font-weight: 600; letter-spacing: -0.02em;
}
html[lang="en"] .scrub__text { line-height: 1.12; letter-spacing: -0.03em; }
.scrub__text .w { transition: opacity 0.4s var(--ease); }
.motion .scrub__text .w { opacity: 0.13; }
.motion .scrub__text .w.is-lit { opacity: 1; }
.scrub__text .g { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.scrub__bg {
  position: absolute; left: 0; top: 50%; z-index: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 22vw, 22rem); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  translate: calc(5% - var(--sp, 0) * 45%) -50%;
}

/* Process pinned on desktop: the rail fills and steps light up as you scroll (--p: 0 → 1) */
@media (min-width: 961px) {
  .motion .process-pin { height: 240vh; padding-block: 0; }
  .motion .process-pin__sticky {
    position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--header-h);
  }
  .motion .process-pin__sticky > .container { width: 100%; }
  .process-pin.is-pinned .process::after { transition: none; transform: scaleX(var(--p, 0)); }
  .process-pin.is-pinned .step > * { transition: opacity 0.5s var(--ease); }
  .process-pin.is-pinned .step:not(.is-on) > * { opacity: 0.28; }
  .process-pin.is-pinned .step__node { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
  .process-pin.is-pinned .step.is-current .step__node {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px var(--bg), 0 0 46px 4px rgba(164, 108, 240, 0.65);
  }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .terminal__body p { opacity: 1; }
  .marquee__track { animation: none; }
  .js .hero__title [data-reveal] { transform: none; filter: none; }
}
