/* ============================================================
   THRESHOLD — Storytelling Studio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&family=Noto+Sans+Hebrew:wght@400;500;600;700&display=swap');

:root {
  --header-height: 78px;
  --bg-light: #f2e9d8;
  --bg-rgb: 242, 233, 216;
  --bg-dark: #15110c;
  --text-on-light: #241a10;
  --text-muted: #6b5c47;
  --text-on-dark: #f2e9d8;
  --accent-green: #37503f;
  --accent-burgundy: #7a2e2e;
  --accent-gold: #c9a227;

  --font-display: 'Noto Sans Hebrew', sans-serif;
  --font-body: 'Assistant', sans-serif;
}

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

html { background: var(--bg-light); }

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

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

::selection { background: var(--accent-gold); color: var(--text-on-light); }

/* ============================================================
   LOADER
   ============================================================ */

#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: 0.12em;
}

#loader-bar-track {
  width: min(280px, 60vw);
  height: 1px;
  background: rgba(242, 233, 216, 0.2);
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  transition: width 0.25s ease-out;
}

#loader-percent {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(242, 233, 216, 0.55);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  padding: 0 clamp(1.5rem, 4.5vw, 4.75rem);
  background: rgba(242, 233, 216, 0.98);
  border-bottom: 1px solid rgba(36, 26, 16, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text-on-light);
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.7rem, 3vw, 3.2rem);
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--text-on-light);
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }

  .site-header {
    padding: 0 1.25rem;
  }

  .logo {
    font-size: 0.88rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 0.72rem;
  }

  .nav-links a {
    font-size: 0.68rem;
  }

  .logo {
    font-size: 0.82rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero-standalone {
  position: relative;
  z-index: 50;
  height: 100vh;
  width: 100%;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  will-change: opacity;
}

.hero-inner { max-width: 90vw; }

.hero-inner .section-label {
  display: block;
  margin-bottom: 1.6rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(3.2rem, 11vw, 11.5rem);
}

.hero-word {
  display: block;
  overflow: hidden;
}

.hero-word span {
  display: inline-block;
}

.hero-tagline {
  margin-top: 2rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}

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

/* ============================================================
   SECTION LABEL / SHARED TYPE
   ============================================================ */

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f2929;
  font-weight: 700;
}

/* ============================================================
   CANVAS
   ============================================================ */

.canvas-wrap {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  background: var(--bg-light);
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   DARK OVERLAY
   ============================================================ */

#dark-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee-wrap {
  position: fixed;
  top: 13%;
  left: 0;
  width: 100%;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13vw;
  line-height: 1;
  color: rgba(36, 26, 16, 0.09);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translateX(10%);
}

/* ============================================================
   SCROLL CONTAINER + SECTIONS
   ============================================================ */

#scroll-container {
  position: relative;
  z-index: 2;
  height: 950vh;
  width: 100%;
}

.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-top: 8vh;
  padding-bottom: 8vh;
  visibility: hidden;
}

.scroll-section.is-visible {
  visibility: visible;
}

.section-content { display: flex; align-items: center; min-height: 60vh; }

.align-left {
  padding-left: clamp(1.5rem, 6vw, 6rem);
  padding-right: 55vw;
  background: transparent;
}

.align-right {
  padding-left: 55vw;
  padding-right: clamp(1.5rem, 6vw, 6rem);
  display: flex;
  justify-content: flex-end;
  background: transparent;
}

