/* ─── Anthropic-inspired palette ─── */
:root {
  --bg: #F5F0E8;          /* warm cream */
  --bg-2: #EBE3D5;
  --bg-3: #1A1915;        /* deep ink */
  --bg-4: #2A2823;
  --ink: #1A1915;
  --ink-2: #3D3A33;
  --ink-dim: #6B6258;
  --ink-faint: #A89E8F;
  --clay: #D97757;        /* signature Anthropic clay */
  --clay-deep: #B85A3D;
  --slate: #5C6470;
  --line: rgba(26,25,21,0.14);
  --line-strong: rgba(26,25,21,0.32);
  --line-on-dark: rgba(245,240,232,0.16);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'kern', 'liga', 'calt';
}

body { min-height: 100vh; }

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

/* Fraunces tuning — display sizes get a softer, more humanist cut */
[class*="hero-name"], h1, h2, .exp-card-title .exp-company, .proj-title, .gh-stat .val,
.tools-cat-head .name, .footer-big, .nav-logo, .home-index-card .hc-title {
  
}
.about-body, .proj-desc, .exp-summary, .exp-detail li, .gh-head .lede, .projects-head .lede,
.tools-head .lede, .experience-head .lede, .hero-lede, .about-stats .stat .num,
.exp-metric-num, .tool-cell .name, .gh-commit-msg, .contact-link {
  
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── grain ─── */
#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

#cursor-glow {
  position: fixed; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(217,119,87,0.16), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
  filter: blur(50px);
  opacity: 0;
}

/* ─── typography ─── */
.serif { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-weight: 400; letter-spacing: -0.018em;  }
.serif-italic { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-style: italic; font-weight: 400;  }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-dim); }

/* ─── nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: 32px;
  padding: 18px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  /* translucent version of the active palette bg — the fixed rgba is a
     fallback for browsers without color-mix */
  background: rgba(245, 240, 232, 0.55);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-style: italic; font-size: 24px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color 0.3s; }
.nav-links a:hover { color: var(--clay); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7,0,0.3,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-clock { display: flex; gap: 10px; align-items: center; justify-self: end; color: var(--ink-2); white-space: nowrap; padding-left: 24px; }
.nav-clock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

section { position: relative; }

.section-marker {
  position: absolute; top: 36px; left: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 5;
  display: flex; gap: 12px; align-items: center;
}
.section-marker .num { color: var(--clay); }
.section-marker::before { content: ''; width: 24px; height: 1px; background: var(--clay); }

/* ─── HERO — quiet editorial ─── */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 24px 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
}
.hero-rule {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hero-rule.bottom { border-bottom: none; border-top: 1px solid var(--line); padding: 12px 0 0; }
.hero-rule.mid {
  height: 1px; background: var(--ink); margin: 0;
  transform-origin: left center;
  transition: transform 0.3s linear;
  max-width: 320px;
  border: none; padding: 0;
}

.hero-stage {
  display: flex; flex-direction: column; justify-content: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clay); animation: pulse 2.4s ease-in-out infinite;
}
.hero-name {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-weight: 400;
  transition: transform 0.3s linear, opacity 0.3s linear;
}
.hero-name .it { font-style: italic; color: var(--clay); }

.hero-lede {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 560px;
}
  padding: 120px 32px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* legacy hero pieces removed */

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-dim); letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 4;
}
.scroll-cue::after { content: ''; width: 1px; height: 32px; background: var(--ink-2); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 60.001% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ticker — newspaper datebar */
.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background: var(--bg);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-style: italic;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 1;
  padding: 18px 0;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 40px; animation: marquee 50s linear infinite; }
.ticker-track .dot { color: var(--clay); font-style: normal; font-size: 0.4em; vertical-align: middle; padding: 0 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── ABOUT — editorial dropcap ─── */
.about {
  padding: 180px 32px 200px;
  background: var(--bg);
  position: relative;
}
.about-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-headline {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(48px, 6.5vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.about-headline .accent { color: var(--clay); font-style: italic; }
.about-body {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 540px;
  text-wrap: pretty;
}
.about-body .dropcap {
  float: left;
  font-size: 7em;
  line-height: 0.85;
  color: var(--clay);
  font-style: italic;
  padding: 0.05em 0.08em 0 0;
}
.about-body p + p { margin-top: 1.1em; }
.about-stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.about-stats .stat .num { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 64px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.about-stats .stat .num .it { color: var(--clay); font-style: italic; }
.about-stats .stat .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-dim); margin-top: 10px; max-width: 16ch; }

/* ─── EXPERIENCE — index list ─── */
.experience {
  padding: 160px 32px 200px;
  position: relative;
  background: var(--bg-3);
  color: var(--bg);
}
.experience .section-marker { color: var(--ink-faint); }
.experience .section-marker .num { color: var(--clay); }
.experience .section-marker::before { background: var(--clay); }

.experience-head {
  max-width: 1320px; margin: 0 auto 80px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: end;
}
.experience-head h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(64px, 10vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.experience-head h2 .it { font-style: italic; color: var(--clay); }
.experience-head .lede { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 16px; color: rgba(245,240,232,0.72); line-height: 1.5; max-width: 32ch; }

.exp-shell {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 180px 1fr; gap: 60px;
  align-items: start;
}
.exp-rail {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 24px;
  padding-right: 24px;
  border-right: 1px solid var(--line-on-dark);
}
.exp-rail-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,232,0.55);
}
.exp-rail-list { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; }
.exp-rail-list li {
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: rgba(245,240,232,0.5);
  transition: color 0.3s;
}
.exp-rail-list li.active { color: var(--clay); }
.exp-rail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,240,232,0.25);
  transition: all 0.3s;
}
.exp-rail-list li.active .exp-rail-dot {
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(217,119,87,0.18);
}
.exp-rail-year { letter-spacing: 0.05em; }
.exp-rail-foot {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; color: rgba(245,240,232,0.4);
  margin-top: 16px; line-height: 1.5;
}

.exp-list { display: flex; flex-direction: column; gap: 0; }
.exp-card {
  border-top: 1px solid var(--line-on-dark);
  padding: 36px 0;
  transition: background 0.4s;
}
.exp-card:last-child { border-bottom: 1px solid var(--line-on-dark); }
.exp-card-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px;
  cursor: pointer;
  align-items: start;
  padding-right: 8px;
}
.exp-card-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.08em;
  grid-column: 1 / -1;
}
.exp-card-meta .exp-idx { color: var(--clay); letter-spacing: 0.15em; }
.exp-card-meta .exp-date { color: rgba(245,240,232,0.65); }
.exp-card-meta .exp-loc { color: rgba(245,240,232,0.45); }
.exp-card-title { max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.exp-card-title .exp-role {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--clay); text-transform: uppercase; letter-spacing: 0.18em;
}
.exp-card-title .exp-company {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--bg);
}
.exp-card-title .exp-company .it { font-style: italic; color: var(--clay); }
.exp-summary {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 17px; line-height: 1.4;
  color: rgba(245,240,232,0.78);
  margin-top: 6px;
  max-width: 56ch;
}
.exp-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: start;
  padding: 10px 16px;
  border: 1px solid rgba(245,240,232,0.22);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.75);
  background: transparent;
  transition: all 0.3s;
  white-space: nowrap;
}
.exp-toggle:hover { color: var(--clay); border-color: var(--clay); }
.exp-toggle-icon {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 18px; line-height: 0.8;
  transition: transform 0.4s;
}
.exp-card.open .exp-toggle { background: var(--clay); color: var(--bg-3); border-color: var(--clay); }
.exp-card.open .exp-toggle-icon { transform: rotate(180deg); }

