/* ============================================================
   BLACKSMITH LODGE — Dark Edition
   Punta Herrero, Mexico · Espiritu Santo Bay
   ============================================================ */

/* Google Fonts are now loaded via <link> tags in HTML for non-blocking loading */

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

:root {
  /* Dark palette */
  --bg:           #0a0e0d;   /* deepest background */
  --surface:      #111918;   /* card / form surface */
  --surface-mid:  #172120;   /* slightly lighter surface */
  --surface-hi:   #1e2d2b;   /* hover / raised surface */
  --ocean:        #060d0b;   /* darkest sections */
  --ocean-mid:    #0d1714;   /* mid dark sections */
  --teal:         #3d9e94;
  --teal-light:   #5bbfb5;
  --amber:        #e8961a;
  --amber-light:  #f5b040;
  --cream:        #f2d08a;
  --white:        #ffffff;
  --text:         #e4ddd3;   /* primary text — warm off-white */
  --text-light:   rgba(228, 221, 211, 0.58);
  --text-xlight:  rgba(228, 221, 211, 0.32);
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.05);

  /* Legacy aliases so old rules still work */
  --sand:         #0a0e0d;
  --sand-dark:    #111918;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', Helvetica, sans-serif;
  --nav-h:        76px;
  --max-w:        1280px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expo:    cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); font-weight: 300; color: var(--text); background: var(--bg); line-height: 1.75; overflow-x: clip; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; }
h1 { font-size: clamp(3rem, 6.5vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p  { font-size: 1.008rem; line-height: 1.9; color: var(--text-light); max-width: 600px; }

.eyebrow {
  font-family: var(--font-body); font-weight: 400; font-size: 0.62rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal);
  display: block; margin-bottom: 0.85rem;
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--cream { color: var(--cream); }
.eyebrow--sand  { color: var(--text); opacity: 0.45; }

/* Inline brand hyperlinks within body copy */
.inline-link {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s;
}
.inline-link:hover { color: var(--cream); }

/* ── Custom Cursor (dot only — ring removed) ──────────────── */
.cursor-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); will-change: transform; transition: opacity 0.3s; }
.cursor-dot.hidden { opacity: 0; }
@media (hover: none) { .cursor-dot { display: none; } }

/* ── Page Loader ──────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--ocean); display: flex; align-items: center; justify-content: center; transition: opacity 0.85s var(--ease-expo), visibility 0.85s var(--ease-expo); }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo { height: 52px; filter: brightness(0) invert(1); opacity: 0; transform: translateY(10px); animation: loaderIn 0.7s 0.2s var(--ease) forwards; }
@keyframes loaderIn { to { opacity: 0.8; transform: none; } }
.loader__progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--teal); animation: loaderBar 1.5s var(--ease-expo) forwards; }
@keyframes loaderBar { 0% { width: 0; } 85% { width: 90%; } 100% { width: 100%; } }

/* ── Scroll Progress ──────────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--teal); z-index: 9997; transform-origin: left; transform: scaleX(0); transition: transform 0.1s linear; pointer-events: none; }

/* ── Page Transition ──────────────────────────────────────── */
.page-transition { position: fixed; inset: 0; z-index: 9990; background: var(--ocean); pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease-expo); }
.page-transition.out { opacity: 1; pointer-events: all; }

/* ── Navigation — brand left, controls right ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center; gap: 0;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: transparent;
  transition: background 0.45s var(--ease), border-bottom-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
  pointer-events: none;
}
.nav > * { pointer-events: all; }
.nav.scrolled {
  background: rgba(10, 14, 13, 0.95);
  border-bottom-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
}

/* Hamburger menu button — top left */
.nav__menu-btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: rgba(255,255,255,0.7); transition: color 0.25s;
}
.nav.scrolled .nav__menu-btn { color: var(--text-light); }
.nav__menu-btn:hover { color: var(--white); }
.nav__hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav__hamburger span {
  display: block; width: 100%; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease-expo), opacity 0.25s, width 0.4s var(--ease-expo);
  transform-origin: left;
}
.nav__menu-label {
  font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
}
/* Animate hamburger to X when open */
.nav__menu-btn.open { color: rgba(255,255,255,0.85); }
.nav__menu-btn.open .nav__hamburger span:nth-child(1) { transform: rotate(42deg) translateY(-0.5px); width: 22px; }
.nav__menu-btn.open .nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__menu-btn.open .nav__hamburger span:nth-child(3) { transform: rotate(-42deg) translateY(0.5px); width: 22px; }

/* Brand block — fish + stacked text, left-aligned */
/* Brand: push everything else to the right */
.nav__brand { display: flex; align-items: center; height: 100%; margin-right: auto; }
.nav__menu-btn { margin-left: 0; }
.nav__cta { margin-left: clamp(1rem, 2vw, 1.75rem); }
.nav__brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.25s;
}
.nav__brand-link:hover { opacity: 1; }
.nav__fish {
  height: calc(var(--nav-h) - 26px);
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.nav__brand-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.6rem, 0.85vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
}

