/* ========== SHARED BASE ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* prevent scroll jank */
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #111; }

/* ========== DASHBOARD: Yellow / Apple-style ========== */
body[data-theme="dashboard"] {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1e;
  --fg: #d4d4d8;
  --fg-dim: #7c7c85;
  --fg-bright: #fafafa;
  --accent: #ffbb00;
  --accent-2: #ffd666;
  --accent-warm: #ff9f1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 187, 0, 0.4);
  --glow: 0 0 60px rgba(255, 187, 0, 0.18);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius: 16px;
}
body[data-theme="dashboard"]::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(255, 187, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(255, 159, 28, 0.05), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ========== EDITORIAL ========== */
body[data-theme="editorial"] {
  --bg: #100d08;
  --bg-2: #17130b;
  --bg-3: #1d1810;
  --fg: #d9cfbf;
  --fg-dim: #8b8172;
  --fg-bright: #f5ecd9;
  --accent: #ffb547;
  --accent-2: #ff7a59;
  --accent-warm: #ff7a59;
  --border: rgba(255, 181, 71, 0.14);
  --border-strong: rgba(255, 181, 71, 0.4);
  --glow: 0 0 30px rgba(255, 181, 71, 0.15);
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --radius: 4px;
}
body[data-theme="editorial"]::before {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 80% 10%, rgba(255, 181, 71, 0.06), transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ========== AURORA (light) ========== */
body[data-theme="aurora"] {
  --bg: #f7f5f2;
  --bg-2: #ffffff;
  --bg-3: #efebe5;
  --fg: #23202a;
  --fg-dim: #6e6a78;
  --fg-bright: #0f0c17;
  --accent: #6d5ef8;
  --accent-2: #e8508f;
  --accent-warm: #e8508f;
  --border: rgba(35, 32, 42, 0.09);
  --border-strong: rgba(109, 94, 248, 0.35);
  --glow: 0 20px 60px rgba(109, 94, 248, 0.18);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius: 18px;
}
body[data-theme="aurora"]::before {
  content: ""; position: fixed; inset: -20% -5% auto -5%; height: 70vh;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(109, 94, 248, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(232, 80, 143, 0.15), transparent 65%);
  pointer-events: none; z-index: 0; filter: blur(40px);
}

/* ========== LAYOUT ========== */
.site { max-width: 1280px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg-bright); }
.nav-brand .monogram {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #1a1100; font-weight: 800; font-size: 12px;
}
body[data-theme="aurora"] .nav-brand .monogram { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.nav-links { display: flex; gap: 4px; font-size: 13px; }
.nav-links a {
  padding: 8px 14px; color: var(--fg-dim); border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg-bright); }
.nav-links a.active { color: var(--accent); }
.nav-status { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes blink { 50% { opacity: 0; } }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s, color .3s;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--fg-bright);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #1a1100; border-color: transparent;
}
body[data-theme="aurora"] .btn.primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: white; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ========== HERO — single viewport, zoom-in on scroll ========== */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(255, 187, 0, 0.15), transparent 50%),
    radial-gradient(ellipse 40% 40% at 75% 60%, rgba(255, 159, 28, 0.10), transparent 55%);
  pointer-events: none; z-index: 0;
  transition: opacity .2s linear;
}
body[data-theme="editorial"] .hero-bg {
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,181,71,0.10), transparent 55%);
}
body[data-theme="aurora"] .hero-bg {
  background:
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(109, 94, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 40% at 75% 60%, rgba(232, 80, 143, 0.14), transparent 55%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px;
  align-items: center;
  position: relative; z-index: 1;
  width: 100%;
  transform-origin: center center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px;
}
.hero-label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 7.5vw, 100px); line-height: 0.96;
  letter-spacing: -0.035em; color: var(--fg-bright);
  margin-bottom: 16px; text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body[data-theme="editorial"] .hero-title { font-style: italic; font-weight: 300; }
