/* ============ Fonts (extracted from the Claude bundle) ============ */
/* DM Mono */
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-mono-400-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-mono-400-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/dm-mono-500-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/dm-mono-500-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Instrument Sans (single variable-width file per subset, served at 400–700) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("assets/fonts/instrument-sans-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("assets/fonts/instrument-sans-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Newsreader */
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/newsreader-italic-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/newsreader-italic-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/newsreader-italic-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/newsreader-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/newsreader-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/newsreader-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Design tokens ============ */
:root {
  --accent: #2f6fed;
  --accent-bright: #4f86f5;
  --accent-soft: rgba(47, 111, 237, .14);
  --accent-line: rgba(47, 111, 237, .34);
  --green: #2bbd6e;

  --bg: #090d16;
  --surface-1: #0e1320;
  --surface-2: #141b2b;
  --surface-3: #1b2335;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);
  --border-faint: rgba(255, 255, 255, .04);
  --fg: #f1f5f9;
  --fg-muted: #98a4b8;
  --fg-subtle: #5d6b85;

  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', ui-serif, Georgia, serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="light"] {
  --bg: #f6f8fb;
  --surface-1: #fff;
  --surface-2: #fff;
  --surface-3: #f1f5f9;
  --border: #e4e9f0;
  --border-strong: #cbd5e1;
  --border-faint: #eef2f7;
  --fg: #0f172a;
  --fg-muted: #5a6677;
  --fg-subtle: #94a3b8;
  --green: #16a34a;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--fg); overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
button { font-family: inherit; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }

@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(9px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

.app {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

.accent { color: var(--accent); }

/* ============ Progress bar ============ */
.progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border-faint);
  z-index: 50;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .72s var(--ease);
}

/* ============ Top bar ============ */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 40;
}

.logo {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  padding: 0;
}

.dots { display: flex; align-items: center; gap: 9px; }

.dots button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.dots button span {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: all .25s var(--ease);
}

.dots button.active span {
  width: 28px;
  background: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--accent-line); }

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline; }

/* ============ Deck ============ */
.scroller {
  display: flex;
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
}

.panel {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.panel-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 88px 8vw 150px;
  max-width: 840px;
  overflow-y: auto;
}

.panel-body-wide { max-width: 1000px; padding-bottom: 130px; }

.watermark {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: min(30vw, 380px);
  line-height: .8;
  color: var(--c, var(--accent));
  opacity: .06;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.watermark-accent { font-size: min(30vw, 380px); right: -3%; opacity: .05; }

.glow {
  position: absolute;
  top: -8%; left: -4%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-soft, var(--accent-soft)) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

/* ============ Home (intro + contact) ============ */
.intro-body { max-width: 1000px; padding: 66px 8vw 52px; }

.intro-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.intro-name {
  font-family: var(--font-serif);
  font-size: min(5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.02em;
  font-weight: 500;
  margin: 0 0 16px;
}

.intro-blurb {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 0 22px;
  font-weight: 300;
}

.intro-stats { display: flex; gap: 44px; flex-wrap: wrap; margin-bottom: 24px; }

.stat-num { font-family: var(--font-serif); font-size: 34px; font-weight: 500; }

.stat-label { display: block; font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

.intro-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
}

.contact-btn:hover { background: var(--accent-bright); color: #fff; }

.intro-social { display: flex; gap: 12px; margin-bottom: 22px; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.social-btn:hover { border-color: var(--accent); color: var(--accent); }

.scroll-hint {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 0;
}

.scroll-hint:hover { color: var(--accent); }

.nudge { display: inline-flex; animation: nudge 1.6s var(--ease) infinite; }

/* ============ Company panels ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c, var(--accent));
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow-accent { color: var(--accent); margin-bottom: 10px; }

.pill-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 999px;
  padding: 2px 10px;
}

.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.company-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }

.logo-chip {
  flex: 0 0 auto;
  height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.logo-chip img { width: auto; display: block; }

.company-row h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.05;
}

.role { font-size: 16px; font-weight: 600; color: var(--fg-muted); margin: 4px 0 0; }

.panel-exl .role { font-size: 15px; }

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 14px 0 24px;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

.bullets-sm { gap: 8px; margin-bottom: 0; }
.bullets-sm li { font-size: 13.5px; line-height: 1.5; padding-left: 15px; }
.bullets-sm li::before { width: 5px; height: 5px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
}

.timeline-strip {
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  height: 1px;
  background: var(--border);
  z-index: 1;
}

.timeline-dot {
  position: absolute;
  left: 8vw;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 5px var(--c-soft);
}

.timeline-dot-now { width: 17px; height: 17px; box-shadow: 0 0 0 6px var(--c-soft); }

.timeline-year {
  position: absolute;
  left: 8vw;
  top: calc(50% + 20px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.timeline-year-now { color: var(--c); font-weight: 600; top: calc(50% + 22px); }

/* ============ EXL two-phase grid ============ */
.exl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin: 22px 0 26px;
}

.exl-phase { position: relative; padding-left: 22px; }

.exl-phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c);
}

.exl-phase-past::before { opacity: .55; }

.exl-phase-past::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: -10px;
  width: 1px;
  background: var(--border-strong);
}

.exl-phase-now::before {
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 5px var(--c-soft);
}

.phase-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--fg-subtle);
  margin: 0 0 6px;
}

.phase-date-current { color: var(--c); }

.exl-phase h3 { font-size: 17px; font-weight: 600; color: var(--fg); margin: 0 0 10px; }

.phase-lede { font-size: 14.5px; line-height: 1.65; color: var(--fg-muted); margin: 0 0 12px; }

/* ============ Prev / next ============ */
.nav-arrows {
  position: absolute;
  bottom: 5vh;
  right: 5vw;
  display: flex;
  gap: 12px;
  z-index: 40;
}

.nav-arrows button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-arrows button:hover { border-color: var(--accent-line); color: var(--accent); }

.nav-arrows.hidden { opacity: 0; visibility: hidden; }

.nav-arrows { transition: opacity .25s var(--ease), visibility .25s; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .panel-body { padding: 80px 6vw 120px; }

  .company-row h2 { font-size: 30px; }

  .exl-grid { grid-template-columns: 1fr; gap: 24px; }

  .intro-name { font-size: min(9vw, 58px); }

  .timeline-strip { bottom: 9%; }

  .dots button span { width: 10px; }
  .dots button.active span { width: 20px; }

  .nav-arrows { bottom: 3vh; }
  .nav-arrows button { width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  .intro-stats { gap: 30px; }

  .company-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .logo-chip { height: 48px; }
}
