* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Tighter on narrow windows; full padding only when there’s room */
  --grid-padding: clamp(1rem, 2.5vw + 0.5rem, 2.5rem);
  --content-max: 1100px;
  --bg: #fff;
  --divider: 1px solid #000;
  --divider-light: 1px solid #333;
  --text: #000;
  --text-mid: #1a1a1a;
  --text-light: #444;
  /* Same stack as About / CV */
  --cv-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* About + 01–06 section labels (same visual weight) */
  --cv-label-size: clamp(0.88rem, 1.4vw, 1.05rem);
}

body {
  background: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
}

/* —— Main nav (always visible) —— */
.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--grid-padding);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg);
}

.nav-main .nav-left {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.85vw, 1.45rem);
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}

.nav-main .nav-right {
  display: flex;
  gap: 1.5rem;
}

.nav-main .nav-right a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.85vw, 1.45rem);
  text-transform: uppercase;
}

/* —— Page toggle —— */
body.contact-page .page-home {
  display: none;
}

.page-contact {
  display: none;
  min-height: 100vh;
  padding: clamp(4rem, 10vh, 6rem) var(--grid-padding) clamp(3.5rem, 12vh, 9rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--cv-font);
  background: var(--bg);
}

body.contact-page .page-contact {
  display: flex;
}

.page-projects {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Shared visual frame: code iframe + PNG previews use identical footprint */
  --projects-visual-max-w: min(96vw, 1280px);
  --projects-visual-max-h: min(72vh, 900px);
}

body.projects-page {
  overflow-x: hidden;
}

body.projects-page .page-home {
  display: none;
}

body.contact-page .page-projects {
  display: none;
}

body.projects-page .page-contact {
  display: none;
}

body.projects-page .page-projects {
  display: block;
  overscroll-behavior-y: contain;
}

/* —— Projects: full-screen horizontal showcase; vertical scroll → track motion (JS) —— */
.projects-showcase {
  width: 100%;
}

.projects-showcase-spacer {
  position: relative;
  width: 100%;
  /* height: panelCount * 100vh — set in JS */
}

.projects-showcase-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  box-sizing: border-box;
  /* Helps touch swipes register reliably on mobile (gallery uses JS, not native scroll) */
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.projects-showcase-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  align-items: stretch;
  will-change: transform;
  /* Discrete slide changes — no continuous scrub; gentle pace so slides aren’t rushed */
  transition: transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-showcase-panel {
  /* width / flex-basis set in JS = viewport width × clean horizontal scroll math */
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
  padding: calc(4.25rem + env(safe-area-inset-top, 0px)) var(--grid-padding) max(1.5rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  /* DOM order: title, then visual — reverse so preview is on top, title bottom-left */
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vh, 1.75rem);
}

.projects-showcase-titlelink {
  text-decoration: none;
  color: inherit;
  max-width: var(--projects-visual-max-w);
  width: min(100%, var(--projects-visual-max-w));
  align-self: flex-start;
  text-align: left;
  padding-left: 0;
  box-sizing: border-box;
  transition: opacity 0.25s ease;
}

.projects-showcase-titlelink:hover {
  opacity: 0.55;
}

.projects-showcase-titlelink:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
  opacity: 1;
}

.projects-showcase-visual:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}

.projects-showcase-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  /* +50% vs previous clamp(1.45rem, 5vw, 2.35rem) */
  font-size: clamp(2.175rem, 7.5vw, 3.525rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
  color: var(--text);
}

.projects-showcase-index {
  font-family: var(--cv-font);
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
  font-weight: 700;
  margin-right: 0.45em;
  letter-spacing: 0.14em;
}

/* Same dimensions for iframe + image; no inner scrollbars */
.projects-showcase-visual {
  position: relative;
  display: block;
  width: var(--projects-visual-max-w);
  max-width: 100%;
  height: var(--projects-visual-max-h);
  max-height: var(--projects-visual-max-h);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  outline: none;
  align-self: flex-start;
}

/* 02 + 03 — PNG frames 15% larger than base (Creature embed unchanged) */
.projects-showcase-visual--compact {
  width: calc(var(--projects-visual-max-w) * 1.15);
  max-width: 100%;
  height: calc(var(--projects-visual-max-h) * 1.15);
  max-height: calc(var(--projects-visual-max-h) * 1.15);
}

.projects-showcase-panel:not(.projects-showcase-panel--creature) .projects-showcase-titlelink {
  max-width: calc(var(--projects-visual-max-w) * 1.15);
  width: min(100%, calc(var(--projects-visual-max-w) * 1.15));
}

