/* ════════════════════════════════════════════════════════════
   RUNTIME — Intiser Ahmed
   On-device inference console aesthetic
   ════════════════════════════════════════════════════════════ */

:root {
  /* console (dark) — default */
  --bg:        #0c0e0b;
  --bg-1:      #121410;
  --bg-2:      #181b15;
  --bg-3:      #1f231b;
  --ink:       #edf0e6;
  --ink-2:     #c2c8b6;
  --muted:     #7e8573;
  --muted-2:   #545a49;
  --line:      rgba(237,240,230,0.10);
  --line-2:    rgba(237,240,230,0.055);
  --line-3:    rgba(237,240,230,0.03);
  --signal:    #c8f24e;
  --signal-ink:#0c0e0b;
  --signal-dim:rgba(200,242,78,0.14);
  --signal-glow:rgba(200,242,78,0.40);

  --led-live:  #5fd07a;
  --led-prod:  #5fa8e0;
  --led-beta:  #e3b25a;
  --led-wip:   #8e94a0;

  --grad-cell: 64px;
  --row-pad:   24px;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

[data-mode="paper"] {
  --bg:        #e9e7df;
  --bg-1:      #f1efe8;
  --bg-2:      #f7f5ef;
  --bg-3:      #ffffff;
  --ink:       #141611;
  --ink-2:     #36392f;
  --muted:     #6f7361;
  --muted-2:   #9a9d8c;
  --line:      rgba(20,22,17,0.13);
  --line-2:    rgba(20,22,17,0.07);
  --line-3:    rgba(20,22,17,0.04);
  --signal-ink:#141611;
  --signal-dim:rgba(0,0,0,0.05);
  --signal-glow:rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}



a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--signal); color: var(--signal-ink); }

.shell { position: relative; z-index: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* mono label */
.lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sig { color: var(--signal); }

/* ════ STATUS BAR (menu-bar metaphor) ════ */
.statusbar {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.statusbar-in {
  max-width: 1200px; margin: 0 auto;
  height: 46px; padding: 0 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px;
}
.sb-left { display: flex; align-items: center; gap: 14px; }
.sb-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
}
.sb-logo b { color: var(--ink); }
.sb-logo span { color: var(--muted); }
.sb-glyph {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--signal);
  color: var(--signal);
  font-size: 10px; font-weight: 700;
  position: relative;
}
.sb-glyph::after {
  content: ""; position: absolute; inset: -1px;
  box-shadow: 0 0 8px var(--signal-glow);
}
.sb-center {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sb-status {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-2);
}
.sb-status .led { --c: var(--led-live); }
.sb-clock { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sb-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.sb-right a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); padding: 6px 10px;
  text-transform: uppercase; transition: color .15s;
}
.sb-right a:hover { color: var(--ink); }
.sb-right .sb-resume {
  color: var(--signal-ink); background: var(--signal);
  margin-left: 8px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  transition: box-shadow .2s, transform .1s;
}
.sb-right .sb-resume:hover { box-shadow: 0 0 18px var(--signal-glow); color: var(--signal-ink); }

/* LED */
.led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--led-live));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--c, var(--led-live)) 24%, transparent);
  flex-shrink: 0;
}
.led.pulse { animation: ledpulse 1.8s infinite; }
@keyframes ledpulse {
  0%,100% { box-shadow: 0 0 0 2px color-mix(in oklab, var(--c) 28%, transparent), 0 0 6px var(--c); }
  50% { box-shadow: 0 0 0 2px color-mix(in oklab, var(--c) 10%, transparent); }
}

