/* ============================================================
   ISHAAN SAMANTRAY · personal site
   Terminal / dev-portfolio · JetBrains Mono · dark+light toggle
   ============================================================ */

:root {
  /* DARK THEME (default) */
  --bg: #0a0b0d;
  --bg-elev: #0f1114;
  --bg-panel: #11141a;
  --line: #1e2229;
  --line-strong: #2a2f38;
  --ink: #e6e8ec;
  --ink-dim: #9aa0a9;
  --ink-faint: #5c616c;
  --accent: #7cf29a;          /* terminal green */
  --accent-soft: #7cf29a22;
  --accent-2: #ffb454;        /* amber for highlights */
  --red: #ff6b6b;
  --blue: #6ea8ff;

  --radius: 4px;
  --radius-lg: 8px;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --plex: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-elev: #ebe8e0;
  --bg-panel: #fbfaf6;
  --line: #d8d4c7;
  --line-strong: #b8b2a1;
  --ink: #14140f;
  --ink-dim: #55514a;
  --ink-faint: #8a857a;
  --accent: #0a6b2d;
  --accent-soft: #0a6b2d1a;
  --accent-2: #b8631a;
  --red: #b5352a;
  --blue: #2851a8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'zero';
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
  cursor: none;
}

/* fallback cursor for touch / no-pointer devices */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
a:hover { color: var(--accent); border-color: var(--accent); }

b, strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--mono); background: var(--bg-elev); padding: 1px 5px; border-radius: 3px; font-size: .92em; }

kbd {
  font-family: var(--mono);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink-dim);
}

::selection { background: var(--accent); color: var(--bg); }

/* ============ BACKGROUND GRID + NOISE ============ */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}
[data-theme="light"] .grid-bg { opacity: .35; }

.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

/* ============ CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: width .15s, height .15s, background .15s;
}
.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition: width .25s, height .25s, border-color .2s, opacity .2s;
  opacity: .7;
}
body.cursor-hover .cursor-dot { width: 12px; height: 12px; }
body.cursor-hover .cursor-ring { width: 48px; height: 48px; opacity: 1; }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 34px;
  padding: 0 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .02em;
}

.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: 10px;
}

.dot {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,.2);
}
.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

.topbar-path {
  margin-left: 8px;
  color: var(--ink-dim);
}
.topbar-path::before { content: '▸ '; color: var(--accent); }

.status {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 8px 3px 4px;
  display: flex; align-items: center; gap: 8px;
  cursor: none;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle-track {
  width: 28px; height: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}
.theme-toggle-thumb {
  position: absolute;
  top: 1px; left: 1px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transition: left .3s cubic-bezier(.7,0,.3,1);
}
[data-theme="light"] .theme-toggle-thumb { left: 15px; }

/* ============ SIDE NAV ============ */
.sidenav {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  mix-blend-mode: normal;
}
.sidenav ol {
  list-style: none;
  margin: 0; padding: 12px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sidenav a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  border: 0;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  position: relative;
  border-radius: 3px;
  transition: color .2s, background .2s;
}
.sidenav a:hover { color: var(--ink); }
.sidenav a.active { color: var(--accent); }
.sidenav a.active::before {
  content: '';
  position: absolute;
  left: -4px; top: 50%;
  width: 2px; height: 14px;
  background: var(--accent);
  transform: translateY(-50%);
}
.nav-num {
  color: var(--ink-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.sidenav a.active .nav-num { color: var(--accent); }
.nav-label { text-transform: lowercase; }

@media (max-width: 1100px) {
  .sidenav { display: none; }
}
@media (max-width: 900px) {
  .sidenav { display: none; }
}

/* ============ LAYOUT ============ */
main {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px var(--gutter) 0;
}

@media (min-width: 901px) {
  main { padding-left: max(var(--gutter), 180px); padding-right: var(--gutter); }
}

.section {
  padding: 120px 0 80px;
  border-top: 1px dashed var(--line);
  scroll-margin-top: 60px;
}
#home { border-top: 0; padding-top: 40px; }

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-num {
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .1em;
}
.section-title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
  min-width: 60px;
}
.section-count {
  color: var(--ink-faint);
  font-size: 11px;
}
.section-action {
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .05em;
}
.section-action:hover { border-color: var(--accent); color: var(--accent); }

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - 40px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding-top: 40px;
}

