/* =========================================================
   Embark Consulting Group: dark edition
   ========================================================= */
:root {
  --bg: #050608;
  --bg-2: #0a0c10;
  --panel: #0b0d12;
  --ink: #e8ecf1;
  --muted: #8b93a1;
  --dim: #4b525e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ice: #8fe3ff;
  --ice-dim: rgba(143, 227, 255, 0.14);
  --signal: #ff4b3e;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ice); letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.svg-mono { font-family: var(--mono); }
.wrap { width: min(1240px, 100% - 40px); margin: 0 auto; }
.center { text-align: center; justify-content: center; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--ice); color: var(--bg); }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; background: #000; pointer-events: none; }
.intro.out { animation: introFlash .55s steps(1, end) forwards; }
@keyframes introFlash {
  0%   { opacity: 1; }
  18%  { opacity: .15; }
  36%  { opacity: .9; }
  54%  { opacity: .05; }
  72%  { opacity: .5; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .intro.out { animation: none; opacity: 0; transition: opacity .3s; } }

/* ---------- Ambient ---------- */
#dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(143, 227, 255, .5); border-radius: 50%; transition: width .25s, height .25s, margin .25s, border-color .25s, opacity .25s; opacity: 0; }
.cursor span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--ice); }
.cursor.on { opacity: 1; }
.cursor.hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--ice); }
@media (pointer: fine) { body, a, button { cursor: none; } input, textarea, select { cursor: text; } }

/* ---------- Nav ---------- */
:root { --banner-h: 0px; }
body.has-banner { --banner-h: 40px; }
.banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 40px;
  display: none; align-items: center; justify-content: center; padding: 0 48px;
  background: linear-gradient(90deg, #0b1820, #10232d 50%, #0b1820); border-bottom: 1px solid rgba(143, 227, 255, .25);
  color: var(--ink);
}
body.has-banner .banner { display: flex; }
.banner p { display: flex; align-items: center; gap: 10px; font-size: .66rem; letter-spacing: .16em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); flex-shrink: 0; animation: rec 1.6s steps(1) infinite; }
.banner-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); font-size: 1.3rem; line-height: 1; transition: color .2s, background .2s;
}
.banner-close:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.nav {
  position: fixed; inset: var(--banner-h) 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px max(20px, calc((100% - 1240px) / 2));
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 6, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 16px; padding-bottom: 16px; border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.logo-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: #0f1218; border: 1px solid var(--line-2); overflow: hidden; }
.logo-mark i { position: absolute; left: 6px; right: 6px; top: 13px; height: 3px; border-radius: 2px; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: logoScan 3.5s ease-in-out infinite; }
@keyframes logoScan { 0%, 48%, 52%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.1); opacity: .4; } }
.logo-img { width: 58px; height: 58px; border-radius: 50%; object-fit: contain; padding: 2px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 0 24px -4px rgba(143, 227, 255, .35); transition: transform .5s var(--ease); }
.logo:hover .logo-img { transform: rotate(-8deg) scale(1.05); }
.logo-word { font-weight: 500; letter-spacing: -0.01em; font-size: 1.55rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 38px; font-size: 1.15rem; color: var(--ink); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--ice); }
.nav-cta { color: var(--ink) !important; padding: 11px 24px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .3s, background .3s !important; }
.nav-cta:hover { border-color: var(--ice); background: var(--ice-dim); }
.nav-toggle { display: none; position: relative; z-index: 2; background: none; border: 0; width: 40px; height: 40px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; margin: 6px auto; background: var(--ink); transition: transform .3s; }
.nav-toggle.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; overflow: hidden;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--ice);
  background: var(--ice); color: var(--bg); font: 500 .95rem var(--sans);
  transition: color .4s var(--ease), box-shadow .4s;
  isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: var(--ice); box-shadow: 0 0 40px -6px rgba(143, 227, 255, .5); }
