/* ============================================================
   HIMANSHU SHARMA — PORTFOLIO
   Palette: warm near-black ground · crimson accent (from the
   shooter asset) · steel details · warm off-white type.
   Type: Chakra Petch (display) · Archivo (body) · JetBrains Mono (data)
   ============================================================ */

:root {
  --bg: #0b0a09;
  --bg-elev: #14110f;
  --bg-panel: #100e0c;
  --line: rgba(242, 238, 232, 0.09);
  --line-strong: rgba(242, 238, 232, 0.18);

  --text: #f2eee8;
  --text-dim: #a89f94;
  --text-faint: #8a8177;

  --accent: #e0453e;
  --accent-strong: #b7332e;
  --accent-text: #ff8f83;
  --accent-soft: rgba(224, 69, 62, 0.12);

  --steel: #c9cdd3;
  --ok: #8fca8f;

  --display: "Chakra Petch", "Archivo", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 8px;
  --nav-h: 74px;
  --pad-x: clamp(20px, 5vw, 72px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

::selection { background: var(--accent-strong); color: #fff; }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-64px);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* Fixed dot-grid ground */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(242, 238, 232, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}

/* ============ NAV ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 110;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: background 0.35s, border-color 0.35s, height 0.35s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  height: 62px;
  background: rgba(11, 10, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-mark em { font-style: normal; color: var(--accent); }
.brand-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links + .nav-right { margin-left: 0; }

.web-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.hud-key { color: var(--text-faint); }
.hud-bar {
  width: 52px; height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.hud-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}
.hud-value { min-width: 44px; font-variant-numeric: tabular-nums; }
.web-hud.locked .hud-value { color: var(--accent-text); }
.web-hud.locked .hud-fill { background: var(--accent-text); }

/* Mobile disclosure menu */
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-menu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] summary span:nth-child(2) { opacity: 0; }
.nav-menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-menu-panel {
  position: absolute;
  right: 0; top: 46px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}
.nav-menu-panel a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 11px 14px;
  border-radius: 5px;
}
.nav-menu-panel a:hover { background: var(--accent-soft); color: var(--text); }

/* ============ WEB SVG OVERLAY ============ */
.web-svg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

.web-line { fill: none; stroke-linecap: round; }

.main-strand {
  stroke: rgba(248, 246, 242, 0.95);
  stroke-width: 3px;
  filter: drop-shadow(0 0 3px rgba(248, 246, 242, 0.7)) drop-shadow(0 0 12px rgba(224, 69, 62, 0.45));
}

.fiber-strand {
  stroke: rgba(248, 246, 242, 0.45);
  stroke-width: 1.1px;
  filter: drop-shadow(0 0 2px rgba(248, 246, 242, 0.35));
}

.nozzle-glow {
  fill: var(--accent-text);
  opacity: 0;
  filter: blur(4px);
}

.grip-line {
  fill: none;
  stroke: rgba(248, 246, 242, 0.9);
  stroke-width: 2px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(248, 246, 242, 0.6)) drop-shadow(0 0 9px rgba(224, 69, 62, 0.4));
}

.impact-ring {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.5px;
  opacity: 0;
}

