/* Bear Park — the ONE page masthead (Josh, 11 Jul: the reference grammar,
   Bear Park design). Every interior page opens the same way: generous sand
   space, a centred eyebrow, the H1, at most one earned sub-line. The full
   green hero band is retired site-wide; only the landing (video) and Our
   Story (photograph) keep their own cinematic openings.

   The contract: these paddings are the SAME on every page, so the eyebrow
   and H1 sit in the same place wherever you land, at every viewport.
   Loaded site-wide next to type.css. */

.phero {
  position: relative;
  background: var(--sand, #f2eee3);
  text-align: center;
  padding: clamp(140px, 24vh, 250px) var(--gut, clamp(15px, 2.625vw, 48px)) clamp(54px, 7vw, 96px);
}

/* one label register site-wide (Josh, 11 Jul): the masthead eyebrow IS the
   section eyebrow - size/weight/tracking enforced from type.css */
.phero__eyebrow {
  display: block;
  font-family: var(--sans, "Neue Haas Grotesk Display Pro", "Helvetica Neue", sans-serif);
  font-weight: 500; font-size: var(--t-eyebrow, 13px); line-height: 1.3;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest-soft, #526856);
}

.phero__h {
  margin: clamp(20px, 2.4vw, 30px) auto 0;
  max-width: 22ch;
  font-family: var(--display, "Canela LCG", Georgia, serif);
  font-weight: 300;
  font-size: var(--t-hero, clamp(46px, 6.6vw, 72px));
  line-height: 1.04; letter-spacing: -.01em;
  color: var(--ink, #232a23);
  text-wrap: balance;
}

.phero__sub {
  margin: clamp(18px, 2.2vw, 26px) auto 0;
  max-width: 52ch;
  font-family: var(--sans, "Neue Haas Grotesk Display Pro", "Helvetica Neue", sans-serif);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5;
  letter-spacing: 0; text-transform: none;
  color: rgba(35, 42, 35, .66);
  text-wrap: balance;
}

/* entrance: a quiet rise, no JS dependency (plays behind the curtain on
   handovers, exactly like every other hero entrance) */
@keyframes pheroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.phero__eyebrow, .phero__h, .phero__sub {
  opacity: 0;
  animation: pheroRise .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.phero__h { animation-delay: .08s; }
.phero__sub { animation-delay: .16s; }

/* ---------- the masthead-led photo hero (centre pages): the same masthead,
   then the photograph as a gutter-bled figure beneath it ---------- */
.hero--masthead { background: var(--sand, #f2eee3); }
.hero--masthead .phero { padding-bottom: clamp(44px, 5.5vw, 78px); }
.hero--masthead .hero__frame {
  margin: 0 var(--gut, clamp(15px, 2.625vw, 48px));
  height: clamp(420px, 74vh, 840px);
  overflow: hidden;
}
/* the parallax transform lives on the IMG via the page JS (overscan 1.12),
   so the entrance animates opacity only - they must never fight */
.hero--masthead .hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  display: block; transform: scale(1.12);
  animation: pheroFrame 1s ease both;
}
@keyframes pheroFrame {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- the CINEMATIC centre opening (Josh, 11 Jul: the old scroll
   mechanic restored, on sand - no forest) ----------
   The masthead text glides down toward the photograph; the photograph
   expands to gutter width and rides up; then it desaturates to B&W.
   Scrub lives in site/centre-hero.js. Mobile is the static masthead. */
.hero--cine { position: relative; height: 200vh; background: var(--sand, #f2eee3); }
.hero--cine .hero__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--sand, #f2eee3);
}
.hero--cine .phero {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  background: none; will-change: transform, opacity;
}
.hero--cine .hero__frame {
  position: absolute; inset: 0; z-index: 1;
  clip-path: inset(58vh var(--gut, clamp(15px, 2.625vw, 48px)) 0 var(--gut, clamp(15px, 2.625vw, 48px)));
  -webkit-clip-path: inset(58vh var(--gut, clamp(15px, 2.625vw, 48px)) 0 var(--gut, clamp(15px, 2.625vw, 48px)));
  will-change: clip-path;
}
.hero--cine .hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  display: block; transform: scale(1.06);
  will-change: transform, filter;
  animation: pheroFrame 1s ease both;
}

/* ---------- topbar over a light masthead: ink, not cream ----------
   (doubled class: nav.css loads after this file and its .topbar sets cream;
   the extra rules below also make this file authoritative on book-a-tour,
   which still runs the old template's topbar styles from remuera.css) */
.topbar.topbar--ink { color: var(--ink, #232a23); }
.topbar.topbar--ink .wordlink { grid-column: 2; justify-self: center; display: inline-flex; }
.topbar.topbar--ink .word { grid-column: auto; height: 34px; width: auto; }
.topbar.topbar--ink .link-line::before { content: none; display: none; }
.topbar.topbar--ink .link-line { border: 1px solid transparent; border-radius: 0; padding: 9px 16px; opacity: 1; }
.topbar.topbar--ink .link-line:hover { border-color: #c94e1d; background: #c94e1d; color: #fff; }

@media (max-width: 760px) {
  .phero { padding-top: clamp(110px, 16vh, 150px); padding-bottom: 44px; }
  .phero__sub { font-size: 17px; line-height: 1.45; max-width: 30ch; }
  .hero--masthead .phero { padding-bottom: 34px; }
  .hero--masthead .hero__frame { height: auto; aspect-ratio: 4/4.4; }
  .hero--masthead .hero__img { object-position: center 42%; }
}

/* phones: the cinematic stands down to the static masthead + figure
   (the page JS stands down at the same 820px line) */
@media (max-width: 820px) {
  .hero--cine { height: auto; }
  .hero--cine .hero__stage { position: static; height: auto; overflow: visible; padding-bottom: 46px; }
  .hero--cine .phero { position: static; transform: none !important; opacity: 1 !important; padding-bottom: 34px; }
  .hero--cine .hero__frame {
    position: static; z-index: auto;
    clip-path: none !important; -webkit-clip-path: none !important;
    margin: 0 var(--gut, clamp(15px, 2.625vw, 48px));
    aspect-ratio: 4/4.4; overflow: hidden;
  }
  .hero--cine .hero__img { filter: none !important; object-position: center 42%; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .phero__eyebrow, .phero__h, .phero__sub, .hero--masthead .hero__img { animation: none; opacity: 1; }
}