.exp-impact {
  display: grid; grid-template-columns: repeat(var(--impact-cols, 3), 1fr); gap: 1px;
  margin-top: 28px;
  background: var(--line-on-dark);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.exp-metric {
  background: var(--bg-3);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.exp-metric-num {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 56px; line-height: 1; letter-spacing: -0.02em;
  color: var(--clay); font-style: italic;
}
.exp-metric-unit {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.85);
}
.exp-metric-note {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 15px;
  color: rgba(245,240,232,0.6); line-height: 1.4;
}

.exp-detail {
  max-height: 0; overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.7,0,0.3,1), opacity 0.5s, margin 0.6s, padding 0.6s;
  opacity: 0;
}
.exp-card.open .exp-detail {
  max-height: 1400px; opacity: 1;
  margin-top: 28px; padding-top: 8px;
}
.exp-detail-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  margin-bottom: 32px;
}
.exp-detail-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  padding-top: 4px;
}
.exp-detail ul { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; }
.exp-detail li {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 16px; line-height: 1.5;
  color: rgba(245,240,232,0.82);
  padding-left: 24px; position: relative;
}
.exp-detail li::before {
  content: '→'; position: absolute; left: 0; top: 4px;
  color: var(--clay); font-family: 'JetBrains Mono', monospace; font-size: 14px;
}
.exp-stack { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.exp-stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-stack-pills span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(245,240,232,0.18);
  color: rgba(245,240,232,0.78);
  letter-spacing: 0.04em;
}

/* ─── PROJECTS ─── */
.projects {
  padding: 160px 0 100px;
  background: var(--bg);
  position: relative;
}
.projects-head {
  padding: 0 32px;
  max-width: 1320px; margin: 0 auto 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
}
.projects-head h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(64px, 10vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.projects-head h2 .it { font-style: italic; color: var(--clay); }
.projects-head .lede { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 16px; color: var(--ink-2); line-height: 1.5; max-width: 32ch; }

.proj-row {
  position: relative;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0; align-items: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.proj-row.reverse { direction: rtl; }
.proj-row.reverse > * { direction: ltr; }

.proj-info {
  padding: 80px 60px 80px 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative; z-index: 2;
  max-width: 600px;
  justify-self: end;
}
.proj-row.reverse .proj-info { justify-self: start; padding: 80px 32px 80px 60px; }
.proj-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--clay); letter-spacing: 0.18em; text-transform: uppercase; }
.proj-title { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: clamp(56px, 7vw, 112px); line-height: 0.94; letter-spacing: -0.03em; color: var(--ink); }
.proj-title .it { font-style: italic; color: var(--clay); }
.proj-desc { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 460px; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.proj-stack span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 100px;
  color: var(--ink-2);
}
.proj-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  align-self: flex-start;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: all 0.3s;
}
.proj-cta:hover { color: var(--clay); border-color: var(--clay); gap: 18px; }

.proj-visual {
  position: relative;
  width: 100%;
  height: 80%;
  align-self: center;
  padding: 40px 32px;
}

.video-frame {
  position: relative; width: 100%; height: 100%;
  border-radius: 2px; overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
}
.video-frame::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 47px, rgba(245,240,232,0.04) 48px),
    repeating-linear-gradient(90deg, transparent 0, transparent 47px, rgba(245,240,232,0.04) 48px);
  pointer-events: none;
}

