/* =========================================================
   Ä°STANBUL PÄ°LÄ°Ã‡ â€” Premium Scroll Site
   Fonts: Melodrama Variable (display), Switzer Variable (text)
   ========================================================= */

@font-face {
  font-family: 'Melodrama';
  src: url('../assets/fonts/Melodrama-Variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../assets/fonts/Switzer-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../assets/fonts/Switzer-VariableItalic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ----- LAYOUT & TYPOGRAPHY TOKENS ----- */
:root {
  --font-display: 'Melodrama', Georgia, serif;
  --font-text: 'Switzer', Arial, sans-serif;
  --font-mono: 'Switzer', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --pad-side: 5vw;
  --text-zone: 40vw;
  --text-push: 55vw;
}

/* ----- RESET ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* The showcase scrub flies products in from far off-screen (±2000px). Clip on
     the scroll root so that overflow never widens the page — `clip` contains it
     without creating a scroll container, so GSAP's position:fixed pin is
     unaffected (unlike overflow-x:hidden on body, which can leak the scroll
     width and turn body into a scroll container). */
  overflow-x: clip;
}

body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  /* clip, NEVER hidden: hidden would make body a scroll container and break
     every position:sticky stage (manifesto / flight). clip cuts off the
     showcase's ±2000px fly-ins without creating a scroll container — needed
     here as well as on html, because viewport-level hidden still lets mobile
     browsers pan to the overflow. */
  overflow-x: clip;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: none;
}

/* ----- TYPOGRAPHY ----- */
.btn-arrow+* {
  font-family: var(--font-text);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: calc(-0.02em + var(--display-fit, 0em));
  margin: 0;
  line-height: 0.92;
}

p {
  margin: 0;
}

/* ===========================================================
   CUSTOM CURSOR
   =========================================================== */
.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.18s var(--ease-out), width 0.25s, height 0.25s;
  will-change: transform;
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 242, 234, 0.55);
  border-radius: 50%;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  transition: width 0.32s var(--ease-out), height 0.32s var(--ease-out), opacity 0.3s, border-color 0.3s;
  will-change: transform;
}

.cursor-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(18px, 16px);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.cursor.is-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(244, 242, 234, 0.85);
}

.cursor.is-cta .cursor-ring {
  width: 72px;
  height: 72px;
  border-color: var(--green);
  background: rgba(52, 105, 74, 0.18);
}

.cursor.is-view .cursor-ring {
  width: 86px;
  height: 86px;
  border-color: rgba(244, 242, 234, 0.9);
}

.cursor.is-view .cursor-label {
  opacity: 1;
}

.cursor.is-hidden {
  opacity: 0;
}

@media (hover: none),
(pointer: coarse) {
  body {
    cursor: auto;
  }

  button,
  a {
    cursor: pointer;
  }

  .cursor {
    display: none;
  }
}

/* mobile-flow layout implies mobile UX â€” never show the custom cursor,
   even in narrow desktop windows / emulators with a fine pointer */
.mobile-flow .cursor {
  display: none;
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--pad-side);
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(244, 242, 234, 0.14);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(27, 36, 29, 0.08);
  color: var(--ink);
  mix-blend-mode: normal;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

/* hide on scroll down, reveal (slide down + fade) on scroll up */
.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header:hover {
  box-shadow: 0 4px 24px -8px rgba(23, 22, 19, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  opacity: 0.90;
}

.brand-mark {
  width: 100px;
  height: 37px;
  object-fit: contain;
  display: block;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: calc(-0.01em + var(--display-fit, 0em));
  line-height: 1;
  transform: translateY(4px);
}

.site-nav {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: var(--green);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  justify-self: end;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 96, 56, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 96, 56, 0.7);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(217, 96, 56, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 96, 56, 0);
  }
}

/* ===========================================================
   PILL BUTTONS
   =========================================================== */
.btn-pill,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  border: 1px solid currentColor;
  will-change: transform;
}

.btn-pill {
  background: var(--green);
  border-color: var(--green);
  color: var(--bone);
  padding: 0.7rem 1.6rem 0.7rem 1.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.btn-pill:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: 0 6px 20px -6px rgba(40, 84, 58, 0.4);
  transform: translateY(-1px);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.btn-pill:hover .btn-arrow,
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--bone);
  padding: 1.1rem 1.8rem 1.1rem 2rem;
  font-size: 0.82rem;
}