/* Inquire CTA — top right */
.nav__cta {
  justify-self: end;
  font-family: var(--font-body); font-weight: 400; font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--white);
  background: var(--teal); padding: 0.5rem 1.15rem; border-radius: 1px;
  transition: background 0.25s, transform 0.3s var(--ease-spring);
  display: inline-block;
}
.nav__cta:hover { background: #2f8078; transform: translateY(-1px); }

/* ── Full-Screen Overlay Menu ─────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ocean);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.6s var(--ease-expo), visibility 0.6s;
}
.menu-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }

.menu-overlay__inner { text-align: center; }
.menu-overlay__nav { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 3rem; }
.menu-overlay__link {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(3.2rem, 7vw, 6.5rem); color: rgba(228,221,211,0.45);
  display: block; line-height: 1.15; letter-spacing: -0.01em;
  /* opacity AND transform must both be in the base transition */
  transition: color 0.3s var(--ease), transform 0.65s var(--ease-expo),
              letter-spacing 0.3s, opacity 0.65s var(--ease);
  transform: translateY(28px); opacity: 0;
}
.menu-overlay.open .menu-overlay__link {
  transform: translateY(0); opacity: 1; color: rgba(228,221,211,0.55);
}
/* Stagger via li:nth-child — <a> elements are each the only child of their <li>,
   so targeting a:nth-child never works past :nth-child(1). Target the <li> instead. */
.menu-overlay.open .menu-overlay__nav > li:nth-child(1) .menu-overlay__link { transition-delay: 0.05s; }
.menu-overlay.open .menu-overlay__nav > li:nth-child(2) .menu-overlay__link { transition-delay: 0.11s; }
.menu-overlay.open .menu-overlay__nav > li:nth-child(3) .menu-overlay__link { transition-delay: 0.17s; }
.menu-overlay.open .menu-overlay__nav > li:nth-child(4) .menu-overlay__link { transition-delay: 0.23s; }
.menu-overlay.open .menu-overlay__nav > li:nth-child(5) .menu-overlay__link { transition-delay: 0.29s; }
.menu-overlay.open .menu-overlay__nav > li:nth-child(6) .menu-overlay__link { transition-delay: 0.35s; }
.menu-overlay__link:hover { color: var(--text); letter-spacing: 0.02em; }
.menu-overlay__link.is-active { color: var(--teal); }

.menu-overlay__sub { display: flex; gap: 2.5rem; justify-content: center; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; }
.menu-overlay__sub a {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(228,221,211,0.28); transition: color 0.25s;
}
.menu-overlay__sub a:hover { color: var(--teal); }

/* Legacy nav elements hidden — keep for other pages */
.nav__toggle-wrap { display: none; }
.nav__left  { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2rem); }
.nav__right { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2rem); justify-content: flex-end; }
.nav__link {
  font-family: var(--font-body); font-weight: 400; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  position: relative; padding-bottom: 2px; transition: color 0.2s var(--ease);
}
.nav__link::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--teal); transition: width 0.32s var(--ease-expo); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--teal); }
.nav__logo--dark-only { display: block; filter: brightness(0) invert(1); opacity: 0.8; height: 32px; }

/* Section anchor offset for fixed nav */
.section-anchor { scroll-margin-top: var(--nav-h); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease-in-out; }
.hero__slide.active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,13,11,0.88) 0%, rgba(6,13,11,0.35) 50%, rgba(6,13,11,0.18) 100%); z-index: 1; }

/* Big logo lockup — sits in upper hero, well above tagline */
.hero__logo-lockup {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: clamp(16vh, 21vh, 24vh);
  pointer-events: none;
}

/* ── Logo reveal: forged left-to-right, like metal struck by a hammer ─ */
/* The logo sweeps in from left using clip-path, held steady on arrival.  */
.hero__big-logo {
  width: clamp(180px, 26vw, 360px); height: auto;
  filter: brightness(0) invert(1);
  clip-path: inset(0 100% 0 0);
  animation: logoForge 1.5s 1.8s var(--ease-expo) forwards;
}

@keyframes logoForge {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0%   0 0); }
}

.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
  padding-top: var(--nav-h);
}
.hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); opacity: 0; transform: translateY(12px); animation: fadeUp 0.85s 1.4s var(--ease) forwards; margin-bottom: 1rem; display: block; }
.hero__tagline { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 6.5vw, 6.5rem); color: var(--white); line-height: 1.05; max-width: 780px; }
.hero__tagline em { font-style: italic; color: var(--cream); }
/* .hero__sub removed — logo lockup replaced it */
.hero__cta { margin-top: 2.5rem; display: flex; gap: 1rem; opacity: 0; transform: translateY(10px); animation: fadeUp 0.85s 2.9s var(--ease) forwards; }

.hero__vertical {
  position: absolute; right: clamp(1.5rem, 3vw, 2.5rem); bottom: 50%; transform: translateY(50%) rotate(90deg);
  transform-origin: center; z-index: 3;
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.28);
  white-space: nowrap; opacity: 0; animation: fadeUp 1s 3s var(--ease) forwards;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeUp 1s 3.2s var(--ease) forwards;
}
.hero__scroll span { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollPulse 2s 3.5s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.35;transform:scaleY(1)} 50%{opacity:0.9;transform:scaleY(1.3)} }

.hero__dots { position: absolute; right: clamp(1.5rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 0.6rem; }
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.35s; border: none; padding: 0; }
.hero__dot.active { background: var(--white); transform: scale(1.5); }

@keyframes fadeUp { to { opacity: 1; transform: none; } }

.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.1; padding-bottom: 0.05em; }
.split-word-inner { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1s var(--ease-expo), opacity 0.3s ease; }
.split-word-inner.revealed { transform: translateY(0); opacity: 1; }

/* ── Layout helpers ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.section { padding: clamp(5rem, 9vw, 10rem) 0; }
.section--ocean     { background: var(--ocean);     color: var(--text); }
.section--ocean p   { color: rgba(228,221,211,0.52); }
.section--ocean h2, .section--ocean h3 { color: var(--text); }
.section--teal      { background: var(--teal);      color: var(--white); }
.section--sand      { background: var(--surface); }
.section--ocean-mid { background: var(--ocean-mid); color: var(--text); }
.section--ocean-mid p { color: rgba(228,221,211,0.52); }

.divider {
  width: 36px; height: 1px; background: var(--teal); margin: 1.5rem 0;
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.9s var(--ease-expo);
}
.divider.revealed { transform: scaleX(1); }
.divider--amber { background: var(--amber); }
.divider--cream { background: var(--cream); }

/* ── Scroll reveal ────────────────────────────────────────── */
[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.93); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.18s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.44s; }
[data-delay="5"] { transition-delay: 0.58s; }
[data-delay="6"] { transition-delay: 0.72s; }

.text-mask { overflow: hidden; display: block; }
.text-mask-inner { display: block; transform: translateY(102%); transition: transform 1.1s var(--ease-expo); }
.text-mask-inner.revealed { transform: translateY(0); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 400;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.9rem 2.25rem; border-radius: 1px; cursor: pointer; border: none;
  position: relative; overflow: hidden;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s,
              transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: #2f8078; box-shadow: 0 10px 28px rgba(61,158,148,0.3); }
.btn--amber { background: var(--amber); color: var(--white); }
.btn--amber:hover { background: #cc7f0e; box-shadow: 0 10px 28px rgba(232,150,26,0.3); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.15); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn--outline-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.28); }
.btn--outline-white:hover { border-color: rgba(255,255,255,0.75); box-shadow: 0 8px 22px rgba(0,0,0,0.4); }
.btn--ghost-teal { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn--ghost-teal:hover { background: var(--teal); color: var(--white); }
.btn__ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.2); transform: scale(0); animation: ripple 0.65s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero { position: relative; height: 60vh; min-height: 420px; overflow: hidden; display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.page-hero__overlay { position: absolute; inset: 0; }
.page-hero__content { position: relative; z-index: 2; padding: 0 clamp(2rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4rem); color: var(--white); }
.page-hero__content h1 { color: var(--white); }

/* ── Image components ─────────────────────────────────────── */
.img-frame { overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s; }
.img-frame:hover img { transform: scale(1.055); }
.img-tall      { aspect-ratio: 3/4; }
.img-portrait  { aspect-ratio: 2/3; }
.img-landscape { aspect-ratio: 4/3; }
.img-wide      { aspect-ratio: 16/9; }
.img-square    { aspect-ratio: 1; }
.img-cinema    { aspect-ratio: 21/9; }

/* ── BENTO GRID ───────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto; gap: 4px; }
.bento__cell { overflow: hidden; position: relative; }
.bento__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento__cell:hover img { transform: scale(1.06); }
.bento__cell--a { grid-column: 1/6;  grid-row: 1/3; aspect-ratio: unset; min-height: 460px; }
.bento__cell--b { grid-column: 6/9;  grid-row: 1/2; aspect-ratio: unset; min-height: 220px; }
.bento__cell--c { grid-column: 9/13; grid-row: 1/2; aspect-ratio: unset; min-height: 220px; }
.bento__cell--d { grid-column: 6/10; grid-row: 2/3; aspect-ratio: unset; min-height: 232px; }
.bento__cell--e { grid-column: 10/13;grid-row: 2/3; aspect-ratio: unset; min-height: 232px; }
.bento__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,13,11,0.75) 0%, transparent 55%); pointer-events: none; }
.bento__label { position: absolute; bottom: 1.25rem; left: 1.5rem; color: var(--white); z-index: 2; }
.bento__label span { display: block; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.2rem; }
.bento__label h3 { color: var(--white); font-size: 1.3rem; }

/* ── EDITORIAL SPLIT ──────────────────────────────────────── */
.editorial-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 560px; }
.editorial-split__visual { position: relative; overflow: hidden; }
.editorial-split__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s var(--ease); }
.editorial-split__visual:hover img { transform: scale(1.04); }
.editorial-split__body { padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; background: var(--surface); position: relative; overflow: hidden; }
.editorial-split--reverse .editorial-split__visual { order: 2; }
.editorial-split--reverse .editorial-split__body  { order: 1; }
.display-number {
  position: absolute; top: -0.15em; left: -0.08em;
  font-family: var(--font-display); font-size: 18rem; font-weight: 300;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(61,158,148,0.07);
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* ── HORIZONTAL SCROLL SECTION ────────────────────────────── */
.h-scroll-section { position: relative; }
.h-scroll-track { overflow: hidden; }
.h-scroll-inner { display: flex; gap: 4px; will-change: transform; }
.h-scroll-inner .h-card { flex-shrink: 0; width: clamp(260px, 28vw, 400px); position: relative; overflow: hidden; }
.h-scroll-inner .h-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.h-card:hover img { transform: scale(1.05); }
.h-card__info { padding: 1.25rem 0 0; }
.h-card__info span { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 0.3rem; }
.h-card__info h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.h-card__info p { font-size: 0.933rem; max-width: 100%; color: var(--text-light); }

/* ── STICKY SECTION ───────────────────────────────────────── */
.sticky-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 200vh; }
.sticky-section__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
/* Legacy img fallback — crossfade divs replace this in current markup */
.sticky-section__pin img { width: 100%; height: 100%; object-fit: cover; }

/* Per-panel crossfade slides inside the sticky pin */
.sticky-pin__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease-in-out;
}
.sticky-pin__slide.active { opacity: 1; }

