/* ============================================================
   OREON AI — refined, responsive, animated
   Restrained violet on near-black. Serious & elegant.
   ============================================================ */

:root {
  --bg:        #08070d;
  --bg-2:      #0b0a12;
  --panel:     #100e18;
  --panel-2:   #15121f;
  --line:      rgba(140, 120, 200, 0.16);
  --line-soft: rgba(255, 255, 255, 0.055);

  --violet:        #8b6dff;
  --violet-bright: #b9a4ff;
  --violet-deep:   #5b3fd6;
  --glow:          rgba(139, 109, 255, 0.32);
  --glow-soft:     rgba(139, 109, 255, 0.12);

  --text:  #ECEAF3;
  --muted: #9d98ad;
  --faint: #6b6680;

  --maxw: 1200px;
  --gutter: 22px;

  --ff-head: "Bricolage Grotesque", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-logo: "Black Ops One", "Space Grotesk", system-ui, sans-serif;

  /* Phase 1 additions — new brand type system (Geist / Geist Mono).
     Scoped to loader, header and hero for now; will replace --ff-head/--ff-display/
     --ff-body/--ff-logo above sitewide once the full typography pass runs. */
  --ff-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(60% 40% at 85% -5%, rgba(139,109,255,0.07), transparent 60%),
    radial-gradient(50% 35% at 0% 8%, rgba(91,63,214,0.06), transparent 60%);
  background-attachment: fixed;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--ff-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); }

h1, h2, h3 { font-family: var(--ff-head); font-weight: 700; line-height: 1.04; letter-spacing: -0.028em; }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-title { font-size: clamp(30px, 4.8vw, 50px); font-weight: 700; margin: 18px 0 16px; text-wrap: balance; max-width: 20ch; }
.section-lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); max-width: 58ch; }

/* ======================================================================
   ANIMATION SYSTEM
   ====================================================================== */
[data-reveal] { opacity: 0; transition: opacity .85s var(--ease), transform .85s var(--ease); will-change: opacity, transform; }
[data-reveal="up"]    { transform: translateY(30px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(.93); }
[data-reveal].is-in   { opacity: 1; transform: none; }

/* word-by-word headline reveal */
.js-split .word { display: inline-block; overflow: hidden; vertical-align: top; }
.js-split .word-in { display: inline-block; transform: translateY(115%); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 0.045s); }
.js-split.is-in .word-in { transform: translateY(0); }
.js-split .word.accent .word-in { color: var(--violet-bright); text-shadow: 0 0 34px var(--glow); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .js-split .word-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  #loader, #loader.done { clip-path: none !important; transition: opacity .3s linear !important; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--ff-sans); font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border-radius: 8px; padding: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .2s;
}
.btn-sm { padding: 11px 20px; font-size: 13.5px; border-radius: 7px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(180deg, var(--violet), var(--violet-deep)); color: #fff; box-shadow: 0 8px 22px rgba(91,63,214,0.26), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 65%); opacity: 0; transition: opacity .3s var(--ease); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(91,63,214,0.38), inset 0 1px 0 rgba(255,255,255,.2); transform: translateY(-1px); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { box-shadow: 0 5px 16px rgba(91,63,214,0.3), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.025); }
.btn-ghost:hover { border-color: rgba(139,109,255,.5); color: var(--violet-bright); background: rgba(139,109,255,0.05); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); background: rgba(139,109,255,0.08); }

/* ======================================================================
   LOADER
   ====================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #050409; overflow: hidden;
  clip-path: circle(150% at 50% 46%);
  transition: opacity .6s ease .15s, visibility .75s .15s, clip-path .95s cubic-bezier(.64,0,.3,1);
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; clip-path: circle(0% at 50% 46%); }
.loader-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: saturate(1.05) contrast(1.02) brightness(.9); }
.loader-veil { position: absolute; inset: 0; background: radial-gradient(75% 65% at 50% 45%, rgba(8,7,13,0.45), rgba(5,4,9,0.92) 80%), linear-gradient(180deg, rgba(139,109,255,0.08), rgba(5,4,9,0.75)); }
.loader-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.loader-mark { opacity: 0; transform: scale(.9); animation: markIn 0.9s var(--ease) forwards; }
/* Deliberately large — this is the one moment in the whole site sized generously
   enough for the uploaded mark's soft glow to read as a clean, considered brand beat
   rather than a fuzzy smudge (see the header, which stays on the crisp vector mark
   specifically because it can't afford this much room). Sized up for mobile too. */