.hero-inner { max-width: 900px; }

.hero-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
  font-size: 11px;
  color: var(--ink-faint);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}
.meta-line { letter-spacing: .05em; }

.hero-prompt {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 24px;
  font-family: var(--mono);
}
.prompt-user { color: var(--accent); }
.prompt-colon { color: var(--ink-faint); }
.prompt-path { color: var(--blue); }
.prompt-dollar { color: var(--ink-faint); margin: 0 8px 0 4px; }
.prompt-cmd { color: var(--ink); }
.caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-name {
  margin: 0 0 32px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 128px);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--ink);
}
.hn-line { display: block; overflow: hidden; }
.hn-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s;
}
.hero-name.reveal .hn-word { transform: translateY(0); opacity: 1; }
.hero-name.reveal .hn-line:nth-child(2) .hn-word { transition-delay: .15s; }

.hero-sub {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 640px;
}
.hero-sub-line { opacity: 0; transform: translateY(8px); transition: all .8s ease; }
.hero-sub-line.reveal { opacity: 1; transform: none; }
.hero-sub-line:nth-child(2) { transition-delay: .15s; }
.bullet { color: var(--accent); margin-right: 8px; }

.hero-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
  background: transparent;
  transition: all .2s ease;
  opacity: 0;
  transform: translateY(8px);
}
.hero-cta.reveal .btn { opacity: 1; transform: none; }
.hero-cta.reveal .btn:nth-child(1) { transition-delay: .3s; }
.hero-cta.reveal .btn:nth-child(2) { transition-delay: .4s; }
.hero-cta.reveal .btn:nth-child(3) { transition-delay: .5s; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 720px;
}
.stat {
  padding: 16px 20px 16px 0;
  border-right: 1px dashed var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: all .6s ease;
}
.stat:last-child { border-right: 0; }
.hero-stats.reveal .stat { opacity: 1; transform: none; }
.hero-stats.reveal .stat:nth-child(1) { transition-delay: .6s; }
.hero-stats.reveal .stat:nth-child(2) { transition-delay: .7s; }
.hero-stats.reveal .stat:nth-child(3) { transition-delay: .8s; }
.hero-stats.reveal .stat:nth-child(4) { transition-delay: .9s; }

.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 0;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .06em;
  animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px dashed var(--line); }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.photo-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
  transition: filter .4s;
}
.photo-frame:hover img { filter: none; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, var(--line) 10px 11px),
    var(--bg-panel);
}
.ph-text { color: var(--accent); font-weight: 600; letter-spacing: .05em; }
.ph-sub code { background: var(--bg-elev); font-size: 10px; }
.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5));
  pointer-events: none;
}
[data-theme="light"] .photo-overlay { background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25)); }

.photo-caption {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.8;
}

.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px;
  font-weight: 400;
}
.about-copy p { color: var(--ink-dim); margin: 0 0 20px; font-size: 14px; line-height: 1.75; }
.about-copy a { color: var(--ink); border-bottom-color: var(--accent); }
.about-copy a:hover { color: var(--accent); }

.stack { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.stack-row { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
.stack-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 4px;
}
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-dim);
  background: var(--bg-elev);
  transition: all .2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.stack-chips.ghost .chip { background: transparent; color: var(--ink-faint); border-style: dashed; }