.align-left .section-inner,
.align-right .section-inner {
  max-width: 39vw;
  width: min(39vw, 620px);
  padding: clamp(1.8rem, 2.6vw, 2.8rem);
  background: rgba(242, 233, 216, 0.94);
  border: 1px solid rgba(36, 26, 16, 0.10);
  box-shadow: 0 18px 55px rgba(21, 17, 12, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-inner .section-label { display: block; margin-bottom: 1.4rem; }

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  color: #1f160f;
}

.section-body {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: #514535;
  font-weight: 500;
  max-width: 34rem;
}

/* CTA section */

.section-cta .cta-button {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 1.1rem 2.6rem;
  background: var(--accent-green);
  color: var(--text-on-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.35s ease, transform 0.35s ease;
}

.section-cta .cta-button:hover {
  background: var(--accent-burgundy);
  transform: translateY(-2px);
}

.section-cta .section-note {
  margin-top: 2.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Stats section */

.section-stats {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 88vw;
  width: 100%;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--text-on-dark);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--accent-gold);
  margin-left: 0.15rem;
}

.stat-label {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, 0.6);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {
  #scroll-container { height: 560vh; }

  .hero-heading { font-size: clamp(2.6rem, 15vw, 4.5rem); }
  .hero-inner { max-width: 100%; }
  .hero-tagline { max-width: 100%; }

  .align-left,
  .align-right {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    justify-content: flex-start;
    background: transparent;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    width: 100%;
    padding: 1.5rem;
    background: rgba(242, 233, 216, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .section-heading { font-size: clamp(2rem, 8vw, 2.8rem); }

  .marquee-text { font-size: 22vw; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .stat-number { font-size: 2.4rem; }

  .site-header { padding: 1.2rem 1.4rem; }
}


/* ============================================================
   HEBREW / RTL
   ============================================================ */

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .loader-brand {
  letter-spacing: 0.04em;
}

html[dir="rtl"] .nav-links a,
html[dir="rtl"] .section-label,
html[dir="rtl"] .section-cta .cta-button,
html[dir="rtl"] .section-cta .section-note,
html[dir="rtl"] .stat-label {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[dir="rtl"] .scroll-indicator {
  left: auto;
  right: clamp(1.5rem, 6vw, 6rem);
}

html[dir="rtl"] .hero-heading,
html[dir="rtl"] .hero-tagline,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .section-body,
html[dir="rtl"] .section-label {
  text-align: right;
}

html[dir="rtl"] .hero-heading {
  line-height: 0.95;
}

html[dir="rtl"] .marquee-text {
  font-style: normal;
}

html[dir="rtl"] .stat {
  align-items: flex-start;
  text-align: right;
}

@media (max-width: 768px) {
  html[dir="rtl"] .scroll-indicator {
    right: 1.4rem;
  }
}

/* Hebrew premium typography */
html[dir="rtl"] .hero-heading,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .loader-brand {
  font-family: 'Noto Sans Hebrew', sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}

html[dir="rtl"] body,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .section-body,
html[dir="rtl"] .section-label,
html[dir="rtl"] .hero-tagline,
html[dir="rtl"] .stat-label,
html[dir="rtl"] .cta-button {
  font-family: 'Assistant', sans-serif;
}

html[dir="rtl"] .logo {
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}


/* ============================================================
   PROCESS SECTION — CENTERED EDITORIAL CARD
   ============================================================ */

#craft.section-content {
  padding-left: clamp(1.5rem, 5vw, 5rem);
  padding-right: clamp(1.5rem, 5vw, 5rem);
  justify-content: center;
  align-items: center;
  background: transparent;
}

#craft .section-inner {
  width: min(760px, calc(100vw - 3rem));
  max-width: 760px;
  padding: clamp(2.4rem, 4vw, 4rem) clamp(2rem, 4.5vw, 4.5rem);
  margin: 0 auto;
  background: rgba(248, 244, 236, 0.94);
  border: 1px solid rgba(36, 26, 16, 0.10);
  box-shadow: 0 24px 70px rgba(21, 17, 12, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

#craft .section-label,
#craft .section-heading,
#craft .section-body {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

#craft .section-label {
  margin-bottom: 1.1rem;
}

#craft .section-heading {
  max-width: 650px;
  margin-bottom: 1.25rem;
}

#craft .section-body {
  max-width: 590px;
}

@media (max-width: 768px) {
  #craft.section-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #craft .section-inner {
    width: 100%;
    padding: 2rem 1.35rem;
    background: rgba(248, 244, 236, 0.96);
  }
}


/* Header logo as Home */
.logo-home {
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.logo-home:hover {
  opacity: 0.62;
}


/* ============================================================
   PROCESS SECTION — REFINED CENTERED CARD
   ============================================================ */

#craft.section-content {
  padding: 0 1.5rem !important;
  justify-content: center !important;
  align-items: center !important;
  background: transparent !important;
}

#craft .section-inner {
  width: min(620px, calc(100vw - 3rem)) !important;
  max-width: 620px !important;
  padding: clamp(2.2rem, 3.6vw, 3.4rem) clamp(2rem, 4vw, 3.6rem) !important;
  margin: 0 auto !important;
  background: rgba(246, 239, 226, 0.95) !important;
  border: none !important;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(21, 17, 12, 0.16) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center !important;
}

