/* ============================================================
   ACTACE Design System — Warm Wabi-Sabi Editorial
   Asymmetric, artistic, warm earth tones
   ============================================================ */

/* --- Fonts ---
   Display: PP Pangaia (Medium) — drop .woff2 files in /assets/fonts/
   Body:    Inter (Google Fonts)
   Label:   Arial Narrow (system) for uppercase eyebrows
*/

/* PP Pangaia — place the licensed font files in /assets/fonts/.
   Expected filenames: PPPangaia-Medium.woff2 / .woff (and Regular if available). */
@font-face {
  font-family: 'PP Pangaia';
  src: url('../fonts/PPPangaia-Medium.woff2') format('woff2'),
       url('../fonts/PPPangaia-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Pangaia';
  src: url('../fonts/PPPangaia-Regular.woff2') format('woff2'),
       url('../fonts/PPPangaia-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   1. Custom Properties
   ============================================================ */
:root {
  /* Wild Bran Palette — cream paper, ink, electric blue */
  --c-bg: #FAF7F2;          /* White Merino — page background */
  --c-bg-warm: #F1ECE3;     /* soft cream */
  --c-bg-deep: #E4E0D4;     /* Satin Linen — warm panel */
  --c-bg-accent: #CBCFDA;   /* Mischka — cool blue-grey panel */
  --c-surface: #FFFFFF;
  --c-text: #292929;        /* Mine Shaft — ink body text */
  --c-text-light: #58595B;  /* Abbey */
  --c-text-faint: #9C9B9B;  /* Dusty Gray */
  --c-heading: #292929;
  --c-border: #CBCFDA;      /* Mischka */
  --c-border-light: #E4E0D4;
  --c-accent: #C88A3D;      /* Copper — primary */
  --c-accent-warm: #C88A3D;
  --c-accent-deep: #9A6526; /* deep copper */
  --c-accent-soft: rgba(200, 138, 61, 0.3);
  --c-dark: #292929;
  --c-dark-soft: #58595B;

  /* Aliases for clarity at call sites */
  --c-blue: #C88A3D;
  --c-blue-deep: #9A6526;

  /* Typography */
  --f-display: 'PP Pangaia', 'Fraunces', 'Noto Serif JP', serif;
  --f-body: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --f-accent: 'PP Pangaia', 'Fraunces', serif;
  --f-label: 'Arial Narrow', 'Inter', sans-serif;

  --fs-mega: clamp(3.25rem, 9vw, 6rem);
  --fs-hero: clamp(2.75rem, 7vw, 5.875rem);   /* ~94px */
  --fs-h1: clamp(2.4rem, 5.5vw, 4rem);         /* ~64px */
  --fs-h2: clamp(2.1rem, 4.5vw, 3.9rem);       /* ~64px */
  --fs-h3: clamp(1.15rem, 1.6vw, 1.5rem);      /* ~24px */
  --fs-h4: clamp(1rem, 1.2vw, 1.15rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);    /* ~18px */
  --fs-small: 0.99rem;                          /* ~15.9px */
  --fs-caption: 0.795rem;                       /* ~12.7px label */
  --fs-watermark: clamp(6rem, 18vw, 16rem);

  --lh-tight: 1.0;
  --lh-heading: 1.05;
  --lh-body: 1.6;

  --ls-tight: -0.02em;
  --ls-wide: 0.04em;
  --ls-ultra: 0.13em;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-card: 16px;
  --radius-pill: 999px;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6.5rem;
  --sp-3xl: 10rem;
  --sp-section: clamp(5rem, 10vh, 9rem);

  /* Layout */
  --container: 1256px;
  --container-narrow: 860px;
  --container-wide: 1440px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  /* Wide full-bleed side padding — shared by nav, hero content and sections */
  --page-pad: clamp(1.5rem, 5vw, 92px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-normal: 0.45s;
  --dur-slow: 0.85s;
  --dur-reveal: 1.1s;
}


/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
}

/* Lenis smooth scroll — disables native smooth-scroll while Lenis drives it.
   Lenis adds .lenis / .lenis-smooth / .lenis-stopped to <html>. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

::selection {
  background: var(--c-accent-warm);
  color: var(--c-surface);
}

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


/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--c-heading);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.text-hero {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
}

.text-accent {
  font-family: var(--f-accent);
  font-style: normal;
}

.text-label {
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-text-light);
}

.text-watermark {
  font-family: var(--f-accent);
  font-size: var(--fs-watermark);
  line-height: 0.85;
  color: var(--c-border-light);
  font-weight: 300;
  font-style: italic;
  pointer-events: none;
  user-select: none;
}

p + p { margin-top: var(--sp-sm); }


/* ============================================================
   4. Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--full { max-width: none; }

.section {
  padding-top: var(--sp-section);
  padding-bottom: var(--sp-section);
  position: relative;
}

.section--warm {
  background-color: var(--c-bg-warm);
}

.gsap-active .section--warm {
  background-color: transparent;
}

.section--deep {
  background-color: var(--c-bg-deep);
}

.gsap-active .section--deep {
  background-color: transparent;
}

.gsap-active .hero-bento {
  background-color: transparent;
}

.section--dark {
  background-color: var(--c-dark);
  color: var(--c-bg);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-bg);
}

.section--dark .text-label {
  color: var(--c-accent-warm);
}

.section--dark .section-heading__desc {
  color: var(--c-border);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   5. Buttons
   ============================================================ */
/* btn-icon pill: text + circular blue arrow chip */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 6px 6px 6px 20px;
  min-height: 52px;
  font-size: var(--fs-small);
  font-family: var(--f-body);
  font-weight: 400;
  letter-spacing: var(--ls-tight);
  text-transform: none;
  color: var(--c-heading);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  transition: background var(--dur-normal) var(--ease-out),
              color var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out);
  position: relative;
}

.btn span { position: relative; z-index: 1; white-space: nowrap; }

/* The arrow svg becomes the 40px circular chip */
.btn__arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;               /* clip the arrow as it swaps */
  transition: background var(--dur-normal) var(--ease-out);
}

.btn__arrow path {
  transform-box: view-box;
  transform-origin: center;
}

.btn:hover { border-color: var(--c-blue); }
.btn:hover .btn__arrow { background: var(--c-blue-deep); }

/* Arrow flies out to the right, a fresh one slides in from the left */
.btn:hover .btn__arrow path {
  animation: btnArrowSwap 0.5s var(--ease-out);
}

@keyframes btnArrowSwap {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(28px); }   /* exit right (clipped) */
  46%  { transform: translateX(-28px); }  /* jump off-screen left */
  100% { transform: translateX(0); }      /* slide back to centre */
}

/* Primary — solid blue chip on a tinted blue pill (used on dark/hero) */
.btn--primary {
  background: var(--c-accent-soft);
  color: #fff;
  border-color: transparent;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.btn--primary:hover { background: rgba(200, 138, 61, 0.45); border-color: transparent; }

/* Outline — transparent pill, ink text (default on cream) */
.btn--outline {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-heading);
}

/* Light variant for dark backgrounds */
.btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; }

.btn--small {
  min-height: 44px;
  padding: 4px 4px 4px 16px;
  gap: 0.85rem;
  font-size: var(--fs-caption);
}
.btn--small .btn__arrow { width: 34px; height: 34px; padding: 9px; }


/* ============================================================
   6. Section Headings — Artistic
   ============================================================ */
.section-heading {
  margin-bottom: var(--sp-xl);
  position: relative;
  text-align: center;
}

.section-heading__label {
  display: block;
  margin-bottom: var(--sp-sm);
}

.section-heading__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 0;
}

/* Thin rule retired in favour of clean centred headings */
.section-heading__rule {
  display: none;
}

.section-heading__desc {
  max-width: 560px;
  color: var(--c-text-light);
  margin: var(--sp-md) auto 0;
  line-height: var(--lh-body);
}

/* Decorative watermark retired for the clean editorial look */
.section-heading--artistic .text-watermark {
  display: none;
}

.section-heading--artistic .section-heading__title {
  position: relative;
  z-index: 1;
}


/* ============================================================
   7. Decorative Elements
   ============================================================ */
/* Diagonal accent line */
.deco-line {
  position: absolute;
  width: 1px;
  height: 120px;
  background: var(--c-border);
  transform-origin: top;
}

.deco-line--diagonal {
  transform: rotate(25deg);
}

.deco-line--accent {
  background: var(--c-accent);
  opacity: 0.5;
}

/* Dot grid pattern */
.deco-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, var(--c-border) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
}

