
.site-header .logo-img {
  height: clamp(58px, 7vw, 90px);
  margin-top: clamp(0px, 3.2vw, 40px);
}
.site-header.is-scrolled .logo-img { height: 36px; margin-top: 0; }

@media (max-width: 767px) {
  .site-header .logo-img { height: 58px; margin-top: 0; }
  .site-header.is-scrolled .logo-img { height: 30px; }
}

/* Between 992 and 1199 the nav + "Explore All Worlds" button + toggle do not
   all fit on one row. The same link lives in the dropdown, so drop the button. */
@media (min-width: 992px) and (max-width: 1199px) {
  .site-header .btn-premium.aw-header-cta { display: none; }
}



@media (max-width: 991px) {
  .mobile-menu.mobile-menu {
    top: 0;
    bottom: auto;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(var(--aw-header-h, 76px) + 24px);
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
  }
  /* margin:auto trick = centred when there is room, scrollable when not */
  .mobile-menu > :first-child { margin-top: auto; }
  .mobile-menu > :last-child  { margin-bottom: auto; }

  .mobile-nav-link { padding: 0.5rem 1rem; }   /* comfortable tap area */
}



html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (hover: none) and (pointer: coarse) {
  .site-header .hamburger { width: 44px; height: 44px; }
  .aw-arrow               { width: 44px; height: 44px; font-size: 15px; }
  .aw-thumb               { width: 48px; height: 48px; }
  .aw-look-link           { min-height: 44px; }
  .btn-premium            { min-height: 44px; }

  .aw-look:hover                    { transform: none; }
  .aw-look:hover .aw-look-media img { transform: none; }
  .aw-thumb:hover                   { transform: none; }
  .ab-worlds a:hover::after         { transform: scaleX(0); }
}


/* --------------------------------------------------------------------------
   4. HERO (Ancient / About pages)
   -------------------------------------------------------------------------- */
.aw-hero { min-height: 100vh; min-height: 100svh; }   /* fallback for older browsers */

/* Short landscape screens: phones on their side, small laptops with toolbars */
@media (max-height: 560px) and (orientation: landscape) {
  .aw-hero { align-items: center; padding-top: calc(var(--aw-header-h) + 8px); padding-bottom: 24px; }
  .aw-world-tag { margin-bottom: 10px; }
  .aw-title { font-size: clamp(24px, 4.4vw, 34px); }
  .aw-rule { margin: 12px 0 8px; }
  .aw-kicker { font-size: 16px; margin-bottom: 8px; }
  .aw-desc { font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }
  .aw-rail-caption, .aw-scroll-cue { display: none; }
  .aw-thumbs { gap: 8px; }
  .aw-thumb { width: 44px; height: 44px; }
}

/* Landscape phones also hit the ≤767 mobile layout: stop it reserving 150px
   at the bottom and put the copy beside the image instead of under it. */
@media (max-width: 767px) and (max-height: 560px) and (orientation: landscape) {
  .aw-hero { align-items: center; padding-bottom: 84px; }
  .aw-copy { max-width: 72%; }
  .aw-scrim {
    background: linear-gradient(90deg,
      rgba(10, 22, 5, 0.88) 0%, rgba(10, 22, 5, 0.6) 60%, rgba(10, 22, 5, 0.25) 100%);
  }
  .aw-rail { bottom: 14px; }
}

/* Small phones */
@media (max-width: 359px) {
  .aw-title { font-size: 26px; letter-spacing: 1px; }
  .aw-hero-inner { padding: 0 18px; }
  .aw-hero .btn-premium.aw-cta { padding: 12px 18px; font-size: 10.5px; }
}

/* Large desktop → ultra-wide: scale the hero up instead of leaving a small
   column of text floating on a huge image */
@media (min-width: 1600px) {
  .aw-hero-inner { padding: 0 7%; }
  .aw-copy { max-width: 700px; }
  .aw-world-name { font-size: 15px; }
  .aw-title { font-size: clamp(54px, 3.4vw, 76px); letter-spacing: 4px; }
  .aw-kicker { font-size: clamp(24px, 1.5vw, 32px); }
  .aw-desc { font-size: clamp(16px, 0.95vw, 20px); max-width: 540px; }
  .aw-rule { width: 260px; }
  .aw-hero .btn-premium.aw-cta { padding: 20px 38px; font-size: 13px; }
  .aw-rail { right: 4%; gap: 24px; }
  .aw-thumb { width: clamp(62px, 4vw, 92px); height: clamp(62px, 4vw, 92px); }
  .aw-rail-caption { font-size: 12px; }
}


/* --------------------------------------------------------------------------
   5. ANCIENT COLLECTION (three looks)
   -------------------------------------------------------------------------- */
