/* ============================================================
   SunNok — site stylesheet
   Faithful reproduction of the provided design, componentised so
   that all copy/imagery is rendered dynamically from the database.
   ============================================================ */

:root {
  --bg: #FBF6EC;
  --bg-warm: #F4F2E8;
  --ink: #2A2521;
  --muted: #6B5F54;
  --muted-2: #7C7065;
  --rust: #9A6B47;

  /* Brand accents (overridden inline from SiteConfiguration) */
  --accent-parent: #7A4B2E;
  --accent-tropiq: #6E7A5C;
  --accent-base40: #B0683C;

  --accent: var(--accent-parent); /* default; sections re-map this */
  --maxw: 1180px;
}

/* ---- reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
/* Long single words (URLs, headings) should wrap rather than force overflow. */
h1, h2, h3, p, a, span { overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.serif { font-family: 'Cormorant Garamond', serif; }
.script { font-family: 'Pinyon Script', cursive; }

/* accent mapping helper */
.accent-parent { --accent: var(--accent-parent); }
.accent-tropiq { --accent: var(--accent-tropiq); }
.accent-base40 { --accent: var(--accent-base40); }

/* ---- wordmark lockup ---- */
.lockup { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.lockup--end { align-items: flex-end; }
.lockup__mark { font-family: 'Pinyon Script', cursive; color: var(--ink); line-height: .7; }
.lockup__tag {
  font-size: 6.5px; letter-spacing: .42em; color: var(--muted-2);
  margin-top: 5px; padding-left: 4px; text-transform: uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(251, 246, 236, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 37, 33, .10);
}
.nav__brand { cursor: pointer; display: flex; align-items: center; }
.nav__brand .lockup__mark { font-size: 34px; }
.nav { padding-top: 10px; padding-bottom: 10px; }
.nav__logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.nav__logo--brand { height: 80px; max-width: 200px; }
.nav__links { display: flex; gap: 40px; align-items: center; }
.nav__link {
  position: relative; font-size: 13px; letter-spacing: .1em;
  color: var(--ink); cursor: pointer; padding: 4px 0; background: none; border: 0;
}
.nav__link[aria-current="page"]::after,
.nav__link:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1.5px; background: var(--accent, var(--ink));
}
/* dropdown submenu (e.g. Our Brands → Tropiq / Base40) */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__caret { font-size: 8px; margin-left: 5px; opacity: .55; }
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 176px; padding: 8px 0; margin-top: 6px;
  background: rgba(251, 246, 236, .98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(42, 37, 33, .10); border-radius: 3px;
  box-shadow: 0 24px 44px -22px rgba(40, 30, 20, .45);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; z-index: 70;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__dropdown-link {
  padding: 11px 22px; font-size: 13px; letter-spacing: .08em; white-space: nowrap;
  color: var(--ink);
}
.nav__dropdown-link:hover { background: rgba(42, 37, 33, .06); }
.nav__dropdown-link[aria-current="page"] { color: var(--accent-parent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav__link--cta { display: none; } /* mobile dropdown only; shown via media query */
.btn-pill {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 11px 24px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; border-radius: 2px;
  transition: background .25s ease, color .25s ease;
}
.btn-pill:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
  display: inline-block; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; padding: 14px 28px; border-radius: 2px;
  cursor: pointer; border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn--solid { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--solid:hover { filter: brightness(.88); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--light-outline { background: transparent; color: var(--bg-warm); border-color: rgba(244,242,232,.6); }
.btn--light-outline:hover { background: var(--bg-warm); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg); cursor: pointer;
  border-bottom: 1px solid rgba(251,246,236,.55); padding-bottom: 5px;
  transition: gap .25s ease, border-color .25s ease;
}
.link-arrow:hover { gap: 16px; border-color: var(--bg); }
.link-arrow span { font-size: 15px; }

.back-link {
  font-size: 12px; letter-spacing: .14em; color: rgba(244,242,232,.7);
  cursor: pointer; border-bottom: 1px solid rgba(244,242,232,.4); padding-bottom: 5px;
}
.back-link:hover { color: var(--bg-warm); }

/* ============================================================
   SHARED SECTION PRIMITIVES
   ============================================================ */
.eyebrow {
  font-size: 11px; letter-spacing: .36em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 26px;
}
.section-rule { width: 46px; height: 1px; background: rgba(42,37,33,.35); margin: 34px auto; }

/* ---- HERO A: centered plaque ---- */
.hero-centered {
  position: relative; overflow: hidden; text-align: center;
  padding: 98px 24px 90px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #bcb1a1 center/cover no-repeat;
  background-image:
    radial-gradient(60% 60% at 50% 22%, rgba(251,244,230,.5), rgba(251,244,230,0)),
    linear-gradient(180deg, #cdc4b6 0%, #bcb1a1 45%, #a89c8b 100%);
}
/* With a background image, keep a full, immersive hero height even when the
   centre plaque is hidden, and anchor the caption toward the bottom so it
   clears any subject baked into the photo. */
.hero-centered.has-bg {
  min-height: 82vh; justify-content: flex-end; padding-bottom: 9vh;
  background-position: var(--focal, center); background-size: cover;
}
.hero-centered.has-bg .hero-centered__inner { width: 100%; }
.hero-centered__inner { position: relative; z-index: 1; }
.hero-centered.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(20,16,12,.32) 0%, rgba(20,16,12,.18) 45%, rgba(20,16,12,.5) 100%);
}
.hero-centered__plaque {
  animation: snScale 1.1s cubic-bezier(.2,.7,.2,1) both;
  width: min(860px, 90%); margin: 0 auto;
}
/* Responsive signage image — scales with its own aspect ratio, never cropped. */
.hero-signage {
  display: block; width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 38px 80px -30px rgba(40,28,16,.62);
}
.plaque {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 308px; border-radius: 3px; color: var(--bg);
  background:
    radial-gradient(50% 60% at 32% 30%, rgba(230,184,120,.55), rgba(230,184,120,0)),
    linear-gradient(135deg, #2c1a0d 0%, #6b4324 42%, #a9743f 55%, #6b4324 75%, #34200f 100%);
  box-shadow: 0 38px 80px -30px rgba(40,28,16,.62);
}
.plaque img { height: 100%; width: 100%; object-fit: cover; border-radius: 3px; }
.plaque__mark { font-family: 'Pinyon Script', cursive; font-size: 84px; line-height: .8; }
.plaque__tag { font-size: 14px; letter-spacing: .5em; margin-top: 10px; padding-left: .5em; }
.hero-centered h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: 70px; color: var(--bg); margin: 42px 0 0; letter-spacing: .015em;
  text-shadow: 0 2px 18px rgba(40,30,20,.28); animation: snFade 1s ease .25s both;
}
.hero-centered__sub {
  font-weight: 300; font-size: 14px; letter-spacing: .04em;
  color: rgba(251,246,236,.9); margin: 14px 0 0; animation: snFade 1s ease .4s both;
}

/* ---- PHILOSOPHY / STATEMENT ---- */
.philosophy { background: var(--bg); padding: 118px 24px 96px; text-align: center; }
.philosophy h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 42px;
  color: var(--ink); margin: 0 auto; max-width: 760px; line-height: 1.18;
}
.philosophy__body {
  font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--muted);
  max-width: 600px; margin: 0 auto;
}
.statement { padding: 110px 24px 70px; text-align: center; }
.statement .eyebrow { color: var(--accent); }
.statement h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 40px;
  color: #2C3326; max-width: 680px; margin: 0 auto; line-height: 1.22;
}

/* ---- SPLIT PILLARS ---- */
.pillars { display: flex; width: 100%; min-height: 640px; }
.pillar { position: relative; flex: 1; overflow: hidden; min-height: 640px; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(15deg, rgba(28,30,24,.82) 8%, rgba(28,30,24,.28) 55%, rgba(28,30,24,.12) 100%);
}
.pillar__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 52px 56px; }
.pillar__eyebrow {
  font-size: 11px; letter-spacing: .32em; color: rgba(251,246,236,.78); margin: 0 0 14px;
  text-transform: uppercase;
}
.pillar h3 {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: 42px; color: var(--bg); margin: 0 0 16px;
}
.pillar__text {
  font-weight: 300; font-size: 14.5px; line-height: 1.7;
  color: rgba(251,246,236,.82); max-width: 380px; margin: 0 0 24px;
}