body[data-theme="editorial"] .hero-title .accent { background: none; -webkit-text-fill-color: initial; color: var(--accent); }
body[data-theme="aurora"] .hero-title .accent { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-rotator {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--fg-dim); font-weight: 500;
  margin-bottom: 22px; line-height: 1.2;
}
.hero-rotator .rot { color: var(--fg-bright); }
.hero-rotator .caret {
  display: inline-block; width: 0.5ch; height: 0.85em;
  background: var(--accent); vertical-align: -0.05em; margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
.hero-sub { font-size: 17px; color: var(--fg-dim); max-width: 54ch; margin-bottom: 30px; line-height: 1.65; }
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero identity card — straight vertical, no rotation */
.id-card {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border);
  box-shadow: var(--glow), 0 40px 80px rgba(0,0,0,0.4);
  overflow: hidden; position: relative;
}
.id-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,187,0,0.08), transparent 50%);
  pointer-events: none;
}
body[data-theme="aurora"] .id-card { background: var(--bg-2); box-shadow: 0 40px 80px rgba(35,32,42,0.12); }
.id-card-inner { padding: 28px; position: relative; }
.id-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.id-avatar {
  width: 68px; height: 68px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #1a1100; font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: -0.02em; position: relative; flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(255,187,0,0.3);
}
body[data-theme="aurora"] .id-avatar { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 10px 30px rgba(109,94,248,0.3); }
.id-avatar::after {
  content: ""; position: absolute; right: -2px; bottom: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #22c55e; border: 3px solid var(--bg-2);
}
.id-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--fg-bright); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; }
.id-role { font-size: 13px; color: var(--fg-dim); }
.id-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.id-meta-item { padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
body[data-theme="aurora"] .id-meta-item { background: var(--bg-3); }
.id-meta-item .k { font-size: 10px; color: var(--fg-dim); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.id-meta-item .v { font-family: var(--font-display); font-size: 13px; color: var(--fg-bright); font-weight: 600; }
.id-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.id-chip {
  padding: 5px 10px; border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-size: 11px; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.id-clock {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; font-size: 12px; color: var(--fg);
}
body[data-theme="aurora"] .id-clock { background: var(--bg-3); }
.id-clock .live { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; font-size: 10px; }

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--fg-dim); letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity .2s linear;
  z-index: 2;
}
.hero-scroll-hint .arr { font-size: 18px; color: var(--accent); animation: bounce 1.8s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ========== SECTION ========== */
.section { padding: 120px 0; border-top: 1px solid var(--border); position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow .num { color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.section-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.03em; color: var(--fg-bright);
  max-width: 22ch; text-wrap: balance;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body[data-theme="editorial"] .section-title { font-style: italic; font-weight: 300; }
body[data-theme="editorial"] .section-title .accent { background: none; -webkit-text-fill-color: initial; color: var(--accent); }
body[data-theme="aurora"] .section-title .accent { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-lede { font-size: 17px; color: var(--fg-dim); max-width: 48ch; line-height: 1.65; }

/* ========== ABOUT ========== */
.about-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px;
  align-items: start;
}
.about-copy p {
  color: var(--fg); font-size: 17px; margin-bottom: 20px; line-height: 1.75;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color .2s, border-color .2s;
}
.about-copy a:hover { color: var(--accent-2); border-bottom-color: var(--accent); }

.about-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.fact {
  background: var(--bg-2); padding: 20px;
  transition: background .3s;
}
.fact:hover { background: var(--bg-3); }
.fact .k {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 8px;
}
.fact .v {
  font-family: var(--font-display); font-size: 22px; color: var(--fg-bright);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.fact .v small { display: block; font-size: 11px; color: var(--fg-dim); font-weight: 400; margin-top: 4px; letter-spacing: 0; }

.about-quick {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; background: var(--bg-2);
}
.about-quick-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.about-quick-list { list-style: none; padding: 0; }
.about-quick-list li {
  padding: 8px 0; font-size: 14px; color: var(--fg);
  border-bottom: 1px dashed var(--border);
}
.about-quick-list li:last-child { border-bottom: none; }

/* ========== TIMELINE / EXPERIENCE ========== */
.tl {
  list-style: none; padding: 0; position: relative;
}
.tl::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, var(--accent), transparent 90%);
  opacity: 0.4;
}
/* hero-style zoom-in entrance for the experience section head */
.exp-head {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.95);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.exp-head.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.tl-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.tl-item.in {
  opacity: 1;
  transform: translateY(0);
}
.tl-rail {
  position: absolute; left: 0; top: 26px;
  width: 21px; display: flex; justify-content: center;
}
.tl-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--fg-dim);
  transition: all .3s;
}
.tl-item.is-current .tl-dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent),
              0 0 16px var(--accent);
}
.tl-item.open .tl-dot { background: var(--accent); border-color: var(--accent); }