/* Thin border frame (partial) */
.deco-frame {
  position: absolute;
  pointer-events: none;
}

.deco-frame::before,
.deco-frame::after {
  content: '';
  position: absolute;
  background: var(--c-border);
}

.deco-frame--tl::before {
  top: 0; left: 0;
  width: 60px; height: 1px;
}

.deco-frame--tl::after {
  top: 0; left: 0;
  width: 1px; height: 60px;
}

.deco-frame--br::before {
  bottom: 0; right: 0;
  width: 60px; height: 1px;
}

.deco-frame--br::after {
  bottom: 0; right: 0;
  width: 1px; height: 60px;
}

/* Circle outline */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  opacity: 0.4;
  pointer-events: none;
}


/* ============================================================
   8. Header & Navigation
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding-top: 1.75em;
  padding-bottom: 1.75em;
  transform: translateY(0%) rotate(0.001deg);
  transition: transform 0.525s cubic-bezier(0.625, 0.05, 0, 1),
              padding 0.525s cubic-bezier(0.625, 0.05, 0, 1),
              background-color 0.525s cubic-bezier(0.625, 0.05, 0, 1);
}

.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--sp-md) 0;
  box-shadow: 0 1px 0 var(--c-border-light);
}

/* Front page: nav overlays the hero video — white logo + links until scrolled */
.home .site-header:not(.is-scrolled) {
  background-color: transparent;
  padding-top: 3em;
}
.home .site-header:not(.is-scrolled) .site-logo__svg,
.home .site-header:not(.is-scrolled) .main-nav__link {
  color: #fff;
}
.home .site-header:not(.is-scrolled) .main-nav__link::after {
  background: #fff;
}
/* Toggle lives outside the header now — key its hero colour off a body class.
   White over the hero, but dark once the menu is open (over the white card). */
.home:not(.header-scrolled) .menu-toggle:not(.is-active) .menu-toggle__bar {
  background: #fff;
}
/* Hero header has extra top padding — nudge the fixed toggle to match the logo. */
.home:not(.header-scrolled) .menu-toggle:not(.is-active) {
  top: clamp(2.4rem, 4vw, 3.4rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: var(--ls-wide);
  font-weight: 400;
  color: var(--c-heading);
  transition: opacity var(--dur-fast);
}

.site-logo:hover { opacity: 0.6; }

.site-logo img {
  height: 34px;
  width: auto;
}

.site-logo__svg {
  display: block;
  height: 46px;
  width: auto;
  color: var(--c-heading);
}

/* Inline nav retired — the card menu (hamburger) is used at all widths */
.main-nav {
  display: none;
  align-items: center;
  gap: var(--sp-lg);
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.main-nav__link {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  letter-spacing: var(--ls-tight);
  text-transform: none;
  color: var(--c-heading);
  position: relative;
  padding: 0.25em 0;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-blue);
  transition: width var(--dur-normal) var(--ease-out);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: var(--c-heading);
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
  width: 100%;
}

.main-nav__cta { margin-left: var(--sp-sm); }

/* Menu Toggle — single morphing button, floats above the header AND the
   open menu card so one button opens and closes, always in the same spot. */
.menu-toggle {
  position: fixed;
  top: clamp(1.65rem, 2.4vw, 2.4rem);
  right: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  width: 34px;
  padding: 4px 0;
  z-index: 1300;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-heading);
  transition: transform var(--dur-normal) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              width var(--dur-normal) var(--ease-out);
  transform-origin: center;
}

/* Top bar a touch shorter for a tidier mark; full width when active */
.menu-toggle__bar:nth-child(1) { width: 70%; }
.menu-toggle:hover .menu-toggle__bar:nth-child(1) { width: 100%; }

.menu-toggle.is-active .menu-toggle__bar { width: 100%; }
.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.is-active .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation — floating card, inset from all 4 sides */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  padding: clamp(0.625rem, 2.5vw, 1rem);   /* the 4-side margin */
  background: rgba(41, 41, 41, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-normal) var(--ease-out),
              visibility var(--dur-normal) var(--ease-out);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;            /* never exceeds the padded viewport */
  background: var(--c-surface);
  border-radius: clamp(1rem, 4vw, 1.5rem);
  overflow: hidden;            /* clip children to the rounded corners */
  box-shadow: 0 24px 60px rgba(41, 41, 41, 0.18);
  transform: scale(0.97) translateY(10px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-dramatic),
              opacity var(--dur-normal) var(--ease-out);
}

.mobile-nav.is-open .mobile-nav__card {
  transform: none;
  opacity: 1;
}

/* Card head — logo + close.
   The X is the fixed .menu-toggle floating above the card: its centre sits
   14px below the toggle's `top`. Match the 34px logo's centre to it —
   logo centre = card inset + head padding-top + 17px — so the top padding is
   (toggle top + 14px) - card inset - 17px. Side/bottom keep the full gutter
   so the logo's left edge lines up with the menu items below. */
.mobile-nav__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(clamp(1.65rem, 2.4vw, 2.4rem) - clamp(0.625rem, 2.5vw, 1rem) - 3px)
    clamp(1.25rem, 5vw, 1.75rem)
    clamp(1.25rem, 5vw, 1.75rem);
}

.mobile-nav__logo-svg {
  display: block;
  height: 34px;
  width: auto;
  color: var(--c-heading);
}

/* Links — vertically centred, scrollable if they overflow */
.mobile-nav__links {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__menu {
  width: 100%;
  margin-block: auto;          /* centre when there's room, scroll when not */
  list-style: none;
}

.mobile-nav__menu li { border-top: 1px solid var(--c-border-light); }

.mobile-nav__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: clamp(0.7rem, 2.6vw, 1rem) clamp(1.25rem, 5vw, 1.75rem);
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--c-heading);
  transition: color var(--dur-fast) var(--ease-out);
}

/* Hover / current-page arrow */
.mobile-nav__menu a::after {
  content: '';
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.mobile-nav__menu a:hover::after,
.mobile-nav__menu .current-menu-item > a::after,
.mobile-nav__menu .current_page_item > a::after {
  opacity: 1;
  transform: none;
}

/* Card footer — two columns + language switch */
.mobile-nav__footer {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-border-light);
}

.mobile-nav__col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.1rem, 4.5vw, 1.6rem) clamp(1.25rem, 5vw, 1.75rem);
}

.mobile-nav__col--right {
  border-left: 1px solid var(--c-border-light);
  justify-content: space-between;
}

.mobile-nav__social {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav__minor {
  font-size: var(--fs-small);
  color: var(--c-heading);
  transition: color var(--dur-fast);
}
.mobile-nav__minor:hover { color: var(--c-accent); }

.mobile-nav__lang {
  margin-top: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
}
.mobile-nav__lang a { color: var(--c-text-light); }
.mobile-nav__lang a.is-active { color: var(--c-heading); font-weight: 700; }
.mobile-nav__lang span { color: var(--c-text-faint); }

/* On wider screens the card docks to the right as a drawer — still inset on
   all 4 sides, still within the viewport — and slides in from the right. */
@media (min-width: 768px) {
  .mobile-nav {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    justify-content: flex-end;
  }
  .mobile-nav__card {
    max-width: 460px;
    transform: translateX(40px);   /* slide in from the right */
  }
  /* Card inset grew here, so re-derive the head's top padding to keep the
     logo centred on the X (same formula, new inset). */
  .mobile-nav__head {
    padding-top: calc(clamp(1.65rem, 2.4vw, 2.4rem) - clamp(1rem, 2.5vw, 1.5rem) - 3px);
  }
}


/* ============================================================
   9. Hero — Bento Grid with Scroll Animation
   Small thumbnails float around the heading, grow into full grid
   ============================================================ */
.hero-bento {
  position: relative;
  height: 250vh;
  width: 100%;
  background: var(--c-bg);
}

.hero-bento__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* Use the same container logic as the rest of the site */
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: calc(80px + var(--sp-lg)); /* clear the site header */
  padding-bottom: var(--sp-lg);
}

/* --- Heading: centered, fades out as cells grow --- */
.hero-bento__heading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(80px + var(--sp-lg)) var(--sp-2xl) var(--sp-lg);
  pointer-events: none;
  will-change: opacity;
}

.hero-bento__heading > * {
  pointer-events: auto;
}

.hero-bento__label {
  display: block;
  margin-bottom: var(--sp-sm);
  color: var(--c-accent);
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.3s forwards;
}

