/* ============================================================
   JOSH JOHNSON — EDITORIAL THEME
   Full-Screen · Bold · Dark Gold · System Adaptive
   ============================================================ */

/* ─── TOKENS ─── */
:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --gutter: clamp(48px, 7vw, 104px);
  --col-label: 220px;
  --radius: 4px;

  /* Light mode */
  --bg:             #FAFAF7;
  --surface:        #FFFFFF;
  --surface-alt:    #F3F2EC;
  --border:         #E2E0D8;
  --border-strong:  #C5C2B8;
  --text:           #050505;
  --text-secondary: #211F1A;
  --muted:          #5B5448;
  --accent:         #8C690B;
  --accent-bg:      #F6EFD9;
  --accent-hover:   #6E5309;
  --on-accent:      #FFFFFF;
  --danger:         #B91C1C;
  --danger-bg:      #FEE2E2;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 1px 3px rgba(0,0,0,0.08), 0 6px 16px rgba(0,0,0,0.06);
  --shadow-lg:      0 2px 6px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.11);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:             #000000;
    --surface:        #070706;
    --surface-alt:    #12100C;
    --border:         #242018;
    --border-strong:  #3A3325;
    --text:           #FAF7EF;
    --text-secondary: #DED5C4;
    --muted:          #A99E8A;
    --accent:         #D4AF37;
    --accent-bg:      #2A220D;
    --accent-hover:   #E6C75A;
    --danger:         #F87171;
    --danger-bg:      #3A0D0D;
    --shadow-sm:      0 1px 2px rgba(0,0,0,0.25);
    --shadow:         0 1px 3px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.22);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:             #FAFAF7;
  --surface:        #FFFFFF;
  --surface-alt:    #F3F2EC;
  --border:         #E2E0D8;
  --border-strong:  #C5C2B8;
  --text:           #050505;
  --text-secondary: #211F1A;
  --muted:          #5B5448;
  --accent:         #8C690B;
  --accent-bg:      #F6EFD9;
  --accent-hover:   #6E5309;
  --on-accent:      #FFFFFF;
  --danger:         #B91C1C;
  --danger-bg:      #FEE2E2;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 1px 3px rgba(0,0,0,0.08), 0 6px 16px rgba(0,0,0,0.06);
  --shadow-lg:      0 2px 6px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.11);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg:             #000000;
  --surface:        #070706;
  --surface-alt:    #12100C;
  --border:         #242018;
  --border-strong:  #3A3325;
  --text:           #FAF7EF;
  --text-secondary: #DED5C4;
  --muted:          #A99E8A;
  --accent:         #C9A227;
  --accent-bg:      #221A08;
  --accent-hover:   #DDB84A;
  --on-accent:      #181203;
  --danger:         #F87171;
  --danger-bg:      #3A0D0D;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.25);
  --shadow:         0 1px 3px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.22);
  --shadow-lg:      0 2px 8px rgba(0,0,0,0.42), 0 20px 48px rgba(0,0,0,0.36);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 88% -8%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-bg) 30%, transparent), transparent 420px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle film grain — the tactile layer modern sites use. Sits above
   everything but is pointer-transparent and barely-there. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

html[data-theme="dark"] body::before { opacity: 0.05; }

/* ─── A11y: keyboard focus ring — accent outline, consistent everywhere ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Anchor scroll lands below the fixed nav with breathing room */
:target,
.section__header h2 { scroll-margin-top: 96px; }