/* ---- INVESTOR BAND ---- */
.investor-band { background: var(--bg); padding: 120px 24px; }
.investor-card {
  max-width: 1040px; margin: 0 auto; background: #fff;
  box-shadow: 0 30px 70px -40px rgba(40,30,20,.3);
  padding: 72px 80px; display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.investor-card__copy { flex: 1; min-width: 340px; }
.investor-card h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 38px;
  color: var(--ink); margin: 0 0 20px;
}
.investor-card__body {
  font-weight: 300; font-size: 15.5px; line-height: 1.8; color: var(--muted);
  max-width: 440px; margin: 0 0 34px;
}
.investor-card__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.investor-card__mark .lockup__mark { font-size: 58px; }
.investor-card__mark .lockup__tag { font-size: 8px; margin-top: 8px; }

/* ---- CINEMATIC HERO (Home B) ---- */
.hero-cine {
  position: relative; height: 88vh; min-height: 620px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-cine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cine__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,22,18,.46) 0%, rgba(26,22,18,.2) 40%, rgba(26,22,18,.62) 100%);
}
.hero-cine__inner { position: relative; animation: snFade 1.2s ease .1s both; padding: 0 24px; }
.hero-cine__eyebrow { font-size: 11px; letter-spacing: .44em; color: rgba(251,246,236,.82); margin: 0 0 22px; }
.hero-cine__mark {
  font-family: 'Pinyon Script', cursive; font-size: 120px; color: var(--bg);
  line-height: .8; text-shadow: 0 8px 40px rgba(20,14,10,.45);
}
.hero-cine h1 {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300;
  font-size: 34px; color: var(--bg); margin: 18px 0 0; letter-spacing: .02em;
}
.hero-cine__sub {
  font-weight: 300; font-size: 14px; letter-spacing: .04em; color: rgba(251,246,236,.85);
  margin: 20px auto 0; max-width: 430px; line-height: 1.7;
}
.hero-cine__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .3em; color: rgba(251,246,236,.7);
  animation: snFadeIn 2s ease 1s both;
}

