/* Theme & layout tokens */
:root {
  --color-bg: #141414;
  --color-text-hover: rgba(255, 255, 255, 0.5);
  --color-text-active: rgba(255, 255, 255, 0.9);

  --cursor-pill-bg: rgba(0, 0, 0, 0.5);
  --cursor-pill-backdrop-blur: 4px;
  --cursor-pill-text: #fff;
  --descr-dim-duration: 0.4s;

  --font-ui: 'Inter Tight', Arial, sans-serif;
  --font-cursor-pill-size: 12px;
  --font-cursor-pill-weight: 400;
  --font-cursor-pill-tracking: 0.075em;
  /* Shared left/right inset for the site chrome + about scroll container, so the corner
     links line up with the about content edges. */
  --page-inline-pad: clamp(1.25rem, 4vw, 2.5em);
  /* Corner links + project-nav year: inline offset tracks --page-inline-pad; vertical stays 2em. */
  --nav-offset-x: var(--page-inline-pad);
  --nav-offset-y: 2rem;

  --canvas-fade-duration: 0.7s;
  --img-brightness: 0.88;
  --img-contrast: 1.05;

  --focus-ring: 2px solid rgba(255, 255, 255, 0.5);
  --focus-ring-offset: 3px;
  --focus-ring-offset-nav-year: 4px;

  /* Hero title: scales with viewport up to ~1024px, then larger cap on wide screens */
  --year-intro-title-size: clamp(1.625rem, 4.6vw + 2.4rem, 5rem);

  /* ILKO inline SVG jacket + about panel; `main.js` overwrites from `config.js` on load. */
  --about-overlay-bg: #bebebe;
  --ilko-icon-jacket: #8e8e8e;

  /* Custom SVG cursors: hotspot x y — tune until the fingertip aligns (started from Osmo example). */
  --cursor-followilko-pointer: url('/assets/ui/custom-cursor-pointer.svg') 12 0, pointer;
  --cursor-followilko-grab: url('/assets/ui/custom-cursor-grab.svg') 12 4, grabbing;
}

@media screen and (min-width: 1024px) {
  :root {
    --year-intro-title-size: clamp(5rem, 3.5vw + 2.75rem, 6rem);
  }
}

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

body {
  cursor: auto;
  background: var(--color-bg);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Custom pointer + press (grab) cursors: SVG on fine pointer; system pointer + grabbing otherwise --- */
#stage,
body.route-about,
body.route-about .about-page,
body.route-about .about-page__scroll,
a,
a *,
button,
button *,
select,
input[type='submit'],
input[type='button'],
input[type='radio'],
input[type='checkbox'],
.parallax-project-nav__item,
.year-audio-player__waveform,
.parallax-project-mobile__dot {
  cursor: pointer;
}

#stage .project-canvas.active *:active,
a:active,
a *:active,
button:active,
button *:active,
select:active,
input[type='submit']:active,
input[type='button']:active,
input[type='radio']:active,
input[type='checkbox']:active,
.parallax-project-nav__item:active,
.year-audio-player__waveform:active,
.parallax-project-mobile__dot:active {
  cursor: grabbing;
}

@media (pointer: fine) {
  #stage,
  body.route-about,
  body.route-about .about-page,
  body.route-about .about-page__scroll,
  a,
  a *,
  button,
  button *,
  select,
  input[type='submit'],
  input[type='button'],
  input[type='radio'],
  input[type='checkbox'],
  .parallax-project-nav__item,
  .year-audio-player__waveform,
  .parallax-project-mobile__dot {
    cursor: var(--cursor-followilko-pointer);
  }

  #stage .project-canvas.active *:active,
  a:active,
  a *:active,
  button:active,
  button *:active,
  select:active,
  input[type='submit']:active,
  input[type='button']:active,
  input[type='radio']:active,
  input[type='checkbox']:active,
  .parallax-project-nav__item:active,
  .year-audio-player__waveform:active,
  .parallax-project-mobile__dot:active {
    cursor: var(--cursor-followilko-grab);
  }
}

/* --- Center intro (headline + kicker + recap audio; fades with descr dim via #stage.stage--descr) --- */
.year-intro {
  /* Slightly above true center; tune with viewport height (~10–15%). */
  --year-intro-nudge-y: -5vh;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 100vw;
  transform: translateY(var(--year-intro-nudge-y));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--descr-dim-duration) ease,
    visibility 0s linear var(--descr-dim-duration);
}

#stage.stage--descr ~ .year-intro {
  padding: 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--descr-dim-duration) ease,
    visibility 0s linear 0s;
}

/* First-visit chrome intro (`main.js`): keep recap block hidden until collage pixel reveal finishes */
body.site-load--pending #year-intro.year-intro {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity 0s linear, visibility 0s linear;
}

@media (prefers-reduced-motion: reduce) {
  .year-intro,
  #stage.stage--descr ~ .year-intro {
    transition-duration: 0.01s;
  }
}