/* ─── TOP NAV ─── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, padding 0.22s ease;
}

.topnav[data-scrolled="true"] {
  padding-block: 12px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(17, 17, 16, 0.06);
}

.topnav__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.topnav__name span {
  color: var(--accent);
}

.topnav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 32px);
  margin-left: auto;
}

.topnav__links a {
  position: relative;
  padding: 8px 0;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.topnav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.topnav__links a:hover {
  color: var(--accent);
}

.topnav__links a:hover::after {
  width: 100%;
}

.topnav__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav__resume .resume-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.topnav__resume .resume-menu__trigger:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.theme-toggle {
  position: fixed;
  right: clamp(14px, 2vw, 22px);
  bottom: clamp(14px, 2vw, 22px);
  z-index: 180;
  display: inline-flex;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  color: var(--muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.62;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  opacity: 1;
}

.theme-toggle__icon {
  position: absolute;
  width: 17px;
  height: 17px;
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme="light"] .theme-toggle__icon--sun,
html[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

html[data-theme="light"] .theme-toggle__icon--moon,
html[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.topnav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.topnav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.topnav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.topnav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.topnav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 96px 28px 48px;
  background: var(--bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-drawer[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.nav-drawer a:hover {
  color: var(--accent);
}

body.nav-open {
  overflow: hidden;
}

/* ─── PAGE WRAPPER (full-screen, no centering box) ─── */
.page {
  padding: 0 var(--gutter) 80px;
  padding-top: 70px; /* offset for fixed nav */
  overflow-x: clip;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  padding: clamp(34px, 5vh, 56px) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__container {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  align-items: center;
  gap: clamp(40px, 5.5vw, 80px);
  min-height: clamp(360px, 43svh, 500px);
  padding: clamp(22px, 3.4vh, 36px) 0;
  border-top: 2px solid var(--text);
  position: relative;
  max-width: min(1200px, 100%);
  margin-inline: auto;
}

.hero__narrative,
.hero__visual,
.hero__proof {
  position: relative;
  z-index: 1;
}

.hero__narrative {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

/* Generative flow field — contained to the proof band as an accent texture. */
.hero__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

html[data-theme="dark"] .hero__flow { opacity: 0.46; }

@media (prefers-reduced-motion: reduce) {
  .hero__flow { opacity: 0.3; }
}

.hero__visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  min-width: 260px;
}

/* Profile photo */
.hero__photo {
  width: 100%;
  height: clamp(320px, 39svh, 430px);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: var(--surface-alt);
}

.hero__photo::after {
  display: none;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  position: relative;
  border-radius: inherit;
  filter: grayscale(1) contrast(1.08);
}

.hero__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4.3rem, 7.8vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
}

.hero__subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.hero__actions a.icon-link {
  padding: 0;
  width: 44px;
  height: 44px;
}

.hero__actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* Resume dropdown */
.resume-menu {
  position: relative;
}

.resume-menu__chevron {
  transition: transform 0.15s ease;
}

.resume-menu[data-open=true] .resume-menu__chevron {
  transform: rotate(180deg);
}

.resume-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.18s;
  z-index: 320;
}

.resume-menu[data-open=true] .resume-menu__list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.resume-menu__list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  height: auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
}

.resume-menu__list a:hover,
.resume-menu__list a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.resume-menu__format {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.resume-menu__hint {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-menu__list a:hover .resume-menu__hint,
.resume-menu__list a:focus-visible .resume-menu__hint {
  color: var(--accent);
}

/* Scroll action */
.hero__scroll {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: clamp(14px, 2.4vh, 26px) 0 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  opacity: 0.72;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.hero__scroll:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
  opacity: 1;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

/* Summary + metrics */
.hero__summary {
  margin: clamp(22px, 3.2vh, 32px) 0 clamp(22px, 3vh, 30px);
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 100%;
  text-wrap: pretty;
  scroll-margin-top: 96px;
}

/* ─── MOTION — staggered fade-and-rise reveals + hero entrance ─── */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-scroll-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

@keyframes motion-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes motion-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes motion-settle {
  from { transform: scale(1.05); }
  to { transform: none; }
}

@keyframes motion-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero__photo { animation: motion-fade-in 0.9s ease-out backwards; }
.hero__photo img { animation: motion-settle 1.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero__badge { animation: motion-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards; }
.hero h1 { animation: motion-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s backwards; }
.hero__subtitle { animation: motion-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.26s backwards; }
.hero__actions { animation: motion-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s backwards; }
.hero__scroll { animation: motion-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s backwards; }
.hero__scroll svg { animation: motion-bob 2.2s ease-in-out 1.4s infinite; }

@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__photo,
  .hero__photo img,
  .hero__badge,
  .hero h1,
  .hero__subtitle,
  .hero__actions,
  .hero__scroll,
  .hero__scroll svg {
    animation: none;
  }

  .card,
  .toolbox__item,
  .toolbox__item img,
  .now-card {
    transition: border-color 0.15s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
  }

  .card:hover,
  .toolbox__item:hover,
  .toolbox__item:hover img,
  .now-card:hover {
    transform: none;
  }
}

.hero__summary strong {
  font-weight: 700;
  color: var(--accent);
}

/* ─── HERO PROOF BAND — positioning statement + lean metric grid ─── */
.hero__proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  column-gap: clamp(36px, 5vw, 72px);
  row-gap: 28px;
  margin: 0 0 clamp(8px, 2vh, 18px);
  padding: clamp(22px, 3.3vh, 34px) 0;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  overflow: hidden;
  isolation: isolate;
}

.hero__statement {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.25vw, 2.2rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

.hero__statement em {
  font-style: normal;
  color: var(--accent);
}

.hero__metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--border);
}

.hero__metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: clamp(98px, 10.5vh, 122px);
  padding: clamp(16px, 2.2vw, 22px);
  background: var(--bg);
  overflow: visible;
}

