/* ── Fonts (self-hosted) ─────────────────────────────────────
   Mirrors Google Fonts' subsetting (latin, latin-ext, vietnamese)
   and unicode-ranges so the browser only downloads the subsets
   it needs. Bricolage Grotesque ships as a single variable-font
   file per subset covering weights 400–800. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-400-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-400-normal-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: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-700-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-700-normal-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: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-400-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-400-normal-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: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-700-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-700-normal-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-vf-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-vf-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-vf-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;
}

/* ── Reset & tokens ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        oklch(98% 0.007 193);
  --bg2:       oklch(95.5% 0.010 193);
  --bg3:       oklch(92.5% 0.013 193);
  --surface:   oklch(99.5% 0.004 193);
  --border:    oklch(88% 0.013 193);
  --text:      oklch(20% 0.010 200);
  --text-muted:oklch(38% 0.010 200);
  --teal:      oklch(48% 0.13 192);
  --teal-lt:   oklch(94.5% 0.022 192);
  --teal-mid:  oklch(72% 0.08 192);
  --on-teal:   oklch(99% 0.004 193);
  --nav-bg:    oklch(98% 0.007 193 / 0.88);
  --nav-panel-bg: oklch(98% 0.007 193 / 0.97);
  --accent:    var(--teal);
  --accent2:   var(--teal);
  --accent-glow: color-mix(in oklch, var(--teal) 10%, transparent);

  --font-sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-serif:'Bricolage Grotesque', system-ui, sans-serif;

  --nav-h: 64px;
  --max-w: 1100px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ── Dark mode ─────────────────────────────────────────────────
   Applied automatically if the OS prefers dark, or forced via
   [data-theme="dark"] set by the in-head script (user toggle).
   Token lightnesses verified against WCAG 2.1 AA (4.5:1 text,
   3:1 non-text).
*/
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        oklch(16% 0.015 193);
    --bg2:       oklch(20% 0.018 193);
    --bg3:       oklch(24% 0.020 193);
    --surface:   oklch(19% 0.017 193);
    --border:    oklch(32% 0.020 193);
    --text:      oklch(96% 0.005 200);
    --text-muted:oklch(72% 0.012 200);
    --teal:      oklch(78% 0.13 192);
    --teal-lt:   oklch(28% 0.045 192);
    --teal-mid:  oklch(60% 0.10 192);
    --on-teal:   oklch(14% 0.015 193);
    --nav-bg:    oklch(16% 0.015 193 / 0.88);
    --nav-panel-bg: oklch(16% 0.015 193 / 0.97);
    --accent-glow: color-mix(in oklch, var(--teal) 18%, transparent);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        oklch(16% 0.015 193);
  --bg2:       oklch(20% 0.018 193);
  --bg3:       oklch(24% 0.020 193);
  --surface:   oklch(19% 0.017 193);
  --border:    oklch(32% 0.020 193);
  --text:      oklch(96% 0.005 200);
  --text-muted:oklch(72% 0.012 200);
  --teal:      oklch(78% 0.13 192);
  --teal-lt:   oklch(28% 0.045 192);
  --teal-mid:  oklch(60% 0.10 192);
  --on-teal:   oklch(14% 0.015 193);
  --nav-bg:    oklch(16% 0.015 193 / 0.88);
  --nav-panel-bg: oklch(16% 0.015 193 / 0.97);
  --accent-glow: color-mix(in oklch, var(--teal) 18%, transparent);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

/* ── Accessibility utilities ─────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--teal);
  color: var(--on-teal);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--on-teal);
  outline-offset: -5px;
}

#main { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

/* Global visible focus indicator. The dark text-color outline ensures
   3:1 contrast (SC 1.4.11) against any background, including the
   light teal-lt surfaces where a teal-only ring would fail. */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