.year-intro__title {
  max-width: 52rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--year-intro-title-size);
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #d7d7d7;
}

/* Line/sentence blocks for locale switch animation (see site-locale.js) */
.year-intro__segment {
  display: block;
  overflow: hidden;
}

.year-intro__segment-inner {
  display: block;
  will-change: transform;
}

/* Narrow: <680 — centered hero; mobile project dots under avatar; title + smaller ilko icon */
@media screen and (max-width: 679px) {
  .year-intro {
    --year-intro-nudge-y: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .year-intro__title {
    font-size: clamp(1.625rem, 8.5vw + 0.85rem, 4.25rem);
    text-align: center;
    align-self: center;
    max-width: none;
  }

  .year-intro__kicker {
    text-align: center;
    align-self: center;
  }

  .year-intro__audio {
    align-self: center;
    max-width: 100%;
  }

  .site-chrome__top .site-chrome__ilko-icon,
  .site-chrome__top > img {
    height: clamp(2.5rem, 18vw, 4rem);
    width: auto;
  }

  .parallax-project-nav .parallax-project-nav__list {
    display: none;
  }

  /* Descr toggle remains stage tap; pill is pointer/desktop-only */
  #cursor-pill {
    display: none !important;
  }
}

@media screen and (min-width: 680px) {
  .parallax-project-mobile {
    display: none !important;
  }
}

.year-intro__kicker {
  line-height: 1.35;
  color: #fff;
}

@media screen and (min-width: 680px) {
  .year-intro__kicker {
    text-align: center;
  }
}

.year-intro__audio {
  pointer-events: auto;
  width: max-content;
  max-width: min(92vw, 100%);
}

.year-intro__audio-row {
  width: max-content;
  max-width: 100%;
}

.year-audio-player {
  --year-audio-pill-height: 3.25em;
  --year-audio-icon-btn-size: 2rem;
  --year-audio-icon-btn-fg: #fff;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
  height: var(--year-audio-pill-height);
  min-height: var(--year-audio-pill-height);
  padding: 0 1.3rem 0 0.65rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background: none;
}

.year-audio-player__play {
  position: relative;
  flex-shrink: 0;
  width: var(--year-audio-icon-btn-size);
  height: var(--year-audio-icon-btn-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  color: var(--year-audio-icon-btn-fg);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-audio-player__play:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.year-audio-player__play-face {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-year-audio-status='not-playing'] .year-audio-player__play-face--pause,
[data-year-audio-status='disabled'] .year-audio-player__play-face--pause {
  display: none;
}

[data-year-audio-status='playing'] .year-audio-player__play-face--play {
  display: none;
}

/* No recap track for this locale/year (e.g. 2024 EN): greyed, non-interactive. */
[data-year-audio-status='disabled'] {
  opacity: 0.4;
  cursor: not-allowed;
}

[data-year-audio-status='disabled'] .year-audio-player__play,
[data-year-audio-status='disabled'] .year-audio-player__waveform {
  pointer-events: none;
  cursor: not-allowed;
}

.year-audio-player__center {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
}

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

.year-audio-player__time {
  flex-shrink: 0;
  width: 2.35rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: right;
}

.year-audio-player__waveform {
  position: relative;
  flex: 0 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  width: max-content;
}

.year-audio-player__waveform:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.year-audio-player__waveform-layers {
  position: relative;
  width: fit-content;
  height: 100%;
  min-height: 24px;
}

.year-audio-player__waveform-bars--muted,
.year-audio-player__waveform-bars--played {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  height: 100%;
  pointer-events: none;
}

/* In-flow row sets intrinsic width for the waveform; clip + thumb layer on top. */
.year-audio-player__waveform-bars--muted {
  position: relative;
  z-index: 0;
}

.year-audio-player__waveform-progress-clip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  transition: width 0.05s linear;
}

@media (prefers-reduced-motion: reduce) {
  .year-audio-player__waveform-progress-clip {
    transition-duration: 0.01s;
  }
}

.year-audio-player__waveform-bars--played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
}

