:root {
  --bg: #1a1e28;
  --surface: #232936;
  --border: #333c4e;
  --ink: #eceff5;
  --ink-2: #b7c0d1;
  --muted: #838da3;
  --accent: #6d9bff;
  --good: #3ecf8e;
  --warn: #e8b34d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1400px circle at 20% 0%, #262d3c 0%, #1d222c 45%, var(--bg) 100%) no-repeat;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 56px 24px 100px; }

/* ---------- hub page: two-column resume layout ---------- */
.hub-grid {
  max-width: 1180px; margin: 0 auto; padding: 48px 24px 100px;
  display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start;
}
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr; gap: 32px; } }

.sidebar {
  position: sticky; top: 32px;
  display: flex; flex-direction: column; gap: 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px;
}
@media (max-width: 860px) { .sidebar { position: static; } }

.side-name {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px;
  font-size: 26px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -0.01em;
}
.side-name-email { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.side-name-email:hover { color: var(--accent); }
.sidebar .role-line { font-size: 14.5px; font-weight: 600; color: var(--accent); margin: 0 0 4px; }
.side-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.side-links > *:not(:last-child)::after { content: "\00b7"; margin-left: 8px; color: var(--muted); }
.side-links a {
  font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.side-links a:hover { color: var(--accent); }

.side-block h2 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; border-top: 1px solid var(--border); padding-top: 18px;
}
.glance-cycle { position: relative; height: 52px; }
.side-stats { list-style: none; margin: 0; padding: 0; position: relative; height: 40px; }
.side-stats li {
  display: flex; flex-direction: column; position: absolute; inset: 0;
  opacity: 0; transform: translateY(4px); transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.side-stats li.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.side-stats strong { font-size: 15.5px; color: var(--ink); font-weight: 700; }
.side-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.glance-dots { display: flex; gap: 5px; margin-top: 10px; }
.glance-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--border); transition: background .3s ease; }
.glance-dots span.is-active { background: var(--accent); }

.main-col { min-width: 0; }
.main-col p, .main-col .lede { max-width: none; }
.intro-lede { font-size: 17px; margin-bottom: 8px; }

