/* =============================================================
   romellbolton.com — iOS 26 design system
   HIG-aligned tokens, Liquid Glass surfaces, spring motion.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --sys-blue:    #007AFF;
  --sys-indigo:  #5856D6;
  --sys-purple:  #AF52DE;
  --sys-pink:    #FF2D55;
  --sys-red:     #FF3B30;
  --sys-orange:  #FF9500;
  --sys-yellow:  #FFCC00;
  --sys-green:   #34C759;
  --sys-teal:    #30B0C7;
  --sys-mint:    #00C7BE;

  --bg:              #F2F2F7;
  --bg-secondary:    #FFFFFF;
  --bg-tertiary:     #F2F2F7;
  --fill:            rgba(120, 120, 128, 0.20);
  --fill-secondary:  rgba(120, 120, 128, 0.16);
  --fill-tertiary:   rgba(118, 118, 128, 0.12);
  --fill-quaternary: rgba(116, 116, 128, 0.08);

  --label:            rgba(0, 0, 0, 1);
  --label-secondary:  rgba(60, 60, 67, 0.60);
  --label-tertiary:   rgba(60, 60, 67, 0.30);
  --label-quaternary: rgba(60, 60, 67, 0.18);
  --separator:        rgba(60, 60, 67, 0.29);

  --glass-thin:      rgba(255, 255, 255, 0.60);
  --glass:           rgba(255, 255, 255, 0.72);
  --glass-thick:     rgba(255, 255, 255, 0.85);
  --glass-highlight: rgba(255, 255, 255, 0.75);
  --glass-shade:     rgba(0, 0, 0, 0.05);

  --spring-standard: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-snap:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-quick:    cubic-bezier(0.4, 0, 0.2, 1);

  --r-small:  8px;
  --r-medium: 12px;
  --r-large:  16px;
  --r-xl:     22px;
  --r-2xl:    28px;
  --r-tab:    26px;
  --r-modal:  14px;

  --t-lt-size:    34px;  --t-lt-lh:    41px;  --t-lt-track: -0.024em;
  --t-t1-size:    28px;  --t-t1-lh:    34px;  --t-t1-track: -0.019em;
  --t-t2-size:    22px;  --t-t2-lh:    28px;  --t-t2-track: -0.017em;
  --t-t3-size:    20px;  --t-t3-lh:    25px;  --t-t3-track: -0.015em;
  --t-hd-size:    17px;  --t-hd-lh:    22px;  --t-hd-track: -0.011em;
  --t-body-size:  17px;  --t-body-lh:  22px;  --t-body-track:-0.011em;
  --t-call-size:  16px;  --t-call-lh:  21px;  --t-call-track:-0.010em;
  --t-sub-size:   15px;  --t-sub-lh:   20px;  --t-sub-track:-0.008em;
  --t-fn-size:    13px;  --t-fn-lh:    18px;  --t-fn-track: -0.005em;
  --t-c1-size:    12px;  --t-c1-lh:    16px;  --t-c1-track:  0em;
  --t-c2-size:    11px;  --t-c2-lh:    13px;  --t-c2-track:  0.006em;

  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sys-blue:    #0A84FF;
    --sys-indigo:  #5E5CE6;
    --sys-purple:  #BF5AF2;
    --sys-pink:    #FF375F;
    --sys-red:     #FF453A;
    --sys-orange:  #FF9F0A;
    --sys-yellow:  #FFD60A;
    --sys-green:   #30D158;
    --sys-teal:    #40C8E0;
    --sys-mint:    #66D4CF;

    --bg:              #000000;
    --bg-secondary:    #1C1C1E;
    --bg-tertiary:     #2C2C2E;
    --fill:            rgba(120, 120, 128, 0.36);
    --fill-secondary:  rgba(120, 120, 128, 0.32);
    --fill-tertiary:   rgba(118, 118, 128, 0.24);
    --fill-quaternary: rgba(118, 118, 128, 0.18);

    --label:            rgba(255, 255, 255, 1);
    --label-secondary:  rgba(235, 235, 245, 0.60);
    --label-tertiary:   rgba(235, 235, 245, 0.30);
    --label-quaternary: rgba(235, 235, 245, 0.18);
    --separator:        rgba(84, 84, 88, 0.65);

    --glass-thin:      rgba(28, 28, 30, 0.55);
    --glass:           rgba(28, 28, 30, 0.68);
    --glass-thick:     rgba(28, 28, 30, 0.82);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-shade:     rgba(255, 255, 255, 0.04);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-thin:  var(--bg-secondary);
    --glass:       var(--bg-secondary);
    --glass-thick: var(--bg-secondary);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", system-ui, sans-serif;
  font-size: var(--t-body-size);
  line-height: calc(var(--t-body-lh) / var(--t-body-size));
  letter-spacing: var(--t-body-track);
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
  min-height: 100dvh;
}
::selection { background: color-mix(in oklab, var(--sys-blue) 30%, transparent); }

body::before {
  content: "";
  position: fixed; inset: -10vmax;
  z-index: -1;
  background:
    radial-gradient(1000px 700px at 12% -8%,  color-mix(in oklab, var(--sys-blue)   26%, transparent), transparent 60%),
    radial-gradient( 900px 600px at 110% 18%, color-mix(in oklab, var(--sys-purple) 22%, transparent), transparent 60%),
    radial-gradient( 800px 600px at 50% 115%, color-mix(in oklab, var(--sys-orange) 20%, transparent), transparent 60%),
    radial-gradient( 600px 500px at -10% 90%, color-mix(in oklab, var(--sys-mint)   16%, transparent), transparent 60%);
  pointer-events: none;
  filter: saturate(115%);
}

a { color: var(--sys-blue); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--sys-blue) 55%, transparent);
  outline-offset: 3px;
  border-radius: var(--r-medium);
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* Text-style classes */
.t-large-title { font-size: var(--t-lt-size);   line-height: calc(var(--t-lt-lh)/var(--t-lt-size));   letter-spacing: var(--t-lt-track);   font-weight: 700; }
.t-title-1     { font-size: var(--t-t1-size);   line-height: calc(var(--t-t1-lh)/var(--t-t1-size));   letter-spacing: var(--t-t1-track);   font-weight: 700; }
.t-title-2     { font-size: var(--t-t2-size);   line-height: calc(var(--t-t2-lh)/var(--t-t2-size));   letter-spacing: var(--t-t2-track);   font-weight: 700; }
.t-title-3     { font-size: var(--t-t3-size);   line-height: calc(var(--t-t3-lh)/var(--t-t3-size));   letter-spacing: var(--t-t3-track);   font-weight: 600; }
.t-headline    { font-size: var(--t-hd-size);   line-height: calc(var(--t-hd-lh)/var(--t-hd-size));   letter-spacing: var(--t-hd-track);   font-weight: 600; }
.t-body        { font-size: var(--t-body-size); line-height: calc(var(--t-body-lh)/var(--t-body-size));letter-spacing: var(--t-body-track); font-weight: 400; }
.t-callout     { font-size: var(--t-call-size); line-height: calc(var(--t-call-lh)/var(--t-call-size));letter-spacing: var(--t-call-track); font-weight: 400; }
.t-subhead     { font-size: var(--t-sub-size);  line-height: calc(var(--t-sub-lh)/var(--t-sub-size)); letter-spacing: var(--t-sub-track);  font-weight: 400; }
.t-footnote    { font-size: var(--t-fn-size);   line-height: calc(var(--t-fn-lh)/var(--t-fn-size));   letter-spacing: var(--t-fn-track);   font-weight: 400; }
.t-caption-1   { font-size: var(--t-c1-size);   line-height: calc(var(--t-c1-lh)/var(--t-c1-size));   letter-spacing: var(--t-c1-track);   font-weight: 400; }
.t-caption-2   { font-size: var(--t-c2-size);   line-height: calc(var(--t-c2-lh)/var(--t-c2-size));   letter-spacing: var(--t-c2-track);   font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Skip link ---------- */
.skip {
  position: fixed; top: -100px; left: 12px;
  padding: 10px 14px; border-radius: var(--r-medium);
  background: var(--sys-blue); color: #fff; font-weight: 600;
  z-index: 100;
}
.skip:focus { top: calc(var(--safe-top) + 12px); outline: none; }

/* ---------- Nav bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top);
  background: transparent;
  transition:
    background 400ms var(--spring-standard),
    -webkit-backdrop-filter 400ms var(--spring-standard),
    backdrop-filter 400ms var(--spring-standard),
    box-shadow 400ms var(--spring-standard);
}
.nav[data-scrolled="true"] {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
          backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0.5px 0 var(--separator);
}
.nav__inner {
  max-width: 780px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__leading  { display: flex; justify-content: flex-start; gap: 2px; }
.nav__trailing { display: flex; justify-content: flex-end;   gap: 2px; }
.nav__title {
  font-size: var(--t-hd-size); font-weight: 600; letter-spacing: var(--t-hd-track);
  opacity: 0; transform: translateY(8px);
  transition: opacity 350ms var(--spring-standard), transform 350ms var(--spring-standard);
}
.nav[data-scrolled="true"] .nav__title { opacity: 1; transform: translateY(0); }
.nav__btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sys-blue);
  border-radius: 999px;
  transition: background 180ms ease, transform 220ms var(--spring-standard);
}
.nav__btn:hover  { background: var(--fill-quaternary); }
.nav__btn:active { transform: scale(0.9); background: var(--fill-tertiary); }

/* ---------- Container + header ---------- */
.container {
  max-width: 780px; margin: 0 auto;
  padding: 0 20px calc(140px + var(--safe-bottom));
}
.header { padding: 6px 0 4px; }
.header__title { margin: 0; }
.header__lede  { margin: 8px 0 0; color: var(--label-secondary); }

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}
.section-head__eyebrow {
  color: var(--label-secondary);
  text-transform: uppercase;
  font-weight: 600;
}
.section-head__title { margin: 2px 0 0; }
.section-head__link  { color: var(--sys-blue); font-weight: 500; }