.year-audio-player__waveform-bar {
  flex: 0 0 2px;
  width: 2px;
  min-width: 2px;
  align-self: center;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.year-audio-player__waveform-bars--played .year-audio-player__waveform-bar {
  background: #fff;
}

/* NL recap: wider “capsule” bars + tighter rhythm (distinct from EN clip) */
[data-year-audio-root][data-year-waveform-lang='nl'] .year-audio-player__waveform-bars--muted,
[data-year-audio-root][data-year-waveform-lang='nl'] .year-audio-player__waveform-bars--played {
  gap: 3px;
}

[data-year-audio-root][data-year-waveform-lang='nl'] .year-audio-player__waveform-bar {
  flex: 0 0 2px;
  width: 2px;
  min-width: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
}

[data-year-audio-root][data-year-waveform-lang='nl']
  .year-audio-player__waveform-bars--played
  .year-audio-player__waveform-bar {
  background: linear-gradient(180deg, #fff 0%, rgba(230, 240, 255, 0.92) 55%, rgba(255, 255, 255, 0.88) 100%);
}

.year-audio-player__waveform-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  z-index: 2;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 520px) {
  .year-audio-player {
    padding: 0 0.65rem;
  }
}

/* ==== MOBILE TOUCH SCRUB (coarse pointers only) — paired with the JS block of the same name.
   Delete this whole block to revert; nothing else depends on it. ==== */
@media (pointer: coarse) {
  .year-audio-player__waveform {
    touch-action: none;
  }

  /* Invisible ~44px tall hit area so the thin bars are easy to tap/drag; no visual change. */
  .year-audio-player__waveform::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
    z-index: 3;
  }

  .year-audio-player[data-year-scrubbing='true'] {
    user-select: none;
  }

  .year-audio-player[data-year-scrubbing='true'] .year-audio-player__waveform-thumb {
    width: 14px;
    height: 14px;
    margin-top: -7px;
  }
}
/* ==== END MOBILE TOUCH SCRUB ==== */

/* --- About route (Barba container; below ILKO, fixed panel; top set in JS) --- */
.about-page {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  pointer-events: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--about-overlay-bg, #bebebe);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.about-page__inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--about-overlay-bg, #bebebe);
}

.about-page__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Keep it scrollable but hide the visible scrollbar (Firefox / legacy Edge; WebKit below). */
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  --about-scroll-inline-pad: var(--page-inline-pad);
  /* Small top band only: this sits above the sticky links once they stick, so keep it tight. */
  border-top: calc(clamp(0.5rem, 1.4vw, 0.85rem) + 0.5em) solid var(--about-overlay-bg, #bebebe);
  /* Full viewport width so the closing marquee can sit edge-to-edge without clipping.
     Content max-width / inline pad live on .about-grid instead. */
  padding: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.about-page__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.5rem, 1.2vw, 1rem);
  row-gap: clamp(1.25rem, 3vw, 1rem);
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: var(--about-scroll-inline-pad);
  box-sizing: border-box;
  overflow: visible;
}

.about-intro {
  grid-column: 7 / -2;
  font-family: var(--font-ui);
  color: #141414;
  padding: 4em 0;
}

.about-intro__name {
  font-weight: 400;
  /* Fluid so the long "Guntlisbergen" scales with the viewport instead of
     overflowing its ~40% column. 5vw ≈ half the screen once you account for
     the word's own width; caps at 5.75rem on large screens (container stops
     growing at 1800px, so the max keeps it from overflowing there). */
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 100%;
  font-style: normal;
  color: #272727;
}

.about-intro__tagline {
  margin-top: 0.65em;
  font-family: var(--font-ui);
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(39, 39, 39, 0.75);
  max-width: 36em;
}

.about-hero {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  pointer-events: none;
}

.about-hero__layers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.5rem, 1.2vw, 1rem);
  align-items: end;
  min-height: clamp(220px, 42vw, 520px);
  padding: 0;
}

.about-hero__ilko {
  grid-column: 1 / 7;
  width: 100%;
  height: auto;
  display: block;
  align-self: end;
  margin: 0 -2px -7px;
  padding: 0;
  /* logo-ilko.svg uses #D7D7D7 fills → white */
  filter: brightness(0) invert(1);
}

.about-links {
  grid-column: 1 / -1;
  display: grid;
  /* True center column for mail; side columns at least as wide as link text (no clipping). */
  grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
  column-gap: clamp(0.75rem, 2.5vw, 2rem);
  align-items: end;
  padding-bottom: calc(clamp(0.5rem, 1.5vw, 0.85rem) + 0.5em);
  row-gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  /* No overflow:auto here: it forces overflow-y to clip and hides [data-underline-link] ::before/::after. */
  /* Sit above all in-page layers (reel AIV mark, portrait overlap prose, etc.); same role as site chrome over content. */
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--about-overlay-bg, #bebebe);
  border-bottom: 1px solid rgba(39, 39, 39, 0.1);
}

.about-links > a:nth-child(1) {
  grid-column: 1;
  justify-self: start;
}

.about-links > a:nth-child(2) {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.about-links > a:nth-child(3) {
  grid-column: 3;
  justify-self: end;
  text-align: end;
}

.about-links .about-page__link {
  white-space: nowrap;
}

.about-story {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  --about-content-gap: clamp(0.5rem, 1.2vw, 1rem);
  column-gap: var(--about-content-gap);
  row-gap: clamp(7rem, 3vw, 5rem);
  padding-top: 3.5em;
  padding-bottom: 0;
  width: 100%;
  overflow: visible;
}

.about-story__p--1 {
  grid-column: 1 / 7;
}

.about-story__reel.about-content__media {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.25rem, 0.65vw, 0.5rem);
  min-width: 0;
}

.about-story__p--2 {
  grid-column: 8 / 13;
}

.about-story__reel.about-content__media,
.about-story__p--2 {
  grid-row: 2;
  align-self: start;
}

