:root {
  --void:    oklch(0.10 0.02 240);
  --ink:     oklch(0.96 0.005 240);
  --ink-2:   oklch(0.82 0.01  220);
  --ink-3:   oklch(0.62 0.02  220);
  --rule:    oklch(0.96 0.005 240 / 0.18);
  --accent:  oklch(0.78 0.16  180);
  --magenta: oklch(0.70 0.21  340);

  --serif: "Newsreader", "Iowan Old Style", "Source Serif Pro", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  cursor: crosshair;
}

/* Content overlay */
.content {
  position: fixed; inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 2.6vw, 36px) clamp(20px, 3.2vw, 56px);
  pointer-events: none; /* let mouse warp through */
}
.content a, .content button, .content .nav, .content .hero-actions, .content .socials {
  pointer-events: auto;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--accent);
  filter: drop-shadow(0 0 12px color-mix(in oklch, var(--accent) 50%, transparent));
}
.brand-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav {
  display: flex; gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 160ms ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: 0;
  transform: scaleX(0.4); transform-origin: left;
  transition: opacity 200ms ease, transform 240ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { opacity: 0.7; transform: scaleX(1); }

/* Hero */
.hero {
  align-self: center;
  max-width: min(720px, 78vw);
  display: grid;
  gap: 22px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
  width: max-content;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 10px oklch(0.78 0.18 145 / 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: pretty;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  background-image: linear-gradient(
    100deg,
    oklch(0.96 0.005 240) 0%,
    oklch(0.82 0.10 220) 35%,
    oklch(0.78 0.12 200) 75%,
    oklch(0.96 0.005 240) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 12s linear infinite;
  transition: background-image 600ms ease;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-role {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-role .amp {
  color: var(--ink-3);
  margin: 0 6px;
  font-style: normal;
}
.hero-blurb {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  font-weight: 300;
}
.hero-blurb em { color: var(--ink); font-style: italic; }

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 6px;
}
.chev { transition: transform 280ms cubic-bezier(.5,.05,.2,1); }
.chev.open { transform: rotate(90deg); }

/* Contact reveal panel — grid-rows transition so it fits any content height */
.contact {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows 360ms cubic-bezier(.5,.05,.2,1),
              opacity 240ms ease,
              transform 360ms cubic-bezier(.5,.05,.2,1);
  pointer-events: none;
}
.contact.open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.contact > .contact-inner-wrap {
  min-height: 0;
  overflow: hidden;
}
.contact-inner {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: color-mix(in oklch, var(--void) 55%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  max-width: 480px;
}
.contact-inner .contact-links {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
}
.contact-intro {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 44ch;
}
.contact-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
}
.contact-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-value {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-value:hover { color: var(--accent); }
.contact-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in oklch, var(--void) 50%, transparent);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.contact-copy:hover {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--accent) 60%, var(--rule));
}
.contact-copy svg { color: var(--accent); }
.contact-links {
  grid-column: 2 / -1;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.contact-link {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 160ms ease;
}
.contact-handle {
  color: var(--ink-3);
  margin-left: 4px;
  transition: color 160ms ease;
}
.contact-link:hover .contact-handle { color: var(--ink-2); }
.contact-link i {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transition: opacity 160ms ease, background 160ms ease;
}
.contact-link:hover { color: var(--ink); }
.contact-link:hover i { opacity: 1; background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn-primary {
  color: var(--void);
  background: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); background: oklch(1 0 0); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in oklch, var(--ink) 8%, transparent);
}

/* Bottom bar */
.botbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meta-label { color: var(--accent); }
.meta-value { color: var(--ink-2); }
.meta-sep { color: var(--ink-3); }

.hint {
  grid-column: 2;
  justify-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-3);
}
.kbd {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
  background: color-mix(in oklch, var(--void) 30%, transparent);
  backdrop-filter: blur(6px);
}
.kbd-btn {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  min-width: 64px;
  text-align: center;
}
.kbd-btn:hover {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--accent) 60%, var(--rule));
  background: color-mix(in oklch, var(--void) 50%, transparent);
}
.hint-verbs {
  display: inline-flex; align-items: center; gap: 10px;
}
.hint-drag-clause {
  display: inline-flex; align-items: center; gap: 10px;
}
.hint-tap-verb { display: none; }  /* desktop: show 'click', hide 'tap' */
.hint-preset {
  display: inline-flex; align-items: center; gap: 8px;
}
.hint-suffix { color: var(--ink-3); }