/* 02 Refugee — +5% on top of compact (1.15 × 1.05); two classes so title width beats :not(.creature) rule */
.projects-showcase-panel.projects-showcase-panel--refugee .projects-showcase-visual--compact {
  width: calc(var(--projects-visual-max-w) * 1.15 * 1.05);
  height: calc(var(--projects-visual-max-h) * 1.15 * 1.05);
  max-height: calc(var(--projects-visual-max-h) * 1.15 * 1.05);
  transform: translateX(1cm);
}

.projects-showcase-panel.projects-showcase-panel--refugee .projects-showcase-titlelink {
  max-width: calc(var(--projects-visual-max-w) * 1.15 * 1.05);
  width: min(100%, calc(var(--projects-visual-max-w) * 1.15 * 1.05));
}

/* 03 Task cube — shift preview right */
.projects-showcase-panel.projects-showcase-panel--task-cube .projects-showcase-visual--compact {
  transform: translateX(2cm);
}

/* 01 Creature — smaller frame than 02/03; title width matches */
.projects-showcase-panel--creature {
  --creature-preview-w: min(78vw, 980px);
  --creature-preview-h: min(50vh, 640px);
}

.projects-showcase-panel--creature .projects-showcase-titlelink {
  max-width: var(--creature-preview-w);
  width: min(100%, var(--creature-preview-w));
}

.projects-showcase-panel--creature .projects-showcase-visual--embed {
  width: var(--creature-preview-w);
  max-width: 100%;
  height: var(--creature-preview-h);
  max-height: var(--creature-preview-h);
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  color-scheme: light;
  /* Lift + extra 4cm up */
  transform: translateY(calc(-5.75vh - 4cm));
}

.projects-showcase-panel--creature .projects-showcase-titlelink {
  align-self: flex-start;
}

.projects-showcase-panel--creature .projects-showcase-visual-inner {
  background: #fff;
}

/* Creature: iframe under hit layer — click overlay opens overview; sketch still runs as preview (full interaction on project page). */
.projects-showcase-panel--creature .projects-showcase-iframe {
  pointer-events: none;
}

/* 02 + 03 — full PNG visible, centered, no extra mat (transparent = page bg shows through) */
.projects-showcase-visual--compact .projects-showcase-visual-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.projects-showcase-visual--compact .projects-showcase-visual-inner img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.projects-showcase-visual-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-showcase-visual:hover .projects-showcase-visual-inner,
.projects-showcase-visual:focus-visible .projects-showcase-visual-inner {
  transform: scale(1.04);
}

/* Iframe preview: gentler hover so edges aren’t clipped */
.projects-showcase-visual--embed:hover .projects-showcase-visual-inner,
.projects-showcase-visual--embed:focus-visible .projects-showcase-visual-inner {
  transform: scale(1.02);
}

.projects-showcase-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  overflow: hidden;
}

.projects-showcase-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Invisible link over code preview (iframe not inside <a> for valid HTML) */
.projects-showcase-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  text-indent: -200%;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .page-projects {
    --projects-visual-max-w: min(96vw, 100%);
    --projects-visual-max-h: min(58vh, 560px);
  }

  .projects-showcase-panel--creature {
    --creature-preview-w: min(92vw, 100%);
    --creature-preview-h: min(42vh, 400px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-showcase-track {
    transition-duration: 0.01ms;
  }

  .projects-showcase-visual-inner {
    transition: none;
  }

  .projects-showcase-visual:hover .projects-showcase-visual-inner,
  .projects-showcase-visual:focus-visible .projects-showcase-visual-inner {
    transform: none;
  }
}

/* Contact — centered block; full row (label + value) is one link */
.contact-inner {
  width: 100%;
  max-width: min(36rem, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-row {
  border-top: var(--divider);
  padding: clamp(0.95rem, 2vh, 1.25rem) 0;
}

.contact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-link {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
  gap: 1rem 1.75rem;
  align-items: baseline;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
}

.contact-link:hover {
  opacity: 0.55;
}

.contact-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
  opacity: 1;
}

.contact-label {
  font-family: var(--cv-font);
  font-weight: 700;
  font-size: var(--cv-label-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.contact-value {
  font-family: var(--cv-font);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
  word-break: break-word;
  text-align: left;
}

@media (max-width: 520px) {
  .contact-link {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* —— Hero (disappears on scroll) —— */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

.nav-left {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
}

.nav-right a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-content {
  position: absolute;
  top: 5.5rem;
  bottom: 10rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3.5vw, 4rem);
  padding: 0 var(--grid-padding);
  min-width: 0;
}

.hero-photo {
  max-width: min(620px, 52vw);
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}

.hero-side-wrap {
  flex: 1 1 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  padding-left: clamp(0.5rem, 2vw, 2rem);
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 0.5rem;
  padding-right: 0;
  margin-right: clamp(0px, 4vw, 1cm);
  min-width: 0;
  width: 100%;
  max-width: min(680px, 100%);
}

.hero-tagline-block {
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--cv-font);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0;
  max-width: 100%;
}

.hero-tagline-line2 {
  margin-top: 0.15rem;
}

.hero-loc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin: 0;
}

.hero-location {
  font-family: var(--cv-font);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--text-mid);
}

.hero-time {
  font-family: var(--cv-font);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--text-light);
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 8.5rem);
  color: #fff;
  text-align: left;
  padding: 1.5rem var(--grid-padding);
  text-transform: uppercase;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  mix-blend-mode: difference;
}