/* Preserve rounded pill look on pill-shaped focus targets */
.btn:focus-visible,
.nav-links .nav-cta:focus-visible,
.year-btn:focus-visible,
.page-btn:focus-visible,
.badge:focus-visible,
.linkedin-fab:focus-visible {
  outline-offset: 3px;
  border-radius: 100px;
}
/* Match card border-radius so the ring traces the shape */
.writing-card:focus-visible,
.talk-card:focus-visible,
.contact-link:focus-visible,
.stat:focus-visible {
  border-radius: 0.875rem;
  outline-offset: 3px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }
p  { color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ── Nav ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#nav::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}

#nav.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 1px 0 var(--border);
}

#nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  text-decoration-line: underline;
  text-decoration-skip-ink: all;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); text-decoration-color: var(--teal); }
.nav-links a.is-active { color: var(--text); font-weight: 600; text-decoration-color: var(--teal); }

.nav-links .nav-cta {
  background: var(--teal);
  color: var(--on-teal);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.nav-links .nav-cta:hover { opacity: 0.85; color: var(--on-teal); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Search ─────────────────────────────────────────────────── */
.nav-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  margin-right: 0.25rem;
}
.nav-search:hover { color: var(--teal); }

/* ── Theme toggle ──────────────────────────────────────────────
   Shows the moon in light mode (meaning "switch to dark") and
   the sun in dark mode (meaning "switch to light"). The visible
   icon is what the button will do, not the current state — that
   mirrors the aria-label. */
.nav-theme {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  position: relative;
}
.nav-theme:hover { color: var(--teal); }
.nav-theme .theme-icon { display: none; }
:root:not([data-theme="dark"]) .nav-theme .theme-icon-moon { display: block; }
:root[data-theme="dark"] .nav-theme .theme-icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-theme .theme-icon-moon { display: none; }
  :root:not([data-theme="light"]) .nav-theme .theme-icon-sun { display: block; }
}

#searchOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
}
#searchOverlay.open { display: flex; flex-direction: column; }

.search-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 1;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.65rem 1.25rem;
  transition: border-color 0.2s;
}
.search-input-wrap:focus-within { border-color: var(--teal); }
.search-input-wrap svg { flex-shrink: 0; color: var(--text-muted); }

#searchInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
}
#searchInput::placeholder { color: var(--text-muted); }

#searchClose {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  /* 44×44 CSS-px minimum target (WCAG 2.1 AA, SC 2.5.5). */
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: color 0.2s, background-color 0.2s;
}
#searchClose:hover { color: var(--text); }

.search-body {
  flex: 1;
  padding: 2.5rem 0;
}

#searchEmpty, #searchNoResults {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.search-group-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-count {
  background: var(--teal-lt);
  color: var(--teal);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .search-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .search-results-grid { grid-template-columns: 1fr; }
}

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% 35%, color-mix(in oklch, var(--teal) 11%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 75%, color-mix(in oklch, var(--teal) 9%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 98%, color-mix(in oklch, var(--teal) 5%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-text h1 { margin-bottom: 1.5rem; }

.hero-nee {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 1.5rem;
}

.hero-sub em { color: var(--teal); font-style: normal; font-weight: 600; }
.hero-sub em a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: var(--teal-lt);
  color: var(--teal);
  border: 1px solid var(--teal-mid);
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--on-teal);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── Hero photo ─────────────────────────────────────────────── */
.hero-photo {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
}

.photo-ring {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 8px color-mix(in oklch, var(--teal) 6%, transparent), 0 20px 60px oklch(0% 0 0 / 0.10);
}

.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.4s;
}

.photo-blob {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--teal) 8%, transparent) 0%, color-mix(in oklch, var(--teal) 6%, transparent) 50%, transparent 70%);
  z-index: 1;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

/* ── Hero scroll hint ───────────────────────────────────────── */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── About ──────────────────────────────────────────────────── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.stat:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 4px 20px color-mix(in oklch, var(--teal) 8%, transparent); }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.timeline-item.visible { opacity: 1; transform: none; }

