/* =========================================================================
   Manam Residences — scroll-scrub real-estate site
   Brand tokens mirror the parent app (src/app/globals.css): light "plaster"
   palette, Futura (headings) / Montserrat (body, labels), film grain overlay.
   Fonts are self-hosted: see fonts/fonts.css. Type scale tokens: type.css.
   ========================================================================= */

:root {
  --color-bg: #e8e7e3;     /* light plaster */
  --color-fg: #16130f;     /* near-black */
  --color-mute: #6c685f;   /* muted warm grey */
  --color-line: #d4d1ca;   /* hairline */
  --color-accent: #16130f;

  /* plaster panel + scrim washes */
  --plaster-panel: 232 231 227;   /* rgb of --color-bg, for alpha slabs */
  --plaster-hi: #f1f0ec;

  /* Font families and the type scale (--text-*, --track-*) live in type.css,
     shared with every other page. */

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: light;
}

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

html {
  /* Plaster lives on the root; content + footer paint over the fixed video. */
  background: var(--color-bg);
  scroll-behavior: auto;
}

body {
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection {
  background: var(--color-fg);
  color: var(--color-bg);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}

/* ---- Typography helpers --------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--color-mute);
}

.body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-fg);
  max-width: 42ch;
}

.text-balance {
  text-wrap: balance;
}

/* ---- Fixed video stage ---------------------------------------------------- */
.video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* The poster also paints behind the <video>, so the first frame shows as
     soon as the CSS loads: no grey flash before the poster, no blank gap if
     the element resets while the video starts decoding. */
  background: #cfcdc6 url("assets/poster.jpg?v=11") center / cover no-repeat;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* nudge footage toward the warm plaster palette so it reads as one piece */
  filter: saturate(0.92) contrast(1.02) brightness(1.02);
}

/* Plaster scrim — warm multiply tint + top/bottom gradients for legibility */
.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(var(--plaster-panel), 0.82) 0%,
      rgba(var(--plaster-panel), 0.28) 16%,
      rgba(var(--plaster-panel), 0.12) 42%,
      rgba(var(--plaster-panel), 0.22) 72%,
      rgba(var(--plaster-panel), 0.55) 100%
    ),
    radial-gradient(
      120% 80% at 50% 30%,
      rgba(var(--plaster-panel), 0) 40%,
      rgba(var(--plaster-panel), 0.35) 100%
    );
  mix-blend-mode: normal;
}

/* ---- Top progress hairline ----------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 50;
  background: rgba(22, 19, 15, 0.07);
}
.progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--color-fg);
}

/* ---- Fixed chrome: nav ---------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.1rem, 3vw, 2.4rem);
  pointer-events: none;
}
.site-nav > * {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
}
.wordmark-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.wordmark-logo {
  display: block;
  height: 64px;
  width: auto;
}

.site-menu {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.site-menu a {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--color-fg);
  opacity: 0.78;
  transition: opacity 0.4s var(--ease-out-expo);
}
.site-menu a:hover {
  opacity: 1;
}

/* "Contact us" pill beside the hamburger: slab-btn type on the toggle's dark
   chip, so it reads on the light hero and on bright frames alike. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-contact {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(22, 19, 15, 0.32);
  -webkit-backdrop-filter: blur(3px) saturate(1.1);
  backdrop-filter: blur(3px) saturate(1.1);
  box-shadow: 0 4px 14px -8px rgba(22, 19, 15, 0.5);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: var(--text-fine);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}
.nav-contact:hover {
  background: #ffffff;
  color: var(--color-fg);
}

/* ---- Menu toggle (hamburger) --------------------------------------------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 40px;
  padding: 0;
  /* subtle dark chip so the white bars read on the light hero / bright frames */
  background: rgba(22, 19, 15, 0.32);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(3px) saturate(1.1);
  backdrop-filter: blur(3px) saturate(1.1);
  box-shadow: 0 4px 14px -8px rgba(22, 19, 15, 0.5);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

