/* ══════════════════════════════════════════════
   FARHAN BIN FAZIL — dark cyber-luxury portfolio
   ══════════════════════════════════════════════ */

:root {
  --bg: #04070c;
  --bg-2: #070c14;
  --panel: rgba(13, 22, 34, 0.55);
  --line: rgba(120, 200, 255, 0.10);
  --text: #e9f2f6;
  --muted: #87a0b2;
  --green: #00ff9c;
  --green-dim: rgba(0, 255, 156, 0.12);
  --cyan: #37d5ff;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: #02150c; }

.mono { font-family: var(--font-mono); }

img { max-width: 100%; display: block; }

/* ── Preloader ─────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-terminal { width: min(480px, 86vw); font-family: var(--font-mono); }
.preloader-lines { min-height: 120px; font-size: 13px; color: var(--muted); }
.preloader-lines .ok { color: var(--green); }
.preloader-lines div { margin-bottom: 4px; }
.preloader-bar {
  height: 3px; background: rgba(255,255,255,.07);
  border-radius: 99px; overflow: hidden; margin-top: 18px;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .25s ease;
}
.preloader-percent { margin-top: 10px; font-size: 12px; color: var(--green); text-align: right; }

/* ── Cursor ────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--green); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 255, 156, .45);
  transition: width .25s, height .25s, border-color .25s, background .25s;
}
.cursor-ring.grow {
  width: 64px; height: 64px;
  background: rgba(0, 255, 156, .06);
  border-color: rgba(0, 255, 156, .8);
}
@media (hover: none), (max-width: 820px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Scroll progress ───────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 900;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px rgba(0,255,156,.6);
}

/* ── Nav ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: transform .45s var(--ease-out), background .35s, backdrop-filter .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(4, 7, 12, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.hidden { transform: translateY(-110%); }
.nav-logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 20px;
  color: var(--text); text-decoration: none; letter-spacing: 1px;
}
.nav-logo-bracket { color: var(--green); }
.nav-logo-cursor { color: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .4px; transition: color .25s;
  position: relative;
}
.nav-links a span { color: var(--green); font-family: var(--font-mono); font-size: 11px; margin-right: 2px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--green); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-burger { display: none; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 99px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s;
  will-change: transform;
}
.btn-solid {
  background: var(--green); color: #02150c;
  box-shadow: 0 0 0 rgba(0,255,156,0);
}
.btn-solid:hover { box-shadow: 0 8px 40px rgba(0,255,156,.35); }
.btn-arrow { transition: transform .3s var(--ease-out); }
.btn-solid:hover .btn-arrow { transform: translateX(5px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(233,242,246,.2);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.nav-cta { padding: 10px 22px; font-size: 14px; }

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 90, 60, .18), transparent),
              radial-gradient(ellipse 60% 50% at 85% 110%, rgba(0, 120, 160, .12), transparent),
              var(--bg);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,200,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,200,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 120px 20px 80px; max-width: 1000px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); margin-bottom: 34px;
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,255,156,.5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,156,.5); }
  70% { box-shadow: 0 0 0 10px rgba(0,255,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,156,0); }
}
.hero-title {
  font-size: clamp(46px, 9.5vw, 118px);
  font-weight: 700; line-height: .98; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero-title-accent {
  background: linear-gradient(100deg, var(--green) 10%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(0,255,156,.25));
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 20px); color: var(--text);
  min-height: 1.8em; margin-bottom: 22px;
}
.hero-sub-prompt { color: var(--green); margin-right: 8px; }
.typed-caret { color: var(--green); animation: blink 1s steps(1) infinite; font-weight: 400; }
.hero-desc {
  max-width: 620px; margin: 0 auto 38px; color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17.5px);
}
.hero-desc strong { color: var(--text); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; max-width: 780px; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: 34px;
}
.hero-stat-num {
  font-size: clamp(26px, 4vw, 40px); font-weight: 700;
  font-family: var(--font-mono); color: var(--green);
  text-shadow: 0 0 24px rgba(0,255,156,.35);
}
.hero-stat-label { font-size: 12.5px; color: var(--muted); letter-spacing: .4px; margin-top: 4px; }
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; z-index: 2;
}
.hero-scroll-line {
  width: 1px; height: 44px; overflow: hidden; position: relative;
  background: rgba(233,242,246,.12);
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--green); animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 110%; } }

/* ── Marquee ───────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; padding: 20px 0;
  transform: none;
}
.marquee-track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 4px;
  color: rgba(233,242,246,.5);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track i { color: var(--green); font-style: normal; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────── */
.section {
  padding: clamp(90px, 12vw, 150px) clamp(20px, 6vw, 80px);
  max-width: 1280px; margin: 0 auto;
}
.section-wide { max-width: none; padding-right: 0; }
.section-head { margin-bottom: clamp(44px, 6vw, 70px); }
.section-index {
  color: var(--green); font-size: 13px; letter-spacing: 4px;
  display: inline-block; margin-bottom: 16px;
}
.section-index::before { content: '// '; opacity: .6; }
.section-title {
  font-size: clamp(34px, 5.6vw, 64px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--muted); margin-top: 16px; max-width: 560px; font-size: 16px; }

/* ── About ─────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.about-photo-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform-style: preserve-3d;
}
.about-photo-frame img { filter: saturate(.95) contrast(1.05); transition: transform .6s var(--ease-out); }
.about-photo-frame:hover img { transform: scale(1.04); }
.about-photo-scanline {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,255,156,.03) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.about-photo-scanline::after {
  content: ''; position: absolute; left: 0; right: 0; height: 90px; top: -90px;
  background: linear-gradient(180deg, transparent, rgba(0,255,156,.14), transparent);
  animation: scan 4.5s linear infinite;
}
@keyframes scan { to { top: 110%; } }
.about-photo-corners i {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--green); opacity: .9;
}
.about-photo-corners i:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.about-photo-corners i:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.about-photo-corners i:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.about-photo-corners i:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.about-badges { display: grid; gap: 14px; margin-top: 22px; }
.about-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.about-badge-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--green-dim); border-radius: 10px; font-size: 18px;
  color: var(--green);
}
.about-badge strong { display: block; font-size: 15px; }
.about-badge small { color: var(--muted); font-size: 12.5px; }
.about-text p { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; max-width: 60ch; }
.about-text p strong { color: var(--text); }

/* terminal */
.terminal {
  background: #060a10; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; } .t-dot.yellow { background: #febc2e; } .t-dot.green { background: #28c840; }
.terminal-title { margin-left: 10px; font-size: 12px; color: var(--muted); }
.terminal-body { padding: 20px 22px; font-size: 13.5px; line-height: 1.9; }
.t-prompt { color: var(--green); margin-right: 8px; }
.t-out { color: var(--muted); padding-left: 18px; }
.t-green { color: var(--green); }

/* journey */
.journey { margin-top: 34px; display: grid; gap: 0; }
.journey-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 0 16px 4px; position: relative;
}
.journey-item:not(:last-child)::after {
  content: ''; position: absolute; left: 9px; top: 40px; bottom: -8px;
  width: 1px; background: linear-gradient(var(--line), rgba(0,255,156,.3));
}
.journey-marker {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 6px;
  border: 2px solid var(--muted); flex-shrink: 0; background: var(--bg);
}
.journey-marker.active {
  border-color: var(--green); background: var(--green);
  box-shadow: 0 0 16px rgba(0,255,156,.6);
}
.journey-item strong { font-size: 15.5px; display: block; }
.journey-item small { color: var(--muted); font-size: 13px; }

/* ── Ventures ──────────────────────────────── */
.ventures-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.venture-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 28px;
  text-decoration: none; color: var(--text);
  backdrop-filter: blur(10px);
  transition: border-color .35s, box-shadow .35s, transform .2s;
  transform-style: preserve-3d; will-change: transform;
  overflow: hidden;
}
.venture-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0,255,156,.08), transparent 45%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.venture-card:hover::before { opacity: 1; }
.venture-card:hover { border-color: rgba(0,255,156,.35); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.venture-card.flagship { border-color: rgba(0,255,156,.28); background: linear-gradient(160deg, rgba(0,255,156,.06), var(--panel) 55%); }
.venture-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 10px; letter-spacing: 2.5px; color: var(--green);
  border: 1px solid rgba(0,255,156,.35); padding: 4px 10px; border-radius: 99px;
}
.venture-logo { height: 46px; width: auto; object-fit: contain; align-self: flex-start; }
.venture-logo.small { height: 42px; }
.venture-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--green-dim); color: var(--green);
  border-radius: 12px; font-size: 19px;
}
.venture-card h3 { font-size: 20px; letter-spacing: -.01em; }
.venture-card p { color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.venture-link { color: var(--green); font-size: 12.5px; letter-spacing: .5px; }
.venture-link i { font-style: normal; display: inline-block; transition: transform .3s var(--ease-out); }
.venture-card:hover .venture-link i { transform: translate(3px, -3px); }

/* channels */
.channels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.channel-card {
  display: flex; align-items: center; gap: 22px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 30px;
  text-decoration: none; color: var(--text);
  transition: border-color .35s, box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.channel-card:hover { border-color: rgba(255, 60, 60, .45); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.channel-play {
  width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 16px; font-size: 20px;
  background: rgba(255,60,60,.12); color: #ff5252;
}
.channel-play.alt { background: var(--green-dim); color: var(--green); }
.channel-kicker { font-size: 10.5px; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; }
.channel-card h3 { font-size: 20px; margin-bottom: 4px; }
.channel-card p { color: var(--muted); font-size: 14px; }
.channel-arrow { margin-left: auto; font-size: 22px; color: var(--muted); transition: transform .3s var(--ease-out), color .3s; }
.channel-card:hover .channel-arrow { transform: translate(4px, -4px); color: var(--green); }

/* ── Impact ────────────────────────────────── */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.impact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: border-color .35s, box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.impact-card:hover { border-color: rgba(0,255,156,.3); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.impact-img { height: 200px; overflow: hidden; background: #0a1018; }
.impact-img.dark { display: grid; place-items: center; padding: 30px; }
.impact-img.dark img { height: 120px; width: auto; object-fit: contain; }
.impact-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.impact-card:hover .impact-img img { transform: scale(1.07); }
.impact-body { padding: 26px 26px 30px; }
.impact-num { color: var(--green); font-size: 12px; letter-spacing: 2px; }
.impact-body h3 { font-size: 19px; margin: 10px 0 8px; }
.impact-body p { color: var(--muted); font-size: 14.5px; }

/* ── Press ─────────────────────────────────── */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.press-card {
  border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--panel);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .35s, box-shadow .35s;
}
.press-card:hover { border-color: rgba(0,255,156,.3); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.press-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .7s var(--ease-out); }
.press-card:hover img { transform: scale(1.06); }
.press-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(4,7,12,.92));
  display: flex; flex-direction: column;
}
.press-card figcaption strong { font-size: 16px; }
.press-card figcaption span { color: var(--muted); font-size: 12.5px; }
.press-logos {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line);
}
.press-logos-label { font-size: 11px; letter-spacing: 3px; color: var(--muted); }
.press-logos img {
  height: 30px; width: auto; object-fit: contain;
  filter: grayscale(1) brightness(1.6) opacity(.55);
  transition: filter .3s;
}
.press-logos img:hover { filter: none; }

/* ── Gallery ───────────────────────────────── */
.section-wide .section-head { max-width: 1280px; margin-left: auto; margin-right: auto; padding-right: clamp(20px, 6vw, 80px); }
.gallery-hint { letter-spacing: 3px; font-size: 12px; }
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 26px clamp(20px, 6vw, 80px);
  scroll-snap-type: x proximity; cursor: grab;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-item {
  flex: 0 0 auto; width: clamp(240px, 30vw, 400px); height: clamp(300px, 36vw, 460px);
  border-radius: 18px; overflow: hidden; position: relative;
  border: 1px solid var(--line); scroll-snap-align: start;
  background: #0a1018;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s;
  filter: saturate(.9);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 18px 16px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(transparent, rgba(4,7,12,.94));
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .4s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; transform: none; }

/* ── Contact ───────────────────────────────── */
.contact {
  position: relative; text-align: center;
  padding: clamp(110px, 15vw, 190px) 20px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 100%, rgba(0, 255, 156, .07), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact-inner { position: relative; z-index: 1; }
.contact-title {
  font-size: clamp(38px, 7.5vw, 90px); font-weight: 700;
  line-height: 1.02; letter-spacing: -.02em; margin: 20px 0 22px;
}
.contact-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-sub { color: var(--muted); font-size: 17px; margin-bottom: 44px; }
.email-pill {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid rgba(0,255,156,.35);
  color: var(--text); border-radius: 99px;
  padding: 18px 32px; font-size: clamp(14px, 2.4vw, 18px);
  cursor: pointer; transition: box-shadow .35s, border-color .35s, transform .3s var(--ease-out);
  backdrop-filter: blur(8px);
}
.email-pill:hover { border-color: var(--green); box-shadow: 0 12px 50px rgba(0,255,156,.22); }
.email-pill-icon { color: var(--green); font-size: 20px; }
.socials { display: flex; gap: 16px; justify-content: center; margin-top: 44px; }
.socials a {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  color: var(--muted); transition: color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.socials a:hover {
  color: var(--green); border-color: var(--green);
  box-shadow: 0 0 26px rgba(0,255,156,.25);
}

/* ── Footer ────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 26px clamp(20px, 6vw, 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 12.5px; color: var(--muted); flex-wrap: wrap;
}
.footer-mid { opacity: .6; }
.footer-top { color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-top:hover { color: var(--green); }

/* ── Lightbox ──────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(2, 4, 8, .93); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 78vh;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  transform: scale(.94); transition: transform .35s var(--ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox-caption { margin-top: 18px; color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.lightbox-close {
  position: absolute; top: 26px; right: 30px;
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 46px; height: 46px; border-radius: 50%; font-size: 16px; cursor: pointer;
  transition: border-color .3s, color .3s, transform .3s;
}
.lightbox-close:hover { border-color: var(--green); color: var(--green); transform: rotate(90deg); }

/* ── Reveal animations ─────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; }
  .channels-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    background: rgba(4, 7, 12, .97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; z-index: 850; }
  .nav-links a { font-size: 22px; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px; z-index: 860;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span {
    width: 26px; height: 2px; background: var(--text);
    transition: transform .35s var(--ease-out), opacity .3s;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════
   V2 — server-powered + premium enhancements
   ══════════════════════════════════════════════ */

/* ── Hero aurora ───────────────────────────── */
.hero-aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  mix-blend-mode: screen; will-change: transform;
}
.aurora-blob.a1 {
  width: 46vw; height: 46vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle, rgba(0,255,156,.55), transparent 62%);
  animation: floatA 18s ease-in-out infinite;
}
.aurora-blob.a2 {
  width: 40vw; height: 40vw; right: -6vw; top: 10vw;
  background: radial-gradient(circle, rgba(55,213,255,.45), transparent 62%);
  animation: floatB 22s ease-in-out infinite;
}
.aurora-blob.a3 {
  width: 34vw; height: 34vw; left: 30vw; bottom: -12vw;
  background: radial-gradient(circle, rgba(120,90,255,.32), transparent 62%);
  animation: floatC 26s ease-in-out infinite;
}
@keyframes floatA { 50% { transform: translate(14vw, 8vw) scale(1.15); } }
@keyframes floatB { 50% { transform: translate(-12vw, 10vw) scale(1.1); } }
@keyframes floatC { 50% { transform: translate(8vw, -10vw) scale(1.2); } }

/* ── Hero chip row + live chip ─────────────── */
.hero-chip-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-chip-row .hero-chip { margin-bottom: 0; }
.live-chip { border-color: rgba(0,255,156,.28); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff5252;
  box-shadow: 0 0 0 0 rgba(255,82,82,.5); animation: pulseRed 1.6s infinite;
}
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255,82,82,.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,82,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,82,82,0); }
}
#liveViews { color: var(--green); font-weight: 700; }

