/* SI Media — shared site styles */
:root {
  --bg: #030306;
  --bg-2: #08080e;
  --panel: #0c0c14;
  --line: #1c1c2b;
  --text: #f2f3f8;
  --muted: #8789a3;
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --magenta: #ff2bd6;
  --glow: 0 0 24px rgba(0,229,255,.55);
  --radius: 22px;
  --max: 1240px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* page-wide grid + scanlines + vignette */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(0,229,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55));
}
::selection { background: var(--cyan); color: var(--bg); }
h1, h2, h3 { font-family: "Space Grotesk", "Manrope", sans-serif; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.accent { color: var(--cyan); text-shadow: var(--glow); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono b { color: var(--cyan); font-weight: 500; }
section { padding: 120px 0; position: relative; }

/* ---------- Boot sequence ---------- */
#boot {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center;
  transition: opacity .6s, visibility .6s;
}
#boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(440px, 86vw); font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.boot-logo { font: 700 72px "Space Grotesk", "Manrope"; letter-spacing: -.05em; color: var(--text); margin-bottom: 26px; }
.boot-logo span { color: var(--cyan); text-shadow: var(--glow); }
#bootLog { min-height: 96px; line-height: 2; white-space: pre; }
#bootLog .ok { color: var(--cyan); }
.boot-bar { height: 2px; background: var(--line); margin-top: 18px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: var(--glow); transition: width .25s; }
.boot-skip { position: absolute; bottom: 28px; right: 28px; background: none; border: 0; color: var(--muted); font: 11px var(--mono); letter-spacing: .14em; cursor: pointer; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 150; display: none; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(0,229,255,.6); border-radius: 50%; transition: width .2s, height .2s, margin .2s, border-color .2s, background .2s; }
.cursor::before, .cursor::after { content: ""; position: absolute; background: var(--cyan); }
.cursor::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); opacity: .35; }
.cursor::after { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); opacity: .35; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--cyan); background: rgba(0,229,255,.06); }
.cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--cyan); border-radius: 50%; box-shadow: var(--glow); }
.cursor-read { position: absolute; left: 44px; top: 30px; font: 10px var(--mono); color: var(--cyan); white-space: nowrap; opacity: .8; }
@media (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
  .has-cursor .cursor, .has-cursor .cursor-dot { display: block; }
  .has-cursor input, .has-cursor textarea { cursor: text; }
}

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(3,3,6,.78); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { height: 84px; display: flex; align-items: center; gap: 18px; }
.menu-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); display: grid; place-content: center; gap: 6px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.menu-btn:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.menu-btn i { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, width .3s; }
.menu-btn i:last-child { width: 14px; }
body.menu-open .menu-btn i:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-btn i:last-child { width: 22px; transform: translateY(-4px) rotate(-45deg); }
.logo { font-family: "Space Grotesk", "Manrope"; font-weight: 700; font-size: 40px; letter-spacing: -0.05em; line-height: 1; }
.logo .dot { color: var(--cyan); text-shadow: var(--glow); animation: pulse 2.4s infinite; }
.logo small { font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 4px; }
.nav-status { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.live { display: flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.pill {
  font-family: "Space Grotesk", "Manrope"; font-weight: 500; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--cyan); color: var(--cyan); transition: background .2s, color .2s, box-shadow .2s;
}
.pill:hover { background: var(--cyan); color: var(--bg); box-shadow: var(--glow); }

.overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(3,3,6,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 28px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
body.menu-open .overlay { opacity: 1; pointer-events: auto; }
.overlay nav { max-width: var(--max); width: 100%; margin: 0 auto; display: grid; gap: 6px; }
.overlay a { font-family: "Space Grotesk", "Manrope"; font-weight: 700; font-size: clamp(40px, 8vw, 88px); letter-spacing: -0.04em; line-height: 1.1; display: flex; align-items: baseline; gap: 18px; color: var(--muted); transition: color .2s, transform .3s; }
.overlay a span { font-family: var(--mono); font-size: 13px; color: var(--cyan); font-weight: 400; letter-spacing: .1em; }
.overlay a:hover { color: var(--text); transform: translateX(12px); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 70px; overflow: hidden; }
#neural, #core { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 500px at 75% 30%, rgba(139,92,246,.24), transparent 70%),
    radial-gradient(700px 500px at 10% 90%, rgba(0,229,255,.12), transparent 70%),
    linear-gradient(transparent 60%, var(--bg));
}
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0,229,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.2) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(70deg); transform-origin: top;
  mask-image: linear-gradient(transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 40%, transparent);
  animation: floor 4s linear infinite;
}
@keyframes floor { to { background-position: 0 60px; } }
.hero h1 { font-size: clamp(54px, 11vw, 168px); max-width: 1100px; }

