/* zeynepgizkutlu.com
   Minimal editorial style: near-white paper, ink type, one pale red accent.
   Radius rule: 12px for images, embeds and the CV sheet, 6px for buttons, full pill for tags.
   Z-index scale: 1 local stacking inside figures, 10 sticky header, 20 skip link. */

:root {
  color-scheme: light dark;
  --bg: #FBFBFA;
  --surface: #FDFDFC;
  --ink: #111111;
  --ink-soft: #2F3437;
  --muted: #6F6E6B;
  --line: #EAEAEA;
  --accent: #9F2F2D;
  --accent-wash: #FDEBEC;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-card: 12px;
  --r-btn: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --surface: #1A1A19;
    --ink: #EDEDEB;
    --ink-soft: #D3D3D0;
    --muted: #9B9A97;
    --line: #2B2B29;
    --accent: #E58F88;
    --accent-wash: #3A2120;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Elements that slide in from the side must not widen the page. */
main { overflow-x: hidden; overflow-x: clip; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
p, dd, figcaption { text-wrap: pretty; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent-wash); color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 0.9rem; border-radius: var(--r-btn); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand {
  font-family: var(--serif); font-size: 1.3125rem; letter-spacing: -0.015em;
  text-decoration: none; white-space: nowrap; margin-right: auto;
}
.nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 0.5rem; }
.lang {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; line-height: 1.5rem;
  color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 0.15rem 0.55rem; transition: border-color 0.2s, color 0.2s;
}
.lang:hover { border-color: var(--muted); color: var(--ink); }

/* The header button that starts the favourite song. Shown by the script once it can work. */
.listen {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 500; line-height: 1.5rem; white-space: nowrap;
  color: var(--ink-soft); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 0.15rem 0.7rem 0.15rem 0.6rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.listen[hidden] { display: none; }
.listen:hover { border-color: var(--muted); color: var(--ink); }
.listen:active { transform: scale(0.97); }
.listen-icon { display: inline-grid; place-items: center; width: 0.75rem; height: 0.75rem; color: var(--accent); }
.listen .tri { width: 0.5625rem; height: 0.6875rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); transition: opacity 0.2s; }
.listen .bars { display: none; align-items: flex-end; gap: 2px; height: 0.6875rem; }
.listen .bars i { display: block; width: 2px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: 50% 100%; }
.listen .bars i:nth-child(1) { transform: scaleY(0.55); }
.listen .bars i:nth-child(3) { transform: scaleY(0.75); }
.listen[aria-busy="true"] .tri { opacity: 0.35; }
.listen[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.listen[aria-pressed="true"] .tri { display: none; }
.listen[aria-pressed="true"] .bars { display: inline-flex; }

/* Shared pieces */

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

h2, .h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 2.875rem);
  line-height: 1.1; letter-spacing: -0.025em;
}

.lead { color: var(--ink-soft); max-width: 34rem; }

.tag {
  display: inline-block;
  background: var(--accent-wash); color: var(--accent);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.22rem 0.7rem; border-radius: 999px;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--bg);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  padding: 0.85rem 1.3rem; border-radius: var(--r-btn); text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.btn:active { transform: scale(0.98); }

.link { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); }
.link:hover { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

figcaption { font-size: 0.875rem; color: var(--muted); }

/* Hero */

.hero { padding-block: clamp(2.75rem, 7vw, 6rem) 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.875rem, 1.55rem + 4.7vw, 5.125rem);
  line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.5rem; max-width: 27rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--ink-soft);
}
.hero .actions { margin-top: 2.25rem; }
.birthday {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.3;
  color: var(--accent); margin-bottom: 1rem; padding-bottom: 0.1em;
}
.birthday[hidden] { display: none; }

/* On wide screens the drawing reaches past the text column into the right margin. */
.hero-art { position: relative; isolation: isolate; margin-right: calc(-1 * clamp(0px, (100vw - 72rem) / 2 + 1.5rem, 9rem)); }
.hero-art::before {
  content: ""; position: absolute; z-index: 0;
  left: 39%; top: 9%; width: 38%; aspect-ratio: 1;
  border-radius: 50%; background: var(--accent-wash);
}
.hero-art img { position: relative; z-index: 1; width: 100%; }

@media (prefers-color-scheme: dark) {
  .hero-art img { filter: invert(1) brightness(0.93); }
}

/* About: statement, short text and facts on the left, the portrait on the right. */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.statement {
  grid-column: 1; grid-row: 1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.875rem, 1.2rem + 2.7vw, 3.25rem);
  line-height: 1.14; letter-spacing: -0.028em;
  max-width: 22ch; text-wrap: balance;
}
.about-grid > .lead { grid-column: 1; grid-row: 2; margin-top: clamp(2rem, 4vw, 3rem); }
.facts {
  grid-column: 1; grid-row: 3; margin-top: 2.25rem; max-width: 34rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem;
}
.facts > div:last-child { grid-column: 1 / -1; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { color: var(--ink); }
.portrait { grid-column: 2; grid-row: 1 / span 3; }
.portrait img { width: 100%; border-radius: var(--r-card); background: var(--line); }
.portrait figcaption { margin-top: 0.6rem; }

/* Stage: heading and text, three photos at one height, then the roles in a row. */

.stage .lead { margin-top: 1.5rem; }
.triptych {
  display: grid; grid-template-columns: 0.8fr 2fr 0.8fr; gap: 12px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.triptych img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-card); background: var(--line);
  filter: saturate(0.9);
}
.triptych figcaption { grid-column: 1 / -1; margin-top: 0.3rem; }
.roles {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.roles h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4375rem; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.roles p { margin-top: 0.35rem; color: var(--ink-soft); max-width: 30rem; }
.roles .meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--muted); margin-top: 0.6rem; }