.about-story__p--3 {
  grid-column: 4 / 10;
  grid-row: 3;
}

.about-story__figure {
  grid-column: 4 / 10;
  grid-row: 4;
  margin: 0;
  width: 100%;
  min-width: 0;
  align-self: start;
  z-index: 1;
}

.about-story__portrait-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.about-story__p--4 {
  grid-column: 1 / 5;
  grid-row: 4;
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 4em !important;
}

.about-story__p5-stack {
  display: flex;
  flex-direction: column;
  grid-column: 8 / 13;
  grid-row: 4;
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  align-items: flex-start;
  text-align: start;
  margin-bottom: 6em !important;
  min-width: 0;
}

.about-story__p5-stack .about-story__p {
  margin: 0;
}

.about-story__meta-link {
  display: inline-block;
  margin-top: 0.65em;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.85vw + 0.82rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(39, 39, 39, 0.65);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-story__meta-link:hover {
  color: #141414;
}

.about-story__meta-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Closing note + ILKO wordmark share the portrait's column (4 / 10). */
.about-story__p--6 {
  grid-column: 4 / 10;
  grid-row: 5;
}

.about-story__closing {
  grid-column: 1 / -1;
  grid-row: 6;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--about-content-gap);
  align-items: end;
  /*
   * EXPERIMENT: shared marquee scale (cards + radius + arc + top offset).
   * Tuned so scale ≈ 1 at 1600px. Floors at 0.72 so it doesn't collapse on
   * mid-size laptops before the mobile breakpoint.
   *
   * IMPORTANT: divisor must be 1600px (a length). `100vw / 1600` is a length,
   * which invalidates clamp(number, length, number) and collapses arc height to 0.
   *
   * REVERT (easy):
   *   1) Set --about-marquee-scale: 1; below, OR
   *   2) git revert / restore this block to the pre-scale values:
   *        --about-marquee-trim: 5em;
   *        min-height: calc(clamp(30rem, 62vw, 46rem) - var(--about-marquee-trim));
   *        --about-marquee-arc: calc(clamp(28rem, 48vw, 46rem) - var(--about-marquee-trim));
   *      and fixed card 24.5em / radius 66em / top 3rem (see overrides below).
   */
  --about-marquee-scale: clamp(0.72, calc(100vw / 1600px), 1);
  --about-marquee-trim: calc(5em * var(--about-marquee-scale));
  /* Baselines match the old ~1600px look (arc ≈ 46rem − 5em). */
  --about-marquee-arc: calc(41rem * var(--about-marquee-scale));
  --about-marquee-card-w: calc(24.5em * var(--about-marquee-scale));
  --about-marquee-radius: calc(66em * var(--about-marquee-scale));
  --about-marquee-top: calc(3rem * var(--about-marquee-scale) + 1em);
  min-height: calc(41rem * var(--about-marquee-scale));
  /* Full-bleed to the viewport: scroll is now full-width, so this no longer gets clipped. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
  box-sizing: border-box;
}

.about-story__wordmark {
  /* Keep ILKO aligned to content columns 4–10 of the padded max-1800 grid. */
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: calc((min(100vw, 1800px) - 2 * var(--about-scroll-inline-pad)) * 0.5);
  max-width: 100%;
  aspect-ratio: 135 / 80;
  background-color: rgba(39, 39, 39, 0.2);
  -webkit-mask: url('/assets/ui/logo-ilko.svg') left center / contain no-repeat;
  mask: url('/assets/ui/logo-ilko.svg') left center / contain no-repeat;
  z-index: 1;
  align-self: start;
}