/* glitch on the hero accent word */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch::before { color: var(--magenta); text-shadow: none; }
.glitch::after { color: var(--violet); text-shadow: none; }
.glitch.fire::before { animation: g1 .45s steps(2) 1; }
.glitch.fire::after { animation: g2 .45s steps(2) 1; }
@keyframes g1 { 0%,100% { opacity: .9; transform: translate(-4px, 0); clip-path: inset(10% 0 55% 0); } 50% { transform: translate(3px, 0); clip-path: inset(60% 0 10% 0); } }
@keyframes g2 { 0%,100% { opacity: .9; transform: translate(4px, 0); clip-path: inset(50% 0 20% 0); } 50% { transform: translate(-3px, 0); clip-path: inset(5% 0 70% 0); } }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.hero-foot .mono { font-size: 13px; line-height: 1.9; }
.cta-link { font-family: "Space Grotesk", "Manrope"; font-weight: 500; font-size: 22px; display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; }
.cta-link svg { transition: transform .25s; }
.cta-link:hover svg { transform: translateX(6px); }
.cta-link:hover { color: var(--cyan); }
.hud { text-align: right; }
.hud-row { display: flex; gap: 10px; justify-content: flex-end; }
.hud .bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; margin-top: 8px; justify-content: flex-end; }
.hud .bars i { width: 4px; background: var(--cyan); opacity: .7; animation: eq 1.2s ease-in-out infinite alternate; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--cyan); opacity: .6; }
.c1 { top: 100px; left: 28px; border-right: 0; border-bottom: 0; }
.c2 { top: 100px; right: 28px; border-left: 0; border-bottom: 0; }
.c3 { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.c4 { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }
.scan-v { position: absolute; top: 0; bottom: 0; width: 1px; left: 0; background: linear-gradient(transparent, var(--cyan), transparent); opacity: .5; animation: scanx 9s linear infinite; z-index: -1; }
@keyframes scanx { to { transform: translateX(100vw); } }

/* ---------- Avatar sync ---------- */
.avsync { display: flex; gap: 64px; align-items: flex-start; flex-wrap: wrap; }
.avsync-copy { flex: 1 1 320px; min-width: 280px; }
.avsync-hud { margin-top: 30px; font-size: 12px; color: var(--muted); display: grid; grid-template-columns: 120px 1fr; row-gap: 12px; max-width: 360px; }
.avsync-hud strong { color: var(--text); font-weight: 500; }
.avsync-dots { display: flex; gap: 10px; margin-top: 26px; }
.avsync-dots button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; padding: 0; transition: border-color .2s, transform .2s; }
.avsync-dots button:hover { transform: scale(1.08); }
.avsync-dots button[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,229,255,.25); }
.avsync-frame { position: relative; flex: 0 0 280px; width: 280px; height: 360px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.avsync-frame .bracket { position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); opacity: .7; }
.avsync-frame .b1 { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.avsync-frame .b2 { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.avsync-frame .b3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.avsync-frame .b4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.avsync-portrait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .35s linear, filter .35s linear; }
.avsync-portrait span { font-family: "Space Grotesk", "Manrope"; font-size: 64px; font-weight: 700; color: rgba(255,255,255,.85); }
.avsync-frame.syncing .avsync-portrait { opacity: 0; filter: blur(16px); }
.avsync-scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, rgba(0,229,255,.22), transparent); pointer-events: none; opacity: 0; }
.avsync-frame.syncing .avsync-scan { opacity: 1; animation: avsyncScan 1s linear infinite; }
@keyframes avsyncScan { to { top: 100%; } }
.avsync-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 10px 14px; font-size: 11px; background: rgba(3,3,6,.72); border-top: 1px solid var(--line); }
.avsync-bar .accent.syncing { animation: pulse .5s linear infinite; }
@media (max-width: 760px) { .avsync-frame { width: 100%; flex-basis: auto; } }