.hero__metrics dt {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 78%, var(--text)), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: visible;
}

.hero__metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: left;
}

/* ─── SECTIONS — two-column label + content ─── */
.section {
  display: grid;
  grid-template-columns: var(--col-label) 1fr;
  column-gap: 60px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.section > * {
  min-width: 0;
}

.section__header {
  position: sticky;
  top: 48px;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--text);
}

.section__header .section__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__header .section__kicker::before {
  content: '';
  width: 20px;
  height: 2px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  border-radius: 2px;
}

.section__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ─── TIMELINE ─── */
.timeline {
  display: grid;
  gap: 0;
}

.timeline__card {
  padding: 28px 0 28px 32px;
  border-left: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-left-color 0.2s ease;
  position: relative;
}

.timeline__card::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s ease;
}

.timeline__card:hover { border-left-color: var(--accent); }
.timeline__card:hover::before { background: var(--accent); }
.timeline__card:last-child { border-bottom: none; }

.timeline__card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline__card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.timeline__role {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.timeline__card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── GRIDS ─── */
.grid {
  display: grid;
  gap: 20px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.grid--triad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.grid--now {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.card::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 4px;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-top: auto;
  letter-spacing: 0.01em;
}

.card__link::after { content: ' →'; transition: transform 0.15s ease; }
.card__link:hover { color: var(--accent-hover); }
.card__link:hover::after { transform: translateX(3px); }

.card__tech {
  margin: 0;
  padding-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── PROJECT CARDS — editorial typography on the base .card chrome ─── */
.card--project h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 2px;
  color: var(--text);
}

.card--project > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.card--project .card__tech {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

/* ─── TAGS ─── */
.taglist {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taglist li {
  padding: 3px 10px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ─── SKILLS — 2×2 card grid ─── */
/* ─── SKILLS LIST ─── */
.skills-list {
  margin: 0;
  padding: 0;
}

.skills-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.skills-row:last-child { border-bottom: none; }

.skills-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.skills-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── ACHIEVEMENTS ─── */
.achievements { display: grid; gap: 0; }

.achievement {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.achievement:first-child { padding-top: 0; }
.achievement:last-child { border-bottom: none; padding-bottom: 0; }

.achievement__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  padding-top: 3px;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.achievement h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.achievement p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── TOOLBOX ─── */
.toolbox {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.toolbox__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.toolbox__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.toolbox__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-bg));
  margin: 0;
  transition: border-color 0.18s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.toolbox__item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.toolbox__item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.toolbox__item:hover img {
  opacity: 1;
  transform: scale(1.08);
}

@media (prefers-color-scheme: dark) {
  .toolbox__item img { filter: brightness(0) invert(1); }
}

html[data-theme="light"] .toolbox__item img {
  filter: brightness(0);
}

html[data-theme="dark"] .toolbox__item img {
  filter: brightness(0) invert(1);
}

.toolbox__svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  color: var(--text);
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.toolbox__item:hover .toolbox__svg {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .toolbox__svg { color: #fff; }
}

html[data-theme="light"] .toolbox__svg {
  color: var(--text);
}

html[data-theme="dark"] .toolbox__svg {
  color: var(--text);
}

.toolbox__item figcaption {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

/* ─── EDUCATION CREDENTIALS ─── */
.edu-creds {
  display: flex;
  flex-direction: column;
}

.edu-cred {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.edu-cred:first-child { padding-top: 0; }
.edu-cred:last-child { border-bottom: none; padding-bottom: 0; }

.edu-cred__year {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 78%, var(--text)), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 110px;
  flex-shrink: 0;
}

.edu-cred__body {
  padding-top: 4px;
}

.edu-cred__body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.edu-cred__body > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.edu-cred__detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ─── NOW SECTION ─── */
.now-column h3 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.now-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.now-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.now-card__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.now-card__subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.775rem;
}

.now-card__cta {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── FOOTER — full-width editorial close ─── */
.footer {
  margin: 56px calc(var(--gutter) * -1) -80px;
  padding: 56px var(--gutter) 28px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 36%),
    var(--surface-alt);
}

html[data-theme="dark"] .footer {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 34%),
    var(--bg);
  border-top-color: color-mix(in srgb, var(--accent) 20%, var(--bg));
}

html[data-theme="dark"] .footer__form {
  background: color-mix(in srgb, var(--surface) 72%, var(--bg));
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.footer__intro {
  max-width: 620px;
}

.footer__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text);
}

.footer__tagline {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 10px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.footer__links a:hover {
  color: var(--accent);
  background: var(--surface);
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── FOOTER FORM ─── */
.footer__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.footer__form form {
  display: flex;
  width: 100%;
  gap: 10px;
}

.footer__form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.footer__form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.footer__form button {
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.footer__form button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.footer__form button[data-submitted="true"] {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--danger);
  text-underline-offset: 3px;
}

.footer__form button[data-submitted="true"]:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.footer__form button:active {
  transform: translateY(1px);
}

.footer__disclaimer {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

/* ─── RESPONSIVE ─── */

/* Skills grid already 2-col — collapses to 1 on narrow screens */

/* Collapse sections to single column on tablet */
@media (max-width: 960px) {
  :root { --gutter: 32px; --col-label: 168px; }

  .topnav__links a {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: auto;
    gap: clamp(28px, 4vw, 44px);
    padding-bottom: clamp(30px, 4vh, 48px);
  }

  .hero__narrative {
    grid-column: 1;
    grid-row: 2;
    max-width: 760px;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 460px);
    min-width: 0;
  }

  .hero__photo {
    width: 100%;
    height: clamp(340px, 46svh, 500px);
    min-height: 0;
  }

  .hero__photo::after {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 58%, transparent) 0%, transparent 28%, transparent 100%),
      linear-gradient(180deg, transparent 72%, color-mix(in srgb, var(--bg) 70%, transparent) 100%);
  }

  .section {
    column-gap: 32px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  }
}

@media (max-width: 800px) {
  :root { --gutter: 28px; }

  .page {
    padding-bottom: 64px;
  }

  .hero {
    padding-top: 56px;
    min-height: auto;
  }

  .hero__photo {
    height: clamp(300px, 40svh, 430px);
  }

  .section {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  .section__header {
    position: static;
    margin-bottom: 24px;
    max-width: 620px;
  }

  .hero__proof {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: clamp(24px, 4vw, 36px);
    padding: clamp(26px, 4vw, 36px) 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
  }

  .footer__intro {
    max-width: none;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .timeline__role {
    white-space: normal;
  }

  .skills-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .toolbox__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .footer {
    margin-top: 44px;
    padding-top: 44px;
  }
}

@media (max-width: 760px) {
  .topnav {
    justify-content: space-between;
  }

  .topnav__links {
    display: none;
  }

  .topnav__toggle,
  .nav-drawer {
    display: flex;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .topnav {
    position: relative;
    min-height: 58px;
    padding-block: 8px;
  }

  .page {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .hero__grid {
    align-items: center;
    gap: 20px;
    text-align: center;
    padding-top: 0;
    padding-bottom: 36px;
    min-height: auto;
  }

  .hero__photo {
    width: min(100%, 360px);
    height: clamp(260px, 48svh, 360px);
    margin-inline: auto;
    border-radius: 0;
  }

  .hero__photo::after {
    background:
      linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--bg) 92%, transparent) 100%);
  }

  .hero__narrative {
    max-width: none;
  }

  .hero__scroll {
    margin-top: 18px;
  }

  .hero__actions {
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .resume-menu__list {
    right: auto;
    left: 50%;
    transform: translate(-50%, 6px);
    width: min(280px, calc(100vw - 40px));
    min-width: 0;
  }

  .resume-menu[data-open=true] .resume-menu__list {
    transform: translateX(-50%);
  }

  .topnav__resume .resume-menu__list {
    right: 0;
    left: auto;
    transform: translateY(6px);
  }

  .topnav__resume[data-open=true] .resume-menu__list {
    transform: none;
  }

  .hero__statement {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }

  .hero__metrics dt {
    font-size: 2.6rem;
  }

  .hero__metrics dd {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .edu-cred {
    flex-direction: column;
    gap: 10px;
    padding: 24px 0;
  }

  .edu-cred__year {
    min-width: 0;
    font-size: 3.1rem;
  }

  .footer {
    padding-top: 44px;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }

  .footer__form form {
    flex-direction: column;
    gap: 12px;
  }

  .footer__form {
    padding: 18px;
  }

  .footer__form button {
    width: 100%;
  }

  .footer__disclaimer {
    text-align: left;
  }

  .footer__links {
    gap: 4px;
    align-items: stretch;
  }

  .card__link,
  .footer__links a {
    min-height: 40px;
    align-items: center;
  }

  .card__link {
    align-self: flex-start;
    padding: 6px 0;
  }

  .card {
    padding: 22px;
  }

  .grid--triad {
    gap: 10px;
  }

  .grid--triad .card {
    padding: 14px 10px;
    gap: 8px;
  }

  .grid--triad .card::before {
    width: 32px;
    margin-bottom: 1px;
  }

  .grid--triad .card h3,
  .grid--triad .card--project h3 {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .grid--triad .card p,
  .grid--triad .card--project > p {
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .grid--triad .card__link {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .toolbox__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbox__item {
    padding: 18px 8px 14px;
  }

  .toolbox__item figcaption {
    white-space: normal;
    line-height: 1.25;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .achievement {
    gap: 14px;
    padding: 22px 0;
  }

  .now-card {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }

  .hero {
    padding-top: 56px;
  }

  .hero__grid {
    gap: 20px;
    padding-bottom: 28px;
  }

  .hero__photo {
    width: min(100%, 320px);
    height: clamp(230px, 44svh, 320px);
  }

  .hero__badge {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }

  .hero h1 {
    font-size: 2.85rem;
    line-height: 0.92;
  }

  .hero__summary {
    margin: 32px 0 30px;
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .hero__metrics > div {
    min-height: 92px;
    padding: 16px 12px;
  }

  .hero__metrics dt {
    font-size: 2.3rem;
  }

  .hero__metrics dd {
    font-size: 0.66rem;
  }

  .section {
    padding: 40px 0;
  }

  .hero__actions a.icon-link {
    width: 42px;
    height: 42px;
  }

  .grid--triad {
    gap: 8px;
  }

  .grid--triad .card {
    padding: 12px 8px;
  }

  .grid--triad .card h3,
  .grid--triad .card--project h3 {
    font-size: 0.82rem;
  }

  .grid--triad .card p,
  .grid--triad .card--project > p {
    font-size: 0.68rem;
  }

  .footer__links a {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ─── PRINT — clean, neutral-tone resume sheet ─── */
@media print {
  html, body {
    background: #fff;
    color: #000;
    font-size: 10pt;
  }

  body::before { display: none; }

  .topnav,
  .theme-toggle,
  .hero__scroll,
  .footer,
  .hero__actions,
  section[aria-labelledby="now"],
  section[aria-labelledby="interests"] { display: none !important; }

  .page { padding: 0; }

  .hero { padding: 0; }
  .hero__grid {
    grid-template-columns: 64pt 1fr;
    align-items: start;
    padding-bottom: 12pt;
    gap: 16pt;
    border-bottom: 1pt solid #ccc;
  }
  .hero__visual {
    width: 64pt;
    min-width: 0;
  }
  .hero__photo {
    width: 64pt;
    height: 78pt;
    border-radius: 8pt;
    box-shadow: none;
    border-width: 1pt;
  }
  .hero h1 { font-size: 28pt; line-height: 1; margin: 0 0 6pt; }
  .hero__subtitle { font-size: 10.5pt; color: #333; }
  .hero__badge { font-size: 7.5pt; color: #555; margin-bottom: 8pt; }

  .hero__summary {
    margin: 14pt 0;
    font-family: var(--font-display);
    font-size: 11pt;
    line-height: 1.45;
    max-width: none;
    color: #111;
  }
  .hero__summary strong { color: #000; }

  .hero__proof {
    display: block;
    margin: 0;
    padding-top: 10pt;
    border-top: 1pt solid #ccc;
    page-break-inside: avoid;
  }
  .hero__statement { display: none; }
  .hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6pt 16pt;
    margin: 0;
    padding: 0;
    background: transparent;
  }
  .hero__metrics > div {
    display: flex;
    align-items: baseline;
    gap: 5pt;
    padding: 0;
    border: none;
    min-height: 0;
    background: transparent;
  }
  .hero__metrics dt {
    font-size: 13pt;
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
  }
  .hero__metrics dd { color: #444; font-size: 7.5pt; text-align: left; }

  /* Gradient-clipped numerals must fall back to solid ink for print */
  .edu-cred__year {
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
  }

  .section {
    grid-template-columns: 160pt 1fr;
    padding: 14pt 0;
    column-gap: 20pt;
    break-inside: avoid-page;
    border-bottom: 1pt solid #ccc;
  }
  .section:last-of-type { border-bottom: none; }
  .section__header { position: static; }
  .section__header h2 { font-size: 13pt; }
  .section__header p { font-size: 8.5pt; }

  .timeline__card {
    border-left: 1pt solid #999;
    border-bottom: 1pt dotted #ddd;
    padding: 10pt 0 10pt 14pt;
    break-inside: avoid;
  }
  .timeline__card::before { display: none; }
  .timeline__role { color: #555; font-size: 8.5pt; }
  .timeline__card h3 { font-size: 10.5pt; }
  .timeline__card ul { font-size: 9pt; line-height: 1.45; }

  .card, .skill-card, .achievement, .now-card, .card--project {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .card { border-color: #ddd; padding: 14pt; }
  .card--project h3 { font-size: 11pt; }

  .skill-card { border-color: #ddd; padding: 10pt 14pt; }
  .skill-card__header { padding-bottom: 8pt; margin-bottom: 8pt; }
  .skill-card__icon { display: none; }
  .skill-card h3 { font-size: 8pt; color: #555; }

  .skill-tags li,
  .taglist li {
    border-color: #ddd;
    background: #f5f5f5;
    color: #222;
    font-size: 7.5pt;
    padding: 2pt 6pt;
  }

  .achievement { padding: 8pt 0; gap: 14pt; }
  .achievement__index { color: #555; opacity: 1; }
  .achievement h3 { font-size: 10.5pt; }
  .achievement p { font-size: 9pt; }

  .card__tech {
    color: #555;
    font-size: 7.5pt;
    border-top-color: #ddd;
  }

  a { color: #000; text-decoration: none; }
  .card__link::after { content: ''; }
}