.timeline-marker {
  position: absolute;
  left: calc(-2rem - 4px);
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--teal) 15%, transparent);
}

.timeline-content {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-content:hover { border-color: var(--teal); box-shadow: 0 4px 20px color-mix(in oklch, var(--teal) 7%, transparent); }

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-company {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-content h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.timeline-content p { font-size: 0.875rem; }

/* ── Book ───────────────────────────────────────────────────── */
#book { background: var(--bg2); }

.book-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 40px oklch(0% 0 0 / 0.06);
}

.book-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 85% 50%, color-mix(in oklch, var(--teal) 5%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.book-text h2 { margin-bottom: 0.25rem; }

.book-subtitle {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.book-text p { margin-bottom: 1.5rem; max-width: 55ch; }

.book-cover-img {
  flex-shrink: 0;
}

.book-cover-link {
  display: inline-block;
  border-radius: 6px;
}

.book-cover-link:focus-visible {
  outline-offset: 3px;
  border-radius: 6px;
}

.book-cover-img img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  box-shadow: -6px 6px 24px oklch(0% 0 0 / 0.18), 0 2px 8px oklch(0% 0 0 / 0.10);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-img img:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: -8px 12px 32px oklch(0% 0 0 / 0.22), 0 4px 12px oklch(0% 0 0 / 0.12);
}

/* ── Writing ────────────────────────────────────────────────── */
#writing h2 { margin-bottom: 2.5rem; }

.writing-group { margin-bottom: 3.5rem; }

.writing-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal-lt);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.writing-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.writing-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in oklch, var(--teal) 9%, transparent);
}

.writing-card--featured {
  grid-column: span 2;
  background: var(--teal-lt);
  border-color: var(--teal-mid);
}
.writing-card--featured:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 24px color-mix(in oklch, var(--teal) 12%, transparent);
}

.writing-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.writing-card--featured .writing-tag { color: var(--teal); }
.writing-card--featured .writing-cta { color: var(--teal); }

.writing-card h4 { flex: 1; font-size: 0.875rem; line-height: 1.4; color: var(--text); font-weight: 500; }
.writing-card--featured h4 { font-size: 0.9rem; line-height: 1.45; font-weight: 600; }

.writing-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: auto;
  transition: letter-spacing 0.2s;
}
.writing-card:hover .writing-cta { letter-spacing: 0.03em; }

/* ── Talks ──────────────────────────────────────────────────── */
#speaking { background: var(--bg2); }
.section-intro { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 65ch; }

/* Year filter */
.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.year-btn {
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.year-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal);
}
/* Active state uses non-color cues so it stays distinct under any
   color-vision deficiency (SC 1.4.1): inset ring + bolder weight. */
.year-btn.active {
  background: var(--teal);
  border-color: var(--text);
  color: var(--on-teal);
  font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--on-teal);
}

.talks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.talk-card {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.talk-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in oklch, var(--teal) 8%, transparent);
}

.talk-meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.talk-card h3 { font-size: 0.875rem; line-height: 1.45; color: var(--text); font-weight: 500; }