/* ---------- Readout strip ---------- */
.readout { border-block: 1px solid var(--line); background: var(--bg-2); }
.readout-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.readout-cell { padding: 26px 28px; border-right: 1px solid var(--line); }
.readout-cell:last-child { border-right: 0; }
.readout-cell strong { display: block; font: 700 32px "Space Grotesk", "Manrope"; letter-spacing: -.03em; margin-top: 6px; }
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 28px; white-space: nowrap; }
.ticker-track span::before { content: "◆"; color: var(--cyan); margin-right: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.head h2 { font-size: clamp(38px, 6vw, 76px); margin-top: 14px; }
.sector { display: flex; align-items: center; gap: 14px; }
.sector::after { content: ""; flex: 1; min-width: 60px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: .5; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); background: var(--panel); isolation: isolate; display: block;
  transition: border-color .3s, box-shadow .3s;
}
.project:hover { border-color: rgba(0,229,255,.5); box-shadow: 0 0 60px -20px rgba(0,229,255,.6); }
.project:first-child { grid-row: span 2; aspect-ratio: auto; }
.project:first-child:only-child { grid-row: auto; aspect-ratio: 4/3; }
.project .art { position: absolute; inset: 0; z-index: -1; filter: grayscale(1) contrast(1.1); transition: filter .5s, transform .6s; }
.project .art video, .project .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project:hover .art { filter: none; transform: scale(1.04); }
/* A live CSS filter on a playing video forces per-frame software re-rendering instead of the
   cheap hardware video path — with several real videos in the grid that's a real scroll-jank
   source, so skip the grayscale treatment where the thumbnail is video, not a static image. */