/* ---- BRAND ARCHITECTURE — master brand + venture cards ---- */
.arch { position: relative; background: var(--bg); padding: 108px 24px 100px; text-align: center; }
.arch__intro { max-width: 760px; margin: 0 auto 44px; }
.arch__intro .eyebrow { letter-spacing: .38em; margin-bottom: 22px; color: var(--rust); }
.arch__intro h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 42px;
  color: var(--ink); margin: 0; line-height: 1.15;
}

/* master brand */
.arch__master { display: inline-flex; flex-direction: column; align-items: center; }
.arch__master-logo { height: 70px; width: auto; max-width: 250px; object-fit: contain; }
.arch__master-mark { font-family: 'Pinyon Script', cursive; font-size: 54px; line-height: .8; color: var(--ink); }
.arch__master-label { font-size: 10px; letter-spacing: .34em; color: var(--muted-2); text-transform: uppercase; margin-top: 12px; }
.arch__master::after { content: ""; display: block; width: 46px; height: 1px; background: var(--accent); opacity: .55; margin: 26px auto 0; }

/* venture cards */
.arch__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 940px; margin: 44px auto 0; }
.arch__card {
  position: relative; background: #fff; border-radius: 4px; overflow: hidden; text-align: left;
  box-shadow: 0 24px 60px -42px rgba(40,30,20,.5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.arch__card:hover { transform: translateY(-6px); box-shadow: 0 42px 82px -44px rgba(40,30,20,.6); }
.arch__card-media { position: relative; height: 288px; overflow: hidden; }
.arch__card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.arch__card:hover .arch__card-media img { transform: scale(1.05); }
.arch__card-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,12,.6), rgba(20,16,12,0) 58%); }
.arch__card-eyebrow { position: absolute; left: 30px; bottom: 22px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--bg-warm); }
.arch__card-copy { padding: 28px 30px 32px; border-top: 3px solid var(--accent); }
.arch__card-copy h3 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 30px; color: var(--ink); margin: 0 0 12px; line-height: 1.1; }
.arch__card-copy p { font-weight: 300; font-size: 14.5px; line-height: 1.72; color: var(--muted); margin: 0 0 20px; }
.arch__card-cta { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: gap .25s ease; }
.arch__card:hover .arch__card-cta { gap: 14px; }
.arch__card-cta span { color: var(--accent); font-size: 14px; }