.loader-mark img { width: clamp(210px, 44vw, 380px); height: auto; }
@keyframes markIn { to { opacity: 1; transform: scale(1); } }
.loader-sub { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fadeUp .8s .6s forwards; margin-top: 6px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to {opacity:1; transform:none;} }

/* ======================================================================
   HEADER + MENU  (fully transparent, no blur, no border)
   ====================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: transparent; transition: background .35s var(--ease), border-color .35s var(--ease); }
.header-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-lockup { height: clamp(30px, 5vw, 38px); width: auto; }

.nav-desktop { display: none; align-items: center; gap: 32px; }
.nav-desktop a { font-family: var(--ff-sans); font-size: 14px; font-weight: 500; color: var(--text); opacity: .78; transition: opacity .25s var(--ease), color .25s var(--ease); position: relative; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.nav-desktop a:not(.btn):hover { opacity: 1; color: var(--violet-bright); }
.nav-desktop a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--violet-bright); transition: right .35s var(--ease); }
.nav-desktop a:not(.btn):hover::after { right: 0; }
.nav-desktop a.btn { opacity: 1; text-shadow: none; }

/* language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: transparent; color: var(--muted); font-family: var(--ff-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .05em; padding: 7px 12px; border: 0; transition: background .25s var(--ease), color .25s var(--ease); }
.lang-switch button.active { background: var(--violet); color: #fff; }
.lang-switch button:not(.active):hover { color: var(--text); }
.menu-lang { align-self: flex-start; margin-top: 30px; }

/* bare-line burger — no box */
.burger { width: 34px; height: 26px; border: 0; background: transparent; position: relative; padding: 0; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.45); transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 4px; }
.burger span:nth-child(2) { top: 12px; }
.burger span:nth-child(3) { top: 20px; }
body.menu-open .burger span:nth-child(1) { top: 12px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

#menu { position: fixed; inset: 0; z-index: 190; background: linear-gradient(180deg, #0a0814, #07060d); display: flex; flex-direction: column; justify-content: center; padding: 0 30px; clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1); pointer-events: none; }
body.menu-open #menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
#menu .menu-glow { position: absolute; inset: 0; background: radial-gradient(60% 40% at 85% 18%, rgba(139,109,255,0.12), transparent 60%); pointer-events: none; }
.menu-list { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu-list a { font-family: var(--ff-sans); font-size: clamp(34px, 11vw, 48px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); padding: 8px 0; display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; }
body.menu-open .menu-list a { opacity: 1; transform: none; }
body.menu-open .menu-list a:nth-child(1) { transition-delay: .12s; }
body.menu-open .menu-list a:nth-child(2) { transition-delay: .18s; }
body.menu-open .menu-list a:nth-child(3) { transition-delay: .24s; }
body.menu-open .menu-list a:nth-child(4) { transition-delay: .30s; }
.menu-list a .idx { font-family: var(--ff-mono); font-size: 13px; color: var(--violet-bright); font-weight: 500; }
.menu-list a:hover { color: var(--violet-bright); }
.menu-foot { position: relative; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.menu-foot a:hover { color: var(--text); }

/* ======================================================================
   HERO — cinematic space/moon background + scroll-driven rise (Phase 1)
   ====================================================================== */
.hero-pin { position: relative; }
.hero-pin.no-pin { height: auto !important; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 104px 0 60px; overflow: hidden;
}
.hero-pin.no-pin .hero-sticky { position: relative; }

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg-image {
  position: absolute; inset: -8%;
  background-image:
    url('assets/hero-bg.jpg'),
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(139,109,255,0.22), transparent 60%),
    linear-gradient(180deg, #120b22 0%, #0a0714 55%, #060409 100%);
  background-size: cover, cover, cover;
  /* source photo is a square 1:1 crop with the moon in its lower ~22% — on wide
     viewports `cover` crops top/bottom, so bias heavily toward the bottom of the
     source so the moon stays framed in the lower third instead of falling out of view */
  background-position: center 88%, center, center;
  background-repeat: no-repeat;
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero-particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .96; pointer-events: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,5,11,0.74) 0%, rgba(6,5,11,0.34) 34%, rgba(6,5,11,0.2) 56%, rgba(6,5,11,0.66) 100%),
    linear-gradient(90deg, rgba(6,5,11,0.55) 0%, transparent 48%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
  opacity: 0;
}
.hero-inner, .hero-foot { position: relative; z-index: 3; will-change: transform, opacity; }

.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px 8px 12px; margin-bottom: 28px; background: rgba(8,7,13,0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 7px var(--violet); animation: pulse 2.2s infinite; }
h1.hero-title { font-family: var(--ff-sans); font-size: clamp(40px, 8vw, 88px); font-weight: 700; line-height: 0.99; letter-spacing: -0.03em; margin-bottom: 22px; text-wrap: balance; max-width: 15ch; }
h1.hero-title em { font-style: normal; color: var(--violet-bright); }
.hero-sub { color: #c8c4d6; font-size: clamp(15.5px, 1.8vw, 19px); line-height: 1.6; max-width: 46ch; margin-bottom: 34px; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 16px; margin-top: 38px; }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.hero-meta div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-meta b { font-family: var(--ff-mono); font-weight: 600; font-size: clamp(21px, 5.4vw, 28px); letter-spacing: -0.01em; color: #fff; }
.hero-meta span { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); line-height: 1.3; }
.hero-foot { margin-top: auto; padding-top: 40px; display: flex; align-items: center; justify-content: space-between; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.scroll-cue { display: flex; align-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 26px; background: linear-gradient(var(--violet), transparent); display: inline-block; animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4;} 50%{ transform: scaleY(1); opacity:1;} }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }

/* ======================================================================
   HOW WE WORK
   ====================================================================== */
#work { padding-top: clamp(70px, 9vw, 120px); }
.work-wrap { display: flex; flex-direction: column; gap: 44px; }
.work-copy .section-lead { margin-top: 14px; }
.steps { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(21,18,31,0.45), transparent); transition: border-color .3s, transform .3s, background .3s; }
.step:hover { border-color: rgba(139,109,255,.34); transform: translateX(4px); background: linear-gradient(160deg, rgba(24,16,44,0.55), transparent); }
.step-num { font-family: var(--ff-display); font-size: 13px; font-weight: 600; color: var(--violet); flex: 0 0 auto; padding-top: 3px; letter-spacing: .04em; }
.step-body h3 { font-size: 19px; margin-bottom: 5px; }
.step-body p { color: var(--muted); font-size: 14.5px; }

/* engine diagram */
.engine-stage-wrap { display: grid; place-items: center; }
.engine-stage { position: relative; width: 340px; height: 600px; transform-origin: top center; }
.engine-stage svg.wires { position: absolute; inset: 0; width: 340px; height: 600px; overflow: visible; }
.wire-base { fill: none; stroke: var(--line); stroke-width: 1.4; }
.wire-flow { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 6 16; filter: drop-shadow(0 0 3px var(--glow)); opacity: .85; }
.engine-stage.run .wire-flow.in  { animation: flow var(--flow-dur, 1.8s) linear infinite; }
.engine-stage.run .wire-flow.out { animation: flow var(--flow-dur, 1.8s) linear infinite; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.packet { position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 8px var(--violet), 0 0 18px var(--glow); offset-rotate: 0deg; offset-distance: 0%; opacity: 0; }
.engine-stage.run .packet { animation: travel var(--flow-dur, 1.8s) linear infinite; opacity: 1; }
.engine-stage.run .packet.d { animation-delay: calc(var(--flow-dur, 1.8s) / 2); }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.node { position: absolute; width: 104px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; }
.node .chip { width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(160deg, var(--panel-2), #0b0915); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 34px rgba(0,0,0,.5); position: relative; transition: border-color .4s, box-shadow .4s; }
.node .chip::after { content: ""; position: absolute; inset: -1px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(139,109,255,0); transition: box-shadow .4s; }
.engine-stage.run .node .chip { border-color: rgba(139,109,255,.32); }
.engine-stage.run .node .chip::after { box-shadow: 0 0 26px var(--glow-soft); }
.node .chip svg { width: 28px; height: 28px; stroke: var(--violet-bright); fill: none; }
.node .label { font-family: var(--ff-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.node.in-node  .chip { animation: bobA 4.5s ease-in-out infinite; }
.node.out-node .chip { animation: bobB 4.5s ease-in-out infinite; }
@keyframes bobA { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-5px) } }
@keyframes bobB { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(5px) } }
.motor { position: absolute; left: 170px; top: 300px; width: 148px; height: 148px; transform: translate(-50%, -50%); }
.motor .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(139,109,255,.34); animation: spin 16s linear infinite; }
.motor .ring.r2 { inset: 16px; border-style: solid; border-color: rgba(139,109,255,.14); animation: spin 10s linear infinite reverse; }
.motor .core { position: absolute; inset: 28px; border-radius: 24px; background: linear-gradient(160deg, #181030, #0a0716); border: 1px solid rgba(139,109,255,.34); display: grid; place-items: center; box-shadow: 0 0 44px var(--glow-soft), inset 0 1px 0 rgba(255,255,255,.06); animation: corePulse 3.4s ease-in-out infinite; }
.motor .core svg { width: 44px; height: 44px; filter: drop-shadow(0 0 8px var(--glow)); }
.motor .halo { position: absolute; inset: -22px; border-radius: 50%; background: radial-gradient(circle, var(--glow-soft), transparent 66%); animation: corePulse 3.4s ease-in-out infinite; pointer-events: none; }
.motor .label { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); font-family: var(--ff-display); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.04); opacity:.93 } }