.talk-card .talk-type {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: var(--teal-lt);
  color: var(--teal);
  align-self: flex-start;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Contact ────────────────────────────────────────────────── */
#contact {
  position: relative;
  overflow: hidden;
  padding-bottom: 6rem;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 30% 50%, color-mix(in oklch, var(--teal) 5%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 50%, color-mix(in oklch, var(--teal) 5%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 { margin-bottom: 2.5rem; }
.contact-inner > p { margin-bottom: 2.5rem; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: stretch;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.75rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-link:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in oklch, var(--teal) 9%, transparent);
}
.contact-link svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg2);
}
footer p { font-size: 0.8rem; color: var(--text-muted); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}
.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.page-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 3rem;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { width: 220px; height: 220px; margin: 0 auto; }
  .photo-ring { width: 200px; height: 200px; }
  .hero-text { order: 1; }
  .hero-photo { order: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-card { grid-template-columns: 1fr; gap: 2rem; }
  .book-cover-img { display: none; }
  .writing-card--featured { grid-column: span 1; }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .hero-photo { display: none; }

  /* Nav — full-screen overlay */
  @keyframes nav-item-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--nav-panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1.75rem;
    gap: 0.25rem;
    font-size: 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease;
  }
  .nav-links.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
  .nav-links.open li {
    animation: nav-item-enter 0.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  }
  .nav-links.open li:nth-child(1) { animation-delay: 0.07s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.17s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.22s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.27s; }
  .nav-links li { padding: 0.5rem 0; }
  .nav-links a:not(.nav-cta) { color: var(--text); }

  /* Burger → X */
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .hero-text h1 { font-size: 3rem; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .hero-scroll-hint { display: none; }

  /* About */
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat { padding: 1.25rem; }
  .stat-number { font-size: 2rem; }

  /* Timeline */
  .timeline { padding-left: 1.5rem; }
  .timeline-marker { left: calc(-1.5rem - 4px); }
  .timeline-content { padding: 1.25rem; }

  /* Book */
  .book-card { padding: 1.75rem; }

  /* Writing */
  .writing-grid { grid-template-columns: 1fr; }

  /* Talks */
  .talks-grid { grid-template-columns: 1fr; }
  .year-filter { gap: 0.4rem; }
  .year-btn { padding: 0.4rem 0.9rem; font-size: 0.75rem; }

  /* Contact */
  .contact-link { font-size: 0.85rem; padding: 1rem 1.25rem; }
}

/* ── LinkedIn Connect FAB ── */

