/* ============================================================
   Fahad Mahmud — personal site v4 (interactive)
   Design tokens
   ============================================================ */
:root {
  --bg: #07070b;
  --bg-raise: #0c0d13;
  --bg-card: #0e0f16;
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.25);
  --text: #e8eaf0;
  --text-2: #9aa3b2;
  --text-3: #6b7385;
  --accent: #34d9c3;
  --accent-dim: rgba(52, 217, 195, 0.14);
  --accent-2: #8b93ff;
  --gold: #e8c476;
  --ember: #ff8f6b;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-bn: "Noto Serif Bengali", serif;
  --radius: 14px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(52, 217, 195, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
p a, .case-title a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s; }
p a:hover, .case-title a:hover { color: var(--accent); border-color: var(--accent); }

kbd {
  font-family: var(--font-mono);
  font-size: 0.72em;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-raise);
  color: var(--text-2);
}

.bn, .bn-inline { font-family: var(--font-bn); }
.bn-inline { color: var(--accent); font-weight: 500; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--accent); color: #04241f; padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ============================================================
   Intro stamp
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center; gap: 18px;
  background: var(--bg);
  pointer-events: none;
}
.intro.play { display: flex; animation: intro-out 0.5s ease 1s forwards; }
.intro-mark {
  font-family: var(--font-mono); font-weight: 600; font-size: 30px;
  color: #04241f; background: var(--accent);
  padding: 4px 14px 6px; border-radius: 12px;
  animation: intro-mark 0.7s var(--ease) both;
}
.intro-name {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: 0.34em; color: var(--text);
  animation: intro-name 0.9s var(--ease) 0.15s both;
}
@keyframes intro-mark { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } }
@keyframes intro-name { from { opacity: 0; letter-spacing: 0.6em; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring { display: none; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring {
  display: block; position: fixed; left: 0; top: 0; z-index: 150;
  pointer-events: none; border-radius: 50%;
  transform: translate(-100px, -100px);
}
html.has-cursor .cursor-dot { width: 6px; height: 6px; background: var(--accent); }
html.has-cursor .cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(52, 217, 195, 0.55);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
html.has-cursor .cursor-ring.on {
  width: 52px; height: 52px;
  border-color: rgba(139, 147, 255, 0.8);
}
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, select) { cursor: auto !important; }

/* ---- scroll progress ---- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 60;
}

/* ---- cursor glow ---- */
.cursor-glow {
  position: fixed; z-index: 0; pointer-events: none;
  left: 0; top: 0;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,217,195,0.05), rgba(139,147,255,0.03) 45%, transparent 70%);
  transform: translate(-600px, -600px);
}

/* ---- background texture ---- */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

main, .footer, .nav { position: relative; z-index: 1; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 11, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: baseline; gap: 7px; font-family: var(--font-mono); font-size: 15px; }
.brand-mark {
  color: #04241f; background: var(--accent); font-weight: 600;
  padding: 1px 7px 2px; border-radius: 6px; letter-spacing: -0.5px;
}
.brand-sep { color: var(--text-3); }
.brand-path { color: var(--text-2); font-size: 13px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(148,163,184,0.08); }
.nav-links a.active { color: var(--accent); }

.cmdk-hint {
  display: flex; gap: 3px; align-items: center;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 8px; cursor: pointer; transition: border-color 0.2s;
}
.cmdk-hint:hover { border-color: var(--line-strong); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }

.hero-canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  opacity: 0.95;
  touch-action: pan-y;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px; align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2);
  display: flex; align-items: center; gap: 10px; margin: 0 0 26px;
}
.status-dot {
  flex: none;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(52,217,195,0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,217,195,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(52,217,195,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,217,195,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero-title > span { display: block; }

.hero-role-line { margin-top: 14px; font-size: 0.66em; line-height: 1.25; min-height: 1.3em; }
.role-rotator {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.role-rotator .scramble { opacity: 0.55; }

.hero-roles-all {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
  margin: 0 0 26px; letter-spacing: 0.02em;
}

.hero-lede { max-width: 620px; color: var(--text-2); margin: 0 0 32px; font-size: 17px; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-lede em { color: var(--text); font-style: italic; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-socials { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.hero-socials a { color: var(--text-3); transition: color 0.2s; }
.hero-socials a:hover { color: var(--accent); }

.globe-hint {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3);
  margin: 22px 0 0; opacity: 0.8;
}
.globe-hint::before { content: "◦ "; color: var(--accent); }
@media (hover: none) { .globe-hint { display: none; } }

/* ---- photo ---- */
.hero-photo { position: relative; justify-self: end; }

.photo-card {
  position: relative; margin: 0; width: 330px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85);
  transform: rotate(2deg);
  transition: transform 0.5s var(--ease);
}
.photo-card:hover { transform: rotate(0deg) scale(1.015); }
.photo-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(165deg, rgba(52,217,195,0.16), transparent 45%, rgba(139,147,255,0.18));
  mix-blend-mode: multiply;
}
.photo-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  border-radius: 22px;
}
.photo-card img { display: block; width: 100%; height: auto; filter: contrast(1.04); }
.photo-tag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2);
  background: rgba(7,7,11,0.9);
  padding: 9px 14px; border-top: 1px solid var(--line);
}

.photo-chip {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent);
  background: rgba(12,13,19,0.9); border: 1px solid rgba(52,217,195,0.35);
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8);
  animation: floaty 5.5s ease-in-out infinite;
}
.chip-a { top: 18px; left: -46px; }
.chip-b { top: 46%; right: -30px; animation-delay: 1.4s; color: var(--accent-2); border-color: rgba(139,147,255,0.35); }
.chip-c { bottom: 50px; left: -38px; animation-delay: 2.8s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; font-family: var(--font-body);
  padding: 11px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #04241f; }
.btn-primary:hover { background: #4ce6d1; }
.btn-ghost { border-color: var(--line-strong); color: var(--text-2); background: rgba(7,7,11,0.5); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn-wa { background: rgba(37, 211, 102, 0.14); border-color: rgba(37, 211, 102, 0.4); color: #4be284; }
.btn-wa:hover { background: rgba(37, 211, 102, 0.22); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }

/* ============================================================
   Manifesto — words light up as you scroll
   ============================================================ */
.manifesto { padding-bottom: 90px; }
.manifesto-hint { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin: -18px 0 34px; }
.manifesto-lines { max-width: 860px; display: grid; gap: 40px; }
.mline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.34; letter-spacing: -0.015em; font-weight: 600;
  color: var(--text-2); margin: 0;
}
.mstrong {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mline-close { color: var(--text); }
/* JS wraps words in .w spans; they brighten with scroll progress */
.mline .w { opacity: 0.18; transition: opacity 0.3s ease; }
.mline .w.lit { opacity: 1; }

/* ============================================================
   Metrics
   ============================================================ */
.metrics {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(12,13,19,0.5);
  padding: 40px 0 44px;
}
.metrics-kicker { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin: 0 0 24px; }
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric-unit { font-size: 0.6em; color: var(--text-3); font-weight: 600; }
.metric-label { font-size: 13px; color: var(--text-3); line-height: 1.45; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 104px 0 40px; }

/* per-section colour auras */
.words {
  background:
    radial-gradient(640px 420px at 82% 12%, rgba(139,147,255,0.07), transparent 70%);
}
.anchors {
  background:
    radial-gradient(640px 420px at 18% 20%, rgba(232,196,118,0.05), transparent 70%);
}
.contact {
  background:
    radial-gradient(720px 460px at 50% 100%, rgba(52,217,195,0.06), transparent 70%);
}

.section-title {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 40px;
  display: flex; align-items: baseline; gap: 14px;
}
.section-index { font-family: var(--font-mono); font-size: 0.5em; color: var(--accent); font-weight: 500; }
.section-lede { color: var(--text-2); max-width: 640px; margin: -22px 0 40px; }
.section-lede em { color: var(--text); }
.lede-hint { font-family: var(--font-mono); font-size: 0.82em; color: var(--accent); }

.tilt { transform-style: preserve-3d; }

/* ---- ventures (expandable) ---- */
.vlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vrow {
  display: grid; grid-template-columns: 52px 1fr 170px 140px 30px;
  gap: 20px; align-items: center;
  padding: 24px 12px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background 0.25s;
  cursor: pointer;
}
.vrow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.vrow:hover, .vrow.open { background: rgba(52,217,195,0.03); }
.vrow:hover::before, .vrow.open::before { transform: scaleY(1); }
.vrow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vnum { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.vrow:hover .vnum, .vrow.open .vnum { color: var(--accent); }
.vname {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  margin: 0 0 3px; letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease);
}
.vrow:hover .vname { transform: translateX(6px); }
.vdesc { font-size: 13.5px; color: var(--text-3); margin: 0; }
.vrole { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); text-align: right; }
.vfield { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-align: right; }
.vplus {
  font-family: var(--font-mono); font-size: 18px; color: var(--text-3);
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: transform 0.35s var(--ease), color 0.2s, border-color 0.2s;
}
.vrow:hover .vplus { color: var(--accent); border-color: var(--accent); }
.vrow.open .vplus { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }

.vmore {
  grid-column: 1 / -1;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s ease;
}
.vrow.open .vmore { max-height: 220px; opacity: 1; }
.vmore p {
  margin: 6px 0 4px; max-width: 680px;
  font-size: 14.5px; color: var(--text-2);
  border-left: 2px solid var(--accent-dim); padding-left: 14px;
}
.vmore strong { color: var(--accent); }

/* ---- case ---- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(52,217,195,0.05), transparent 38%), var(--bg-card);
  padding: 36px; margin-bottom: 40px;
}
.case-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.case-kicker { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.case-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.02em; }
.case-title a { border-bottom: none; }
.case-tag { font-size: 13.5px; color: var(--text-3); margin: 0; font-family: var(--font-mono); }
.ext { font-size: 0.75em; color: var(--text-3); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; align-content: flex-start; }
.chips li {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
  background: rgba(148,163,184,0.05);
}

.case-body { color: var(--text-2); max-width: 760px; margin: 0 0 22px; }
.case-body em { color: var(--text); }
.case-result {
  margin: 0; font-size: 15.5px; color: var(--text-2);
  border-left: 2px solid var(--accent); padding-left: 16px;
}
.case-result strong { color: var(--accent); }

/* ============================================================
   Personas — interactive tabs
   ============================================================ */
.personas-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 0 0 22px; letter-spacing: -0.01em;
}
.personas-sub { font-family: var(--font-mono); font-size: 0.6em; color: var(--accent); font-weight: 500; }

.personas {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden;
}
.persona-tabs {
  display: flex; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.ptab {
  flex: 1 1 auto;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  color: var(--text-3);
  padding: 16px 18px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.25s, background 0.2s;
}
.ptab:hover { color: var(--text); background: rgba(148,163,184,0.05); }
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }

.persona-panels { position: relative; }
.persona-panel { padding: 30px 32px 34px; }
.persona-panel[hidden] { display: none; }
.persona-panel.active { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.persona-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 0 0 12px; color: var(--pa, var(--accent)); letter-spacing: -0.01em;
}
.persona-copy { font-size: 15.5px; color: var(--text-2); margin: 0 0 18px; max-width: 720px; }
.persona-tags { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin: 0; line-height: 1.8; }

/* ============================================================
   Words / poem
   ============================================================ */
.words .section-lede em { font-family: var(--font-bn); font-style: normal; color: var(--accent); }

.poem {
  margin: 0; max-width: 1000px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(139,147,255,0.07), transparent 45%), var(--bg-card);
  padding: 44px 48px 38px;
  position: relative;
}
.poem::before {
  content: "”";
  position: absolute; top: 2px; right: 30px;
  font-family: var(--font-bn); font-size: 120px; line-height: 1;
  color: rgba(139,147,255,0.16);
}

.poem-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.poem-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; line-height: 1.3;
  background: linear-gradient(110deg, var(--accent-2), #cdd1ff 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.poem-byline { margin: 0; font-size: 15px; color: var(--gold); }
.poem-byline::before { content: "— "; color: var(--text-3); }

.poem-body { margin: 0; padding: 0; columns: 2; column-gap: 64px; column-rule: 1px solid var(--line); }
.poem-body p {
  font-family: var(--font-bn);
  font-size: 17.5px; line-height: 2; color: var(--text-2);
  margin: 0 0 20px;
  break-inside: avoid;
  transition: color 0.3s;
}
.poem-body p:hover { color: var(--text); }
.poem-body p:last-child { margin-bottom: 0; }

/* staggered line entrance (class added by JS) */
.pline { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease), color 0.3s; }
.pline.in { opacity: 1; transform: none; filter: none; }

.poem-credit {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-3); font-family: var(--font-mono);
}
.poem-credit .bn { color: var(--gold); font-size: 15.5px; }