/* ======================================================================
   MARQUEE
   ====================================================================== */
/* z-index:2 keeps this strip fully visible — the section right after it (.ovl) sits at
   z-index:1 and slides up -40px over whatever precedes it, which was silently covering
   the bottom half of this strip and squashing the ticker text into a thin, oddly-empty band. */
.marquee { position: relative; z-index: 2; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(139,109,255,0.03), transparent); background-color: var(--bg); overflow: hidden; -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: marq 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--ff-display); font-size: clamp(20px, 3vw, 30px); font-weight: 500; letter-spacing: -0.01em; color: var(--text); padding: 0 30px; display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ======================================================================
   ABOUT
   ====================================================================== */
.about-head { max-width: 760px; margin-bottom: 50px; }
.about-head .section-lead { margin-top: 16px; }
.diff-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.diff-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, var(--panel), transparent); transition: border-color .35s, transform .35s, background .35s; }
.diff-card:hover { border-color: rgba(139,109,255,.36); transform: translateY(-4px); background: linear-gradient(160deg, rgba(24,16,44,0.6), transparent); }
.diff-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(139,109,255,.06); margin-bottom: 16px; }
.diff-ic svg { width: 22px; height: 22px; stroke: var(--violet-bright); fill: none; }
.diff-card h3 { font-size: 18px; margin-bottom: 8px; }
.diff-card p { color: var(--muted); font-size: 14.5px; }