.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
  padding: 1.1rem 1.8rem 1.1rem 2rem;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===========================================================
   MOBILE / TABLET NAV â€” hamburger toggle + overlay menu
   (toggle hidden on desktop, shown in the â‰¤900px media query)
   =========================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.4rem 0;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-lines {
  position: relative;
  width: 26px;
  height: 12px;
  display: block;
  flex: none;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle-lines span:nth-child(1) {
  top: 0;
}

.nav-toggle-lines span:nth-child(2) {
  bottom: 0;
  width: 70%;
}

.nav-toggle:hover .nav-toggle-lines span:nth-child(2) {
  width: 100%;
}

.nav-toggle-label {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}

/* open state â€” morph to an X, and retire the "Menu" word so the X stands alone */
body.menu-open .nav-toggle-label {
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
}

body.menu-open .nav-toggle-lines span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

body.menu-open .nav-toggle-lines span:nth-child(2) {
  bottom: 50%;
  width: 100%;
  transform: translateY(50%) rotate(-45deg);
}

/* keep header visible & on top while the menu is open */
body.menu-open .site-header.is-hidden {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* ----- overlay menu ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  /* curtain reveal driven by clip-path */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease-out), visibility 0s linear 0.9s;
}

body.menu-open .mobile-menu {
  pointer-events: auto;
  visibility: visible;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.95s var(--ease-out), visibility 0s linear 0s;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: var(--paper);
  background-image:
    linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
}

.mobile-menu-bg::before {
  /* faint grid like the hero */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 80%);
}

.mobile-menu-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(217, 96, 56, 0.08), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(216, 176, 74, 0.10), transparent 55%);
}

.mobile-menu-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 92px var(--pad-side) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 5vh, 2.4rem);
}

.mobile-menu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-text);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  /* per-item reveal */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out) 0.18s, transform 0.6s var(--ease-out) 0.18s;
}

body.menu-open .mobile-menu-eyebrow {
  opacity: 1;
  transform: none;
}

.mm-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(217, 96, 56, 0.55);
  animation: pulse 1.8s infinite;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mm-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.5rem, 1.6vh, 0.9rem) 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  /* staggered slide-up â€” delay set inline-ish via nth-child below */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}

body.menu-open .mm-link {
  opacity: 1;
  transform: none;
}

body.menu-open .mm-link:nth-child(1) {
  transition-delay: 0.22s;
}

body.menu-open .mm-link:nth-child(2) {
  transition-delay: 0.30s;
}

body.menu-open .mm-link:nth-child(3) {
  transition-delay: 0.38s;
}

body.menu-open .mm-link:nth-child(4) {
  transition-delay: 0.46s;
}

body.menu-open .mm-link:nth-child(5) {
  transition-delay: 0.54s;
}

.mm-index {
  font-family: var(--font-text);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease-out);
  flex: none;
}

.mm-text {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: calc(1.02 * var(--display-lh, 1));
  letter-spacing: calc(-0.02em + var(--display-fit, 0em));
  color: var(--ink);
}

/* hover/active: green sweep using the duplicated ::after text under a clip */
.mm-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--green);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s var(--ease-out);
}

.mm-arrow {
  width: 26px;
  height: 26px;
  stroke: var(--green);
  margin-left: auto;
  align-self: center;
  flex: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.mm-link:hover .mm-text::after,
.mm-link:active .mm-text::after {
  clip-path: inset(0 0 0 0);
}

.mm-link:hover .mm-index,
.mm-link:active .mm-index {
  color: var(--green);
}

.mm-link:hover .mm-arrow,
.mm-link:active .mm-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out) 0.6s, transform 0.7s var(--ease-out) 0.6s;
}

body.menu-open .mobile-menu-foot {
  opacity: 1;
  transform: none;
}

.mm-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem 1rem 1.9rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--bone);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.mm-cta:active {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(40, 84, 58, 0.5);
}

.mm-cta .btn-arrow {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.mobile-menu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.mobile-menu-meta a {
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}

.mobile-menu-meta a:active {
  color: var(--green);
}

.mm-meta-sep {
  color: var(--ember);
  font-size: 0.6rem;
}

/* ===========================================================
   FILM PLAYER â€” dark room for the facility film
   =========================================================== */
.film-player {
  position: fixed;
  inset: 0;
  z-index: 9000;
  /* below the custom cursor (9999), above everything else */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-side);
  cursor: none;
}

.film-player[hidden] {
  display: none;
}

.fp-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--charcoal) 96%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
}

/* ----- the frame: big screen, every control lives inside it ----- */
.fp-stage {
  position: relative;
  margin: 0;
  width: min(90vw, calc((100svh - 6rem) * 16 / 9));
  min-width: min(92vw, 640px);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.fp-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* chrome sleeps while the film runs (is-idle), wakes on pointer move */
.fp-head,
.fp-bar {
  position: absolute;
  left: 0;
  right: 0;
  color: var(--bone);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-soft);
}

.film-player.is-ui:not(.is-idle) .fp-head,
.film-player.is-ui:not(.is-idle) .fp-bar {
  opacity: 1;
  pointer-events: auto;
}