/* Bookshelf */

.quote { margin-top: clamp(2rem, 4vw, 3rem); }
.quote blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.125rem, 1.1rem + 4vw, 4.25rem);
  line-height: 1.12; letter-spacing: -0.03em;
  padding-bottom: 0.12em; max-width: 16ch; text-wrap: balance;
}
.gloss { margin-top: 0.75rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--muted); }
.quote figcaption {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  font-size: inherit; color: var(--ink-soft);
}
.quote cite, .quotes-more cite { font-style: normal; font-weight: 500; color: var(--ink); }

.quotes-more {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem);
}
.quotes-more blockquote p {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  line-height: 1.25; letter-spacing: -0.015em; padding-bottom: 0.1em;
}
.quotes-more .gloss { font-size: 1.0625rem; margin-top: 0.4rem; }
.quotes-more figcaption { margin-top: 0.75rem; }

.shelf-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.shelf-nav { display: flex; gap: 0.5rem; flex: none; }
.shelf-nav[hidden] { display: none; }
.shelf-nav button {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0;
  color: var(--ink-soft); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  transition: border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s var(--ease);
}
.shelf-nav button:hover:not(:disabled) { border-color: var(--muted); color: var(--ink); }
.shelf-nav button:active:not(:disabled) { transform: scale(0.95); }
.shelf-nav button:disabled { opacity: 0.35; cursor: default; }
.chev {
  width: 0.5rem; height: 0.5rem; margin-left: -0.2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
[data-shelf="prev"] .chev { transform: rotate(135deg); margin-left: 0.2rem; }
@media (hover: none), (pointer: coarse) {
  .shelf-nav { display: none; }
}

/* The strip starts at the text column and runs off the right edge.
   Swipe, drag, shift-wheel, the arrow keys or the two buttons move it. */
.shelf-strip {
  --h: clamp(17rem, 12rem + 17vw, 27.5rem);
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.shelf-strip::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .shelf-strip { cursor: grab; }
  .shelf-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
}
.shelf-strip figure { flex: none; width: calc(var(--h) * var(--ar, 0.75)); scroll-snap-align: start; }
.shelf-strip img {
  width: 100%; height: var(--h); object-fit: cover;
  border-radius: var(--r-card); background: var(--line);
  -webkit-user-drag: none; user-select: none;
}
.shelf-strip figcaption { margin-top: 0.7rem; padding-right: 0.75rem; font-size: 0.8125rem; line-height: 1.5; }
.book { display: block; }
.book + .book { margin-top: 0.15rem; }
.who { color: var(--ink); font-weight: 500; }

/* Playlist */

.music-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.feature .tag { margin-top: clamp(2rem, 4vw, 3rem); }
.feature-title {
  font-family: var(--serif); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.028em; margin-top: 0.9rem;
}
.feature-artist { color: var(--ink-soft); margin-top: 0.3rem; }
.player {
  height: 152px; margin-top: 1.5rem; overflow: hidden;
  border-radius: var(--r-card); background: var(--line);
}
.player iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: var(--r-card); color-scheme: normal; }
.player-hint { margin-top: 0.6rem; font-size: 0.875rem; color: var(--accent); }
.player-hint[hidden] { display: none; }
.tracks { columns: 2; column-gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 0.4rem; }
.tracks li { break-inside: avoid; }
.tracks a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.1rem;
  padding: 0.7rem 0.75rem; margin-inline: -0.75rem;
  border-radius: var(--r-btn); text-decoration: none;
  transition: background 0.2s;
}
.tracks a:hover { background: var(--accent-wash); }
.tracks .t { font-weight: 500; line-height: 1.35; }
.tracks .a { grid-column: 1; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.tracks .d {
  grid-column: 2; grid-row: 1; align-self: center;
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
}
.music-note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }

/* CV teaser */

.edu { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.edu li {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.25rem 2rem; align-items: baseline;
  padding-block: 1.35rem; border-bottom: 1px solid var(--line);
}
.edu .when { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.edu h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4375rem; line-height: 1.2; letter-spacing: -0.015em; }
.edu p { color: var(--ink-soft); }
.cv-teaser .actions { margin-top: 2.25rem; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.875rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--ink); }

/* CV page */