/* ─── VIZ 1 — TRADING TERMINAL ─── */
.viz-term {
  position: absolute; inset: 0; background: var(--bg-3); overflow: hidden;
  display: flex; flex-direction: column;
  font-family: 'JetBrains Mono', monospace; color: var(--bg);
}
.vt-mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; }
.vt-dim { color: rgba(245,240,232,0.45); text-transform: uppercase; }
.vt-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid rgba(245,240,232,0.08);
}
.vt-head-left, .vt-head-right { display: flex; align-items: center; gap: 10px; }
.vt-dot { width: 7px; height: 7px; border-radius: 50%; background: #a8e6c7; box-shadow: 0 0 8px #a8e6c7; animation: vtpulse 1.4s ease-in-out infinite; }
@keyframes vtpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.vt-price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 18px 20px 8px;
}
.vt-price {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 38px; line-height: 1; letter-spacing: -0.02em;
  margin-top: 4px; color: var(--bg);
}
.vt-delta { font-family: 'JetBrains Mono', monospace; font-size: 14px; padding-bottom: 4px; }
.vt-delta.up { color: #a8e6c7; }
.vt-delta.down { color: #e8a594; }
.vt-chart { flex: 1; width: 100%; min-height: 0; padding: 8px 8px 0; box-sizing: border-box; display: block; }
.vt-ticker {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(245,240,232,0.08);
  margin-top: 8px;
}
.vt-ticker-cell { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(245,240,232,0.06); }
.vt-ticker-cell:last-child { border-right: none; }
.vt-tick-delta { font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.vt-tick-delta.up { color: #a8e6c7; }
.vt-tick-delta.down { color: #e8a594; }

/* ─── VIZ 2 — TALEWEAVER STORY ─── */
.viz-story {
  position: absolute; inset: 0; background: var(--bg-3); overflow: hidden;
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
}
.vs-stage { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 100%; }
.vs-mono { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.vs-dim { color: rgba(245,240,232,0.45); }
.vs-polaroid {
  position: relative; flex: 0 0 200px;
  background: #f5f0e8; padding: 12px 12px 36px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.8s cubic-bezier(0.6,0,0.2,1);
  border-radius: 2px;
}
.vs-photo {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(180deg, #f0c79c 0%, #e89878 38%, #c46948 60%, #6a3d3a 100%);
  transition: filter 0.8s ease, opacity 0.8s ease;
}
.vs-sun { position: absolute; left: 50%; top: 28%; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, #fff5dc 0%, #ffd494 60%, transparent 75%); transform: translate(-50%, -50%); transition: opacity 0.8s; }
.vs-horizon { position: absolute; left: 0; right: 0; top: 60%; height: 1px; background: rgba(0,0,0,0.2); }
.vs-figure { position: absolute; left: 38%; top: 55%; width: 5px; height: 22px; background: #2a1a14; border-radius: 2px 2px 0 0; transition: opacity 0.8s; }
.vs-figure::after { content: ''; position: absolute; left: -2px; top: -7px; width: 9px; height: 9px; border-radius: 50%; background: #2a1a14; }
.vs-gull { position: absolute; color: rgba(0,0,0,0.55); font-size: 12px; font-family: serif; }
.vs-polaroid-cap { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: 'Caveat', cursive, ui-serif, Georgia, serif; font-size: 14px; color: #6e5c4e; }
.vs-label {
  position: absolute; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78); color: #f5f0e8;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  padding: 4px 8px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  animation: vsLabelIn 0.4s ease both;
}
.vs-label em { font-style: normal; color: rgba(245,240,232,0.55); }
.vs-label-dot { width: 5px; height: 5px; border-radius: 50%; background: #c16544; }
@keyframes vsLabelIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.vs-arrow { font-family: ui-serif, Georgia, serif; font-size: 28px; color: rgba(245,240,232,0.45); transition: opacity 0.5s; }

.vs-story-panel {
  flex: 1; min-width: 0; max-width: 360px;
  background: rgba(245,240,232,0.04);
  border: 1px solid rgba(245,240,232,0.10);
  border-radius: 4px; padding: 18px 20px;
  transition: opacity 0.5s;
}
.vs-story-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(245,240,232,0.08); margin-bottom: 12px; }
.vs-story-body {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 14px; line-height: 1.5; color: var(--bg);
  min-height: 140px;
}
.vs-caret { color: #c16544; animation: vsCaret 0.8s steps(2) infinite; }
@keyframes vsCaret { 50% { opacity: 0; } }

/* ─── VIZ 3 — DINING CONCIERGE ─── */
.viz-din {
  position: absolute; inset: 0; background: var(--bg-3); overflow: hidden;
  padding: 24px; display: flex; gap: 18px; align-items: stretch;
}
.vd-mono { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.vd-dim { color: rgba(245,240,232,0.45); }
.vd-phone {
  flex: 0 0 220px;
  background: #1a1815; border: 1px solid rgba(245,240,232,0.10);
  border-radius: 18px; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
}
.vd-phone-bar { display: flex; justify-content: space-between; padding: 10px 16px; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(245,240,232,0.5); border-bottom: 1px solid rgba(245,240,232,0.06); }
.vd-phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(245,240,232,0.08); }
.vd-avatar { width: 32px; height: 32px; border-radius: 50%; background: #c16544; color: #f5f0e8; display: grid; place-items: center; font-family: ui-serif, Georgia, serif; font-size: 16px; font-style: italic; }
.vd-name { color: var(--bg); font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 500; }
.vd-sub { color: rgba(245,240,232,0.45); font-family: 'JetBrains Mono', monospace; font-size: 9px; margin-top: 2px; }
.vd-msgs { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden; }
.vd-msg {
  font-family: 'Inter', system-ui, sans-serif; font-size: 12px;
  padding: 9px 13px; border-radius: 16px; max-width: 80%;
  line-height: 1.35;
  animation: vdMsgIn 0.35s cubic-bezier(0.2,0.8,0.2,1) both;
}
@keyframes vdMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.vd-user { align-self: flex-end; background: #c16544; color: #f5f0e8; border-bottom-right-radius: 4px; }
.vd-bot { align-self: flex-start; background: rgba(245,240,232,0.08); color: var(--bg); border-bottom-left-radius: 4px; }
.vd-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.vd-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,240,232,0.55); animation: vdType 1.2s ease-in-out infinite; }
.vd-typing span:nth-child(2) { animation-delay: 0.15s; }
.vd-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes vdType { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.vd-map {
  flex: 1; position: relative;
  background: #1a1815; border: 1px solid rgba(245,240,232,0.10);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
}
.vd-map-head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid rgba(245,240,232,0.08); color: var(--bg); }
.vd-map-svg { flex: 1; width: 100%; }
.vd-pin {
  position: absolute; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 6px;
  background: #c16544; color: #f5f0e8;
  padding: 4px 10px 4px 4px; border-radius: 100px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 500;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  animation: vdPinDrop 0.5s cubic-bezier(0.4,1.6,0.6,1) both;
}
.vd-pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #c16544; border-bottom: 0; }
.vd-pin-num { width: 18px; height: 18px; border-radius: 50%; background: #f5f0e8; color: #c16544; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; }
@keyframes vdPinDrop { from { opacity: 0; transform: translate(-50%, -160%); } to { opacity: 1; transform: translate(-50%, -100%); } }

/* legacy viz classes — kept harmless if referenced */
.viz-stream-old { position: absolute; inset: 0; background: var(--bg-3); overflow: hidden; }
.viz-stream .bar {
  position: absolute; bottom: 50%; left: var(--x); width: 3px;
  background: linear-gradient(to top, var(--clay), #f4a884);
  height: var(--h); transform-origin: bottom;
  animation: streamPulse var(--d) ease-in-out infinite alternate;
}
@keyframes streamPulse {
  from { transform: scaleY(0.3); opacity: 0.6; }
  to   { transform: scaleY(1.4); opacity: 1; }
}
.viz-stream .ticker-line {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--clay); opacity: 0.5;
  animation: scan 6s linear infinite;
}
@keyframes scan { 0% { top: 0%; } 100% { top: 100%; } }

.viz-graph { position: absolute; inset: 0; background: var(--bg-3); }
.viz-graph svg { width: 100%; height: 100%; }
.viz-graph .node { fill: var(--clay); animation: nodeBlink 3s ease-in-out infinite; }
.viz-graph .node-2 { fill: #f4a884; animation-delay: 0.7s; }
.viz-graph .node-3 { fill: var(--bg); animation-delay: 1.4s; }
@keyframes nodeBlink { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.viz-graph .edge { stroke: rgba(245,240,232,0.25); stroke-width: 1; fill: none; stroke-dasharray: 4 4; animation: dash 8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -100; } }

.viz-chat {
  position: absolute; inset: 0;
  background: var(--bg-3);
  padding: 40px;
  display: flex; flex-direction: column; gap: 12px; justify-content: flex-end;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.viz-chat .msg { padding: 12px 18px; border-radius: 18px; max-width: 75%; line-height: 1.4; }
.viz-chat .user { align-self: flex-end; background: var(--clay); color: var(--bg-3); }
.viz-chat .bot { align-self: flex-start; background: rgba(245,240,232,0.08); color: var(--bg); border: 1px solid rgba(245,240,232,0.14); }
.viz-chat .typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.viz-chat .typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,240,232,0.5); animation: type 1.4s ease-in-out infinite; }
.viz-chat .typing span:nth-child(2) { animation-delay: 0.2s; }
.viz-chat .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes type { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ─── TOOLS — periodic table ─── */
.tools {
  padding: 200px 32px;
  background: var(--bg-2);
  position: relative;
}
.tools-head { max-width: 1320px; margin: 0 auto 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
}
.tools-head h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(64px, 10vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.tools-head h2 .it { font-style: italic; color: var(--clay); }
.tools-head .lede { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 16px; color: var(--ink-2); line-height: 1.5; max-width: 32ch; }

.tools-cats {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 56px;
}
.tools-cat-head {
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: baseline; gap: 32px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px; margin-bottom: 24px;
}
.tools-cat-head .num { font-family: 'JetBrains Mono', monospace; color: var(--clay); font-size: 11px; letter-spacing: 0.15em; }
.tools-cat-head .name { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 40px; font-style: italic; letter-spacing: -0.01em; }
.tools-cat-head .count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-dim); letter-spacing: 0.1em; text-transform: uppercase; }

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-cell {
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 12px 18px 12px 16px;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: default;
}
.tool-cell .num { font-size: 9px; color: var(--ink-faint); letter-spacing: 0.12em; }
.tool-cell .name { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-style: italic; font-size: 20px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.tool-cell:hover { background: var(--ink-2); border-color: var(--ink-2); transform: translateY(-2px); }
.tool-cell:hover .name { color: var(--clay); }
.tool-cell:hover .num { color: var(--bg); }

/* ─── GITHUB ─── */
.github {
  padding: 160px 32px 200px;
  background: var(--bg-3); color: var(--bg);
  position: relative;
}
.github .section-marker { color: var(--ink-faint); }
.github .section-marker .num { color: var(--clay); }
.github .section-marker::before { background: var(--clay); }

.gh-head { max-width: 1320px; margin: 0 auto 60px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end;
}
.gh-head h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(40px, 7.6vw, 116px);
  line-height: 0.92; letter-spacing: -0.03em;
  display: flex; flex-direction: column; gap: 4px;
}
.gh-head h2 .line-2 { white-space: nowrap; font-size: clamp(36px, 6.4vw, 96px); }
.gh-head h2 .it { font-style: italic; color: var(--clay); }
.gh-head .lede { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 16px; color: rgba(245,240,232,0.72); line-height: 1.5; max-width: 36ch; }
.gh-head a { color: var(--clay); border-bottom: 1px solid var(--clay); }
.gh-head a:hover { color: var(--bg); border-color: var(--bg); }

.gh-stats {
  max-width: 1320px; margin: 0 auto 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-on-dark);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.gh-stat { background: var(--bg-3); padding: 32px 24px; }
.gh-stat .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(245,240,232,0.55); margin-bottom: 14px; }
.gh-stat .val { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 72px; line-height: 1; color: var(--bg); letter-spacing: -0.02em; }
.gh-stat .val .it { font-style: italic; color: var(--clay); }

.gh-contrib { max-width: 1320px; margin: 0 auto 80px; }
.gh-contrib-head { display: flex; justify-content: space-between; margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(245,240,232,0.55);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.gh-heatmap {
  display: grid; grid-template-columns: 32px 1fr; gap: 8px;
  padding: 22px;
  border: 1px solid var(--line-on-dark);
  align-items: start;
}
.gh-heatmap .gh-months {
  grid-column: 2;
  display: grid; grid-template-columns: repeat(53, 1fr);
  gap: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-bottom: 8px;
  height: 14px;
}
.gh-heatmap .gh-months span { white-space: nowrap; }
.gh-grid-wrap {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 32px 1fr; gap: 8px;
  align-items: start;
}
.gh-days {
  display: grid; grid-template-rows: repeat(7, 1fr);
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  gap: 3px;
}
.gh-days span:nth-child(1) { grid-row: 2; }
.gh-days span:nth-child(2) { grid-row: 4; }
.gh-days span:nth-child(3) { grid-row: 6; }
.gh-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
}
.gh-day.empty { background: transparent; }
.gh-day { aspect-ratio: 1; border-radius: 2px; background: rgba(245,240,232,0.05); transition: all 0.3s; }
.gh-day.l1 { background: rgba(217,119,87,0.28); }
.gh-day.l2 { background: rgba(217,119,87,0.55); }
.gh-day.l3 { background: rgba(217,119,87,0.82); }
.gh-day.l4 { background: var(--clay); box-shadow: 0 0 8px rgba(217,119,87,0.6); }
.gh-day:hover { transform: scale(1.6); z-index: 2; }

.gh-feed { max-width: 1320px; margin: 0 auto; }
.gh-empty {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: rgba(245,240,232,0.5); padding: 24px 0;
  letter-spacing: 0.05em;
}
.gh-feed-head { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(245,240,232,0.55); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.gh-feed-head .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 8px var(--clay); animation: pulse 1.6s ease-in-out infinite; }
.gh-commit {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 32px;
  padding: 22px 0; border-top: 1px solid var(--line-on-dark);
  align-items: baseline;
  transition: all 0.3s;
}
.gh-commit:last-child { border-bottom: 1px solid var(--line-on-dark); }
.gh-commit .when { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(245,240,232,0.55); }
.gh-commit .msg { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; color: var(--bg); line-height: 1.3; }
.gh-commit .msg .sha { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(245,240,232,0.45); margin-left: 12px; font-style: normal; }
.gh-commit .repo { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--clay); padding: 5px 12px; border: 1px solid rgba(217,119,87,0.5); border-radius: 100px; white-space: nowrap; }
.gh-commit:hover { padding-left: 20px; padding-right: 20px; background: rgba(245,240,232,0.03); }

/* ─── RESUME ─── */
.resume {
  padding: 160px 32px 200px;
  background: var(--bg);
}
.resume-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.resume-left h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 0.88; letter-spacing: -0.03em; margin-bottom: 32px;
}
.resume-left h2 .it { font-style: italic; color: var(--clay); }
.resume-left p { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 460px; margin-bottom: 32px; }
.resume-actions { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.btn-primary, .btn-secondary {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 18px 24px;
  display: inline-flex; align-items: center; justify-content: space-between;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: all 0.3s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--clay); transform: translateY(-2px); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

.resume-viewer {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-2); overflow: hidden;
  height: 760px;
  box-shadow: 0 30px 80px rgba(26,25,21,0.12);
}
.resume-viewer .frame-bar {
  display: flex; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
  align-items: center;
}
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.frame-bar .dot:nth-child(1) { background: var(--clay); }
.frame-bar .dot:nth-child(2) { background: #d4af37; }
.frame-bar .dot:nth-child(3) { background: var(--ink-2); }
.frame-bar .file { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-dim); margin-left: auto; }
.resume-viewer iframe { display: block; width: 100%; height: calc(100% - 38px); border: none; background: white; }

/* ─── CHATBOT (SIDD-AI) ─── */
.sidd-fab {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--ink-2);
  color: var(--bg);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(26,25,21,0.32);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sidd-fab:hover { transform: translateY(-2px); background: var(--clay); }
.sidd-fab.open { background: var(--clay); }
.sidd-fab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 0 rgba(217,119,87,0.8);
  animation: sidd-pulse 1.8s ease-out infinite;
}
.sidd-fab.open .sidd-fab-dot { background: var(--bg); animation: none; }
@keyframes sidd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,119,87,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(217,119,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,87,0); }
}

.sidd-chat {
  position: fixed; right: 24px; bottom: 80px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(26,25,21,0.28);
  z-index: 199;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  overflow: hidden;
}
.sidd-chat.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.sidd-chat-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.sidd-chat-name {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 22px;
  display: inline-flex; align-items: center; gap: 8px;
}
.sidd-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 8px var(--clay);
  animation: sidd-blink 1.6s ease-in-out infinite;
}
@keyframes sidd-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.sidd-chat-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 4px;
}
.sidd-chat-x {
  font-size: 24px; line-height: 1; color: var(--ink-dim);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.sidd-chat-x:hover { background: var(--bg-3); color: var(--bg); }

.sidd-chat-body {
  flex: 1; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.sidd-chat-body::-webkit-scrollbar { width: 6px; }
.sidd-chat-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.sidd-msg { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }
.sidd-msg-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay);
}
.sidd-msg-text {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.5;
  white-space: pre-wrap;
}
.sidd-msg-assistant { align-self: flex-start; }
.sidd-msg-assistant .sidd-msg-text { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.sidd-msg-user { align-self: flex-end; }
.sidd-msg-user .sidd-msg-text { background: var(--ink-2); color: var(--bg); }

.sidd-typing { display: inline-flex; gap: 4px; align-items: center; }
.sidd-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-dim);
  animation: sidd-type 1.2s ease-in-out infinite;
}
.sidd-typing i:nth-child(2) { animation-delay: 0.15s; }
.sidd-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sidd-type {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.sidd-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 12px;
}
.sidd-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.05em;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink-dim);
  transition: all 0.25s;
}
.sidd-chip:hover { border-color: var(--clay); color: var(--clay); background: rgba(217,119,87,0.06); }

.sidd-chat-input {
  display: flex; gap: 8px; align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.sidd-chat-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.sidd-chat-input input:focus { border-color: var(--clay); }
.sidd-chat-input button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--clay); color: var(--bg);
  font-size: 16px; line-height: 1;
  transition: all 0.25s;
}
.sidd-chat-input button:disabled { opacity: 0.4; cursor: not-allowed; }
.sidd-chat-input button:not(:disabled):hover { background: var(--ink-2); transform: translateX(2px); }

