/* ===========================================================
   HOPE — Project Page · /work/[slug]
   Vanilla, mobile-first, RTL-aware.
   Tokens locked from Pass 7 v2 design bundle.
   =========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --warm-black: #0A0A0A;
  --bg:         #050505;
  --off-white:  #F4F2EE;
  --accent:     #E5462A;

  --hairline:   rgba(244, 242, 238, 0.18);
  --inner-glow: inset 0 1px 0 rgba(244, 242, 238, 0.22);
  --shadow:     0 8px 32px rgba(0, 0, 0, 0.32);

  /* Spacing scale */
  --s-04: 4px;  --s-08: 8px;  --s-12: 12px; --s-16: 16px;
  --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px;

  /* Radius */
  --r-tile: 8px; --r-card: 12px; --r-glass: 16px; --r-modal: 24px; --r-pill: 999px;

  /* Type */
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-ar:   "IBM Plex Sans Arabic", "Inter", sans-serif;

  /* Container */
  --gutter: 20px;
  --max-content: 1440px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 64px; }
}

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

html, body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

html[lang="ar"] body { font-family: var(--font-ar); }

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--off-white); }

/* ---------- TYPE ---------- */
.mono { font-family: var(--font-mono); }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.45);
}
@media (min-width: 768px) { .section-label { font-size: 11px; } }

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--bleed-mobile { padding-inline: 0; }
@media (min-width: 768px) { .container--bleed-mobile { padding-inline: var(--gutter); } }

main > section { padding-block: var(--s-48); }
@media (min-width: 768px) { main > section { padding-block: var(--s-64); } }
@media (min-width: 1024px) { main > section { padding-block: var(--s-96); } }

/* ---------- TOP NAV ---------- */
#nav-sentinel { position: absolute; top: 0; left: 0; height: 1px; width: 1px; }

.nav {
  position: fixed;
  top: var(--s-16);
  inset-inline: var(--s-16);
  height: 48px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-12);

  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  z-index: 50;

  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease,
              backdrop-filter 220ms ease;
}

.nav[data-scrolled="true"] {
  background: rgba(244, 242, 238, 0.08);
  border-color: var(--hairline);
  box-shadow: var(--inner-glow), 0 4px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

@media (min-width: 768px) {
  .nav {
    top: var(--s-24);
    inset-inline: var(--s-24);
    height: 56px;
    padding: 0 22px;
    gap: var(--s-24);
  }
}

.nav__brand {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  z-index: 1;
}

.nav__logo {
  display: block;
  height: 32px;
  width: auto;
}
@media (min-width: 768px) { .nav__logo { height: 36px; } }
@media (min-width: 1024px) { .nav__logo { height: 38px; } }

.nav__dot {
  width: 5px; height: 5px;
  background: var(--accent);
  display: inline-block;
}
@media (min-width: 768px) { .nav__dot { width: 6px; height: 6px; } }

.nav__links {
  display: none;
  gap: 22px;
  font-size: 13px;
  color: rgba(244, 242, 238, 0.7);
  letter-spacing: -0.005em;
  margin-inline-start: var(--s-04);
}
@media (min-width: 768px) {
  .nav__links { display: flex; flex: 1; }
}

.nav__links a { transition: color 180ms ease; }
.nav__links a:hover { color: var(--off-white); }
.nav__links a.is-current { color: var(--off-white); }

.nav__lang {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(244, 242, 238, 0.7);
  border: 1px solid rgba(244, 242, 238, 0.18);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  display: inline-flex;
  gap: 4px;
  align-items: center;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav__lang:hover { color: var(--off-white); border-color: rgba(244, 242, 238, 0.4); }
.nav__lang-sep { opacity: 0.5; }
.nav__lang-current { color: var(--off-white); }

.nav__menu {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: rgba(244, 242, 238, 0.06);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.nav__menu span {
  display: block; width: 12px; height: 1px; background: var(--off-white);
}
@media (min-width: 768px) { .nav__menu { display: none; } }

/* ---------- MENU OVERLAY (mobile) ---------- */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 49;
  display: flex; align-items: center; justify-content: center;
  animation: menu-in 280ms ease-out;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-overlay__links {
  display: flex; flex-direction: column; gap: var(--s-32);
  font-size: 32px; font-weight: 500; letter-spacing: -0.025em;
  text-align: center;
}
.menu-overlay__links a { color: var(--off-white); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 56.25vw;        /* 16:9 mobile fallback */
  max-height: 90vh;
  min-height: 360px;
  overflow: hidden;
  background: var(--warm-black);
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .hero { height: 56.25vw; max-height: 100vh; min-height: 540px; }
}

main > section.hero { padding-block: 0; }

.hero__media { position: absolute; inset: 0; }

.hero__fallback {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(244, 242, 238, 0.04) 0 8px, rgba(244, 242, 238, 0.02) 8px 16px),
    linear-gradient(160deg, #3a1410 0%, #1a0a08 60%, #050505 100%);
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__vimeo {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100%, calc(56.25vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__video:not([data-ready]) { opacity: 0; }
.hero__video[data-ready] { opacity: 1; transition: opacity 600ms ease; }

.hero__grad {
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 240px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero__mute {
  position: absolute;
  bottom: var(--s-16);
  inset-inline-end: var(--s-16);
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 180ms ease, transform 180ms ease;
}
@media (min-width: 768px) {
  .hero__mute { bottom: var(--s-24); inset-inline-end: var(--s-24); width: 44px; height: 44px; }
}
.hero__mute:hover { background: rgba(10, 10, 10, 0.7); transform: scale(1.04); }
.hero__mute-glyph { font-size: 14px; width: 16px; height: 16px; display: block; }
.hero__mute-slash {
  position: absolute;
  width: 20px; height: 1.5px;
  background: var(--off-white);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.hero__mute[aria-pressed="false"] .hero__mute-slash { display: none; }

/* ---------- PROJECT META ---------- */
.pmeta { padding-block: var(--s-32) var(--s-32); border-bottom: 1px solid rgba(244,242,238,0.08); }
@media (min-width: 768px) { .pmeta { padding-block: var(--s-48); } }
@media (min-width: 1024px) { .pmeta { padding-block: var(--s-64); } }

.pmeta .container {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
@media (min-width: 768px) {
  .pmeta .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--s-32);
  }
}

.pmeta__title {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.pmeta__cap {
  font-size: 12px;
  letter-spacing: -0.005em;
  color: rgba(244, 242, 238, 0.65);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .pmeta__cap { font-size: 13px; text-align: end; }
}
.pmeta__client {
  color: var(--off-white);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

/* ---------- CREDITS ---------- */
.credits { border-bottom: 1px solid rgba(244,242,238,0.08); }

.credits .section-label { display: block; margin-bottom: var(--s-16); }
@media (min-width: 1024px) { .credits .section-label { margin-bottom: var(--s-24); } }

.credits__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .credits__list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-64);
  }
}

.credits__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 10px 0;
  border-top: 1px solid rgba(244, 242, 238, 0.06);
  font-size: 13px;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) {
  .credits__row {
    grid-template-columns: 180px 1fr;
    padding: 14px 0;
    font-size: 15px;
  }
}

.credits__role { color: rgba(244, 242, 238, 0.55); }
.credits__name { color: var(--off-white); font-weight: 500; }

/* ---------- NARRATIVE ---------- */
.narrative { border-bottom: 1px solid rgba(244, 242, 238, 0.08); }

.narrative__body { max-width: 65ch; margin-inline: auto; }
.narrative .section-label { display: block; margin-bottom: var(--s-16); }
@media (min-width: 1024px) { .narrative .section-label { margin-bottom: var(--s-24); } }

.narrative__copy p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 242, 238, 0.9);
  margin-bottom: var(--s-12);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .narrative__copy p { font-size: 17px; margin-bottom: var(--s-16); }
}
.narrative__copy .lead { color: var(--off-white); font-weight: 500; }

html[lang="ar"] .narrative__body { text-align: start; }

/* ---------- BEFORE / AFTER ---------- */
.ba { border-bottom: 1px solid rgba(244, 242, 238, 0.08); }

.ba__label {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  align-items: center;
  margin-bottom: var(--s-16);
}
@media (min-width: 1024px) {
  .ba__label { margin-bottom: var(--s-24); }
}
.ba__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.4);
}

.ba__stage {
  --reveal: 55%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-tile);
  background: #0a0a0a;
  user-select: none;
  touch-action: pan-y;
}

.ba__before, .ba__after {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(244,242,238,0.04) 0 8px, rgba(244,242,238,0.02) 8px 16px),
    var(--tone, linear-gradient(160deg, #1a1a1a 0%, #0e0e0e 100%));
}
.ba__before { --tone: linear-gradient(160deg, #2c1f1a 0%, #100806 100%); }
.ba__after  {
  --tone: linear-gradient(160deg, #3a1410 0%, #5a1f12 60%, #0a0a0a 100%);
  clip-path: inset(0 0 0 var(--reveal));
}
html[dir="rtl"] .ba__after { clip-path: inset(0 var(--reveal) 0 0); }

.ba__tag {
  position: absolute;
  bottom: var(--s-16);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 242, 238, 0.12);
  z-index: 3;
}
.ba__tag--before { inset-inline-start: var(--s-16); }
.ba__tag--after  { inset-inline-end:   var(--s-16); }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: var(--reveal);
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
}
html[dir="rtl"] .ba__handle {
  inset-inline-start: auto;
  inset-inline-end: var(--reveal);
  transform: translateX(1px);
}

.ba__puck {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--reveal);
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--accent);
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  touch-action: none;
}
html[dir="rtl"] .ba__puck {
  inset-inline-start: auto;
  inset-inline-end: var(--reveal);
  transform: translate(50%, -50%);
}
.ba__puck::before, .ba__puck::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  border-style: solid; border-color: transparent;
}
.ba__puck::before {
  inset-inline-start: 8px;
  border-width: 4px 5px 4px 0;
  border-inline-end-color: var(--off-white);
}
.ba__puck::after {
  inset-inline-end: 8px;
  border-width: 4px 0 4px 5px;
  border-inline-start-color: var(--off-white);
}

/* ---------- WATCH NEXT ---------- */
.watch-next { border-bottom: 1px solid rgba(244, 242, 238, 0.08); }

.watch-next__label {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: var(--s-16);
}
@media (min-width: 1024px) { .watch-next__label { margin-bottom: var(--s-32); } }

.watch-next__num {
  color: rgba(244, 242, 238, 0.35);
  margin-inline-start: 14px;
  font-size: 0.42em;
  vertical-align: super;
  font-weight: 400;
  font-family: var(--font-mono);
}

.card-hero {
  display: block;
  width: 100%;
  max-width: 640px;
  border-radius: var(--r-glass);
  overflow: hidden;
  background: rgba(244, 242, 238, 0.12);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--inner-glow), var(--shadow);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.card-hero:hover { transform: translateY(-2px); box-shadow: var(--inner-glow), 0 12px 40px rgba(0,0,0,0.42); }

.card-hero__poster {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(244, 242, 238, 0.04) 0 8px, rgba(244, 242, 238, 0.02) 8px 16px),
    linear-gradient(150deg, #1f2733 0%, #0a0e14 100%);
  position: relative;
}
.card-hero__body {
  padding: var(--s-16) var(--s-16);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-12);
}
@media (min-width: 768px) { .card-hero__body { padding: 18px 22px 20px; } }

.card-hero__name {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: 4px;
}
@media (min-width: 768px) { .card-hero__name { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 6px; } }
.card-hero__cap { font-size: 12px; color: rgba(244, 242, 238, 0.65); letter-spacing: -0.005em; }
@media (min-width: 768px) { .card-hero__cap { font-size: 13px; } }

.card-hero__arrow {
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  background: rgba(244, 242, 238, 0.06);
  border: 1px solid var(--hairline);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 12px;
  transition: transform 180ms ease;
}
@media (min-width: 768px) {
  .card-hero__arrow { width: 32px; height: 32px; font-size: 14px; }
}
.card-hero:hover .card-hero__arrow { transform: translateX(3px); }
html[dir="rtl"] .card-hero__arrow { transform: scaleX(-1); }
html[dir="rtl"] .card-hero:hover .card-hero__arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- MORE FROM HOPE ---------- */
.more__label {
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: var(--s-16);
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  .more__label {
    font-size: 28px;
    letter-spacing: -0.02em;
    padding-inline: 0;
    margin-bottom: var(--s-24);
  }
}

.more__grid {
  display: flex;
  gap: var(--s-12);
  overflow-x: auto;
  padding: 0 var(--gutter) var(--s-24);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.more__grid::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .more__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-16);
    overflow: visible;
    padding: 0;
  }
}
@media (min-width: 1024px) {
  .more__grid { grid-template-columns: repeat(4, 1fr); }
}

.scard {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--r-glass);
  overflow: hidden;
  background: rgba(244, 242, 238, 0.12);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--inner-glow), var(--shadow);
  display: block;
  transition: transform 240ms ease;
}
@media (min-width: 768px) { .scard { flex: 1; } }
.scard:hover { transform: translateY(-2px); }

.scard__poster {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(244, 242, 238, 0.04) 0 6px, rgba(244, 242, 238, 0.02) 6px 12px),
    var(--tone, linear-gradient(150deg, #1a1a1a 0%, #0a0a0a 100%));
}
.scard__body {
  padding: var(--s-12) var(--s-16) var(--s-16);
  display: flex;
  justify-content: space-between;
  gap: var(--s-08);
}
.scard__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 3px;
}
@media (min-width: 768px) { .scard__name { font-size: 14px; letter-spacing: -0.015em; margin-bottom: 4px; } }
.scard__cap { font-size: 10px; color: rgba(244, 242, 238, 0.6); }
@media (min-width: 768px) { .scard__cap { font-size: 11px; letter-spacing: -0.005em; } }

.scard__arrow {
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  background: rgba(244, 242, 238, 0.06);
  border: 1px solid var(--hairline);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 10px;
}
@media (min-width: 768px) { .scard__arrow { width: 26px; height: 26px; font-size: 12px; } }
html[dir="rtl"] .scard__arrow { transform: scaleX(-1); }

/* ---------- FLOATING PILL ---------- */
.pill {
  position: fixed;
  bottom: var(--s-24);
  inset-inline-end: var(--s-24);
  height: 48px;
  padding: 0 18px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-08);
  border-radius: var(--r-pill);
  background: rgba(244, 242, 238, 0.18);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: var(--inner-glow), var(--shadow);
  color: var(--off-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  z-index: 40;
  transition: transform 320ms cubic-bezier(.4,.0,.2,1), opacity 320ms ease;
}
@media (min-width: 768px) {
  .pill {
    bottom: var(--s-32);
    inset-inline-end: var(--s-32);
    height: 52px;
    padding: 0 22px 0 18px;
    font-size: 14px;
  }
}
.pill:hover { transform: translateY(-2px); }
.pill--hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

.pill__arrow {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--off-white);
  font-size: 11px;
}

html[dir="rtl"] .pill__arrow { transform: scaleX(-1); }

/* ---------- FOOTER ---------- */
.site-footer {
  padding-block: var(--s-48) var(--s-96);
  border-top: 1px solid rgba(244, 242, 238, 0.06);
  margin-top: var(--s-48);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.4);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
body[data-page="home"] { background: var(--warm-black); }

.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--warm-black);
}

.home-hero__slides { position: absolute; inset: 0; }

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}
.home-hero__slide[data-active="true"] { opacity: 1; z-index: 1; }

.home-hero__slide::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px),
    radial-gradient(at 50% 50%, transparent 30%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.home-hero__bg {
  position: absolute; inset: 0;
  background: var(--tone, linear-gradient(135deg, #1c1812 0%, #0a0a0a 50%, #15110d 100%));
}
.home-hero__vimeo {
  position: absolute;
  top: 50%; left: 50%;
  /* cover-style fit: 16:9 video filling any viewport */
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0;
  z-index: 1;
  pointer-events: none;
}

.home-hero__caption {
  position: absolute;
  bottom: var(--s-24);
  inset-inline-start: var(--s-24);
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-tile);
  box-shadow: var(--inner-glow), 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 5;
  min-width: 220px;
  display: block;
  transition: transform 220ms ease;
}
@media (min-width: 768px) {
  .home-hero__caption { bottom: var(--s-32); inset-inline-start: var(--s-32); padding: 16px 20px; }
}
.home-hero__caption:hover { transform: translateY(-2px); }
.home-hero__title { font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; color: var(--off-white); font-weight: 500; }
@media (min-width: 768px) { .home-hero__title { font-size: 18px; } }
.home-hero__client { font-size: 13px; color: rgba(244, 242, 238, 0.8); margin-top: 4px; }
@media (min-width: 768px) { .home-hero__client { font-size: 14px; } }
.home-hero__year {
  font-size: 11px; color: rgba(244, 242, 238, 0.6);
  margin-top: 6px; font-family: var(--font-mono);
}
.home-hero__caption .home-hero__arrow {
  position: absolute;
  inset-inline-end: 12px; top: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 180ms ease;
}
.home-hero__caption:hover .home-hero__arrow { opacity: 1; }
html[dir="rtl"] .home-hero__caption .home-hero__arrow { transform: scaleX(-1); }

/* Hero progress dots */
.home-hero__dots {
  position: absolute;
  bottom: var(--s-24);
  inset-inline-end: var(--s-24);
  display: flex;
  gap: 6px;
  z-index: 5;
}
@media (min-width: 768px) {
  .home-hero__dots { bottom: var(--s-32); inset-inline-end: 96px; }
}
.home-hero__dot {
  width: 24px; height: 2px;
  background: rgba(244, 242, 238, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease;
}
.home-hero__dot[data-active="true"] { background: var(--accent); }
.home-hero__dot:hover { background: rgba(244, 242, 238, 0.55); }

/* Marquee */
.marquee {
  padding-block: var(--s-48) var(--s-32);
  border-top: 1px solid rgba(244, 242, 238, 0.06);
}
.marquee__head {
  font-size: 13px;
  color: rgba(244, 242, 238, 0.6);
  margin-bottom: var(--s-24);
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { .marquee__head { font-size: 14px; } }

.marquee__viewport {
  position: relative;
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
}
.marquee__viewport::before, .marquee__viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee__viewport::before { inset-inline-start: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee__viewport::after  { inset-inline-end:  0; background: linear-gradient(to left, var(--bg), transparent); }
html[dir="rtl"] .marquee__viewport::before { background: linear-gradient(to left,  var(--bg), transparent); }
html[dir="rtl"] .marquee__viewport::after  { background: linear-gradient(to right, var(--bg), transparent); }

.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  flex: none;
  animation: marquee-scroll 38s linear infinite;
  padding-inline-start: 64px;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
html[dir="rtl"] .marquee__track { animation-name: marquee-scroll-rtl; }
@keyframes marquee-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

.marquee__logo {
  flex: none;
  color: rgba(244, 242, 238, 0.8);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-caps: all-small-caps;
}
.marquee__logo--serif { font-family: "Times New Roman", serif; font-style: italic; letter-spacing: 0; }
.marquee__logo--mono  { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.marquee__logo--bold  { font-weight: 700; letter-spacing: -0.04em; font-size: 26px; font-variant-caps: normal; }

/* About teaser */
.about-teaser {
  padding-block: var(--s-64) var(--s-64);
  border-top: 1px solid rgba(244, 242, 238, 0.06);
  text-align: center;
}
@media (min-width: 1024px) { .about-teaser { padding-block: var(--s-96); } }
.about-teaser__body {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(244, 242, 238, 0.9);
  max-width: 720px;
  margin: 0 auto var(--s-24);
  letter-spacing: -0.005em;
}
@media (min-width: 768px) { .about-teaser__body { font-size: 24px; margin-bottom: var(--s-32); } }

.about-teaser__link {
  font-size: 15px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (min-width: 768px) { .about-teaser__link { font-size: 16px; } }
html[dir="rtl"] .about-teaser__link { transform: none; }

/* Site footer (full) */
.site-footer--full {
  background: var(--warm-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--s-48) 0 0;
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--off-white);
}
@media (min-width: 768px) { .site-footer--full { padding-top: var(--s-64); } }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-32);
  padding-bottom: var(--s-48);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-48); padding-bottom: var(--s-48); }
}

.site-footer__col-h {
  font-size: 13px;
  color: rgba(244, 242, 238, 0.6);
  margin-bottom: var(--s-12);
}
@media (min-width: 768px) { .site-footer__col-h { font-size: 14px; margin-bottom: var(--s-16); } }

.site-footer__col a, .site-footer__col span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 242, 238, 0.85);
}
@media (min-width: 768px) { .site-footer__col a, .site-footer__col span { font-size: 16px; } }
.site-footer__col a:hover { color: var(--off-white); }

