/* =========================================================
   SILENTGAIN — Futuristic luxury agency
   ========================================================= */

:root {
  --bg: #030304;
  --bg-2: #08080a;
  --surface: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f3f2ef;
  --muted: #8c8b90;
  --dim: #55555a;
  --ice: #bfe6ff;
  --ok: #7dffc4;
  --chrome: linear-gradient(100deg, #6f6f74 0%, #ffffff 22%, #a9a9ad 38%, #f7f7f5 52%, #77777c 70%, #ffffff 86%, #9a9a9f 100%);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.chrome-text {
  background: var(--chrome);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chrome 8s linear infinite;
}
@keyframes chrome { to { background-position: -200% 0; } }

.ok { color: var(--ok); font-weight: 400; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center;
}
.loader__inner { width: min(360px, 80vw); display: grid; gap: 18px; }
.loader__emblem { position: relative; width: 120px; margin: 0 auto 10px; overflow: hidden; border-radius: 50%; }
.loader__emblem img { mix-blend-mode: screen; opacity: 0; transform: scale(0.85); filter: blur(8px); transition: all 1.2s var(--ease); }
.loader.is-ready .loader__emblem img { opacity: 1; transform: none; filter: none; }
.loader__scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 20px #fff; animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.loader__meta { display: flex; justify-content: space-between; color: var(--muted); }
.loader__count { color: var(--fg); }
.loader__bar { height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--chrome); box-shadow: 0 0 12px #fff; }
.loader__log { color: var(--dim); font-size: 10px; min-height: 1em; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 150; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate3d(-100px, -100px, 0); }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.6);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
}
.cursor__label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; background: #fff; border-color: #fff; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } input, textarea, select { cursor: text; } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 120; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--chrome); box-shadow: 0 0 10px rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px; border-radius: 100px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--chrome { color: #050505; background: var(--chrome); background-size: 220% 100%; box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 40px -10px rgba(255,255,255,.35); animation: chrome 6s linear infinite; }
.btn--chrome::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--chrome:hover::after { transform: translateX(120%); }
.btn--chrome:hover { box-shadow: 0 0 0 1px #fff inset, 0 16px 60px -10px rgba(255,255,255,.55); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); backdrop-filter: blur(10px); background: rgba(255,255,255,.02); }
.btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn--ghost:hover { color: #000; }
.btn--ghost:hover::before { transform: none; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13px; }
.btn--wide { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: padding .5s var(--ease), background .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(3,3,4,.6); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 40px; height: 40px; mix-blend-mode: screen; border-radius: 50%; }
.nav__name { font-family: var(--serif); font-size: 20px; letter-spacing: 0.28em; font-weight: 400; }
.nav__name b { font-weight: 400; background: var(--chrome); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chrome 8s linear infinite; }
.nav__links { display: flex; gap: 38px; font-size: 13px; letter-spacing: 0.04em; }
.nav__links a { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.nav__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(3,3,4,.96); backdrop-filter: blur(20px);
  display: grid; place-items: center; clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .9s var(--ease); pointer-events: none;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.menu nav { display: grid; gap: 8px; text-align: center; }
.menu a { font-family: var(--serif); font-size: clamp(42px, 11vw, 72px); font-weight: 300; line-height: 1.1; display: flex; align-items: baseline; gap: 14px; justify-content: center; }
.menu a small { color: var(--dim); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: 140px 0 70px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; z-index: 1; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35) 30%, rgba(255,255,255,.35) 70%, transparent); opacity: .35; }
.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(3,3,4,.65) 70%, var(--bg) 100%), linear-gradient(to top, var(--bg) 0%, transparent 35%); }
.hero__hud { position: absolute; top: 96px; z-index: 2; display: grid; gap: 6px; color: var(--dim); font-size: 10px; }
.hud-tl { left: var(--pad); }
.hud-tr { right: var(--pad); text-align: right; }
.hero__content { position: relative; z-index: 3; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 26px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(58px, 11.5vw, 196px); line-height: 0.88; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.12em; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__title em { font-style: italic; }
.hero__title .line:nth-child(2) { padding-left: 1.2em; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero__lead { max-width: 440px; color: var(--muted); font-size: 16px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--dim); font-size: 9px; }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(#fff, transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* glitch */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; opacity: 0; }
.glitch.is-glitching::before { opacity: .8; transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); text-shadow: 2px 0 var(--ice); }
.glitch.is-glitching::after { opacity: .8; transform: translate(3px, 0); clip-path: inset(60% 0 8% 0); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 28px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee span { font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); font-weight: 300; font-style: italic; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); transition: color .4s; }
.marquee span:hover { color: #fff; -webkit-text-stroke-color: #fff; }
.marquee b { font-size: 18px; color: var(--muted); font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections common ---------- */
section { position: relative; }
.section-tag { display: flex; gap: 14px; color: var(--muted); margin-bottom: 28px; }
.section-tag span { color: var(--fg); }
.section-title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.95; letter-spacing: -0.03em; }
.section-title em { font-style: italic; }
.section-sub { color: var(--muted); max-width: 520px; font-size: 16px; margin-top: 28px; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: 80px; }
.section-head .section-tag { grid-column: 1 / -1; margin-bottom: 0; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(120px, 18vw, 240px) 0; }
.manifesto__text { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.12; letter-spacing: -0.015em; max-width: 1200px; }
.manifesto__text .mw { opacity: 0.12; transition: opacity .2s linear; }
.manifesto__sign { display: flex; align-items: center; gap: 16px; margin-top: 56px; color: var(--muted); }
.manifesto__sign img { width: 48px; mix-blend-mode: screen; }

/* ---------- Stats ---------- */
.stats { padding: 0 0 clamp(100px, 14vw, 180px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 0 0; display: grid; gap: 14px; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(56px, 7vw, 110px); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.stat__num small { font-size: 0.45em; color: var(--muted); margin-left: 4px; }
.stat__label { color: var(--muted); }

/* ---------- Services ---------- */
.services { padding: clamp(80px, 10vw, 140px) 0; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--bg); padding: 40px 36px 36px; min-height: 340px;
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: background .5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(191,230,255,.10), transparent 50%);
  mix-blend-mode: screen;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.card__idx { color: var(--dim); }
.card__icon { width: 54px; height: 54px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: transform .8s var(--ease), border-color .5s, background .5s; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.2; }
.card:hover .card__icon { transform: rotate(-12deg) scale(1.08); border-color: #fff; background: rgba(255,255,255,.06); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 60px 0 14px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.card__tags span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 5px 10px; transition: border-color .4s, color .4s; }
.card:hover .card__tags span { border-color: var(--line-2); color: var(--fg); }
.card__line { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--chrome); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.card:hover .card__line { transform: scaleX(1); }

/* ---------- Process ---------- */
.process { padding: clamp(80px, 10vw, 120px) 0; overflow: hidden; }
.process__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.process__head { margin-bottom: 64px; }
.process__track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.step {
  position: relative; width: min(440px, 80vw); min-height: 440px; padding: 40px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,0) 50%); display: flex; flex-direction: column; overflow: hidden;
}
.step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.step__num { position: absolute; right: 24px; top: 4px; font-family: var(--serif); font-size: 160px; font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); }
.step__icon { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; margin-bottom: auto; }
.step__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.2; }
.step h3 { font-family: var(--serif); font-size: 44px; font-weight: 300; margin: 100px 0 14px; }
.step p { color: var(--muted); font-size: 15px; }
.step__meta { margin-top: 26px; color: var(--dim); font-size: 10px; }
.process__bar { margin: 56px var(--pad) 0; height: 1px; background: var(--line); }
.process__bar span { display: block; height: 100%; background: var(--chrome); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px rgba(255,255,255,.5); }