.impact { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.impact-item { background: var(--bg-2); padding: 26px 18px; text-align: center; }
.impact-item b { font-family: var(--ff-head); font-weight: 700; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; color: #fff; display: block; }
.impact-item span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* ======================================================================
   FOUNDERS
   ====================================================================== */
.founders-head { margin-bottom: 44px; }
.founder-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.founder-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: border-color .35s, transform .35s, box-shadow .35s; }
.founder-card:hover { border-color: rgba(139,109,255,.32); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.founder-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0716; border-bottom: 1px solid var(--line); }
.founder-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,7,13,0) 65%, rgba(8,7,13,.26)); box-shadow: inset 0 0 40px rgba(8,7,13,.12); }
.founder-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.founder-photo--sarvar img { object-position: 50% 34%; }
.founder-photo--jovlon img { object-position: 50% 48%; }
.founder-info { padding: 24px; }
.founder-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.founder-top h3 { font-size: 24px; }
.founder-top small { color: var(--violet-bright); font-family: var(--ff-display); font-size: 12px; letter-spacing: .06em; }
.founder-role { font-family: var(--ff-display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; white-space: nowrap; flex: 0 0 auto; }
.founder-bio { color: var(--text); font-size: 15.5px; margin-bottom: 18px; }
.founder-facts { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.founder-facts li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; }
.founder-facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 2px; border-radius: 2px; background: var(--violet); }

/* ======================================================================
   PROJECTS — horizontal focus-scale reveal
   ====================================================================== */
.projects-head { margin-bottom: 8px; }
.projects-head .section-lead { margin-top: 14px; }

/* pinned horizontal scroll */
.hpin { position: relative; }                 /* tall wrapper; height set by JS */
.hpin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.htrack { display: flex; gap: 26px; padding: 0 max(var(--gutter), calc(50vw - min(43vw, 220px))); will-change: transform; }
.proj {
  flex: 0 0 auto; width: min(86vw, 440px);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transform: scale(.92); opacity: .5;
  transition: transform .5s var(--ease), opacity .5s var(--ease), border-color .5s, box-shadow .5s;
}
.proj.focus { transform: scale(1); opacity: 1; border-color: rgba(139,109,255,.4); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 40px var(--glow-soft); }
.proj .thumb { height: 190px; position: relative; overflow: hidden; background: linear-gradient(160deg, #181126, #0b0716); display: grid; place-items: center; }
.proj .thumb::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 30px 30px; opacity: .5; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%); }
.proj .thumb .gnum { font-family: var(--ff-display); font-weight: 700; font-size: 76px; color: rgba(139,109,255,.16); position: relative; }
.proj .thumb .tag-float { position: absolute; top: 14px; left: 14px; font-family: var(--ff-display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-bright); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; background: rgba(8,7,13,.6); backdrop-filter: blur(6px); }
.proj .body { padding: 24px; }
.proj .body h3 { font-size: 22px; margin-bottom: 9px; }
.proj .body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.proj .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.proj .tags span { font-family: var(--ff-display); font-size: 11px; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }
.proj-link { font-family: var(--ff-display); font-size: 13.5px; font-weight: 500; color: var(--violet-bright); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.proj-link:hover { gap: 10px; }
.proj-link.muted { color: var(--faint); pointer-events: none; }
.hpin-progress { position: absolute; left: 50%; transform: translateX(-50%); bottom: 42px; width: min(46vw, 260px); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hpin-progress i { display: block; height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--violet-deep), var(--violet-bright)); }
.hpin-hint { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-family: var(--ff-display); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }

/* reduced motion / no-JS fallback: simple vertical list */
.hpin.no-pin { height: auto !important; }
.hpin.no-pin .hpin-sticky { position: static; height: auto; display: block; }
.hpin.no-pin .htrack { flex-wrap: wrap; justify-content: center; transform: none !important; padding: 30px var(--gutter); }
.hpin.no-pin .proj { transform: none; opacity: 1; width: min(92vw, 420px); }
.hpin.no-pin .hpin-progress, .hpin.no-pin .hpin-hint { display: none; }

/* ======================================================================
   CONTACT
   ====================================================================== */