.hero-bento__title {
  color: var(--c-heading);
  opacity: 0;
  transform: translateY(25px);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.5s forwards;
}

.hero-bento__subtitle {
  font-family: var(--f-accent);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-style: italic;
  color: var(--c-accent);
  margin-top: var(--sp-sm);
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.7s forwards;
}

.hero-bento__intro {
  color: var(--c-text-light);
  max-width: 460px;
  margin-top: var(--sp-md);
  font-size: var(--fs-small);
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.9s forwards;
}

.hero-bento__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  margin-top: var(--sp-lg);
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 1.1s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Bento Grid --- */
.hero-bento__grid {
  position: absolute;
  /* Reserve a band above the grid for the "Productions" title */
  top: calc(120px + var(--sp-lg) + var(--sp-2xl));
  bottom: var(--sp-lg);
  left: var(--gutter);
  right: var(--gutter);
  /* Constrain to same max-width as sticky container */
  max-width: calc(var(--container-wide) - var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: var(--sp-sm);
  z-index: 2;
}

/* Cell placement — final expanded positions */
.bento-cell--hero {
  grid-column: 1 / 9;
  grid-row: 1 / 5;
  --b-off-x: -25%;
  --b-off-y: -10%;
}

.bento-cell--side-a {
  grid-column: 9 / 13;
  grid-row: 1 / 4;
  --b-off-x: 25%;
  --b-off-y: -10%;
}

.bento-cell--side-b {
  grid-column: 9 / 13;
  grid-row: 4 / 7;
  --b-off-x: 25%;
  --b-off-y: 80%;
}

.bento-cell--bottom-a {
  grid-column: 1 / 6;
  grid-row: 5 / 7;
  --b-off-x: -25%;
  --b-off-y: 80%;
}

.bento-cell--bottom-b {
  grid-column: 6 / 9;
  grid-row: 5 / 7;
  --b-off-x: 10%;
  --b-off-y: 80%;
}

.bento-cell--bottom-c {
  grid-column: 9 / 13;
  grid-row: 5 / 7;
  --b-off-x: 25%;
  --b-off-y: 80%;
}

/* --- Adapt the mosaic to the number of flyers (1–6) so it always fills --- */
.hero-bento__grid--count-1 .bento-cell--hero {
  grid-column: 1 / 13;
  grid-row: 1 / 7;
}

.hero-bento__grid--count-2 .bento-cell--hero {
  grid-column: 1 / 8;
  grid-row: 1 / 7;
}
.hero-bento__grid--count-2 .bento-cell--side-a {
  grid-column: 8 / 13;
  grid-row: 1 / 7;
}

.hero-bento__grid--count-3 .bento-cell--hero {
  grid-column: 1 / 9;
  grid-row: 1 / 7;
}
.hero-bento__grid--count-3 .bento-cell--side-a {
  grid-column: 9 / 13;
  grid-row: 1 / 4;
}
.hero-bento__grid--count-3 .bento-cell--side-b {
  grid-column: 9 / 13;
  grid-row: 4 / 7;
}

.hero-bento__grid--count-4 .bento-cell--hero {
  grid-column: 1 / 9;
  grid-row: 1 / 5;
}
.hero-bento__grid--count-4 .bento-cell--bottom-a {
  grid-column: 1 / 9;
  grid-row: 5 / 7;
}

/* count-5 uses the default placements above. */

.hero-bento__grid--count-6 .bento-cell--hero {
  grid-column: 1 / 7;
  grid-row: 1 / 5;
}
.hero-bento__grid--count-6 .bento-cell--side-a {
  grid-column: 7 / 13;
  grid-row: 1 / 3;
}
.hero-bento__grid--count-6 .bento-cell--side-b {
  grid-column: 7 / 13;
  grid-row: 3 / 5;
}
.hero-bento__grid--count-6 .bento-cell--bottom-a {
  grid-column: 1 / 5;
  grid-row: 5 / 7;
}
.hero-bento__grid--count-6 .bento-cell--bottom-b {
  grid-column: 5 / 9;
  grid-row: 5 / 7;
}
.hero-bento__grid--count-6 .bento-cell--bottom-c {
  grid-column: 9 / 13;
  grid-row: 5 / 7;
}

/* --- Cell base --- */
.bento-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--bento-radius, 10px);
  will-change: transform;
  /* Scatter logic: use individual offsets to clear the center initially */
  transform:
    translateX(calc(var(--b-off-x, 0%) * (1 - var(--b-progress, 0))))
    translateY(calc(var(--b-ty, -40%) + (var(--b-off-y, 0%) * (1 - var(--b-progress, 0)))))
    scale(var(--b-scale, 0.4));
  transform-origin: center center;
  box-shadow: 0 4px 24px rgba(74, 63, 56, 0.12);
}

.bento-cell__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bento-cell__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.bento-cell__link:hover img {
  transform: scale(1.04);
}

/* --- Production info overlay --- always visible as a title bar --- */
.bento-cell__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-sm) var(--sp-md);
  background: linear-gradient(
    0deg,
    rgba(59, 49, 43, 0.8) 0%,
    rgba(59, 49, 43, 0.3) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.bento-cell__status {
  display: inline-block;
  width: fit-content;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-accent-warm);
  margin-bottom: 4px;
  opacity: var(--b-detail, 0);
  will-change: opacity;
}

.bento-cell__title {
  font-family: var(--f-display);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-bg);
  line-height: var(--lh-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Titles grow when cells are fully expanded */
.bento-cell.is-revealed .bento-cell__title {
  font-size: var(--fs-h4);
  white-space: normal;
}

.bento-cell--hero.is-revealed .bento-cell__title {
  font-size: var(--fs-h3);
}

.bento-cell__period {
  font-family: var(--f-accent);
  font-size: var(--fs-caption);
  color: var(--c-border);
  margin-top: 2px;
  opacity: var(--b-detail, 0);
  will-change: opacity;
}

/* --- Section title — sits in the band above the grid, fades in as it forms --- */
.hero-bento__grid-title {
  position: absolute;
  top: calc(120px + var(--sp-lg));
  left: var(--gutter);
  right: var(--gutter);
  text-align: center;
  z-index: 4;
  opacity: var(--b-gridtitle, 0);
  transform: translateY(calc((1 - var(--b-gridtitle, 0)) * -14px));
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-bento__grid-title .text-label {
  display: block;
  margin-bottom: var(--sp-xs);
  color: var(--c-accent);
}

.hero-bento__grid-title-text {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  margin: 0;
  color: var(--c-heading);
}

.hero-bento__grid-title-text::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-accent);
  margin: var(--sp-sm) auto 0;
}

/* --- Footer "View All" link — below the grid, normal flow --- */
.hero-bento__footer {
  text-align: center;
  padding: var(--sp-xl) var(--gutter) var(--sp-lg);
  opacity: var(--b-footer, 0);
  will-change: opacity;
}

/* --- Scroll hint --- */
.hero-bento__scroll-hint {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--c-text-light);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-dramatic) 1.6s forwards;
  transition: opacity 0.4s var(--ease-out);
}

.hero-bento__scroll-hint.is-hidden {
  opacity: 0 !important;
}

