/* ============================================================
   Noah Liot — quant terminal
   Design language: dark fintech / trading terminal.
   Accent: terminal mint. Typography: Space Grotesk, Inter, JetBrains Mono.
   ============================================================ */

:root {
  --bg: #070a10;
  --bg-2: #0b0f17;
  --surface: #0e141f;
  --surface-2: #121926;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e6edf3;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --accent: #f7e201;
  --accent-dim: rgba(247, 226, 1, 0.12);
  --accent-glow: rgba(247, 226, 1, 0.3);
  --red: #ff5c5c;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-w: 1160px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #1a1500; }

/* ---------- background layers ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
}

.glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.glow-a { width: 560px; height: 560px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(247, 226, 1, 0.16), transparent 65%); }
.glow-b { width: 520px; height: 520px; top: 40%; right: -180px; background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 65%); }

/* ---------- shared ---------- */
.mono { font-family: var(--font-mono); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

.caret { animation: caret-blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes caret-blink { 50% { opacity: 0; } }

.term-blink { animation: caret-blink 1.1s steps(1) infinite; }
.term-p { color: var(--accent); }
.term-d { color: #7dd3fc; }
.term-c { color: var(--accent); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 10px var(--accent-glow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 40px);
  background: rgba(7, 10, 16, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(7, 10, 16, 0.92); border-color: var(--line); }

.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav__mono {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  background: var(--accent-dim);
  border-radius: 8px;
}
.nav__name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }

.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex; align-items: baseline; gap: 7px;
  position: relative;
}
.nav__link .nav__idx { color: var(--accent); font-size: 11px; }
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.nav__link--cta {
  padding: 9px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  background: var(--accent-dim);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav__link--cta:hover { background: var(--accent); color: #1a1500; box-shadow: 0 0 24px var(--accent-glow); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 4px) 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); width: 100%; margin-top: 30px; }

.hero__tag { color: var(--text-faint); font-size: 12.5px; letter-spacing: 0.14em; margin-bottom: 22px; }

.hero__title { font-family: var(--font-display); font-weight: 700; line-height: 1.02; font-size: clamp(52px, 9vw, 118px); letter-spacing: -0.03em; }
.hero__title > span { display: block; }
.hero__title-mono { color: var(--accent); font-family: var(--font-mono); font-weight: 600; font-size: clamp(34px, 6vw, 78px); letter-spacing: 0.01em; }

.hero__roles { margin-top: 26px; font-family: var(--font-mono); font-size: clamp(13px, 1.6vw, 16px); color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__dot { color: var(--accent); }

.hero__terminal {
  margin-top: 38px;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.9;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.hero__terminal::before {
  content: "● ● ●";
  display: block;
  font-size: 9px;
  letter-spacing: 6px;
  color: var(--text-faint);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.terminal__line { word-break: break-word; }
.term-dim { color: var(--text-dim); }

.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #1a1500; border: 1px solid var(--accent); box-shadow: 0 0 0 rgba(247, 226, 1, 0); }
.btn--primary:hover { box-shadow: 0 0 32px var(--accent-glow); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; letter-spacing: 0.22em;
  color: var(--text-faint); text-decoration: none;
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, 6px); } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }

.section--about { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(14, 20, 31, 0.55)); }

.section__label { font-size: 12.5px; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.section__label span { color: var(--text-faint); margin-right: 10px; }

.section__title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; }

.section__lede { max-width: 620px; color: var(--text-dim); font-size: 16.5px; margin-bottom: 48px; }

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-bottom: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.stat { background: var(--surface); padding: 22px 20px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.stat__label { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.about__text p { margin-bottom: 20px; color: var(--text-dim); font-size: 17px; }
.about__text p strong { color: var(--text); font-weight: 600; }
.about__sig { color: var(--accent) !important; font-size: 14px !important; margin-top: 28px; letter-spacing: 0.08em; }

.about__data { display: flex; flex-direction: column; gap: 16px; }
.about__card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.about__card-label { font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint); margin-bottom: 14px; }
.about__card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.about__card dl div:last-child { border-bottom: none; }
.about__card dt { color: var(--text-faint); }
.about__card dd { color: var(--text); font-weight: 500; text-align: right; }

.about__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about__tags span {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-dim);
  background: var(--bg-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.about__tags span:hover { color: var(--accent); border-color: var(--accent); }

.tag-bubble {
  position: fixed;
  z-index: 100;
  max-width: 300px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tag-bubble.show { opacity: 1; pointer-events: auto; transform: none; }
.tag-bubble__title {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-right: 20px;
}
.tag-bubble__close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
}
.tag-bubble__close:hover { color: var(--accent); }

.about__line { color: var(--text-dim); font-size: 13px; }

/* ---------- portrait ---------- */
.portrait {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.portrait__media { position: relative; isolation: isolate; }
.portrait__media::before,
.portrait__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.portrait__media::before {
  background: var(--accent);
  mix-blend-mode: screen;
  opacity: 0.8;
}
.portrait__media::after {
  background: #101624;
  mix-blend-mode: multiply;
  opacity: 0.4;
}
.portrait__img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.1) brightness(1.35);
}

/* ---------- career timeline ---------- */
.career { position: relative; margin-top: 8px; padding-left: 28px; }
.career::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 85%);
  opacity: 0.5;
}
.career__item { position: relative; padding: 0 0 24px; }
.career__item:last-child { padding-bottom: 0; }
.career__node {
  position: absolute;
  left: -28px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--accent-glow);
}
.career__period { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 4px; }
.career__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.career__org { color: var(--text-dim); font-size: 13.5px; margin-top: 2px; }

.career__lead { color: var(--text-dim); font-size: 13px; margin: 8px 0 26px; }
.career__bullets {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.career__bullets li {
  color: var(--text-dim);
  font-size: 13px;
  padding-left: 16px;
  position: relative;
}
.career__bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.career__roles {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.career__roles li { color: var(--text-dim); font-size: 13.5px; }
.career__roles li b { color: var(--text); font-weight: 600; }
.career__note { color: var(--text-faint); font-size: 13px; margin-top: 4px; line-height: 1.5; }

/* ---------- career split + world map ---------- */
.career-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.career-split__map { position: sticky; top: calc(var(--nav-h) + 20px); }
.world {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
}
.world__img { display: block; width: 100%; height: auto; }
.world__legend { margin-top: 10px; font-size: 10px; letter-spacing: 0.14em; color: var(--text-faint); text-align: center; }

/* ---------- quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.quote {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.quote__text { font-size: 14.5px; line-height: 1.65; color: var(--text); font-style: italic; flex: 1; }
.quote__cite { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.quote__cite b { color: var(--accent); }

/* ---------- expertise ---------- */
.section--expertise { background: linear-gradient(180deg, transparent, rgba(14, 20, 31, 0.35)); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.card:hover::before { opacity: 1; }

.card__num { color: var(--text-faint); font-size: 12px; letter-spacing: 0.15em; margin-bottom: 16px; }
.card__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card__body { color: var(--text-dim); font-size: 14.5px; }

.banner {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--accent-dim), transparent 70%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px;
}
.banner__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.banner__body { color: var(--text-dim); font-size: 14.5px; }
.banner__status { font-size: 12px; color: var(--text-dim); }

/* ---------- companies ---------- */
.section--companies { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(14, 20, 31, 0.35)); }

.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.company {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.company:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3); }
.company__name { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--text); letter-spacing: -0.01em; }
.company__role { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
.company__tag { color: var(--accent); font-size: 10.5px; letter-spacing: 0.18em; margin-top: auto; padding-top: 10px; }

.company--current { border-left: 3px solid var(--accent); }

/* ---------- recognition / ledger ---------- */
.section--awards { border-top: 1px solid var(--line); }

.ledger { display: flex; flex-direction: column; }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__label { color: var(--text-faint); font-size: 12px; letter-spacing: 0.05em; }
.ledger__value { color: var(--text); font-size: 14.5px; }

.ledger-certs { color: var(--text-dim); font-size: 13px; line-height: 1.9; }

.cert-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-strip span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--bg-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cert-strip span:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- press ---------- */
.press { display: flex; flex-wrap: wrap; gap: 12px; }
.press a {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--bg-2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.press a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- connect ---------- */
.section--connect { border-top: 1px solid var(--line); }

.conn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.conn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.conn:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 30px rgba(247, 226, 1, 0.08); }
.conn__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); }
.conn:hover .conn__name { color: var(--accent); }
.conn__desc { color: var(--text-dim); font-size: 14.5px; }
.conn__link { color: var(--text-faint); font-size: 12px; margin-top: 8px; }

/* ---------- contact ---------- */
.section--contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(247, 226, 1, 0.07), transparent 70%),
    linear-gradient(180deg, transparent, rgba(14, 20, 31, 0.6));
}