/* ---------- Intro pill ---------- */
.intro {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
          backdrop-filter: saturate(180%) blur(28px);
  border: 0.5px solid var(--glass-highlight);
  box-shadow:
    inset 0 0.5px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.06);
}
.intro__avatar {
  width: 64px; height: 64px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, var(--sys-blue), var(--sys-purple));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 30px;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.45),
    0 6px 18px color-mix(in oklab, var(--sys-blue) 40%, transparent);
  letter-spacing: -0.02em;
  overflow: hidden;
}
.intro__avatar img { width: 100%; height: 100%; object-fit: cover; }
.intro__hi  { margin: 0 0 2px; }
.intro__sub { margin: 0; color: var(--label-secondary); }

/* ---------- Featured (App Store editorial) ---------- */
.featured {
  display: block;
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(140% 90% at 85% 5%, rgba(255,255,255,0.28), transparent 55%),
    linear-gradient(135deg, var(--sys-orange) 0%, var(--sys-pink) 55%, var(--sys-purple) 100%);
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.4),
    0 18px 46px color-mix(in oklab, var(--sys-pink) 32%, transparent);
  transition: transform 420ms var(--spring-standard), box-shadow 420ms var(--spring-standard);
  isolation: isolate;
}
.featured::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.35);
}
.featured:active { transform: scale(0.985); }
.featured__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-weight: 600;
  margin: 0 0 10px;
}
.featured__row   { display: flex; gap: 14px; align-items: flex-start; }
.featured__body  { flex: 1; min-width: 0; }
.featured__title { margin: 0 0 6px; }
.featured__subtitle { margin: 0 0 10px; opacity: 0.82; }
.featured__desc  { margin: 0; opacity: 0.94; }
.featured__icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 25% 20%, rgba(255,255,255,0.6), transparent 55%),
    linear-gradient(135deg, #ff9d5c 0%, #ff4d84 100%);
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.5),
    0 8px 22px rgba(0,0,0,0.25);
  flex-shrink: 0;
  overflow: hidden;
}
.featured__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured__stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 0.5px solid rgba(255,255,255,0.28);
}
.featured__stat strong { display: block; font-weight: 700; font-size: 15px; }
.featured__stat span   { opacity: 0.9; }