.hero-bento__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scrollPulse 2.5s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-bento {
    height: 220vh;
  }

  .hero-bento__sticky {
    padding-top: calc(60px + var(--sp-sm));
    padding-bottom: var(--sp-sm);
  }

  .hero-bento__grid {
    top: calc(60px + var(--sp-sm) + var(--sp-2xl));
    bottom: var(--sp-sm);
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: var(--sp-xs);
    z-index: 2;
  }

  .hero-bento__heading {
    padding: calc(60px + var(--sp-sm)) var(--gutter) var(--sp-sm);
    z-index: 5;
  }

  .bento-cell {
    width: auto;
    height: auto;
    flex-shrink: 1;
    border-radius: var(--bento-radius, 8px);
    transform:
      translateX(calc(var(--b-off-x, 0%) * (1 - var(--b-progress, 0))))
      translateY(calc(var(--b-ty, -40%) + (var(--b-off-y, 0%) * (1 - var(--b-progress, 0)))))
      scale(var(--b-scale, 0.4));
  }

  .bento-cell--hero {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
    --b-off-x: 0%;
    --b-off-y: -20%;
  }
  .bento-cell--side-a {
    grid-column: 1 / 3;
    grid-row: 4 / 6;
    --b-off-x: -25%;
    --b-off-y: 50%;
  }
  .bento-cell--side-b {
    grid-column: 3 / 5;
    grid-row: 4 / 6;
    --b-off-x: 25%;
    --b-off-y: 50%;
  }
  .bento-cell--bottom-a {
    grid-column: 1 / 3;
    grid-row: 6 / 8;
    --b-off-x: -25%;
    --b-off-y: 80%;
  }
  .bento-cell--bottom-b {
    grid-column: 3 / 5;
    grid-row: 6 / 8;
    --b-off-x: 25%;
    --b-off-y: 80%;
  }
  .bento-cell--bottom-c {
    grid-column: 1 / 5;
    grid-row: 7 / 9;
    --b-off-x: 0%;
    --b-off-y: 80%;
  }

  /* Shrunk grid layouts on mobile */
  .hero-bento__grid--count-1 .bento-cell--hero {
    grid-column: 1 / 5;
    grid-row: 1 / 9;
  }

  .hero-bento__grid--count-2 .bento-cell--hero {
    grid-column: 1 / 5;
    grid-row: 1 / 5;
  }
  .hero-bento__grid--count-2 .bento-cell--side-a {
    grid-column: 1 / 5;
    grid-row: 5 / 9;
  }

  .hero-bento__grid--count-3 .bento-cell--hero {
    grid-column: 1 / 5;
    grid-row: 1 / 5;
  }
  .hero-bento__grid--count-3 .bento-cell--side-a {
    grid-column: 1 / 3;
    grid-row: 5 / 9;
  }
  .hero-bento__grid--count-3 .bento-cell--side-b {
    grid-column: 3 / 5;
    grid-row: 5 / 9;
  }

  .hero-bento__grid--count-4 .bento-cell--bottom-a {
    grid-column: 1 / 5;
    grid-row: 6 / 8;
  }

  /* count-5 uses the default mobile placements above. */

  .hero-bento__grid--count-6 .bento-cell--hero {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
  }
  .hero-bento__grid--count-6 .bento-cell--side-a {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
  }
  .hero-bento__grid--count-6 .bento-cell--side-b {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
  }
  .hero-bento__grid--count-6 .bento-cell--bottom-a {
    grid-column: 1 / 3;
    grid-row: 5 / 7;
  }
  .hero-bento__grid--count-6 .bento-cell--bottom-b {
    grid-column: 3 / 5;
    grid-row: 5 / 7;
  }
  .hero-bento__grid--count-6 .bento-cell--bottom-c {
    grid-column: 1 / 5;
    grid-row: 7 / 9;
  }

  .hero-bento__grid-title {
    top: calc(60px + var(--sp-sm));
  }

  .bento-cell__info {
    display: flex;
    padding: var(--sp-xs) var(--sp-sm);
  }

  .hero-bento__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
  }

  .hero-bento__scroll-hint {
    display: none;
  }

  .hero-bento__footer {
    padding: var(--sp-lg) var(--gutter) var(--sp-sm);
  }
}

@media (max-width: 480px) {
  .hero-bento__intro,
  .hero-bento__actions {
    display: none;
  }
}


/* ============================================================
   10. Production Cards — Artistic offset
   ============================================================ */
.production-card {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
  box-shadow: 0 2px 20px rgba(90, 78, 71, 0.06);
}

.production-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(90, 78, 71, 0.12);
}

.production-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--c-bg-deep);
}

.production-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  filter: saturate(0.9);
}

/* No-crop flyer: the frame takes the flyer's own shape, so it fills with no crop */
.production-card__image.is-flyer {
  aspect-ratio: var(--flyer-ar, 3 / 4);
}

.production-card:hover .production-card__image img {
  transform: scale(1.05);
  filter: saturate(1);
}

.production-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(59, 49, 43, 0.85) 0%,
    rgba(59, 49, 43, 0) 55%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-lg);
  transition: background var(--dur-normal) var(--ease-out);
}

.production-card:hover .production-card__overlay {
  background: linear-gradient(
    to top,
    rgba(59, 49, 43, 0.92) 0%,
    rgba(59, 49, 43, 0.05) 65%
  );
}

.production-card__status {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-accent-warm);
  margin-bottom: var(--sp-xs);
}

.production-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--c-bg);
}

.production-card__meta {
  font-size: var(--fs-small);
  color: var(--c-border);
  margin-top: var(--sp-xs);
}

.production-card__excerpt {
  font-size: var(--fs-small);
  color: var(--c-bg-warm);
  margin-top: var(--sp-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--dur-normal) var(--ease-out);
}

.production-card:hover .production-card__excerpt {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered production grid */
.productions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.productions-grid--featured {
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-xl);
  align-items: start;
}

/* Stagger: offset every other card */
.productions-grid--featured .production-card:nth-child(even) {
  margin-top: var(--sp-3xl);
}

@media (max-width: 1024px) {
  .productions-grid { grid-template-columns: repeat(2, 1fr); }
  .productions-grid--featured { grid-template-columns: 1fr 1fr; }
  .productions-grid--featured .production-card:nth-child(even) {
    margin-top: var(--sp-xl);
  }
}

@media (max-width: 600px) {
  .productions-grid,
  .productions-grid--featured { grid-template-columns: 1fr; }
  .productions-grid--featured .production-card:nth-child(even) {
    margin-top: 0;
  }
}

/* Production filters */
.production-filters {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}

.production-filter {
  padding: var(--sp-xs) var(--sp-md);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid var(--c-border-light);
  color: var(--c-text-light);
  transition: all var(--dur-fast);
  background: transparent;
}

.production-filter:hover,
.production-filter.is-active {
  border-color: var(--c-accent);
  color: var(--c-heading);
  background: rgba(160, 123, 96, 0.08);
}

.production-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--sp-2xl);
  align-items: start;
}

.production-detail__intro {
  max-width: 760px;
  margin-bottom: var(--sp-lg);
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--c-heading);
}

.production-detail__meta {
  position: sticky;
  top: 100px;
}

.production-meta {
  border: 1px solid var(--c-border-light);
  padding: var(--sp-lg);
}

.production-meta__item {
  margin-bottom: var(--sp-md);
}

.production-meta__item:last-child {
  margin-bottom: 0;
}

.production-meta__label {
  display: block;
  margin-bottom: var(--sp-xs);
}

.production-meta__item p {
  font-size: var(--fs-small);
  color: var(--c-text-light);
  white-space: pre-line;
}

.production-meta__action {
  margin-top: var(--sp-lg);
}

.production-meta__action .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .production-detail {
    grid-template-columns: 1fr;
  }

  .production-detail__meta {
    position: static;
  }
}


/* ============================================================
   10b. Single Production — Editorial Hero (no image)
   ============================================================ */
.prod-hero {
  padding-top: calc(80px + var(--sp-2xl));
  padding-bottom: var(--sp-2xl);
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}

.prod-hero__deco-dots {
  top: 18%;
  right: 4%;
  width: 100px;
  height: 100px;
}

.prod-hero__deco-circle {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -100px;
}

.prod-hero .breadcrumbs {
  margin-bottom: var(--sp-lg);
}

.prod-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
  flex-wrap: wrap;
}

.prod-hero__label {
  color: var(--c-accent);
}

.prod-hero__period {
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-text-faint);
}

/* The star: big editorial title */
.prod-hero__title {
  font-size: var(--fs-mega);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-heading);
  max-width: 14ch;
  /* subtle reveal */
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.2s both;
}

.prod-hero__subtitle {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  font-style: italic;
  color: var(--c-text-light);
  margin-top: var(--sp-md);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.45s both;
}

/* thin accent rule under the hero area */
.prod-hero::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--c-accent);
  margin: 0 var(--page-pad);
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (max-width: 768px) {
  .prod-hero {
    padding-bottom: var(--sp-xl);
  }
  .prod-hero__title {
    font-size: var(--fs-h1);
    max-width: none;
  }
}


/* ============================================================
   10c. Single Production — Image Left / Details Right Split
   ============================================================ */
.prod-split {
  position: relative;
}

.prod-split__deco {
  bottom: 10%;
  left: 2%;
  width: 110px;
  height: 110px;
}

.prod-split__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

/* Image column sticks so the flyer follows the taller details column.
   `top` clears the fixed header. */
.prod-split__image {
  position: sticky;
  top: clamp(96px, 12vh, 120px);
  align-self: start;
}

/* ---- Image column ---- */
.prod-split__img-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  /* decorative shadow offset — same as about-intro__image on homepage */
  box-shadow: 22px 22px 0 var(--c-bg-deep);
}

/* portrait flyers keep a nice ratio */
.prod-split__img-wrap[data-orientation="portrait"],
.prod-split__img-wrap {
  aspect-ratio: 3 / 4;
}

/* landscape flyers */
.prod-split__img-wrap[data-orientation="landscape"] {
  aspect-ratio: 16 / 10;
}

.prod-split__img-wrap img,
.prod-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.prod-split__img-wrap:hover .prod-split__img {
  transform: scale(1.03);
}

/* decorative frame behind image (same trick as about-intro) */
.prod-split__img-wrap::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  z-index: -1;
}

/* empty state when no thumbnail */
.prod-split__img-wrap--empty {
  aspect-ratio: 3 / 4;
  background: var(--c-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-split__img-wrap--empty svg {
  width: 64px;
  height: 64px;
  color: var(--c-border);
}

/* ---- Details column ---- */
.prod-split__details {
  padding-top: var(--sp-xl);
}

.prod-split__intro {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--c-text);
  margin-bottom: var(--sp-xl);
}

.prod-split__content {
  margin-bottom: var(--sp-xl);
  color: var(--c-text-light);
}

/* Meta box — reuse existing .production-meta styles, add a top separator */
.prod-split__meta {
  border-top: 1px solid var(--c-border-light);
  padding-top: var(--sp-lg);
  margin-top: var(--sp-lg);
}

@media (max-width: 1024px) {
  .prod-split__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }
}

@media (max-width: 768px) {
  .prod-split__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  /* On mobile image goes first (already in DOM order), details below */
  .prod-split__details {
    padding-top: 0;
  }

  /* Single column — let the flyer scroll normally instead of sticking */
  .prod-split__image {
    position: static;
  }

  .prod-split__img-wrap {
    box-shadow: 14px 14px 0 var(--c-bg-deep);
  }
}


/* ============================================================
   10d. Productions Archive — hero lead & filter pills
   ============================================================ */

/* Lead paragraph that sits below the big archive title */
.prod-hero__lead {
  color: var(--c-text-light);
  font-size: var(--fs-body);
  max-width: 520px;
  margin-top: var(--sp-md);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.6s both;
}

/* Archive variant: slightly less vertical space since there's a lead text */
.prod-hero--archive {
  padding-bottom: var(--sp-xl);
}

/* Filter bar wrapper — warm strip between hero and grid */
.prod-archive-filters-bar {
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
  padding: var(--sp-md) 0;
}

/* Scrollable pill row */
.prod-archive-filters {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* Individual filter pill — matches the site btn aesthetic */
.prod-archive-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45em 1.1em;
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-text-light);
  background: transparent;
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.prod-archive-filter:hover {
  border-color: var(--c-accent);
  color: var(--c-heading);
}

.prod-archive-filter.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* Archive section: tighter top padding since filter bar sits above */
.prod-archive-section {
  padding-top: var(--sp-xl);
}

/* Grid — reuse prod-grid masonry (already defined in the home page section) */
.prod-archive-grid {
  /* inherits prod-grid columns: 3 */
}

/* Styled pagination */
.prod-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-2xl);
  flex-wrap: wrap;
}

.prod-archive-pagination__item {
  display: contents;
}

/* Style all links and current-page spans rendered by WP */
.prod-archive-pagination__item a,
.prod-archive-pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--sp-sm);
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-pill);
  color: var(--c-text-light);
  transition: all var(--dur-fast) var(--ease-out);
}

.prod-archive-pagination__item a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.prod-archive-pagination__item .current {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* SVG prev/next arrows inside pagination */
.prod-archive-pagination__item a svg {
  display: block;
  pointer-events: none;
}

/* Empty state */
.prod-archive-empty {
  text-align: center;
  padding: var(--sp-3xl) 0;
  color: var(--c-text-light);
}

@media (max-width: 768px) {
  .prod-archive-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--sp-xs);
  }
  .prod-archive-filters::-webkit-scrollbar { display: none; }

  .prod-archive-filter { white-space: nowrap; }
}


/* ============================================================
   11. Service Cards — icon editorial
   ============================================================ */
.service-card {
  padding: var(--sp-xl) var(--sp-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  background: var(--c-bg-deep);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: width var(--dur-slow) var(--ease-out);
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover {
  border-color: var(--c-border);
  box-shadow: 0 8px 30px rgba(90, 78, 71, 0.08);
  transform: translateY(-3px);
}

.service-card__phosphor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-lg);
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 50%;
  color: var(--c-accent);
  background: rgba(255, 255, 255, 0.32);
  transition: color var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.service-card__phosphor i {
  font-size: 1.8rem;
  line-height: 1;
}

.service-card:hover .service-card__phosphor {
  color: var(--c-blue);
  border-color: var(--c-accent-soft);
  background: rgba(200, 138, 61, 0.08);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-lg);
  color: var(--c-accent);
}

.service-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-sm);
  color: var(--c-heading);
}

.service-card__desc {
  color: var(--c-text-light);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}


/* ============================================================
   11b. Services — overlapping scroll-stacked cards
   ============================================================ */
/* ------------------------------------------------------------
   Services — overlapping scroll-stacked cards (3 headline
   services; the full list lives on the Services page).
   Cards are position: sticky so each one rises and overlaps the
   previous as you scroll. GSAP scrubs a scale-down + dim on the
   covered card; without GSAP the stack still works on its own.
   NOTE: no overflow:hidden on this section or any ancestor —
   that would break sticky.
   ------------------------------------------------------------ */
.svc {
  background-color: var(--c-bg);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

/* Pre-hide GSAP-animated bits so they don't flash before ScrollTrigger
   fires. JS reveals them (GSAP timeline, or a plain fallback). */
.cap-anim { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .cap-anim { opacity: 1; }
}

.svc__intro {
  max-width: 52ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.svc__eyebrow { display: block; margin-bottom: var(--sp-sm); }

.svc__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: var(--sp-md);
}

.svc__lead {
  color: var(--c-text-light);
  line-height: var(--lh-body);
}

/* The stack — each card sticks near the top; the gap gives the scroll
   distance over which the next card travels up and overlaps. */
.svc__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vh, 4rem);
}

/* Warm card — cream surface, oversized copper number, inset image */
.svc__card {
  position: sticky;
  /* later cards stick slightly lower, leaving a sliver of the deck visible */
  top: calc(clamp(5rem, 11vh, 8rem) + var(--i) * 12px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: clamp(22rem, 56vh, 34rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--c-bg-warm);
  color: var(--c-heading);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(41, 41, 41, 0.14);
  will-change: transform;
  transform-origin: center top;
}

.svc__card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.svc__num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  color: var(--c-accent);
  letter-spacing: var(--ls-wide);
}

.svc__card-title {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: var(--sp-md);
  color: var(--c-heading);
}

.svc__card-desc {
  color: var(--c-text-light);
  line-height: var(--lh-body);
  max-width: 42ch;
  margin-bottom: var(--sp-lg);
}

.svc__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--c-heading);
  transition: gap var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.svc__card-link:hover { color: var(--c-accent); gap: 0.85rem; }
.svc__card-link svg { flex: none; }

/* Inset image — framed by the card padding, rounded corners */
.svc__card-media {
  position: relative;
  align-self: stretch;
  min-height: clamp(12rem, 30vh, 20rem);
  border-radius: calc(var(--radius-lg) - 0.5rem);
  overflow: hidden;
  background: var(--c-bg-deep);
}

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

/* Dim veil GSAP fades in as the card gets covered by the next one */
.svc__card-shade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.svc__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 860px) {
  .svc__card {
    grid-template-columns: 1fr;
    /* text first, image below; cap height so the card fits the viewport */
    grid-template-rows: auto clamp(10rem, 28vh, 15rem);
    min-height: 0;
    gap: clamp(1.25rem, 5vw, 2rem);
    top: calc(clamp(4.5rem, 12vh, 6.5rem) + var(--i) * 10px);
  }
  .svc__num { font-size: clamp(2.5rem, 14vw, 4rem); }
}


/* ============================================================
   12. Studio Quick Facts — artistic blocks
   ============================================================ */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-sm);
}

.quick-fact {
  background: var(--c-bg-deep);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.quick-fact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: var(--c-blue);
}

.quick-fact__value {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: var(--sp-xs);
}

.quick-fact__label {
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.section--dark .quick-fact {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--dark .quick-fact__value {
  color: var(--c-bg);
}

.section--dark .quick-fact__label {
  color: var(--c-border);
}


/* ============================================================
   13. CTA Band — warm accent
   ============================================================ */
.cta-band {
  padding: var(--sp-2xl) 0;
}

/* The band is now a contained rounded card, inset by the page gutters */
.cta-band__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-bg-deep);
  padding: clamp(2rem, 5vw, 4rem);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 138, 61, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200, 138, 61, 0.05) 0%, transparent 60%);
}