/* project cards: bigger, accented, front-and-center */
.projects { display: flex; flex-direction: column; gap: 16px; }
.project { position: relative; border-left-width: 4px; border-left-style: solid; padding-left: 24px; }
.project-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.accent-tourney { border-left-color: #e0a940; }
.accent-tourney .project-tag { color: #e0a940; }
.accent-tourney .name { color: #f0c674; }
.accent-runway { border-left-color: var(--good); }
.accent-runway .project-tag { color: var(--good); }
.accent-getseen { border-left-color: #b98bff; }
.accent-getseen .project-tag { color: #b98bff; }

/* top nav - persistent across every page, so you can jump sideways
   (Tourney -> Runway, say) without a round trip through the hub */
.top-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 24px;
  background: rgba(26, 30, 40, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top-nav-identity { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top-nav-brand { font-size: 13.5px; font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.top-nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.top-nav-links a {
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  padding: 5px 10px; border-radius: 6px; transition: color .15s, background .15s;
}
.top-nav-links a:hover { color: var(--ink); background: var(--surface); }
.top-nav-links a.is-active { color: var(--accent); background: rgba(109,155,255,0.12); }

/* compact contact links, right side of the nav - reachable from every
   page without repeating the sidebar's full name/title/location block */
.top-nav-contact { display: flex; gap: 4px; flex-wrap: wrap; }
.top-nav-contact a {
  font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 5px 10px; border-radius: 6px; transition: color .15s, background .15s;
}
.top-nav-contact a:hover { color: var(--accent); background: var(--surface); }

/* "My Apps" dropdown - native <details>/<summary>, no JS needed */
.nav-dropdown { position: relative; }
.nav-dropdown-label {
  font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  padding: 5px 10px; border-radius: 6px; list-style: none; display: inline-block;
  user-select: none; transition: color .15s, background .15s;
}
.nav-dropdown-label::-webkit-details-marker { display: none; }
.nav-dropdown-label::after { content: "\25BE"; margin-left: 5px; font-size: 9px; display: inline-block; }
.nav-dropdown-label:hover { color: var(--ink); background: var(--surface); }
.nav-dropdown.is-active > .nav-dropdown-label { color: var(--accent); background: rgba(109,155,255,0.12); }
.nav-dropdown[open] > .nav-dropdown-label { color: var(--accent); background: var(--surface); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  display: flex; flex-direction: column; min-width: 150px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.nav-dropdown-menu a {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 7px 10px; border-radius: 6px;
}
.nav-dropdown-menu a:hover { color: var(--ink); background: var(--bg); }
.nav-dropdown-menu a.is-active { color: var(--accent); background: rgba(109,155,255,0.12); }

/* crumbs (subpages only, sits below the top nav) */
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 32px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* hero */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
h1 { font-size: 40px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.015em; line-height: 1.1; }
.role-line { font-size: 18px; font-weight: 600; color: var(--accent); margin: 0 0 14px; }
.tagline { font-size: 16px; color: var(--ink-2); max-width: none; margin: 0; }
.hero-links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 8px;
  padding: 10px 16px; display: inline-block;
}
.btn.primary { background: var(--accent); color: #06101f; }
.btn.ghost { border: 1px solid var(--border); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* sections */
section { margin: 40px 0; }
.section-highlight {
  background: linear-gradient(160deg, rgba(109,155,255,0.08), transparent 60%);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 28px 24px; margin-left: -28px; margin-right: -28px;
}
.section-highlight h2 { color: var(--accent); }
h2 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
h2 .num { color: var(--accent); font-family: ui-monospace, monospace; }
h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; }
p { font-size: 14.5px; color: var(--ink-2); max-width: none; margin: 0 0 14px; line-height: 1.65; }
p.lede { font-size: 15.5px; color: var(--ink); }
ul.plain { padding-left: 18px; margin: 10px 0 0; }
ul.plain li { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; line-height: 1.6; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat .num-big { font-size: 18px; font-weight: 700; color: var(--ink); }
.stat .label { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* timeline (hub page experience section) */
.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 13px 6px; border-top: 1px solid var(--border);
  text-decoration: none; color: inherit; border-radius: 6px;
  transition: background .15s;
}
.tl-row:hover { background: var(--surface); }
.tl-row:hover .tl-what strong { color: var(--accent); }
.tl-row:last-child { border-bottom: 1px solid var(--border); }
.tl-when { font-size: 12.5px; color: var(--muted); font-family: ui-monospace, monospace; white-space: nowrap; }
.tl-what { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tl-what strong { color: var(--ink); }
@media (max-width: 480px) { .tl-row { grid-template-columns: 1fr; gap: 3px; } }

/* cards / projects (used on the hub page) */
.projects { display: flex; flex-direction: column; gap: 18px; }
.hub-grid .projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .hub-grid .projects { grid-template-columns: 1fr; } }
.project {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 26px; transition: border-color .15s;
}
.project:hover { border-color: var(--accent); }
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.project .name { font-size: 19px; font-weight: 700; }
.project .visit { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.project .desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0 0 14px; max-width: 62ch; }
.project.soon { opacity: 0.55; }

/* badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }
.badge.highlight { color: var(--accent); background: var(--accent-soft, rgba(109,155,255,0.14)); border-color: var(--accent); font-weight: 700; }

/* callouts */
.callout {
  border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 18px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
}
.callout strong { color: var(--ink); }

/* comparison rows (AI section) */
.compare { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 620px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.compare-card .who { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.compare-card .what { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ---------- experience page: role picker ---------- */
.exp-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 100px; }
.exp-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; margin-top: 28px; }
@media (max-width: 820px) { .exp-grid { grid-template-columns: 1fr; } }

.exp-list {
  position: sticky; top: 24px; display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
}
@media (max-width: 820px) { .exp-list { position: static; } }
.exp-item {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  padding: 10px 12px; border-radius: 8px; border-left: 3px solid transparent;
}
.exp-item:hover { background: var(--bg); }
.exp-item.is-active { background: var(--bg); border-left-color: var(--accent); }
.exp-role { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.exp-item.is-active .exp-role { color: var(--accent); }
.exp-meta { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.exp-divider {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 3px; border-top: 1px solid var(--border); margin-top: 4px;
}

.exp-detail { min-width: 0; }
.exp-panel { display: none; }
.exp-panel.is-active { display: block; animation: exp-fade .25s ease; }
.exp-panel h2 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 10px; text-transform: none; letter-spacing: normal; }
.exp-dates { font-size: 13px; font-weight: 400; color: var(--muted); }
.exp-panel p, .exp-panel .plain { max-width: none; }
@keyframes exp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

footer.page-footer {
  border-top: 1px solid var(--border); padding-top: 24px; margin-top: 56px;
  font-size: 12.5px; color: var(--muted);
}