.project .art:has(video) { filter: none; }
.project .art::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.a1 { background: radial-gradient(circle at 50% 40%, #8b5cf6 0, #2a1466 35%, #07060f 70%); }
.a2 { background: conic-gradient(from 200deg at 60% 50%, #00e5ff, #0a2540, #8b5cf6, #00e5ff); }
.a3 { background: radial-gradient(circle at 30% 70%, #00e5ff 0, #04303b 40%, #05050a 75%); }
.a4 { background: linear-gradient(135deg, #ff2bd6, #3b0a35 50%, #0a0612); }
.a5 { background: radial-gradient(ellipse at 70% 30%, #f5b041 0, #4a2a06 40%, #080605 75%); }
.project .orb {
  position: absolute; left: 50%; top: 45%; width: 38%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; z-index: -1;
  border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 0 60px rgba(255,255,255,.18), 0 0 80px rgba(0,229,255,.25);
  animation: spin 18s linear infinite;
}
.project .orb::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.3); }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
/* HUD brackets + scan sweep on hover */
.project .bracket { position: absolute; width: 26px; height: 26px; border: 2px solid var(--cyan); opacity: 0; transition: all .35s; z-index: 2; }
.project .b1 { top: 30px; left: 30px; border-right: 0; border-bottom: 0; }
.project .b2 { top: 30px; right: 30px; border-left: 0; border-bottom: 0; }
.project .b3 { bottom: 30px; left: 30px; border-right: 0; border-top: 0; }
.project .b4 { bottom: 30px; right: 30px; border-left: 0; border-top: 0; }
.project:hover .bracket { opacity: 1; }
.project:hover .b1 { top: 14px; left: 14px; } .project:hover .b2 { top: 14px; right: 14px; }
.project:hover .b3 { bottom: 14px; left: 14px; } .project:hover .b4 { bottom: 14px; right: 14px; }
.project .sweep { position: absolute; left: 0; right: 0; height: 30%; top: -30%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0,229,255,.18), transparent); border-bottom: 1px solid rgba(0,229,255,.6); }
.project:hover .sweep { animation: sweep 1.4s ease-in-out; }
@keyframes sweep { to { top: 100%; } }
.project .info {
  position: absolute; inset: auto 0 0 0; padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); z-index: 3;
}
.project h3 { font-size: 26px; margin-bottom: 6px; }
.project .tags { font-size: 14px; color: #c8cadb; }
.project .tag-id { position: absolute; top: 24px; left: 26px; z-index: 3; display: flex; gap: 12px; }
.project .tag-id em { font-style: normal; color: var(--cyan); opacity: 0; transition: opacity .3s; }
.project:hover .tag-id em { opacity: 1; animation: pulse .8s infinite; }
.show {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, transform .25s;
}
.project:hover .show { background: var(--cyan); border-color: var(--cyan); color: var(--bg); transform: rotate(-45deg); }

/* ---------- Statement ---------- */
.statement { border-top: 1px solid var(--line); padding-top: 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.statement h2 { font-size: clamp(34px, 4.6vw, 60px); }
.statement p { color: var(--muted); font-size: 19px; }
.statement p strong { color: var(--text); font-weight: 500; }

/* ---------- Services ---------- */
.services { margin-top: 90px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc {
  padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.025), transparent 60%); transition: border-color .3s, transform .3s;
}
.svc::before { /* holographic sheen that follows the mouse */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,.14), rgba(139,92,246,.08) 40%, transparent 70%);
}
.svc:hover { border-color: rgba(0,229,255,.4); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }
.svc .top-row { display: flex; justify-content: space-between; align-items: center; }
.svc .slash { font-family: var(--mono); color: var(--cyan); font-size: 14px; }
.svc .ring { width: 44px; height: 44px; border-radius: 50%; border: 1px dashed rgba(0,229,255,.45); display: grid; place-items: center; animation: spinr 14s linear infinite; }
.svc .ring::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); }
@keyframes spinr { to { transform: rotate(360deg); } }
.svc h3 { font-size: 38px; margin: 26px 0 14px; transition: color .2s; }
.svc:hover h3 { color: var(--cyan); text-shadow: var(--glow); }
.svc p { color: var(--muted); position: relative; }

/* ---------- Pipeline / terminal ---------- */
.pipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pipe-grid h2 { font-size: clamp(38px, 5.4vw, 68px); margin: 14px 0 22px; }
.pipe-grid > div > p { color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.steps { display: grid; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.step .n { font-family: var(--mono); color: var(--cyan); font-size: 14px; padding-top: 4px; }
.step b { font-family: "Space Grotesk", "Manrope"; font-size: 20px; font-weight: 500; display: block; }
.step span { color: var(--muted); font-size: 15px; }
.step::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--cyan); box-shadow: var(--glow); transition: width 1s ease; }
.steps.in .step::after { width: 100%; }
.steps.in .step:nth-child(2)::after { transition-delay: .3s; }
.steps.in .step:nth-child(3)::after { transition-delay: .6s; }
.steps.in .step:nth-child(4)::after { transition-delay: .9s; }
.terminal {
  background: rgba(12,12,20,.85); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0,229,255,.4); backdrop-filter: blur(8px);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a3a; }
.term-bar .mono { margin-left: auto; font-size: 11px; }
.term-body { font-family: var(--mono); font-size: 14px; line-height: 2; padding: 24px; min-height: 360px; color: #cfd2e6; white-space: pre-wrap; }
.term-body .ok { color: var(--cyan); }
.term-body .dim { color: #5b5e78; }
.caret { display: inline-block; width: 9px; height: 17px; background: var(--cyan); vertical-align: -3px; animation: pulse 1s steps(1) infinite; }

/* ---------- Plans ---------- */
#plans { padding-top: 40px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px; background: linear-gradient(160deg, rgba(255,255,255,.03), transparent 60%);
  transition: border-color .3s, transform .3s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(0,229,255,.4); }
.plan.featured { border-color: rgba(0,229,255,.45); box-shadow: 0 0 80px -30px rgba(0,229,255,.6); }
.plan.featured::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px 300px at 100% 0%, rgba(139,92,246,.22), transparent 70%), radial-gradient(400px 300px at 0% 100%, rgba(0,229,255,.1), transparent 70%);
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-badge { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--cyan); color: var(--bg); }
.plan-badge.ghost { background: none; color: var(--muted); border: 1px solid var(--line); }
.plan h3 { font-size: clamp(32px, 3.6vw, 44px); }
.plan > p { color: var(--muted); font-size: 17px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 6px 0 10px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: "◆"; color: var(--cyan); font-size: 10px; }
.plan-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border-radius: 999px;
  font: 500 17px "Space Grotesk", "Manrope"; border: 1px solid var(--cyan); color: var(--cyan); transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.plan-cta:hover { background: var(--cyan); color: var(--bg); box-shadow: var(--glow); transform: translateY(-2px); }