/* —— About: Helvetica-style stack, education 2-col, subsections stacked with heavy vertical rhythm —— */
.cv {
  font-family: var(--cv-font);
  min-height: 100vh;
  padding: clamp(4rem, 10vh, 6rem) var(--grid-padding) clamp(3.5rem, 12vh, 9rem);
}

.cv-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.cv-header {
  /* Space before 01 Education — scales down in narrow windows */
  margin-bottom: clamp(2.75rem, min(14vh, 18vw), 9cm);
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
}

/* 00 About — centered column; inset shrinks instead of reflowing layout */
.cv-about-lede {
  display: block;
  position: relative;
  left: clamp(0px, 8vw, 3cm);
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-align: left;
}

.cv-about-lede .cv-intro {
  margin-top: 0;
  /* Cap line length so half-width doesn’t become one endless line */
  max-width: min(36rem, 100%);
  text-align: left;
}

/* Subsections — vertical rhythm tightens in narrow viewports */
.cv-editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 10vh, 9.5rem);
}

/* Two columns stay side-by-side; gap squishes before layout switches (see narrow breakpoint) */
.cv-edu-cols {
  display: inline-grid;
  grid-template-columns: minmax(0, max-content) minmax(0, max-content);
  column-gap: clamp(1rem, 5vw, 4cm);
  row-gap: clamp(1.25rem, 3vh, 2.5rem);
  align-items: start;
  justify-items: start;
  max-width: 100%;
  vertical-align: top;
}

/* Row 1: work (right). Row 2: 03–06 under work, same x (col 3), right-aligned */
.cv-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(0.75rem, 3vw, 4rem);
  row-gap: clamp(2.5rem, 10vh, 8.5rem);
  align-items: start;
  min-width: 0;
}

.cv-split-work {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
  /* Not max-content — that pinches the column and crushes the job description */
  width: min(36rem, 100%);
  max-width: 100%;
  padding-left: clamp(0.5rem, 3vw, 4rem);
  padding-right: 0;
  box-sizing: border-box;
}

/* 03–06: x-axis only — same column + inset as 02 Work experience */
.cv-meta-block {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  padding: 0 0 0 clamp(0.5rem, 3vw, 4rem);
  border: none;
  box-sizing: border-box;
  text-align: right;
}

.cv-meta-block .cv-sec-head {
  justify-content: flex-end;
  margin-bottom: clamp(0.2rem, 0.6vw, 0.35rem);
}

.cv-meta-block .cv-meta-inline {
  justify-content: flex-end;
}

.cv-meta-row {
  padding-top: clamp(0.55rem, 1.5vh, 0.95rem);
  padding-bottom: 0;
}

.cv-meta-row:first-child {
  padding-top: 0;
}

.cv-meta-inline {
  font-family: var(--cv-font);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.15em;
}

.cv-meta-inline span {
  display: inline;
}

.cv-meta-inline span + span::before {
  content: '\00a0\00b7\00a0';
  color: var(--text-light);
  font-weight: 400;
}