/* ============ EXPERIENCE / TIMELINE ============ */
.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.tl-row {
  display: grid;
  grid-template-columns: 120px 64px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .2s;
  position: relative;
}
.tl-row:hover { background: var(--bg-elev); }
.tl-row:hover .tl-indicator { background: var(--accent); transform: scaleY(1); }

.tl-indicator {
  position: absolute;
  left: -4px; top: 22px; bottom: 22px;
  width: 2px;
  background: var(--line-strong);
  transform: scaleY(.4);
  transform-origin: top;
  transition: all .3s;
}

.tl-date {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .03em;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.tl-logo {
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.tl-logo img { width: 100%; height: 100%; object-fit: contain; }
.tl-logo.tl-logo-dark { background: var(--bg-elev); color: var(--ink-faint); font-size: 12px; font-weight: 600; padding: 0; }

.tl-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.tl-role {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}
.tl-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin-bottom: 8px;
}
.tl-meta {
  font-size: 11px;
  color: var(--ink-faint);
}

.tl-links {
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
  padding-top: 3px;
}
.tl-links a {
  font-size: 11px;
  color: var(--ink-dim);
  border: 0;
  letter-spacing: .03em;
}
.tl-links a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .tl-row { grid-template-columns: 48px 1fr; gap: 14px; }
  .tl-date { grid-column: 1 / -1; padding-top: 0; order: -1; font-size: 10.5px; }
  .tl-logo { width: 48px; height: 48px; }
  .tl-links { grid-column: 1 / -1; flex-direction: row; text-align: left; flex-wrap: wrap; gap: 12px; }
}

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 800px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--bg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  border: 0;
  transition: background .25s;
  position: relative;
  min-height: 260px;
}
.project-card:hover { background: var(--bg-elev); }
.project-card a { border: 0; }

.pc-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.pc-index {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-tag {
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pc-tag.featured { color: var(--accent); border-color: var(--accent); }

.pc-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.2;
}
.pc-org {
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: .02em;
}
.pc-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.pc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.pc-links { display: flex; gap: 12px; }
.pc-links a {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .03em;
}
.pc-links a:hover { color: var(--accent); }
.pc-arrow {
  color: var(--ink-faint);
  font-size: 18px;
  transition: transform .2s, color .2s;
}
.project-card:hover .pc-arrow { color: var(--accent); transform: translate(3px, -3px); }

.pc-glyph {
  position: absolute;
  right: 20px; bottom: 20px;
  width: 60px; height: 60px;
  opacity: .15;
  pointer-events: none;
}

/* ============ HOVER PREVIEW ============ */
.hover-preview {
  position: fixed;
  width: 280px; height: 200px;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -120%) scale(.96);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  font-size: 11px;
}
.hover-preview.visible { opacity: 1; transform: translate(-50%, -120%) scale(1); }
.hp-label { color: var(--accent); letter-spacing: .08em; font-size: 10px; margin-bottom: 8px; }
.hp-title { color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
.hp-meta { color: var(--ink-faint); font-size: 10.5px; line-height: 1.5; }
.hp-img {
  width: 100%; height: 100px;
  background: var(--bg-elev);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hp-img img { max-width: 70%; max-height: 70%; object-fit: contain; }

/* ============ PUBLICATIONS ============ */
.pubs { display: flex; flex-direction: column; gap: 20px; }

.pub {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  transition: all .25s;
  display: block;
  border-bottom: 1px solid var(--line);
}
.pub:hover { border-color: var(--accent); background: var(--bg-elev); }

.pub-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.pub-cite {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.pub-link {
  font-size: 11px;
  color: var(--ink-dim);
  border: 0;
}
.pub-link:hover { color: var(--accent); }

.pub-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.45;
  letter-spacing: -.005em;
}
.pub-authors {
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 6px;
  line-height: 1.5;
}
.pub-authors em { color: var(--accent); font-style: normal; font-weight: 600; }
.pub-venue {
  font-size: 11px;
  color: var(--ink-faint);
}

/* ============ AWARDS ============ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.award {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  display: flex; flex-direction: column; gap: 6px;
  transition: all .25s;
  position: relative;
}
.award:hover { border-color: var(--accent); transform: translateY(-2px); }
.award-year {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: .1em;
  font-weight: 600;
}
.award-title {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.award-desc {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.award-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-top: 4px;
  border: 0;
  letter-spacing: .03em;
}
.award-link:hover { color: var(--accent); }
.award-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 600;
}

/* ============ RESUME VIEWER ============ */
.resume-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
}
.resume-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
}
.resume-filename {
  margin-left: 10px;
  color: var(--ink-dim);
  flex: 1;
  letter-spacing: .03em;
}
.resume-open {
  font-size: 11px;
  color: var(--ink-dim);
  border: 0;
}
.resume-open:hover { color: var(--accent); }
.resume-viewer {
  min-height: 820px;
  background: #2a2d33;
  padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative;
}
.resume-viewer canvas {
  max-width: 100%;
  height: auto;
  background: white;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  display: block;
}
.resume-fallback {
  color: var(--ink-dim);
  font-size: 12px;
  text-align: center;
}
.resume-fallback a { color: var(--accent); border: 0; }