/* Right-edge vignette to blend into panels */
.sticky-section__pin::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, transparent 70%, rgba(17,25,24,0.55) 100%);
  pointer-events: none;
}

/* Bottom vignette — text legibility for the persistent quote */
.sticky-section__pin::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,13,11,0.85) 0%, rgba(6,13,11,0.2) 40%, transparent 65%);
  pointer-events: none;
}

/* Persistent quote — overlaid on the sticky photo, stays on every panel */
.sticky-pin__quote {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3.5rem);
  left: clamp(1.75rem, 3.5vw, 3rem);
  right: clamp(1.75rem, 3.5vw, 3rem);
  z-index: 2;
  pointer-events: none;
}
.sticky-pin__quote h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(6,13,11,0.5);
}
.sticky-pin__quote h2 em {
  font-style: italic;
  color: var(--cream);
  display: block;
}
.sticky-section__panels { display: flex; flex-direction: column; }
.sticky-panel { min-height: 100vh; padding: clamp(4rem, 7vw, 8rem) clamp(2.5rem, 4vw, 5rem); display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--border); background: var(--surface); }
.sticky-panel:first-child { border-top: none; }
.sticky-panel .panel-num { font-family: var(--font-display); font-size: 5rem; font-weight: 300; color: rgba(61,158,148,0.15); line-height: 1; margin-bottom: 1rem; }
.sticky-panel h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 1.25rem; }
.sticky-panel p { max-width: 460px; margin-bottom: 1rem; }

/* ── CROSSFADE GALLERY ────────────────────────────────────── */
/* Replaces the scrolling photo strips — simple crossfade between photos */
.crossfade-gallery {
  position: relative; width: 100%;
  aspect-ratio: 16/7; overflow: hidden; background: var(--ocean);
}
.crossfade-gallery--fill {
  /* Used inside guide-feature — fills the container instead of 16:7 */
  aspect-ratio: unset; inset: 0; position: absolute;
}
.crossfade-gallery__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.crossfade-gallery__slide.active { opacity: 1; }

/* ── SPECIES — single permit photo + text list ────────────── */
.species-single {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(3rem, 5vw, 5rem);
  align-items: start;
}
.species-single__photo {
  aspect-ratio: 3/4; overflow: hidden; border-radius: 2px;
}
.species-single__photo img { width: 100%; height: 100%; object-fit: cover; }
.species-single__list {
  display: flex; flex-direction: column; gap: 0;
}
.species-item {
  padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.species-item:first-child { padding-top: 0; }
.species-item:last-child  { border-bottom: none; }
.species-item h3 { color: var(--text); font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 0.5rem; }
.species-item p  { color: var(--text-light); font-size: 0.983rem; max-width: 100%; line-height: 1.8; }
.species-item--primary h3 { color: var(--cream); }

/* ── GUIDE FEATURE ────────────────────────────────────────── */
.guide-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.guide-feature__img { position: relative; overflow: hidden; min-height: 480px; }
.guide-feature__teal-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--teal); }
.guide-feature__body { background: var(--surface); padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.guide-feature__body h2 { color: var(--text); font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 0.5rem; }
.guide-feature__body .role { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 1.5rem; }
.guide-feature__body p { color: var(--text-light); margin-bottom: 0.9rem; max-width: 100%; }

/* ── FILM PLACEHOLDERS ────────────────────────────────────── */
.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.film-placeholder { aspect-ratio: 16/9; background: var(--surface-hi); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.35s, transform 0.35s var(--ease); }
.film-placeholder:hover { border-color: rgba(61,158,148,0.45); transform: scale(1.01); }
.film-placeholder__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--ease-spring), border-color 0.3s; }
.film-placeholder:hover .film-placeholder__icon { transform: scale(1.18); border-color: rgba(61,158,148,0.55); }
.film-placeholder__icon svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.55); margin-left: 3px; }
.film-placeholder__label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-xlight); }
.film-placeholder__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 300; color: rgba(255,255,255,0.68); font-style: italic; }
.film-placeholder__sub { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.12em; color: rgba(228,221,211,0.38); margin-top: -0.25rem; }

/* ── CONTACT FORM ─────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-xlight); font-weight: 400; }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-body); font-weight: 300; font-size: 0.9rem;
  color: var(--text); background: var(--surface-hi); border: 1px solid var(--border);
  padding: 0.75rem 1rem; outline: none; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-xlight); }
.form-field select option { background: var(--surface-hi); color: var(--text); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61,158,148,0.1); }
.form-field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }

/* ── FEATURE CARD ─────────────────────────────────────────── */
.feature-card { padding: 2.25rem 2rem; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.feature-card:hover { border-color: rgba(61,158,148,0.35); box-shadow: 0 8px 32px rgba(0,0,0,0.3); transform: translateY(-3px); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.963rem; max-width: 100%; }

/* ── PULL QUOTE ───────────────────────────────────────────── */
.pull-quote { border-left: 2px solid var(--teal); padding: 0.75rem 0 0.75rem 2rem; margin: 2.5rem 0; }
.pull-quote p { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; font-weight: 300; line-height: 1.55; color: var(--text); max-width: 100%; }
.pull-quote--ocean p { color: rgba(228,221,211,0.8); }

/* ── AMBER BAND ───────────────────────────────────────────── */
.amber-band { background: var(--amber); padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.amber-band p { color: rgba(10,14,13,0.88); font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-style: italic; font-weight: 300; max-width: 700px; }

/* ── STORE GRID ───────────────────────────────────────────── */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.store-cat { border: 1px solid var(--border); background: var(--surface); padding: 2.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; cursor: default; }
.store-cat:hover { border-color: rgba(61,158,148,0.35); box-shadow: 0 8px 28px rgba(0,0,0,0.3); transform: translateY(-3px); }
.store-cat svg { width: 32px; height: 32px; color: var(--text-xlight); opacity: 0.4; stroke: currentColor; transition: opacity 0.3s; }
.store-cat:hover svg { opacity: 0.7; }
.store-cat__label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-xlight); }
.store-cat h3 { font-size: 1.15rem; }
.store-cat p { font-size: 0.903rem; max-width: 100%; text-align: center; }
.store-cat__soon { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--ocean); color: var(--text-light); padding: 5rem 0 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer__logo { height: 30px; opacity: 0.4; filter: brightness(0) invert(1); margin-bottom: 1.5rem; transition: opacity 0.2s; }
.footer__logo:hover { opacity: 0.7; }
.footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 0.88rem; color: var(--text-xlight); line-height: 1.65; }
.footer__col h5 { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(228,221,211,0.65); margin-bottom: 1.25rem; font-weight: 400; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { font-size: 0.82rem; color: var(--text-xlight); transition: color 0.25s; display: inline-block; position: relative; }
.footer__col a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: rgba(228,221,211,0.35); transition: width 0.28s var(--ease-expo); }
.footer__col a:hover { color: var(--text); }
.footer__col a:hover::after { width: 100%; }
.footer__col address { font-style: normal; font-size: 0.903rem; line-height: 1.85; color: var(--text-xlight); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.68rem; color: var(--text-xlight); opacity: 0.6; }

/* ── STORE NOTIFY FORM ────────────────────────────────────── */
.notify-form { max-width: 440px; margin: 0 auto; display: flex; gap: 0.75rem; }
.notify-form input { flex: 1; font-family: var(--font-body); font-weight: 300; font-size: 0.88rem; color: var(--text); background: var(--surface-hi); border: 1px solid var(--border); padding: 0.75rem 1rem; outline: none; transition: border-color 0.25s; }
.notify-form input:focus { border-color: var(--teal); }
.notify-form input::placeholder { color: var(--text-xlight); }