/* ---------- Oracle ---------- */
.oracle { padding: clamp(100px, 12vw, 180px) 0; }
.oracle__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.oracle__form { margin-top: 48px; display: grid; gap: 34px; }
fieldset { border: 0; display: grid; gap: 14px; }
legend { color: var(--muted); margin-bottom: 14px; display: flex; justify-content: space-between; width: 100%; }
legend output { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13.5px; color: var(--muted); transition: all .4s var(--ease); }
.chip:hover { color: var(--fg); border-color: rgba(255,255,255,.4); }
.chip.is-active { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.25); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: var(--line-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--chrome); box-shadow: 0 0 18px rgba(255,255,255,.6); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.6); }
.range-labels { display: flex; justify-content: space-between; color: var(--dim); font-size: 9.5px; }

.oracle__terminal {
  position: sticky; top: 110px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14,14,17,.9), rgba(6,6,8,.95)); box-shadow: 0 40px 120px -40px rgba(191,230,255,.15), 0 0 0 1px rgba(255,255,255,.03) inset;
  min-height: 560px; display: flex; flex-direction: column;
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: #222; border: 1px solid #333; }
.terminal__bar p { margin-left: auto; color: var(--dim); font-size: 10px; }
.terminal__body { padding: 26px; font-size: 12.5px; letter-spacing: 0.02em; text-transform: none; line-height: 1.9; flex: 1; overflow: auto; max-height: 620px; position: relative; z-index: 1; }
.terminal__body p { white-space: pre-wrap; }
.t-dim { color: var(--dim); }
.t-ok { color: var(--ok); }
.t-ice { color: var(--ice); }
.t-h { color: #fff; font-weight: 400; }
.caret { display: inline-block; width: 8px; height: 15px; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal__orb { position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; pointer-events: none; opacity: .5; }
.terminal__orb span { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; animation: spin 14s linear infinite; }
.terminal__orb span:nth-child(2) { inset: 30px; border-style: dashed; animation-duration: 22s; animation-direction: reverse; }
.terminal__orb span:nth-child(3) { inset: 70px; border-color: rgba(191,230,255,.25); animation-duration: 9s; }
.oracle__terminal.is-thinking .terminal__orb { opacity: 1; }
.oracle__terminal.is-thinking .terminal__orb span { animation-duration: 2s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stack ---------- */
.stack { padding: clamp(80px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.stack__rows { display: grid; gap: 14px; margin-top: 30px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.stack__row { overflow: hidden; }
.stack__inner { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.stack__row--rev .stack__inner { animation-direction: reverse; }
.stack__inner span { padding: 18px 30px; border: 1px solid var(--line); border-radius: 100px; font-size: 15px; color: var(--muted); white-space: nowrap; transition: all .4s; background: rgba(255,255,255,.015); }
.stack__inner span:hover { color: #000; background: #fff; border-color: #fff; }

/* ---------- Pillars ---------- */
.pillars { padding: clamp(80px, 10vw, 140px) 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1000px; }
.pillar { position: relative; padding: 34px 28px 40px; border: 1px solid var(--line); border-radius: 6px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.06), transparent 60%); transform-style: preserve-3d; transition: transform .6s var(--ease), border-color .5s; }
.pillar:hover { border-color: var(--line-2); }
.pillar__k { position: absolute; top: 30px; left: 28px; color: var(--muted); transform: translateZ(30px); }
.pillar h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.05; margin-bottom: 12px; transform: translateZ(40px); }
.pillar p { color: var(--muted); font-size: 14px; transform: translateZ(20px); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; font-size: 19px; font-weight: 400; cursor: pointer; transition: color .3s; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: #fff; }
.faq__list summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #fff; transition: transform .5s var(--ease); }
.faq__list summary i::after { transform: rotate(90deg); }
.faq__list details[open] summary i::after { transform: rotate(0); }
.faq__list details p { color: var(--muted); padding: 0 40px 28px 0; max-width: 640px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(120px, 14vw, 200px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.contact__glow { position: absolute; left: 50%; top: 10%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(circle, rgba(191,230,255,.07), transparent 60%); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); position: relative; }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 7.5vw, 124px); line-height: .92; letter-spacing: -0.035em; }
.contact__title em { font-style: italic; }
.contact__info { list-style: none; margin-top: 56px; display: grid; gap: 0; }
.contact__info li { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-top: 1px solid var(--line); text-transform: none; letter-spacing: .04em; font-size: 13px; }
.contact__info li span { color: var(--dim); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; }
.contact__info a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-content: start; padding: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); backdrop-filter: blur(10px); }
.field { position: relative; }
.field--full, .form .btn, .form__note { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--fg);
  font: inherit; font-size: 16px; padding: 26px 0 12px; outline: none; resize: none; border-radius: 0; transition: border-color .4s;
}
.field select { -webkit-appearance: none; appearance: none; }
.field select option { background: #0b0b0d; }
.field--select::after { content: ""; position: absolute; right: 4px; bottom: 20px; width: 8px; height: 8px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg); pointer-events: none; }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .4s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #fff; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static { top: 2px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--mono); color: var(--fg); }
.field.is-error input, .field.is-error textarea { border-color: #ff6b6b; }
.form .btn { margin-top: 20px; }
.form__note { min-height: 1em; color: var(--muted); text-transform: none; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.footer { padding-top: 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__mega { display: flex; justify-content: center; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 17.5vw, 300px); line-height: .85; letter-spacing: -0.04em; white-space: nowrap; padding: 0 0 40px; user-select: none; }
.footer__mega span:first-child { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.footer__mega .chrome-text { font-style: italic; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 34px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.footer__brand img { width: 48px; mix-blend-mode: screen; }
.footer__links, .footer__social { display: flex; gap: 28px; color: var(--muted); }
.footer__links a:hover, .footer__social a:hover { color: #fff; }
.footer__social a { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 10px; transition: all .4s; }
.footer__social { gap: 10px; }
.footer__social a:hover { background: #fff; color: #000; }
.footer__legal { display: flex; justify-content: space-between; padding-block: 22px 30px; color: var(--dim); font-size: 10px; }
.to-top:hover { color: #fff; }

/* ---------- Reveal defaults (JS enhances) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(30px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__links, .nav__status { display: none; }
  .nav__burger { display: block; }
  .nav__right .btn { display: none; }
  .oracle__grid, .contact__grid, .faq__grid { grid-template-columns: 1fr; }
  .oracle__terminal { position: relative; top: 0; min-height: 420px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .hero__hud { display: none; }
  .hero__title .line:nth-child(2) { padding-left: .5em; }
}
@media (max-width: 640px) {
  .services__grid, .pillars__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 32px 26px; }
  .card h3 { margin-top: 40px; }
  .form { grid-template-columns: 1fr; padding: 26px; }
  .contact__info li { grid-template-columns: 80px 1fr; }
  .footer__legal { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { flex: 1; }
  .step { min-height: 380px; padding: 30px; }
  .step h3 { margin-top: 60px; }
}

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

/* mobile hero legibility */
@media (max-width: 640px) {
  .hero__scroll { display: none; }
  .hero__canvas { opacity: .55; }
  .hero__lead { color: #b9b8bd; font-size: 15px; }
  .btn { padding: 0 20px; font-size: 13px; }
}

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 95; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--chrome); background-size: 220% 100%; animation: chrome 6s linear infinite;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 12px 40px -8px rgba(255,255,255,.35);
  transition: transform .5s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; fill: #050505; }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: waPulse 2.4s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.form__note.is-ok { color: var(--ok); }
.form__note.is-err { color: #ff8a8a; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 640px) { .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; } }