.cv-page { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section); }
.cv-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 52rem; margin-inline: auto; }
.sheet {
  max-width: 52rem; margin: 1.75rem auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(1.75rem, 6vw, 4.5rem);
}
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.cv-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.cv-role { margin-top: 0.5rem; color: var(--ink-soft); }
.cv-contact { font-size: 0.875rem; color: var(--muted); text-align: right; line-height: 1.55; }
.cv-contact a { text-decoration: none; }
.cv-block { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.75rem 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.cv-block > h2 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; line-height: 1.6; color: var(--muted); padding-top: 0.15rem; }
.cv-block p { color: var(--ink-soft); }
.entries { display: grid; gap: 1.4rem; }
.entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.entry h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.entry .when { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.entry .role { color: var(--ink); }
.cv-skills { display: grid; gap: 0.9rem; }
.cv-skills dt { font-size: 0.8125rem; color: var(--muted); }
.cv-skills dd { color: var(--ink-soft); }
.cv-closing { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: var(--ink); padding-top: 1.75rem; padding-bottom: 0.1em; }

/* 404 */

.lost { min-height: calc(100vh - 12rem); min-height: calc(100dvh - 12rem); display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }
.lost p { color: var(--ink-soft); max-width: 30rem; }

/* Motion. Everything here is a short fade or slide that plays once:
   blocks rise as they scroll into view, photos slide in from their side of the page,
   lists follow one row after another, and the hero drawing opens like a curtain.
   It only runs when the script has marked the page and the visitor allows motion. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal-left { transform: translateX(-32px); }
  .js .reveal-right { transform: translateX(32px); }
  .js .reveal.is-in, .js.reveal-all .reveal { opacity: 1; transform: none; }

  .js .stagger > * {
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .stagger-x > * { transform: translateX(40px); transition-duration: 0.8s; }
  .js .stagger.is-in > *, .js.reveal-all .stagger > * { opacity: 1; transform: none; }

  .js .hero-copy > * { opacity: 0; transform: translateY(12px); animation: rise 0.7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .js .hero-art img { clip-path: inset(0 50% 0 50%); animation: curtain 1.4s var(--ease) 0.15s forwards; }
  .js .hero-art::before { opacity: 0; transform: scale(0.86); animation: spot 1.1s var(--ease) 0.35s forwards; }
  .is-birthday .hero-art::before { animation: spot 1.1s var(--ease) 0.35s forwards, glow 3.2s ease-in-out 1.6s 3; }

  .listen[aria-pressed="true"] .bars i { animation: eq 0.9s ease-in-out infinite; }
  .listen[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -0.3s; }
  .listen[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -0.6s; }
  .player-hint { animation: rise 0.5s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes curtain { to { clip-path: inset(0 0 0 0); } }
@keyframes spot { to { opacity: 1; transform: none; } }
@keyframes glow { 50% { transform: scale(1.06); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

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

/* Smaller screens. Every multi-column layout collapses to one column below 52rem. */

@media screen and (max-width: 68rem) {
  .nav { gap: 1.25rem; }
  .bar { gap: 1.25rem; }
}

@media screen and (max-width: 58rem) {
  .nav { display: none; }
}

@media screen and (max-width: 52rem) {
  .hero-grid, .about-grid, .music-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2.75rem; }
  .hero-art { margin-right: 0; }
  .hero-sub { max-width: 32rem; }

  .about-grid { grid-template-rows: none; }
  .statement, .about-grid > .lead, .facts, .portrait { grid-column: 1; grid-row: auto; }
  .portrait { margin-top: 2.25rem; max-width: 24rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }

  .triptych { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .triptych .t-cast { grid-column: 1 / -1; grid-row: 1; }
  .roles { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .shelf-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .roles li + li { border-top: 1px solid var(--line); padding-top: 1.6rem; }

  .tracks { columns: 1; }
  .edu li { grid-template-columns: minmax(0, 1fr); padding-block: 1.15rem; }
  .cv-block { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .cv-contact { text-align: left; }
  .entry-top { flex-direction: column; gap: 0.1rem; }
}

@media screen and (min-width: 52.0625rem) and (max-width: 68rem) {
  .tracks { columns: 1; }
}

@media screen and (max-width: 23rem) {
  .listen { padding-inline: 0.55rem; }
  .listen-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Print: the CV page prints as a clean A4 sheet. */

@page { size: A4; margin: 16mm 18mm; }

@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #111; --ink-soft: #2a2a2a; --muted: #5c5c5c; --line: #d9d9d9; --accent: #9F2F2D; --accent-wash: #FDEBEC; }
  html { font-size: 10.25pt; }
  body { background: #fff; }
  .site-header, .site-footer, .cv-actions, .skip { display: none !important; }
  .reveal, .stagger > *, .hero-copy > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-art img { clip-path: none !important; animation: none !important; }
  .cv-page { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .sheet { border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none; background: none; }
  .cv-head { padding-bottom: 1.3rem; }
  .cv-block { padding-block: 1.1rem; grid-template-columns: 8.5rem minmax(0, 1fr); break-inside: avoid; }
  .entries { gap: 1.05rem; }
  .cv-closing { padding-top: 1.2rem; break-before: avoid; }
  .entry { break-inside: avoid; }
  .cv-contact { text-align: right; }
  a { text-decoration: none; }
}