.about-story__marquee {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  overflow: hidden;
  height: var(--about-marquee-arc);
  pointer-events: none;
  align-self: end;
  /* Parent closing is already full-bleed — fill it. */
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.about-story__marquee .radial-cards-marquee {
  position: absolute;
  left: 50%;
  top: var(--about-marquee-top, 3rem);
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
}

.about-story__marquee .radial-cards-marquee__collection {
  display: flex;
  justify-content: center;
}

/* --- Osmo Radial Cards Marquee (CSS) --- */
[data-radial-cards-marquee-list] {
  --total: 10;
  --radius: 52em;
  --duration: 72s;

  display: grid;
  transform-origin: 50% var(--radius);
  animation: rotate360 var(--duration) linear infinite;
}

[data-radial-cards-marquee-list] > * {
  grid-area: 1 / 1;
  transform-origin: 50% var(--radius);
  transform: rotate(calc(360deg / var(--total) * (var(--card) - 1)));
}

@keyframes rotate360 {
  to {
    transform: rotate(-360deg);
  }
}

/* Can be removed when using the JavaScript version */
[data-radial-cards-marquee-list] > :nth-child(1) {
  --card: 1;
}
[data-radial-cards-marquee-list] > :nth-child(2) {
  --card: 2;
}
[data-radial-cards-marquee-list] > :nth-child(3) {
  --card: 3;
}
[data-radial-cards-marquee-list] > :nth-child(4) {
  --card: 4;
}
[data-radial-cards-marquee-list] > :nth-child(5) {
  --card: 5;
}
[data-radial-cards-marquee-list] > :nth-child(6) {
  --card: 6;
}
[data-radial-cards-marquee-list] > :nth-child(7) {
  --card: 7;
}
[data-radial-cards-marquee-list] > :nth-child(8) {
  --card: 8;
}
[data-radial-cards-marquee-list] > :nth-child(9) {
  --card: 9;
}
[data-radial-cards-marquee-list] > :nth-child(10) {
  --card: 10;
}
[data-radial-cards-marquee-list] > :nth-child(11) {
  --card: 11;
}
[data-radial-cards-marquee-list] > :nth-child(12) {
  --card: 12;
}

.demo-card {
  color: #f4f4f4;
  background: var(--card-bg, #201d1d);
  border-radius: 0;
  /* ~3 cards visible around 1400px with the radial layout. */
  width: 24.5em;
  padding: 24px;
  box-sizing: border-box;
}

.demo-card__visual {
  width: 100%;
}

.demo-card__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75em;
  width: 100%;
  margin-top: 16px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

.demo-card__media {
  border-radius: 0;
  width: 100%;
  position: relative;
}

.demo-card__media-before {
  /* Shorter portrait visual (was 120%; −15% height). */
  padding-top: 102%;
}

.demo-card__h {
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.8125em;
  font-weight: 400;
  line-height: 1.2;
}

.demo-card__year {
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.8125em;
  font-weight: 400;
  line-height: 1.2;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Light card backgrounds: dark type + black hairline (matches about prose). */
.demo-card--dark {
  color: #272727;
}

.demo-card--dark .demo-card__info {
  border-top-color: rgba(0, 0, 0, 0.2);
}

.demo-card--dark .demo-card__year {
  opacity: 0.55;
}

.cover-image {
  object-fit: cover;
  object-position: var(--card-fit, center);
  border-radius: inherit;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.about-story__marquee [data-radial-cards-marquee-list] {
  /* Scales with --about-marquee-scale (see .about-story__closing). Was fixed 66em. */
  --radius: var(--about-marquee-radius, 66em);
  --duration: 72s;
}

.about-story__marquee .demo-card {
  /* Scales with --about-marquee-scale. Was fixed 24.5em. */
  width: var(--about-marquee-card-w, 24.5em);
}

@media (prefers-reduced-motion: reduce) {
  [data-radial-cards-marquee-list] {
    animation: none;
  }
}

.about-content__prose {
  font-family: var(--font-ui);
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #272727;
}

.about-content__prose p {
  margin: 0;
}

.about-content__prose p + p {
  margin-top: 0.85em;
}

.about-story__p.about-content__prose {
  margin: 0;
}

.about-content__figure {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.about-content__photo {
  width: 100%;
  display: block;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.about-content__reel-aspect[data-aspect-ratio] {
  width: 100%;
  padding-top: calc(914 / 1358 * 100%);
  pointer-events: none;
}

.about-content__reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.about-content__reel-empty {
  display: none;
}

.about-content__reel-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  background: #111;
}

.about-content__reel-poster {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.about-content__reel-media[data-media-status='playing'] .about-content__reel-poster {
  display: none;
}

.about-content__reel-brand {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 7em;
  aspect-ratio: 82 / 40;
  background-color: var(--about-overlay-bg, #bebebe);
  -webkit-mask-image: url('/assets/about/AIV-logo.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left bottom;
  mask-image: url('/assets/about/AIV-logo.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left bottom;
  pointer-events: none;
}

.about-page__link {
  font-family: var(--font-ui);
  font-size: 1.125em;
  color: #141414;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 0.25em;
}

.about-page__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

@media screen and (max-width: 679px) {
  .about-page__scroll {
    --about-scroll-inline-pad: 24px;
    --about-block-gap: 40px;
  }

  .about-grid {
    row-gap: var(--about-block-gap);
  }

  .about-intro {
    grid-column: 1 / -1;
    padding: var(--about-block-gap) 0 0;
  }

  .about-intro__name {
    font-size: clamp(calc(2.5rem + 2px), calc(12vw + 2px), calc(3.5rem + 2px));
    max-width: 85vw;
    line-height: 1;
  }

  .about-intro__tagline {
    font-size: 1.25rem;
  }

  .about-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    aspect-ratio: 3 / 4;
  }

  .about-hero__layers {
    position: absolute;
    inset: 0;
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    padding-top: 0;
    row-gap: 0.5rem;
  }

  .about-hero__ilko {
    grid-column: 1 / -1;
    width: calc(100% - var(--about-scroll-inline-pad));
    max-width: none;
    justify-self: start;
  }

  .about-links {
    position: static;
    top: auto;
    z-index: auto;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.75rem;
  }

  .about-links > a:nth-child(1),
  .about-links > a:nth-child(2),
  .about-links > a:nth-child(3) {
    grid-column: auto;
    justify-self: auto;
    text-align: inherit;
    flex: 0 1 auto;
  }

  .about-story {
    row-gap: var(--about-block-gap);
    padding-top: 0;
  }

  .about-story__p--1,
  .about-story__reel.about-content__media,
  .about-story__p--2,
  .about-story__p--3,
  .about-story__figure,
  .about-story__p--4,
  .about-story__p5-stack,
  .about-story__p--6,
  .about-story__closing {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: start;
    z-index: auto;
    position: static;
  }

  .about-story__reel.about-content__media {
    margin-right: calc(-1 * var(--about-scroll-inline-pad));
    width: calc(100% + var(--about-scroll-inline-pad));
  }

  .about-story__figure {
    margin-left: calc(-1 * var(--about-scroll-inline-pad));
    width: calc(100% + var(--about-scroll-inline-pad));
  }

  .about-story__p--1,
  .about-story__p--6 {
    font-size: 1.25rem;
  }

  .about-story__p--2,
  .about-story__p--3,
  .about-story__p--4,
  .about-story__p--5,
  .about-story__meta-link {
    font-size: 1.125rem;
    color: rgba(39, 39, 39, 0.8);
  }

  .about-story__p--4,
  .about-story__p5-stack {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    justify-self: stretch;
    text-align: start;
    align-items: stretch;
    align-self: start;
  }

  .about-story__closing {
    /* Mobile keeps its own arc clamps; desktop --about-marquee-scale is overridden here. */
    --about-marquee-extra: 4.5em;
    --about-marquee-top: 0;
    min-height: calc(
      clamp(26rem, 72vw, 36rem) - var(--about-marquee-trim, 5em) + var(--about-marquee-extra)
    );
    --about-marquee-arc: calc(
      clamp(24rem, 60vw, 32rem) - var(--about-marquee-trim, 5em) + var(--about-marquee-extra)
    );
    overflow: visible;
  }

  .about-story__wordmark {
    width: calc(100% - 2 * var(--about-scroll-inline-pad));
    margin-bottom: calc(var(--about-marquee-arc) * 0.12);
  }

  .about-story__marquee {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .about-story__marquee .radial-cards-marquee {
    top: 1.5em;
  }

  .about-story__marquee [data-radial-cards-marquee-list] {
    --radius: clamp(40em, 130vw, 54em);
  }

  .about-story__marquee .demo-card {
    width: clamp(15.5rem, 48vw, 21em);
  }

  /* About scroll-shrink (see main.js --about-header-t); gentler than desktop (768px+). */
  body.route-about .site-chrome__ilko-icon {
    height: max(
      1.75rem,
      calc(clamp(2.5rem, 18vw, 4rem) - var(--about-header-t, 0) * 1.5em)
    );
    width: auto;
  }

  body.route-about .site-chrome__top {
    padding-top: calc(1.5em - var(--about-header-t, 0) * 0.25em);
  }

  body.route-about .about-page__scroll {
    border-top-width: calc(
      clamp(0.5rem, 1.4vw, 0.85rem) + 0.5em - var(--about-header-t, 0) * 0.25em
    );
  }
}

body.route-about .parallax-project-nav {
  visibility: hidden;
  pointer-events: none;
}

/* --- Site chrome (avatar + bottom bar; above #stage, below project nav) --- */
#site-chrome {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

#site-chrome .site-chrome__inner {
  pointer-events: none;
  height: 100svh;
}

/* Top/bottom shells pass clicks through; only listed targets capture (see cursor-chrome.js). */
#site-chrome .site-chrome__top,
#site-chrome .site-chrome__bottom {
  pointer-events: none;
}

#site-chrome .site-chrome__top svg,
#site-chrome .site-chrome__top img,
#site-chrome .site-chrome__bottom img,
#site-chrome .site-chrome__link,
#site-chrome .site-chrome__ilko-icon,
  #site-chrome .site-chrome__logo,
  #site-chrome .site-chrome__locale-btn,
  #site-chrome .site-chrome__go-back,
  #site-chrome .parallax-project-mobile button {
  pointer-events: auto;
}

/* ILKO jacket eases into the about tone the moment the sliding panel meets the icon
   (barba sets --ilko-icon-jacket at that point; see js/barba-app.js). */
.site-chrome__ilko-icon path[fill*='--ilko-icon-jacket'] {
  transition: fill 0.4s ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .site-chrome__ilko-icon path[fill*='--ilko-icon-jacket'] {
    transition: none;
  }
}

.site-chrome__top {
  padding: 2em var(--page-inline-pad) 0;
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* About page: collapse the fixed top on scroll by shrinking only the icon.
   `--about-header-t` (0→1) is set by main.js over the first 10em of scroll; the panel
   top follows the icon's new bottom. The links stay put (padding is unchanged). */
@media screen and (min-width: 768px) {
  body.route-about .site-chrome__ilko-icon {
    height: calc(76px - var(--about-header-t, 0) * 26px);
    width: auto;
  }
}

.site-chrome__top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  width: 100%;
  column-gap: 1rem;
}

.site-chrome__go-back-wrap {
  justify-self: start;
  min-width: 0;
}

.site-chrome__top-center {
  justify-self: center;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-chrome__locale {
  position: static;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25em;
}

body:not(.route-about) .site-chrome__go-back {
  visibility: hidden;
  pointer-events: none;
}

body.route-about .site-chrome__go-back {
  visibility: visible;
  pointer-events: auto;
}

button.site-chrome__go-back {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0.25em;
  background: transparent;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.site-chrome__go-back .site-chrome__link-label {
  text-transform: none;
}

.site-chrome__go-back:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* --- Chrome tabs: year (2025 / 2024) + locale (nl / en) with a shared sliding underline --- */
.chrome-tabs {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75em;
}

/* Tabs reuse .site-chrome__link, but the underline is the shared indicator — not a per-link border. */
.chrome-tab.site-chrome__link {
  margin: 0;
  padding: 0 0 0.25em;
  border-bottom: none;
  background: transparent;
  font: inherit;
  color: #fff;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.4s ease;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.chrome-tab.is-active {
  opacity: 1;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .chrome-tab:not(.is-active):hover {
    opacity: 1;
  }
}

.chrome-tab:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset-nav-year, 2px);
}

.chrome-tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0.0625em;
  background: currentColor;
  color: #fff;
  pointer-events: none;
  will-change: transform, width;
}

/* Locale tabs stay lowercase (nl / en). */
.site-chrome__locale .site-chrome__link-label {
  text-transform: none;
  letter-spacing: var(--font-cursor-pill-tracking);
}

/* Equal-width side columns so the logo stays visually centered regardless of link label length. */
.site-chrome__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: flex-end;
  justify-items: stretch;
  margin-left: auto;
  margin-right: auto;
  padding: 2em var(--page-inline-pad);
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  box-sizing: border-box;
}

.site-chrome__bottom > a:first-of-type {
  justify-self: start;
}

.site-chrome__bottom > .site-chrome__logo {
  justify-self: center;
}

.site-chrome__bottom > a:last-of-type {
  justify-self: end;
}

.site-chrome__link {
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.25em;
  text-decoration: none;
  display: inline-block;
}

.site-chrome__link-label {
  font-size: 1.125em;
  /* Flush-top glyphs so plain-text labels (go back) line up with the letter-cell
     labels (en / year), which render at line-height 1. */
  line-height: 1;
}

.site-chrome__logo {
  height: 5em;
}

@media screen and (max-width: 767px) {
  .site-chrome__bottom {
    padding: 1.5em var(--page-inline-pad);
  }

  .site-chrome__top {
    padding: 1.5em var(--page-inline-pad) 0;
  }

  /* Keep the project nav's vertical offset aligned with the reduced chrome padding
     (1.5em); the inline offset keeps tracking --page-inline-pad from :root. */
  :root {
    --nav-offset-y: 1.5rem;
  }

  .site-chrome__locale {
    gap: 1em;
  }

  .site-chrome__top-bar {
    column-gap: 0.75rem;
  }
}

/* --- #stage — collage root (z-index 0; below site chrome 50, nav 150, pill 250) --- */
#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--color-bg);
}

/* Barba year transition: block descr toggles while lattice is partially transparent */
#stage.stage--year-transition-block {
  pointer-events: none;
}

/* Parallax: one transform for canvases + pixel lattice (see main.js RAF) */
#stage-parallax {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}

/* --- Pixel lattice rows/cells (shared by `#year-transition-overlay`; see transition-pixel.js) --- */
.transition__col {
  display: flex;
}

.transition__pixel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: var(--color-bg);
}

/* --- Project canvases — one per portfolio item --- */
.project-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--canvas-fade-duration) ease;
  pointer-events: none;
  transform-origin: center center;
}