.aw-collection-meta { flex-wrap: wrap; }

/* Tablet (768-991): keep the carousel — the original three-column grid starts at 992.
   Overrides style-ancient-three.css, which switches to a grid at 768. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .aw-collection.aw-collection--three .aw-collection-body,
  .aw-collection.aw-collection--four  .aw-collection-body { gap: 0; }

  .aw-collection.aw-collection--three .aw-track,
  .aw-collection.aw-collection--four  .aw-track {
    display: flex;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 16px;
    padding: 22px 20px 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scroll-behavior: smooth;
    transform: none !important;
  }
  .aw-collection.aw-collection--three .aw-look,
  .aw-collection.aw-collection--four  .aw-look {
    flex: 0 0 calc((100% - 32px) / 2.4);     /* two cards + a peek of the next */
    width: auto;
    max-width: none;
    min-width: 0;
    scroll-snap-align: start;
  }
  .aw-collection.aw-collection--three .aw-arrows,
  .aw-collection.aw-collection--four  .aw-arrows { display: flex; }   /* arrows are needed again */
  .aw-collection--three .aw-side-note,
  .aw-collection--four  .aw-side-note { display: none; }
}

/* Large phones: show a card and a half so it is obvious it swipes */
@media (min-width: 480px) and (max-width: 767.98px) {
  .aw-collection--three .aw-look { flex-basis: 52%; }
}
@media (max-width: 359px) {
  .aw-collection--three .aw-look { flex-basis: 86%; }
}

/* Wide screens: keep cards a sensible size instead of 900px-tall portraits */
@media (min-width: 1800px) {
  .aw-collection--three .aw-collection-head {
    padding-inline: max(36px, calc((100% - 1760px) / 2));
  }
  .aw-collection--three .aw-collection-body {
    padding-inline: max(0px, calc((100% - 1760px) / 2));
  }
}


/* 6. VALUE STRIP: always two per row on small screens */
@media (max-width: 420px) {
  .aw-value { padding: 22px 10px; }
  .aw-value-title { font-size: 11px; letter-spacing: 1.2px; }
  .aw-value-desc { font-size: 11.5px; }
}
@media (max-width: 359px) {
  .aw-value { padding: 20px 8px; }
  .aw-value-title { font-size: 10px; letter-spacing: 1px; }
  .aw-value-desc { font-size: 11px; }
}


/* --------------------------------------------------------------------------
   7. ABOUT PAGE
   -------------------------------------------------------------------------- */

/* BUG: overflow:hidden on the chapter turns it into a scroll container, which
   silently disables the sticky chapter numeral. `clip` clips without that. */
.ab-chapter { overflow: hidden; overflow: clip; }

/* iOS ignores background-attachment: fixed (and it janks on touch devices) */
@media (hover: none), (max-width: 991px) {
  .ab-chapters { background-attachment: scroll; }
}

/* The fixed 01–06 index collided with the text column at 1200–1279px */
@media (max-width: 1279px) {
  .ab-index { display: none; }
}

/* Five Worlds in one row overflowed the word "INFINITY" at 992–1199.
   Reuse the two-column grid there; five across only from 1200px. */
@media (min-width: 992px) and (max-width: 1199px) {
  .ab-worlds { grid-template-columns: 1fr 1fr; }
  .ab-worlds li + li { border-left: 1px solid var(--ab-gold-soft); }
  .ab-worlds li:nth-child(odd) { border-left: 0; }
  .ab-worlds li:nth-child(n + 3) { border-top: 1px solid var(--ab-gold-soft); }
  .ab-worlds li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .ab-world-name {
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }
}

.ab-question { overflow-wrap: break-word; }

/* A tall sticky numeral can be taller than a short window */
@media (max-height: 600px) {
  .ab-side { position: static; }
}

@media (min-width: 1800px) {
  .ab-inner { width: min(1400px, 100% - 6rem); }
  .ab-main { max-width: 880px; }
  .ab-body p { font-size: 1.65rem; }
}


/* --------------------------------------------------------------------------
   8. HOME PAGE HERO
   -------------------------------------------------------------------------- */

/* BUG: max-height: 720px on phones left a white band under the video on any
   phone taller than 720px (most modern ones). */
@media (max-width: 767px) {
  .hero-frame { max-height: none; }
}

@media (min-width: 1600px) {
  .hero-overlay-content { left: 7%; max-width: 760px; }
  .intro-title { font-size: clamp(46px, 3vw, 68px); }
}


/* --------------------------------------------------------------------------
   9. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .aw-look, .aw-look-media img { transition: none; }
}


/* --------------------------------------------------------------------------
   10. JS-RELATED RESPONSIVE FIXES
   -------------------------------------------------------------------------- */

/* Letter-by-letter animation now groups characters into words, so text wraps
   between words instead of splitting mid-word on narrow screens. */
.word { display: inline-block; white-space: nowrap; }

/* Touch screens that are wide enough to show the horizontal nav (iPad
   landscape, 992px+) have no use for the full-screen menu. Hide the toggle
   there; otherwise it opened a white, unstyled overlay. */
@media (min-width: 992px) and (hover: none) {
  body:has(.aw-nav) .site-header .header-toggle { display: none; }
}


/* --------------------------------------------------------------------------
   11. HOME PAGE — mobile menu was white, so the white "X" (close button)
   in the header was invisible against it. Give it the same dark panel the
   other pages use, and make the toggle clearly visible while open.
   -------------------------------------------------------------------------- */
body:not(.ancient-page) .mobile-menu {
  background: rgba(11, 7, 5, 0.97);
  text-align: center;
}
body:not(.ancient-page) .mobile-nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E8E0D4;
}
body:not(.ancient-page) .mobile-nav-link:hover,
body:not(.ancient-page) .mobile-nav-link:focus-visible { color: #E7CD8C; }

/* Open state: solid gold ring so it reads as a close button on any background */
.site-header .hamburger.is-active,
.site-header .hamburger[aria-expanded="true"] {
  border-color: #E7CD8C;
  background: rgba(231, 205, 140, 0.12);
}
.site-header .hamburger.is-active span,
.site-header .hamburger[aria-expanded="true"] span { background: #E7CD8C; }


/* --------------------------------------------------------------------------
   12. WORLDS PAGE — "Select Your World" intro vs. the world nodes

   Cause: .worlds-intro sat at left:6% / up to 360px wide, centred at 35% of the
   height — straight across the "Present" node (≈15–27% of the width, same
   height) on desktop, and across the "Ancient" node at the top on phones.

   Fix: the intro now lives only in space the nodes never use.
     • 992px+      : a narrow strip on the far left (left of the Present node)
     • up to 991px : a compact two-line heading in the top-left corner, kept
                     narrower than 42% so it never reaches the centre "Ancient" node
   Everything is sized in vw so it holds at every width.
   -------------------------------------------------------------------------- */
.text.wave { line-height: 1.08; margin: 0; }
.text.wave span {
  display: inline-block;               /* keeps the wave animation working */
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ----- Desktop / laptop: far-left strip ----- */
@media (min-width: 992px) {
  .worlds-intro {
    left: 2.5%;
    max-width: 11.5vw;                 /* right edge stays left of the Present node */
  }
  .text.wave span { font-size: clamp(18px, 2.4vw, 46px); }
  .worlds-eyebrow {
    font-size: clamp(8px, 0.6vw, 11px);
    letter-spacing: 0.2em;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .worlds-rule { width: 56px; margin: 16px 0 12px; }
  .worlds-sub { font-size: clamp(10px, 0.8vw, 13.5px); line-height: 1.6; letter-spacing: 0.3px; }
}

/* ----- Tablet + phone: compact heading in the top-left corner ----- */
@media (max-width: 991px) {
  .worlds-intro {
    top: calc(var(--header-height-mobile, 72px) + 8px);
    left: 4%;
    right: auto;
    transform: none;
    align-items: flex-start;
    text-align: left;
    max-width: 42%;
    padding: 0;
  }
  .worlds-eyebrow, .worlds-rule, .worlds-sub { display: none; }   /* no room beside the artwork */

  /* "Select Your" / "World" — two short lines instead of three */
  .text.wave br:first-of-type { display: none; }
  .text.wave span { font-size: clamp(14px, 4.2vw, 30px); margin-right: 0.25em; }
  .text.wave span:nth-of-type(2) { margin-right: 0; }
}

/* Left scrim: tall enough for the heading only, so it doesn't darken the Ancient node */
@media (max-width: 767px) {
  .worlds-frame::before { height: 22%; }
}

/* ----- Node labels: keep "Enter World" readable on touch ----- */
.world-node-enter { font-size: clamp(8px, 0.75vw, 11px); }

/* ----- Worlds mobile menu: CTA was dark-on-dark ----- */
body:not(.ancient-page) .btn-premium.btn-premium--mobile {
  background: transparent;
  border: 1px solid rgba(231, 205, 140, 0.5);
  color: #E7CD8C;
  width: fit-content;
  margin-inline: auto;
}
body:not(.ancient-page) .btn-premium.btn-premium--mobile::before { display: none; }


/* --------------------------------------------------------------------------
   13. FIVE-LOOK COLLECTIONS (Present World) + long titles on all world pages
   The three-look pages are handled in section 5; this covers the original
   five-card carousel that the Present page still uses.
   -------------------------------------------------------------------------- */
.aw-look-title { overflow-wrap: anywhere; }

/* 1200–1599: five cards across a narrower track — tighten the card interior */
@media (min-width: 1200px) and (max-width: 1599px) {
  .aw-collection:not(.aw-collection--three) .aw-look { padding: 8px; }
  .aw-collection:not(.aw-collection--three) .aw-look-text { padding: 14px 6px 20px; }
  .aw-collection:not(.aw-collection--three) .aw-look-title { font-size: 12.5px; letter-spacing: 2px; line-height: 1.5; }
  .aw-collection:not(.aw-collection--three) .aw-look-desc { font-size: 12px; }
  .aw-collection:not(.aw-collection--three) .aw-look-link { padding: 8px 12px; letter-spacing: 1.5px; }
}

/* Tablet (3 across) — slightly tighter text so titles don't crowd */
@media (min-width: 768px) and (max-width: 1199px) {
  .aw-collection:not(.aw-collection--three) .aw-look-title { font-size: 13px; letter-spacing: 2px; line-height: 1.5; }
}

/* Large phones: show one and a half cards so it's clear the strip swipes */
@media (min-width: 480px) and (max-width: 767.98px) {
  .aw-collection:not(.aw-collection--three) .aw-look { flex-basis: 52%; }
}
@media (max-width: 359px) {
  .aw-collection:not(.aw-collection--three) .aw-look { flex-basis: 86%; }
}

/* Ultra-wide: keep the carousel from stretching edge to edge */
@media (min-width: 1800px) {
  .aw-collection:not(.aw-collection--three) .aw-collection-head {
    padding-inline: max(36px, calc((100% - 1760px) / 2));
  }
  .aw-collection:not(.aw-collection--three) .aw-collection-body {
    padding-inline: max(0px, calc((100% - 1760px) / 2));
  }
}


/* --------------------------------------------------------------------------
   14. FOUR-LOOK COLLECTION (Global World)
   The carousel was sized for five cards, so four left an empty fifth slot.
   Add class "aw-collection--four" to the section: four cards share the row
   (2 x 2 on tablets), and phones keep the swipeable strip.
   -------------------------------------------------------------------------- */
.aw-collection--four .aw-collection-body {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 3vw, 48px);
}
.aw-collection--four .aw-side-note {
  position: static;
  flex: 0 0 auto;
  align-self: center;
  max-width: 160px;
  margin: 0;
}

@media (min-width: 992px) {
  .aw-collection--four .aw-track {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 36px);
    padding: 26px;
    overflow: visible;
    transform: none;
  }
  .aw-collection--four .aw-look { flex: none; width: auto; min-width: 0; }
  .aw-collection--four .aw-arrows { display: none; }    /* nothing left to scroll */
}

@media (min-width: 992px) and (max-width: 1199px) {
  .aw-collection--four .aw-side-note { display: none; } /* no room until wide screens */
}

@media (min-width: 1200px) {
  .aw-collection--four .aw-side-note { display: flex; }
}

/* 992–1199: four narrow cards — tighten the card interior */
@media (min-width: 992px) and (max-width: 1199px) {
  .aw-collection--four .aw-look { padding: 8px; }
  .aw-collection--four .aw-look-text { padding: 14px 6px 20px; }
  .aw-collection--four .aw-look-title { font-size: 12px; letter-spacing: 1.8px; line-height: 1.5; }
  .aw-collection--four .aw-look-desc { font-size: 12px; }
  .aw-collection--four .aw-look-link { padding: 8px 12px; letter-spacing: 1.5px; }
}





 

 @media (max-width: 767px) {
  :root { --header-height: 88px; --header-height-mobile: 88px; }

  .site-header { height: 88px; }
  .site-header .logo-img { height: 58px; margin-top: 10px; }   /* original size, pushed down */
  .site-header.is-scrolled { height: 64px; }
  .site-header.is-scrolled .logo-img { height: 30px; margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 991px) {
  :root { --header-height-tablet: 96px; }

  .site-header { height: 96px; }
  .site-header .logo-img { height: 64px; margin-top: 10px; }
  .site-header.is-scrolled { height: 68px; }
  .site-header.is-scrolled .logo-img { height: 34px; margin-top: 0; }
}


 /* ---------- Footer text: ONE font size on every page, every screen ---------- */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer span {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.4px !important;
}

 /* ---------- Footer link: same colour on every page ---------- */
.site-footer .footer-powered a,
.site-footer .footer-brand a {
  color: #E7CD8C !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.site-footer .footer-powered a:hover,
.site-footer .footer-powered a:focus-visible,
.site-footer .footer-brand a:hover,
.site-footer .footer-brand a:focus-visible {
  color: #ffffff !important;
  border-bottom-color: #E7CD8C;
}