.tl-body {
  border-bottom: 1px solid var(--border);
}
.tl-head {
  width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer;
  padding: 22px 14px 22px 6px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  font-family: inherit; color: inherit;
  transition: background .2s;
  border-radius: 12px;
}
.tl-head:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tl-head-left { flex: 1; min-width: 0; }
.tl-period {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.03em; font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.tl-period .tl-arrow { color: var(--fg-dim); opacity: 0.5; }
.tl-tag {
  padding: 3px 9px; border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}
.tl-role {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 6px;
}
body[data-theme="aurora"] .tl-role { color: var(--fg-bright); }
.tl-company { font-size: 13px; color: var(--fg-dim); }
.tl-company a {
  color: var(--accent); font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.tl-company a:hover { border-bottom-color: var(--accent); }
.tl-company .tl-sep { margin: 0 8px; opacity: 0.5; }
.tl-chev {
  font-family: var(--font-display);
  font-size: 22px; color: var(--fg-dim);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 100px;
  flex-shrink: 0;
  transition: color .2s, border-color .2s, background .2s;
}
.tl-head:hover .tl-chev { color: var(--accent); border-color: var(--border-strong); }
.tl-item.open .tl-chev { color: #1a1100; background: var(--accent); border-color: var(--accent); }
body[data-theme="aurora"] .tl-item.open .tl-chev { color: white; }

.tl-detail { overflow: hidden; transition: max-height .5s cubic-bezier(.2,.8,.2,1); }
.tl-detail-inner { padding: 4px 6px 22px; }
.tl-blurb { color: var(--fg); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.tl-bullets { list-style: none; padding: 0; }
.tl-bullets li {
  padding: 6px 0 6px 22px; position: relative;
  color: var(--fg-dim); font-size: 14px; line-height: 1.55;
}
.tl-bullets li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 600;
}

/* ========== SKILLS ========== */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-card {
  border: 1px solid var(--border);
  border-radius: 20px; padding: 26px;
  background: var(--bg-2);
  transition: opacity .7s, transform .7s, border-color .3s;
  opacity: 0; transform: translateY(24px);
}
.skill-card.in { opacity: 1; transform: translateY(0); }
.skill-card:hover { border-color: var(--border-strong); }
.skill-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.skill-card-head .idx {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  color: #1a1100; background: var(--accent); padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.05em;
}
body[data-theme="aurora"] .skill-card-head .idx { color: white; background: var(--accent); }
.skill-card-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg-bright); letter-spacing: -0.01em; }
.skill-card .sublabel { font-size: 10px; color: var(--fg-dim); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.skill-bar { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.skill-bar:last-child { border-bottom: none; }
.skill-bar .label { flex: 1; font-size: 13px; color: var(--fg); }
.skill-bar .meter { width: 110px; height: 5px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.skill-bar .meter .fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
  border-radius: inherit;
}
.skill-bar .pct { flex: 0 0 70px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.skill-bar .pct-val { font-size: 15px; font-weight: 600; color: var(--fg-bright); line-height: 1; transition: color 0.2s; }
.skill-bar:has(.sparkline:hover) .pct-val { color: var(--accent); }
.skill-bar .pct-era { font-size: 9px; color: var(--fg-dim); letter-spacing: 0.07em; white-space: nowrap; text-transform: uppercase; }
.sparkline { display: block; flex-shrink: 0; opacity: 0; transition: opacity 0.6s ease; overflow: visible; }
.sparkline.in { opacity: 1; }
.skill-bar { overflow: visible; }
.skill-card { overflow: visible; }

/* ========== SKILLS TIMELINE ========== */
.stl { position: relative; padding: 0; }
.stl::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, var(--accent), transparent 95%);
}
.stl-node {
  position: relative; padding-left: 40px; padding-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.stl-node.in { opacity: 1; transform: translateY(0); }
.stl-node:last-child { padding-bottom: 0; }
.stl-rail {
  position: absolute; left: 0; top: 4px;
  width: 21px; display: flex; justify-content: center;
}
.stl-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--fg-dim);
  flex-shrink: 0;
}
.stl-dot.stl-dot-current {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent),
              0 0 16px var(--accent);
}
.stl-body { border-bottom: 1px solid var(--border); padding-bottom: 32px; }
.stl-node:last-child .stl-body { border-bottom: none; padding-bottom: 0; }
.stl-year {
  font-size: 11px; color: var(--fg-dim); letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 600; margin-bottom: 16px;
}

