:root {
  --cream: #faf8f3;
  --ink: #2c2420;
  --ink-faint: color-mix(in srgb, var(--ink) 45%, var(--cream));
  --lavender: #b8a4d9;
  --sage: #8fa882;
  --coral: #c9756b;
  --mustard: #d9a441;
  --line: color-mix(in srgb, var(--ink) 22%, var(--cream));
  /* Timeline rail + nodes: warm dark-cream, softer than full ink */
  --timeline-stroke: color-mix(in srgb, var(--ink) 34%, var(--cream));
  --radius: 10px;
  --radius-sm: 6px;
  --brutal-shadow: 4px 4px 0 var(--ink);
  --brutal-shadow-sm: 3px 3px 0 var(--ink);
  --font-display: "Platypi", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max: 72rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(2.75rem, 7vw, 4.5rem);
  /* Matches .wip-banner: border + padding + one line of text */
  /* Room for one–two wrapped lines on small screens */
  --wip-banner-height: calc(2px + 0.5rem + 0.5rem + 2.65 * 0.75rem);
  /* Matches .meta-bar: border + inner padding + one line of .meta-bar-inner text */
  --meta-bar-sticky-height: calc(2px + 0.65rem + 0.65rem + 1.6 * 0.8125rem);
  /* Matches .sub-nav: border + link padding + one line of nav text */
  --sub-nav-sticky-height: calc(2px + 0.75rem + 0.75rem + 1.25 * 0.8125rem);
  /* Anchor jumps: sum of sticky bars (no extra buffer — was feeling too tall) */
  --sticky-anchor-offset: calc(
    var(--wip-banner-height) + var(--meta-bar-sticky-height) +
      var(--sub-nav-sticky-height)
  );
  /* Space from sticky sub-nav to section title (~60–80px; scales gently like ref screenshots) */
  --section-top-below-nav: clamp(3.25rem, 4.2vw, 4.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-anchor-offset);
}

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

  .thumb,
  .btn-brutal,
  .card-brutal,
  .connect-link {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-variation-settings: normal;
}

body.theme-zine::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2147483647;
  padding: var(--space-sm) var(--space-md);
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  border: 2px solid var(--ink);
  box-shadow: var(--brutal-shadow-sm);
}

.skip-link:focus {
  left: var(--space-sm);
  top: calc(var(--wip-banner-height) + var(--space-sm));
}

.wrap {
  width: min(100% - var(--space-md) * 2, var(--max));
  margin-inline: auto;
}

/* ——— Work in progress (sticky top) ——— */
.wip-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
}

.wip-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
  margin-inline: auto;
  padding-block: 0.5rem;
  padding-inline: var(--space-md);
  max-width: var(--max);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.wip-banner-tag {
  flex-shrink: 0;
  padding: 0.12em 0.55em;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
}

.wip-banner-text {
  max-width: 52rem;
}

/* ——— Meta bar ——— */
.meta-bar {
  position: sticky;
  top: var(--wip-banner-height);
  z-index: 50;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}

.meta-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  padding-block: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-year {
  opacity: 0.85;
}

/* ——— Hero ——— */
.hero-mega {
  padding-block: var(--space-xl);
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lavender) 12%, var(--cream)) 0%,
    var(--cream) 55%
  );
}