.site-footer__icons { display: flex; gap: 14px; margin-top: 4px; }
.site-footer__icon {
  width: 24px; height: 24px;
  border: 1px solid rgba(244, 242, 238, 0.4);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(244, 242, 238, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
}
.site-footer__icon:hover { color: var(--off-white); border-color: rgba(244, 242, 238, 0.7); }

.site-footer__strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(244, 242, 238, 0.7);
  position: relative;
}
.site-footer__made {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(244, 242, 238, 0.4);
}
html[dir="rtl"] .site-footer__made { transform: translateX(50%); }

@media (max-width: 640px) {
  .site-footer__made { display: none; }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-about {
  padding-block: var(--s-48) var(--s-32);
}
@media (min-width: 1024px) { .team-about { padding-block: var(--s-96) var(--s-48); } }

.team-about__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-16);
}

.team-about__headline {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: var(--s-16);
  max-width: 1000px;
}
@media (min-width: 1024px) { .team-about__headline { margin-bottom: var(--s-24); } }

.team-about__body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 242, 238, 0.85);
  max-width: 720px;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) { .team-about__body { font-size: 17px; } }

/* Filter chips */
.chip-row {
  position: sticky;
  top: 80px;
  z-index: 20;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding-block: var(--s-12);
  border-block: 1px solid rgba(244, 242, 238, 0.06);
  margin-bottom: var(--s-24);
}
.chip-row__inner {
  display: flex;
  gap: var(--s-08);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row__inner::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: rgba(244, 242, 238, 0.75);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
@media (min-width: 768px) { .chip { font-size: 13px; padding: 9px 16px; } }
.chip:hover { color: var(--off-white); border-color: rgba(244, 242, 238, 0.4); }
.chip[aria-pressed="true"] {
  color: var(--warm-black);
  background: var(--off-white);
  border-color: var(--off-white);
}
.chip-row__count {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 242, 238, 0.5);
  white-space: nowrap;
  padding-inline: var(--s-08);
}

/* Team grid — 2-col by default so 4 cards are in view on a phone */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-12);
  padding-block: var(--s-24) var(--s-96);
}
@media (min-width: 768px) {
  .team-grid { gap: var(--s-24); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.tcard {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(244, 242, 238, 0.04);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
  text-align: start;
}
.tcard:hover {
  transform: scale(1.02);
  background: rgba(244, 242, 238, 0.08);
  border-color: rgba(244, 242, 238, 0.3);
}
.tcard[aria-expanded="true"] {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.tcard__photo {
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(at 50% 65%, rgba(244, 242, 238, 0.18) 0%, transparent 45%),
    var(--tone, linear-gradient(150deg, #1a1a1a 0%, #050505 100%));
  position: relative;
}
.tcard__silhouette {
  position: absolute;
  inset-inline: 25%;
  bottom: 0;
  height: 60%;
  background: radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
}

.tcard__meta {
  padding: var(--s-12);
}
@media (min-width: 768px) { .tcard__meta { padding: var(--s-24); } }

.tcard__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  line-height: 1.2;
}
@media (min-width: 768px) { .tcard__name { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; } }

.tcard__role {
  font-size: 11px;
  color: rgba(244, 242, 238, 0.55);
  margin-bottom: var(--s-04);
}
@media (min-width: 768px) { .tcard__role { font-size: 13px; margin-bottom: var(--s-08); } }

.tcard__note {
  font-size: 12px;
  color: rgba(244, 242, 238, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .tcard__note { font-size: 14px; line-height: 1.5; -webkit-line-clamp: unset; }
}

.tcard__badge {
  position: absolute;
  top: var(--s-12);
  inset-inline-end: var(--s-12);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  color: var(--off-white);
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: 2;
}
.tcard:hover .tcard__badge { opacity: 1; }

/* Inline drawer */
.tdrawer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-32);
  padding: var(--s-32);
  border-radius: var(--r-card);
  background: rgba(244, 242, 238, 0.04);
  border: 1px solid var(--hairline);
  position: relative;
}
@media (min-width: 1024px) {
  .tdrawer { grid-template-columns: 2fr 1fr; gap: var(--s-48); padding: var(--s-48); }
}

.tdrawer__close {
  position: absolute;
  top: var(--s-16);
  inset-inline-end: var(--s-16);
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--off-white);
  font-size: 14px;
}
.tdrawer__close:hover { border-color: rgba(244, 242, 238, 0.5); }

.tdrawer h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.6);
  margin-bottom: var(--s-12);
  font-family: var(--font-mono);
}

.tdrawer__bio {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 242, 238, 0.9);
  letter-spacing: -0.005em;
}

.tdrawer__list {
  list-style: none;
  margin: 0; padding: 0;
}
.tdrawer__list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(244, 242, 238, 0.06);
  font-size: 14px;
}
.tdrawer__list li:first-child { border-top: 0; }
.tdrawer__list li .y, .tdrawer__list li .lev {
  color: rgba(244, 242, 238, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tdrawer__mailto {
  margin-top: var(--s-24);
  font-size: 14px;
  color: rgba(244, 242, 238, 0.8);
}
.tdrawer__mailto a { color: var(--accent); border-bottom: 1px solid rgba(229, 70, 42, 0.4); }

.tdrawer__section + .tdrawer__section { margin-top: var(--s-32); }

/* ============================================================ */

/* ============================================================
   MOBILE — TIKTOK-STYLE VERTICAL FEED  (home page)
   Renders only at < 1024px; hidden on desktop.
   ============================================================ */
.home-feed { display: none; }
.home-grid { display: none; }
.feed-bar  { display: none; }

@media (max-width: 1023px) {
  body[data-page="home"] { background: #000; overflow-x: hidden; }
  /* Hide the desktop home chrome on mobile — feed carries it all */
  body[data-page="home"] .home-hero,
  body[data-page="home"] .marquee,
  body[data-page="home"] .about-teaser,
  body[data-page="home"] .site-footer,
  body[data-page="home"] #quote-pill { display: none !important; }

  /* ───── Top-of-feed bar (search + view toggle) ─────
     Hidden by default. Surfaces only when the user signals "I'm stuck"
     (two blocked upward swipes at the first card, or sustained dwell
     without advancing). On grid view it's always shown.                */
  .feed-bar {
    display: flex;
    align-items: center;
    gap: var(--s-08);
    position: fixed;
    top: calc(76px + env(safe-area-inset-top, 0px));
    inset-inline: var(--s-16);
    z-index: 35;
    padding: 6px 8px 6px 6px;
    height: 44px;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    box-shadow: var(--inner-glow), 0 4px 16px rgba(0, 0, 0, 0.18);
    /* Default = off-screen, untouchable */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-22px);
    transition: opacity 280ms ease, transform 280ms cubic-bezier(.4,.0,.2,1);
  }
  .feed-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  /* Grid view always shows the bar — that's how you got here, you need to leave */
  body[data-home-view="grid"] .feed-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .feed-bar__icon {
    width: 32px; height: 32px;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    background: transparent;
    border: 0;
    flex: none;
    cursor: pointer;
  }
  .feed-bar__icon svg { width: 16px; height: 16px; }
  .feed-bar__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--off-white);
    font: inherit;
    font-size: 14px;
    letter-spacing: -0.005em;
    padding: 0 4px;
  }
  .feed-bar__input::placeholder { color: rgba(244, 242, 238, 0.45); }
  .feed-bar__toggle {
    display: inline-flex;
    flex: none;
    background: rgba(244, 242, 238, 0.06);
    border-radius: var(--r-pill);
    padding: 2px;
  }
  .feed-bar__view {
    width: 28px; height: 28px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 0;
    color: rgba(244, 242, 238, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
  }
  .feed-bar__view svg { width: 14px; height: 14px; }
  .feed-bar__view[aria-selected="true"] {
    background: var(--off-white);
    color: var(--warm-black);
  }

  /* When search is active, the input is given more room visually */
  .feed-bar.is-searching .feed-bar__toggle {
    opacity: 0.4;
    pointer-events: none;
  }

  /* ───── Hide top nav when grid view is active to avoid the double bar look ───── */
  body[data-home-view="grid"] .home-feed { display: none; }
  body[data-home-view="grid"] .home-grid { display: block; }
  body[data-home-view="grid"] #feed-pill { /* recreated by JS for grid */ }

  /* ───── GRID VIEW (alternate layout) ───── */
  .home-grid {
    background: var(--bg);
    min-height: 100vh;
    padding: calc(140px + env(safe-area-inset-top, 0px)) var(--s-16) calc(120px + env(safe-area-inset-bottom, 0px));
  }
  .home-grid__title {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.025em;
    font-weight: 500;
    margin-bottom: var(--s-08);
  }
  .home-grid__sub {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 242, 238, 0.5);
    margin-bottom: var(--s-24);
  }
  .home-grid__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-12);
  }
  @media (max-width: 420px) {
    .home-grid__list { grid-template-columns: 1fr; gap: var(--s-16); }
  }
  .gcard {
    display: block;
    border-radius: var(--r-card);
    overflow: hidden;
    background: rgba(244, 242, 238, 0.04);
    border: 1px solid var(--hairline);
    color: inherit;
    transition: transform 220ms ease, border-color 220ms ease;
  }
  .gcard:hover { transform: translateY(-2px); border-color: rgba(244, 242, 238, 0.3); }
  .gcard__poster {
    aspect-ratio: 4 / 5;
    background:
      repeating-linear-gradient(135deg, rgba(244, 242, 238, 0.04) 0 6px, rgba(244, 242, 238, 0.02) 6px 12px),
      var(--tone, linear-gradient(150deg, #1a1a1a 0%, #050505 100%));
  }
  .gcard__body {
    padding: var(--s-12) var(--s-16) var(--s-16);
  }
  .gcard__name {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .gcard__cap {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: rgba(244, 242, 238, 0.55);
    text-transform: uppercase;
  }
  .home-grid__empty {
    grid-column: 1 / -1;
    padding: var(--s-48) var(--s-16);
    text-align: center;
    color: rgba(244, 242, 238, 0.55);
    font-size: 14px;
  }

  /* The feed itself fills the viewport and scroll-snaps the cards. */
  .home-feed {
    display: block;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    z-index: 0;
    background: #000;
  }
  .home-feed::-webkit-scrollbar { display: none; }
  .home-feed { scrollbar-width: none; }

  /* The top nav becomes part of each card — keep the nav fixed across the feed */
  body[data-page="home"] .nav { z-index: 30; }

  .feed-card {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
  }

  .feed-card__bg {
    position: absolute;
    inset: 0;
    background: var(--tone, linear-gradient(180deg, #1c1812 0%, #0a0a0a 60%, #15110d 100%));
  }
  .feed-card__bg::after {
    content: "";
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
      radial-gradient(at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  }

  /* Hero video for the active card (optional — falls back to gradient) */
  .feed-card__video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 400ms ease;
  }
  .feed-card__video[data-ready] { opacity: 1; }

  /* Vimeo iframe slot — fills the card; iframe is mounted/unmounted by JS. */
  .feed-card__player {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }
  .feed-card__player iframe {
    position: absolute;
    top: 50%; left: 50%;
    border: 0;
    background: transparent;
    pointer-events: none;
  }

  /* DEFAULT (no orientation flag, or 9:16 source): vertical cover-fit.
     Suitable for native vertical reels. Video stretches to fill the screen
     with light L/R crop. */
  .feed-card .feed-card__player iframe {
    width:  max(100vw, calc(100vh * 9 / 16));
    height: max(100vh, calc(100vw * 16 / 9));
    transform: translate(-50%, -50%);
  }

  /* 16:9 SOURCE on a PORTRAIT phone — rotate the iframe 90° so the
     landscape video fills the entire screen edge-to-edge.
     User physically tilts their phone to watch right-side-up.
     Pre-rotation size: width=100vh, height=100vh×9/16 (matches video aspect).
     After rotate(90°): visually fills the vertical extent of the phone. */
  @media (orientation: portrait) {
    .feed-card[data-orientation="16:9"] .feed-card__player iframe {
      width: 100vh;
      height: calc(100vh * 9 / 16);
      transform: translate(-50%, -50%) rotate(90deg);
    }
  }

  /* 16:9 SOURCE on a LANDSCAPE phone — no rotation; fill the screen
     naturally (slight cover-crop on sides). */
  @media (orientation: landscape) {
    .feed-card[data-orientation="16:9"] .feed-card__player iframe {
      width:  max(100vw, calc(100vh * 16 / 9));
      height: max(100vh, calc(100vw * 9 / 16));
      transform: translate(-50%, -50%);
    }
  }

  /* "Rotate to watch" hint — small badge in top-left, fades out after 3s. */
  .feed-card__rotate-hint {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top, 0px));
    inset-inline-start: var(--s-16);
    z-index: 23;
    padding: 6px 11px;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
    font-size: 11px;
    color: var(--off-white);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    opacity: 0;
    animation: rotate-hint-pulse 5s ease-in-out 1s 1 forwards;
  }
  .feed-card__rotate-hint .icon {
    display: inline-block;
    transform: rotate(0deg);
    animation: rotate-hint-icon 2.5s ease-in-out infinite;
  }
  @keyframes rotate-hint-pulse {
    0%   { opacity: 0; transform: translateY(-4px); }
    10%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-4px); pointer-events: none; }
  }
  @keyframes rotate-hint-icon {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(90deg); }
  }
  /* In landscape, hide the hint — they already rotated. */
  @media (orientation: landscape) {
    .feed-card__rotate-hint { display: none; }
  }

  /* Like pill — top-right (top-left RTL) */
  .feed-card__like {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top, 0px));
    inset-inline-end: var(--s-16);
    padding: 6px 11px;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-pill);
    font-size: 12px;
    color: var(--off-white);
    z-index: 22;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-feature-settings: "tnum";
    cursor: pointer;
  }
  .feed-card__like .heart-icon { color: var(--accent); font-size: 13px; }

  /* Mute icon — only visible when sound is on (default = muted) */
  .feed-card__mute {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top, 0px));
    inset-inline-end: 64px;
    width: 32px; height: 32px;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    font-family: var(--font-mono);
    font-size: 13px;
    z-index: 22;
  }
  body[data-muted="false"] .feed-card__mute { display: inline-flex; }
  .feed-card__mute svg { width: 16px; height: 16px; display: block; }

  /* Right rail — share + vertical title + (disabled) comment */
  .feed-card__rail {
    position: absolute;
    inset-inline-end: var(--s-16);
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 22;
    color: var(--off-white);
  }
  .feed-card__rail .ic {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    font-family: var(--font-mono);
    font-size: 16px;
    border-radius: var(--r-pill);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }
  .feed-card__rail .ic.dim { opacity: 0.4; pointer-events: none; }
  .feed-card__rail .vtitle {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    line-height: 1;
    color: rgba(244, 242, 238, 0.85);
    max-height: 120px;
    overflow: hidden;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* Bottom-left overlay: title / client / link */
  .feed-card__ovl {
    position: absolute;
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: var(--s-24);
    z-index: 18;
    max-width: 65%;
    color: var(--off-white);
    text-align: start;
  }
  .feed-card__ovl .title {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .feed-card__ovl .client {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(244, 242, 238, 0.78);
  }
  .feed-card__ovl .link {
    margin-top: var(--s-12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--accent);
    border-bottom: 1px solid rgba(229, 70, 42, 0.35);
    padding-bottom: 2px;
  }
  html[dir="rtl"] .feed-card__ovl .link span:last-child { display: inline-block; transform: scaleX(-1); }

  /* Heart burst on double-tap */
  .feed-card__heart {
    position: absolute;
    top: 50%; inset-inline-start: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 24;
    color: var(--accent);
    font-size: 96px;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 16px rgba(229, 70, 42, 0.6));
    opacity: 0;
  }
  html[dir="rtl"] .feed-card__heart { transform: translate(50%, -50%) scale(0.6); }
  .feed-card__heart.is-on {
    animation: heart-burst 600ms ease-out;
  }
  @keyframes heart-burst {
    0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.6); }
    20%  { opacity: 0.95; transform: translate(-50%, -50%) scale(1.15); }
    60%  { opacity: 0.85; transform: translate(-50%, -50%) scale(1);    }
    100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.95); }
  }
  @media (prefers-reduced-motion: reduce) {
    .feed-card__heart.is-on { animation: heart-burst 200ms linear; }
  }

  /* Mobile floating Quote pill — solid accent, NOT glass */
  .feed-pill {
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: var(--s-16);
    padding: 12px 18px;
    background: var(--accent);
    color: var(--off-white);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    z-index: 28;
    box-shadow: 0 12px 32px rgba(229, 70, 42, 0.32);
    display: inline-flex;
    align-items: center;
    gap: var(--s-08);
    text-decoration: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .feed-pill:hover { transform: translateY(-1px); }
  .feed-pill .arrow { font-family: var(--font-mono); font-size: 12px; }
  html[dir="rtl"] .feed-pill .arrow { transform: scaleX(-1); display: inline-block; }
  /* On the terminator card, pill recenters per design */
  .feed-pill[data-on-terminator="true"] {
    inset-inline-end: auto;
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }
  .feed-pill[data-on-terminator="true"]:hover {
    transform: translateX(-50%) translateY(-1px);
  }
  html[dir="rtl"] .feed-pill[data-on-terminator="true"] {
    transform: translateX(50%);
  }
  html[dir="rtl"] .feed-pill[data-on-terminator="true"]:hover {
    transform: translateX(50%) translateY(-1px);
  }

  /* Page indicator removed — was visually noisy. Active card is implied by content. */

  /* ===== Terminator card: That's HOPE. + marquee + footer ===== */
  .feed-terminator {
    background: var(--warm-black);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .feed-terminator__hero {
    flex: 0 0 auto;
    padding: calc(96px + env(safe-area-inset-top, 0px)) var(--s-32) var(--s-48);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-16);
  }
  .feed-terminator__h {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--off-white);
  }
  .feed-terminator__body {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(244, 242, 238, 0.85);
    max-width: 320px;
  }
  .feed-terminator__cta {
    font-size: 16px;
    color: var(--accent);
    border-bottom: 1px solid rgba(229, 70, 42, 0.5);
    padding-bottom: 3px;
    margin-top: var(--s-12);
  }
  .feed-terminator__marquee {
    flex: none;
    border-block: 1px solid rgba(244, 242, 238, 0.06);
    overflow: hidden;
    height: 64px;
    display: flex;
    align-items: center;
  }
  .feed-terminator__marquee .marquee__track {
    animation-duration: 22s;
    padding-inline-start: var(--s-24);
  }
  .feed-terminator__footer {
    flex: 1 0 auto;
    padding: var(--s-32) var(--s-24) calc(120px + env(safe-area-inset-bottom, 0px));
    color: var(--off-white);
  }
  .feed-terminator__footer .col-h {
    font-size: 12px;
    color: rgba(244, 242, 238, 0.55);
    margin-top: var(--s-24);
    margin-bottom: var(--s-08);
  }
  .feed-terminator__footer .col-h:first-child { margin-top: 0; }
  .feed-terminator__footer .li {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(244, 242, 238, 0.85);
  }
  .feed-terminator__footer .li a { color: inherit; }
  .feed-terminator__footer .strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--s-24);
    padding-top: var(--s-16);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(244, 242, 238, 0.55);
  }

  /* RTL adjustments for the feed */
  html[dir="rtl"] .feed-card__like,
  html[dir="rtl"] .feed-card__mute { /* already handled via inset-inline */ }
  html[dir="rtl"] .feed-card__rail .vtitle {
    writing-mode: vertical-rl;
    transform: rotate(0deg);
  }
}

/* ============================================================
   GET A QUOTE — modal
   ============================================================ */
.qmodal-root[hidden] { display: none; }

.qmodal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.qmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: qmodal-fade 280ms ease;
}

@keyframes qmodal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qmodal-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes qmodal-slide-mobile {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.qmodal {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 720px;
  height: calc(100vh - 32px);
  max-height: 760px;
  background: var(--warm-black);
  border: 1px solid rgba(244, 242, 238, 0.08);
  border-radius: var(--r-tile);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: qmodal-slide-up 320ms cubic-bezier(.4,.0,.2,1);
}

@media (min-width: 768px) {
  .qmodal { height: calc(100vh - 160px); max-height: 760px; margin-block: auto; }
}

@media (max-width: 640px) {
  .qmodal-root { align-items: flex-end; }
  .qmodal {
    height: calc(100vh - 56px);
    max-height: none;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    animation: qmodal-slide-mobile 320ms cubic-bezier(.4,.0,.2,1);
  }
}

.qmodal__progress {
  position: absolute;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px;
  background: rgba(244, 242, 238, 0.06);
  z-index: 2;
}
.qmodal__progress-fill {
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  transition: width 280ms cubic-bezier(.4,.0,.2,1);
}

.qmodal__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  color: rgba(244, 242, 238, 0.55);
  font-size: 13px;
}
.qmodal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-08);
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.qmodal__back:hover { color: var(--off-white); }
.qmodal__back .arrow { font-family: var(--font-mono); }
html[dir="rtl"] .qmodal__back .arrow { transform: scaleX(-1); display: inline-block; }
.qmodal__back[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }

.qmodal__close {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: var(--r-pill);
}
.qmodal__close:hover { color: var(--off-white); background: rgba(244, 242, 238, 0.06); }

.qmodal__body {
  flex: 1;
  padding: 32px 32px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
@media (min-width: 768px) { .qmodal__body { padding: 32px 56px 16px; } }

.qmodal__qnum {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.4);
  margin-bottom: var(--s-12);
}

.qmodal__prompt {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: var(--s-12);
}
@media (min-width: 768px) { .qmodal__prompt { font-size: 44px; max-width: 16ch; } }

.qmodal__hint {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 242, 238, 0.6);
  margin-bottom: var(--s-24);
  max-width: 60ch;
}
@media (min-width: 768px) { .qmodal__hint { font-size: 17px; margin-bottom: var(--s-32); } }

.qmodal__answers { flex: 1; min-height: 0; }

/* Chips */
.qmodal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.qmodal__chip {
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  color: var(--off-white);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
@media (min-width: 768px) { .qmodal__chip { font-size: 16px; padding: 12px 20px; } }
.qmodal__chip:hover { border-color: rgba(255, 255, 255, 0.4); }
.qmodal__chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--warm-black);
  border-color: transparent;
  font-weight: 500;
}

/* Text input */
.qmodal__input {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.18);
  color: var(--off-white);
  font: inherit;
  font-size: 22px;
  letter-spacing: -0.005em;
  padding: 12px 0;
  outline: none;
}
@media (min-width: 768px) { .qmodal__input { font-size: 28px; padding: 16px 0; } }
.qmodal__input::placeholder { color: rgba(244, 242, 238, 0.32); }
.qmodal__input:focus { border-bottom-color: var(--accent); }

textarea.qmodal__input {
  resize: vertical;
  min-height: 120px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) { textarea.qmodal__input { font-size: 18px; min-height: 160px; } }

/* Contact (two-field combo) */
.qmodal__contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
}

/* Files */
.qmodal__filedrop {
  border: 1px dashed rgba(244, 242, 238, 0.2);
  border-radius: var(--r-tile);
  padding: var(--s-32) var(--s-24);
  text-align: center;
  color: rgba(244, 242, 238, 0.7);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  position: relative;
}
.qmodal__filedrop:hover, .qmodal__filedrop[data-drag="true"] {
  border-color: var(--accent);
  background: rgba(229, 70, 42, 0.04);
}
.qmodal__filedrop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.qmodal__filedrop-glyph {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: var(--s-08);
}
.qmodal__filedrop-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 242, 238, 0.4);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.qmodal__filelist { margin-top: var(--s-16); display: flex; flex-direction: column; gap: 6px; }
.qmodal__filerow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(244, 242, 238, 0.04);
  border: 1px solid rgba(244, 242, 238, 0.06);
  border-radius: var(--r-tile);
  font-size: 13px;
  gap: var(--s-16);
}
.qmodal__filerow .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qmodal__filerow .right { display: flex; align-items: center; gap: var(--s-12); flex: none; }
.qmodal__filerow .sz { font-family: var(--font-mono); font-size: 11px; color: rgba(244,242,238,0.5); }
.qmodal__filerow .rm {
  background: none; border: 0; color: rgba(244,242,238,0.5);
  cursor: pointer; font-size: 14px;
}
.qmodal__filerow .rm:hover { color: var(--accent); }

.qmodal__filemeta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-12);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 242, 238, 0.5);
  letter-spacing: 0.06em;
}

/* Validation */
.qmodal__error {
  margin-top: var(--s-12);
  font-size: 13px;
  color: var(--accent);
  display: none;
}
.qmodal[data-error="true"] .qmodal__error { display: block; }
.qmodal[data-error="true"] .qmodal__input { border-bottom-color: var(--accent); }

/* Footer */
.qmodal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-12);
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(244, 242, 238, 0.04);
}
@media (min-width: 768px) { .qmodal__footer { padding: 18px 56px 22px; } }

.qmodal__hint-text {
  font-size: 12px;
  color: rgba(244, 242, 238, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}
.qmodal__hint-text .kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(244, 242, 238, 0.18);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(244, 242, 238, 0.7);
}

.qmodal__cta {
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-08);
  padding: 12px 22px;
  background: var(--off-white);
  color: var(--warm-black);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}
.qmodal__cta:hover { transform: translateY(-1px); }
.qmodal__cta[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.qmodal__cta--full { width: 100%; justify-content: center; padding: 14px 22px; background: var(--accent); color: var(--off-white); }

@media (max-width: 640px) {
  .qmodal__footer { padding: 12px 20px 20px; }
  .qmodal__cta {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    background: var(--accent);
    color: var(--off-white);
  }
  .qmodal__hint-text { display: none; }
}

html[dir="rtl"] .qmodal__cta span:last-child { display: inline-block; transform: scaleX(-1); }

/* Review screen */
.qmodal__review-title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: var(--s-08);
}
@media (min-width: 768px) { .qmodal__review-title { font-size: 40px; } }
.qmodal__review-sub {
  font-size: 15px;
  color: rgba(244, 242, 238, 0.65);
  margin-bottom: var(--s-24);
}
@media (min-width: 768px) { .qmodal__review-sub { font-size: 17px; margin-bottom: var(--s-32); } }

.qmodal__review-list {
  display: flex;
  flex-direction: column;
}
.qmodal__review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-16);
  padding: 14px 0;
  border-top: 1px solid rgba(244, 242, 238, 0.06);
}
.qmodal__review-row:first-child { border-top: 0; }
.qmodal__review-q {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.45);
  margin-bottom: 4px;
}
.qmodal__review-a {
  font-size: 15px;
  color: var(--off-white);
  letter-spacing: -0.005em;
  word-break: break-word;
}
@media (min-width: 768px) { .qmodal__review-a { font-size: 17px; } }
.qmodal__review-edit {
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  flex: none;
  font: inherit;
}
.qmodal__review-edit:hover { text-decoration: underline; }

.qmodal__review-cta { padding-block: var(--s-24) var(--s-16); }

/* Success */
.qmodal__success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-32);
}
.qmodal__success-title {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: var(--s-16);
}
@media (min-width: 768px) { .qmodal__success-title { font-size: 56px; } }
.qmodal__success-body {
  font-size: 17px;
  color: rgba(244, 242, 238, 0.8);
  margin-bottom: var(--s-32);
  max-width: 28ch;
}
@media (min-width: 768px) { .qmodal__success-body { font-size: 22px; } }
.qmodal__success-close {
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(229, 70, 42, 0.4);
  padding-bottom: 2px;
}
.qmodal__success-close:hover { color: var(--off-white); border-bottom-color: var(--off-white); }

/* ============================================================
   /quote modal
   ============================================================ */

/* ============================================================
   TEAM FLIP MODAL — pop-up with swipe-to-flip front/back card
   ============================================================ */
.tmodal[hidden] { display: none; }
.tmodal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: tmodal-fade 220ms ease;
}
@keyframes tmodal-fade { from { opacity: 0; } to { opacity: 1; } }

.tmodal__stage {
  position: relative;
  width: min(92vw, 420px);
  height: min(85vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  touch-action: pan-y;
}
@media (min-width: 1024px) {
  .tmodal__stage { width: min(80vw, 460px); height: min(80vh, 640px); }
}

.tmodal__close {
  position: absolute;
  top: -56px;
  inset-inline-end: -4px;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(244, 242, 238, 0.08);
  border: 1px solid var(--hairline);
  color: var(--off-white);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}
.tmodal__close:hover { background: rgba(244, 242, 238, 0.16); }

.tmodal__deck {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.tmodal__card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(.6, .05, .2, 1);
  cursor: grab;
  will-change: transform;
}
.tmodal__card:active { cursor: grabbing; }
.tmodal__card[data-side="back"] { transform: rotateY(180deg); }

.tmodal__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(244, 242, 238, 0.04);
  border: 1px solid var(--hairline);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.tmodal__face--back { transform: rotateY(180deg); }

.tmodal__photo {
  flex: 1;
  background:
    radial-gradient(at 50% 65%, rgba(244, 242, 238, 0.18) 0%, transparent 45%),
    var(--tone, linear-gradient(150deg, #1a1a1a 0%, #050505 100%));
  position: relative;
}
.tmodal__photo::after {
  content: "";
  position: absolute; inset-inline: 25%; bottom: 0; height: 60%;
  background: radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
}
.tmodal__front-meta { flex: none; padding: var(--s-24); }
.tmodal__name {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-04);
}
.tmodal__role {
  font-size: 13px;
  color: rgba(244, 242, 238, 0.65);
  margin-bottom: var(--s-08);
}
.tmodal__note {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 242, 238, 0.85);
}

.tmodal__back-inner {
  padding: var(--s-24) var(--s-24) var(--s-32);
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
}
.tmodal__section { display: flex; flex-direction: column; }
.tmodal__section h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.55);
  margin-bottom: var(--s-08);
  font-weight: 500;
}
.tmodal__bio {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 242, 238, 0.92);
  letter-spacing: -0.005em;
}
.tmodal__list { list-style: none; margin: 0; padding: 0; }
.tmodal__list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(244, 242, 238, 0.06);
  font-size: 13px;
  gap: var(--s-12);
}
.tmodal__list li:first-child { border-top: 0; padding-top: 0; }
.tmodal__list .y, .tmodal__list .lev {
  color: rgba(244, 242, 238, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex: none;
}
.tmodal__mailto {
  font-size: 13px;
  color: rgba(244, 242, 238, 0.8);
  border-top: 1px solid rgba(244, 242, 238, 0.06);
  padding-top: var(--s-16);
}
.tmodal__mailto a {
  color: var(--accent);
  border-bottom: 1px solid rgba(229, 70, 42, 0.4);
  padding-bottom: 1px;
}

.tmodal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(244, 242, 238, 0.08);
  border: 1px solid var(--hairline);
  color: var(--off-white);
  font-size: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}
.tmodal__nav:hover { background: rgba(244, 242, 238, 0.16); }
.tmodal__nav--prev { inset-inline-start: -64px; }
.tmodal__nav--next { inset-inline-end: -64px; }
@media (min-width: 1024px) { .tmodal__nav { display: inline-flex; } }
html[dir="rtl"] .tmodal__nav { transform: translateY(-50%) scaleX(-1); }

.tmodal__hint {
  position: absolute;
  inset-inline-start: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  padding: 8px 14px;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: rgba(244, 242, 238, 0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 4;
}
.tmodal__hint.is-visible { opacity: 1; }
.tmodal__hint .arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
}
.tmodal__hint .arrow:first-child { animation: hint-left 1.6s ease-in-out infinite; }
.tmodal__hint .arrow:last-child  { animation: hint-right 1.6s ease-in-out infinite; }
@keyframes hint-left  { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@keyframes hint-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
html[dir="rtl"] .tmodal__hint .arrow:first-child { animation-name: hint-right; }
html[dir="rtl"] .tmodal__hint .arrow:last-child  { animation-name: hint-left; }

.tmodal__card.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* ---------- REDUCED MOTION / TRANSPARENCY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav[data-scrolled="true"],
  .card-hero,
  .scard,
  .pill,
  .menu-overlay,
  .ba__tag,
  .hero__mute {
    background: rgba(20, 20, 20, 0.92) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ---------- UTILITIES ---------- */
[hidden] { display: none !important; }

/* RTL helper: ensure flex containers honour logical order
   (modern browsers do this natively for flex/grid but explicit
   start/end here for clarity). */
html[dir="rtl"] .nav__lang { direction: ltr; }   /* keep "EN / AR" readable */