.stack-section { margin-top: 40px; }
.stack-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; color: var(--fg); background: var(--bg-2);
  transition: border-color .2s, color .2s, transform .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.6; }

/* ========== CERTS SECTION ========== */
.certs-head {
  opacity: 0; transform: translate3d(0, 28px, 0) scale(0.97);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.certs-head.in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

.edu-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; align-self: center;
}
.edu-tab {
  background: var(--bg-2); padding: 20px;
  border: none; cursor: pointer; text-align: left;
  transition: background .3s; font-family: inherit;
}
.edu-tab:hover { background: var(--bg-3); }
.edu-tab.active { background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.edu-tab-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 8px;
}
.edu-tab-count {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--fg-bright); transition: color .3s;
}
.edu-tab.active .edu-tab-count { color: var(--accent); }

.edu-sub-head {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim);
  padding: 32px 0 14px; border-top: 1px solid var(--border); margin-top: 8px;
}
.edu-sub-head:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }
.edu-card {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; background: var(--bg-2);
  opacity: 0; transform: translate3d(0, 36px, 0) scale(0.94);
  transition: opacity 0.65s cubic-bezier(.2,.8,.2,1), transform 0.65s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: flex-start;
  position: relative;
}
.edu-card.in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.edu-card.in:hover { transform: translateY(-3px) scale(1); }
.edu-card.is-link { cursor: pointer; }
.edu-card.in:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.edu-card.is-link.in:hover { box-shadow: var(--glow); }
.edu-badge {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: #1a1100; background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  letter-spacing: -0.02em; flex-shrink: 0;
}
body[data-theme="aurora"] .edu-badge { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.edu-body h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--fg-bright); margin-bottom: 4px; line-height: 1.3; }
.edu-body .org { font-size: 12px; color: var(--fg-dim); }
.edu-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  white-space: nowrap;
}
.edu-right .year { font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; }
.edu-link-ind {
  font-size: 14px; color: var(--fg-dim);
  transition: color .2s, transform .2s;
}
.edu-card.is-link:hover .edu-link-ind {
  color: var(--accent); transform: translate(2px, -2px);
}
.edu-card.is-new::after {
  content: "#HighDemandSkills"; position: absolute; top: -8px; right: 14px;
  padding: 2px 10px; background: var(--accent); color: #1a1100;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; border-radius: 100px;
}
body[data-theme="aurora"] .edu-card.is-new::after { background: var(--accent); color: white; }

/* ========== QUOTE ========== */
.quote { padding: 120px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4; color: var(--fg-bright);
  max-width: 62ch; margin: 0 auto 24px;
  font-weight: 500; letter-spacing: -0.01em; text-wrap: balance;
}
body[data-theme="editorial"] blockquote { font-style: italic; font-weight: 300; }
.quote cite { font-style: normal; font-size: 12px; color: var(--fg-dim); letter-spacing: 0.2em; text-transform: uppercase; }
.quote cite::before { content: "— "; color: var(--accent); }