/* ── Interactive terminal ──────────────────── */
.terminal-hint { margin-left: auto; font-size: 11px; color: var(--muted); opacity: .8; }
.terminal-hint b { color: var(--green); font-weight: 700; }
.terminal { cursor: text; }
.t-dim { opacity: .7; }
.t-dim b, .t-out b { color: var(--green); font-weight: 700; }
.terminal-body { max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0,255,156,.3) transparent; }
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0,255,156,.3); border-radius: 99px; }
.t-line { animation: tLineIn .25s var(--ease-out); }
@keyframes tLineIn { from { opacity: 0; transform: translateY(4px); } }
.t-cmd { color: var(--text); }
.t-err { color: #ff6b6b; }
.t-link { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed rgba(55,213,255,.5); }
.t-link:hover { color: var(--green); border-color: var(--green); }
.terminal-input-line {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 22px 20px; font-size: 13.5px;
}
.terminal-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono); font-size: 13.5px;
  caret-color: transparent; padding: 0;
}
.terminal-input-line .typed-caret { margin-left: -8px; }
.terminal-input-line.typing .typed-caret { animation: none; opacity: 1; }

/* ── Contact form ──────────────────────────── */
.contact-form {
  max-width: 620px; margin: 0 auto 8px; text-align: left;
  display: grid; gap: 26px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cf-field { position: relative; }
.cf-field input, .cf-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(233,242,246,.18);
  color: var(--text); font-family: var(--font-display); font-size: 16px;
  padding: 12px 2px; outline: none; resize: vertical;
  transition: border-color .3s;
}
.cf-field textarea { min-height: 90px; }
.cf-field label {
  position: absolute; left: 2px; top: 12px; color: var(--muted);
  font-size: 16px; pointer-events: none;
  transition: transform .3s var(--ease-out), color .3s, font-size .3s;
}
.cf-field input:focus + label,
.cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label,
.cf-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px); font-size: 12px; color: var(--green);
}
.cf-line {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .35s var(--ease-out);
}
.cf-field input:focus ~ .cf-line,
.cf-field textarea:focus ~ .cf-line { width: 100%; }
.cf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit { justify-self: start; }
.cf-submit.loading { opacity: .7; pointer-events: none; }
.cf-submit.sent { background: var(--cyan); }
.cf-status { font-size: 13px; min-height: 1.2em; margin-top: -8px; }
.cf-status.ok { color: var(--green); }
.cf-status.err { color: #ff6b6b; }
.contact-or { margin: 26px 0 18px; }
.contact-or span { color: var(--muted); font-size: 12px; letter-spacing: 2px; opacity: .7; }

/* ── Matrix rain overlay ───────────────────── */
.matrix-canvas {
  position: fixed; inset: 0; z-index: 940;
  pointer-events: none; opacity: 0;
  transition: opacity .5s;
}
.matrix-canvas.on { opacity: 1; pointer-events: auto; }

/* ── Responsive tweaks ─────────────────────── */
@media (max-width: 620px) {
  .cf-row { grid-template-columns: 1fr; }
  .terminal-hint { display: none; }
}