/* ── CONTACT LAYOUT ───────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.contact-info { position: sticky; top: calc(var(--nav-h) + 2rem); }
.contact-detail { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail__item { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.contact-detail__item label { display: block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-xlight); margin-bottom: 0.35rem; }
.contact-detail__item p { font-size: 0.963rem; color: var(--text-light); margin: 0; max-width: 100%; line-height: 1.65; }
.form-success { display: none; text-align: center; padding: 3rem 2rem; border: 1px solid var(--border); background: var(--surface); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bento__cell--a { grid-column: 1/7; }
  .bento__cell--b { grid-column: 7/10; }
  .bento__cell--c { grid-column: 10/13; }
  .bento__cell--d { grid-column: 7/10; }
  .bento__cell--e { grid-column: 10/13; }
  .sticky-section { grid-template-columns: 1fr; min-height: unset; }
  .sticky-section__pin { position: relative; height: 55vw; max-height: 520px; }
  .species-single { grid-template-columns: 1fr; }
  .crossfade-gallery { aspect-ratio: 16/9; }
  .film-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__left { display: none; }
  .nav__right { display: none; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; position: fixed;
    inset: 0; top: var(--nav-h); background: var(--surface);
    padding: 2rem clamp(1.5rem, 5vw, 3rem); gap: 0; z-index: 99;
  }
  .nav__links.open .nav__link { font-size: 1.7rem; font-family: var(--font-display); font-weight: 300; text-transform: none; letter-spacing: 0.01em; padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav__links.open .nav__link::after { display: none; }
  .nav__links.open .nav__cta { display: none; }
  .nav__toggle-wrap { display: flex; justify-content: flex-end; }
  .nav__toggle { display: flex; }
  .editorial-split, .guide-feature { grid-template-columns: 1fr; }
  .editorial-split--reverse .editorial-split__visual { order: unset; }
  .editorial-split--reverse .editorial-split__body  { order: unset; }
  .editorial-split__visual, .guide-feature__img { aspect-ratio: 16/9; height: auto; }
  .guide-feature__body { min-height: unset; }
  .bento__cell--a { grid-column: 1/13; min-height: 300px; }
  .bento__cell--b { grid-column: 1/7;  grid-row: 2; }
  .bento__cell--c { grid-column: 7/13; grid-row: 2; }
  .bento__cell--d { grid-column: 1/7;  grid-row: 3; }
  .bento__cell--e { grid-column: 7/13; grid-row: 3; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .amber-band { flex-direction: column; align-items: flex-start; }
  .amber-band p { color: rgba(10,14,13,0.88); }
  .hero__vertical { display: none; }
  .hero__dots { right: 1rem; }
}
@media (max-width: 580px) {
  .store-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .film-grid { grid-template-columns: 1fr; }
  .guide-feature__img { min-height: 320px; aspect-ratio: 16/9; }
}

/* ── MOBILE — 768px ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* --- Nav tap targets --- */
  .nav__menu-btn {
    padding: 12px 0;
    min-height: 44px;
  }
  .nav__cta {
    font-size: 0.55rem;
    padding: 0.45rem 0.9rem;
  }

  /* --- Menu overlay --- */
  .menu-overlay__link {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }
  .menu-overlay__sub {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }
  .menu-overlay__sub a {
    padding: 0.85rem 0;
    font-size: 0.65rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* --- Hero --- */
  .hero__big-logo {
    width: clamp(140px, 52vw, 220px);
  }
  .hero__logo-lockup {
    padding-top: clamp(12vh, 16vh, 20vh);
  }
  .hero__cta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 300px;
  }
  .hero__cta .btn {
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero__dots { display: none; }
  .hero__scroll { display: none; }

  /* --- Buttons global touch target --- */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Section padding tighten --- */
  .section { padding: clamp(3rem, 7vw, 5rem) 0; }

  /* --- Inline grid divs now targetable --- */
  .about-header {
    grid-template-columns: 1fr !important;
  }
  .guides-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  .store-grid-two {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* --- Sticky section --- */
  .sticky-panel {
    min-height: 60vh;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  }
  .sticky-section__pin {
    height: 50vw;
    max-height: 400px;
  }

  /* --- Crossfade gallery taller on mobile --- */
  .crossfade-gallery { aspect-ratio: 4/3; }

  /* --- Species single already collapses at 1100px --- */
  .species-single {
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  /* --- Editorial split visual aspect on small screens --- */
  .editorial-split__visual,
  .guide-feature__img { min-height: 260px; }

  /* --- Amber band button full width --- */
  .amber-band {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .amber-band .btn {
    text-align: center;
    width: 100%;
    flex-shrink: unset;
  }

  /* --- Notify form stack --- */
  .notify-form {
    flex-direction: column;
    max-width: 100%;
  }
  .notify-form .btn { width: 100%; }

  /* --- Contact info unstick on mobile --- */
  .contact-info { position: static; }

  /* --- Footer tighten --- */
  .footer { padding: 3.5rem 0 2rem; }

  /* --- Store categories 2-col on tablet --- */
  .store-grid { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE — 480px ───────────────────────────────────────── */
@media (max-width: 480px) {

  /* --- Root font / spacing --- */
  :root { --nav-h: 60px; }

  /* --- Hero logo --- */
  .hero__big-logo { width: clamp(120px, 58vw, 180px); }
  .hero__tagline { font-size: clamp(2rem, 8.5vw, 3rem); }
  .hero__content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 2.5rem;
  }

  /* --- Bento fully collapse --- */
  .bento { grid-template-columns: 1fr; }
  .bento__cell--a,
  .bento__cell--b,
  .bento__cell--c,
  .bento__cell--d,
  .bento__cell--e {
    grid-column: 1 !important;
    grid-row: unset !important;
    min-height: 220px;
  }
  .bento__cell--a { min-height: 300px; }

  /* --- Store categories single column --- */
  .store-grid { grid-template-columns: 1fr; }

  /* --- Film grid always single col --- */
  .film-grid { grid-template-columns: 1fr; }

  /* --- Sticky pin height --- */
  .sticky-section__pin { height: 60vw; max-height: 320px; }

  /* --- Container padding minimum --- */
  .container,
  .container--narrow {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* --- Section tighten --- */
  .section { padding: 2.75rem 0; }

  /* --- Crossfade gallery square-ish on tiny screens --- */
  .crossfade-gallery { aspect-ratio: 1/1; }

  /* --- Menu overlay links --- */
  .menu-overlay__link { font-size: clamp(2rem, 11vw, 2.8rem); }
  .menu-overlay__nav { gap: 0; }

  /* --- Footer single col always --- */
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* --- Amber band text --- */
  .amber-band p { font-size: 1.1rem; }
}

/* ============================================================
   STICKY SPLIT PANEL SECTIONS (sp-*)
   Each section: photo half (sticky) + text half (sticky header,
   scrollable items). Alternating sides via sp-section--reverse.
   ============================================================ */

/* ── Section wrapper ───────────────────────────────────────── */
.sp-section {
  position: relative;
}

/* ── Two-column track ──────────────────────────────────────── */
.sp-track {
  display: flex;
  align-items: flex-start;
}

/* Reverse: swap photo to right, text to left */
.sp-section--reverse .sp-track {
  flex-direction: row-reverse;
}

/* ── Photo half ────────────────────────────────────────────── */
.sp-photo {
  width: 50%;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: clip; /* clip instead of hidden — doesn't create scroll container, preserves sticky */
  background: var(--ocean);
}

.sp-photo__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-photo__slide.active { opacity: 1; }

/* ── Text / panel half ─────────────────────────────────────── */
.sp-panel {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

/* Ocean-dark variant for Fishery section */
.sp-panel--ocean {
  background: var(--ocean-mid);
}

/* ── Sticky header within panel ────────────────────────────── */
.sp-panel__header {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(2rem, 4vw, 4.5rem) 1.25rem;
  background: var(--surface); /* explicit — inherit can fail when parent transitions */
  border-bottom: 1px solid var(--border);
}

/* Ocean variant header matches its panel background */
.sp-panel--ocean .sp-panel__header {
  background: var(--ocean-mid);
}

.sp-panel__header h2 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.08;
  color: var(--text);
  margin-top: 0.5rem;
}

.sp-panel__header h2 em {
  color: var(--cream);
}

.sp-panel__header .divider {
  margin: 1.25rem 0 1rem;
}

.sp-panel__intro {
  font-size: 0.963rem;
  color: var(--text-light);
  max-width: 420px;
  line-height: 1.75;
  margin: 0;
}

.sp-panel__intro--role {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Scrollable items ──────────────────────────────────────── */
.sp-panel__items {
  display: flex;
  flex-direction: column;
}

.sp-item {
  padding: clamp(1.75rem, 2.8vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.55s var(--ease);
}

.sp-item:last-child { border-bottom: none; }

.sp-item.is-active {
  opacity: 1;
}

.sp-item .panel-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 300;
  color: rgba(61, 158, 148, 0.1);
  line-height: 1;
  margin-bottom: 0.65rem;
  user-select: none;
}

.sp-item > .eyebrow { margin-bottom: 0.6rem; }

.sp-item h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.sp-item p {
  max-width: 500px;
  color: var(--text-light);
  font-size: 1.003rem;
  line-height: 1.85;
}

/* Ocean panel item text colours */
.sp-panel--ocean .sp-item h3 { color: var(--text); }
.sp-panel--ocean .sp-item { border-bottom-color: rgba(255,255,255,0.05); }
.sp-panel--ocean .sp-panel__header { border-bottom-color: rgba(255,255,255,0.05); }

/* ── Responsive — tablet / mobile ─────────────────────────── */
@media (max-width: 960px) {
  /* Stack photo above text */
  .sp-track,
  .sp-section--reverse .sp-track {
    flex-direction: column;
  }

  .sp-photo {
    width: 100%;
    position: relative;
    top: unset;
    height: 56vw;
    max-height: 460px;
    flex-shrink: 0;
  }

  .sp-panel {
    width: 100%;
  }

  /* On mobile every item is fully visible (no dim) */
  .sp-item {
    min-height: auto;
    opacity: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Header still sticks on mobile */
  .sp-panel__header {
    position: sticky;
  }
}

@media (max-width: 480px) {
  .sp-photo {
    height: 62vw;
    max-height: 320px;
  }
  .sp-panel__header {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .sp-item {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ── Read More / Read Less collapse system ─────────────────────
   Applied automatically by initReadMore() in animations.js.
   .sp-item__collapse wraps all content after the first sentence.
   Toggle controlled by .is-expanded on the parent .sp-item.
   ──────────────────────────────────────────────────────────── */
.sp-item__collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  /* Closing: faster ease-in */
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 1, 1),
    opacity    0.3s  cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-item.is-expanded .sp-item__collapse {
  max-height: 1500px; /* generous ceiling — tallest panel content is ~800px */
  opacity: 1;
  /* Opening: slower ease-out for a natural unfolding feel */
  transition:
    max-height 0.65s cubic-bezier(0, 0, 0.2, 1),
    opacity    0.5s  cubic-bezier(0.4, 0, 0.2, 1);
}

/* Read More / Less toggle button */
.sp-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(91, 191, 181, 0.35);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0.3rem 0;
  margin-top: 0.9rem;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    gap 0.2s var(--ease);
}

.sp-read-more:hover {
  color: var(--teal-light);
  border-color: rgba(91, 191, 181, 0.65);
  gap: 0.65em;
}

.sp-read-more svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

/* Arrow flips when expanded */
.sp-item.is-expanded .sp-read-more svg {
  transform: rotate(180deg);
}

/* ── Partners Section ──────────────────────────────────────── */
.partners {
  background: var(--ocean);
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.partners__heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.partners__heading .eyebrow {
  margin-bottom: 0.85rem;
}

.partners__heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  opacity: 0.65;
  transition: opacity 0.35s var(--ease), transform 0.3s var(--ease);
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partner-logo img {
  height: clamp(28px, 3.5vw, 44px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Text fallback logo (used when no image is available) */
.partner-logo__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}

@media (max-width: 640px) {
  .partners__grid {
    gap: 1.75rem 2rem;
  }
  .partner-logo img {
    height: 32px;
    max-width: 130px;
  }
}

/* ── Per-image mobile position overrides ──────────────────── */
/* Add .bg-mobile-left to any background-image element, or       */
/* .img-mobile-left to any <img>, to anchor it to the left edge  */
/* on portrait mobile viewports instead of cropping to center.   */
@media (max-width: 768px) {
  .bg-mobile-left  { background-position: left center !important; }
  .img-mobile-left { object-position:     left center !important; }
}

/* ── Mobile image cropping — show center of all background images ── */
@media (max-width: 768px) {
  /* Hero slides: ensure center-crop on portrait viewport */
  .hero__slide {
    background-position: center center;
    background-size: cover;
  }

  /* Sticky split-panel photos */
  .sp-photo,
  .sp-photo-layer,
  [class*="sp-photo"] {
    background-position: center center !important;
    background-size: cover !important;
  }

  /* Crossfade gallery layers (fishery section) */
  .crossfade-layer,
  .crossfade-gallery [style*="background-image"] {
    background-position: center center !important;
    background-size: cover !important;
  }

  /* All inline background images site-wide */
  [style*="background-image"] {
    background-position: center center;
    background-size: cover;
  }

  /* img tags using object-fit — explicitly pin to center */
  .img-frame img,
  .bento__cell img,
  .editorial-split__visual img,
  .guide-feature__img img,
  .h-card img,
  .species-single__photo img {
    object-fit: cover;
    object-position: center center;
  }
}


/* ── Film tiles backed by a real video ────────────────────── */
.film-placeholder { position: relative; overflow: hidden; }
.film-placeholder__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.45; z-index: 0;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.film-placeholder--video::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(6,13,11,0.86) 0%, rgba(6,13,11,0.42) 70%, rgba(6,13,11,0.28) 100%);
}
.film-placeholder--video:hover .film-placeholder__thumb { opacity: 0.6; transform: scale(1.05); }
.film-placeholder--video > *:not(.film-placeholder__thumb) { position: relative; z-index: 2; }
.film-placeholder--video .film-placeholder__icon {
  background: rgba(6,13,11,0.45); border-color: rgba(255,255,255,0.4); backdrop-filter: blur(2px);
}
.film-placeholder--video .film-placeholder__icon svg { fill: rgba(255,255,255,0.9); }
.film-placeholder--video:hover .film-placeholder__icon { border-color: var(--teal); background: rgba(61,158,148,0.5); }

/* Once the player is mounted the tile stops behaving like a button */
.film-placeholder.is-playing { cursor: default; border-color: rgba(61,158,148,0.45); }
.film-placeholder.is-playing:hover { transform: none; }
.film-placeholder.is-playing::after { display: none; }
.film-placeholder.is-playing > *:not(iframe) { display: none; }
.film-placeholder.is-playing iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .film-placeholder--video:hover .film-placeholder__thumb { transform: none; }
}