/* Touch-first sizes (tablets + phones): swap 'drag/click' verbiage for 'tap'.
   Scoped narrowly so it only affects the hint row \u2014 the rest of the mobile
   layout still kicks in at 720px. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .hint-drag-clause,
  .hint-click-verb { display: none; }
  .hint-tap-verb { display: inline-block; }
}

/* Mobile */
@media (max-width: 720px) {
  /* respect iPhone safe areas (notch + home indicator) without changing desktop */
  .content {
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    gap: 24px;
  }

  /* hide the secondary nav — the bottom bar handles wayfinding */
  .nav { display: none; }

  /* hero — unconstrained width so it can breathe */
  .hero {
    align-self: start;
    margin-top: 8vh;
    max-width: 100%;
    gap: 18px;
  }
  .hero-title {
    /* slightly larger floor than the desktop clamp produces at narrow widths */
    font-size: clamp(64px, 18vw, 112px);
    line-height: 0.94;
  }
  .hero-blurb { font-size: 15px; max-width: 38ch; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 16px; font-size: 10.5px; }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .contact-copy { justify-self: start; }
  .contact-links { grid-column: 1 / -1; }

  /* bottom bar — stack into roomy column, suppress the small "preset" suffix */
  .botbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 10px;
  }
  .meta { gap: 8px; flex-wrap: wrap; }
  .hint {
    justify-self: start;
    width: 100%;
    row-gap: 10px;
    column-gap: 10px;
  }
  .hint .meta-sep { display: none; }
  .kbd-btn { min-width: 0; padding: 5px 10px; }

  /* drop hover-only nudges on touch */
  .btn-primary:hover { transform: none; }

  /* the wallpaper canvas should fill the visual viewport including notch area */
  .bg-canvas { height: 100dvh; }
}

/* Very narrow phones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(56px, 17vw, 88px); }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
}

/* Short landscape phones — keep hero from being clipped */
@media (max-height: 520px) and (orientation: landscape) {
  .content {
    grid-template-rows: auto auto auto;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .hero { margin-top: 0; gap: 8px; align-self: start; }
  .hero-title { font-size: clamp(36px, 7vw, 56px); line-height: 0.95; }
  .hero-eyebrow { font-size: 9.5px; }
  .hero-role { font-size: 11px; }
  .hero-blurb { display: none; }
  .hero-actions { gap: 8px; }
  .btn { padding: 8px 12px; font-size: 10px; }
  .contact-inner { padding: 10px 12px; gap: 6px; }
  .botbar { font-size: 9.5px; gap: 6px; }
  .meta-label, .hint-suffix { display: none; }
}

/* ───────────────────────── About overlay ───────────────────────── */

/* Ghost button variant for the secondary CTA */
.btn-ghost {
  color: var(--ink);
  background: color-mix(in oklch, var(--void) 30%, transparent);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}
.btn-ghost:hover {
  border-color: color-mix(in oklch, var(--ink) 60%, var(--rule));
  background: color-mix(in oklch, var(--void) 50%, transparent);
  transform: translateY(-1px);
}

/* Dim the wallpaper canvas while the overlay is open */
body[data-overlay-open="true"] .bg-canvas {
  filter: brightness(0.5) saturate(0.85);
  transition: filter 280ms ease;
}
.bg-canvas { transition: filter 280ms ease; }

/* Backdrop */
.about-overlay {
  position: fixed; inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vh, 56px) clamp(20px, 4vw, 64px);
  background: color-mix(in oklch, var(--void) 65%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: auto;
}
.about-overlay.shown { opacity: 1; }

/* Dialog card */
.about-dialog {
  width: min(880px, 100%);
  max-height: min(720px, 90vh);
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: color-mix(in oklch, var(--void) 92%, black);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--ink) 4%, transparent) inset,
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 60px -20px color-mix(in oklch, var(--accent) 30%, transparent);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition:
    transform 280ms cubic-bezier(.5,.05,.2,1),
    opacity 220ms ease;
}
.about-overlay.shown .about-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.about-dialog:focus { outline: none; }
.about-dialog:focus-visible { outline: none; }