.fp-head {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem 2.6rem;
  background: linear-gradient(180deg, rgba(8, 7, 5, 0.55), rgba(8, 7, 5, 0));
}

.fp-title {
  font-family: var(--font-text);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone) 78%, transparent);
}

.fp-x {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(8, 7, 5, 0.35);
  border: 1px solid color-mix(in srgb, var(--bone) 28%, transparent);
  border-radius: 50%;
  color: var(--bone);
  cursor: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s, color 0.35s, transform 0.5s var(--ease-out);
}

.fp-x svg {
  width: 14px;
  height: 14px;
}

.fp-x:hover {
  border-color: var(--ember);
  color: var(--ember-soft);
  transform: rotate(90deg);
}

/* ----- transport â€” the loader's rail, grown up, riding the film ----- */
.fp-bar {
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 2.8rem 1.5rem 0.9rem;
  background: linear-gradient(0deg, rgba(8, 7, 5, 0.62), rgba(8, 7, 5, 0));
}

.fp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fp-cluster {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.fp-toggle,
.fp-mute,
.fp-fs {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--bone);
  cursor: none;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}

.fp-toggle:hover,
.fp-mute:hover,
.fp-fs:hover {
  opacity: 1;
  color: var(--ember-soft);
}

.fp-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 0.3s, opacity 0.3s, color 0.3s;
}

.fp-toggle:hover {
  border-color: color-mix(in srgb, var(--bone) 45%, transparent);
}

.fp-toggle svg {
  width: 15px;
  height: 15px;
}

.fp-toggle .fp-ic-play {
  margin-left: 2px;
}

.fp-mute svg,
.fp-fs svg {
  width: 18px;
  height: 18px;
}

/* icon swap states */
.fp-toggle .fp-ic-play,
.film-player.is-playing .fp-toggle .fp-ic-pause {
  display: block;
}

.fp-toggle .fp-ic-pause,
.film-player.is-playing .fp-toggle .fp-ic-play {
  display: none;
}

.fp-mute .fp-ic-muted,
.film-player.is-muted .fp-mute .fp-ic-vol {
  display: none;
}

.fp-mute .fp-ic-vol,
.film-player.is-muted .fp-mute .fp-ic-muted {
  display: block;
}

.fp-time,
.fp-timesep,
.fp-dur {
  flex: none;
  font-family: var(--font-text);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.fp-timesep,
.fp-dur {
  color: color-mix(in srgb, var(--bone) 55%, transparent);
}

.fp-rail {
  position: relative;
  width: 100%;
  height: 26px;
  cursor: none;
  touch-action: none;
}

.fp-rail-track,
.fp-rail-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  pointer-events: none;
}

.fp-rail-track {
  right: 0;
  background: color-mix(in srgb, var(--bone) 25%, transparent);
}

/* the ember current â€” scaleX-driven so it never relayouts */
.fp-rail-fill {
  width: 100%;
  background: var(--ember);
  height: 2px;
  margin-top: -1px;
  transform: scaleX(0);
  transform-origin: left;
}

.fp-rail-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--bone);
  pointer-events: none;
  transition: transform 0.2s var(--ease-out);
}

.fp-rail:hover .fp-rail-dot {
  transform: scale(1.5);
}

.fp-rail:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 4px;
}

/* fullscreen: the frame becomes the room â€” chrome stays inside it */
.fp-stage:fullscreen {
  width: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-stage:fullscreen .fp-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  position: relative;
  z-index: 9;
  padding: 0 0 1.5rem;
  /* no side padding â†’ rules + email reach the edges */
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

/* ----- big contact CTA ----- */
.footer-cta-block {
  text-align: center;
  padding: 4.5rem var(--pad-side) 3.5rem;
}

.footer-eyebrow {
  display: none;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.footer-bigwrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.footer-big {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 17vw, 16rem);
  line-height: 0.85;
  letter-spacing: calc(-0.05em + var(--display-fit, 0em));
  color: var(--ink);
  white-space: nowrap;
}

.footer-big .reveal-line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.06em;
  margin: -0.12em -0.06em;
}

.footer-big .reveal-line>span {
  display: inline-block;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--green);
  color: var(--bone);
  border-radius: 999px;
  padding: 1.05rem 1.5rem 1.05rem 1.9rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.6rem);
  letter-spacing: em;
  text-transform: uppercase;
  /*box-shadow: 0 22px 55px -18px rgba(40, 84, 58, 0.55);*/
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  will-change: transform;
}

.footer-contact-btn .btn-arrow {
  width: 1.3em;
  height: 1.3em;
  stroke: currentColor;
}

