/* ═══════════════════════════════════════════════════════
   FONTS
═══════════════════════════════════════════════════════ */
@font-face {
  font-family: "Playfair Display";
  src: url("Assets/Geist Playfair Fonts/PlayfairDisplay-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("Assets/Geist Playfair Fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("Assets/Geist Playfair Fonts/Geist-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("Assets/Geist Playfair Fonts/GeistMono-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS  (matched exactly to Figma)
═══════════════════════════════════════════════════════ */
:root {
  /* backgrounds */
  --bg-dark: #000000;
  --bg-cream: #fffaf2; /* Figma --cream */
  --bg-paper: #f2efe7; /* Figma --paper — case cards */

  /* text */
  --text-light: #fffaf2;
  --text-dark: #000000;
  --text-graphite: #1a1a1a; /* faded hero text — barely visible on black */
  --text-silver: #999999; /* Figma --silver — labels on dark */
  --text-pewter: #6a6a6a; /* Figma --pewter — labels on cream */
  --text-ink: #0a0a0a;
  --text-steel: #4a4a4a;

  --accent-red: #dc2626;

  /* typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", "Courier New", monospace;

  /* misc */
  --radius-pill: 999px;
  --transition-base: 300ms ease;

  /* layout */
  --page-max: 1440px;
  --gutter: 80px;
  /* Horizontal padding: gutter on small screens, auto-centres at 1440 on wide */
  --px: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ═══════════════════════════════════════════════════════
   LIQUID GLASS HEADER  (always cream-tinted pill)
═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 64px);
  max-width: 1440px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 242, 0.5);
  backdrop-filter: blur(4px) saturate(160%);
  border: rgba(255, 250, 242, 0.3) 1px solid; /* thin cream border to enhance glass effect */
}

.site-header.compact .header-identity,
.site-header.compact .header-nav {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
  transition:
    opacity var(--transition-base),
    width var(--transition-base);
}

/* Left: avatar + name block */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity var(--transition-base);
}

/* Avatar */
.header-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  background: var(--bg-dark);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease;
  cursor: pointer;
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.header-avatar:hover {
  transform: scale(1.05);
}

.avatar-initials {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Name + subtitle */
.header-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-ink);
  line-height: 1;
  white-space: nowrap;
}
.header-name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}
.header-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-steel);
  line-height: 1;
  white-space: nowrap;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-ink);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(0, 0, 0, 0.07);
}
.nav-link:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════
   SHARED ATOMS
═══════════════════════════════════════════════════════ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   SECTION 1 — HERO  (dark)
═══════════════════════════════════════════════════════ */
.section-hero {
  min-height: 100svh;
  background: var(--bg-dark);
  display: flex;
  align-items: flex-start;
  padding: 220px var(--px) 0;
  position: relative;
  overflow: hidden;
}

/* Top gradient so header pill sits cleanly over content */
.section-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 144px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Decorative vertical centre line */
.section-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 1px;
  height: 22%;
  background: rgba(255, 250, 242, 0.15);
  z-index: 0;
}

.hero-content {
  max-width: 1280px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.7vw, 9rem); /* scales up on large screens */
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 64px;
}

/* "Raymond -" and "creative & Disciplined" = serif italic, cream */
.hero-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--text-light);
}

/* "not" and "enough to design this landing page." = graphite (#1a1a1a) */
.hero-headline .faded {
  color: var(--text-graphite);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  transition:
    color 1.2s ease,
    text-shadow 1.2s ease;
  cursor: default;
}
.hero-headline .faded:hover {
  color: var(--text-light);
  text-shadow: 0 0 40px rgba(255, 250, 242, 0.5);
  transition:
    color 0.15s ease,
    text-shadow 0.15s ease;
}