/* Title bar */
.about-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--void) 70%, transparent);
}
.about-tlights {
  display: inline-flex; gap: 8px;
}
.about-tlight {
  width: 12px; height: 12px;
  border-radius: 50%;
  padding: 0;
  border: 0;
  display: inline-grid; place-items: center;
  color: transparent; /* glyph hidden until hover */
  cursor: default;
  transition: color 120ms ease, filter 120ms ease, transform 120ms ease;
}
.about-tlight-close {
  cursor: pointer;
  background: oklch(0.66 0.20 25);   /* macOS red */
  box-shadow: inset 0 0 0 0.5px oklch(0.46 0.18 25);
}
.about-tlight-min {
  background: oklch(0.80 0.16 90);   /* yellow */
  box-shadow: inset 0 0 0 0.5px oklch(0.62 0.14 90);
}
.about-tlight-max {
  background: oklch(0.74 0.18 145);  /* green */
  box-shadow: inset 0 0 0 0.5px oklch(0.54 0.16 145);
}
/* Reveal the close glyph when the cluster (or button) is hovered/focused */
.about-tlights:hover .about-tlight-close,
.about-tlight-close:focus-visible {
  color: oklch(0.20 0.10 25);
}
.about-tlight-close:hover { filter: brightness(1.05); }
.about-tlight-close:active { transform: scale(0.94); }
.about-tlight-close:focus-visible {
  outline: 2px solid color-mix(in oklch, oklch(0.66 0.20 25) 70%, transparent);
  outline-offset: 2px;
}
.about-breadcrumb {
  justify-self: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.about-breadcrumb-meta { color: var(--ink-3); }
.about-close {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in oklch, var(--void) 50%, transparent);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.about-close:hover {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--accent) 60%, var(--rule));
}
.about-close-kbd { color: var(--ink-3); }
.about-close:hover .about-close-kbd { color: var(--ink-2); }

/* Tab strip */
.about-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 14px 0;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.about-tabs::-webkit-scrollbar { display: none; }
.about-tab {
  position: relative;
  flex-shrink: 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 160ms ease;
}
.about-tab:hover { color: var(--ink-2); }
.about-tab.active { color: var(--ink); }
.about-tab.active::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  /* Letter-spacing adds trailing space after the final glyph that browsers
     render *inside* the box, shifting the underline visually right of the
     text. Pull it back by half the letter-spacing to recenter. */
  transform: translateX(-0.09em);
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 14px color-mix(in oklch, var(--accent) 60%, transparent);
}
.about-tab:focus-visible {
  outline: 1px solid color-mix(in oklch, var(--accent) 60%, var(--rule));
  outline-offset: -4px;
  border-radius: 4px;
}

/* Body */
.about-body {
  overflow: auto;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3.5vw, 44px) clamp(28px, 5vw, 52px);
  scrollbar-color: var(--rule) transparent;
}
.about-body::-webkit-scrollbar { width: 10px; }
.about-body::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Tab transition stage — entering and leaving panels overlap briefly,
   cross-fading with a small horizontal slide. The stage establishes a
   positioning context so the leaving panel can lift onto an absolute
   layer without affecting layout of the entering one. */
.tab-stage {
  position: relative;
}
.tab-panel {
  transition:
    opacity 240ms cubic-bezier(.5,.05,.2,1),
    transform 280ms cubic-bezier(.5,.05,.2,1),
    filter 240ms cubic-bezier(.5,.05,.2,1);
  will-change: opacity, transform;
}
/* Entering — start offset, end at rest. Direction picks the offset side. */
.tab-stage[data-direction="fwd"]  .tab-panel[data-state="enter"] {
  animation: tab-enter-fwd 320ms cubic-bezier(.5,.05,.2,1) both;
}
.tab-stage[data-direction="back"] .tab-panel[data-state="enter"] {
  animation: tab-enter-back 320ms cubic-bezier(.5,.05,.2,1) both;
}
/* Leaving — float the old panel on top of the layout flow so it doesn't
   force a height jump while the new panel is also rendering. */