/* ---------- Widgets ---------- */
.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.widget {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
          backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--glass-highlight);
  box-shadow:
    inset 0 0.5px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.05);
  min-height: 140px;
  color: var(--label);
  transition: transform 320ms var(--spring-standard);
}
.widget:active { transform: scale(0.975); }
.widget__glyph {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.4),
    0 4px 12px rgba(0,0,0,0.14);
}
.widget__glyph--basketball { background: linear-gradient(135deg, var(--sys-orange), var(--sys-red)); }
.widget__glyph--heart      { background: linear-gradient(135deg, var(--sys-pink),   #FF6482); }
.widget__glyph--briefcase  { background: linear-gradient(135deg, #64748B, #1E293B); }
.widget__glyph--stack      { background: linear-gradient(135deg, var(--sys-indigo), #7B79FF); }
.widget__glyph--writing    { background: linear-gradient(135deg, var(--sys-teal), var(--sys-blue)); }
.widget__title { margin: 0; }
.widget__body  { margin: 0; color: var(--label-secondary); }
.widget__meta  {
  margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap;
  color: var(--label-secondary);
}
.chip {
  padding: 3px 8px; border-radius: 999px;
  background: var(--fill-tertiary);
  font-weight: 600;
}
.chip--tint { background: color-mix(in oklab, var(--sys-blue) 14%, transparent); color: var(--sys-blue); }

/* ---------- Grouped inset list (Settings) ---------- */
.group {
  list-style: none; padding: 0; margin: 0;
  border-radius: var(--r-large);
  background: var(--bg-secondary);
  overflow: hidden;
  border: 0.5px solid var(--separator);
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}
@media (prefers-color-scheme: dark) { .group { border-color: transparent; } }
.group + .group { margin-top: 14px; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  color: var(--label);
  min-height: 44px;
  position: relative;
  transition: background 150ms ease;
}
.row:active { background: var(--fill-quaternary); }
/* Separator between rows — supports both direct siblings AND the
   standard <li>-wrapped grouped-list markup. */
.row + .row::before,
.group > li + li > .row::before {
  content: ""; position: absolute; top: 0; left: 60px; right: 0;
  height: 0.5px; background: var(--separator);
}
.row__icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.35);
}
.row__icon--blue    { background: var(--sys-blue); }
.row__icon--orange  { background: var(--sys-orange); }
.row__icon--purple  { background: var(--sys-purple); }
.row__icon--pink    { background: var(--sys-pink); }
.row__icon--green   { background: var(--sys-green); }
.row__icon--indigo  { background: var(--sys-indigo); }
.row__icon--gray    { background: #8E8E93; }
.row__icon--teal    { background: var(--sys-teal); }
.row__icon--yellow  { background: var(--sys-yellow); color: rgba(0,0,0,0.75); }
.row__icon--red     { background: var(--sys-red); }
.row__body  { flex: 1; min-width: 0; }
.row__title { margin: 0; }
.row__meta  { margin: 0; color: var(--label-secondary); }
.row__accessory { color: var(--label-tertiary); display: inline-flex; align-items: center; }

/* ---------- Empty state ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px 20px;
  border-radius: var(--r-xl);
  background: var(--glass-thin);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-highlight);
  text-align: center;
}
.empty__glyph {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--fill-tertiary);
  color: var(--label-tertiary);
  display: inline-flex; align-items: center; justify-content: center;
}
.empty__title { margin: 0; }
.empty__body  { margin: 0; color: var(--label-secondary); max-width: 40ch; }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 14px; align-items: center;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
          backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--glass-highlight);
  box-shadow:
    inset 0 0.5px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.05);
}
.callout__glyph {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sys-blue), var(--sys-indigo));
  color: #fff;
  flex-shrink: 0;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.4),
    0 6px 16px color-mix(in oklab, var(--sys-blue) 40%, transparent);
}
.callout__body { flex: 1; }
.callout__lede { margin: 0; color: var(--label-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sys-blue); color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.35), 0 6px 16px color-mix(in oklab, var(--sys-blue) 30%, transparent);
  transition: transform 200ms var(--spring-standard), filter 200ms ease;
}
.btn:hover  { filter: brightness(1.05); }
.btn:active { transform: scale(0.96); filter: brightness(0.95); }
.btn--tinted {
  background: color-mix(in oklab, var(--sys-blue) 14%, transparent);
  color: var(--sys-blue);
  box-shadow: none;
}
.btn--wide { width: 100%; padding: 12px; border-radius: var(--r-medium); }

/* ---------- Prose (reading pages) ---------- */
.prose { max-width: 640px; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2rem; font-size: var(--t-t2-size); line-height: calc(var(--t-t2-lh) / var(--t-t2-size)); letter-spacing: var(--t-t2-track); font-weight: 700; }
.prose h3 { margin-top: 1.5rem; font-size: var(--t-t3-size); line-height: calc(var(--t-t3-lh) / var(--t-t3-size)); letter-spacing: var(--t-t3-track); font-weight: 600; }
.prose p, .prose ul, .prose ol { color: var(--label-secondary); font-size: var(--t-body-size); line-height: 1.5; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--label); font-weight: 600; }
.prose em     { color: var(--label); font-style: italic; }
.prose a:not(.btn) { color: var(--sys-blue); }

/* ---------- Press card ---------- */
.press {
  display: block;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
          backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--glass-highlight);
  transition: transform 320ms var(--spring-standard);
  color: var(--label);
}
.press:active { transform: scale(0.985); }
.press__meta {
  display: flex; gap: 10px; align-items: center;
  color: var(--label-secondary);
  margin: 0 0 6px;
}
.press__pub  { color: var(--sys-blue); font-weight: 600; }
.press__title { margin: 0 0 8px; }
.press__link { color: var(--sys-blue); font-weight: 500; }

/* ---------- Timeline (career) ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.timeline__item {
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
          backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--glass-highlight);
  box-shadow:
    inset 0 0.5px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}
.timeline__item--present {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--sys-blue) 18%, transparent), transparent 55%),
    var(--glass);
}
.timeline__dates {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px;
  color: var(--label-secondary);
}
.timeline__present {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--sys-green) 16%, transparent);
  color: var(--sys-green);
  font-weight: 600;
}
.timeline__present::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sys-green);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--sys-green) 30%, transparent);
}
.timeline__role { margin: 0 0 2px; }
.timeline__org  { margin: 0 0 8px; color: var(--label-secondary); }
.timeline__note { margin: 0; color: var(--label-secondary); }

/* Education row */
.edu {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-large);
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
}
@media (prefers-color-scheme: dark) { .edu { border-color: transparent; } }
.edu + .edu { margin-top: 10px; }
.edu__logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.6),
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.edu__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.edu__body { flex: 1; min-width: 0; }
.edu__badge {
  display: inline-block;
  font-size: var(--t-c2-size); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sys-blue); font-weight: 700;
  margin: 0;
}
.edu__badge--muted { color: var(--label-tertiary); }
.edu__degree { margin: 0; }
.edu__school { margin: 0; color: var(--label-secondary); }
.edu__dates  { margin: 0; color: var(--label-tertiary); }