.cta-band__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  max-width: 12ch;
  margin: 0;
  color: var(--c-heading);
}

.cta-band__title { max-width: none; }

.cta-band__desc {
  color: var(--c-text-light);
  max-width: 480px;
  margin-top: var(--sp-md);
}

@media (max-width: 768px) {
  .cta-band__content { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   13b. Video Band — full-bleed video with dark filter
   ============================================================ */
.video-band {
  position: relative;
  min-height: clamp(520px, 78vh, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-2xl) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.video-band__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-band__filter {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(41, 41, 41, 0.35), rgba(41, 41, 41, 0.65)),
    rgba(41, 41, 41, 0.2);
}

.video-band__eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-lg);
}

.video-band__title {
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  max-width: 16ch;
}

.video-band__lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: var(--sp-md) auto 0;
  line-height: var(--lh-body);
}

.video-band__actions {
  margin-top: var(--sp-lg);
  display: flex;
  justify-content: center;
}

/* Inset preview video framed inside the band */
.video-band__preview {
  width: min(739px, 100%);
  margin-top: var(--sp-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 739 / 260;
}

.video-band__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   13c. Wild Stories — rounded blog cards
   ============================================================ */
.stories {
  padding-top: var(--sp-section);
  padding-bottom: var(--sp-section);
}

.stories__heading {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.stories__title {
  font-size: var(--fs-h2);
  font-weight: 500;
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.story-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--c-bg-deep);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(41, 41, 41, 0.1);
}

.story-card__thumb {
  position: relative;
  aspect-ratio: 277 / 214;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg-deep);
}

.story-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.story-card:hover .story-card__thumb img { transform: scale(1.05); }

.story-card__chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
}

.story-card__chip svg { width: 16px; height: 16px; }

.story-card__body { padding: var(--sp-md) var(--sp-xs) var(--sp-xs); }

.story-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.story-card__cat {
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-blue);
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
}

.story-card__read {
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.story-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--c-heading);
}

@media (max-width: 1024px) {
  .stories__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stories__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   14. Studio Page Components
   ============================================================ */
.studio-nav {
  position: sticky;
  top: 90px;
  z-index: 100;
  background: var(--deep-bg, var(--c-bg-deep));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.studio-nav__list {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-sm) var(--gutter);
  white-space: nowrap;
  justify-content: center;
}

.studio-nav__link {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-light);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid transparent;
  transition: all var(--dur-fast);
}

.studio-nav__link:hover,
.studio-nav__link.is-active {
  color: var(--c-heading);
  border-bottom-color: var(--c-accent);
}

/* Studio floor cards */
.studio-floor-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 520px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(41, 41, 41, 0.06);
  overflow: hidden;
}

.studio-floor-card--reverse {
  grid-template-columns: minmax(320px, 0.65fr) minmax(0, 1.35fr);
}

.studio-floor-card--no-media {
  grid-template-columns: 1fr;
  min-height: auto;
}

.studio-floor-card__media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 520px;
  padding: 0;
  border: 0;
  background: var(--c-bg-deep);
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.studio-floor-card--reverse .studio-floor-card__media {
  order: 2;
}

.studio-floor-card__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-normal) var(--ease-out);
  filter: saturate(0.92);
}

.studio-floor-card__media:hover img {
  transform: scale(1.035);
  filter: saturate(1);
}

.studio-floor-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-lg);
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 3.5rem);
  background: var(--deep-bg, var(--c-bg-deep));
}

.studio-floor-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-md);
  align-items: end;
}

.studio-floor-card__floor {
  font-family: var(--f-display);
  font-size: clamp(5.5rem, 10vw, 10rem);
  line-height: 0.78;
  color: rgba(41, 41, 41, 0.1);
  letter-spacing: 0;
}

.studio-floor-card__label {
  display: block;
  margin-bottom: var(--sp-xs);
  color: var(--c-text-light);
}

.studio-floor-card__title {
  font-family: var(--f-body);
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  line-height: var(--lh-heading);
  color: var(--c-heading);
  letter-spacing: 0;
}

.studio-floor-card__specs {
  margin: 0;
  border-top: 1px solid rgba(41, 41, 41, 0.22);
}

.studio-floor-card__spec {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 0.6fr);
  gap: var(--sp-md);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid rgba(41, 41, 41, 0.22);
}

.studio-floor-card__spec dt {
  font-weight: 700;
  color: var(--c-heading);
}

.studio-floor-card__spec dd {
  margin: 0;
  color: var(--c-text);
}

.studio-floor-card__group {
  display: grid;
  gap: var(--sp-sm);
}

.studio-floor-card__subheading {
  color: var(--c-text-light);
}

.studio-floor-card__features {
  display: grid;
  gap: var(--sp-xs);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-text);
  font-size: var(--fs-small);
}

.studio-floor-card__features li {
  position: relative;
  padding-left: 1rem;
}

.studio-floor-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
}

.studio-floor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}

.studio-floor-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(41, 41, 41, 0.18);
  background: rgba(255, 255, 255, 0.34);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.studio-floor-card__note {
  margin: 0;
  color: var(--c-text-light);
  font-size: var(--fs-small);
}

@media (max-width: 980px) {
  .studio-floor-card,
  .studio-floor-card--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .studio-floor-card--reverse .studio-floor-card__media {
    order: 0;
  }

  .studio-floor-card__media,
  .studio-floor-card__media img {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .studio-floor-card__head,
  .studio-floor-card__spec {
    grid-template-columns: 1fr;
    gap: var(--sp-xs);
  }

  .studio-floor-card__floor {
    font-size: clamp(4.5rem, 26vw, 7rem);
  }
}


/* ============================================================
   16b. Studio Floor Card — redesigned (SFC)
        Split layout: image left / details right, alternating
   ============================================================ */
.sfc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
  margin-top: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--c-border-light);
}

.sfc:first-of-type { margin-top: 0; }

/* Reversed: image goes to the right column */
.sfc--reverse { direction: rtl; }
.sfc--reverse > * { direction: ltr; }

/* ---- Image panel ---- */
.sfc__media {
  position: relative;
}

.sfc__img-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 20px 20px 0 var(--c-bg-deep);
}

/* flyer-like portrait ratio handled via inline --flyer-ar */
.sfc__img-wrap.is-flyer {
  aspect-ratio: var(--flyer-ar, 4 / 3);
}

.sfc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.sfc__img-wrap:hover .sfc__img {
  transform: scale(1.03);
}

/* decorative border frame */
.sfc__img-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  z-index: -1;
}

.sfc__img-wrap--empty {
  background: var(--c-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--c-border);
}

/* ---- Details panel ---- */
.sfc__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding-top: var(--sp-md);
}

/* Eyebrow row: label + big watermark number side-by-side */
.sfc__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.sfc__label {
  color: var(--c-accent);
}

.sfc__floor-wm {
  font-family: var(--f-display);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.8;
  color: var(--c-border-light);
  font-weight: 500;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.sfc__title {
  font-family: var(--f-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: var(--lh-heading);
  color: var(--c-heading);
  letter-spacing: 0;
  margin-top: calc(-1 * var(--sp-sm));
}

/* Accent rule */
.sfc__rule {
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}

/* Specs definition list */
.sfc__specs {
  margin: 0;
  border-top: 1px solid var(--c-border-light);
}

.sfc__spec {
  display: grid;
  grid-template-columns: minmax(100px, 0.4fr) 1fr;
  gap: var(--sp-md);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--c-border-light);
}

.sfc__spec dt {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-heading);
}

.sfc__spec dd {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-text-light);
}

/* Feature / use-case groups */
.sfc__group {
  display: grid;
  gap: var(--sp-sm);
}

.sfc__subheading {
  color: var(--c-text-faint);
}

.sfc__features {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-text);
}

.sfc__features li {
  position: relative;
  padding-left: 1rem;
}

.sfc__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
}

.sfc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}

.sfc__tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--c-border-light);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-light);
}

.sfc__note {
  font-size: var(--fs-small);
  color: var(--c-text-faint);
  margin: 0;
}

/* Action buttons row */
.sfc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}

/* Download button: arrow icon replaced with a download arrow */
.sfc__dl-btn .btn__arrow {
  background: var(--c-blue);
}