.cv-section--work {
  width: auto;
  /* Room for title + dates + description without ultra-narrow desc column */
  max-width: min(36rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cv-sec-head--right {
  justify-content: flex-end;
  width: 100%;
  max-width: min(36rem, 100%);
  box-sizing: border-box;
}

.cv-work-block {
  max-width: min(36rem, 100%);
  width: 100%;
  text-align: right;
}

.cv-exp-line {
  display: flex;
  flex-wrap: wrap;
  /* Row 1: company + dates (right). Row 2: description — never same baseline as title line */
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  row-gap: 0.35rem;
  margin: 0;
  font-family: var(--cv-font);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cv-exp-name {
  font-weight: 700;
  flex-shrink: 0;
}

.cv-exp-dates {
  font-weight: 400;
  color: var(--text-mid);
  flex-shrink: 0;
}

.cv-exp-line .cv-exp-desc {
  font-weight: 400;
  color: var(--text);
  text-align: right;
  overflow-wrap: break-word;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.cv-list-plain--right {
  align-items: flex-end;
}

.cv-list-plain--right li {
  text-align: right;
}

.cv-degree {
  font-family: var(--cv-font);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin: 0 0 0.35rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.cv-institution {
  font-family: var(--cv-font);
  font-weight: 400;
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-mid);
  margin: 0 0 0.5rem;
}

.cv-edu-entry .cv-list-plain {
  margin-top: 0.65rem;
}

.cv-list-plain--tight {
  margin-top: clamp(0.65rem, 1.5vw, 0.9rem);
}

.cv-intro {
  font-family: var(--cv-font);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.01em;
  text-align: left;
}

/* Number + label — same scale as About title */
.cv-sec-head {
  font-family: var(--cv-font);
  font-weight: 700;
  font-size: var(--cv-label-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.5rem);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45em 0.65em;
}

.cv-sec-num,
.cv-sec-label {
  font-weight: 700;
}

.cv-sec-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  color: var(--text-light);
}

/*
 * CV scroll reveal — per-section when .cv-section.is-visible (IntersectionObserver).
 * Clip + blur + motion; no permanent decorative elements.
 */
.cv-section {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  clip-path: inset(0 0 100% 0);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.28, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.28, 1),
    clip-path 0.95s cubic-bezier(0.33, 1, 0.25, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cv-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0);
  filter: blur(0);
}

/* Stagger main bands */
.cv-header .cv-about-lede {
  transition-delay: 0s;
}

.cv-editorial > .cv-section {
  transition-delay: 0.08s;
}

.cv-split .cv-section--work {
  transition-delay: 0.16s;
}

.cv-split .cv-meta-block {
  transition-delay: 0.26s;
}

/* Inner content: same reveal as About intro (fade + lift + scale + unblur) */
.cv-about-lede .cv-intro,
.cv-editorial .cv-edu-cols,
.cv-split .cv-work-block,
.cv-meta-block .cv-meta-row {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  filter: blur(5px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cv-about-lede.is-visible .cv-intro {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.18s;
}

.cv-editorial > .cv-section.is-visible .cv-edu-cols {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.2s;
}

.cv-section--work.is-visible .cv-work-block {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.22s;
}

.cv-meta-block.is-visible .cv-meta-row:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.32s;
}

.cv-meta-block.is-visible .cv-meta-row:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.4s;
}

.cv-meta-block.is-visible .cv-meta-row:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.48s;
}

.cv-meta-block.is-visible .cv-meta-row:nth-child(4) {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.56s;
}

/* Lists — no markers */
.cv-list-plain {
  list-style: none;
  margin: clamp(0.85rem, 2vw, 1.1rem) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cv-list-plain li {
  font-family: var(--cv-font);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
}

.cv-section .cv-list-plain:not(.cv-list-plain--tight) {
  margin-top: clamp(0.75rem, 2vw, 1rem);
}

/* Only phones / very narrow panes: stack columns. Half a laptop screen stays desktop layout. */
@media (max-width: 520px) {
  .cv-about-lede {
    width: 100%;
    max-width: none;
    left: 0;
    text-align: left;
  }

  .cv-about-lede .cv-intro {
    max-width: none;
    text-align: left;
  }

  .cv-edu-cols {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: clamp(2.5rem, 6vw, 3.5rem);
    width: 100%;
  }

  .cv-split {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: clamp(4rem, 10vh, 6rem);
  }

  .cv-split-work {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding-left: 0;
  }

  .cv-meta-block {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: left;
  }

  .cv-meta-block .cv-sec-head {
    justify-content: flex-start;
  }

  .cv-meta-block .cv-meta-inline {
    justify-content: flex-start;
  }

  .cv-section--work {
    align-items: flex-start;
    max-width: none;
  }

  .cv-section--work .cv-sec-head--right {
    justify-content: flex-start;
    max-width: none;
  }

  .cv-work-block {
    text-align: left;
    max-width: none;
  }

  .cv-exp-line {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cv-exp-line .cv-exp-desc {
    text-align: left;
    flex: 1 1 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cv-section,
  .cv-about-lede .cv-intro,
  .cv-editorial .cv-edu-cols,
  .cv-work-block,
  .cv-meta-row {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
    transition: none;
  }
}
