/* ============================================
   Ethan Pascual — Portfolio Styles
   Dark graphite palette, mono metadata labels, one
   amber accent. Built to feel like the corporate and
   tech documentary work it holds.
   ============================================ */

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

:root {
  /* Palette — graphite, not black */
  --bg: #0f1113;
  --bg-2: #14171a;
  --card: #1a1e22;
  --card-hover: #20252a;
  --text: #e9e7e2;
  --dim: #9c9e9a;
  --muted: #6a6d68;
  --border: #2a2f34;
  --line: rgba(233, 231, 226, 0.1);
  --ink-soft: rgba(233, 231, 226, 0.74);
  --ink-faint: rgba(233, 231, 226, 0.45);
  --cream: #f1efea;         /* text on media */
  --cream-soft: rgba(241, 239, 234, 0.78);
  --accent: #d9a441;        /* amber signal, used sparingly */
  --accent-soft: rgba(217, 164, 65, 0.16);

  --sans: 'DM Sans', -apple-system, sans-serif;
  --serif: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;  /* display face */
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;        /* metadata labels */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --g: clamp(3px, 0.1875rem + 0.1vw, 5px);
  --px: clamp(16px, 1rem + 1vw, 40px);
  --radius: 6px;

  /* Fluid spacing scale */
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);

  /* Aliases for sub-pages (pages.css) */
  --font-serif: var(--serif);
  --font-sans: var(--sans);
  --text-primary: var(--text);
  --text-secondary: var(--dim);
  --text-muted: var(--muted);
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-2);
  --bg-card: var(--card);
  --bg-card-hover: var(--card-hover);
  --border-light: var(--border);
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fluid typography scale */
  --text-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.5rem + 3.75vw, 3.5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
ul { list-style: none; }
img { max-width: 100%; display: block; }
.reg { font-size: 0.5em; vertical-align: super; font-style: normal; }
.registered { font-size: 0.5em; vertical-align: super; font-style: normal; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--px);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

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

/* --- Metadata labels: mono, uppercase, documentary slate style --- */
.section-label,
.hero__eyebrow,
.bento__card-tag,
.bento__stats-label,
.bento__more-label,
.intro__label,
.cta__label,
.footer__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label {
  color: var(--muted);
  margin-bottom: 8px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ============================================
   Nav — thin bar, edge to edge
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 17, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--px);
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity 0.2s;
}
.nav__logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__logo:hover { opacity: 0.7; }

.nav__logo-role {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}

/* Role label collides with centered nav links on tablets */
@media (max-width: 1024px) {
  .nav__logo-role { display: none; }
}

.nav__links {
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav__links a {
  display: inline-block;
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin-top: 2px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -12px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

/* ============================================
   Hero — theater. The reel ("Sonder") fills the first
   screen and plays with sound. It is sticky, so the rest
   of the page rises over it on scroll; --hero-p is the
   scroll progress (0 at the top, 1 once covered) that
   js/hero.js writes.
   ============================================ */
.hero {
  --hero-p: 0;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;   /* small viewport: no jump when the mobile URL bar collapses */
  min-height: 360px;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--cream);
}
.hero:focus { outline: none; }

.hero.hero--covered { visibility: hidden; }

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0b0c;
  transform: scale(calc(1 - 0.08 * var(--hero-p)));
  border-radius: calc(20px * var(--hero-p));
  will-change: transform;
  cursor: pointer;
  transition: opacity 0.14s ease;
}
.hero--switching .hero__media { opacity: 0; }

.hero__playlist,
.hero__warm { display: none; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1e22 0%, #0f1113 100%);
}

/* Poster fallback when nothing can play */
.hero--noplay .hero__video { display: none; }
.hero--noplay .hero__placeholder {
  background: #0f1113 url('../assets/videos/posters/sonder-1080.jpg') center / cover no-repeat;
}

/* Legibility for nav at the top and chrome at the bottom */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(15, 17, 19, 0.72) 0%, rgba(15, 17, 19, 0) 30%, rgba(15, 17, 19, 0) 58%, rgba(15, 17, 19, 0.6) 100%);
}

/* Extra shade behind the headline once it is revealed */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  background: linear-gradient(to bottom, rgba(15, 17, 19, 0) 35%, rgba(15, 17, 19, 0.72) 100%);
}
.hero--revealed .hero__shade { opacity: 1; }

/* Lights down as the page rises over the film */
.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--bg);
  opacity: calc(var(--hero-p) * 0.6);
}

/* Documentary slate: mono metadata along the top of the hero */
.hero__slate {
  position: absolute;
  top: 76px;
  left: var(--px);
  right: var(--px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-shadow: 0 1px 10px rgba(15, 17, 19, 0.7);
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.hero__slate > span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 1px;
}
.hero__counter {
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.hero__slate-title {
  color: var(--cream);
  pointer-events: auto;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.hero__slate-title::after { content: ' \2197' / ''; }
.hero__slate-title:hover { border-color: var(--cream); }

/* Credit line: who shot / edited the film on screen. Always visible while that film plays. */
.hero__credit {
  position: absolute;
  top: 104px;
  left: var(--px);
  right: var(--px);
  z-index: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(15, 17, 19, 0.7);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.hero--credited .hero__credit { opacity: 1; }
.hero--switching .hero__credit { opacity: 0; }

/* Headline: hidden on landing, rises in on the first scroll or tap */
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  z-index: 2;
  padding: 0 var(--px) clamp(132px, 18vh, 168px);
  transition: opacity 1s var(--ease) 0.15s, transform 1.1s var(--ease) 0.15s;
}
.hero:not(.hero--revealed) .hero__content,
.hero--text-hidden .hero__content {
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
}
.hero--text-hidden .hero__shade { opacity: 0; }
.hero--text-hidden .hero__btn-text { opacity: 1; color: var(--accent); }

.hero__eyebrow {
  color: var(--accent);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.98;
  max-width: 14ch;
  letter-spacing: -0.035em;
  color: var(--cream);
}

.hero__title em { font-style: normal; color: var(--dim); }

.hero__sub {
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--cream-soft);
  max-width: 520px;
}

/* --- Player chrome (hidden until js/hero.js is ready) --- */
.hero__sound,
.hero__bigplay,
.hero__controls,
.hero__scroll { display: none; }

/* Sound prompt */
.hero--ready .hero__sound {
  position: absolute;
  left: var(--px);
  bottom: 84px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border-radius: 999px;
  border: 1px solid rgba(241, 239, 234, 0.22);
  background: rgba(15, 17, 19, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(15, 17, 19, 0.6);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.2s, border-color 0.2s, visibility 0s 0s;
}
.hero__sound::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: hero-pulse 1.8s ease-in-out infinite;
}
.hero__sound:hover { background: rgba(15, 17, 19, 0.78); border-color: rgba(241, 239, 234, 0.4); }
.hero--sound-on .hero__sound::before { animation: none; }
.hero--sound-on .hero__sound,
.hero--blocked .hero__sound,
.hero--noplay .hero__sound { opacity: 0; transform: translateY(6px); pointer-events: none; visibility: hidden; transition-delay: 0s, 0s, 0s, 0s, 0.4s; }

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.55); }
  60% { box-shadow: 0 0 0 7px rgba(217, 164, 65, 0); }
}

/* Big play, shown when autoplay is blocked or the visitor paused */
.hero--ready .hero__bigplay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: rgba(15, 17, 19, 0.28);
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.hero__bigplay span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(241, 239, 234, 0.35);
  background: rgba(15, 17, 19, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.hero__bigplay svg { width: 30px; height: 30px; margin-left: 4px; }
.hero__bigplay:hover span { transform: scale(1.06); background: rgba(15, 17, 19, 0.65); }
.hero--blocked .hero__bigplay,
.hero--paused .hero__bigplay { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s, 0s; }
.hero--noplay .hero__bigplay { display: none; }

/* Previous / next film: bottom-right, clear of the headline on every width */
.hero__arrow { display: none; }
.hero--ready .hero__arrow {
  position: absolute;
  bottom: 84px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(241, 239, 234, 0.22);
  background: rgba(15, 17, 19, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.35s var(--ease), background 0.2s, border-color 0.2s;
}
.hero__arrow--prev { right: calc(var(--px) + 52px); }
.hero__arrow--next { right: var(--px); }
.hero__arrow:hover { opacity: 1; background: rgba(15, 17, 19, 0.72); border-color: rgba(241, 239, 234, 0.4); }
.hero--idle:not(.hero--paused) .hero__arrow { opacity: 0; pointer-events: none; }
.hero--noplay .hero__arrow,
.hero--single .hero__arrow { display: none; }
.hero__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scroll cue: appears once the opening hold has passed, gone once revealed */
.hero--ready .hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-shadow: 0 1px 8px rgba(15, 17, 19, 0.6);
  transition: opacity 0.5s var(--ease), color 0.2s, visibility 0s 0s;
}
.hero__scroll:hover { color: var(--cream); }
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--cream), transparent);
  animation: hero-scroll 2.4s var(--ease) infinite;
}
.hero--hold .hero__scroll,
.hero--revealed .hero__scroll { opacity: 0; pointer-events: none; visibility: hidden; transition-delay: 0.5s, 0s, 0.5s; }

@keyframes hero-scroll {
  0% { transform: scaleY(0); transform-origin: top; }
  48% { transform: scaleY(1); transform-origin: top; }
  52% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Control bar */
.hero--ready .hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--px) 16px;
  background: linear-gradient(to top, rgba(15, 17, 19, 0.7), rgba(15, 17, 19, 0));
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero--noplay .hero__controls { display: none; }

.hero__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s, background 0.2s;
}
.hero__btn:hover { opacity: 1; background: rgba(241, 239, 234, 0.1); }

.hero__btn:focus-visible,
.hero__sound:focus-visible,
.hero__scroll:focus-visible,
.hero__progress:focus-visible,
.hero__vol:focus-visible,
.hero__bigplay:focus-visible span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero__progress {
  flex: 1;
  display: flex;
  align-items: center;
  height: 24px;
  cursor: pointer;
  touch-action: none;
}
.hero__track {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(241, 239, 234, 0.22);
  transition: height 0.15s;
}
.hero__progress:hover .hero__track { height: 4px; }
.hero__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 2px;
  background: var(--cream);
}

.hero__time {
  flex: none;
  min-width: 82px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--cream-soft);
  text-shadow: 0 1px 8px rgba(15, 17, 19, 0.6);
}

.hero__vol-wrap {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 76px;
  height: 24px;
  margin: 0 6px;
  background: transparent;
  outline: none;
  cursor: pointer;
}
.hero__vol::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(241, 239, 234, 0.28);
}
.hero__vol::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(241, 239, 234, 0.28);
}
.hero__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}
.hero__vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}
.hero--vol-locked .hero__vol { display: none; }

/* Chrome auto-hides while playing; anything paused stays visible */
.hero--idle:not(.hero--paused) .hero__controls,
.hero--idle:not(.hero--paused) .hero__slate {
  opacity: 0;
  pointer-events: none;
}
.hero--idle:not(.hero--paused) .hero__controls { transform: translateY(6px); }
.hero--idle:not(.hero--paused) .hero__media { cursor: none; }

/* Fullscreen: just the film and its controls */
.hero--fullscreen { height: 100%; }
.hero--fullscreen .hero__media { transform: none; border-radius: 0; }
.hero--fullscreen .hero__content,
.hero--fullscreen .hero__scroll,
.hero--fullscreen .hero__dim,
.hero--fullscreen .hero__shade { display: none; }

/* Nav sits transparently over the film until the page scrolls */
.is-home .header { transition: border-color 0.3s, background 0.3s; }
.is-home .header:not(.scrolled):not(.menu-open) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.is-home .header:not(.scrolled):not(.menu-open) .nav__links a,
.is-home .header:not(.scrolled):not(.menu-open) .nav__logo {
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(15, 17, 19, 0.7);
}

/* Everything after the hero rides over it */
.page {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
@media (min-width: 601px) {
  .page {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media { transform: none; border-radius: 0; }
  .hero__sound::before,
  .hero__scroll::after { animation: none; }
  .hero__content,
  .hero__shade,
  .hero__controls,
  .hero__sound { transition: none; }
}

/* ============================================
   Bento — selected work grid (16:9 tiles)
   ============================================ */
.bento {
  padding: clamp(48px, 6vw, 88px) var(--px) 0;
}

.bento__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.bento__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.bento__title small {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 14px;
}

.bento__all {
  font-size: 0.9rem;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.bento__all:hover { color: var(--text); border-color: var(--text); }

.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
}

/* --- Card base: every media tile keeps a true 16:9 so nothing is cropped --- */
.bento__card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  min-height: 0;
  min-width: 0;
  background: var(--card);
  transition: transform 0.5s var(--ease);
  container-type: inline-size;
}

.bento__card:hover { transform: translateY(-2px); }

.bento__card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.8s var(--ease);
}
.bento__card:hover .bento__card-video { transform: scale(1.02); }

.bento__card-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 17, 19, 0.35) 0%, rgba(15, 17, 19, 0) 35%, rgba(15, 17, 19, 0.7) 100%);
  z-index: 2;
}

.bento__card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--cream-soft);
  z-index: 3;
}

.bento__card-index {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--cream-soft);
  z-index: 3;
}

.bento__card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  z-index: 3;
}

.bento__card-label span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bento__card-label small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--cream-soft);
  letter-spacing: 0;
}

/* Container query: adapt card content to card size */
@container (max-width: 280px) {
  .bento__card-index { display: none; }
  .bento__card-tag { font-size: 0.6875rem; top: 12px; left: 12px; }
  .bento__card-label { padding: 12px; }
  .bento__card-label span { font-size: 1.0625rem; }
}

/* --- Grid placement ---
   Row 1: feature (2 cols, 16:9) + stats
   Row 2: three 16:9 tiles
   Row 3: Nailor + "more work" tile                       */
.bento__card--feature    { grid-column: 1 / 3; grid-row: 1; }
.bento__card--recruiting { grid-column: 1; grid-row: 2; }
.bento__card--bad        { grid-column: 2; grid-row: 2; }
.bento__card--guardian   { grid-column: 3; grid-row: 2; }
.bento__card--nailor     { grid-column: 1; grid-row: 3; }
.bento__card--bedside     { grid-column: 2; grid-row: 3; }

.bento__stats {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
}

.bento__stats-label {
  color: var(--muted);
  margin-bottom: 14px;
}

.bento__stats-list p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.bento__stats-list p:first-child { color: var(--accent); }
.bento__stats-list p:first-child { border-top: 0; padding-top: 0; }

/* "More work" tile — everything else lives under Work */
.bento__more {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  transition: background 0.3s;
}
.bento__more:hover { background: var(--card-hover); }

.bento__more-label { color: var(--muted); }

.bento__more-list {
  display: flex;
  flex-direction: column;
}

.bento__more-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text);
}
.bento__more-list li:first-child { border-top: 0; }
.bento__more-list li span:last-child { font-family: var(--mono); color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 4px; }

.bento__more-cta {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   About strip — short intro under the grid
   ============================================ */
.intro {
  padding: clamp(72px, 9vw, 128px) var(--px) 0;
}

/* Two-column editorial block: identity on the left, statement on the right.
   Spans the same width as the project grid above it. */
.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.intro__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.intro__label {
  color: var(--muted);
  padding-top: 8px;
}

.intro__meta {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

.intro__meta span {
  display: block;
  color: var(--dim);
}

.intro__text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.375rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 34ch;
}

.intro__links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.intro__links a {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.intro__links a:hover { color: var(--text); border-color: var(--text); }

/* ============================================
   Call to action
   ============================================ */
.cta {
  padding: clamp(80px, 10vw, 140px) var(--px) 24px;
}

/* Full-width band: headline left, supporting copy and actions bottom-aligned on the right */
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 48px;
  row-gap: 18px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* On wide screens the headline is the taller column: sit the actions on its baseline */
@media (min-width: 1100px) {
  .cta__inner { align-items: end; }
}

.cta__label {
  grid-column: 1 / -1;
  color: var(--accent);
}

.cta__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.cta__text {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 44ch;
  margin-bottom: 28px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: background 0.25s, color 0.25s, opacity 0.25s;
}

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

.cta__btn--solid {
  background: var(--text);
  color: var(--bg);
}

.cta__btn--solid:hover { background: #ffffff; }

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 40px var(--px) 48px;
}

.faq__inner {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 48px;
}

.faq__heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 32px;
}

.faq__item { border-top: 1px solid var(--line); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

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

.faq__icon {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s var(--ease);
  opacity: 0.6;
  width: 22px;
  height: 22px;
}

.faq__item.active .faq__icon { transform: rotate(45deg); opacity: 1; }

.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__item.active .faq__answer { max-height: 300px; }

.faq__answer p {
  padding-bottom: 22px;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 68ch;
}

/* ============================================
   Footer — compact, one line of identity
   ============================================ */
.footer {
  margin-top: clamp(64px, 8vw, 112px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.footer__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--px);
}

.footer__nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s;
}
.footer__name:hover { opacity: 0.7; }

.footer__links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer__links a {
  display: inline-block;
  padding: 10px 2px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--dim);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px var(--px) 28px;
  border-top: 1px solid var(--line);
}