/* ════ HERO ════ */
.hero-section {
  position: relative; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
}
.graph-bg {
  position: absolute; inset: 0; z-index: 0;
  /* pointer-events enabled — user can orbit/zoom the 3D graph */
}
.graph-bg canvas { display: block; width: 100% !important; height: 100% !important; }
/* fade only the outer edges — the ring around the photo stays fully visible */
.hero-section::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 36%, transparent 50%, var(--bg) 88%),
    linear-gradient(to bottom, transparent 42%, var(--bg) 76%);
  pointer-events: none;
}
/* hero content sits above graph + vignette and captures its own clicks */
.hero-inner { pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-inner {
  position: relative; z-index: 1;
  padding: 72px 0 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  width: 100%;
}
.hero-photo {
  width: 140px; height: 182px; overflow: hidden;
  border: 1px solid var(--line); flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 1px var(--signal), 0 0 18px rgba(200,242,78,0.18), 0 0 40px rgba(200,242,78,0.07);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--signal); opacity: 0.25;
  pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-2); border: 1px solid var(--line); padding: 6px 12px;
}
.hero-badge--claude {
  border-color: rgba(217,119,87,0.6);
  background: rgba(217,119,87,0.12);
  color: #d97757;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  box-shadow: 0 0 18px rgba(217,119,87,0.35), inset 0 0 12px rgba(217,119,87,0.08);
  animation: claudePulse 2.4s ease-in-out infinite;
}
.claude-glyph {
  font-size: 13px;
  color: #d97757;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(217,119,87,0.9));
}
@keyframes claudePulse {
  0%, 100% { box-shadow: 0 0 18px rgba(217,119,87,0.35), inset 0 0 12px rgba(217,119,87,0.08); }
  50%       { box-shadow: 0 0 32px rgba(217,119,87,0.65), inset 0 0 18px rgba(217,119,87,0.15); }
}
.hero-badge--antigravity {
  border-color: rgba(56,189,248,0.6);
  background: rgba(56,189,248,0.08);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  box-shadow: 0 0 18px rgba(56,189,248,0.3), inset 0 0 12px rgba(56,189,248,0.06);
  animation: antigravityPulse 2.8s ease-in-out infinite;
}
.antigravity-glyph {
  font-size: 13px;
  color: #38bdf8;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(56,189,248,0.9));
}
@keyframes antigravityPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(56,189,248,0.3), inset 0 0 12px rgba(56,189,248,0.06); }
  50%       { box-shadow: 0 0 32px rgba(56,189,248,0.6), inset 0 0 18px rgba(56,189,248,0.12); }
}
.hero-h {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1.0; letter-spacing: -0.025em;
  margin: 0; text-wrap: balance; max-width: 18ch;
}
.hero-h .mark { color: var(--signal); position: relative; white-space: nowrap; }
.hero-h .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.07em;
  height: 0.08em; background: var(--signal); opacity: 0.35;
}
.hero-sub {
  font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink-2);
  max-width: 52ch; margin: 0;
}
.hero-stats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line);
}
.hero-stat {
  display: flex; align-items: center; gap: 0;
  padding: 12px 20px;
}
.hero-stat-div { width: 1px; height: 28px; background: var(--line); margin-right: 20px; }
.hero-stat-v {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--ink); margin-right: 8px;
}
.hero-stat-l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

/* ════ FEATURED PROJECTS ════ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat-card { background: var(--bg); display: flex; flex-direction: column; transition: background .18s; }
.feat-card:hover { background: var(--bg-1); }
.feat-shot {
  position: relative; aspect-ratio: 16/10;
  overflow: hidden; background: var(--bg-2);
  display: grid; place-items: center;
}
.feat-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feat-card:hover .feat-shot img { transform: scale(1.04); }
.feat-shot .badge { position: absolute; top: 10px; right: 10px; }
.feat-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feat-nm { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.feat-sb { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.feat-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-photo { width: 110px; height: 143px; }
  .hero-h { font-size: clamp(32px, 10vw, 52px); }
}
.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: box-shadow .16s, transform .16s, border-color .16s, color .16s;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { box-shadow: 0 0 22px var(--signal-glow); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* readout panel */
.readout {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-1), var(--bg));
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.readout::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  animation: scan 4.5s linear infinite; opacity: 0.6;
}
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.readout-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.readout-head .t { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.readout-head .dots { display: flex; gap: 5px; }
.readout-head .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: block; }
.readout-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.ro-cell {
  padding: 18px 16px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.ro-cell:nth-child(2n) { border-right: 0; }
.ro-cell:nth-last-child(-n+2) { border-bottom: 0; }
.ro-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ro-v { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 0.9; letter-spacing: -0.02em; color: var(--ink); }
.ro-v small { font-size: 16px; color: var(--signal); font-family: var(--mono); font-weight: 500; }
.ro-bar { margin-top: 12px; height: 3px; background: var(--line-2); position: relative; overflow: hidden; }
.ro-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--signal); display: block; }
.readout-foot {
  padding: 10px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--muted); display: flex; justify-content: space-between; align-items: center;
}

