/* Short & Santiago: personal bio portal. One stylesheet, two themes (body.todd / body.aidan). */
:root {
  --bg: #0a0a0a;
  --ink: #f2efe9;
  --muted: #9a958c;
  --line: rgba(242, 239, 233, 0.14);
  --accent: #c9a96a;
  --display: "Bodoni Moda", Georgia, serif;
  --text: "Inter", system-ui, sans-serif;
  --bar: 56px;
}
body.aidan {
  --bg: #07070b;
  --ink: #f4f1f6;
  --muted: #8f8a99;
  --accent: #e3262f;
  --display: "Anton", Impact, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Portal bar ---------- */
.portal {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.portal .mark {
  font: 600 13px/1 var(--text); letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.portal .mark span { color: var(--accent); }
.portal nav { display: flex; gap: 4px; margin-left: auto; }
.portal nav a {
  font: 500 13px/1 var(--text); letter-spacing: 0.08em; text-decoration: none; color: var(--muted);
  padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.portal nav a:hover { color: var(--ink); }
.portal nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.sound {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 12px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
}
.sound:hover { color: var(--ink); }
.sound .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound .bars i { width: 2px; height: 3px; background: currentColor; }
.sound.on { color: var(--ink); border-color: var(--accent); }
.sound.on .bars i { animation: eq 0.9s ease-in-out infinite; }
.sound.on .bars i:nth-child(2) { animation-delay: .2s; }
.sound.on .bars i:nth-child(3) { animation-delay: .4s; }
.sound.hint { animation: pulse 1.8s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@keyframes pulse { 0%, 100% { border-color: var(--line); } 50% { border-color: var(--accent); } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--bar) + 40px) clamp(20px, 6vw, 96px) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero .portrait { position: relative; }
.hero .portrait img {
  width: 100%; height: min(calc(100svh - var(--bar) - 104px), 900px); object-fit: cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.eyebrow { font: 600 12px/1 var(--text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
h1 {
  font-family: var(--display); font-weight: 500; line-height: 0.95; margin: 22px 0 28px;
  font-size: clamp(56px, 8.4vw, 132px); letter-spacing: -0.02em;
}
body.aidan h1 { font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 34ch; }
.cue { margin-top: 40px; display: inline-flex; gap: 10px; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.cue::after { content: ""; width: 40px; height: 1px; background: var(--accent); }

/* Aidan: retro neon accent */
body.aidan h1 .glow {
  color: transparent; -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 18px rgba(227, 38, 47, 0.55), 0 0 42px rgba(227, 38, 47, 0.3);
  animation: flicker 6s infinite;
}
@keyframes flicker { 0%, 92%, 96%, 100% { opacity: 1; } 93%, 95% { opacity: .55; } }
body.aidan .hero { background: radial-gradient(ellipse at 70% 40%, rgba(227, 38, 47, 0.12), transparent 60%); }

/* ---------- Sections ---------- */
section.block { padding: clamp(72px, 10vw, 140px) clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); }
.block .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; }
body.aidan h2 { font-weight: 400; text-transform: uppercase; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; font-size: clamp(17px, 1.3vw, 19px); }

.chapters { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chapter { background: var(--bg); padding: 32px 28px 40px; min-height: 260px; }
.chapter .n { font: 600 12px/1 var(--text); letter-spacing: .3em; color: var(--accent); }
.chapter h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.1; margin: 18px 0 12px; }
body.aidan .chapter h3 { font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.chapter p { color: var(--muted); font-size: 15px; }

.now { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.now a { display: block; text-decoration: none; border: 1px solid var(--line); padding: 26px 24px; transition: border-color .2s, transform .2s; }
.now a:hover { border-color: var(--accent); transform: translateY(-2px); }
.now strong { display: block; font-size: 18px; font-weight: 600; }
.now span { color: var(--muted); font-size: 14px; }

/* Placeholder copy waiting for the real bio: visibly marked */
.todo { color: var(--muted); font-style: italic; }
.todo::before { content: "Bio coming soon · "; font-style: normal; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

footer { padding: 40px clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Todd: the record ---------- */
h1 em { font-style: italic; color: var(--accent); }
.record { list-style: none; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.record li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.record .yr { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); }
.record .todo-yr { font-size: 22px; font-style: italic; opacity: .6; }
.record h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.record p { color: var(--muted); }
.quote { text-align: center; }
.quote p { font-family: var(--display); font-style: italic; font-size: clamp(34px, 5vw, 72px); line-height: 1.1; max-width: 18ch; margin: 0 auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--bar) + 24px); min-height: 0; }
  .hero .portrait img { height: 62svh; }
  .block .head { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .portal nav a { padding: 8px 8px; font-size: 12px; }
  .portal nav a:not([href^="http"]) { display: none; }
  .record li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 520px) { .chapters { grid-template-columns: 1fr; } .sound .lbl { display: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }
