/* ── Self-hosted fonts (Manrope + Syne) ──
   Served locally from /fonts so no visitor data is sent to Google.
   Generated from the Google Fonts CSS2 API (latin + latin-ext subsets). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/syne-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/syne-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/syne-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/syne-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/syne-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/syne-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/syne-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/syne-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/syne-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/syne-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/great-vibes-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #F5F1EC;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6560;
  --color-border: #D5D0CA;
  --color-surface: #EDEAE5;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --grid-gap: clamp(1rem, 2vw, 1.5rem);

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ── Navigation ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--gutter);
  transition: background-color 0.4s var(--ease-smooth),
              backdrop-filter 0.4s var(--ease-smooth);
}

.site-header.is-scrolled {
  background-color: rgba(245, 241, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Home hero: the header sits over the photo until the page is scrolled, so
   render it white for contrast; it reverts to dark once the beige bar fades in.
   Scoped to .home — About/Contact open on the beige background, not a photo. */
.home .site-header:not(.is-scrolled) .nav__logo,
.home .site-header:not(.is-scrolled) .nav__link {
  color: #fff;
}
.home .site-header:not(.is-scrolled) .nav__link::after,
.home .site-header:not(.is-scrolled) .nav__toggle span {
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  height: 3rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.35s var(--ease-smooth),
              opacity 0.25s var(--ease-smooth);
  transform-origin: center;
}

.nav__toggle.is-active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__toggle.is-active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ── Mobile Overlay ── */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-overlay__links a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
}

.nav-overlay.is-open .nav-overlay__links a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.is-open .nav-overlay__links li:nth-child(1) a { transition-delay: 0.1s; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(2) a { transition-delay: 0.18s; }
.nav-overlay.is-open .nav-overlay__links li:nth-child(3) a { transition-delay: 0.26s; }

/* ── Hero ── */

.hero {
  /* Tall runway: the first 100svh holds the name centred over the photo;
     the remaining height is the scroll distance over which the fixed photo
     fades out and the rest of the page is revealed. */
  position: relative;
  min-height: 155vh;
}

/* Full-bleed photo, fixed behind the page. Sits above the beige canvas
   (z-index -1) but below all page content, so the name scrolls over it.
   main.js fades its opacity to 0 as the hero scrolls away. */
.hero__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(20, 18, 22, 0.28) 0%, rgba(20, 18, 22, 0.5) 100%),
    url('../media/hero.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
  will-change: opacity;
}

.hero__content {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--gutter);
  text-align: center;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 13rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.9s var(--ease-out) 0.15s forwards;
}

.hero__descriptor {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.82);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  transform: translateY(10px);
  animation: hero-in 0.8s var(--ease-out) 0.55s forwards;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Marquee ── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-right: 0.5em;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Logo strip (About) ── */

.logo-strip {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.logo-strip__track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo-strip__item {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.08);
  margin-right: clamp(1.75rem, 4vw, 3.5rem);
  flex-shrink: 0;
}

/* Transparent logos (PNG with alpha) shouldn't get the chip ring — it would
   frame empty space around the mark. */
.logo-strip__item--plain {
  box-shadow: none;
  border-radius: 0;
}

/* Static (row fits): drop the trailing gap so the set stays centred. */
.logo-strip:not(.is-scrolling) .logo-strip__item:last-child {
  margin-right: 0;
}

/* Overflow: JS duplicates the set and we scroll it as a seamless marquee.
   Spacing is baked into each item (margin-right), so translateX(-50%) lands
   exactly on a repeat. */
.logo-strip.is-scrolling .logo-strip__track {
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  animation: logo-scroll 32s linear infinite;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-strip.is-scrolling .logo-strip__track { animation: none; }
}

/* ── Projects Grid ── */

.projects {
  /* Extra bottom space (above the footer divider) reserves room for the
     right column's downward parallax drift, capped at 7vh in main.js, so
     the last card can't overlap the footer. */
  padding: var(--space-xl) var(--gutter) calc(var(--space-lg) + 8vh);
  max-width: var(--container);
  margin: 0 auto;
}

.projects__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Two floating columns instead of an aligned grid.
   Left col holds 5 cards (indices 0,2,4,6,8); right col holds 4 (indices 1,3,5,7).
   Right column is offset down so the cards interlock visually. */