/* ---------- Event card (foundation) ---------- */
.event {
  display: flex; gap: 14px; align-items: center;
  padding: 14px;
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
          backdrop-filter: saturate(180%) blur(24px);
  border: 0.5px solid var(--glass-highlight);
  box-shadow:
    inset 0 0.5px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.05);
}
.event__date {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sys-pink), var(--sys-red));
  color: #fff;
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.4),
    0 6px 16px color-mix(in oklab, var(--sys-pink) 30%, transparent);
  flex-shrink: 0;
}
.event__month { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; opacity: 0.9; }
.event__day   { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.event__body { flex: 1; min-width: 0; }
.event__eyebrow { color: var(--label-secondary); margin: 0 0 2px; }
.event__title   { margin: 0 0 2px; }
.event__meta    { margin: 0; color: var(--label-tertiary); }

/* ---------- Footer ---------- */
.foot {
  margin: 32px 0 0;
  color: var(--label-tertiary);
  text-align: center;
}
.foot .disclaimer { display: block; margin-top: 6px; }

/* ---------- Tab bar (iOS 26 Liquid Glass — maxed) ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(14px, calc(var(--safe-bottom) + 10px));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  padding: 6px;
  gap: 2px;
  border-radius: var(--r-tab);
  /* Vertical gradient for top shine + bottom lift + very translucent base */
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.42) 0%,
      rgba(255,255,255,0.08) 45%,
      rgba(255,255,255,0.20) 100%),
    rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: saturate(260%) blur(50px);
          backdrop-filter: saturate(260%) blur(50px);
  border: 0.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    /* Bright top rim (the primary specular) */
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.55),
    /* Bottom rim shine (physical lift from surface) */
    inset 0 -1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.25),
    /* Inner dark line for depth against bottom shine */
    inset 0 -1.5px 0.5px rgba(0, 0, 0, 0.05),
    /* Outer hairline */
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    /* Ambient shadows (soft, layered) */
    0 30px 70px rgba(0, 0, 0, 0.24),
    0 12px 30px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 450ms var(--spring-standard),
    padding 350ms var(--spring-standard);
  isolation: isolate;
}