/* ════ SECTION shell ════ */
.section { padding: 64px 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-tag .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--signal); }
.sec-tag .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.sec-tag .rule { width: 40px; height: 1px; background: var(--line); }
.sec-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sec-label::before { content: ""; width: 20px; height: 1px; background: var(--signal); }
.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.0;
  letter-spacing: -0.025em; margin: 0; max-width: 18ch;
}
.sec-title em { font-style: normal; color: var(--signal); }
.sec-note { font-family: var(--sans); font-size: 15px; color: var(--muted); max-width: 42ch; line-height: 1.6; }

/* ════ BUILD MATRIX ════ */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.mx {
  padding: 24px 22px 22px; border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: background .18s;
  min-height: 220px;
}
.mx:last-child { border-right: 0; }
.mx:hover { background: var(--bg-1); }
.mx-top { display: flex; align-items: center; justify-content: space-between; }
.mx-n { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: 0.1em; }
.mx-h { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; }
.mx-p { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.55; }
.mx-c { margin-top: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.mx-c b { color: var(--ink-2); font-weight: 600; }

/* ════ FILTER / CHANNEL BAR ════ */
.channels {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.ch-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em;
  padding: 7px 13px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .14s, color .14s;
}
.chip:hover { border-color: var(--signal); color: var(--signal); }
.chip[data-on="true"] { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.chip .ct { font-size: 10px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.ch-spacer { flex: 1; }
.vtoggle { display: flex; border: 1px solid var(--line); }
.vtoggle button {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px; background: transparent; border: 0; border-right: 1px solid var(--line);
  color: var(--muted); display: inline-flex; align-items: center; gap: 7px;
}
.vtoggle button:last-child { border-right: 0; }
.vtoggle button[data-on="true"] { background: var(--ink); color: var(--bg); }
[data-mode="paper"] .vtoggle button[data-on="true"] { background: var(--ink); color: var(--bg-3); }

/* ════ UNIT LIST ════ */
.units { border-bottom: 1px solid var(--line); }
.unit { border-bottom: 1px solid var(--line-2); transition: background .15s; }
.unit:hover { background: var(--bg-1); }
.unit[data-open="true"] { background: var(--bg-1); }
.unit-head {
  width: 100%; text-align: left; background: transparent; border: 0;
  display: grid; grid-template-columns: 58px 1.7fr 150px 128px 36px;
  gap: 18px; align-items: center; padding: var(--row-pad) 8px;
}
.u-idx { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.u-idx .led { width: 8px; height: 8px; }
.u-idx .yr { color: var(--muted-2); font-size: 10px; letter-spacing: 0.04em; }
.u-name { min-width: 0; }
.u-name .nm { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); transition: color .14s; }
.unit:hover .u-name .nm { color: var(--signal); }
.u-name .sb { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-class { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); }
.u-class .ct { color: var(--muted); font-size: 10px; display: block; margin-bottom: 5px; letter-spacing: 0.1em; text-transform: uppercase; }
.u-kpi { font-family: var(--mono); }
.u-kpi .kt { color: var(--muted); font-size: 10px; display: block; margin-bottom: 5px; letter-spacing: 0.1em; text-transform: uppercase; }
.u-kpi .kv { color: var(--signal); font-size: 12.5px; line-height: 1.35; }
.u-exp {
  justify-self: end; width: 34px; height: 34px;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--muted); transition: all .2s;
}
.unit[data-open="true"] .u-exp { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); transform: rotate(45deg); }

.u-detail {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px;
  padding: 4px 8px 40px 76px; animation: expand .35s ease;
}
@keyframes expand { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.u-shot {
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4/3; overflow: hidden; position: relative;
  display: grid; place-items: center;
}
.u-shot img { width: 100%; height: 100%; object-fit: cover; }
.u-shot-ph {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); text-align: center; padding: 24px; line-height: 1.8;
}
.u-shot-ph svg { display: block; margin: 0 auto 14px; opacity: 0.5; }
.u-shot-corner {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--signal); border: 1px solid var(--signal); padding: 3px 7px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}
.u-body { display: flex; flex-direction: column; gap: 20px; }
.u-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.u-spec > div { background: var(--bg); padding: 13px 14px; }
.u-spec .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.u-spec .v { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.u-section-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 18px; margin-bottom: 7px; }
.u-desc { font-family: var(--sans); font-size: 15px; line-height: 1.66; color: var(--ink-2); }
.u-approach { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.u-impact {
  border-left: 2px solid var(--signal); padding: 13px 16px; background: var(--signal-dim);
}
.u-impact .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); margin-bottom: 7px; font-weight: 600; }
.u-impact .v { font-family: var(--sans); font-size: 14px; color: var(--ink); line-height: 1.5; }
.u-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stk {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em;
  padding: 4px 9px; border: 1px solid var(--line); color: var(--ink-2);
}
.u-links { display: flex; flex-wrap: wrap; gap: 9px; }