.btn:hover::before { transform: none; }
.btn b { font-weight: 400; transition: transform .3s; }
.btn:hover b { transform: translateX(4px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--bg); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(140px + var(--banner-h)) 0 90px; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(143, 227, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 227, 255, .09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(320px circle at var(--mx, 70%) var(--my, 40%), #000 0%, transparent 100%);
  mask-image: radial-gradient(320px circle at var(--mx, 70%) var(--my, 40%), #000 0%, transparent 100%);
}
.fog { position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.f1 { width: 70vw; height: 50vh; left: -20vw; bottom: -20vh; background: rgba(60, 80, 110, .25); animation: drift 22s ease-in-out infinite alternate; }
.f2 { width: 50vw; height: 50vh; right: -10vw; top: -10vh; background: rgba(143, 227, 255, .08); animation: drift 28s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vw, -4vh) scale(1.15); } }
.light-cone {
  position: absolute; top: -10%; right: 12%; width: 40vw; height: 120%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(143, 227, 255, .10), transparent 70%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(18px); animation: flicker 7s infinite;
}
@keyframes flicker { 0%, 47%, 49%, 52%, 100% { opacity: 1; } 48% { opacity: .5; } 51% { opacity: .7; } }

.hero-inner { position: relative; z-index: 2; width: min(1240px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.hero-title { font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; }
.hero-title em { font-size: 1.08em; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: inline-block; white-space: nowrap; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .12s; }
.ready .ln > span { transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.hero-copy > *:not(.hero-title) { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.ready .hero-copy > * { opacity: 1; transform: none; }

.hero-bust { position: relative; width: 100%; max-width: 520px; justify-self: center; opacity: 0; transform: scale(.96); transition: opacity 1.6s ease .3s, transform 1.6s var(--ease) .3s; }
.ready .hero-bust { opacity: 1; transform: none; }
.bust-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .8)); }
.bust-head { transition: transform .5s var(--ease); transform-box: view-box; transform-origin: 260px 400px; }
.visor-scan { animation: vscan 4.5s ease-in-out infinite; }
@keyframes vscan { 0%, 70% { transform: translateX(-30px); opacity: 0; } 72% { opacity: .7; } 100% { transform: translateX(140px); opacity: 0; } }
.ear-led { animation: rec 2.4s steps(1) infinite; }
.grille rect { fill: #2a2f38; transition: fill .1s; }
.hero-bust.speaking .grille rect { fill: var(--ice); }
.hero-bust.speaking .visor-base { opacity: .8; }
.chest-light { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.bust-caption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; color: var(--muted); min-height: 1.6em; text-align: center; font-size: .64rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 2px; height: 3px; background: var(--ice); border-radius: 1px; transition: height .08s; }

.hero-foot { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); font-size: .6rem; }
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--ice), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding: clamp(100px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.label { color: var(--ice); margin-bottom: 24px; opacity: .85; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.head-row > div { width: 100%; }
@media (min-width: 721px) { .fit { white-space: nowrap; } }
.side-note { max-width: 360px; color: var(--muted); font-size: 1rem; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* manifesto */
.manifesto-text { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.22; letter-spacing: -0.025em; font-weight: 300; max-width: 1100px; }
.manifesto-text .w { color: #262a31; transition: color .4s; }
.manifesto-text .w.lit { color: var(--ink); }
.manifesto-text .w.hl.lit { color: var(--ice); font-family: var(--serif); font-style: italic; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--line); }
.fact { padding: 28px 28px 0 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact span { color: var(--ice); display: block; margin-bottom: 12px; }
.fact p { color: var(--muted); max-width: 280px; }

/* dialogue */
.stage {
  position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 110%, rgba(143, 227, 255, .09), transparent 60%), var(--panel);
  padding: 100px 4% 0;
}
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .06), transparent 50%); pointer-events: none; }
.stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(rgba(143, 227, 255, .07) 1px, transparent 1px) 0 0 / 100% 18px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
#talkSvg { position: relative; display: block; width: 100%; max-width: 520px; max-height: 62vh; margin: 0 auto; height: auto; overflow: visible; }
.bubble {
  position: absolute; top: 26px; z-index: 3; max-width: min(340px, 42%);
  padding: 14px 18px; border-radius: 14px; font-size: .98rem; line-height: 1.45;
  background: rgba(15, 18, 24, .92); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.bubble.show { opacity: 1; transform: none; }
.bubble-a { left: 6%; border-bottom-left-radius: 4px; }
.bubble-b { right: 6%; border-bottom-right-radius: 4px; border-color: rgba(143, 227, 255, .4); }
.bubble .who { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 4px; }
.bubble-b .who { color: var(--ice); }
.tag { position: absolute; bottom: 18px; color: var(--dim); font-size: .6rem; }
.tag-a { left: 5%; } .tag-b { right: 5%; color: rgba(143, 227, 255, .6); }
.rig .visor { opacity: .5; transition: opacity .15s; }
.rig.speaking .visor { opacity: 1; }
.rig .chestled { opacity: .35; transition: opacity .2s; }
.rig.speaking .chestled { opacity: 1; }
.transcript { margin-top: 18px; min-height: 7.6em; color: var(--dim); font-size: .66rem; line-height: 1.9; text-transform: none; letter-spacing: .05em; }
.transcript div { animation: tIn .4s var(--ease); }
.transcript div:last-child { color: var(--muted); }
.transcript b { color: var(--ice); font-weight: 400; }
@keyframes tIn { from { opacity: 0; transform: translateY(6px); } }

/* lab */
.cell { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 40% 100%, rgba(143, 227, 255, .07), transparent 60%), var(--panel); }
.cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; transition: box-shadow .4s; }
.cell.manual::after { box-shadow: inset 0 0 0 1px rgba(143, 227, 255, .5), inset 0 0 80px rgba(143, 227, 255, .06); }
#armSvg { display: block; width: 100%; height: auto; max-height: 74vh; margin: 0 auto; touch-action: pan-y; overflow: visible; }
.cell-hud { position: absolute; top: 20px; left: 22px; z-index: 2; display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: .6rem; }
.cell-hud div { display: flex; gap: 10px; }
.cell-hud b { color: var(--ink); font-weight: 400; min-width: 70px; display: inline-block; }
.cell-hud span { color: var(--dim); }
.cell.manual #hudMode { color: var(--signal); }
.cell-hint { position: absolute; right: 22px; top: 20px; color: var(--muted); font-size: .6rem; transition: opacity .3s; }
.cell.manual .cell-hint { opacity: 0; }
.blink { animation: rec 1.2s steps(1) infinite; }
.flow { animation: flow 2.2s linear infinite; }
@keyframes flow { from { transform: translateX(0); opacity: 0; } 20% { opacity: .7; } to { transform: translateX(70px); opacity: 0; } }

/* practice */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 70px 1fr 1.2fr 40px; gap: 24px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(143, 227, 255, .08), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.row:hover::before { transform: none; }
.row .n { color: var(--dim); transition: color .3s; }
.row h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 400; transition: transform .5s var(--ease); }
.row p { color: var(--muted); }
.row .arrow { color: var(--dim); font-size: 1.3rem; transition: transform .4s var(--ease), color .3s; }
.row:hover .n, .row:hover .arrow { color: var(--ice); }
.row:hover h3 { transform: translateX(10px); }
.row:hover .arrow { transform: rotate(45deg); }

