/* ============================================================
   ANAND SINHA — Portfolio  ·  built on Ember v2
   ============================================================ */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease-out);
}

/* atmosphere: warm radial glows + grain, painted behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(var(--accent-rgb), .16), transparent 60%),
    radial-gradient(760px 520px at 6% 12%, rgba(var(--accent-rgb), .09), transparent 55%),
    radial-gradient(1000px 800px at 50% 118%, rgba(var(--accent-rgb), .10), transparent 60%);
  transition: background .5s var(--ease-out);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--text-inverse); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
.serif { font-family: var(--font-display); font-optical-sizing: auto; }
.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(72px, 12vh, 150px); position: relative; }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .18em;
}
.section-head h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-top: 10px;
}
.section-head p {
  color: var(--text-secondary);
  max-width: 56ch;
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 17px);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent-bright); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(var(--accent-rgb), .55);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.cursor-ring.hovering {
  width: 62px; height: 62px;
  background: rgba(var(--accent-rgb), .10);
  border-color: transparent;
}
@media (hover: none), (max-width: 860px) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: padding .35s var(--ease-out), background .35s var(--ease-out), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 12px;
  background: rgba(18, 13, 10, .72);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-accent);
  box-shadow: var(--glow);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-inverse);
  font-size: 17px;
  transition: transform .4s var(--ease-out);
}
.brand:hover .mark { transform: rotate(-8deg) scale(1.05); }
.brand .who b { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand .who span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* accent toggle (amber / coral) */
.accent-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  background: var(--surface-1);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.accent-toggle button {
  width: 22px; height: 22px;
  border: 0; border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform .2s var(--ease-out);
}
.accent-toggle button[data-accent="amber"] { background: linear-gradient(135deg, #FAC784, #E4632B); }
.accent-toggle button[data-accent="coral"] { background: linear-gradient(135deg, #F39A90, #D23F3C); }
.accent-toggle button:hover { transform: scale(1.15); }
.accent-toggle button.on { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px var(--text-primary); }

.btn {
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--grad-accent); color: var(--text-inverse); box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 46px rgba(var(--accent-rgb), .5); }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--accent); }
.btn:active { transform: scale(.96); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text-primary); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav-links, .nav-actions .btn span, .accent-toggle { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu.open ~ * { }
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(18, 13, 10, .96);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(34px, 10vw, 60px);
  font-weight: 400;
  letter-spacing: -.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  transition: color .2s, padding-left .3s var(--ease-out);
}
.mobile-menu a:hover { color: var(--accent-soft); padding-left: 14px; }
.mobile-menu .m-accents { display: flex; gap: 14px; margin-top: 30px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
#stream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .9;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(24px, 3.5vw, 52px);
  align-items: stretch;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy .kicker { margin-bottom: clamp(24px, 3vh, 40px); }
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(74px, 15.5vw, 232px);
  line-height: .82;
  letter-spacing: -.04em;
}
.hero-title em {
  font-style: italic;
  font-weight: 340;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-sub {
  margin-top: clamp(26px, 3.4vh, 42px);
  max-width: 44ch;
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--text-secondary);
}
.hero-sub b { color: var(--text-primary); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; margin-top: clamp(30px, 4vh, 48px); flex-wrap: wrap; }

/* floating glass stat card */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-xl);
  padding: clamp(18px, 1.6vw, 26px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: min(72vh, 620px);
}
@media (max-width: 900px) { .hero-card { min-height: 0; } }
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 12% 8%, rgba(var(--accent-rgb), .22), transparent 46%);
  pointer-events: none;
}
.hero-card .portrait {
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 4/4.4;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: var(--r-lg);
  filter: grayscale(1) contrast(1.05) brightness(.82);
  transition: filter .7s var(--ease-out);
}
@media (max-width: 900px) { .hero-card .portrait { flex: none; } }
.hero-card:hover .portrait { filter: grayscale(0) contrast(1.05) brightness(1); }
.hero-card .cap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(16px, 1.4vw, 22px);
  position: relative;
}
.hero-card .cap .big { font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 38px); font-weight: 500; line-height: 1; }
.hero-card .cap .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--text-muted); text-transform: uppercase; }
.hero-card .status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--success);
  background: var(--success-soft); padding: 5px 11px; border-radius: var(--r-pill);
}
.hero-card .status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(79, 208, 138, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 208, 138, .55); }
  70% { box-shadow: 0 0 0 8px rgba(79, 208, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 208, 138, 0); }
}
.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: 26px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue .bar { width: 40px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: sweep 2.4s var(--ease-io) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .015);
}
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-secondary);
  padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee-track span::after { content: "◆"; color: var(--accent); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   METRICS
   ============================================================ */
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
@media (max-width: 760px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric { background: var(--bg); padding: 32px 28px; transition: background .3s; position: relative; }
.metric:hover { background: var(--surface-1); }
.metric .num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}
.metric .num .unit { color: var(--accent-soft); }
.metric .lbl { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.metric .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-lead {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.24;
  letter-spacing: -.015em;
}
.about-lead em { font-style: italic; color: var(--accent-soft); }
.about-body p { color: var(--text-secondary); margin-bottom: 18px; font-size: 16px; }
.about-body p:last-child { margin-bottom: 0; }

/* ============================================================
   EXPERTISE
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-card {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.exp-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px 200px at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .14), transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.exp-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .35); box-shadow: var(--shadow-lg); }
.exp-card:hover::after { opacity: 1; }
.exp-card .ico {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .25);
  display: grid; place-items: center;
  color: var(--accent-soft);
  margin-bottom: 22px;
}
.exp-card .ico svg { width: 26px; height: 26px; }
.exp-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 10px; }
.exp-card p { color: var(--text-secondary); font-size: 15px; }
.exp-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: .2s;
}
.chip:hover { border-color: var(--accent); color: var(--text-primary); }

.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.skills-cloud .chip { font-size: 12px; padding: 9px 16px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; margin-left: 8px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--line) 70%);
}
.tl-item { position: relative; padding-left: 48px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line);
  transition: .3s;
}
.tl-item.present .tl-node { background: var(--grad-accent); border-color: transparent; box-shadow: var(--glow); }
.tl-item:hover .tl-node { border-color: var(--accent); transform: scale(1.25); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 4px; }
.tl-head .co { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: -.01em; }
.tl-head .when {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--text-muted); text-transform: uppercase;
}
.tl-role { color: var(--accent-soft); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.tl-card {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.tl-item:hover .tl-card { border-color: rgba(var(--accent-rgb), .28); transform: translateX(4px); }
.tl-card ul { list-style: none; display: grid; gap: 10px; }
.tl-card li { display: flex; gap: 12px; color: var(--text-secondary); font-size: 15px; }
.tl-card li::before { content: "▹"; color: var(--accent); flex: none; }
.tl-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--text-muted);
}
.tl-item.present .tl-badge { background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .3); color: var(--accent-soft); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.cert-badge {
  position: relative;
  padding: 26px 30px;
  border: 1.5px solid rgba(var(--accent-rgb), .3);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02);
}
.cert-badge .x {
  position: absolute; top: -16px; right: -16px;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-accent); color: var(--text-inverse);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  box-shadow: var(--glow);
}
.cert-badge .t { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); }
.cert-badge .h { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-top: 6px; max-width: 20ch; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr; } }
.cert {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.cert:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .35); }
.cert .badge-dot { width: 30px; height: 30px; border-radius: 9px; background: rgba(var(--accent-rgb), .14); display: grid; place-items: center; color: var(--accent-soft); }
.cert .badge-dot svg { width: 17px; height: 17px; }
.cert b { font-size: 14px; font-weight: 700; }
.cert span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-muted); text-transform: uppercase; }

/* ============================================================
   CONSOLE (interactive terminal)
   ============================================================ */
.console-shell {
  background: rgba(12, 8, 5, .7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.console-bar .dots { display: flex; gap: 7px; }
.console-bar .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.console-bar .dots i:nth-child(1) { background: #F16A5A; }
.console-bar .dots i:nth-child(2) { background: #F7B25C; }
.console-bar .dots i:nth-child(3) { background: #4FD08A; }
.console-bar .title { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .1em; margin-left: 8px; }
.console-hint { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.console-body {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 22px;
  height: 340px;
  overflow-y: auto;
  cursor: text;
}
.console-body::-webkit-scrollbar { width: 8px; }
.console-body::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
.console-line { white-space: pre-wrap; word-break: break-word; }
.console-line .prompt { color: var(--accent); }
.console-line .cmd { color: var(--text-primary); }
.console-line.out { color: var(--text-secondary); }
.console-line.out .hl { color: var(--accent-soft); }
.console-line.out .ok { color: var(--success); }
.console-input-line { display: flex; align-items: center; gap: 8px; }
.console-input-line .prompt { color: var(--accent); }
.console-input {
  flex: 1;
  background: none; border: 0; outline: 0;
  font-family: var(--font-mono); font-size: 13.5px;
  color: var(--text-primary);
  caret-color: var(--accent);
}
.console-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.console-quick button {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-1); border: 1px solid var(--line);
  color: var(--text-secondary); padding: 7px 13px; border-radius: var(--r-pill);
  cursor: pointer; transition: .2s;
}
.console-quick button:hover { border-color: var(--accent); color: var(--text-primary); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(48px, 11vw, 150px);
  line-height: .9;
  letter-spacing: -.03em;
}
.contact h2 em { font-style: italic; }
.contact p { color: var(--text-secondary); max-width: 44ch; margin: 22px auto 0; font-size: 17px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: .25s var(--ease-out);
}
.contact-links a:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); transform: translateY(-3px); }
.contact-links a svg { width: 16px; height: 16px; }
.contact-links a.primary { background: var(--grad-accent); color: var(--text-inverse); border-color: transparent; box-shadow: var(--glow); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer .fb { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.footer .meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

.hero-reveal > * { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease-out) forwards; }
.hero-reveal > *:nth-child(1) { animation-delay: .15s; }
.hero-reveal > *:nth-child(2) { animation-delay: .28s; }
.hero-reveal > *:nth-child(3) { animation-delay: .40s; }
.hero-reveal > *:nth-child(4) { animation-delay: .52s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-card-reveal { opacity: 0; transform: translateY(30px) scale(.97); animation: heroIn 1s var(--ease-out) .5s forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-reveal > *, .hero-card-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee-track { animation: none; }
  #stream-canvas { display: none; }
}