@media (max-width: 1024px) {
  .sfc {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }
}

@media (max-width: 768px) {
  .sfc,
  .sfc--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--sp-xl);
  }

  .sfc__img-wrap {
    box-shadow: 14px 14px 0 var(--c-bg-deep);
    aspect-ratio: 16 / 10;
  }

  .sfc__details { padding-top: 0; }

  .sfc__floor-wm { font-size: clamp(3.5rem, 22vw, 6rem); }
}


/* ============================================================
   16c. Per-floor Swiper gallery strip
   ============================================================ */
.sfc-swiper-wrap {
  margin-top: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
  background: var(--c-bg);
}

/* Alternate floors get the warm background */
.sfc-swiper-wrap--alt {
  background: var(--c-bg-warm);
}

.sfc-swiper-header {
  padding-top: var(--sp-md);
  padding-bottom: var(--sp-md);
}

/* Swiper track */
.sfc-swiper {
  width: 100%;
  padding-bottom: var(--sp-xl) !important; /* room for pagination dots */
}

.sfc-swiper__slide {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-bg-deep);
}

.sfc-swiper__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.sfc-swiper__slide:hover .sfc-swiper__img {
  transform: scale(1.03);
}

/* Nav arrows */
.sfc-swiper__prev,
.sfc-swiper__next {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--c-bg) !important;
  color: var(--c-heading) !important;
  box-shadow: 0 4px 16px rgba(41, 41, 41, 0.14) !important;
  transition: background var(--dur-fast), color var(--dur-fast) !important;
}

.sfc-swiper__prev:hover,
.sfc-swiper__next:hover {
  background: var(--c-accent) !important;
  color: #fff !important;
}

.sfc-swiper__prev::after,
.sfc-swiper__next::after {
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Pagination dots */
.sfc-swiper__pagination .swiper-pagination-bullet {
  background: var(--c-text-light);
  opacity: 0.35;
  width: 6px;
  height: 6px;
}

.sfc-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--c-accent);
  opacity: 1;
  width: 18px;
  border-radius: var(--radius-pill);
  transition: width var(--dur-normal) var(--ease-out);
}

@media (max-width: 768px) {
  .sfc-swiper__prev,
  .sfc-swiper__next { display: none !important; }
}


/* Studio gallery — asymmetric */
.studio-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
}

.studio-gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-card);
  background: var(--c-bg-deep);
}

.studio-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  filter: saturate(0.85);
}

.studio-gallery__item:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

.studio-gallery__item--wide {
  grid-column: span 1;
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (max-width: 768px) {
  .studio-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .studio-gallery__item--wide {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

/* Pricing table */
.pricing-table {
  border: 1px solid var(--c-border-light);
  overflow: hidden;
  background: var(--c-surface);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--c-border-light);
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row--header {
  background: var(--c-bg-warm);
}

.pricing-cell {
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-small);
}

.pricing-cell--label {
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  color: var(--c-heading);
}

.pricing-cell--price {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  color: var(--c-accent);
}

@media (max-width: 768px) {
  .pricing-row { grid-template-columns: 1fr; }
  .pricing-cell { padding: var(--sp-sm) var(--sp-md); }
}

/* Floor plan */
.floor-plan {
  cursor: zoom-in;
  border: 1px solid var(--c-border-light);
  padding: var(--sp-lg);
  background: var(--c-surface);
  transition: border-color var(--dur-fast);
}

.floor-plan:hover { border-color: var(--c-accent); }

/* Equipment list */
.equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-sm);
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-card);
  font-size: var(--fs-small);
  background: var(--c-surface);
  transition: border-color var(--dur-fast),
              box-shadow var(--dur-fast),
              transform var(--dur-fast);
}

.equipment-item:hover {
  border-color: var(--c-accent-soft);
  box-shadow: 0 8px 24px rgba(41, 41, 41, 0.06);
  transform: translateY(-2px);
}

.equipment-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(200, 138, 61, 0.08);
  color: var(--c-accent);
  flex-shrink: 0;
}

.equipment-item__icon i {
  font-size: 1.35rem;
  line-height: 1;
}

.service-card__phosphor i::before,
.service-card__phosphor i::after,
.equipment-item__icon i::before,
.equipment-item__icon i::after {
  font-family: "Phosphor-Duotone" !important;
}

.equipment-item--unavailable {
  opacity: 0.62;
}

.equipment-item--unavailable .equipment-item__icon {
  background: rgba(41, 41, 41, 0.06);
  color: var(--c-text-faint);
}

/* FAQ Accordion */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--c-border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) 0;
  font-size: var(--fs-body);
  text-align: left;
  color: var(--c-heading);
  transition: color var(--dur-fast);
}

.faq-question:hover { color: var(--c-accent); }

.faq-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast);
  flex-shrink: 0;
  margin-left: var(--sp-md);
  color: var(--c-accent);
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-normal) var(--ease-out);
}

.faq-answer__inner {
  padding-bottom: var(--sp-md);
  color: var(--c-text-light);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.faq-item.is-open .faq-answer { max-height: 500px; }


/* ============================================================
   15. Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(59, 49, 43, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-normal) var(--ease-out);
  cursor: zoom-out;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  width: 40px;
  height: 40px;
  color: var(--c-bg);
  cursor: pointer;
}


/* ============================================================
   16. Footer — warm, editorial
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-lg);
  background: var(--c-bg);
  color: var(--c-text);
  overflow: hidden;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.footer-brand__name {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: var(--sp-sm);
  color: var(--c-heading);
}

.footer-brand__desc {
  color: var(--c-text-light);
  font-size: var(--fs-small);
  max-width: 280px;
  line-height: var(--lh-body);
}

.footer-col__title {
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: var(--sp-md);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer-col__link {
  font-size: var(--fs-small);
  color: var(--c-text-light);
  transition: color var(--dur-fast);
}

.footer-col__link:hover { color: var(--c-blue); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-caption);
  color: var(--c-text-light);
}

.footer-social {
  display: flex;
  gap: var(--sp-sm);
}

.footer-social__link {
  color: var(--c-text-light);
  font-size: var(--fs-small);
  transition: color var(--dur-fast);
}

.footer-social__link:hover { color: var(--c-blue); }

/* Giant wordmark block */
.footer-logo-big {
  margin: var(--sp-2xl) 0 var(--sp-xl);
  line-height: 0;
}

.footer-logo-big__svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--c-heading);
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
  }
  .footer-brand { grid-column: span 2; }
  .site-footer__bottom {
    flex-direction: column;
    gap: var(--sp-sm);
    text-align: center;
  }
}


/* ============================================================
   17. Contact Form
   ============================================================ */
.contact-form {
  max-width: var(--container-narrow);
}

.form-group { margin-bottom: var(--sp-md); }

.form-label {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
  color: var(--c-text-light);
}

.form-label--required::after {
  content: ' *';
  color: var(--c-accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  color: var(--c-heading);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A7D75' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}


/* ============================================================
   18. Page Header — artistic
   ============================================================ */
.page-header {
  padding-top: calc(80px + var(--sp-2xl));
  padding-bottom: var(--sp-2xl);
  position: relative;
  overflow: hidden;
}

/* Large decorative number / text behind */
.page-header__deco {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  font-family: var(--f-accent);
  font-size: var(--fs-watermark);
  line-height: 0.8;
  color: var(--c-border-light);
  font-style: normal;
  font-weight: 500;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

.page-header--has-bg {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
}

.page-header__bg {
  position: absolute;
  inset: 0;
}

.page-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(41, 41, 41, 0.85) 0%,
    rgba(41, 41, 41, 0.25) 100%
  );
}


.page-header--has-bg h1,
.page-header--has-bg .text-label,
.page-header--has-bg .page-header__desc,
.page-header--has-bg .breadcrumbs,
.page-header--has-bg .breadcrumbs a,
.page-header--has-bg .page-header__subtitle {
  color: var(--c-bg);
}

.page-header--has-bg .page-header__desc {
  color: var(--c-border);
}

.page-header--has-bg .text-label {
  color: var(--c-accent-warm);
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__label { margin-bottom: var(--sp-md); }

.page-header__title {
  font-size: var(--fs-h1);
}

.page-header__desc {
  color: var(--c-text-light);
  max-width: 600px;
  margin-top: var(--sp-md);
}

.page-header__subtitle {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--c-text-light);
  margin-top: var(--sp-sm);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: var(--fs-caption);
  color: var(--c-text-faint);
  margin-bottom: var(--sp-md);
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--c-text-faint);
  transition: color var(--dur-fast);
}