@keyframes fab-enter {
  from { opacity: 0; transform: translateY(1.75rem) scale(0.82); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fab-beat {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.10); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes sheet-content-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.linkedin-fab {
  display: none;
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
  right: max(1.25rem, env(safe-area-inset-right, 0px) + 1rem);
  z-index: 900;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  background: var(--teal);
  color: var(--on-teal);
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 20px color-mix(in oklch, var(--teal) 40%, transparent), 0 2px 8px oklch(0% 0 0 / 0.12);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.22s ease;
  animation: fab-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}
.linkedin-fab svg {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.linkedin-fab:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 30px color-mix(in oklch, var(--teal) 52%, transparent), 0 4px 12px oklch(0% 0 0 / 0.14);
}
.linkedin-fab:hover svg { transform: scale(1.12); }
.linkedin-fab:active {
  transform: scale(0.92);
  transition: transform 0.08s ease;
}
.linkedin-fab.fab-beat {
  animation: fab-beat 0.48s cubic-bezier(0.25, 1, 0.5, 1);
}
.linkedin-fab.is-hidden {
  animation: none;
  opacity: 0;
  transform: translateY(1rem) scale(0.85);
  pointer-events: none;
}

@media (max-width: 767px) {
  .linkedin-fab { display: flex; }
}

@media (max-width: 767px) and (orientation: landscape) {
  .linkedin-fab {
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
    padding: 0.6rem 1rem 0.6rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* ── LinkedIn Bottom Sheet ── */
.linkedin-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: oklch(0% 0 0 / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.linkedin-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}
.linkedin-overlay.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.linkedin-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1rem 1.75rem 2.5rem;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px oklch(0% 0 0 / 0.12);
}
.linkedin-overlay.is-open .linkedin-sheet { transform: translateY(0); }
.linkedin-overlay.is-closing .linkedin-sheet {
  transform: translateY(105%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 1, 1);
}

/* Staggered entrance for sheet content */
.linkedin-overlay.is-open .linkedin-sheet-header {
  animation: sheet-content-up 0.35s cubic-bezier(0.25, 1, 0.5, 1) 0.15s both;
}
.linkedin-overlay.is-open .linkedin-qr-wrap {
  animation: sheet-content-up 0.35s cubic-bezier(0.25, 1, 0.5, 1) 0.24s both;
}
.linkedin-overlay.is-open .linkedin-sheet-actions {
  animation: sheet-content-up 0.35s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

.linkedin-sheet-handle {
  width: 2.5rem;
  height: 4px;
  background: var(--border);
  border-radius: 9999px;
  margin: 0 auto 1.25rem;
}
.linkedin-sheet-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  background: var(--bg2);
  border: none;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.linkedin-sheet-close:hover { background: var(--bg3); color: var(--text); }

.linkedin-sheet-header { text-align: center; margin-bottom: 1.5rem; }
.linkedin-sheet-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.3rem;
}
.linkedin-sheet-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.2rem;
}
.linkedin-sheet-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.linkedin-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.linkedin-qr-inner {
  padding: 1rem;
  background: #fff;
  border-radius: 1rem;
  border: 2px solid var(--teal-lt);
  box-shadow: 0 4px 20px color-mix(in oklch, var(--teal) 10%, transparent);
  line-height: 0;
}
#linkedinQR img, #linkedinQR canvas { border-radius: 4px; display: block; }

.linkedin-sheet-actions {
  display: flex;
  gap: 0.75rem;
}
.linkedin-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.linkedin-btn:hover { transform: translateY(-1px); }
.linkedin-btn:active { transform: translateY(0); opacity: 0.85; }
.linkedin-btn-primary {
  background: var(--teal);
  color: var(--on-teal);
  box-shadow: 0 3px 14px color-mix(in oklch, var(--teal) 35%, transparent);
}
.linkedin-btn-secondary {
  background: var(--teal-lt);
  color: var(--teal);
}

@media (max-width: 767px) and (orientation: landscape) {
  .linkedin-overlay { align-items: flex-end; }
  .linkedin-sheet {
    max-height: calc(90dvh - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.6rem 1.25rem max(0.75rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    border-radius: 1rem 1rem 0 0;
  }
  .linkedin-sheet::-webkit-scrollbar { display: none; }
  .linkedin-sheet-handle { margin-bottom: 0.5rem; }
  .linkedin-sheet-header { margin-bottom: 0.6rem; }
  .linkedin-sheet-title { font-size: 1.1rem; }
  .linkedin-qr-wrap { margin-bottom: 0.6rem; }
  .linkedin-qr-inner { padding: 0.6rem; }
  #linkedinQR img { max-width: 120px !important; height: auto !important; }
  #linkedinQR canvas { max-width: 120px !important; max-height: 120px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .photo-blob,
  .scroll-line,
  .timeline-item,
  .nav-links,
  .nav-links.open,
  .nav-links.is-closing,
  .nav-links.open li,
  .nav-burger span,
  .linkedin-fab,
  .linkedin-fab.fab-beat,
  .linkedin-overlay,
  .linkedin-overlay.is-open,
  .linkedin-overlay.is-closing,
  .linkedin-overlay.is-open .linkedin-sheet,
  .linkedin-overlay.is-closing .linkedin-sheet,
  .linkedin-overlay.is-open .linkedin-sheet-header,
  .linkedin-overlay.is-open .linkedin-qr-wrap,
  .linkedin-overlay.is-open .linkedin-sheet-actions {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .timeline-item { opacity: 1 !important; transform: none !important; }
  .scroll-line { animation: none !important; opacity: 0.6; }

  /* Force sheet-content-up animated descendants to their final state so
     they never get stuck on the `from { opacity: 0 }` keyframe. */
  .linkedin-overlay.is-open .linkedin-sheet-header,
  .linkedin-overlay.is-open .linkedin-qr-wrap,
  .linkedin-overlay.is-open .linkedin-sheet-actions {
    opacity: 1 !important;
    transform: none !important;
  }
}