#contact { position: relative; overflow: hidden; padding: 110px 0; }
.contact-video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.contact-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: saturate(1.05) brightness(.92); }
.contact-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 45%, rgba(8,7,13,0.28), transparent 75%), linear-gradient(180deg, rgba(8,7,13,0.55), rgba(8,7,13,0.6) 55%, var(--bg)); }
.contact-inner { position: relative; z-index: 2; }
.contact-copy .section-title, .contact-copy .section-lead { text-shadow: 0 2px 22px rgba(5,4,9,0.7); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.contact-info { margin-top: 32px; display: flex; flex-direction: column; gap: 2px; }
.cinfo { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--line); transition: padding-left .25s; }
.cinfo:last-child { border-bottom: 1px solid var(--line); }
.cinfo:hover { padding-left: 8px; }
.cinfo .ic { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(139,109,255,.06); }
.cinfo .ic svg { width: 18px; height: 18px; stroke: var(--violet-bright); fill: none; }
.cinfo .ct small { display: block; font-family: var(--ff-display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.cinfo .ct b { font-family: var(--ff-body); font-weight: 500; font-size: 15px; color: var(--text); }
.contact-form-wrap { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: linear-gradient(160deg, rgba(20,16,32,0.7), rgba(10,8,18,0.55)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--ff-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font-family: var(--ff-body); font-size: 15px; color: var(--text); background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 11px; padding: 14px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--glow-soft); background: rgba(255,255,255,0.05); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b8a; box-shadow: 0 0 0 3px rgba(255,107,138,.14); }
.field .err { font-size: 11.5px; color: #ff8da3; height: 0; overflow: hidden; transition: height .2s; }
.field.invalid .err { height: 15px; }
.form .btn-primary { justify-content: center; margin-top: 6px; }
.form-success { display: none; text-align: center; padding: 34px 22px; }
.form-success.show { display: block; animation: fadeUp .5s; }
.form-success .chk { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(180deg, var(--violet), var(--violet-deep)); box-shadow: 0 0 28px var(--glow); }
.form-success h3 { font-size: 23px; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14.5px; }

/* ======================================================================
   FOOTER
   ====================================================================== */
.site-foot { position: relative; z-index: 2; padding: 48px 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.site-foot .logo { justify-content: center; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.foot-nav a { font-family: var(--ff-display); font-size: 13px; color: var(--muted); transition: color .2s; }
.foot-nav a:hover { color: var(--text); }
.foot-copy { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ======================================================================
   OVERLAPPING SECTIONS  (each section layers over the previous)
   ====================================================================== */
.ovl {
  position: relative; z-index: 1;
  background: var(--bg);
  border-top-left-radius: 28px; border-top-right-radius: 28px;
  margin-top: -40px;
  box-shadow: 0 -34px 70px rgba(0,0,0,0.55);
}
.ovl::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  border-top-left-radius: 28px; border-top-right-radius: 28px;
  background: linear-gradient(90deg, transparent, rgba(185,164,255,0.35), transparent);
}
/* keep contact's video clipped to the rounded top */
#contact { background: var(--bg); }
#contact .contact-video-wrap, #contact .contact-veil { border-top-left-radius: 28px; border-top-right-radius: 28px; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (min-width: 680px) {
  .diff-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .impact { grid-template-columns: repeat(4, 1fr); }
  .founder-card { flex-direction: row; }
  .founder-photo { aspect-ratio: auto; width: 230px; flex: 0 0 230px; border-bottom: 0; border-right: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .burger { display: none; }
  .nav-desktop { display: flex; }
  #menu { display: none; }
  .work-wrap { flex-direction: row; align-items: center; gap: 64px; }
  .work-copy { flex: 1; }
  .engine-stage-wrap { flex: 0 0 auto; }
  .diff-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 680px) {
  .hero-meta { max-width: 580px; gap: 28px; }
  .hero-meta div + div { padding-left: 28px; }
}

@media (min-width: 1100px) {
  .engine-stage { transform: scale(1.05); }
}

@media (max-width: 380px) {
  .engine-stage { transform: scale(.9); }
}