/* Web nodes the strand threads through */
.web-node {
  position: absolute;
  top: 14px;
  left: var(--nx, 50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
  z-index: 3;
  transition: border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.web-node.lit {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 12px rgba(224, 69, 62, 0.65);
}

/* ============ SHARED ============ */
.scroll-container { position: relative; z-index: 4; }

section, .hero-section {
  position: relative;
  padding: clamp(90px, 13vh, 150px) var(--pad-x);
  scroll-margin-top: 70px;
}

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
  max-width: 56ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 6px 22px rgba(183, 51, 46, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(183, 51, 46, 0.45); background: #c53a34; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--steel); background: rgba(242, 238, 232, 0.04); }

.btn-small { padding: 9px 16px; font-size: 11.5px; }

.btn-meta {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}

.mono-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 143, 131, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.mono-link:hover { border-bottom-color: var(--accent-text); color: #ffb3a9; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 4px 10px;
  white-space: nowrap;
}
.tag-accent {
  color: var(--accent-text);
  border-color: rgba(224, 69, 62, 0.45);
  background: var(--accent-soft);
}

/* ============ HERO ============ */
.hero-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 30px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-copy { max-width: 660px; position: relative; z-index: 12; }

.hero-copy .eyebrow { color: var(--text-dim); }

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h1 em {
  font-style: normal;
  color: var(--accent-text);
  position: relative;
  white-space: nowrap;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 3px;
  background: var(--accent);
  transform: skewX(-18deg);
  opacity: 0.75;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-dim);
  max-width: 56ch;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.role-tags {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.role-tags-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.role-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.role-tags li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--steel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 13px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-avatar {
  width: 52px; height: 52px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
}
.mono-links { display: inline-flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.mono-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mono-links a:hover { color: var(--accent-text); }

.hero-visual {
  position: absolute;
  right: calc(-1 * var(--pad-x) + clamp(0px, 2vw, 40px));
  bottom: calc(-1 * clamp(90px, 13vh, 150px));
  top: auto;
  height: min(82vh, 860px);
  z-index: 11;
  pointer-events: none;
}
.hero-visual .hand {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(-18px 24px 44px rgba(0, 0, 0, 0.6));
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: var(--pad-x);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cue-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue-drop 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

/* ============ PROOF WALL ============ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1280px;
}

.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--accent);
}

.stat-value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-unit { font-size: 0.5em; color: var(--accent-text); font-weight: 500; }

.stat-label {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 30ch;
}

.stat-source {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-source::before { content: "// "; color: var(--accent); }

/* ============ CASE STUDIES ============ */
.work-section { max-width: 1420px; }

.case-study {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 70px);
}

.case-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.case-index {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  border: 1px solid rgba(224, 69, 62, 0.4);
  border-radius: 6px;
  padding: 8px 11px;
  margin-top: 6px;
  background: var(--accent-soft);
}

.case-head h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.case-tagline {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--text-dim);
}

.case-flags {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.case-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 54ch;
}

.beats { margin-top: 30px; display: grid; gap: 22px; }

.beat {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
}
.beat dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-top: 4px;
}
.beat dd {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.62;
}
.beat dd strong { color: var(--text); }

.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.metric-chips span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--steel);
  background: rgba(201, 205, 211, 0.07);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 9px;
  font-variant-numeric: tabular-nums;
}

.stack-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.stack-chips li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 4px 9px;
}

.case-links { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.deep-dive {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.deep-dive summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.deep-dive summary::-webkit-details-marker { display: none; }
.deep-dive summary::before {
  content: "+";
  font-size: 15px;
  color: var(--accent-text);
  transition: transform 0.25s;
}
.deep-dive[open] summary::before { transform: rotate(45deg); }
.deep-dive summary:hover { color: var(--text); }
.deep-dive ul {
  list-style: none;
  padding: 4px 20px 20px;
  display: grid;
  gap: 10px;
}
.deep-dive li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.deep-dive li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 3px;
}

/* Case visuals */
.case-visual { position: sticky; top: 96px; }
.case-visual figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

/* Terminal panel (Nexus) */
.terminal-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 232, 0.025);
}
.terminal-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.terminal-bar span:first-child { background: var(--accent); opacity: 0.75; }
.terminal-bar p {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.85;
  color: var(--text);
  overflow-x: auto;
}
.t-dim { color: var(--text-faint); }
.t-ok { color: var(--ok); }
.t-accent { color: var(--accent-text); }
.t-flag { color: var(--steel); }
.t-label {
  color: var(--steel);
  letter-spacing: 0.18em;
  font-size: 10.5px;
}
.t-cursor {
  color: var(--accent-text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Screenshot stack (NextFlow) */
.shot-stack {
  display: grid;
  gap: 10px;
}
.shot-stack img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shot-row img { border-radius: 6px; }

/* Pipeline panel (Vernacular) */
.pipeline-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.pipeline-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.pipeline { list-style: none; display: grid; }
.pipeline > li {
  position: relative;
  display: flex;
  justify-content: center;
}
.pipeline > li:not(:last-child)::after {
  content: "";
  display: block;
  position: static;
  width: 1px;
  height: 18px;
  background: linear-gradient(var(--line-strong), var(--accent));
  margin: 0 auto;
}
.pipeline > li { flex-direction: column; align-items: center; }
.pipe-split { flex-direction: row !important; gap: 12px; align-items: stretch !important; flex-wrap: wrap; justify-content: center; }
.pipe-split::after { display: none !important; }
.pipe-split + li::before {
  content: "";
  width: 1px; height: 18px;
  background: linear-gradient(var(--line-strong), var(--accent));
  margin: 0 auto;
  display: block;
}
.pipe-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(242, 238, 232, 0.03);
  border-radius: 6px;
  padding: 9px 16px;
  text-align: center;
}
.pipe-node em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.pipe-final {
  border-color: rgba(224, 69, 62, 0.55);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 0 24px rgba(224, 69, 62, 0.15);
}
.pipe-split .pipe-node { margin-bottom: 18px; position: relative; }
.pipe-split .pipe-node::after {
  content: "";
  position: absolute;
  bottom: -18px; left: 50%;
  width: 1px; height: 18px;
  background: var(--line-strong);
}
.pipeline-foot {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-faint);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ============ MORE BUILDS ============ */
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1280px;
}
.more-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s, transform 0.3s;
}
.more-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.more-card h3 { font-size: 1.25rem; font-weight: 600; }
.more-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.more-card > p:not(.more-tag):not(.case-links) {
  font-size: 14.5px;
  color: var(--text-dim);
}
.more-card .case-links { margin-top: auto; padding-top: 8px; }