.footer__logo-big { display: none; }

.footer__meta {
  color: var(--muted);
  line-height: 1.8;
}

.footer__meta a { color: var(--dim); transition: color 0.2s; }
.footer__meta a:hover { color: var(--text); }

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.form-success {
  text-align: center;
  padding: 40px 0;
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-success p { color: var(--dim); font-size: 0.875rem; }

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 768px) {
  .hero--ready .hero__scroll { display: none; }

  .intro__inner { grid-template-columns: 1fr; gap: 28px; }
  .intro__side { gap: 12px; }
  .intro__label { padding-top: 0; }
  .intro__text { max-width: none; }

  .cta__inner { grid-template-columns: 1fr; row-gap: 20px; }
  .cta__title { max-width: none; }
  .cta__text { margin-bottom: 24px; }
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 56px);
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: none;
    z-index: 99;
  }

  .nav__links.open { display: flex; }
  .nav__logo-role { display: none; }
  .nav__links a {
    font-family: var(--serif);
    font-size: 1.5rem;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--text);
  }

  .hero__content { padding-bottom: clamp(120px, 16vh, 150px); }

  .bento__grid { grid-template-columns: 1fr 1fr; }

  .bento__card { grid-column: auto; grid-row: auto; }
  .bento__card--feature { grid-column: 1 / -1; }
  .bento__stats { grid-column: 1 / -1; grid-row: auto; min-height: 0; padding: 20px 24px; }
  .bento__stats-list p { font-size: 1.125rem; padding: 8px 0; }
  .bento__more { grid-column: auto; grid-row: auto; }

  .intro__inner { grid-template-columns: 1fr; gap: 16px; }

  .cta { padding-top: 72px; }
}

/* ============================================
   Responsive — Phone
   ============================================ */
@media (max-width: 480px) {
  .nav { height: 52px; }
  .nav__links { top: 52px; height: calc(100dvh - 52px); }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.5rem); }

  .bento__grid { grid-template-columns: 1fr; }
  .bento__head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .hero__slate { top: 68px; font-size: 0.625rem; }
  .hero__slate-meta { display: none; }
  .hero__credit { top: 92px; font-size: 0.625rem; }
  .hero--ready .hero__arrow { width: 38px; height: 38px; bottom: 70px; }
  .hero__arrow--prev { right: calc(var(--px) + 46px); }
  .hero__arrow svg { width: 16px; height: 16px; }
  .hero__content { padding-bottom: 118px; gap: 14px; }
  .hero--ready .hero__sound { bottom: 70px; padding: 10px 14px 10px 12px; font-size: 0.625rem; }
  .hero--ready .hero__controls { gap: 8px; padding: 10px var(--px) 12px; }
  .hero__time { min-width: 0; font-size: 0.625rem; }
  .hero__vol { display: none; }
  .hero__bigplay span { width: 68px; height: 68px; }
  .hero__sub { font-size: 0.9375rem; }
  .cta { padding-top: 56px; }
  .cta__title { font-size: var(--text-4xl); }

  .faq__inner { padding: 24px 20px; }
  .faq__item.active .faq__answer { max-height: 500px; }

  .footer { margin-top: 48px; }
  .footer__nav-row { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 10px 16px; }
  .footer__links a { font-size: 0.9375rem; padding: 12px 0; }
  .footer__meta { line-height: 2; }
  .bento__all { padding: 6px 0; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Responsive — Small iPhone (SE / Mini)
   ============================================ */
@media (max-width: 390px) {
  .hero__title { font-size: clamp(2.125rem, 11vw, 2.75rem); }
  .cta__title { font-size: clamp(2rem, 6vw, 2.5rem); }
  .faq__heading { font-size: clamp(2rem, 5vw, 2.5rem); }
  .faq__inner { padding: 20px 16px; }
}

/* ============================================
   Responsive — very narrow (320px)
   ============================================ */
@media (max-width: 340px) {
  :root { --px: 14px; }
  .hero__title { font-size: 2rem; }
  .bento__stats-list p { font-size: 1.0625rem; }
  .bento__more-cta { font-size: 1.125rem; }
}