/* ========== CONTACT ========== */
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
.contact-headline {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 68px);
  line-height: 1; letter-spacing: -0.03em; color: var(--fg-bright);
  font-weight: 700; margin-bottom: 24px;
}
body[data-theme="editorial"] .contact-headline { font-style: italic; font-weight: 300; }
.contact-headline .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body[data-theme="editorial"] .contact-headline .accent { background: none; -webkit-text-fill-color: initial; color: var(--accent); }
body[data-theme="aurora"] .contact-headline .accent { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-sub { color: var(--fg-dim); font-size: 16px; margin-bottom: 28px; max-width: 42ch; }
.contact-card { border: 1px solid var(--border); border-radius: 20px; padding: 28px; background: var(--bg-2); }
.contact-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.contact-row:last-child { border-bottom: none; }
.contact-row .k { color: var(--fg-dim); letter-spacing: 0.05em; }
.contact-row .v { color: var(--fg-bright); }
.contact-row a.v:hover { color: var(--accent); }

/* ========== FOOTER ========== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.05em; }
.footer .boot { display: flex; align-items: center; gap: 10px; }

/* ========== TWEAKS ========== */
#tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 18px; min-width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--glow);
  display: none;
}
#tweaks[data-open="true"] { display: block; }
#tweaks h4 { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
#tweaks h4::before { content: "●"; }
.tweak-row { margin-bottom: 14px; }
.tweak-row .label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.tweak-row .opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.tweak-opt {
  padding: 8px 10px; font-size: 11px; color: var(--fg-dim);
  border: 1px solid var(--border); background: var(--bg); border-radius: 10px;
  cursor: pointer; transition: color .2s, background .2s, border-color .2s; text-align: center;
  font-family: inherit;
}
.tweak-opt.active { color: #1a1100; background: var(--accent); border-color: var(--accent); }
body[data-theme="aurora"] .tweak-opt.active { background: var(--accent); color: white; }

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

/* ========== NAV HAMBURGER & MOBILE DRAWER ========== */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg-bright); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex; flex-direction: column;
  padding: 0 32px 20px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 16px 0; font-size: 17px;
  color: var(--fg); border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.01em; transition: color .2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--accent); }
.nav-mobile a:hover { color: var(--fg-bright); }

/* ========== RESPONSIVE — tablet (960px) ========== */
@media (max-width: 960px) {
  .site { padding: 0 32px; }
  .nav-inner { padding: 14px 32px; }
  .nav-mobile { padding: 0 32px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .id-meta { grid-template-columns: 1fr 1fr; }
  .hero-right { max-width: 480px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }

  .tl::before { left: 6px; }
  .tl-item { padding-left: 28px; }
  .contact-inner { gap: 48px; }
}

/* ========== RESPONSIVE — mobile (640px) ========== */
@media (max-width: 640px) {
  .site { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-mobile { padding: 0 20px 16px; }

  .section { padding: 72px 0; }
  .section-head { gap: 14px; margin-bottom: 32px; }
  .section-title { font-size: clamp(26px, 7.5vw, 40px); }
  .section-lede { font-size: 15px; }

  .hero { padding: 88px 0 56px; }
  .hero-title { font-size: clamp(34px, 10vw, 52px); }
  .hero-rotator { font-size: clamp(16px, 4.5vw, 24px); }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-cta { gap: 10px; }
  .hero-right { max-width: none; width: 100%; }

  .btn { font-size: 13px; padding: 12px 18px; }

  .about-facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px; }
  .fact .v { font-size: 18px; }

  .tl-item { padding-left: 24px; }
  .tl::before { left: 4px; }
  .tl-role { font-size: 17px; }
  .tl-head { padding: 16px 8px 16px 4px; gap: 10px; }
  .tl-chev { width: 26px; height: 26px; font-size: 16px; flex-shrink: 0; }
  .tl-period { font-size: 11px; gap: 6px; }

  .skills-grid { gap: 12px; }
  .skill-card { padding: 20px; }
  .skill-bar .meter { width: 80px; }
  .sparkline { width: 90px; height: 36px; }

  .edu-grid { grid-template-columns: 1fr; }
  .edu-card { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px; }

  .quote { padding: 72px 0; }
  .quote blockquote { font-size: clamp(17px, 4.5vw, 24px); }

  .contact-inner { gap: 32px; }
  .contact-headline { font-size: clamp(28px, 9vw, 48px); }
  .contact-card { padding: 20px; }

  .footer { flex-direction: column; gap: 10px; text-align: center; padding: 28px 0; }
}

/* ========== RESPONSIVE — small phone (480px) ========== */
@media (max-width: 480px) {
  .site { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-mobile { padding: 0 16px 14px; }
  .hero-title { font-size: clamp(30px, 9.5vw, 44px); }
  .tl-role { font-size: 16px; }
  .edu-card { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .id-meta { grid-template-columns: 1fr 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