.project-canvas.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

/* <picture> is only a format-selection wrapper; keep it layout-transparent so the
   inner <img> keeps its sizing/positioning (portfolio slots + about images). */
picture {
  display: contents;
}

/* --- Image slots — outer clip `.img-layer`, inner fill, descr targets `img` --- */
.img-layer {
  position: absolute;
  overflow: hidden;
}

.img-layer__inner {
  position: absolute;
  inset: 0;
}

.img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, opacity;
  filter: brightness(var(--img-brightness)) contrast(var(--img-contrast));
}

.project-canvas.active .img-layer img {
  opacity: 1;
}

/* CSS dimming + zoom on the image only when GSAP is off (descr.useGsap false or library missing) */
#stage:not(.stage--descr-gsap) .project-canvas.active .img-layer img {
  transition:
    opacity var(--descr-dim-duration) ease,
    transform var(--descr-dim-duration) ease;
}

#stage.stage--descr:not(.stage--descr-gsap) .project-canvas.active .img-layer img {
  opacity: var(--descr-layer-opacity, 0.4);
  transform: scale(var(--descr-layer-scale, 1.05));
}

#stage.stage--descr-gsap .project-canvas.active .img-layer img {
  transition: none;
}

/* Shared caps / small UI type (cursor pill, project nav labels, year intro kicker) */
:is(
    .cursor-pill,
    .parallax-project-nav__item,
    .parallax-project-mobile__inner,
    .year-intro__kicker
  ) {
  font-family: var(--font-ui);
  font-size: var(--font-cursor-pill-size);
  font-weight: var(--font-cursor-pill-weight);
  letter-spacing: var(--font-cursor-pill-tracking);
  text-transform: uppercase;
}