/* ---- HOVER SPLIT (Home B) ---- */
.hover-split { display: flex; width: 100%; min-height: 560px; }
.hover-split__panel { position: relative; flex: 1; overflow: hidden; min-height: 560px; transition: flex .5s ease; }
.hover-split:hover .hover-split__panel { flex: .8; }
.hover-split .hover-split__panel:hover { flex: 1.4; }
.hover-split__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hover-split__panel:hover img { transform: scale(1.05); }
.hover-split__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,12,.7), rgba(20,16,12,.15)); }
.hover-split__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 52px; text-align: center; }
.hover-split__eyebrow { font-size: 11px; letter-spacing: .3em; color: rgba(251,246,236,.8); margin: 0 0 12px; }
.hover-split h3 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 40px; color: var(--bg); margin: 0 0 18px; }
.hover-split .link-arrow { justify-content: center; }

/* ---- SUB-PAGE HERO (Tropiq / Base40) ---- */
.hero-page { position: relative; height: 82vh; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.hero-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-page__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(30,36,28,.7) 0%, rgba(30,36,28,.32) 45%, rgba(30,36,28,.05) 100%);
}
.hero-page__inner { position: relative; padding: 0 24px 0 88px; max-width: 640px; animation: snFade 1s ease .15s both; }
.hero-page__eyebrow { font-size: 11px; letter-spacing: .34em; color: rgba(244,242,232,.85); margin: 0 0 20px; }
.hero-page h1 {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: 72px; color: var(--bg-warm); margin: 0; line-height: 1.02;
}
.hero-page__sub { font-weight: 300; font-size: 16px; line-height: 1.8; color: rgba(244,242,232,.88); max-width: 440px; margin: 26px 0 34px; }

/* ---- FEATURE TRIO ---- */
.trio-wrap { padding: 30px 56px 110px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 1180px; margin: 0 auto; }
.trio__card img { width: 100%; height: 380px; object-fit: cover; border-radius: 3px; }
.trio__card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; color: #2C3326; margin: 24px 0 10px; }
.trio__card p { font-weight: 300; font-size: 14.5px; line-height: 1.75; color: #5C6450; }

/* ---- QUOTE BAND ---- */
/* Dark band by default so the light quote text is always readable, even on
   pages that aren't wrapped in a .theme-* class. Themed pages override below. */
.quote-band { padding: 120px 24px; text-align: center; background: var(--ink); }
.quote-band__quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300;
  font-size: 34px; color: var(--bg-warm); max-width: 760px; margin: 0 auto; line-height: 1.5;
}
.quote-band__cta { margin-top: 44px; }
.quote-band__back { margin-top: 54px; }

/* ---- SPLIT FEATURE (alternating image + text rows) ---- */
.feature-rows { background: var(--bg); padding: 96px 24px; }
.feature-rows__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.feature-rows__head .eyebrow { color: var(--rust); }
.feature-rows__head h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 40px;
  color: var(--ink); line-height: 1.18; margin: 0;
}
.feature-row {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 40px 0;
}
.feature-row + .feature-row { padding-top: 24px; }
.feature-row__media img {
  width: 100%; height: 460px; object-fit: cover; border-radius: 3px;
  box-shadow: 0 30px 70px -40px rgba(40,30,20,.4);
}
.feature-row__copy .eyebrow { color: var(--accent); margin-bottom: 18px; }
.feature-row__copy h3 {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: 38px; color: var(--ink); margin: 0 0 18px; line-height: 1.1;
}
.feature-row__copy p {
  font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--muted);
  max-width: 460px; margin: 0 0 26px;
}
/* Even rows flip: image on the right. */
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.link-arrow--ink { color: var(--ink); border-color: rgba(42,37,33,.4); }
.link-arrow--ink:hover { border-color: var(--ink); }