/* Chromatic edge rim — fakes optical lensing at pill boundary */
.tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg,
    rgba(255, 200, 220, 0.55) 0%,
    rgba(220, 235, 255, 0.45) 30%,
    rgba(230, 255, 235, 0.40) 55%,
    rgba(255, 235, 210, 0.50) 78%,
    rgba(230, 210, 255, 0.55) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
  .tabbar {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,0.16) 0%,
        rgba(255,255,255,0.02) 50%,
        rgba(255,255,255,0.08) 100%),
      rgba(28, 28, 30, 0.42);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
      inset 0 1.5px 0 rgba(255, 255, 255, 0.24),
      inset 0 0.5px 0 rgba(255, 255, 255, 0.10),
      inset 0 -1px 0 rgba(255, 255, 255, 0.10),
      inset 0 -1.5px 0.5px rgba(0, 0, 0, 0.4),
      0 0 0 0.5px rgba(0, 0, 0, 0.4),
      0 30px 70px rgba(0, 0, 0, 0.55),
      0 12px 30px rgba(0, 0, 0, 0.35),
      0 4px 12px rgba(0, 0, 0, 0.20);
  }
  .tabbar::before {
    background: linear-gradient(120deg,
      rgba(255, 150, 180, 0.35) 0%,
      rgba(150, 190, 255, 0.30) 30%,
      rgba(170, 255, 200, 0.25) 55%,
      rgba(255, 200, 150, 0.30) 78%,
      rgba(200, 160, 255, 0.35) 100%);
    opacity: 0.55;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: var(--bg-secondary); }
  .tabbar::before { display: none; }
}
.tabbar[data-compact="true"] { padding: 4px; }