/* ════ GALLERY ════ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line); }
.gcard { background: var(--bg); display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.25,.46,.45,.94), box-shadow .28s, background .18s; position: relative; z-index: 0; }
.gcard:hover { background: var(--bg-1); transform: scale(1.04); z-index: 10; box-shadow: 0 16px 48px rgba(0,0,0,0.55); }
.gcard-shot { aspect-ratio: 16/9; border-bottom: 1px solid var(--line-2); overflow: hidden; display: grid; place-items: center; background: var(--bg-2); position: relative; }
.gcard-shot img, .gcard-shot video { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; display: block; }
.gcard:hover .gcard-shot img, .gcard:hover .gcard-shot video { transform: scale(1.08); }
.gcard-slide-dots { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.gcard-slide-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0.3; transition: opacity .2s; }
.gcard-slide-dots span[data-active] { opacity: 1; background: var(--signal); }
.gcard-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gcard-nm { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: -0.01em; }
.gcard-sb { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.gcard-desc { font-family: var(--sans); font-size: 12px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; }
.gcard-desc[data-expanded] { display: block; overflow: visible; }
.gcard-expand { background: none; border: none; padding: 0; font-family: var(--mono); font-size: 10px; color: var(--signal); cursor: pointer; letter-spacing: 0.03em; margin-top: -4px; text-align: left; }
.gcard-foot { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 5px; }
.gcard-shot.has-video { cursor: pointer; }
.gcard-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; background: rgba(0,0,0,0.28);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.gcard:hover .gcard-play { opacity: 1; }

/* ── Card fullscreen modal ── */
.cm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.97) } to { opacity: 1; transform: scale(1) } }
.cm-box {
  position: relative; width: 100%; max-width: 1100px; max-height: 90vh;
  background: var(--bg-1); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.cm-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  width: 30px; height: 30px; display: grid; place-items: center;
  cursor: pointer; font-size: 13px; transition: color .15s, border-color .15s;
}
.cm-close:hover { color: var(--ink); border-color: var(--line); }
.cm-inner { display: grid; grid-template-columns: 1.1fr 1fr; height: 100%; overflow: hidden; }
.cm-media { background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 90vh; }
.cm-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.cm-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-ph { width: 100%; height: 100%; }
.cm-detail {
  padding: 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.cm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cm-nm { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.cm-sb { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 5px; }
.cm-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-pill { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; border: 1px solid var(--line-2); padding: 3px 8px; color: var(--muted); }
.cm-section { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.cm-text { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.cm-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 720px) {
  .cm-inner { grid-template-columns: 1fr; }
  .cm-media { max-height: 40vh; }
}

/* status badge */
.badge {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 8px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid currentColor;
}
.badge .led { width: 5px; height: 5px; box-shadow: none; }
.badge.s-shipped    { color: var(--led-live); }
.badge.s-production { color: var(--led-prod); }
.badge.s-beta       { color: var(--led-beta); }
.badge.s-wip        { color: var(--led-wip); }
.badge.s-shipped .led    { background: var(--led-live); }
.badge.s-production .led { background: var(--led-prod); }
.badge.s-beta .led       { background: var(--led-beta); }
.badge.s-wip .led        { background: var(--led-wip); }

/* ════ SUBSYSTEMS / SKILLS ════ */
.subs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.sub { padding: 24px 22px; border-right: 1px solid var(--line-2); }
.sub:last-child { border-right: 0; }
.sub-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.sub-h::before { content: ""; width: 6px; height: 6px; background: var(--signal); }
.sub ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.sub li { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--line-3); display: flex; align-items: baseline; gap: 10px; }
.sub li:last-child { border-bottom: 0; }
.sub li::before { content: "›"; color: var(--muted-2); }
.sub li.lead { color: var(--ink); }
.sub li.lead::before { content: "▸"; color: var(--signal); }

/* ════ CAREER TIMELINE ════ */
.tl-track { display: flex; flex-direction: column; gap: 0; }

.tl-entry { display: grid; grid-template-columns: 152px 28px 1fr; position: relative; padding-bottom: 28px; }
.tl-entry:last-child { padding-bottom: 0; }

/* spine segment — lives in the middle column, extends down to next entry */
.tl-node { display: flex; flex-direction: column; align-items: center; position: relative; }
.tl-node::before {
  content: ''; position: absolute; top: 26px; bottom: -28px; left: 50%;
  width: 1px; background: var(--line);
}
.tl-entry:last-child .tl-node::before { display: none; }

/* dot on the spine */
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--bg);
  margin-top: 18px; position: relative; z-index: 1;
  flex-shrink: 0;
}
.tl-entry.current .tl-dot { border-color: var(--signal); background: var(--signal-dim); box-shadow: 0 0 8px var(--signal-glow); }