.projects__grid {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: flex-start;
}

.projects__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  will-change: transform;
}

.projects__col--right {
  margin-top: clamp(3rem, 9vw, 7rem);
}

.project-card {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.project-card__link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.project-card__image {
  position: relative;
  overflow: hidden;
  background-color: #2A2A2A;
}

.project-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s var(--ease-smooth);
}

.project-card__link:hover .project-card__image::after {
  background: rgba(0, 0, 0, 0.08);
}

.project-card__image-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-smooth);
}

.project-card__link:hover .project-card__image-inner {
  transform: scale(1.03);
}

/* Fallback aspect ratio — each card overrides this inline with a
   per-project ratio (see `aspect` in projects.js) so the grid reads
   as varied heights rather than a uniform grid. */
.project-card__image {
  aspect-ratio: 4 / 5;
}

/* Poster image support — when a poster URL is set, render it as background */
.project-card__image--has-poster {
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
}

.project-card__image--has-poster .project-card__image-inner {
  background: none;
}

/* Placeholder gradients */
.project-card__image--contraargumentum .project-card__image-inner {
  background: radial-gradient(ellipse at 20% 80%, #3D2B55 0%, #1A1520 70%);
}

.project-card__image--twofour .project-card__image-inner {
  background: radial-gradient(ellipse at 80% 20%, #5B6B55 0%, #2D3529 70%);
}

.project-card__image--glitch .project-card__image-inner {
  background: radial-gradient(ellipse at 50% 50%, #7A3B3B 0%, #3A1A1A 70%);
}

.project-card__image--peoples .project-card__image-inner {
  background: radial-gradient(ellipse at 30% 60%, #8B7355 0%, #4A3A25 70%);
}

.project-card__image--luke .project-card__image-inner {
  background: radial-gradient(ellipse at 70% 40%, #5A6575 0%, #2A3040 70%);
}

.project-card__image--aislamiento .project-card__image-inner {
  background: radial-gradient(ellipse at 40% 70%, #2A5555 0%, #152A2A 70%);
}

.project-card__image--mirror .project-card__image-inner {
  background: radial-gradient(ellipse at 60% 30%, #8A5030 0%, #3A2010 70%);
}

.project-card__image--becoming .project-card__image-inner {
  background: radial-gradient(ellipse at 50% 50%, #6A5575 0%, #352A3A 70%);
}

.project-card__year {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.project-card__info {
  padding: var(--space-sm) 0 var(--space-md);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.2;
  transition: transform 0.4s var(--ease-smooth);
}

.project-card__link:hover .project-card__title {
  transform: translateY(-2px);
}

.project-card__role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About Page ── */

.page-header {
  padding: calc(5rem + var(--space-lg)) var(--gutter) var(--space-lg);
  max-width: var(--container);
  margin: 0 auto;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 6rem);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-xl);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about__portrait {
  aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse at 40% 60%, #4A4050 0%, #1E1A22 70%);
  position: relative;
  overflow: hidden;
}

.about__portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__portrait-label {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.about__portrait-credit {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.about__video {
  margin-top: var(--space-lg);
}

.about__video-media {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.about__video-credit {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about__text {
  padding-top: var(--space-sm);
}

.about__bio {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.75;
  color: var(--color-text);
  max-width: 540px;
}

.about__bio p + p {
  margin-top: 1.25em;
}

.about__details {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.about__details-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.about__details-list {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--color-text-muted);
}

/* ── Contact Page ── */

.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-xl);
}

.contact__layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact__portrait {
  aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse at 40% 60%, #4A4050 0%, #1E1A22 70%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.contact__portrait-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__main {
  max-width: 480px;
}

.contact__intro {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__group {
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s var(--ease-smooth);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-text);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form__submit {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  border: 1.5px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.35s var(--ease-smooth),
              color 0.35s var(--ease-smooth);
  margin-top: var(--space-sm);
}

.form__submit:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.form__note {
  margin-top: var(--space-sm);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.form__note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__note a:hover {
  color: var(--color-text);
}

.contact__also {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.contact__also-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.contact__also-links {
  display: flex;
  gap: var(--space-md);
  font-size: 0.9rem;
}

.contact__also-links a {
  position: relative;
}

.contact__also-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.contact__also-links a:hover::after {
  width: 100%;
}

/* ── Legal pages (Impressum / Datenschutz) ── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-xl);
}

.legal__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--color-text);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin: var(--space-md) 0 var(--space-xs);
}

.legal__body p {
  margin-bottom: 1em;
}

.legal__body strong {
  color: var(--color-text);
  font-weight: 500;
}

.legal__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__body a:hover {
  color: var(--color-text);
}

/* Visible marker for details Olivia still needs to fill in. */
.legal__todo {
  font-style: normal;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  color: var(--color-text);
}

.legal__updated {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--gutter);
  text-align: center;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer__social,
.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.site-footer__social a {
  display: inline-flex;
  color: var(--color-text-muted);
  transition: color 0.25s var(--ease-smooth);
}

.site-footer__social svg {
  display: block;
}

.site-footer__social a:hover,
.site-footer__links a:hover {
  color: var(--color-text);
}

.site-footer__copy {
  margin-top: var(--space-md);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.site-footer__credit {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease-smooth);
}

.site-footer__credit:hover {
  color: var(--color-text);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .projects__grid {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Stacked single column: flatten the two column wrappers so every card is a
     direct child of the grid, then sequence them by their true project index.
     Without this the left column (even indices) renders fully before the right
     column (odd indices), scrambling the order on phones. */
  .projects__col {
    display: contents;
  }

  .project-card {
    order: var(--card-order, 0);
  }

  .projects__col--right {
    margin-top: 0;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Mobile: let the portrait keep the photo's own aspect ratio (no crop). */
  .about__portrait {
    aspect-ratio: auto;
  }

  .about__portrait-img {
    position: static;
    height: auto;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact__portrait {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .projects__grid {
    gap: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .marquee__track {
    animation: none;
  }

  .hero__name,
  .hero__descriptor {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Lightbox / Slideshow ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 13, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__content {
  position: relative;
  z-index: 2;
  width: min(1280px, 92vw);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  color: #EFEAE4;
  padding: clamp(3.5rem, 5vw, 4.5rem) 0 1rem;
  overflow-y: auto;
}

.lightbox__counter {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  left: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(239, 234, 228, 0.55);
  z-index: 3;
}

/* Media area */
.lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* The video sizes to its own intrinsic aspect ratio (scaled down to fit),
   so the frame always matches the footage — portrait stays portrait, square
   stays square — with no letterbox bars baked into a fixed container. */
.lightbox__media video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

/* Stacked layout — info above, media below. Used for unusually-shaped
   videos that read better full-width than crammed into the right column. */
.lightbox__content[data-layout="stacked"] {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.lightbox__content[data-layout="stacked"] .lightbox__info {
  order: 1;
  max-width: 720px;
  padding-right: 0;
}

.lightbox__content[data-layout="stacked"] .lightbox__media {
  order: 2;
}

.lightbox__content[data-layout="stacked"] .lightbox__media video {
  max-height: 70vh;
}

/* Info area */
.lightbox__info {
  padding-right: 1rem;
}

.lightbox__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #F5F1EC;
}

.lightbox__title-suffix {
  font-weight: 400;
  font-style: italic;
  color: rgba(239, 234, 228, 0.7);
}

.lightbox__subtitle {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(239, 234, 228, 0.85);
}

.lightbox__meta {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(239, 234, 228, 0.55);
}

.lightbox__description {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(239, 234, 228, 0.85);
}

.lightbox__credits {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(239, 234, 228, 0.12);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(239, 234, 228, 0.55);
  letter-spacing: 0.02em;
}

.lightbox__extra {
  margin-top: 1.25rem;
}

.lightbox__spotify,
.lightbox__extra-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(239, 234, 228, 0.4);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #EFEAE4;
  transition: background 0.3s var(--ease-smooth),
              color 0.3s var(--ease-smooth);
}

.lightbox__spotify:hover,
.lightbox__extra-link:hover {
  background: #EFEAE4;
  color: #0a0a0a;
}

.lightbox__extra-link { margin: 0 0.75rem 0.5rem 0; }

/* Venue / collaborator logos — bottom-right, beneath the description.
   The marks are white-on-black; `screen` blends the black backgrounds into
   the dark lightbox so only the marks themselves show. */
.lightbox__logos {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.lightbox__logos img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.92;
}

/* Full-colour images (e.g. artwork) render as-is, no blend. */
.lightbox__logos img.lightbox__logo--plain {
  mix-blend-mode: normal;
  opacity: 1;
  border-radius: 2px;
}

/* Controls */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(239, 234, 228, 0.7);
  cursor: pointer;
  transition: color 0.25s var(--ease-smooth),
              transform 0.25s var(--ease-smooth);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: #EFEAE4;
}

.lightbox__close {
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
}

.lightbox__prev {
  top: 50%;
  left: clamp(0.5rem, 2vw, 1.5rem);
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: clamp(0.5rem, 2vw, 1.5rem);
  transform: translateY(-50%);
}

.lightbox__prev:hover {
  transform: translate(-3px, -50%);
}

.lightbox__next:hover {
  transform: translate(3px, -50%);
}

/* Mobile lightbox */
@media (max-width: 768px) {
  .lightbox__content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 3.5rem;
  }

  .lightbox__info {
    padding-right: 0;
  }

  .lightbox__title {
    font-size: 1.5rem;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
}

/* ── Discipline switch link in nav ── */
.nav__link--switch { opacity: 0.65; }
.nav__link--switch:hover { opacity: 1; }
.nav-overlay__switch { opacity: 0.7; }

/* ── Chooser landing ── */
.chooser-page { margin: 0; }
.chooser {
  position: relative;
  display: flex;
  flex-direction: row;
  min-height: 100svh;
}
.chooser__half {
  position: relative;
  flex: 1 1 50%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #F5F1EC;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: flex-grow 0.5s var(--ease-smooth);
}
.chooser__half--music { background-image: url('/media/about-portrait.jpg'); }
.chooser__half--dance { background-image: url('/media/dance/chooser.jpg'); }
.chooser__half::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(15,13,17,0.45) 0%, rgba(15,13,17,0.66) 100%);
  transition: background 0.4s var(--ease-smooth);
}
.chooser__half:hover::before {
  background: linear-gradient(180deg, rgba(15,13,17,0.22) 0%, rgba(15,13,17,0.5) 100%);
}
@media (min-width: 769px) {
  .chooser__half:hover { flex-grow: 1.22; }
}
.chooser__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: var(--gutter);
}
.chooser__discipline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.chooser__role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(245,241,236,0.82);
  margin-top: 0.7rem;
}
.chooser__enter {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}
.chooser__half:hover .chooser__enter,
.chooser__half:focus-visible .chooser__enter { opacity: 1; transform: none; }
.chooser__name {
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%; transform: translateX(-50%);
  z-index: 2; margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F5F1EC;
  white-space: nowrap;
  text-shadow: 0 1px 20px rgba(0,0,0,0.45);
  pointer-events: none;
}
@media (max-width: 768px) {
  .chooser { flex-direction: column; }
  .chooser__half { min-height: 50svh; }
  .chooser__name { top: 1rem; }
  .chooser__enter { opacity: 1; transform: none; }
}

/* ── Dance hero: fixed video that fades on scroll (like the music hero photo) ── */
.hero__video-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; will-change: opacity;
  background: #141216;
}
.hero__video-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,22,0.28) 0%, rgba(20,18,22,0.5) 100%);
}

/* ── Lightbox: YouTube link-out poster ── */
.lightbox__yt {
  position: relative;
  display: inline-flex;
  text-decoration: none;
}
.lightbox__yt img {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 78vh;
  background: #000;
}
.lightbox__yt-play {
  position: absolute; top: 50%; left: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(15,13,17,0.55);
  border: 1.5px solid rgba(245,241,236,0.9);
  transition: background 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.lightbox__yt-play::after {
  content: '';
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #F5F1EC;
}
.lightbox__yt:hover .lightbox__yt-play {
  background: rgba(15,13,17,0.78);
  transform: translate(-50%, -50%) scale(1.06);
}

/* ── About: services / teaching / sound sections ── */
.about__section { margin-top: var(--space-md); }
.about__section-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.about__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.about__list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.6;
}
.about__list li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--color-text-muted);
}