.tab-panel[data-state="leave"] {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tab-stage[data-direction="fwd"]  .tab-panel[data-state="leave"] {
  animation: tab-leave-fwd 240ms cubic-bezier(.5,.05,.2,1) both;
}
.tab-stage[data-direction="back"] .tab-panel[data-state="leave"] {
  animation: tab-leave-back 240ms cubic-bezier(.5,.05,.2,1) both;
}

@keyframes tab-enter-fwd {
  from { opacity: 0; transform: translate3d(18px, 0, 0); filter: blur(2px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);    filter: blur(0); }
}
@keyframes tab-enter-back {
  from { opacity: 0; transform: translate3d(-18px, 0, 0); filter: blur(2px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);     filter: blur(0); }
}
@keyframes tab-leave-fwd {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to   { opacity: 0; transform: translate3d(-18px, 0, 0); }
}
@keyframes tab-leave-back {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to   { opacity: 0; transform: translate3d(18px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-stage[data-direction] .tab-panel[data-state="enter"],
  .tab-stage[data-direction] .tab-panel[data-state="leave"] {
    animation: none;
  }
}

.about-section { max-width: 62ch; }
.about-section:focus-visible { outline: none; }

/* About text */
.about-section-about p {
  margin: 0 0 1.1em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about-section-about p:last-child { margin-bottom: 0; }
.about-section-about p strong,
.about-section-about p em { color: var(--ink); }

/* Experience */
.exp-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 28px;
}
.exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.exp-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.exp-range {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.exp-role {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
  color: var(--ink);
}
.exp-company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.exp-company-name { color: var(--ink); }
.exp-acq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--rule));
  border-radius: 4px;
}
.exp-acq svg { color: var(--accent); }
.exp-acq strong {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.exp-blurb {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.exp-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 60ch;
}
.exp-bullets li {
  position: relative;
  padding-left: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--ink-3);
}

/* Patents */
.pat-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 26px;
}
.pat-item {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.pat-item:first-child { padding-top: 0; border-top: 0; }
.pat-primary {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 8px;
}
.pat-jur {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--rule));
  border-radius: 3px;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.pat-num { font-weight: 500; }
a.pat-num {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.pat-num:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
a.pat-num:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.pat-sep { color: var(--ink-3); }
.pat-year { color: var(--ink-2); }
.pat-filed {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.pat-inventors {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  max-width: 64ch;
}
.pat-inventors-label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pat-inventors-list {
  color: var(--ink-2);
  line-height: 1.65;
}
.pat-inventors-sep { color: var(--ink-3); margin: 0 2px; }
.pat-inventor-me {
  color: var(--accent);
  font-weight: 500;
}
.pat-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
  max-width: 58ch;
}
.pat-counterpart {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding-left: 16px;
}
.pat-counterpart .pat-jur {
  color: var(--ink-2);
  border-color: var(--rule);
  background: transparent;
}
.pat-counterpart-arrow { color: var(--ink-3); }
.pat-counterpart-note {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 4px;
}

/* Mobile / phones — full-screen overlay, no padding around dialog */
@media (max-width: 720px) {
  .about-overlay { padding: 0; }
  .about-dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: 0;
  }
  .about-titlebar {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .about-breadcrumb { font-size: 10.5px; }
  .about-tabs {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .about-tab { padding: 12px 12px; }
  .about-tab.active::after { left: 12px; right: 12px; }
  .about-body {
    padding: 22px max(20px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .exp-range { padding-top: 0; }
  .exp-role { font-size: 19px; }
  .exp-blurb { font-size: 15px; }
  .exp-bullets li { font-size: 15px; }
  .pat-title { font-size: 17px; }
  .pat-counterpart { padding-left: 0; }
}

/* Stack the two CTAs on phones — second button matches width feel */
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
}
.twk-panel, .twk-panel * { color-scheme: dark; }
.twk-panel {
  --twk-bg: color-mix(in oklch, var(--void) 92%, black);
  --twk-fg: var(--ink);
  --twk-accent: var(--accent);
}
  