.plan-cta.solid { background: var(--cyan); color: var(--bg); box-shadow: var(--glow); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plan { padding: 30px 24px; } }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(rgba(139,92,246,.25), transparent 65%); pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; position: relative; }
.contact h2 { font-size: clamp(40px, 6vw, 80px); margin: 14px 0 28px; }
.contact .email { font-family: "Space Grotesk", "Manrope"; font-size: 24px; border-bottom: 1px solid var(--cyan); }
.contact .email:hover { color: var(--cyan); }
.radar { width: 180px; height: 180px; border-radius: 50%; margin-top: 48px; position: relative; border: 1px solid rgba(0,229,255,.25);
  background: repeating-radial-gradient(circle, transparent 0 29px, rgba(0,229,255,.18) 29px 30px); }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0,229,255,.45), transparent 25%); animation: spinr 3s linear infinite; }
.radar::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); top: 32%; left: 64%; animation: pulse 1.5s infinite; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
form label { display: grid; gap: 8px; }
input, textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; color: var(--text); font: inherit; font-size: 17px; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 1px 0 var(--cyan); }
textarea { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: inline-block; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 15px; color: var(--muted); transition: all .2s;
}
.chips label:hover span { border-color: var(--muted); color: var(--text); }
.chips input:checked + span { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.submit {
  justify-self: start; margin-top: 10px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--cyan); color: var(--bg); border: 0; border-radius: 999px; padding: 16px 30px;
  font: 500 17px "Space Grotesk", "Manrope"; cursor: pointer; box-shadow: var(--glow); transition: transform .2s, opacity .2s;
}
.submit:hover { transform: translateY(-2px); }
.submit:disabled { opacity: .5; }
.note { font-family: var(--mono); font-size: 12px; color: var(--cyan); min-height: 1em; }
.note.err { color: var(--magenta); }

footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .logo { font-size: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .8s, transform .8s, filter .8s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  .ticker-track, .grid-floor, .orb, .scan-v, .ring, .radar::before, .hud .bars i { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .projects, .statement, .services, .pipe-grid, .contact-grid { grid-template-columns: 1fr; }
  .project:first-child { grid-row: auto; aspect-ratio: 4/3; }
  .readout-grid { grid-template-columns: repeat(2, 1fr); }
  .readout-cell:nth-child(2) { border-right: 0; }
  .readout-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav-status .live { display: none; }
  .hud { text-align: left; }
  .hud-row, .hud .bars { justify-content: flex-start; }
  .radar { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 84px 0; }
  .nav-inner { height: 72px; }
  .menu-btn { width: 46px; height: 46px; }
  .logo { font-size: 32px; }
  .nav-status .pill { display: none; }
  .corner { display: none; }
  .project, .project:first-child { aspect-ratio: 4/5; }
  .project h3 { font-size: 22px; }
  .project .info { padding: 20px; }
  .readout-cell { padding: 20px 16px; }
  .readout-cell strong { font-size: 24px; }
  .svc { padding: 28px 24px; }
  .svc h3 { font-size: 30px; }
  form { grid-template-columns: 1fr; }
  .term-body { font-size: 12px; padding: 18px; }
  .contact .email { font-size: 19px; }
}

/* ---------- Language switch ---------- */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.03); }
.lang button {
  background: none; border: 0; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .1em;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--cyan); color: var(--bg); box-shadow: var(--glow); }