@media (max-width: 480px) {
  .sidd-chat { right: 12px; left: 12px; width: auto; bottom: 76px; }
  .sidd-fab { right: 16px; bottom: 16px; }
}
.resume-drop input { display: none; }

/* ─── CONTACT ─── */
.contact {
  padding: 200px 32px 60px;
  background: var(--bg-3); color: var(--bg);
  position: relative; overflow: hidden;
}
.contact .section-marker { color: var(--ink-faint); }
.contact .section-marker .num { color: var(--clay); }
.contact .section-marker::before { background: var(--clay); }

.contact-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }
.contact h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(96px, 16vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin-bottom: 56px;
}
.contact h2 .it { font-style: italic; color: var(--clay); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  border-top: 1px solid var(--line-on-dark); padding-top: 48px;
}
.contact-info p { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; line-height: 1.45; color: rgba(245,240,232,0.78); max-width: 380px; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
  align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--line-on-dark);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 32px;
  letter-spacing: -0.01em;
  transition: all 0.3s;
}
.contact-link:last-child { border-bottom: 1px solid var(--line-on-dark); }
.contact-link .ix { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.contact-link .arrow { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--ink-faint); transition: all 0.3s; }
.contact-link:hover { color: var(--clay); padding-left: 16px; }
.contact-link:hover .arrow { color: var(--clay); transform: translate(8px, -8px); }

