/* ============================================================
   OREON AI — refined, responsive (mobile + desktop)
   Restrained violet on near-black. Sharp & 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-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { 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-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

.section { padding: 96px 0; position: relative; }
.section-title { font-size: clamp(28px, 4.6vw, 46px); margin: 18px 0 16px; text-wrap: balance; max-width: 18ch; }
.section-lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); max-width: 56ch; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--ff-display); font-weight: 500; font-size: 15px;
  border-radius: 10px; padding: 14px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .3s, background .3s, border-color .3s, color .2s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(91,63,214,0.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(91,63,214,0.42), inset 0 1px 0 rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-bright); background: rgba(139,109,255,0.06); }

/* ======================================================================
   LOADER
   ====================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #050409; overflow: hidden;
  transition: opacity .7s ease, visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.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: 22px; text-align: center;
}
.loader-mark { opacity: 0; transform: scale(.82); animation: markIn 1s cubic-bezier(.2,.8,.2,1) forwards; filter: drop-shadow(0 0 18px var(--glow)); }
@keyframes markIn { to { opacity: 1; transform: scale(1); } }
.loader-word {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(28px, 7vw, 40px); letter-spacing: 0.34em; padding-left: .34em;
  color: #fff; text-shadow: 0 0 28px var(--glow);
  opacity: 0; animation: fadeUp .8s .3s forwards;
}
.loader-sub {
  font-family: var(--ff-display); font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--muted); opacity: 0; animation: fadeUp .8s .5s forwards;
}
.loader-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loader-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet-deep), var(--violet), var(--violet-bright));
  box-shadow: 0 0 12px var(--glow);
  animation: load 3s cubic-bezier(.5,.1,.2,1) forwards;
}
@keyframes load { to { width: 100%; } }
.loader-skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--ff-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 100px; transition: color .2s, border-color .2s, background .2s;
}
.loader-skip:hover { color: var(--text); border-color: var(--violet); background: rgba(139,109,255,0.08); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to {opacity:1; transform:none;} }

/* ======================================================================
   HEADER + MENU
   ====================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(180deg, rgba(8,7,13,0.7), rgba(8,7,13,0));
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,7,13,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 10px var(--glow-soft)); }
.logo-word {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 19px; letter-spacing: .22em; padding-left: .22em; color: #fff;
}

.nav-desktop { display: none; align-items: center; gap: 30px; }
.nav-desktop a {
  font-family: var(--ff-display); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: var(--muted); transition: color .2s; position: relative;
}
.nav-desktop a:not(.btn):hover { color: var(--text); }
.nav-desktop a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--violet); transition: right .3s ease;
}
.nav-desktop a:not(.btn):hover::after { right: 0; }

.burger {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px;
  background: var(--text); transition: transform .35s cubic-bezier(.6,.1,.2,1), opacity .25s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 21.5px; 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-display); 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, transform .5s, 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-display); font-size: 14px; color: var(--violet); 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
   ====================================================================== */
#hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 90px; overflow: hidden;
}
.hero-orb {
  position: absolute; width: 460px; height: 460px; right: -120px; top: 8%;
  background: radial-gradient(circle at 50% 50%, var(--glow), transparent 64%);
  filter: blur(14px); opacity: .8; pointer-events: none; animation: float 11s ease-in-out infinite;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(80% 60% at 40% 30%, #000, transparent 78%);
  mask-image: radial-gradient(80% 60% at 40% 30%, #000, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px 8px 12px; margin-bottom: 28px;
  background: rgba(255,255,255,0.02);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation: pulse 2.2s infinite; }
h1.hero-title { font-size: clamp(42px, 8.5vw, 92px); letter-spacing: -0.035em; margin-bottom: 24px; text-wrap: balance; max-width: 16ch; }
h1.hero-title em { font-style: normal; color: var(--violet-bright); text-shadow: 0 0 38px var(--glow); }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 50ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 52px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { font-family: var(--ff-display); font-size: 30px; color: #fff; }
.hero-meta span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero-foot {
  position: relative; z-index: 2; margin-top: auto; padding-top: 40px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-display); font-size: 10.5px; letter-spacing: .22em; 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 float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-26px) } }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }

/* ======================================================================
   ENGINE
   ====================================================================== */
#engine { padding-top: 40px; }
.engine-wrap { display: flex; flex-direction: column; gap: 10px; }
.engine-copy { text-align: center; }
.engine-copy .section-lead { margin: 14px auto 0; }
.engine-copy .section-title { margin-left: auto; margin-right: auto; }
.engine-points { list-style: none; margin: 26px auto 0; max-width: 460px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.engine-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 14.5px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.015); }
.engine-points li span { font-family: var(--ff-display); color: var(--violet); font-size: 12px; font-weight: 600; flex: 0 0 auto; }