.lang button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 640px) { .lang button { padding: 7px 10px; } }
/* Macedonian words run longer: keep the hero headline inside the screen */
html[lang="mk"] .hero h1 { font-size: clamp(38px, 8.4vw, 136px); }

/* ---------- Hero CTAs + response-time promise ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font: 500 17px "Space Grotesk", "Manrope", sans-serif; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-solid { background: var(--cyan); color: var(--bg); box-shadow: var(--glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-solid:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.promise { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.promise::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3dffa8; box-shadow: 0 0 12px #3dffa8; animation: pulse 1.6s infinite; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font: 500 clamp(18px, 2.2vw, 22px) "Space Grotesk", "Manrope", sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--cyan); font-size: 20px; transition: transform .25s, border-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--cyan); }
.faq summary:hover { color: var(--cyan); }
.faq details p { color: var(--muted); font-size: 17px; padding: 0 60px 26px 0; }

/* ---------- Footer ---------- */
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 30px 0 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--text); opacity: .85; transition: color .2s, opacity .2s; }
.foot-grid a:hover { color: var(--cyan); opacity: 1; }
.foot-grid p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 280px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.foot-bottom button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(3,3,6,.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s;
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta a { justify-content: center; padding: 13px 10px; font-size: 15px; }
  body.has-sticky { padding-bottom: 76px; }
}

/* ---------- Breadcrumbs + simple pages (thanks, privacy, 404) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--cyan); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--text); }
.simple-page { padding: 150px 0 110px; position: relative; overflow: hidden; min-height: 70vh; }
.simple-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 80% 0%, rgba(139,92,246,.2), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(0,229,255,.08), transparent 70%);
}
.simple-page h1 { font-size: clamp(44px, 7vw, 96px); margin: 14px 0 22px; }
.simple-page .lead { color: var(--muted); font-size: 19px; max-width: 640px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 14px; letter-spacing: -.02em; }
.prose p, .prose li { color: #c9cbe0; font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px 0; max-width: 980px; }
.next-steps div { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(160deg, rgba(255,255,255,.03), transparent 60%); }
.next-steps b { display: block; font: 700 20px "Space Grotesk", "Manrope", sans-serif; margin: 8px 0 6px; }
.next-steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .next-steps { grid-template-columns: 1fr; } }
.big-code { font: 700 clamp(110px, 24vw, 260px) "Space Grotesk", "Manrope", sans-serif; letter-spacing: -.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(0,229,255,.6); text-shadow: 0 0 40px rgba(0,229,255,.25); }

/* Long texts written in both languages: show only the active one */
html[lang="mk"] [data-only="en"], html:not([lang="mk"]) [data-only="mk"] { display: none !important; }

/* ---------- Analytics consent ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 120; max-width: 420px; padding: 20px 22px; border-radius: 18px;
  background: rgba(12,12,20,.96); border: 1px solid var(--line); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); backdrop-filter: blur(12px);
}
.consent p { color: #c9cbe0; font-size: 14px; }
.consent p a { color: var(--cyan); text-decoration: underline; }
.consent .row { display: flex; gap: 8px; margin-top: 14px; }
.consent button { flex: 1; padding: 10px 14px; border-radius: 999px; font: 500 14px "Space Grotesk", "Manrope", sans-serif; cursor: pointer; border: 1px solid var(--line); background: none; color: var(--text); }
.consent button.yes { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
@media (max-width: 640px) { .consent { left: 10px; right: 10px; bottom: 86px; max-width: none; } }

/* the official address is long: let it wrap instead of overflowing on phones */
.contact .email, .contact-email { overflow-wrap: anywhere; }