/* left column: year + index */
.tl-left { padding-top: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-right: 0; }
.tl-year { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.05em; text-align: right; line-height: 1.5; }
.tl-entry.current .tl-year { color: var(--signal); }
.tl-n { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }

/* role card */
.tl-card { border: 1px solid var(--line-2); background: var(--bg-1); transition: border-color .15s, background .15s; overflow: hidden; }
.tl-entry.current .tl-card { border-left: 2px solid var(--signal); }
.tl-card:hover { border-color: var(--line); background: var(--bg-2); }

.tl-toggle {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; width: 100%; }
.tl-role { flex: 1; min-width: 0; }
.tl-role-nm {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.015em; line-height: 1.1; color: var(--ink);
  transition: color .14s;
}
.tl-toggle:hover .tl-role-nm { color: var(--signal); }
.tl-role-co { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tl-card-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tl-type-badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line-2); padding: 2px 7px;
}
.tl-expander {
  width: 26px; height: 26px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  transition: background .15s, transform .22s, border-color .15s; flex-shrink: 0;
}
.tl-entry.open .tl-expander { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); transform: rotate(45deg); }

/* signal preview — first achievement shown when collapsed */
.tl-preview { font-family: var(--sans); font-size: 12px; color: var(--ink-2); line-height: 1.45; padding-top: 2px; }
.tl-preview::before { content: '▸ '; color: var(--signal); font-size: 9px; }