#craft .section-label {
  display: block;
  margin: 0 0 0.9rem !important;
  text-align: center !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  color: #7a2e2e;
  letter-spacing: 0.03em !important;
}

#craft .section-heading {
  max-width: 560px !important;
  margin: 0 auto 1.15rem !important;
  text-align: center !important;
  font-size: clamp(2.35rem, 4vw, 3.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  color: #21170f !important;
}

#craft .section-body {
  max-width: 500px !important;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: clamp(1rem, 1.15vw, 1.1rem) !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  color: #5a4d3d !important;
}

@media (max-width: 768px) {
  #craft.section-content {
    padding: 0 1rem !important;
  }

  #craft .section-inner {
    width: 100% !important;
    padding: 2rem 1.4rem !important;
  }

  #craft .section-heading {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
  }
}


/* ============================================================
   PROFESSIONAL SCROLL OVERLAYS
   Sections stay pinned to the viewport instead of travelling
   vertically with the document.
   ============================================================ */

#scroll-container {
  z-index: 5;
}

.scroll-section {
  position: fixed !important;
  top: var(--header-height) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--header-height)) !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform;
}

.scroll-section.is-visible {
  visibility: visible;
}

.section-content {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 0;
}

/* Alternating editorial placement — stationary, not scrolling */
.align-left {
  justify-content: flex-start !important;
  padding-left: clamp(2rem, 6vw, 6rem) !important;
  padding-right: 52vw !important;
}

.align-right {
  justify-content: flex-end !important;
  padding-left: 52vw !important;
  padding-right: clamp(2rem, 6vw, 6rem) !important;
}

/* Keep cards refined and consistent */
.align-left .section-inner,
.align-right .section-inner {
  width: min(600px, 40vw);
  max-width: 600px;
  padding: clamp(2rem, 3vw, 3rem);
  background: rgba(246, 239, 226, 0.95);
  border: none;
  box-shadow: 0 20px 60px rgba(21, 17, 12, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Process remains centered */
#craft.section-content {
  justify-content: center !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#craft .section-inner {
  width: min(620px, calc(100vw - 3rem)) !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

/* Stats also stay pinned */
.section-stats {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The CTA is centered slightly lower for a calmer finish */
#begin.section-content {
  justify-content: center !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#begin .section-inner {
  width: min(680px, calc(100vw - 3rem));
  max-width: 680px;
  text-align: center;
}

#begin .section-label,
#begin .section-heading,
#begin .section-body,
#begin .section-note {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .align-left,
  .align-right {
    justify-content: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    width: 100%;
    max-width: 620px;
    padding: 1.6rem 1.35rem;
  }
}


/* ============================================================
   FULL-SCREEN CREAM STORY SEQUENCE
   001 → 002 → 003 → 004 crossfade in the center.
   The cream layer then fades away to reveal the film.
   ============================================================ */

#chapter-cream-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(246, 239, 226, 0.94);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}

/* Hide the numeric stats interruption from the story sequence */
.section-stats {
  display: none !important;
}

/* All four story chapters become centered fixed overlays */
#studio.section-content,
#work.section-content,
#craft.section-content,
.scroll-section.section-content[data-enter="36"] {
  position: fixed !important;
  top: var(--header-height) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--header-height)) !important;
  min-height: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: clamp(2rem, 5vw, 5rem) !important;
  background: transparent !important;
  pointer-events: none;
}

/* Remove every previous card treatment */
#studio .section-inner,
#work .section-inner,
#craft .section-inner,
.scroll-section.section-content[data-enter="36"] .section-inner {
  width: min(900px, 86vw) !important;
  max-width: 900px !important;
  padding: 0 !important;
  margin: 0 auto !important;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  text-align: center !important;
}

/* Center every text element */
#studio .section-label,
#studio .section-heading,
#studio .section-body,
#work .section-label,
#work .section-heading,
#work .section-body,
#craft .section-label,
#craft .section-heading,
#craft .section-body,
.scroll-section.section-content[data-enter="36"] .section-label,
.scroll-section.section-content[data-enter="36"] .section-heading,
.scroll-section.section-content[data-enter="36"] .section-body {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#studio .section-label,
#work .section-label,
#craft .section-label,
.scroll-section.section-content[data-enter="36"] .section-label {
  margin-bottom: 1.1rem !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: #7a2e2e !important;
}

#studio .section-heading,
#work .section-heading,
#craft .section-heading,
.scroll-section.section-content[data-enter="36"] .section-heading {
  max-width: 820px !important;
  margin-bottom: 1.25rem !important;
  font-size: clamp(3rem, 6vw, 6rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.045em !important;
  color: #21170f !important;
}

#studio .section-body,
#work .section-body,
#craft .section-body,
.scroll-section.section-content[data-enter="36"] .section-body {
  max-width: 650px !important;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem) !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
  color: #5a4d3d !important;
}

/* Text sections sit above cream overlay */
#studio,
#work,
#craft,
.scroll-section.section-content[data-enter="36"] {
  z-index: 5 !important;
}

@media (max-width: 768px) {
  #studio.section-content,
  #work.section-content,
  #craft.section-content,
  .scroll-section.section-content[data-enter="36"] {
    padding: 1.4rem !important;
  }

  #studio .section-inner,
  #work .section-inner,
  #craft .section-inner,
  .scroll-section.section-content[data-enter="36"] .section-inner {
    width: 100% !important;
  }

  #studio .section-heading,
  #work .section-heading,
  #craft .section-heading,
  .scroll-section.section-content[data-enter="36"] .section-heading {
    font-size: clamp(2.4rem, 12vw, 4rem) !important;
  }

  #studio .section-body,
  #work .section-body,
  #craft .section-body,
  .scroll-section.section-content[data-enter="36"] .section-body {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
}


/* ============================================================
   FRAME-SYNCED FILM TEXT
   No cream panel. The film stays fully visible behind the copy.
   ============================================================ */

#chapter-cream-overlay,
.marquee-wrap,
.section-stats,
#craft {
  display: none !important;
}

/* 001 / 002 / 003 are controlled directly by the current film frame */
#studio,
#concept,
#work {
  position: fixed !important;
  top: var(--header-height) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--header-height)) !important;
  min-height: 0 !important;
  z-index: 8 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 clamp(1.5rem, 5vw, 5rem) !important;
  background: transparent !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  will-change: opacity, transform;
}

/* Keep the text just above optical center, leaving the subject visible */
#studio .section-inner,
#concept .section-inner,
#work .section-inner {
  width: min(920px, 88vw) !important;
  max-width: 920px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  transform: translateY(-7vh);

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  text-align: center !important;
}

/* A subtle optical halo protects readability without becoming a box */
#studio .section-inner::before,
#concept .section-inner::before,
#work .section-inner::before {
  content: "";
  position: absolute;
  inset: -5rem -7rem;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(246, 239, 226, 0.30) 0%,
    rgba(246, 239, 226, 0.15) 38%,
    rgba(246, 239, 226, 0) 72%
  );
  pointer-events: none;
}

#studio .section-inner,
#concept .section-inner,
#work .section-inner {
  position: relative;
}

#studio .section-label,
#concept .section-label,
#work .section-label,
#studio .section-heading,
#concept .section-heading,
#work .section-heading,
#studio .section-body,
#concept .section-body,
#work .section-body {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#studio .section-label,
#concept .section-label,
#work .section-label {
  margin-bottom: 0.9rem !important;
  color: #6e2929 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-shadow:
    0 1px 10px rgba(246, 239, 226, 0.9),
    0 0 24px rgba(246, 239, 226, 0.8);
}

#studio .section-heading,
#concept .section-heading,
#work .section-heading {
  max-width: 860px !important;
  margin-bottom: 1rem !important;
  color: #21170f !important;
  font-size: clamp(3rem, 6vw, 6rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  text-shadow:
    0 1px 1px rgba(246, 239, 226, 0.85),
    0 3px 20px rgba(246, 239, 226, 0.72),
    0 0 42px rgba(246, 239, 226, 0.55);
}

#studio .section-body,
#concept .section-body,
#work .section-body {
  max-width: 650px !important;
  color: #3f3428 !important;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem) !important;
  line-height: 1.75 !important;
  font-weight: 600 !important;
  text-shadow:
    0 1px 8px rgba(246, 239, 226, 0.95),
    0 0 22px rgba(246, 239, 226, 0.85);
}

/* Ensure the canvas itself remains clean and visible */
.canvas-wrap {
  background: #2c160e;
}

/* The old dark chapter treatment is no longer used */
#dark-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 768px) {
  #studio,
  #concept,
  #work {
    padding: 0 1.25rem !important;
  }

  #studio .section-inner,
  #concept .section-inner,
  #work .section-inner {
    width: 100% !important;
    transform: translateY(-4vh);
  }

  #studio .section-heading,
  #concept .section-heading,
  #work .section-heading {
    font-size: clamp(2.4rem, 12vw, 4rem) !important;
  }

  #studio .section-body,
  #concept .section-body,
  #work .section-body {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }
}


/* ============================================================
   READABILITY + WORLD-REVEAL CTA
   ============================================================ */

/* Supporting copy should read as solid typography, not translucent text */
#studio .section-body,
#concept .section-body,
#work .section-body {
  color: #211912 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow:
    0 1px 2px rgba(250, 246, 238, 1),
    0 0 10px rgba(250, 246, 238, 0.98),
    0 0 22px rgba(250, 246, 238, 0.92),
    0 0 38px rgba(250, 246, 238, 0.72) !important;
}

/* CTA appears on top of the final world reveal */
#begin.section-content {
  position: fixed !important;
  top: var(--header-height) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--header-height)) !important;
  min-height: 0 !important;
  z-index: 9 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 1.5rem !important;
  background: transparent !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#begin .section-inner {
  width: min(700px, calc(100vw - 3rem)) !important;
  max-width: 700px !important;
  padding: clamp(2rem, 3.2vw, 3rem) clamp(1.8rem, 3.5vw, 3.4rem) !important;
  margin: 0 auto !important;

  background: rgba(246, 239, 226, 0.90) !important;
  border: 1px solid rgba(36, 26, 16, 0.09) !important;
  box-shadow: 0 22px 65px rgba(21, 17, 12, 0.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  text-align: center !important;
}

#begin .section-label,
#begin .section-heading,
#begin .section-body,
#begin .section-note {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#begin .section-heading {
  color: #21170f !important;
  margin-bottom: 1rem !important;
}

#begin .section-body {
  color: #34291f !important;
  font-weight: 650 !important;
  line-height: 1.7 !important;
}

#begin .cta-button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  margin-top: 1.8rem !important;
}

@media (max-width: 768px) {
  #begin .section-inner {
    width: 100% !important;
    padding: 1.7rem 1.25rem !important;
  }
}


/* ============================================================
   TYPOGRAPHY POLISH — slightly larger small type
   ============================================================ */

/* Header */
.logo {
  font-size: 1.08rem !important;
}

.nav-links a {
  font-size: 0.90rem !important;
  font-weight: 500 !important;
}

/* Small labels across the site */
.section-label {
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
}

/* Opening hero small copy */
.hero-inner .section-label {
  font-size: 0.86rem !important;
}

.hero-tagline {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem) !important;
  line-height: 1.65 !important;
  max-width: 36rem !important;
}

/* Scroll hint */
.scroll-indicator {
  font-size: 0.82rem !important;
}

/* Frame-synced chapter supporting text */
#studio .section-label,
#concept .section-label,
#work .section-label {
  font-size: 0.80rem !important;
}

#studio .section-body,
#concept .section-body,
#work .section-body {
  font-size: clamp(1.10rem, 1.48vw, 1.30rem) !important;
  line-height: 1.72 !important;
}

/* CTA supporting copy */
#begin .section-label {
  font-size: 0.80rem !important;
}

#begin .section-body {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem) !important;
}

#begin .cta-button {
  font-size: 0.95rem !important;
  padding: 1.15rem 2.65rem !important;
}

#begin .section-note {
  font-size: 0.78rem !important;
}

/* Almost-transparent CTA surface — keep only a soft glass veil */
#begin .section-inner {
  background: rgba(246, 239, 226, 0.16) !important;
  border: 1px solid rgba(246, 239, 226, 0.20) !important;
  box-shadow: 0 20px 60px rgba(21, 17, 12, 0.10) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* Keep CTA text readable over the image */
#begin .section-heading {
  text-shadow:
    0 1px 2px rgba(250, 246, 238, 0.95),
    0 0 18px rgba(250, 246, 238, 0.82),
    0 0 34px rgba(250, 246, 238, 0.62) !important;
}

#begin .section-body,
#begin .section-label,
#begin .section-note {
  text-shadow:
    0 1px 2px rgba(250, 246, 238, 0.98),
    0 0 14px rgba(250, 246, 238, 0.88),
    0 0 28px rgba(250, 246, 238, 0.70) !important;
}