/* ============================================================
   Anchors
   ============================================================ */
.anchor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.anchor {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.anchor:hover { border-color: rgba(232,196,118,0.35); }
.anchor-bn {
  display: block;
  font-size: 44px; font-weight: 600; line-height: 1.3;
  background: linear-gradient(120deg, var(--gold), #f5e2b3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 8px;
}
.anchor-name {
  font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3); margin: 0 0 14px; font-weight: 500;
}
.anchor-copy { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* ---- timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.tl-item:first-child { border-top: 1px solid var(--line); }
.tl-when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.tl-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.tl-body { font-size: 14.5px; color: var(--text-2); margin: 0; max-width: 680px; }

/* ---- contact ---- */
.contact { padding-bottom: 110px; }
.contact-lede {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
  margin: 0 0 34px; color: var(--text);
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.contact-grid { margin: 0 0 34px; max-width: 560px; border-top: 1px solid var(--line); }
.cg-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cg-row dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.cg-row dd { margin: 0; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cg-row dd a { border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.cg-row dd a:hover { color: var(--accent); border-color: var(--accent); }

.contact-links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 14px; }
.contact-links a { color: var(--text-2); transition: color 0.2s; }
.contact-links a:hover { color: var(--accent); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3); font-family: var(--font-mono);
}

/* ============================================================
   Command palette + toast
   ============================================================ */
.cmdk-overlay[hidden], .toast[hidden] { display: none; }

.cmdk-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4,4,7,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: start center; padding-top: 16vh;
}
.cmdk {
  width: min(560px, calc(100vw - 32px));
  background: var(--bg-raise); border: 1px solid var(--line-strong);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.85);
  animation: cmdk-in 0.18s var(--ease);
}
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(0.985); } }
.cmdk-input {
  width: 100%; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cmdk-input::placeholder { color: var(--text-3); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow-y: auto; }
.cmdk-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px; cursor: pointer;
  font-size: 14.5px; color: var(--text-2);
}
.cmdk-list li .ck-icon { font-family: var(--font-mono); color: var(--accent); font-size: 13px; width: 18px; text-align: center; }
.cmdk-list li .ck-hint { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.cmdk-list li.sel { background: var(--accent-dim); color: var(--text); }
.cmdk-foot {
  display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3); font-family: var(--font-mono);
}

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 95; background: var(--bg-raise); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7);
  animation: toast-in 0.25s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .pline { opacity: 1; transform: none; filter: none; transition: none; }
  .mline .w { opacity: 1; }
  .status-dot, .photo-chip { animation: none; }
  .intro.play { display: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { justify-self: start; margin-left: 46px; }
  .anchor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .poem-body { columns: 1; }
  .vrow { grid-template-columns: 40px 1fr 30px; row-gap: 6px; }
  .vrole, .vfield { grid-column: 2; text-align: left; }
  .vplus { grid-row: 1; grid-column: 3; }
  .vmore { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 118px; }
  .br-lg { display: none; }
  .nav-links { display: none; }
  .section { padding-top: 76px; }
  .case { padding: 24px 20px; }
  .poem { padding: 28px 22px 26px; }
  .poem-body p { font-size: 16.5px; }
  .persona-panel { padding: 24px 20px 28px; }
  .ptab { padding: 13px 10px; font-size: 12.5px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cg-row { grid-template-columns: 92px 1fr; }
  .footer-row { justify-content: center; text-align: center; }
  .footer-hint { display: none; }
  .photo-card { width: min(300px, calc(100vw - 110px)); }
  .chip-a { left: -34px; }
  .chip-c { left: -26px; }
  .intro-name { font-size: 18px; letter-spacing: 0.22em; }
}