/* --- Floating cursor pill --- */
.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 250;
  transform: translate(-50%, -50%);
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--cursor-pill-bg);
  -webkit-backdrop-filter: blur(var(--cursor-pill-backdrop-blur));
  backdrop-filter: blur(var(--cursor-pill-backdrop-blur));
  color: var(--cursor-pill-text);
  cursor: default;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: none;
  transition: opacity 0.22s ease;
}

.cursor-pill.cursor-pill--hidden-on-hover {
  opacity: 0 !important;
}

.cursor-pill.cursor-pill--under-year-transition {
  z-index: 30;
}

.cursor-pill:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

body.route-about #cursor-pill {
  display: none !important;
}

.cursor-pill__text {
  pointer-events: none;
}

/* --- [data-underline-link] animated underlines (about / mail / portfolio year) --- */
[data-underline-link] {
  text-decoration: none;
  position: relative;
}

[data-underline-link]::before,
[data-underline-link='alt']::before,
[data-underline-link='alt']::after {
  content: '';
  position: absolute;
  bottom: -0.0625em;
  left: 0;
  width: 100%;
  height: 0.0625em;
  background-color: currentColor;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
}

[data-underline-link='alt']::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
  transition-delay: 0.3s;
}

[data-underline-link='alt']::after {
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) {
  [data-hover]:hover [data-underline-link]::before,
  [data-underline-link]:hover::before {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
  }

  [data-hover]:hover [data-underline-link='alt']::before,
  [data-underline-link='alt']:hover::before {
    transform-origin: right;
    transform: scaleX(0) rotate(0.001deg);
    transition-delay: 0s;
  }

  [data-hover]:hover [data-underline-link='alt']::after,
  [data-underline-link='alt']:hover::after {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
    transition-delay: 0.3s;
  }
}