.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-width: 60px; min-height: 52px;
  padding: 6px 10px;
  border-radius: 20px;
  color: var(--label-secondary);
  position: relative;
  transition:
    color 260ms var(--spring-standard),
    background 260ms var(--spring-standard),
    transform 380ms var(--spring-snap),
    min-height 320ms var(--spring-standard),
    padding 320ms var(--spring-standard),
    border-radius 320ms var(--spring-standard);
}
.tab svg { width: 24px; height: 24px; stroke-width: 1.75; transition: transform 380ms var(--spring-snap); }
.tab__label {
  font-size: var(--t-c2-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 1;
  max-height: 14px;
  transition: opacity 260ms var(--spring-standard), max-height 320ms var(--spring-standard);
}
.tab:hover  { color: var(--label); }
.tab:active { transform: scale(0.94); }
.tab[aria-current="page"] {
  color: var(--sys-blue);
  background: linear-gradient(180deg, color-mix(in oklab, var(--sys-blue) 20%, transparent), color-mix(in oklab, var(--sys-blue) 10%, transparent));
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.35),
    inset 0 0 0 0.5px color-mix(in oklab, var(--sys-blue) 22%, transparent);
}
.tab[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }

.tabbar[data-compact="true"] .tab {
  min-height: 40px; border-radius: 18px;
}
.tabbar[data-compact="true"] .tab__label {
  opacity: 0; max-height: 0; overflow: hidden;
}
.tabbar[data-compact="true"] .tab svg { transform: scale(1.05); }