/* expanded detail */
.tl-detail { padding: 0 20px 20px; border-top: 1px solid var(--line-2); animation: expand .22s ease; }
.tl-achiev {
  list-style: none; padding: 16px 0 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
}
.tl-achiev li {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  display: flex; gap: 8px; align-items: baseline; line-height: 1.45;
}
.tl-bullet { color: var(--signal); font-size: 9px; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 720px) {
  .tl-entry { grid-template-columns: 0 20px 1fr; }
  .tl-left { display: none; }
  .tl-achiev { grid-template-columns: 1fr; }
}

/* ════ PROCESS ════ */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.proc {
  padding: 26px 22px; border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 16px;
  transition: background .18s;
}
.proc:last-child { border-right: 0; }
.proc:hover { background: var(--bg-1); }
.proc-top { display: flex; align-items: center; justify-content: space-between; }
.proc-n { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: 0.1em; }
.proc-phase { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: -0.02em; }
.proc-desc { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.55; }
.proc-section { display: flex; flex-direction: column; gap: 8px; }
.proc-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.proc-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.proc-section li {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid var(--line-3);
  display: flex; align-items: baseline; gap: 8px; line-height: 1.4;
}
.proc-section li:last-child { border-bottom: 0; }
.proc-section li::before { content: "›"; color: var(--muted-2); flex-shrink: 0; }
.proc-tools { margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; border-top: 1px solid var(--line-3); }

@media (max-width: 1000px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc:nth-child(2) { border-right: 0; }
  .proc:nth-child(1), .proc:nth-child(2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 720px) {
  .proc-grid { grid-template-columns: 1fr; }
  .proc { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .proc:last-child { border-bottom: 0; }
}

/* ════ TESTIMONIALS / REFS ════ */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.ref {
  padding: 26px 24px;
  border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 20px;
  transition: background .18s;
}
.ref:last-child { border-right: 0; }
.ref:hover { background: var(--bg-1); }

.ref-head { display: flex; align-items: flex-start; gap: 14px; }
.ref-av {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--signal);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--signal); letter-spacing: 0.04em;
  background: var(--signal-dim);
}
.ref-info { min-width: 0; }
.ref-nm { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.ref-ti { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.ref-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin-top: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2);
}
.ref-rel { color: var(--signal); }
.ref-sep { color: var(--muted-2); }

.ref-q {
  flex: 1;
  font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--ink-2);
  border-left: 2px solid var(--signal);
  padding: 12px 16px;
  background: var(--signal-dim);
  position: relative;
}
.ref-ql {
  display: block; font-family: var(--display); font-size: 28px; line-height: 1;
  color: var(--signal); opacity: 0.5; margin-bottom: 4px; font-weight: 700;
}

.ref-foot {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}
.ref-li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--led-live); border-radius: 50%; margin-right: 7px; vertical-align: 0px; }