@media (max-width: 768px) {
  .logo {
    font-size: 0.96rem !important;
  }

  .nav-links a {
    font-size: 0.78rem !important;
  }

  .hero-inner .section-label {
    font-size: 0.78rem !important;
  }

  .hero-tagline {
    font-size: 1.05rem !important;
  }

  #studio .section-body,
  #concept .section-body,
  #work .section-body {
    font-size: 1.04rem !important;
  }

  #begin .section-body {
    font-size: 1.03rem !important;
  }
}


/* Slightly larger header navigation */
.nav-links a {
  font-size: 1.02rem !important;
}

@media (max-width: 768px) {
  .nav-links a {
    font-size: 0.84rem !important;
  }
}


/* Larger chapter labels — no numbering */
#studio .section-label,
#concept .section-label,
#work .section-label,
#begin .section-label {
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  margin-bottom: 1.05rem !important;
}

@media (max-width: 768px) {
  #studio .section-label,
  #concept .section-label,
  #work .section-label,
  #begin .section-label {
    font-size: 1rem !important;
  }
}


/* Extra-large chapter labels */
#studio .section-label,
#concept .section-label,
#work .section-label,
#begin .section-label {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin-bottom: 1.15rem !important;
}

@media (max-width: 768px) {
  #studio .section-label,
  #concept .section-label,
  #work .section-label,
  #begin .section-label {
    font-size: 1.18rem !important;
  }
}


/* ============================================================
   ALIGN FRAME-SYNCED CHAPTERS TO THE SAME VERTICAL START
   ============================================================ */

/* Anchor the chapter copy by its TOP, not by the total block height.
   This keeps "הקונספט" and "הסרט" in exactly the same place even
   when one main heading wraps to two lines. */
#studio .section-inner,
#concept .section-inner,
#work .section-inner {
  position: absolute !important;
  top: 25.5% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
}

/* Make sure all three use the same width and alignment */
#studio .section-inner,
#concept .section-inner,
#work .section-inner {
  width: min(920px, 88vw) !important;
  max-width: 920px !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  #studio .section-inner,
  #concept .section-inner,
  #work .section-inner {
    top: 23% !important;
    width: calc(100% - 2.5rem) !important;
  }
}


/* ============================================================
   HARD ALIGN CHAPTER COPY TO THE SAME SCREEN Y
   ============================================================ */

/* Prevent any GSAP translateY from changing the screen position */
#studio,
#concept,
#work {
  transform: none !important;
}

/* Position the copy relative to the VIEWPORT, not to its own content height */
#studio .section-inner,
#concept .section-inner,
#work .section-inner {
  position: fixed !important;

  /* Exact shared vertical anchor for all chapter labels */
  top: 34vh !important;

  left: 50vw !important;
  right: auto !important;
  bottom: auto !important;

  width: min(920px, 88vw) !important;
  max-width: 920px !important;

  margin: 0 !important;
  transform: translateX(-50%) !important;

  text-align: center !important;
}

/* Force the label to occupy the exact same vertical slot */
#studio .section-label,
#concept .section-label,
#work .section-label {
  display: block !important;
  height: 1.8rem !important;
  line-height: 1.8rem !important;
  margin: 0 0 1rem 0 !important;
}

/* Main heading always begins at the same Y */
#studio .section-heading,
#concept .section-heading,
#work .section-heading {
  margin-top: 0 !important;
}

/* On smaller screens keep the same logic, just move the anchor slightly upward */
@media (max-width: 768px) {
  #studio .section-inner,
  #concept .section-inner,
  #work .section-inner {
    top: 29vh !important;
    width: calc(100vw - 2.5rem) !important;
  }
}


/* ============================================================
   KEEP "מהפריים הראשון עד האחרון" ON ONE LINE
   ============================================================ */

#work .section-inner {
  width: min(1280px, 92vw) !important;
  max-width: 1280px !important;
}

#work .section-heading {
  white-space: nowrap !important;
  font-size: clamp(3rem, 5.15vw, 5.5rem) !important;
  max-width: none !important;
}

/* Keep the supporting copy aligned like the other chapters */
#work .section-body {
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 900px) {
  #work .section-heading {
    white-space: normal !important;
    font-size: clamp(2.4rem, 10vw, 4rem) !important;
  }

  #work .section-inner {
    width: calc(100vw - 2.5rem) !important;
  }
}