.footer-big {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: clamp(60px, 17vw, 320px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-on-dark);
  letter-spacing: -0.04em;
  margin-top: 80px;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

.footer {
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 28px; border-top: 1px solid var(--line-on-dark);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(245,240,232,0.5); letter-spacing: 0.05em;
}

/* reveals */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.2,0.8,0.2,1), transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* responsive */
@media (max-width: 960px) {
  .about-grid, .resume-grid, .contact-grid, .gh-head, .projects-head, .tools-head, .experience-head { grid-template-columns: 1fr; gap: 40px; }
  .proj-row { grid-template-columns: 1fr; min-height: 0; }
  .proj-row.reverse { direction: ltr; }
  .proj-info { padding: 60px 24px 40px; max-width: none; }
  .proj-row.reverse .proj-info { padding: 60px 24px 40px; }
  .proj-visual { height: 60vh; padding: 0 24px 60px; }
  .exp-shell { grid-template-columns: 1fr; gap: 32px; }
  .exp-rail { position: static; border-right: none; border-bottom: 1px solid var(--line-on-dark); padding-right: 0; padding-bottom: 24px; }
  .exp-rail-list { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .exp-card-head { grid-template-columns: 1fr; }
  .exp-impact { grid-template-columns: 1fr; }
  .exp-detail-grid, .exp-stack { grid-template-columns: 1fr; gap: 12px; }
  .gh-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}