/* ---- GALLERY GRID (editorial mosaic) ---- */
.gallery { background: var(--bg); padding: 96px 24px 110px; }
.gallery__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.gallery__head .eyebrow { color: var(--rust); }
.gallery__head h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 40px;
  color: var(--ink); margin: 0;
}
.gallery__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px;
}
.gallery__item { position: relative; overflow: hidden; border-radius: 3px; margin: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px 20px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px;
  color: var(--bg-warm);
  background: linear-gradient(0deg, rgba(20,16,12,.72), rgba(20,16,12,0));
}
/* Asymmetry: first tile tall, fourth tile wide. */
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }

/* themed page wrappers */
.theme-tropiq { background: var(--bg-warm); }
.theme-tropiq .statement h2, .theme-tropiq .trio__card h3 { color: #2C3326; }
.theme-tropiq .quote-band { background: #2C3326; }
.theme-base40 { background: var(--bg-warm); }
.theme-base40 .statement h2 { color: #3A2616; }
.theme-base40 .trio__card h3 { color: #3A2616; }
.theme-base40 .quote-band { background: #2B1C10; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid rgba(42,37,33,.12); padding: 72px 56px 56px; }
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 280px; }
.footer__brand .lockup__mark { font-size: 42px; }
.footer__brand .lockup__tag { font-size: 7px; margin-top: 6px; padding-left: 3px; }
.footer__logo { height: 56px; width: auto; object-fit: contain; }
.footer__blurb { font-weight: 300; font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 26px 0 0; }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col-title { font-size: 10px; letter-spacing: .26em; color: var(--rust); margin: 0 0 22px; text-transform: uppercase; }
.footer__link { display: block; width: fit-content; font-weight: 300; font-size: 14px; color: #4A4038; margin: 0 0 14px; cursor: pointer; }
.footer__link:hover { color: var(--ink); }
.footer__bottom {
  max-width: 1180px; margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(42,37,33,.10);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted-2);
}
.footer__social { display: flex; gap: 18px; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   FORMS
   ============================================================ */
.form-page { max-width: 1180px; margin: 0 auto; padding: 80px 48px 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.form-intro h1 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 56px; color: var(--ink); line-height: 1.05; margin: 12px 0 24px; }
.form-intro p { font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 440px; }
.form-intro .eyebrow { color: var(--accent); }
.form-detail { margin-top: 36px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.form-detail a { color: var(--accent); }

.sn-form { display: flex; flex-direction: column; gap: 20px; }
.sn-form label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.sn-field {
  width: 100%; font-family: 'Jost', sans-serif; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid rgba(42,37,33,.18); border-radius: 2px;
  padding: 13px 16px; transition: border-color .2s ease;
}
.sn-field:focus { outline: none; border-color: var(--accent); }
textarea.sn-field { resize: vertical; }
.sn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.field-error { color: #9a3324; font-size: 12.5px; margin-top: 6px; }

/* messages */
.messages { max-width: 1180px; margin: 16px auto 0; padding: 0 48px; }
.msg { padding: 14px 18px; border-radius: 2px; font-size: 14px; margin-bottom: 10px; }
.msg--success { background: #e7efe2; color: #2C3326; border: 1px solid #b9cdab; }
.msg--error { background: #f7e4e0; color: #7a2e22; border: 1px solid #e0b5ac; }

/* ============================================================
   FLOATING WHATSAPP + COOKIE + SWITCHER
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 720px; margin: 0 auto; background: var(--ink); color: var(--bg);
  border-radius: 4px; padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}
.cookie-banner p { font-size: 13px; font-weight: 300; flex: 1; min-width: 240px; line-height: 1.6; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-btn { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 18px; border-radius: 2px; cursor: pointer; border: 1px solid var(--bg); background: transparent; color: var(--bg); }
.cookie-btn--accept { background: var(--bg); color: var(--ink); }

.switcher {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 65;
  display: flex; align-items: center; gap: 8px;
  background: rgba(42,37,33,.92); color: var(--bg); padding: 8px 10px 8px 16px; border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
}
.switcher span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.switcher a { font-size: 11px; letter-spacing: .1em; padding: 7px 14px; border-radius: 999px; color: var(--bg); }
.switcher a.is-active { background: var(--bg); color: var(--ink); }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

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

/* ============================================================
   SCROLL REVEAL (sections fade + rise into view)
   Only active when <html class="anim-on"> (set in <head> per user pref).
   Heroes are excluded so they show immediately with their own animation.
   ============================================================ */
html.anim-on main section:not(.hero-page):not(.hero-centered):not(.hero-cine) {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
html.anim-on main section:not(.hero-page):not(.hero-centered):not(.hero-cine).is-visible { opacity: 1; transform: none; }
/* Never leave content hidden when motion is reduced. */
html.a11y-reduce-motion main section { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.anim-on main section { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes snFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes snFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes snScale { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 8px 20px; position: sticky; }
  .nav__logo { height: 42px; max-width: 64vw; }
  .nav__logo--brand { height: 60px; max-width: 56vw; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(251,246,236,.99); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(42,37,33,.08); padding: 6px 0 14px;
    box-shadow: 0 24px 40px -22px rgba(40,30,20,.45);
    z-index: 70; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    width: 100%; padding: 16px 22px; font-size: 14px; letter-spacing: .14em;
    border-top: 1px solid rgba(42,37,33,.07);
  }
  .nav__link:first-child { border-top: 0; }
  /* Dropdown collapses to indented inline items on mobile. */
  .nav__item { flex-direction: column; align-items: stretch; width: 100%; }
  .nav__caret { display: none; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: rgba(42, 37, 33, .03); box-shadow: none;
  }
  .nav__dropdown-link {
    padding: 14px 40px; font-size: 13.5px; letter-spacing: .12em;
    border-top: 1px solid rgba(42, 37, 33, .07);
  }
  .nav__link[aria-current="page"]::after,
  .nav__link:hover::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent-parent); }
  /* Mobile-only Book CTA inside the dropdown */
  .nav__link--cta {
    display: block; margin: 12px 22px 0; padding: 14px; text-align: center; border: 1px solid var(--ink);
    border-radius: 2px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  }
  .nav__link--cta:hover { background: var(--ink); color: var(--bg); }
  .nav__toggle { display: block; order: 3; padding: 6px; }
  .nav > .btn-pill { display: none; }

  .pillars, .hover-split { flex-direction: column; }
  .pillar, .hover-split__panel { min-height: 460px; }
  .pillar__body, .hover-split__body { padding: 40px 28px; }
  .hover-split:hover .hover-split__panel, .hover-split .hover-split__panel:hover { flex: 1; }

  .trio { grid-template-columns: 1fr; }
  .trio-wrap { padding: 20px 24px 80px; }
  .arch { padding: 76px 20px 80px; }
  .arch__cards { grid-template-columns: 1fr; gap: 22px; max-width: 460px; }
  .arch__master-logo { height: 58px; }

  .feature-rows { padding: 64px 24px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
  .feature-row__media img { height: 300px; }
  .feature-row__copy p { max-width: none; }

  .gallery { padding: 64px 20px 80px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
  .gallery__item:nth-child(1) { grid-row: span 1; }
  .gallery__item:nth-child(4) { grid-column: span 2; }

  .form-page { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 90px; }

  /* Investor band: stop the copy from forcing a min-width wider than the screen. */
  .investor-band { padding: 72px 20px; }
  .investor-card { padding: 40px 26px; gap: 28px; }
  .investor-card__copy { min-width: 0; }
  .investor-card__actions { width: 100%; }
  .investor-card__actions .btn { flex: 1; text-align: center; }
  .investor-card__mark { width: 100%; }
  .investor-card__mark .lockup { align-items: flex-start; }

  /* Footer: stack the link columns instead of overflowing in a row. */
  .footer { padding: 56px 24px 40px; }
  .footer__inner { flex-direction: column; gap: 36px; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .footer__bottom { flex-direction: column; }

  /* Hero: a shorter, wider banner crops the landscape far less on phones. */
  .hero-centered { padding: 64px 20px 56px; background-position: center; }
  /* On phones a wide banner can't be cropped to a tall frame without losing
     half the scene, so show the FULL image up top and let the heading + tagline
     sit below it on the cream — nothing gets sliced. */
  .hero-centered.has-bg {
    min-height: 0; padding: 0 24px 48px;
    background-size: 100% auto; background-position: top center;
    background-repeat: no-repeat; justify-content: flex-start;
    background-color: var(--bg);
  }
  .hero-centered.has-bg .hero-centered__inner { padding-top: calc(54.6vw + 30px); }
  .hero-centered.has-bg::before { display: none; }
  .hero-centered.has-bg h1 { color: var(--ink); text-shadow: none; margin-top: 0; }
  .hero-centered.has-bg .hero-centered__sub { color: var(--muted); }
  .hero-centered__plaque { width: 100%; }

  .hero-page__inner { padding: 0 24px; }
  .philosophy { padding: 80px 24px 70px; }
  .statement { padding: 80px 24px 50px; }
  .arch { padding: 80px 24px 70px; }
}

@media (max-width: 640px) {
  .hero-centered h1 { font-size: 46px; }
  .hero-cine__mark { font-size: 76px; }
  .philosophy h2, .statement h2, .arch h2 { font-size: 30px; }
  .hero-page h1 { font-size: 48px; }
  .pillar h3 { font-size: 32px; }
  .form-intro h1 { font-size: 40px; }
  .investor-card h2 { font-size: 30px; }
  .plaque__mark { font-size: 60px; }
}

/* ============================================================
   ACCESSIBILITY WIDGET + PREFERENCES
   ============================================================ */
.a11y { position: fixed; left: 22px; bottom: 22px; z-index: 75; }
.a11y-fab {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--bg); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: transform .2s ease;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab svg { width: 26px; height: 26px; fill: currentColor; }

.a11y-panel {
  position: absolute; left: 0; bottom: calc(100% + 12px); width: 248px;
  background: var(--bg); color: var(--ink); border: 1px solid rgba(42,37,33,.14);
  border-radius: 8px; padding: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__title {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: 19px; margin-bottom: 12px;
}
.a11y-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-row__label { font-size: 13px; }
.a11y-steps { display: flex; gap: 6px; }
.a11y-step {
  min-width: 38px; padding: 7px 0; cursor: pointer; font-size: 13px;
  border: 1px solid rgba(42,37,33,.3); border-radius: 4px;
  background: transparent; color: var(--ink);
}
.a11y-step:hover { background: rgba(42,37,33,.06); }
.a11y-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 13px;
  border: 1px solid rgba(42,37,33,.3); border-radius: 4px;
  background: transparent; color: var(--ink); text-align: left;
}
.a11y-opt:hover { background: rgba(42,37,33,.06); }
.a11y-opt.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.a11y-opt__state { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.a11y-reset {
  width: 100%; padding: 8px 0; margin-top: 4px; cursor: pointer;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: none; background: transparent; color: var(--muted); text-decoration: underline;
}
.a11y-reset:hover { color: var(--ink); }

/* High-contrast mode */
html.a11y-contrast {
  --bg: #ffffff; --bg-warm: #ffffff;
  --ink: #000000; --muted: #1a1a1a; --muted-2: #1a1a1a; --rust: #000000;
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-contrast .nav,
html.a11y-contrast .footer { border-color: #000; }
html.a11y-contrast .btn,
html.a11y-contrast .cookie-btn,
html.a11y-contrast .a11y-step,
html.a11y-contrast .a11y-opt { border-color: #000; }

/* Reduce motion */
html.a11y-reduce-motion,
html.a11y-reduce-motion * ,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

@media (max-width: 900px) {
  .a11y { left: 16px; bottom: 16px; }
  .a11y-fab { width: 46px; height: 46px; }
}