.engine-stage-wrap { display: grid; place-items: center; margin-top: 18px; }
.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
   ====================================================================== */
.marquee {
  position: relative; 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);
  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 30s 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 { margin-bottom: 44px; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-body p { color: var(--muted); font-size: 16px; margin-top: 18px; }
.about-body p.lead { color: var(--text); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; margin-top: 0; }
.founders { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.founders h3 { font-family: var(--ff-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--violet); margin-bottom: 6px; }
.founder { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--panel), transparent); transition: border-color .3s, transform .3s; }
.founder:hover { border-color: rgba(139,109,255,.34); transform: translateY(-2px); }
.founder .ava {
  width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
  background: linear-gradient(160deg, #1a1130, #0b0716); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--ff-display); font-weight: 600; font-size: 20px; color: var(--violet-bright);
}
.founder .who b { font-family: var(--ff-display); font-size: 16px; display: block; }
.founder .who small { color: var(--muted); font-size: 13px; }
.founder .role { margin-left: auto; font-family: var(--ff-display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

/* ======================================================================
   WHAT WE DO (accordion)
   ====================================================================== */
.services-head { margin-bottom: 36px; }
.services-head .section-lead { margin-top: 14px; }
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, rgba(21,18,31,0.4), transparent); transition: border-color .3s, background .3s; }
.acc-item.open { border-color: rgba(139,109,255,.34); background: linear-gradient(160deg, rgba(24,16,44,0.55), rgba(11,7,22,0.2)); }
.acc-head { width: 100%; background: none; border: 0; color: inherit; display: flex; align-items: center; gap: 16px; padding: 22px 22px; text-align: left; }
.acc-num { font-family: var(--ff-display); font-size: 12px; color: var(--violet); letter-spacing: .08em; width: 26px; flex: 0 0 auto; }
.acc-title { font-family: var(--ff-display); font-size: clamp(16px, 2vw, 20px); font-weight: 600; flex: 1; letter-spacing: -0.01em; }
.acc-plus { width: 22px; height: 22px; position: relative; flex: 0 0 auto; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; background: var(--violet); border-radius: 2px; transition: transform .35s; }
.acc-plus::before { left: 0; right: 0; top: 10px; height: 2px; }
.acc-plus::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.acc-item.open .acc-plus::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.4,0,.2,1); }
.acc-inner { padding: 0 22px 24px 64px; }
.acc-desc { color: var(--muted); font-size: 15px; margin-bottom: 16px; max-width: 64ch; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-tags span { font-family: var(--ff-display); font-size: 12px; color: var(--violet-bright); border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; background: rgba(139,109,255,.05); }

/* ======================================================================
   PROJECTS
   ====================================================================== */
.projects-head { margin-bottom: 40px; }
.projects-head .section-lead { margin-top: 14px; }
.proj-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.proj { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: transform .35s, border-color .35s, box-shadow .35s; }
.proj:hover { transform: translateY(-4px); border-color: rgba(139,109,255,.32); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.proj .thumb { height: 200px; 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: .18em; 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: 22px; }
.proj .body h3 { font-size: 23px; margin-bottom: 8px; }
.proj .body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.proj .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.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; }

/* ======================================================================
   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); }

/* ======================================================================
   RESPONSIVE — tablet & desktop
   ====================================================================== */
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
  .proj-list { grid-template-columns: 1fr 1fr; gap: 22px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .acc-head { padding: 24px 26px; }
  .acc-inner { padding: 0 26px 26px 68px; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .burger { display: none; }
  .nav-desktop { display: flex; }
  #menu { display: none; }

  .section { padding: 130px 0; }

  /* Engine: side-by-side copy + diagram on desktop */
  .engine-wrap { flex-direction: row; align-items: center; gap: 60px; }
  .engine-copy { text-align: left; flex: 1; }
  .engine-copy .section-lead, .engine-copy .section-title { margin-left: 0; margin-right: 0; }
  .engine-points { margin-left: 0; }
  .engine-stage-wrap { flex: 0 0 auto; margin-top: 0; }

  .hero-meta { gap: 56px; }
}

@media (min-width: 1100px) {
  .engine-stage { transform: scale(1.08); }
  .engine-stage-wrap { padding: 40px 0; }
}

/* small phones — scale engine to fit */
@media (max-width: 380px) {
  .engine-stage { transform: scale(.9); }
}