/* ---- Full-screen overlay menu -------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease-out-expo), visibility 0.55s;
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}
.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.1rem, 3vw, 2.4rem);
}
.menu-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  color: var(--color-fg);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out-expo);
}
.menu-close:hover {
  transform: rotate(90deg);
}
.menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3.4vh, 2rem);
  padding-bottom: 6vh;
}
.menu-nav > a,
.menu-drop > summary {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: var(--track-caps);
  text-transform: uppercase; /* menu set like the headings: flat capitals */
  color: var(--color-fg);
}
.menu-nav > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}
.menu-nav > a:hover,
.menu-drop > summary:hover {
  color: var(--color-mute);
}
body.menu-open .menu-nav > * {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .menu-nav > :nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-nav > :nth-child(2) { transition-delay: 0.15s; }
body.menu-open .menu-nav > :nth-child(3) { transition-delay: 0.22s; }
body.menu-open .menu-nav > :nth-child(4) { transition-delay: 0.29s; }

/* Projects dropdown: the summary reads like the other links, with a small
   chevron that turns when open; the projects list under it, centred. */
.menu-drop {
  text-align: center;
}
.menu-drop > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  list-style: none;
  cursor: pointer;
}
.menu-drop > summary::-webkit-details-marker { display: none; }
.menu-drop > summary::after {
  content: "";
  width: 0.28em;
  height: 0.28em;
  margin-top: -0.12em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out-expo), margin 0.3s var(--ease-out-expo);
}
.menu-drop[open] > summary::after {
  margin-top: 0.14em;
  transform: rotate(-135deg);
}
.menu-drop-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.menu-drop-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 0.8rem;
}
.menu-drop-name {
  font-family: var(--font-display);
  font-size: calc(var(--text-h3) * 0.85);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--color-fg);
}
.menu-soon {
  font-family: var(--font-mono);
  font-size: var(--text-fine);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--color-mute);
}

/* Temporary review links (font trial), small and apart from the menu */
.menu-review {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 1.4rem;
  padding: 0 1.2rem clamp(1.4rem, 4vh, 2.4rem);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.menu-review-label {
  color: var(--color-mute);
}
.menu-review a {
  color: var(--color-fg);
  border-bottom: 1px solid currentColor;
}
.menu-review a:hover {
  color: var(--color-mute);
}
/* Lock background scroll while the menu is open */
body.menu-open {
  overflow: hidden;
}

/* ---- Chapter indicator ---------------------------------------------------- */
.chapter {
  position: fixed;
  right: clamp(1.1rem, 3vw, 2.4rem);
  bottom: clamp(1.1rem, 3vw, 2rem);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--color-fg);
}
.chapter-index {
  font-size: 13px;
}
.chapter-rule {
  width: 30px;
  height: 1px;
  background: var(--color-fg);
  opacity: 0.4;
}
.chapter-name {
  color: var(--color-mute);
}

/* ---- Scroll layer --------------------------------------------------------- */
#scroll-root {
  position: relative;
  z-index: 10;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 6vw, 6rem);
}

/* Hero */
.hero {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.hero .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 50% 46%,
    rgba(var(--plaster-panel), 0.6) 0%,
    rgba(var(--plaster-panel), 0) 70%
  );
}
/* Two-tone studio tagline (mirrors the previous site's hero) */
.hero-title {
  position: relative;
  max-width: none;
  margin: 0 auto;
  font-size: calc(var(--text-h1) * 0.72 + 3px);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: capitalize;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(22, 19, 15, 0.3);
}
.t-fg { color: var(--color-fg); }
.t-mute { color: var(--color-mute); }
/* Hero tagline: fully white + capitalized over the footage */
.hero-title .t-fg { color: #ffffff; }
.hero-title .t-mute { color: #ffffff; }

/* Hero "View all plots" link, bottom-left */
.hero-link {
  position: absolute;
  z-index: 1;
  bottom: clamp(2rem, 6vh, 3.2rem);
  left: clamp(1.2rem, 6vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: var(--track-small);
  color: #ffffff;
  transition: opacity 0.4s var(--ease-out-expo);
}
.hero-link:hover { opacity: 0.6; }

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: clamp(1.6rem, 5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--text-fine);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap; /* keep the line on one row; the cue is shrink-to-fit */
  color: rgba(255, 255, 255, 0.9);
}
/* A white line that draws downward from the label, then fades, on a loop */
.scroll-cue-line {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0));
  transform-origin: top;
  animation: cue 2.2s var(--ease-in-out-quart) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Beats */
.beat {
  align-items: center;
}
.beat-left { justify-content: flex-start; }
.beat-right { justify-content: flex-end; }
.beat-center { justify-content: center; text-align: center; }

/* Frosted plaster slab — keeps text legible over any footage, on-brand */
.slab {
  position: relative;
  max-width: 40ch;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  /* Whole card sits back at 75% so the footage reads through it. Note this
     dims the copy too — if it reads washed out, drop this line and lower the
     background alpha below instead (keeps text at full contrast). */
  opacity: 0.75;
  background: rgba(22, 19, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 30px 80px -40px rgba(22, 19, 15, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
}
.slab-wide {
  max-width: 52ch;
}
/* White copy inside the dark frosted slabs (legible over the footage) */
.slab .kicker {
  color: rgba(255, 255, 255, 0.7);
}
.slab .statement-title {
  color: #ffffff;
}
.slab .statement-sub {
  color: rgba(255, 255, 255, 0.82);
}
.slab .kicker {
  margin-bottom: 1rem;
}

/* Project blocks inside the Our Work slab (Kishkindha, upcoming) */
.slab-projects {
  display: grid;
  gap: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  padding-top: clamp(1.2rem, 2vw, 1.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
@media (min-width: 640px) {
  .slab-projects { grid-template-columns: 1fr 1fr; }
}
/* Each project is a column; its button sits at the foot, so the two
   buttons line up even when one description wraps to more lines */
.slab-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.slab-project .slab-btn {
  margin-top: auto;
}
.slab-project-name {
  display: block;
  font-size: calc(var(--text-h3) - 2px);
  color: #ffffff;
  margin-bottom: 0.3rem;
}
.slab-project-desc {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}
/* Pill button inside slabs */
.slab-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: var(--text-fine);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}
.slab-btn:hover {
  background: #ffffff;
  color: var(--color-fg);
}
/* Not clickable yet, but drawn at full white like the live buttons */
.slab-btn-disabled {
  pointer-events: none;
}
.beat-title {
  font-size: var(--text-h2);
  margin-bottom: 1.1rem;
}
.beat-center .body {
  margin-left: auto;
  margin-right: auto;
}

/* Stats row */
.stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.4rem);
  margin: 0.6rem 0 1.6rem;
}
.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.stat-num {
  font-size: var(--text-stat);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-fine);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-mute);
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--color-fg);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}
.cta:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

/* ---- Approach statement (over the build footage) -------------------------- */
.statement-title {
  font-size: calc(var(--text-h2) * 0.85 - 2px);
  line-height: 1.1;
  margin-bottom: 1.1rem;
  /* pretty, not balance: balance broke the title into short lines that left
     the right half of the slab empty above a full-width paragraph */
  text-wrap: pretty;
}
.statement-sub {
  font-size: calc(var(--text-lead) - 1px);
  color: var(--color-mute);
  max-width: 46ch;
}

/* Quiet film stretch — pure footage, gives clips 04–05 room to play */
.film-quiet {
  min-height: 175vh;
  padding: 0;
}

/* ---- Available plots (opaque plaster, covers the held final frame) --------- */
.plots {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.2rem, 6vw, 6rem) clamp(4rem, 9vh, 8rem);
}
.plots-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-line);
}
.plots-title {
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
}
.plot-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.plot-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.5s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
}
.plot-card:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--color-mute);
  transform: translateY(-3px);
}
.plot-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.plot-label {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1;
}
.plot-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32em 0.6em;
  border: 1px solid var(--color-line);
  white-space: nowrap;
}
.plot-card[data-status="available"] .plot-status {
  color: var(--color-fg);
  border-color: var(--color-fg);
}
.plot-card[data-status="reserved"] .plot-status {
  color: var(--color-mute);
}
.plot-card[data-status="sold"] {
  opacity: 0.62;
}
.plot-card[data-status="sold"] .plot-status {
  color: var(--color-mute);
}
.plot-card[data-status="sold"] .plot-price {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.plot-sector {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mute);
}
.plot-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-fg);
}
.plot-price {
  font-size: 13px;
}

/* ---- Team (opaque plaster, opens after the video scroll) ------------------ */
.team {
  position: relative;
  z-index: 10;
  background: #ffffff;
  padding: 0 0 clamp(3rem, 7vh, 6rem);
}

/* Photo frames — the <img> fills and crops to the frame in both places */
.team-hero-photo img,
.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Group photo banner, then the intro card just below the people (it only
   overlaps the photo's bottom edge, so no one is hidden behind it) */
.team-hero {
  position: relative;
  margin-bottom: clamp(4rem, 9vh, 6rem);
}
.team-hero-photo {
  position: relative;
  /* The photo's own shape (2400x1172 = 48.83vw tall), so wide screens
     (27-inch, 2560px) show everyone whole instead of a fixed 840px crop
     that cut them at the chest. Capped at 88vh for short windows. */
  height: max(420px, min(48.83vw, 88vh));
  overflow: hidden;
}
/* When the window is short and the photo must be trimmed, take it mostly
   from the empty grey headroom above the heads (people start ~28% down),
   keeping room for the title, rather than from the bodies. */
.team-hero-photo img {
  object-position: 50% 30%;
}
.team-hero-label {
  position: absolute;
  top: clamp(0.8rem, 2.6vh, 1.8rem);
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  font-size: calc(var(--text-display) * 0.72);
  line-height: 1;
  text-shadow: 0 2px 30px rgba(22, 19, 15, 0.35);
  pointer-events: none;
}
.team-hero-card {
  position: relative;
  z-index: 1;
  margin: clamp(-72px, -5vw, -40px) auto 0;
  width: min(92vw, 640px);
  padding: clamp(1.8rem, 3.4vw, 2.8rem) clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 3.6vw, 3rem);
  text-align: center;
  color: #ffffff;
  background: rgba(22, 19, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 40px 90px -50px rgba(22, 19, 15, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
}
/* <picture> wraps the photo (phones get team-group-mobile-2.webp); let the
   <img> size against the frame as before */
.team-hero-photo picture {
  display: contents;
}
/* Phones: the narrower mobile composite at its own shape (nobody cropped),
   the title over its grey headroom as on desktop */
@media (max-width: 720px) {
  .team-hero-photo {
    height: auto;
  }
  .team-hero-photo img {
    height: auto;
  }
  .team-hero-label {
    top: clamp(1rem, 6vw, 1.8rem);
    font-size: calc(var(--text-h2) * 0.75);
  }
  .team-hero-card {
    margin-top: -24px;
  }
}
.team-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(var(--text-h2-caps) * 0.85 - 2px);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.team-hero-title em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 0.12em;
}
.team-hero-title strong {
  font-weight: 400;
}
.team-hero-text {
  font-family: var(--font-sans);
  font-size: calc(var(--text-body-sm) - 1px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 0 auto clamp(1.4rem, 2.4vw, 1.9rem);
}
.team-about {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}
.team-about:hover {
  background: #ffffff;
  color: var(--color-fg);
}

/* Members slider (mirrors hassellteamaz.com): horizontal scroll-snap track,
   prev/next arrows below. */
.team-slider {
  position: relative;
}
.team-carousel {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(1.2rem, 6vw, 6rem);
  padding: 0.4rem clamp(1.2rem, 6vw, 6rem) 1.2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.team-carousel::-webkit-scrollbar {
  display: none;
}
/* Short teams: centre the row when every card already fits */
.team-carousel.is-static {
  justify-content: center;
}
.team-card {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 320px);
  scroll-snap-align: start;
}
.team-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}
.team-open:focus-visible {
  outline: 1px solid var(--color-fg);
  outline-offset: 6px;
}
.team-photo {
  align-self: stretch; /* full card width despite the centred column */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s var(--ease-out-expo);
}
.team-open:hover .team-photo,
.team-open:focus-visible .team-photo {
  transform: translateY(-4px);
  filter: saturate(1.08) brightness(0.98);
}
/* Portrait: black-shirt photo, the white-shirt one fades in on hover/focus */
.team-photo-swap {
  position: relative;
  background: #8e8e8e; /* the shoot's backdrop grey, while images load */
}
.team-photo-swap img {
  position: absolute;
  inset: 0;
}
.team-photo-hover {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}
.team-open:hover .team-photo-hover,
.team-open:focus-visible .team-photo-hover {
  opacity: 1;
}
/* Initials tile — stands in for a headshot until real photos arrive. Dark
   card on a grey base, matching the About/Team page strip (pages.css). */
.team-initials {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 0 10px 10px;
  background:
    linear-gradient(180deg, #b9b8b6, #a4a3a1) bottom / 100% 18% no-repeat,
    linear-gradient(180deg, #221f1b 0%, #16130f 100%);
  color: rgba(244, 242, 238, 0.86);
  font-size: var(--text-initials);
  letter-spacing: 0.04em;
}
.team-name {
  font-size: var(--text-name);
  line-height: 1.1;
}
.team-role {
  font-family: var(--font-mono);
  line-height: 1.5;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--color-mute);
}
.team-arrows {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
}
.team-arrows[hidden] {
  display: none;
}
.team-arrow {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--color-fg);
  border-radius: 999px;
  background: none;
  color: var(--color-fg);
  cursor: pointer;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo),
    opacity 0.4s var(--ease-out-expo);
}
.team-arrow:hover:not(:disabled) {
  background: var(--color-fg);
  color: var(--color-bg);
}
.team-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 720px) {
  .team-card {
    width: 68vw;
  }
}

/* ---- FAQ (homepage, after the team) ---------------------------------------
   Heading + intro on the left, a native <details> accordion on the right;
   stacked under 920px. Black band, white text. */
.faq {
  position: relative;
  background: #000;
  color: #ffffff;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 6vw, 6rem);
}
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}
.faq-head {
  align-self: start;
  position: sticky;
  top: clamp(5rem, 12vh, 7rem);
}
.faq-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(var(--text-h2-caps) * 0.85 - 2px);
  line-height: 1.15;
  margin: 1rem 0 1.2rem;
}
.faq-head .kicker {
  color: rgba(255, 255, 255, 0.6);
}
.faq-intro {
  font-size: var(--text-body);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40ch;
}
.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.35rem 2.6rem 1.35rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
/* Plus that turns into a minus when open */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 14px;
  height: 1.4px;
  background: #ffffff;
  transition: transform 0.4s var(--ease-out-expo);
}
.faq-item summary::after {
  transform: rotate(90deg);
}
.faq-item[open] summary::after {
  transform: rotate(0deg);
}
.faq-item summary:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 4px;
}
.faq-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  color: rgba(255, 255, 255, 0.55);
}
.faq-q {
  font-family: var(--font-sans);
  font-size: var(--text-qa);
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  transition: color 0.3s var(--ease-out-expo);
}
.faq-item summary:hover .faq-q {
  color: rgba(255, 255, 255, 0.65);
}
.faq-a {
  padding: 0 0 1.6rem calc(1.2rem + 2.2ch);
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 68ch;
}
.faq-a p + p,
.faq-a p + ol,
.faq-a ol + p {
  margin-top: 0.85em;
}
.faq-a ol {
  padding-left: 1.2em;
}
.faq-a li + li {
  margin-top: 0.5em;
}
.faq-a strong {
  font-weight: 600;
}
@media (max-width: 920px) {
  .faq-inner {
    grid-template-columns: 1fr;
  }
  .faq-head {
    position: static;
  }
}
@media (max-width: 720px) {
  .faq-a {
    padding-left: 0;
  }
}

/* ---- Film grain overlay (mirrors parent app) ------------------------------ */
.grain::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.32;
  mix-blend-mode: multiply;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-2%, 1%); }
  50%      { transform: translate(1%, -2%); }
  75%      { transform: translate(2%, 2%); }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 920px) {
  .plot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wordmark-name { display: none; }
  .site-menu { gap: 1rem; }
  .plot-grid { grid-template-columns: 1fr; }
  .beat-left, .beat-right { justify-content: center; }
  .slab { max-width: 92vw; }
  .stats { gap: 1.3rem; }
  .film-quiet { min-height: 130vh; }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .grain::after,
  .scroll-cue-line {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  /* JS also disables Lenis + scrub smoothing and reveals content immediately. */
}