/* "I am" = serif italic, cream */
.hero-headline .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--text-light);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  opacity: 0.6;
  transition: opacity var(--transition-base);
  animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue:hover {
  opacity: 1;
}
.scroll-cue .scroll-arrow {
  font-size: 1.2rem;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* ═══════════════════════════════════════════════════════
   SECTION 2 — CASES  (cream)
═══════════════════════════════════════════════════════ */
.section-cases {
  background: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100svh;
  padding: 80px 0;
}

.cases-header {
  padding: 0 var(--px);
  margin-bottom: 8px;
}

.cases-header .section-label {
  color: var(--text-pewter);
}

.cases-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 11vw, 14rem); /* scales on large screens */
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  text-shadow: 8px 4px 4px rgba(0, 0, 0, 0.25);
  margin-top: 16px;
}

.cases-wip-notice {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-pewter);
  margin-top: 12px;
  opacity: 0.8;
}

.case-cta--wip {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* ── Carousel — vertical snap ────────────────────── */
.carousel-wrapper {
  --carousel-h: 620px;
  position: relative;
  height: var(--carousel-h);
  overflow: hidden;
  outline: none;
}
.carousel-wrapper:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

/* The moving track */
.carousel {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .carousel {
    transition: none;
  }
}

/* Cases list — centres cards and applies the page gutter */
.cases-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 32px var(--px) 80px;
}

/* Card — height follows content, image area is aspect-ratio driven */
.case-card {
  height: auto;
  flex-shrink: 0;
  width: 100%;
  max-width: 1120px;
  /* padding gives the top-left offset shadow room to show */
  padding: 20px 0 0 20px;
  display: flex;
  align-items: stretch;
}

/* Arrow nav buttons */
.carousel-arrows {
  position: absolute;
  bottom: 20px;
  right: 44px;
  display: flex;
  gap: 8px;
  z-index: 20;
}
.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background var(--transition-base);
  outline: none;
}
.carousel-arrow:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}
.carousel-arrow:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.14);
}
.carousel-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

/* The card itself — paper bg, brutal offset shadow */
.case-card-inner {
  background: var(--bg-paper);
  color: var(--text-dark);
  border-radius: 32px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: -16px -16px 0px 0px rgba(0, 0, 0, 0.25);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top section: title + desc + button */
.case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 32px 0;
  flex-shrink: 0;
}

.case-info {
  flex: 1;
  min-width: 0;
}

.case-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.case-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  opacity: 0.7;
}
/* "Study case" button — black rect, rounded-5px */
.case-cta {
  flex-shrink: 0;
  background: var(--text-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1.5px solid var(--bg-cream);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 100ms ease,
    border-color 1s ease;
}
.case-cta:active {
  transform: scale(0.97);
}
.case-cta .btn-fill {
  position: absolute;
  inset: 0;
  background: var(--bg-paper);
  pointer-events: none;
  will-change: transform;
  transform: translateX(-110%);
}
.case-cta span:not(.btn-fill),
.case-cta .btn-label {
  position: relative;
  z-index: 1;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-cta:hover,
.btn-cv:hover,
.footer-link:hover {
  cursor: none;
}

.case-cta.btn-hovered,
.case-cta.btn-hovered .btn-label {
  color: var(--text-dark);
  border-color: var(--text-dark);
  transition:
    color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image area — aspect-ratio drives the height responsively */
.case-images {
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 0;
}
.case-images-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: var(--bg-paper);
  width: 100%;
  aspect-ratio: 5 / 2; /* ~2.5 : 1 — fits the two-phone mockup */
}
.case-images-inner img {
  flex: 1;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.case-images-inner img:only-child {
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  flex: none;
}
.case-images-inner picture {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  flex: none;
}
.case-images-inner picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  flex: none;
  display: block;
}

/* Cover-photo variant — full-bleed landscape image, no contain/bottom tricks */
.case-card--cover .case-images {
  padding: 16px 32px 32px;
}
.case-card--cover .case-images-inner {
  aspect-ratio: 16 / 9;
  border-radius: 40px;
  border: 8px solid var(--bg-cream);
  align-items: stretch;
  background: transparent;
}
.case-card--cover .case-images-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex: 1;
}

.case-image-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    transform var(--transition-base),
    background var(--transition-base);
  position: relative;
}
/* active dot shows inner cream circle (Figma inset style) */
.carousel-dot.active {
  transform: scale(1.1);
}
.carousel-dot.active::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--bg-cream);
  border-radius: 50%;
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — ABOUT  (dark, centered column)
═══════════════════════════════════════════════════════ */
.section-about {
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100svh;
  padding: 80px var(--px) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative vertical lines */
.section-about::before,
.section-about::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: rgba(255, 250, 242, 0.12);
  transform: translateX(-50%);
  z-index: 0;
}
.section-about::before {
  top: 45%;
  height: 14%;
}
.section-about::after {
  top: 78%;
  height: 12%;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.about-heading {
  margin-bottom: 0;
}
.about-heading .section-label {
  color: var(--text-silver);
  margin-bottom: 20px;
}

.about-heading-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-shadow: 8px 4px 4px rgba(255, 250, 242, 0.25);
}

/* Centered column: photo → bio. Negative margin pulls photo up over heading. */
.about-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-bottom: 80px;
  margin-top: -48px;
  position: relative; /* paints on top of the heading text */
  z-index: 1;
}

.about-photo-wrap {
  width: 308px;
  height: 364px;
  border-radius: 178px; /* oval */
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-text p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bg-cream);
}
.about-text p em {
  font-family: var(--font-serif);
  font-style: italic;
}

/* "Preview CV" button — cream bg, black border */
.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1.5px solid var(--text-dark);
  background: var(--bg-cream);
  color: var(--text-dark);
  transition:
    transform 100ms ease,
    border-color 1s ease;
  border: 1px solid var(--text-dark);
  position: relative;
  overflow: hidden;
  transition: transform 100ms ease;
  width: fit-content;
}
.btn-cv:active {
  transform: scale(0.97);
}
.btn-cv .btn-fill {
  position: absolute;
  inset: 0;
  background: var(--text-dark);
  pointer-events: none;
  will-change: transform;
  transform: translateX(-110%);
}
.btn-cv.btn-hovered .btn-fill ~ * {
  color: var(--bg-cream);
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cv span:not(.btn-fill),
.btn-cv > *:not(.btn-fill) {
  position: relative;
  z-index: 1;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cv.btn-hovered,
.btn-cv.btn-hovered .btn-label {
  color: var(--bg-cream);
  border-color: var(--bg-cream);
  transition:
    color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════
   SECTION 4 — NOW LISTENING  (dark, part of dark block)
═══════════════════════════════════════════════════════ */
.section-listening {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0 0 320px;
}

.listening-header {
  padding: 0 var(--px);
  margin-bottom: 0;
}
.listening-header .section-label {
  color: var(--text-silver);
  margin-bottom: 20px;
}

.listening-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-shadow: 8px 4px 4px rgba(0, 0, 0, 0.25);
}
.listening-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-light);
}

/* Album track — viewport window, JS moves the inner row */
.albums-track {
  overflow: visible;
  margin-left: 33%;
  margin-top: -48px;
  padding: 12px 0 16px;
  position: relative;
  z-index: 1;
}
.albums-track.dragging {
  cursor: grabbing;
}

/* Album scroll row — translated by JS, never clipped */
.albums-scroll {
  display: flex;
  gap: 4px;
  overflow: visible;
  padding-right: var(--px);
  will-change: transform;
  user-select: none;
}