.footer-contact-btn:hover {
  background: var(--green-deep);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fn-sep {
  color: var(--sage);
  font-size: 0.85em;
}

/* top row â€” big CTA line | vertical divider | scrolling email */
.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 0;
}

/* full-height divider between the two columns */
.footer-top::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line-soft);
}

.footer-cta {
  font-family: var(--font-text);
  font-size: clamp(1.05rem, 1.55vw, 1rem);
  line-height: 1.4;
  /*text-transform: uppercase;*/
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: none;
  padding-left: var(--pad-side);
  padding-right: 2.5rem;
}

.footer-email {
  display: block;
  overflow: hidden;
  padding-left: 2.6rem;
  height: 100%;
}

.footer-email-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem);
  line-height: calc(1.1 * var(--display-lh, 1));
  letter-spacing: calc(-0.02em + var(--display-fit, 0em));
  color: var(--ink);
  animation: footer-marquee 16s linear infinite;
  will-change: transform;
  transition: color 0.3s var(--ease-out);
}

/* keep scrolling on hover; only the hovered email fades a little */
.fe-item {
  transition: opacity 0.3s var(--ease-out);
}

.fe-item:hover {
  opacity: 0.55;
}

.fe-cross {
  margin: 0 1.4rem;
  color: var(--sage);
  font-size: 0.5em;
}

@keyframes footer-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* bottom row â€” logo mark | social pills | credit.
   Equal 1fr side columns so the centre column sits at the true page centre. */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  /* border spans full width; padding only insets the content */
  padding: 2rem var(--pad-side) 0;
  border-top: 1px solid var(--line-soft);
}

.footer-mark {
  width: 92px;
  color: var(--ink);
  justify-self: start;
}

.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

/* Fill + hover color handled by the sliding ::before sweep in components.css. */
.footer-pill:hover {
  color: var(--paper);
}

.footer-credit {
  justify-self: end;
  font-family: var(--font-text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-credit strong {
  color: var(--ink);
  font-weight: 700;
}

/* ===========================================================
   MOBILE
   =========================================================== */
@media (max-width: 900px) {

  .footer-top::after {
    display: none;
  }

  :root {
    --pad-side: 5vw;
    --text-push: 5vw;
    --text-zone: 90vw;
  }

  /* logo hard-left, hamburger hard-right corner */
  .site-header {
    grid-template-columns: auto 1fr;
    height: 60px;
  }

  .site-nav {
    display: none;
  }

  /* brand sits in the left column, aligned to the edge (no centering) */
  .brand {
    justify-self: start;
  }

  /* CTA pill now lives inside the overlay menu; show the hamburger instead */
  .header-cta .btn-pill {
    display: none;
  }

  /* header-cta is the right column â€” push the toggle to the far corner */
  .header-cta {
    justify-self: end;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-mark {
    width: 100px;
    height: 37px;
    transform: none;
  }

  .brand-word {
    row-gap: 0.06em;
  }


  /* film player: edge-to-edge stage, tighter chrome */
  .film-player {
    padding: 0 4vw;
  }

  .fp-stage {
    width: 100%;
    min-width: 0;
  }

  .fp-head {
    padding: 0.9rem 1rem 2rem;
  }

  .fp-title {
    font-size: 0.58rem;
  }

  .fp-bar {
    padding: 2rem 1rem 0.6rem;
  }

  .fp-x {
    width: 38px;
    height: 38px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    padding-right: 0;
  }

  .footer-email {
    border-left: none;
    padding-left: 0;
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-soft);
    width: 100%;
    box-sizing: border-box;
  }


  .footer-bigwrap {
    flex-direction: column;
    align-items: center;
  }

  .footer-big-overlay {
    position: relative;
    transform: none;
    margin-top: 16px;
    margin-bottom: 10px;
  }

  /* hide the big CONTACT wordmark on mobile/tablet â€” keep the CTA button
     (it lives in .footer-big-overlay, which now flows on its own) */
  .footer-big {
    display: none;
  }


  .site-header {
    height: 70px;
  }

  .brand-mark {
    width: 80px;
    height: 30px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.4rem;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-credit {
    justify-self: start;
  }
}

/* =========================================================
   MOBILE FLOW LAYOUT  (html.mobile-flow, added by JS â‰¤900px)
   The desktop build absolutely-positions the scroll sections over a fixed
   video canvas along a 1000vh virtual scroll. On phones/tablets that maps
   poorly to real content heights â€” sections overlap or leave huge gaps. Here
   we collapse the whole thing into a clean, evenly-spaced vertical flow on a
   solid bone background, and let each section reveal on its own viewport entry.
   =========================================================== */

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }

}

/* ===========================================================
   ACTIVE NAV STATE (cross-page)
   =========================================================== */
.site-nav a.is-active {
  color: var(--green);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}