/* Home indicator */
.home-indicator {
  position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 999px;
  background: var(--label);
  opacity: 0.14;
  z-index: 40;
  pointer-events: none;
}

/* ---------- Sheet ---------- */
.sheet-scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 320ms var(--spring-standard);
  z-index: 90;
}
.sheet-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 95;
  transform: translateY(100%);
  transition: transform 480ms var(--spring-standard);
  padding: 0 8px 8px;
}
.sheet[data-open="true"] { transform: translateY(0); }
.sheet__panel {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--r-modal) var(--r-modal) 0 0;
  padding: 6px 20px calc(24px + var(--safe-bottom));
  box-shadow: 0 -20px 60px rgba(0,0,0,0.25);
}
.sheet__grabber {
  display: block; width: 36px; height: 5px;
  background: var(--label-quaternary);
  border-radius: 999px;
  margin: 8px auto 12px;
}
.sheet__title { margin: 8px 0 4px; }
.sheet__body  { margin: 0 0 16px; color: var(--label-secondary); }
.sheet__actions { display: flex; flex-direction: column; gap: 10px; }
.sheet__close {
  display: block; width: 100%;
  padding: 12px; border-radius: var(--r-medium);
  background: var(--fill-tertiary); color: var(--label);
  font-weight: 600;
}

/* ---------- Long-press context preview ---------- */
.preview-scrim {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
          backdrop-filter: saturate(140%) blur(20px);
  opacity: 0; pointer-events: none;
  transition: opacity 260ms var(--spring-standard);
}
body[data-peek="true"] .preview-scrim { opacity: 1; pointer-events: auto; }
.peek-active {
  position: relative; z-index: 86;
  transform: scale(1.06) !important;
  transition: transform 320ms var(--spring-snap), box-shadow 320ms var(--spring-standard) !important;
  box-shadow:
    inset 0 0.5px 0 var(--glass-highlight),
    0 30px 60px rgba(0, 0, 0, 0.28),
    0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

/* ---------- View Transitions ---------- */
@supports (view-transition-name: none) {
  main { view-transition-name: main-content; }
}
::view-transition-old(main-content),
::view-transition-new(main-content) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}
::view-transition-old(main-content) { animation-name: vt-fade-out; }
::view-transition-new(main-content) { animation-name: vt-fade-in; }
@keyframes vt-fade-out { to   { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(8px);  } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 460px) {
  .container { padding: 0 16px calc(140px + var(--safe-bottom)); }
  .featured { padding: 18px; }
  .featured__icon { width: 60px; height: 60px; }
  .intro { grid-template-columns: 56px 1fr; }
  .intro__avatar { width: 56px; height: 56px; font-size: 26px; border-radius: 18px; }
  .tab { min-width: 56px; padding: 6px 8px; }

  /* Callout: stack on narrow viewports so long CTA labels don't crush the
     body text into a narrow column. Glyph + text stay on line 1, button
     drops to its own full-width row below. */
  .callout { flex-wrap: wrap; }
  .callout__body { flex-basis: calc(100% - 58px); }
  .callout .btn { width: 100%; margin-top: 4px; }
}