/* process */
.walk-track { position: relative; margin-bottom: 34px; }
#walkSvg { display: block; width: 100%; height: clamp(200px, 30vw, 340px); overflow: visible; }
.ticks line { stroke: rgba(143, 227, 255, .35); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 24px 0 0; opacity: .3; transition: opacity .6s; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step.active { opacity: 1; }
.step span { color: var(--ice); display: block; margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; margin-bottom: 18px;
  background: radial-gradient(ellipse at 50% 30%, #1a1e26, #07080b 75%); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.portrait span { font-family: var(--serif); font-style: italic; font-size: 3.4rem; color: #2e343e; transition: color .5s; }
.portrait i { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(to bottom, transparent, rgba(143, 227, 255, .14), transparent); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .portrait img { transform: scale(1.03); }
.member:hover .portrait span { color: var(--ice); }
.member:hover .portrait i { animation: pscan 1.4s var(--ease); }
@keyframes pscan { to { top: 100%; } }
.member h3 { margin-bottom: 6px; }
.member p { color: var(--muted); font-size: .6rem; }

/* join */
/* recruitment timeline */
.tl { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); text-align: center; }
.tl li { position: relative; padding: 0 12px; }
.tl li:not(:last-child)::before, .tl li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: calc(50% + 32px); width: calc(100% - 64px); height: 2px; border-radius: 2px;
  background: var(--line-2);
}
.tl li:not(:last-child)::after {
  background: linear-gradient(90deg, var(--ice), #fff); box-shadow: 0 0 12px rgba(143, 227, 255, .7);
  transform: scaleX(0); transform-origin: left; transition: transform .6s linear calc(var(--i) * .9s + .3s);
}
.tl.run li::after { transform: none; }
.tl-node {
  position: relative; z-index: 1; width: 48px; height: 48px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; letter-spacing: .05em; color: var(--dim);
  background: var(--panel); border: 1px solid var(--line-2);
  transition: color .5s, border-color .5s, background .5s, box-shadow .5s; transition-delay: calc(var(--i) * .9s);
}
.tl.run .tl-node { color: var(--ice); border-color: var(--ice); box-shadow: 0 0 0 6px rgba(143, 227, 255, .08), 0 0 24px rgba(143, 227, 255, .35); }
.tl.run li:last-child .tl-node { color: var(--bg); background: var(--ice); box-shadow: 0 0 0 8px rgba(143, 227, 255, .12), 0 0 40px rgba(143, 227, 255, .6); }
.tl-body { opacity: .3; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(var(--i) * .9s); }
.tl.run .tl-body { opacity: 1; transform: none; }
.tl-tag { color: var(--ice); font-size: .58rem; margin-bottom: 10px; }
.tl-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.tl-body p:last-child { color: var(--muted); font-size: .9rem; line-height: 1.55; }
@media (max-width: 960px) {
  .tl { grid-template-columns: minmax(0, 1fr); text-align: left; max-width: 540px; margin: 0 0 48px; }
  .tl li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 22px; padding: 0 0 40px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl-node { margin: 0; }
  .tl-body { padding-top: 4px; }
  .tl li:not(:last-child)::before, .tl li:not(:last-child)::after { top: 56px; left: 23px; width: 2px; height: calc(100% - 64px); }
  .tl li:not(:last-child)::after { background: linear-gradient(var(--ice), #fff); transform: scaleY(0); transform-origin: top; }
  .tl.run li:not(:last-child)::after { transform: none; }
}

/* footer */
.footer { position: relative; z-index: 2; padding: clamp(100px, 12vw, 160px) 0 34px; border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 64px; }
.mail { display: inline-block; color: var(--ice); border-bottom: 1px solid rgba(143, 227, 255, .3); padding-bottom: 4px; }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; }
.form .full { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
.form label { display: grid; gap: 8px; }
.form label span { color: var(--dim); font-size: .6rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 10px 0; outline: none; border-radius: 0; transition: border-color .3s;
}
.form select option { background: var(--bg-2); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ice); }
.form .btn[disabled] { opacity: .5; pointer-events: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .6rem; }
.to-top { transition: color .25s; }
.to-top:hover { color: var(--ice); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 160%); padding: 14px 22px; border-radius: 999px; background: var(--panel); border: 1px solid var(--ice); color: var(--ice); transition: transform .5s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: min(10vw, 5rem); }
  .hero-foot { display: none; }
  .hero-bust { max-width: 340px; order: -1; margin-bottom: -10px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .row { grid-template-columns: 50px 1fr 30px; }
  .row p { grid-column: 2 / 3; }
  .row .arrow { grid-row: 1; grid-column: 3; }
  .light-cone { right: -10%; width: 80vw; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 26px; font-size: 1.05rem; }
  .logo-word { font-size: 1.35rem; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    font-size: 1.6rem; background: rgba(5, 6, 8, .97); opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 720px) {
  .banner { padding: 0 40px 0 16px; }
  .banner p { font-size: .58rem; letter-spacing: .08em; gap: 8px; }
  .logo-img { width: 46px; height: 46px; }
  .logo-word { font-size: 1.15rem; }
  .facts { grid-template-columns: 1fr; margin-top: 60px; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stage { padding-top: 170px; }
  .bubble { max-width: 70%; font-size: .85rem; padding: 10px 14px; }
  .bubble-a { left: 4%; top: 16px; }
  .bubble-b { right: 4%; top: 86px; }
  .tag { display: none; }
  .cell-hud { grid-template-columns: repeat(3, auto); left: 14px; top: 14px; gap: 2px 10px; }
  .cell-hud b { min-width: 0; }
  .cell-hint { display: none; }
  #armSvg { margin-top: 50px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-title { font-size: 11vw; }
}

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