.hero-mega-inner {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.hero-kicker {
  margin: 0 0 var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.sparkle {
  display: inline-block;
  margin-right: 0.15em;
  color: var(--mustard);
  font-size: 0.55em;
  vertical-align: super;
  animation: sparkle-nudge 3s ease-in-out infinite;
}

@keyframes sparkle-nudge {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(12deg) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle {
    animation: none;
  }
}

.hero-dek {
  margin: 0 auto var(--space-lg);
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--ink);
}

.hero-dek em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 600;
  color: color-mix(in srgb, var(--coral) 55%, var(--ink));
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ——— Sub nav ——— */
.sub-nav {
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
  position: sticky;
  top: calc(var(--wip-banner-height) + var(--meta-bar-sticky-height));
  z-index: 40;
}

.sub-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.sub-nav-inner a {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.sub-nav-inner a:first-child {
  border-left: none;
}

.sub-nav-inner a:hover,
.sub-nav-inner a:focus-visible {
  background: color-mix(in srgb, var(--sage) 22%, var(--cream));
}

/* ——— Sections ——— */
.section {
  padding-top: var(--section-top-below-nav);
  padding-bottom: var(--space-xl);
}

.section-ruled {
  border-bottom: 2px solid var(--ink);
}

.section-tint {
  background: color-mix(in srgb, var(--sage) 14%, var(--cream));
  border-bottom: 2px solid var(--ink);
}

.section-head {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head--sm {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin-bottom: var(--space-sm);
}

.section-head--sm .sparkle {
  margin-right: 0;
  margin-left: 0.15em;
}

.section-head--spaced {
  margin-top: var(--space-lg);
}

.about-me-section-title {
  margin-bottom: var(--space-lg);
}

.section-lede {
  margin: 0 0 var(--space-lg);
  max-width: 40rem;
  color: var(--ink);
  opacity: 0.92;
}

.section-lede--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.body-text {
  margin: 0 0 var(--space-md);
  max-width: 38rem;
}

.body-text--sm {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.sub-head {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ——— Intro split ——— */
.intro-split-inner {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 52rem) {
  .intro-split-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-xl);
  }
}

.frame-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: #fff;
  box-shadow: var(--brutal-shadow);
  max-width: 22rem;
  margin-inline: auto;
}

.frame-inner {
  min-height: 14rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: color-mix(in srgb, var(--lavender) 15%, var(--cream));
}

.frame-placeholder {
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.45;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ——— Pills ——— */
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pill-list li {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill, 999px);
  background: #fff;
  box-shadow: var(--brutal-shadow-sm);
}

.pill-list li:nth-child(5n + 1) {
  background: color-mix(in srgb, var(--lavender) 22%, #fff);
}

.pill-list li:nth-child(5n + 2) {
  background: color-mix(in srgb, var(--sage) 22%, #fff);
}

.pill-list li:nth-child(5n + 3) {
  background: color-mix(in srgb, var(--coral) 18%, #fff);
}

.pill-list li:nth-child(5n + 4) {
  background: color-mix(in srgb, var(--mustard) 22%, #fff);
}

.pill-list li:nth-child(5n + 5) {
  background: var(--cream);
}

.pill-list--dense li {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

/* ——— Multi-column profile grids ——— */
.three-cols,
.two-cols {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 56rem) {
  .three-cols {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .two-cols {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .three-cols .col-panel,
  .two-cols .col-panel {
    padding-right: var(--space-md);
    border-right: 2px solid var(--line);
  }

  .three-cols .col-panel:last-child,
  .two-cols .col-panel:last-child {
    padding-right: 0;
    border-right: none;
  }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-title {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
}

.timeline-meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.timeline-note {
  margin: var(--space-xs) 0 0;
  font-size: 0.9375rem;
  opacity: 0.92;
}

.timeline--compact li {
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* ——— Experience: one company, multiple roles (no card — flows like body copy) ——— */
.career-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.career-block {
  margin: 0;
  padding: 0;
}

.career-block-head {
  margin: 0 0 var(--space-md);
  padding: 0;
}

.career-company-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
}

.career-company {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: min(100%, 20rem);
}

.career-tenure {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.career-block-summary {
  margin: var(--space-sm) 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.9;
}

.career-roles {
  list-style: none;
  margin: var(--space-sm) 0 0 10pt;
  padding: 0 0 0 var(--space-md);
  border-left: 2px solid var(--timeline-stroke);
}

.career-role {
  position: relative;
  margin: 0;
  padding: 0 0 var(--space-md);
}

.career-role:last-child {
  padding-bottom: 0;
}

.career-role::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-md) - 1px);
  top: 0.4rem;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  background: var(--cream);
  border: 2px solid var(--timeline-stroke);
  border-radius: 50%;
  transform: translateX(-50%);
}

.career-role-title {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.career-role-dates {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.career-role-note {
  margin: var(--space-xs) 0 0;
  font-size: 0.9375rem;
  opacity: 0.92;
}

/* ——— Hobbies ——— */
.hobby-grid {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.hobby-tile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--ink);
}

.hobby-tile span {
  opacity: 0.7;
  font-size: 1rem;
}

.hobby-tile--sage {
  background: color-mix(in srgb, var(--sage) 28%, #fff);
}

.hobby-tile--coral {
  background: color-mix(in srgb, var(--coral) 22%, #fff);
}

.hobby-tile--mustard {
  background: color-mix(in srgb, var(--mustard) 28%, #fff);
}

.hobby-tile--lavender {
  background: color-mix(in srgb, var(--lavender) 24%, #fff);
}

.connect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.connect-link {
  display: block;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--brutal-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.connect-link:hover,
.connect-link:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ——— Buttons ——— */
.btn-brutal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--brutal-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-brutal:hover,
.btn-brutal:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-brutal--lavender {
  background: color-mix(in srgb, var(--lavender) 35%, #fff);
}

.btn-brutal--coral {
  background: color-mix(in srgb, var(--coral) 28%, #fff);
  color: var(--ink);
}

.btn-brutal--ghost {
  background: var(--cream);
}

/* ——— Work showcase ——— */
.work-split {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 52rem) {
  .work-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--brutal-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.thumb-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.thumb--lavender {
  background: color-mix(in srgb, var(--lavender) 40%, #fff);
}

.thumb--sage {
  background: color-mix(in srgb, var(--sage) 35%, #fff);
}

.thumb--coral {
  background: color-mix(in srgb, var(--coral) 30%, #fff);
}

.thumb--mustard {
  background: color-mix(in srgb, var(--mustard) 35%, #fff);
}

.thumb--ink {
  background: color-mix(in srgb, var(--ink) 8%, var(--cream));
}

.work-spotlight {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-md);
  background: #fff;
  box-shadow: var(--brutal-shadow);
}

.spotlight-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.tag-row {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag-row li {
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.text-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  color: color-mix(in srgb, var(--coral) 40%, var(--ink));
}

/* ——— Leadership cards ——— */
.cards-brutal {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 48rem) {
  .cards-brutal {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-brutal {
  padding: var(--space-md);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--brutal-shadow);
}

.card-icon {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--mustard);
  font-size: 1rem;
}

.card-brutal h3 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.card-brutal p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.92;
}

/* ——— Process ——— */
.process-wrap {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .process-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.process-brutal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.process-brutal li {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.9375rem;
}

.process-step-label {
  display: inline-block;
  min-width: 2rem;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.process-brutal strong {
  font-weight: 700;
}

/* ——— Contact ——— */
.contact-zine {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--coral) 12%, var(--cream)),
    var(--cream)
  );
  border-top: 2px solid var(--ink);
}

.contact-zine-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-lg) 0 0;
}

/* ——— Footer ——— */
.site-footer {
  padding-block: var(--space-lg);
  border-top: 2px solid var(--ink);
  background: var(--cream);
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}