/* Animated underline replaces the default bottom border */
#site-chrome a.site-chrome__link[data-underline-link],
button.site-chrome__link.site-chrome__go-back[data-underline-link],
a.about-page__link[data-underline-link] {
  border: none;
}

/* --- Left project list (fixed; above #site-chrome) --- */
.parallax-project-nav {
  position: fixed;
  top: var(--nav-offset-y);
  left: var(--nav-offset-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  z-index: 150;
}

/* Year tab group sits at the top of the left rail; tab look comes from `.chrome-tab`. */
.parallax-project-nav__years {
  color: #fff;
}

.parallax-project-nav__list {
  position: relative;
  align-self: stretch;
  margin-top: 1em;
}

.parallax-project-nav__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-active);
  pointer-events: none;
  z-index: 1;
}

.parallax-project-nav__items {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
}

/* One overflow mask per row — same idea as `.parallax-project-mobile__mask` / year intro segments */
.parallax-project-nav__mask {
  display: block;
  overflow: hidden;
  line-height: 1.35;
}

.parallax-project-nav__inner {
  display: block;
  will-change: transform;
}

.parallax-project-nav__item {
  line-height: 1.35;
  color: #585858;
  padding: 6px 0;
  position: relative;
  transition: color 0.4s ease;
  user-select: none;
}

.parallax-project-nav__item:hover {
  color: var(--color-text-hover);
}

.parallax-project-nav__item.active {
  color: var(--color-text-active);
}

/* --- Mobile project carousel (under ilko icon; ≤679px only) --- */
.parallax-project-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1em;
}

.parallax-project-mobile__dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.parallax-project-mobile__dot {
  width: 3px;
  height: 3px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #3a3a3a;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.parallax-project-mobile__dot--active {
  background: var(--color-text-active);
  transform: scale(1.15);
}

.parallax-project-mobile__dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.parallax-project-mobile__title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 1.4em;
}

/* Single overflow mask: whole title translates as one block */
.parallax-project-mobile__mask {
  display: block;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.35;
  text-align: center;
}

.parallax-project-mobile__inner {
  display: block;
  will-change: transform;
  color: var(--color-text-active);
}

/* --- Year change: fullscreen pixel lattice (below site chrome 50, above stage + year intro) --- */
.year-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

/* Portfolio project swap: same overlay DOM as year, lower stacking so headline / recap UI stays on top */
.year-transition-overlay.year-transition-overlay--portfolio {
  z-index: 35;
}

.year-transition-overlay--active {
  visibility: visible;
}

.year-transition-overlay__panel {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