@media (max-width: 1000px) {
  .refs { grid-template-columns: 1fr; }
  .ref { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .ref:last-child { border-bottom: 0; }
}

/* ════ CONTACT ════ */
.contact { border-top: 1px solid var(--line); padding: 72px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: stretch; }
.contact-h { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -0.03em; margin: 14px 0 22px; }
.contact-h em { font-style: normal; color: var(--signal); }
.contact-p { font-family: var(--sans); font-size: 16px; color: var(--ink-2); max-width: 46ch; line-height: 1.62; margin: 0 0 28px; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.terminal { border: 1px solid var(--line); background: var(--bg-1); display: flex; flex-direction: column; }
.term-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term-head .dots { display: flex; gap: 5px; }
.term-head .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.term-head .t { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.term-body { padding: 16px; display: flex; flex-direction: column; }
.tlink { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line-3); transition: padding .16s, color .16s; }
.tlink:last-child { border-bottom: 0; }
.tlink:hover { padding-left: 12px; color: var(--signal); }
.tlink .l { display: flex; align-items: center; gap: 13px; }
.tlink .ic { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); }
.tlink:hover .ic { border-color: var(--signal); color: var(--signal); }
.tlink .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tlink .v { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.tlink:hover .v { color: var(--signal); }
.term-prompt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 14px 4px 4px; }
.term-prompt .cur { display: inline-block; width: 8px; height: 14px; background: var(--signal); margin-left: 3px; vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer .lbl { font-size: 10px; }

/* reveal on load */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .readout::before, .led.pulse, .term-prompt .cur { animation: none !important; }
}

/* ════ EDGE COMPUTE ════ */
.edge { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.ifield { border: 1px solid var(--line); background: var(--bg-1); display: flex; flex-direction: column; overflow: hidden; }
.ifield-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ifield-head .t { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ifield-head .run { font-family: var(--mono); font-size: 10px; color: var(--signal); letter-spacing: 0.05em; }
.ifield-canvas { width: 100%; flex: 1; display: block; min-height: 230px; background: var(--bg-1); }
.ifield-read { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.ifield-read > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.ifield-read > div:last-child { border-right: 0; }
.rk { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.rv { font-family: var(--mono); font-size: 22px; color: var(--signal); line-height: 1; }
.rv small { font-size: 10px; margin-left: 2px; color: var(--muted); }
.backends { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bk { background: var(--bg-1); padding: 16px; }
.bk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bk-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bk-name { font-family: var(--mono); font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.bk-sub { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
/* ── iPhone monoline mockup (TranscribePad shield-view style) ── */
.iph-wrap { display: flex; align-items: center; justify-content: center; padding: 8px 0; }

/* Outer frame — carries side-button pseudo-elements */
.iph-frame { position: relative; }

/* Volume buttons (left side) */
.iph-frame::before {
  content: '';
  position: absolute; left: -5px; top: 100px;
  width: 3px; height: 74px;
  border-radius: 2px 0 0 2px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.8);
  border-right: none;
  box-shadow: 0 42px 0 rgba(0,0,0,0.8);
}
/* Power button (right side) */
.iph-frame::after {
  content: '';
  position: absolute; right: -5px; top: 120px;
  width: 3px; height: 52px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.8);
  border-left: none;
}

.iph-mono {
  width: 228px; height: 520px;
  border: 1.5px solid rgba(0,0,0,0.8);
  border-radius: 44px;
  background: var(--bg);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: inset 0 0 80px rgba(200,242,78,0.03);
}
.iph-di {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #000; border-radius: 20px; z-index: 10;
}
.iph-bar {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 52px 22px 10px; color: var(--ink);
}
.iph-time { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: -0.02em; }
.iph-bar-r { display: flex; align-items: center; gap: 6px; }
/* Concept header */
.iph-chead { width: 100%; padding: 4px 20px 8px; border-bottom: 1px solid var(--line-2); }
.iph-ctag { font-family: var(--mono); font-size: 7px; color: var(--signal); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.iph-ctitle { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
/* Viz area */
.iph-viz { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 4px 0; overflow: hidden; }
/* Dots nav */
.iph-dots { display: flex; gap: 7px; align-items: center; justify-content: center; padding: 6px 0 10px; }
.iph-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.iph-dot.on { background: var(--signal); transform: scale(1.4); }
.iph-home { width: 76px; height: 4px; background: var(--ink); border-radius: 2px; margin-bottom: 12px; opacity: 0.18; }

.edge-tabs { display: flex; gap: 0; border: 1px solid var(--line); margin-bottom: 24px; width: fit-content; }
.edge-tab {
  background: none; border: 0; border-right: 1px solid var(--line);
  padding: 9px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.edge-tab:last-child { border-right: 0; }
.edge-tab:hover { background: var(--bg-1); color: var(--ink); }
.edge-tab[data-on="true"] { background: var(--signal); color: var(--signal-ink); }
.edge-depth { border: 1px solid var(--line); padding: 18px 20px; margin-top: 20px; display: flex; align-items: flex-start; gap: 20px; }
.edge-depth .gk { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-top: 5px; }
.edge-depth .gv { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .edge { grid-template-columns: 1fr; }
  .ifield-read { grid-template-columns: repeat(2,1fr); }
  .ifield-read > div:nth-child(2) { border-right: 0; }
  .ifield-read > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ════ RESPONSIVE ════ */
@media (max-width: 1000px) {
  .hero-section { min-height: 70vh; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .mx:nth-child(2) { border-right: 0; }
  .mx:nth-child(1), .mx:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .subs { grid-template-columns: 1fr; }
  .sub { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .sub:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .u-detail { grid-template-columns: 1fr; gap: 22px; padding-left: 8px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .statusbar-in { padding: 0 18px; grid-template-columns: 1fr auto; }
  .sb-center { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .matrix { grid-template-columns: 1fr; }
  .mx { border-right: 0; border-bottom: 1px solid var(--line-2); min-height: 0; }
  .mx:last-child { border-bottom: 0; }
  .unit-head { grid-template-columns: 38px 1fr 34px; gap: 12px; }
  .u-class, .u-kpi { display: none; }
  .sb-right a:not(.sb-resume) { display: none; }
}

/* ── Chat FAB + Panel ── */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,242,78,0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(200,242,78,0.5); }

.chat-panel {
  position: fixed; bottom: 92px; right: 28px; z-index: 999;
  width: 340px; height: 480px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 16px; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px var(--line-2);
  animation: chatSlideUp .28s cubic-bezier(.34,1.4,.64,1);
  overflow: hidden;
}
@keyframes chatSlideUp {
  from { opacity:0; transform:translateY(16px) scale(0.97); }
  to   { opacity:1; transform:translateY(0)    scale(1); }
}
.chat-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.chat-hd-l { display: flex; align-items: center; gap: 8px; }
.chat-nm { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: 0.08em; }
.chat-sub { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.chat-x { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 4px; display: flex; }
.chat-x:hover { color: var(--ink); background: var(--bg-2); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-msgs::-webkit-scrollbar { width: 3px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.chat-msg { font-family: var(--sans); font-size: 12.5px; line-height: 1.55; padding: 9px 13px; border-radius: 12px; max-width: 88%; word-break: break-word; }
.chat-msg.ai   { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); align-self: flex-start; border-radius: 12px 12px 12px 3px; }
.chat-msg.user { background: var(--signal); color: var(--signal-ink); align-self: flex-end; border-radius: 12px 12px 3px 12px; font-weight: 500; }
.chat-cur { color: var(--signal); animation: blink 0.9s step-end infinite; }
.chat-chips { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 10px; flex-shrink: 0; }
.chat-chip {
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink-2); font-family: var(--mono); font-size: 10px;
  padding: 7px 12px; border-radius: 8px; cursor: pointer; text-align: left;
  transition: border-color .15s, color .15s;
}
.chat-chip:hover { border-color: var(--signal); color: var(--signal); }
.chat-input-row {
  display: flex; gap: 8px; padding: 10px 14px;
  border-top: 1px solid var(--line); flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--sans); font-size: 12px;
  padding: 8px 12px; border-radius: 8px; outline: none;
  transition: border-color .15s;
}
.chat-input:focus { border-color: var(--signal); }
.chat-input::placeholder { color: var(--muted); }
.chat-input:disabled { opacity: 0.6; }
.chat-send {
  background: var(--signal); border: none; color: var(--signal-ink);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: opacity .15s;
}
.chat-send:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Boot / progress states ── */
.chat-boot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; flex: 1; padding: 28px 20px; text-align: center;
}
.chat-boot-msg { font-family: var(--sans); font-size: 14px; color: var(--ink-2); font-weight: 500; margin: 0; }
.chat-boot-sub { font-family: var(--mono); font-size: 10px; color: var(--muted); margin: 0; }
.chat-boot-btn { font-size: 12px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 6px; }
.chat-prog {
  width: 100%; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden;
}
.chat-prog-fill {
  height: 100%; background: var(--signal); border-radius: 2px;
  transition: width 0.4s ease;
}
@keyframes chatProgPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.35; }
}

.chat-egress {
  font-family: var(--mono); font-size: 8px; color: var(--muted);
  text-align: center; padding: 6px; border-top: 1px solid var(--line-2);
  letter-spacing: 0.08em; flex-shrink: 0;
}