.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }

.contact__form { display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field input.invalid,
.field textarea.invalid { border-color: var(--red); }

.contact__err { color: var(--red); font-size: 12px; min-height: 16px; }
.contact__err.ok { color: var(--accent); }
.contact__err a { color: var(--accent); }
.contact__hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.contact__hint a { color: var(--text-dim); }

.contact__side { display: flex; flex-direction: column; gap: 22px; }
.contact__mail { font-size: clamp(16px, 2.4vw, 22px); color: var(--accent); text-decoration: none; letter-spacing: 0.02em; word-break: break-all; }
.contact__mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__loc { color: var(--text-dim); font-size: 13.5px; line-height: 2; }
.contact__foot { color: var(--text-faint); font-size: 12.5px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- blog page ---------- */
.blog-hero { padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 7vw, 80px); }
.blog-cta { margin-top: 34px; color: var(--text-dim); font-size: 13.5px; }
.blog-cta a { text-decoration: none; }
.blog-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- decorative time series ---------- */
.ts {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 170px;
  display: none;
}
.js .ts { display: block; }
.ts.is-offscreen .ts__tape-track { animation-play-state: paused; }
.ts__band {
  position: absolute;
  inset: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ts__band--1 { align-items: flex-start; }
.ts__band--3 { align-items: flex-end; }
.ts__tape-track {
  display: inline-block;
  will-change: transform;
  animation: tape 20s linear infinite;
}
.ts__band--1 .ts__tape-track { animation-duration: 36s; }
.ts__band--2 .ts__tape-track { animation-duration: 21.6s; }
.ts__band--3 .ts__tape-track { animation-duration: 16s; }
@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ts__tape-track span {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  margin: 0 0.9em;
  vertical-align: middle;
}
.ts__tape-track span.sm { font-size: 14px; }
.ts__tape-track span.md { font-size: 22px; }
.ts__tape-track span.lg { font-size: 34px; }
.blog-hero .ts { margin-top: 40px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 5vw, 40px);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-faint);
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--accent); }

/* ---------- back to top ---------- */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav__links { gap: 16px; }
  .nav__link { font-size: 12px; }
  .nav__link .nav__idx { display: none; }
}

@media (max-width: 960px) {
  .about, .contact { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 10, 16, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__link--cta { border: 1px solid var(--accent); margin-top: 14px; text-align: center; justify-content: center; }

  .grid, .conn-grid { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 1fr; gap: 4px; }
  .career-split { grid-template-columns: 1fr; }
  .career-split__map { position: static; }
  .hero__roles { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero__dot { display: none; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