/* Album card — vinyl disc design (renders as <a> when url present) */
.album-card {
  text-decoration: none;
  color: inherit;
  flex: 0 0 128px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 128px;
  border-radius: 16px;
  padding: 8px 8px 16px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.album-card:hover {
  transform: translateY(-4px);
}

/* Stacked art layers: colour bg → vinyl disc → cover image */
.album-art {
  position: relative;
  width: 112px;
  height: 120px;
  flex-shrink: 0;
}
.album-art-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 112px;
  height: 120px;
  background-color: #1a1040; /* overridden per-card by JS color sampling */
  border-radius: 12px;
  z-index: 1;
  transition: background-color 0.5s ease;
}
.album-art-disc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 112px;
  height: 118px;
  border-radius: 999px;
  background-color: #0a0a0a;
  z-index: 2;
}
.album-art-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden; /* clips broken-image alt text */
}
.album-art-cover img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}
/* Placeholder when no cover image */
.album-art-placeholder {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 112px;
  height: 112px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.15;
  color: var(--text-light);
  border-radius: 12px;
}

/* Text below the art */
.album-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}
.album-artist-songs {
  font-family: var(--font-mono);
  font-size: 0.5rem; /* 8px */
  color: var(--text-light);
  opacity: 0.45;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 3px;
}
.album-title {
  font-family: var(--font-sans);
  font-size: 0.625rem; /* 10px */
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5 — FOOTER / LA FIN  (cream)
═══════════════════════════════════════════════════════ */
.section-footer {
  background: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--px);
  text-align: center;
  position: relative;
}

.footer-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5rem, 22vw, 20rem); /* 320px at 1440px */
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  text-shadow: 16px 4px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.footer-sep {
  width: 4px;
  height: 4px;
  background: var(--text-dark);
  border-radius: 1px;
  flex-shrink: 0;
}
.footer-link {
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  padding: 4px 10px;
  border-radius: 4px;
  transition: transform 100ms ease;
}
.footer-link .btn-label,
.btn-cv .btn-label,
.case-cta .btn-label {
  position: relative;
  z-index: 1;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link .btn-fill {
  position: absolute;
  inset: 0;
  background: var(--text-dark);
  pointer-events: none;
  will-change: transform;
  transform: translateX(-110%);
}
.footer-link span:not(.btn-fill) {
  position: relative;
  z-index: 1;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-link.btn-hovered,
.footer-link.btn-hovered .btn-label {
  color: var(--bg-cream);
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
/* LinkedIn keeps its brand color per Figma */
.footer-link-linkedin {
  color: #0071b1;
  text-decoration: underline;
  font-family: "Inter", var(--font-sans); /* Figma used Inter Semi Bold here */
}

.footer-link-email {
  text-decoration: underline;
}

.footer-legal {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-silver);
}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
═══════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none; /* shown only on mobile via media query */
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mobile-nav-pills {
  display: flex;
  gap: 4px;
  background: rgba(255, 250, 242, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-nav-pill {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-ink);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--transition-base);
  white-space: nowrap;
}
.mobile-nav-pill:hover {
  background: rgba(0, 0, 0, 0.07);
}
.mobile-nav-pill.active {
  background: rgba(0, 0, 0, 0.08);
}

.mobile-nav-dots {
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.mobile-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dark);
  position: relative;
  transition: transform var(--transition-base);
}
.mobile-nav-dot.active {
  transform: scale(1.1);
}
.mobile-nav-dot.active::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-cream);
  border-radius: 50%;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — WIDE  (≥1600px)