/* ============ CONTACT ============ */
.contact-line {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-dim);
}
.contact-cmd { color: var(--accent); }

.contact-h {
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.2;
  max-width: 600px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--bg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 90px 1fr 20px;
  align-items: center;
  gap: 16px;
  border: 0;
  transition: background .2s;
}
.contact-card:hover { background: var(--bg-elev); }
.cc-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cc-val {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.005em;
  word-break: break-all;
}
.cc-arrow {
  color: var(--ink-faint);
  text-align: right;
  transition: color .2s, transform .2s;
}
.contact-card:hover .cc-arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ============ FOOTER ============ */
.footer {
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .03em;
}
@media (max-width: 600px) { .footer { flex-direction: column; gap: 8px; } }

/* ============ REVEAL ANIMATION ============ */
.reveal-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-el.reveal { opacity: 1; transform: none; }

/* stagger for list children */
.reveal-list .reveal-el { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============ STARTUPS ============ */
.startups { display: flex; flex-direction: column; gap: 32px; }

.startup {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.startup::before {
  content: 'CONFIDENTIAL';
  position: absolute;
  top: 14px; right: 16px;
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--red);
  opacity: .6;
  font-weight: 700;
}

.su-head {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}

.su-logo-wrap {
  position: relative;
  width: 84px; height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.su-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: invert(0);
}
[data-theme="dark"] .su-logo { filter: invert(1); }
.su-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(124, 242, 154, .04) 2px 3px
  );
  pointer-events: none;
}

.su-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px;
  color: var(--red);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.su-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.su-name {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}
.su-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.su-metric { text-align: right; }
.su-metric-big {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
}
.su-metric-label {
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  max-width: 180px;
  margin-left: auto;
  line-height: 1.4;
}

.su-desc {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 720px;
}

.su-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .su-grid { grid-template-columns: 1fr; } }

.su-feature {
  background: var(--bg);
  padding: 14px 16px;
  transition: background .2s;
}
.su-feature:hover { background: var(--bg-elev); }
.su-feat-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: .01em;
}
.su-feat-detail {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.su-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
}
.su-pipeline { color: var(--ink-dim); letter-spacing: .02em; }
.su-pipeline::first-letter { color: var(--accent); }
.su-redact { color: var(--ink-faint); font-style: italic; }

@media (max-width: 700px) {
  .su-head { grid-template-columns: 64px 1fr; }
  .su-logo-wrap { width: 64px; height: 64px; }
  .su-metric { grid-column: 1 / -1; text-align: left; }
  .su-metric-label { max-width: none; margin-left: 0; }
  .su-name { font-size: 26px; }
  .startup { padding: 24px 20px; }
}