.breadcrumbs a:hover { color: var(--c-accent); }

.breadcrumbs__sep { color: var(--c-border); }


/* ============================================================
   19. About Page — Artistic Split
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.about-intro__text {
  max-width: 480px;
}

.about-intro__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-card);
  box-shadow: 20px 20px 0 var(--c-bg-deep);
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative offset behind image */
.about-intro__image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  z-index: -1;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.about-value {
  padding: var(--sp-xl) var(--sp-lg);
  border-right: 1px solid var(--c-border-light);
  position: relative;
}

.about-value:last-child { border-right: none; }

.about-value__number {
  font-family: var(--f-accent);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--c-border-light);
  font-style: italic;
  line-height: 0.9;
  margin-bottom: var(--sp-md);
}

.about-value__title {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-sm);
  color: var(--c-heading);
}

.about-value__desc {
  font-size: var(--fs-small);
  color: var(--c-text-light);
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-intro__image {
    box-shadow: 15px 15px 0 var(--c-bg-deep);
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .about-value {
    border-right: none;
    border-bottom: 1px solid var(--c-border-light);
  }
  .about-value:last-child { border-bottom: none; }
}


/* ============================================================
   20. Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--dur-reveal) var(--ease-dramatic);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

.reveal--left { transform: translateX(-40px); }
.reveal--left.is-visible { transform: translateX(0); }

.reveal--right { transform: translateX(40px); }
.reveal--right.is-visible { transform: translateX(0); }

.reveal--scale {
  transform: scale(0.95);
  opacity: 0;
}
.reveal--scale.is-visible {
  transform: scale(1);
  opacity: 1;
}


/* ============================================================
   21. Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  background: rgba(247, 239, 235, 0.92);
  backdrop-filter: blur(8px);
  color: var(--c-text-light);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-fast);
  z-index: 100;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { border-color: var(--c-accent); color: var(--c-accent); }


/* ============================================================
   22. 404 Page
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page__code {
  font-family: var(--f-accent);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 1;
  color: var(--c-border-light);
  margin-bottom: var(--sp-md);
  font-style: italic;
  font-weight: 300;
}

.error-page__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-md);
}

.error-page__desc {
  color: var(--c-text-light);
  margin-bottom: var(--sp-xl);
}


/* ============================================================
   23. Block Editor Compatibility
   ============================================================ */
.entry-content > * {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }

.entry-content p { margin-bottom: var(--sp-md); }

.entry-content h2 {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.entry-content h3 {
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.entry-content li { margin-bottom: var(--sp-xs); }

.entry-content blockquote {
  font-family: var(--f-accent);
  font-size: var(--fs-h3);
  font-style: italic;
  border-left: 2px solid var(--c-accent);
  padding-left: var(--sp-lg);
  margin: var(--sp-xl) 0;
  color: var(--c-text-light);
}

.entry-content figure { margin: var(--sp-xl) auto; }

.entry-content figcaption {
  font-size: var(--fs-caption);
  color: var(--c-text-faint);
  margin-top: var(--sp-xs);
  text-align: center;
}

/* Single-post featured image — rounded hero above the content */
.entry-hero {
  margin: 0 0 var(--sp-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.entry-hero img { display: block; width: 100%; height: auto; }

/* Single-post footer — thin rule + back action */
.entry-foot {
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-border-light);
}


/* ============================================================
   24. Utilities
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }

.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }


/* ============================================================
   Hero — full-bleed rounded video (Wild Bran style)
   ============================================================ */
.hero-v2 {
  position: relative;
  z-index: 2;
  height: 100svh;
  padding: 0.9em;
}

.hero-v2__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(2rem, 5vw, 72px) 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.hero-v2__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-v2__filter {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(41, 41, 41, 0.55) 0%, rgba(41, 41, 41, 0) 55%),
    rgba(41, 41, 41, 0.25);
}

.hero-v2__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  /* Subtract the 20px hero frame so text aligns with nav + sections */
  padding-left: calc(var(--page-pad) - 20px);
  padding-right: calc(var(--page-pad) - 20px);
}

.hero-v2__text {
  max-width: 736px;
}

.hero-v2__title {
  color: #fff;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0;
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.1s both;
}

.hero-v2__lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 610px;
  margin-top: var(--sp-md);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.25s both;
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  animation: heroFadeUp 0.9s var(--ease-dramatic) 0.4s both;
}

@media (max-width: 768px) {
  .hero-v2__content { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   Productions — masonry card grid (full flyers, caption below)
   ============================================================ */
.prod-grid {
  columns: 3;
  column-gap: var(--sp-md);
}

.prod-card {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--sp-md);
  padding: 14px;
  background: var(--c-bg-deep);
  border-radius: var(--radius-card);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(41, 41, 41, 0.12);
}

.prod-card__media {
  position: relative;
  aspect-ratio: var(--flyer-ar, 3 / 4);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg-accent);
}

.prod-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.prod-card:hover .prod-card__img { transform: scale(1.04); }

.prod-card__status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-heading);
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.prod-card__chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out);
}

.prod-card__chip svg { width: 16px; height: 16px; }

.prod-card:hover .prod-card__chip {
  opacity: 1;
  transform: translateY(0);
}

.prod-card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xs) var(--sp-xs);
}

.prod-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--c-heading);
}

.prod-card__period {
  flex: 0 0 auto;
  font-family: var(--f-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  color: var(--c-text-faint);
}

@media (max-width: 900px) {
  .prod-grid { columns: 2; }
}
@media (max-width: 560px) {
  .prod-grid { columns: 1; }
}


/* ============================================================
   Productions — Swiper showcase (legacy, used on archive)
   ============================================================ */
.productions-swiper {
  width: 100%;
  margin-top: var(--sp-xl);
  /* Side gutters leave room for the prev/next arrows beside the flyers */
  padding: var(--sp-sm) clamp(56px, 7vw, 100px) var(--sp-md);
}

/* Edge spacing at the start/end of the slide track */
.productions-swiper .swiper-wrapper {
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
  align-items: center;
}

/* Each slide takes the flyer's own (A4) shape at a shared height — no crop */
.productions-swiper .swiper-slide {
  width: auto;
  height: clamp(340px, 58vh, 620px);
  aspect-ratio: var(--flyer-ar, 3 / 4);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--c-bg-deep);
  box-shadow: 0 10px 40px rgba(41, 41, 41, 0.12);
}

.prod-slide__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.prod-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.prod-slide__link:hover .prod-slide__img {
  transform: scale(1.04);
}

.prod-slide__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: var(--sp-md);
  background: linear-gradient(
    0deg,
    rgba(59, 49, 43, 0.85) 0%,
    rgba(59, 49, 43, 0.25) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.prod-slide__status {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-accent-warm);
  margin-bottom: 4px;
}

.prod-slide__title {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  color: var(--c-bg);
  line-height: var(--lh-heading);
}

.prod-slide__period {
  font-family: var(--f-accent);
  font-size: var(--fs-caption);
  color: var(--c-border);
  margin-top: 2px;
}

/* Navigation + pagination */
.productions-swiper .swiper-button-prev,
.productions-swiper .swiper-button-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-heading);
  box-shadow: 0 4px 18px rgba(74, 63, 56, 0.18);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.productions-swiper .swiper-button-prev { left: clamp(8px, 1.5vw, 26px); }
.productions-swiper .swiper-button-next { right: clamp(8px, 1.5vw, 26px); }

.productions-swiper .swiper-button-prev:hover,
.productions-swiper .swiper-button-next:hover {
  background: var(--c-accent);
  color: var(--c-bg);
}

.productions-swiper .swiper-button-prev::after,
.productions-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.productions-swiper .swiper-pagination {
  position: static;
  margin-top: var(--sp-lg);
}

.productions-swiper .swiper-pagination-bullet {
  background: var(--c-text-light);
  opacity: 0.35;
}

.productions-swiper .swiper-pagination-bullet-active {
  background: var(--c-accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .productions-swiper {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  /* Smaller slides on mobile so the whole flyer fits on screen */
  .productions-swiper .swiper-slide {
    height: clamp(260px, 48vh, 420px);
  }

  /* Landscape flyers: cap height by width so the full picture fits the screen */
  .productions-swiper .swiper-slide.is-landscape {
    height: min(40vh, 52vw);
  }

  .productions-swiper .swiper-wrapper {
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
  }

  .productions-swiper .swiper-button-prev,
  .productions-swiper .swiper-button-next {
    display: none;
  }
}