═══════════════════════════════════════════════════════ */
@media (min-width: 1600px) {
  :root {
    --page-max: 1600px;
    --gutter: 120px;
  }

  .section-hero {
    padding-top: 280px;
    padding-bottom: 120px;
  }

  .section-cases {
    padding: 120px 0;
  }

  .cases-list {
    gap: 80px;
    padding: 48px var(--px) 100px;
  }

  .case-card {
    max-width: 1400px;
  }

  .hero-content,
  .about-inner {
    max-width: 1600px;
  }

  .section-about {
    padding-top: 120px;
  }

  .about-column {
    padding-bottom: 120px;
  }

  .section-listening {
    padding-bottom: 120px;
  }

  .listening-heading {
    font-size: clamp(2.5rem, 6.7vw, 9rem);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MACBOOK  (≤1440px)
═══════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
  .section-hero {
    padding-bottom: 80px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤1024px)
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --gutter: 48px; /* all var(--px) sections narrow together */
  }
  .section-hero {
    padding-top: 160px;
    padding-bottom: 0;
  }
  .section-about {
    padding-top: 60px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤767px)
═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Header: hide nav (bottom nav takes over), keep name always visible */
  .site-header {
    width: calc(100% - 32px);
    top: 16px;
  }
  .header-nav {
    display: none;
  }
  .header-inner {
    padding: 8px 12px 8px 8px;
  }
  .header-identity {
    max-width: 200px;
  }
  .header-name {
    font-size: 0.8125rem;
  }
  .header-subtitle {
    font-size: 0.75rem;
  }

  /* Never collapse identity on mobile — name stays visible */
  .site-header.compact .header-identity {
    opacity: 1;
    pointer-events: auto;
    width: auto;
    overflow: visible;
  }

  /* Carousel: shorter on mobile so it fits in the viewport */
  .carousel-wrapper {
    --carousel-h: 500px;
  }
  .case-images-inner {
    aspect-ratio: 3 / 2; /* taller on mobile for portrait phone mockup */
  }

  /* Mobile bottom nav visible */
  .mobile-bottom-nav {
    display: flex;
  }

  :root {
    --gutter: 32px; /* all var(--px) sections narrow together */
  }

  /* Hero */
  .section-hero {
    padding-top: 140px;
    padding-bottom: 0;
  }
  .section-hero::after {
    bottom: 12%;
    height: 16%;
  }
  .hero-headline {
    font-size: clamp(2rem, 12.3vw, 3rem); /* ~48px at 390px */
    margin-bottom: 48px;
  }

  /* Cases */
  .section-cases {
    padding: 40px 0;
    min-height: unset;
  }
  .cases-list {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .section-about,
  .section-listening {
    min-height: unset;
  }
  .cases-header {
    margin-bottom: 24px;
  }
  .cases-heading {
    font-size: clamp(3rem, 24.6vw, 6rem);
  } /* 96px at 390px */
  .case-card {
    padding: 10px 0 0 10px; /* smaller shadow on mobile */
  }
  .case-card-inner {
    box-shadow: -8px -8px 0 0 rgba(0, 0, 0, 0.25);
  }
  .case-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .case-cta {
    align-self: flex-start;
  }
  .case-title {
    font-size: 2rem;
  }
  .case-images-inner picture img {
    width: 100%;
    height: 100%;
  }

  /* About */
  .section-about {
    padding-top: 40px;
  }
  .about-heading-title {
    font-size: clamp(3.5rem, 24.6vw, 6rem);
  }
  .about-photo-wrap {
    width: 100%;
    max-width: 308px;
    height: auto;
    aspect-ratio: 308 / 364;
    border-radius: 154px;
  }
  .about-column {
    margin-top: -60px; /* less overlap on mobile — heading wraps to 2 lines */
    gap: 32px;
    padding-bottom: 48px;
  }

  /* Listening */
  .listening-heading {
    font-size: clamp(2.5rem, 16.4vw, 4rem);
  } /* ~64px at 390px */
  .albums-track {
    margin-left: 0; /* full-width on mobile */
    padding-left: var(--px); /* normal left gutter */
    margin-top: -48px;
  }

  /* Footer — full screen on mobile, la Fin centred */
  .section-footer {
    min-height: 100svh;
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 80px; /* space above mobile bottom nav */
  }
  .footer-heading {
    font-size: clamp(4rem, 24.6vw, 6rem);
  } /* 96px at 390px */
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-legal {
    position: static;
    margin-top: 24px;
  }
}