.badge-finalist {
  position: absolute;
  top: -12px;
  right: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-strong);
  border-radius: 4px;
  padding: 5px 11px;
  box-shadow: 0 6px 18px rgba(183, 51, 46, 0.45);
}

/* ============ EXPERIENCE ============ */
.exp-section { max-width: 1160px; }

.timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 205px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line) 80%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 50px;
}

.tl-when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: right;
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.tl-body { position: relative; }
.tl-body::before {
  content: "";
  position: absolute;
  left: -29.5px;
  top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(224, 69, 62, 0.5);
}

.tl-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
.tl-body h3 span { color: var(--accent-text); }

.tl-body ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.tl-body li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
  max-width: 68ch;
}
.tl-body li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 2px;
  color: var(--accent);
  font-size: 12px;
}
.tl-body li strong { color: var(--text); }

.edu-row {
  margin-top: clamp(56px, 7vw, 84px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.edu-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.edu-card .eyebrow { margin-bottom: 10px; }
.edu-card h3 { font-size: 1.15rem; font-weight: 600; }
.edu-card p { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }
.edu-course { font-family: var(--mono); font-size: 12px !important; letter-spacing: 0.02em; }
.cert-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.cert-list li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.cert-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-family: var(--mono);
  font-size: 12px;
}

/* ============ SKILLS ============ */
.skills-section { max-width: 1280px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-group {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.skill-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.skill-group ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-group li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-group li:hover { border-color: var(--accent); color: var(--text); }

/* ============ PICK YOUR PATH ============ */
.path-section { max-width: 1280px; }
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.path-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: linear-gradient(180deg, rgba(224, 69, 62, 0.05), transparent 42%), var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.path-card:hover { border-color: rgba(224, 69, 62, 0.4); transform: translateY(-3px); }
.path-key {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.path-card > p:not(.path-key):not(.case-links) {
  color: var(--text-dim);
  font-size: 15px;
}
.path-card .case-links { margin-top: auto; gap: 22px; }

/* ============ FAQ ============ */
.faq-section { max-width: 880px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 4px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 19px;
  color: var(--accent-text);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item p {
  padding: 0 4px 24px;
  color: var(--text-dim);
  max-width: 66ch;
  font-size: 15.5px;
}
.faq-item a { color: var(--accent-text); }

/* ============ CONTACT / CATCH ============ */
.contact-section {
  padding-top: clamp(140px, 22vh, 260px);
  padding-bottom: 40px;
}

.catch-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 64px);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(224, 69, 62, 0.09), transparent),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: box-shadow 0.5s, border-color 0.5s;
}
.catch-card.locked {
  border-color: rgba(224, 69, 62, 0.35);
  box-shadow: 0 0 70px rgba(224, 69, 62, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.bracket {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--accent);
  opacity: 0.35;
  transition: opacity 0.4s, box-shadow 0.4s;
}
.bracket.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.bracket.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.bracket.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.bracket.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }
.catch-card.locked .bracket {
  opacity: 1;
  box-shadow: 0 0 14px rgba(224, 69, 62, 0.5);
}

.catch-eyebrow { margin-bottom: 20px; }
.lock-status { transition: color 0.3s; }

.catch-card h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }

.catch-sub {
  margin: 20px auto 0;
  color: var(--text-dim);
  max-width: 52ch;
}

.catch-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.catch-links {
  list-style: none;
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
}
.catch-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.catch-links a:hover { color: var(--accent-text); }

footer {
  margin-top: clamp(90px, 12vh, 140px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-nav a:hover { color: var(--text); }
footer > p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .case-body { grid-template-columns: 1fr; }
  .case-visual { position: static; max-width: 640px; }
  .hero-visual { opacity: 0.92; height: min(64vh, 700px); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .brand-name { display: none; }

  .proof-grid, .more-grid, .skills-grid, .path-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-row { grid-template-columns: 1fr; }

  .hero-visual {
    right: -18vw;
    height: min(52vh, 560px);
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
    mask-image: linear-gradient(90deg, transparent, #000 30%);
  }
  .hero-copy { max-width: 100%; }

  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 36px; }
  .tl-when { text-align: left; padding-top: 0; }
  .tl-body::before { left: -33px; top: -26px; }

  .web-node { --nx: clamp(12%, var(--nx, 50%), 88%); }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  body { font-size: 15.5px; }

  .web-hud .hud-bar { display: none; }
  .btn { padding: 13px 20px; }
  .btn-meta { display: none; }

  .proof-grid, .more-grid, .skills-grid, .path-grid { grid-template-columns: 1fr; }

  .beat { grid-template-columns: 1fr; gap: 6px; }
  .shot-row { grid-template-columns: 1fr 1fr; }
  .shot-row img:last-child { display: none; }

  .terminal-body { font-size: 11px; padding: 16px 16px 18px; }
  .pipeline-panel { padding: 20px 16px; }
  .pipe-split { gap: 8px; }
  .pipe-node { font-size: 11px; padding: 8px 10px; }

  .case-flags { margin-left: 0; }
  .hero-meta { align-items: flex-start; }
  .catch-links { flex-direction: column; align-items: center; gap: 12px; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ============ MOTION SAFETY ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .cue-line { animation: none; }
  .t-cursor { animation: none; }
  .web-svg { display: none; }
  .web-node { border-color: var(--accent); }
}

/* ============================================================
   EDGELIGHT PRODUCT PAGE STYLING
   ============================================================ */

body.edgelight-theme {
  --accent: #ffb32d;
  --accent-strong: #d98816;
  --accent-text: #ffd587;
  --accent-soft: rgba(255, 179, 45, 0.12);
}

/* Color theme mappings for interactive preview */
body.theme-plasma {
  --accent: #65e4ff;
  --accent-strong: #00add3;
  --accent-text: #b1f0ff;
  --accent-soft: rgba(101, 228, 255, 0.12);
}
body.theme-mint {
  --accent: #8dff9d;
  --accent-strong: #2bd845;
  --accent-text: #cdffb8;
  --accent-soft: rgba(141, 255, 157, 0.12);
}
body.theme-orchid {
  --accent: #ad7cff;
  --accent-strong: #7839db;
  --accent-text: #d8c2ff;
  --accent-soft: rgba(173, 124, 255, 0.12);
}
body.theme-edge {
  --accent: #ffb32d;
  --accent-strong: #d98816;
  --accent-text: #ffd587;
  --accent-soft: rgba(255, 179, 45, 0.12);
}

/* Screen indicator simulation */
.ambient-glow-border {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  border: 0px solid transparent;
  box-sizing: border-box;
  transition: border-width 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ambient-glow-border.active {
  border: 14px solid var(--accent);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6),
              inset 0 0 60px var(--accent-soft),
              0 0 40px var(--accent-soft);
  animation: border-pulse 2s infinite ease-in-out;
}

@keyframes border-pulse {
  0%, 100% {
    opacity: 0.95;
    border-width: 14px;
  }
  50% {
    opacity: 0.8;
    border-width: 16px;
    filter: drop-shadow(0 0 8px var(--accent));
  }
}

/* Interactive preview block */
.preview-console {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  margin: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 100;
}

.preview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title-row h4 {
  font-family: var(--display);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.preview-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s;
}

.preview-options {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.color-dot:hover {
  transform: scale(1.15);
}
.color-dot.active {
  border-color: var(--text);
  transform: scale(1.1);
}

.color-dot.dot-edge { background: #ffb32d; }
.color-dot.dot-plasma { background: #65e4ff; }
.color-dot.dot-mint { background: #8dff9d; }
.color-dot.dot-orchid { background: #ad7cff; }

.toggle-btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  transition: all 0.2s;
  text-align: center;
}
.toggle-btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 15px var(--accent-soft);
}
.toggle-btn.active {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Feature grid items on EdgeLight page */
.el-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1280px;
}

.el-feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.el-feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.el-feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--accent);
}

.el-feature-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.el-feature-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.el-icon {
  margin-bottom: 16px;
  color: var(--accent-text);
}

/* Scenario details wrapper */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.scenario-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.scenario-card p {
  font-size: 14.2px;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .el-features-grid, .scenarios-grid {
    grid-template-columns: 1fr;
  }
}

