/* ==========================================================================
   Mountain Streams Resort & Casino — style.css
   Design system "Blossom & Plum": a spring orchard by day, an evening of games by night.
   One file, numbered blocks.
   No inline styles anywhere (CSP style-src 'self'); dynamic values come from JS via CSSOM.

   Breakpoints (mobile first): 480 / 768 / 1024 / 1200 / 1440
   ========================================================================== */


/* ==========================================================================
   01. Fonts — self-hosted variable fonts from /fonts (font-src 'self')
   Bricolage Grotesque: wght 200–800, wdth 75–100 · Golos Text: wght 400–900
   Only Golos Text carries Cyrillic (the owner block in the footer).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


/* ==========================================================================
   02. Tokens
   ========================================================================== */

:root {
  /* --- 02.1 Palette ---------------------------------------------------- */
  --c-cream:      #FBF6EF;  /* main background */
  --c-blossom:    #F6E4E3;  /* alternating sections */
  --c-blossom-2:  #EDCBCB;  /* cards and borders on light */
  --c-plum:       #3B1F3A;  /* evening sections, main text on light */
  --c-plum-2:     #4E2A4C;  /* cards on plum */
  --c-plum-dim:   rgba(59, 31, 58, .70);
  --c-apple:      #5E7F2A;  /* decorative / large text only: 4.30 on cream, 3.77 on blossom */
  --c-apple-dk:   #476020;  /* apple text on light: 6.59 cream · 5.78 blossom · 4.73 blossom-2 */
  --c-apple-lt:   #B9D37A;  /* accent on plum */
  --c-honey:      #D08C2F;  /* decorative only on light, never small text */
  --c-fjord:      #1F4E5F;  /* secondary accent: map, links on legal pages */
  --c-petal:      #FBEFEF;  /* text on plum */
  --c-white:      #FFFFFF;  /* polaroid frames */
  --c-line:       rgba(59, 31, 58, .14);
  --c-line-dark:  rgba(251, 239, 239, .18);

  /* --- 02.2 Surface variables (swapped by .section--blossom / --plum) ---- */
  --bg:        var(--c-cream);
  --text:      var(--c-plum);
  --text-dim:  var(--c-plum-dim);          /* 5.33 on cream · 5.02 on blossom */
  --accent:    var(--c-apple-dk);          /* eyebrows, small accent text */
  --deco:      var(--c-honey);             /* blossom marks, dividers — no text */
  --line:      var(--c-line);
  --card-bg:   var(--c-cream);
  --card-line: var(--c-plum);
  --focus:     var(--c-plum);              /* 13.5 on cream */
  --btn-bg:       var(--c-plum);
  --btn-text:     var(--c-cream);
  --btn-bg-hover: var(--c-plum-2);
  --ticket-bg:    var(--c-plum);
  --ticket-text:  var(--c-petal);          /* 12.96 */
  --shadow:    0 14px 30px -14px rgba(59, 31, 58, .38);

  /* --- 02.3 Type ------------------------------------------------------- */
  --ff-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-h1:   clamp(2.8rem, 6.6vw, 6rem);
  --fs-h2:   clamp(2rem, 4vw, 3.4rem);
  --fs-h3:   clamp(1.3rem, 2.1vw, 1.75rem);
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-lead: clamp(1.1rem, 1.4vw, 1.3rem);
  --fs-small: .875rem;
  --fs-eyebrow: .72rem;

  /* --- 02.4 Layout ----------------------------------------------------- */
  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 62ch;
  --space-section: clamp(4.5rem, 9vw, 9rem);
  --header-h: 4.5rem;

  /* --- 02.5 Shape & motion --------------------------------------------- */
  --r-card: 24px;
  --r-ticket: 10px;
  --r-pill: 999px;
  --border: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 300ms;

  /* --- 02.6 Shared SVG (data: URIs are allowed by img-src) ------------- */
  /* Five-petal apple blossom, used as a mask in any colour */
  --blossom: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'><g><ellipse cy='-5.6' rx='4.3' ry='5.9'/><ellipse cy='-5.6' rx='4.3' ry='5.9' transform='rotate(72)'/><ellipse cy='-5.6' rx='4.3' ry='5.9' transform='rotate(144)'/><ellipse cy='-5.6' rx='4.3' ry='5.9' transform='rotate(216)'/><ellipse cy='-5.6' rx='4.3' ry='5.9' transform='rotate(288)'/></g></svg>");
  /* Grain for light sections: 400×400 tile, opacity set on the pseudo-element */
  --grain: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .23 0 0 0 0 .12 0 0 0 0 .23 0 0 0 1 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>");
  /* Scattered petals for plum sections: three static shapes, fill-opacity ≤ .06 */
  --petals: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'><g fill='%23FBEFEF' fill-opacity='.06'><path d='M140 120c40-50 110-40 120 10s-50 90-100 80-60-45-20-90z'/><path d='M1010 180c50-20 100 20 90 70s-70 70-110 45-30-95 20-115z'/><path d='M860 650c30-45 95-45 110 0s-35 85-80 80-55-40-30-80z'/></g></svg>");
}

/* --- Section surfaces: the rhythm is cream → blossom → plum ------------- */

.section--blossom {
  --bg: var(--c-blossom);
  --card-bg: var(--c-cream);
}

.section--plum,
.site-footer,
.nav-overlay {
  --bg:        var(--c-plum);
  --text:      var(--c-petal);                 /* 12.96 */
  --text-dim:  rgba(251, 239, 239, .75);       /* 7.92 */
  --accent:    var(--c-apple-lt);              /* 8.77 */
  --deco:      var(--c-blossom-2);
  --line:      var(--c-line-dark);
  --card-bg:   var(--c-plum-2);
  --card-line: var(--c-line-dark);
  --focus:     var(--c-apple-lt);              /* 8.77 */
  --btn-bg:       var(--c-apple-lt);           /* plum text on it: 8.77 */
  --btn-text:     var(--c-plum);
  --btn-bg-hover: var(--c-petal);
  --ticket-bg:    var(--c-apple-lt);
  --ticket-text:  var(--c-plum);           /* 8.77 */
  --shadow:    0 14px 30px -14px rgba(0, 0, 0, .55);
}


/* ==========================================================================
   03. Base & reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-plum);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-stretch: 85%;           /* narrower width axis for the display size */
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0 0 1em;
}

p { text-wrap: pretty; }

strong,
b { font-weight: 600; }

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover { text-decoration-thickness: 2px; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

table,
.num {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--c-blossom-2);
  color: var(--c-plum);
}

[hidden] {
  display: none !important;
}


/* ==========================================================================
   04. Layout & utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-col {
  max-width: var(--measure);
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-section);
  background: var(--bg);
  color: var(--text);
}

/* Texture sits on a pseudo-element behind the content */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 400px 400px;
  opacity: .035;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section--plum::before {
  background-image: var(--petals);
  background-size: cover;
  background-position: center;
  opacity: 1;                  /* transparency lives inside the SVG (≤ .06) */
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.muted { color: var(--text-dim); }

.small { font-size: var(--fs-small); }

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

.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--c-plum);
  color: var(--c-petal);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--c-apple-lt);
}


/* ==========================================================================
   05. Components
   ========================================================================== */

/* --- 05.1 Eyebrow: "Round 03 · The orchards" ----------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: var(--deco);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

/* --- 05.2 Buttons: pills, thick outline, fill + slight tilt on hover ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 3rem;
  padding: .7rem 1.5rem;
  border: var(--border) solid var(--text);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: rotate(-1deg);
}

.btn--primary {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn--primary:hover {
  border-color: var(--btn-bg-hover);
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: var(--r-pill);
}

.btn--small {
  min-height: 2.5rem;
  padding: .5rem 1.15rem;
  font-size: .9rem;
}

/* --- 05.3 Tickets: chips with two half-round notches --------------------- */

.ticket {
  --notch: 5px;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3rem 1rem;
  border-radius: var(--r-ticket);
  background: var(--ticket-bg);
  color: var(--ticket-text);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.ticket--soft {
  background: var(--c-blossom-2);
  color: var(--c-plum);             /* 9.71 */
}

/* --- 05.4 Riddle cards: big radius, thick plum outline ------------------- */

.card {
  position: relative;
  border: var(--border) solid var(--card-line);
  border-radius: var(--r-card);
  background: var(--card-bg);
  color: var(--text);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card__body {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

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

/* Hover: lift 3px + plum shadow, no scaling */
.card--hover:hover,
.card--hover:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* --- 05.5 Blossom list markers ------------------------------------------ */

.list-blossom {
  padding: 0;
  list-style: none;
}

.list-blossom li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: .5em;
}

.list-blossom li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 1em;
  height: 1em;
  background: var(--deco);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

/* --- 05.6 Divider: thin line with a blossom in the middle ---------------- */

.divider {
  position: relative;
  height: 1.5rem;
  margin-block: clamp(2rem, 4vw, 3rem);
  border: 0;
  background:
    linear-gradient(var(--line), var(--line)) left center / calc(50% - 1.5rem) 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right center / calc(50% - 1.5rem) 1px no-repeat;
}

.divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  translate: -50% 0;
  background: var(--deco);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

/* --- 05.7 Dots (hero, carousels): blossom when current ------------------ */

.dot {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.dot::before {
  content: "";
  position: absolute;
  inset: .375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transition: inset var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.dot[aria-current="true"]::before,
.dot.is-active::before {
  inset: 0;
  border-radius: 0;
  opacity: 1;
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

/* --- 05.8 Polaroids: white frame, wider bottom, tilt from JS (--tilt) ---- */

.polaroid {
  --tilt: 0deg;
  margin: 0;
  padding: .75rem .75rem 0;
  background: var(--c-white);
  color: var(--c-plum);
  box-shadow: 0 10px 24px -12px rgba(59, 31, 58, .35);
  transform: rotate(var(--tilt));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.polaroid img {
  width: 100%;
  object-fit: cover;
}

.polaroid figcaption {
  padding: .8rem .25rem 1.1rem;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.35;
  text-align: center;
}

.polaroid:hover,
.polaroid:focus-within {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 18px 32px -14px rgba(59, 31, 58, .45);
}

/* --- 05.9 "Artist's impressions" disclaimer line ------------------------ */

.disclaimer {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* --- 05.10 Figures strip (project numbers) ------------------------------ */

.figure-num {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   06. Header & navigation overlay
   JS contract (stage 6): .site-header.is-scrolled after 80px · .nav-overlay.is-open ·
   aria-expanded on .nav-toggle · html.is-scroll-locked · .site-nav__link.is-active
   Without JS (html:not(.js)) the burger is hidden and the menu stays in the header.
   ========================================================================== */

/* --- 06.1 Bar ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(251, 246, 239, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem clamp(1rem, 2vw, 2rem);
  min-height: var(--header-h);
}

/* Home page: the header floats over the hero, transparent with light text and a
   soft plum gradient from the top, until JS adds .is-scrolled.
   Without JS it is absolute, so it scrolls away with the hero and never sits
   light-on-light. */
.site-header--hero {
  position: absolute;
  inset: 0 0 auto;
}

.js .site-header--hero {
  position: fixed;
}

.site-header--hero:not(.is-scrolled) {
  --text:         var(--c-petal);
  --focus:        var(--c-apple-lt);
  --btn-bg:       var(--c-apple-lt);
  --btn-text:     var(--c-plum);
  --btn-bg-hover: var(--c-petal);
  background: linear-gradient(to bottom, rgba(59, 31, 58, .7), rgba(59, 31, 58, 0)) border-box no-repeat;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Menu open: the header sits on the plum overlay */
.site-header:has(.nav-toggle[aria-expanded="true"]) {
  --text:         var(--c-petal);
  --focus:        var(--c-apple-lt);
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* --- 06.2 Logo: blossom disc with MS + MOUNTAIN STREAMS ------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.logo__word {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Phones: the two-word name shrinks so the burger stays on the same line */
@media (max-width: 479.98px) {
  .logo__word {
    font-size: clamp(.85rem, 4.1vw, 1.3rem);
    letter-spacing: .06em;
  }
}

/* --- 06.3 Desktop menu --------------------------------------------------- */

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(1rem, 1.6vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding-block: .4rem;
  color: inherit;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease);
}

.site-nav__link:hover {
  background-size: 100% 1px;
}

/* Active item: a blossom before the text */
.site-nav__link.is-active::before,
.site-nav__link[aria-current]::before {
  content: "";
  width: .8em;
  height: .8em;
  flex: none;
  background: var(--deco);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

.site-header--hero:not(.is-scrolled) .site-nav__link.is-active::before {
  background: var(--c-blossom-2);
}

/* --- 06.4 Burger ---------------------------------------------------------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: var(--border) solid currentColor;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
}

.nav-toggle:focus-visible {
  border-radius: var(--r-pill);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after  { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: rotate(-45deg); }

/* --- 06.5 Full-screen overlay (< 1200px) --------------------------------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg) var(--petals) center / cover no-repeat;
  color: var(--text);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
}

.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 100%;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem));
  padding-bottom: 2rem;
}

.nav-overlay__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-overlay__list li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

.nav-overlay.is-open .nav-overlay__list li {
  opacity: 1;
  transform: none;
}

/* Items appear one after another */
.nav-overlay.is-open li:nth-child(1) { transition-delay: 60ms; }
.nav-overlay.is-open li:nth-child(2) { transition-delay: 110ms; }
.nav-overlay.is-open li:nth-child(3) { transition-delay: 160ms; }
.nav-overlay.is-open li:nth-child(4) { transition-delay: 210ms; }
.nav-overlay.is-open li:nth-child(5) { transition-delay: 260ms; }
.nav-overlay.is-open li:nth-child(6) { transition-delay: 310ms; }
.nav-overlay.is-open li:nth-child(7) { transition-delay: 360ms; }

.nav-overlay__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: .7rem;
  color: inherit;
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-decoration: none;
}

.nav-overlay__link:hover {
  color: var(--accent);
}

.nav-overlay__round {
  flex: none;
  min-width: 5.5rem;
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.nav-overlay__cta {
  align-self: flex-start;
  margin-top: auto;
}

html.is-scroll-locked {
  overflow: hidden;
}

/* --- 06.6 Breakpoints ------------------------------------------------------ */

/* No JS: never show the overlay or the burger */
html:not(.js) .nav-overlay,
html:not(.js) .nav-toggle {
  display: none;
}

@media (max-width: 1199.98px) {
  .js .site-nav,
  .js .site-header__cta {
    display: none;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  /* No JS: the menu becomes a scrollable row under the logo */
  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: .5rem;
  }

  html:not(.js) .site-nav__list {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

@media (max-width: 479.98px) {
  html:not(.js) .site-header__cta {
    display: none;
  }
}

@media (min-width: 1200px) {
  .nav-overlay {
    display: none;
  }
}


/* ==========================================================================
   07. Footer — plum; 4 columns ≥ 1024 · 2 columns ≥ 768 · accordion on phones
   On phones JS (stage 6) wraps .footer__title text in a .footer__toggle button
   (aria-expanded) and hides .footer__panel. The brand column is always open.
   ========================================================================== */

.site-footer {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--petals) center / cover no-repeat;
}

/* Plain links only: .btn keeps its own --btn-text (plum on apple-lt, 8.77) */
.site-footer a:not(.btn) {
  color: inherit;
}

.site-footer a:not(.btn):hover {
  color: var(--accent);
}

.site-footer__grid {
  display: grid;
  gap: 0;
}

.footer__col {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer__col--brand {
  padding-top: 0;
  border-top: 0;
}

.footer__col--brand p {
  max-width: 36ch;
}

.logo--footer {
  margin-bottom: 1.25rem;
}

.footer__title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li + li {
  margin-top: .5rem;
}

.footer__list a {
  text-decoration: none;
}

.footer__list a:hover {
  text-decoration: underline;
}

.footer__list a[aria-current] {
  color: var(--accent);
}

.footer__round {
  display: inline-block;
  min-width: 1.9rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.footer__list--mail li {
  display: flex;
  flex-wrap: wrap;
  column-gap: .5rem;
}

.footer__list--mail .muted {
  min-width: 4rem;
}

.footer__list--mail a {
  overflow-wrap: anywhere;
}

/* --- 07.1 Accordion (built by JS on phones) ------------------------------ */

.footer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .35rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.footer__toggle::after {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  background: var(--deco);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}

.footer__toggle[aria-expanded="true"]::after {
  transform: rotate(36deg);
}

.footer__col:has(.footer__toggle) .footer__title {
  margin-bottom: 0;
}

.footer__col:has(.footer__toggle[aria-expanded="true"]) .footer__panel {
  padding-top: 1rem;
}

/* --- 07.2 Bottom line ------------------------------------------------------ */

.site-footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.site-footer__bottom p {
  margin-bottom: .6rem;
}

.footer__play {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 80ch;
}

.footer__play .ticket {
  flex: none;
  margin-top: .1rem;
}

.footer__owner {
  margin-top: 1.25rem;
}

/* --- 07.3 Breakpoints ------------------------------------------------------ */

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }

  .footer__col {
    padding-block: 0;
    border-top: 0;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}


/* ==========================================================================
   08. Home sections R1–R13
   ========================================================================== */

/* --- 08.0 Shared section parts -------------------------------------------- */

.section__head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__head .lead {
  max-width: var(--measure);
  margin-bottom: 0;
}

.h2-ticket .ticket {
  vertical-align: middle;
  margin-left: .35em;
  position: relative;
  top: -.2em;
  letter-spacing: .08em;
}

figure img,
.card > img {
  width: 100%;
}

/* Large media blocks: 21:9 and wide crops */
.hall__media,
.casino__media,
.idea__wide {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-card);
  overflow: hidden;
}

.hall__media img,
.casino__media img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Two-column media/text rows (dining) */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.split__media {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
}

.split__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.split__media--tall img {
  aspect-ratio: 4 / 5;
}

.split__text {
  max-width: 34rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .split--reverse,
  .split--breakfast {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split__media--tall {
    max-width: 30rem;
  }

  .split--reverse .split__media--tall {
    justify-self: end;
  }
}


/* --- 08.1 R1 Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.5rem) 0 clamp(4.5rem, 9vh, 6.5rem);
  overflow: hidden;
  background: var(--c-plum);
  color: var(--text);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.3s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

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

/* Plum shade keeps the text ≥ 4.5:1 on any frame, even over a white sky or window:
   petal text needs ≥ .68 plum over white, so wherever text sits the shade is ≥ .72.
   The top band keeps the transparent header readable. Phones: text spans the width. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(59, 31, 58, .6) 0, rgba(59, 31, 58, 0) 200px),
    linear-gradient(to top,
      rgba(59, 31, 58, .94) 0%,
      rgba(59, 31, 58, .84) 30%,
      rgba(59, 31, 58, .74) 60%,
      rgba(59, 31, 58, .72) 100%);
}

/* Desktop: the shade sits under the text column, the photo stays open on the right */
@media (min-width: 1024px) {
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(59, 31, 58, .6) 0, rgba(59, 31, 58, 0) 200px),
      linear-gradient(to right, rgba(59, 31, 58, .5) 0%, rgba(59, 31, 58, .5) 62%, rgba(59, 31, 58, 0) 80%),
      linear-gradient(to top,
        rgba(59, 31, 58, .94) 0%,
        rgba(59, 31, 58, .8) 30%,
        rgba(59, 31, 58, .5) 60%,
        rgba(59, 31, 58, .45) 100%);
  }
}

/* Over a photo apple-lt would need ≥ .8 shade; petal needs only .68 */
.hero .eyebrow {
  color: var(--c-petal);
}

.hero__inner {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.hero__content {
  max-width: 50rem;
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: .35em;
  text-shadow: 0 2px 24px rgba(59, 31, 58, .35);
}

.hero__lead {
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero .disclaimer {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 3rem;
  }

  .hero h1 {
    max-width: 16ch;
  }
}

/* Short phone screens: keep H1, buttons and the disclaimer in the first screen */
@media (max-width: 767.98px) {
  .hero {
    padding-bottom: 2.5rem;
  }

  .hero .eyebrow {
    margin-bottom: .75rem;
  }

  .hero__lead {
    margin-bottom: 1.1rem;
    font-size: 1rem;
  }

  .hero__actions .btn {
    min-height: 2.75rem;
    padding-block: .55rem;
  }
}


/* --- 08.2 Riddle of the day (hero card + large version in R3) -------------- */

.riddle {
  border-radius: var(--r-card);
  background: var(--c-plum-2);
  color: var(--c-petal);
}

.riddle--card {
  max-width: 24rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid var(--c-line-dark);
  background: rgba(78, 42, 76, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.riddle--large {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: var(--border) solid var(--c-line-dark);
}

.riddle__label {
  margin-bottom: .9rem;
}

.riddle__question {
  margin-bottom: 1.1rem;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.riddle--large .riddle__question {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.riddle__nojs summary {
  list-style: none;
  cursor: pointer;
}

.riddle__nojs summary::-webkit-details-marker {
  display: none;
}

.riddle__answer-text,
.riddle__answer {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line-dark);
  color: var(--c-apple-lt);          /* 7.2 on plum-2 */
  font-weight: 500;
}

.riddle__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}


/* --- 08.3 R2 The idea ------------------------------------------------------ */

.idea__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.idea__text p {
  max-width: var(--measure);
}

.idea__detail {
  margin: 0;
  border: var(--border) solid var(--c-plum);
  border-radius: var(--r-card);
  overflow: hidden;
}

.idea__detail img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.idea__wide img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 768px) {
  .idea__wide img {
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 1024px) {
  .idea__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  }

  .idea__detail {
    margin-top: 4.5rem;
    transform: rotate(1.5deg);
  }
}

.figures {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}

.figures__label {
  margin: 0;
}

.figures__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.figures__list li {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.figures__text {
  color: var(--text-dim);
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .figures {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2.5rem;
  }

  .figures__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* --- 08.4 R3 Kvasir's Hall ------------------------------------------------- */

.hall__intro {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.hall__intro .lead {
  max-width: var(--measure);
  margin: 0;
}

@media (min-width: 1024px) {
  .hall__intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

.hall__cards {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.card__media {
  margin: 0;
}

.hall__cards .card__media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card h3,
.card h4 {
  margin-bottom: .4em;
  font-size: var(--fs-h3);
}

.card p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hall__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hall__note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 48rem;
  margin: 0;
  font-family: var(--ff-head);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
}

.hall__note::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .15em;
  background: var(--deco);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}


/* --- 08.5 R4 Rooms: horizontal accordion ------------------------------------
   Base (no JS, or < 1024px): vertical list of cards.
   .js < 1024px: vertical accordion, only .is-open shows photo + body.
   .js ≥ 1024px: six panels in a row, the open one grows (flex-grow).
   ------------------------------------------------------------------------- */

.rooms {
  display: grid;
  gap: 1rem;
}

.rooms__panel {
  display: grid;
  grid-template-areas:
    "head"
    "photo"
    "body";
  border: var(--border) solid var(--c-plum);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-white);
}

.rooms__heading {
  grid-area: head;
  margin: 0;
  font-size: 1.35rem;
}

.rooms__panel-toggle {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: 0;
  background: none;
  color: var(--c-plum);
  font: inherit;
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
}

.rooms__panel-toggle:focus-visible {
  outline-offset: -4px;
  border-radius: calc(var(--r-card) - 4px);
}

.rooms__index {
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.rooms__name {
  flex: 1;
}

.js .rooms__panel-toggle::after {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--c-honey);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}

.js .rooms__panel-toggle[aria-expanded="true"]::after {
  transform: rotate(36deg);
}

.rooms__photo {
  grid-area: photo;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rooms__body {
  grid-area: body;
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: .98rem;
}

.rooms__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

/* Chips keep "m²" lower case */
.rooms__chips .ticket {
  text-transform: none;
  letter-spacing: .02em;
  font-size: .8rem;
}

.rooms__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.rooms__thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.rooms__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.rooms__thumb:hover img {
  opacity: .88;
}

.rooms__thumb:focus-visible {
  border-radius: 12px;
}

/* Photo beside the text from 600px when stacked */
@media (min-width: 600px) {
  .rooms__panel {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-areas:
      "head  head"
      "photo body";
  }

  .rooms__photo {
    height: 100%;
  }

  .rooms__body {
    align-self: center;
  }
}

/* JS, stacked: only the open panel shows photo and body */
.js .rooms__panel:not(.is-open) .rooms__photo,
.js .rooms__panel:not(.is-open) .rooms__body {
  display: none;
}

/* JS, ≥ 1024px: horizontal accordion */
@media (min-width: 1024px) {
  .js .rooms {
    display: flex;
    gap: .6rem;
    height: min(78vh, 720px);
    min-height: 34rem;
  }

  .js .rooms__panel {
    position: relative;
    flex: 0 0 4.75rem;
    min-width: 0;
    grid-template-columns: minmax(0, .9fr) minmax(17rem, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "photo head"
      "photo body";
    background: var(--c-plum);
    transition: flex-grow 600ms var(--ease), flex-basis 600ms var(--ease);
  }

  .js .rooms__panel.is-open {
    flex: 1 1 0;
    background: var(--c-white);
  }

  /* Closed: a narrow strip, photo as background, vertical name.
     Block layout, so absolute children fill the panel, not a grid area. */
  .js .rooms__panel:not(.is-open) {
    display: block;
  }

  .js .rooms__panel:not(.is-open) .rooms__photo {
    display: block;
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .js .rooms__panel:not(.is-open) .rooms__heading {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .js .rooms__panel:not(.is-open) .rooms__panel-toggle {
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.4rem .5rem;
    background: linear-gradient(to top, rgba(59, 31, 58, .92), rgba(59, 31, 58, .82));   /* ≥ .8: apple-lt index ≥ 4.5:1 on any photo */
    color: var(--c-petal);
    transition: background-color var(--dur) var(--ease);
  }

  .js .rooms__panel:not(.is-open) .rooms__panel-toggle:hover {
    background: linear-gradient(to top, rgba(59, 31, 58, .84), rgba(59, 31, 58, .8));
  }

  .js .rooms__panel:not(.is-open) .rooms__index {
    color: var(--c-apple-lt);
  }

  .js .rooms__panel:not(.is-open) .rooms__name {
    flex: 0 1 auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1.3rem;
  }

  .js .rooms__panel:not(.is-open) .rooms__panel-toggle::after {
    background: var(--c-blossom-2);
  }

  /* Open: 3:4 photo on the left, text on the right */
  .js .rooms__panel.is-open .rooms__photo {
    height: 100%;
    aspect-ratio: auto;
  }

  .js .rooms__panel.is-open .rooms__panel-toggle {
    padding: 1.6rem 1.75rem .5rem;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    cursor: default;
  }

  .js .rooms__panel.is-open .rooms__body {
    align-self: start;
    overflow-y: auto;
    padding: .5rem 1.75rem 1.75rem;
  }
}


/* --- 08.6 R5 Orchards: season timeline (ARIA tabs) ------------------------ */

.timeline {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.timeline__scale {
  margin-bottom: 1.5rem;
}

.timeline__months {
  display: none;
}

.timeline__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.timeline__tab {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  padding: .6rem 1.1rem;
  border: var(--border) solid var(--c-plum);
  border-radius: 16px;
  background: transparent;
  color: var(--c-plum);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.timeline__when {
  color: var(--text-dim);
  font-size: .8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.timeline__tab:hover {
  background: var(--c-blossom-2);
}

.timeline__tab[aria-selected="true"] {
  background: var(--c-plum);
  color: var(--c-petal);
}

.timeline__tab[aria-selected="true"] .timeline__when {
  color: rgba(251, 239, 239, .8);
}

.timeline__tab:focus-visible {
  border-radius: 16px;
}

/* ≥ 768px: tabs sit on a 12-month scale (April → March) */
@media (min-width: 768px) {
  .timeline__months {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin: 0 0 .6rem;
    padding: 0 0 .6rem;
    border-bottom: 1px solid var(--line);
    list-style: none;
    color: var(--text-dim);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .timeline__months li {
    padding-left: .35rem;
    border-left: 1px solid var(--line);
  }

  .timeline__tabs {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
  }

  .timeline__tab {
    margin-right: .35rem;
  }

  .timeline__tab--blossom { grid-column: 1 / span 2; }   /* May, with a little room */
  .timeline__tab--summer  { grid-column: 3 / span 3; }   /* Jun–Aug */
  .timeline__tab--harvest { grid-column: 6 / span 2; }   /* Sep–Oct */
  .timeline__tab--winter  { grid-column: 10 / span 3; }  /* Jan–Mar */
}

.timeline__panel {
  display: grid;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  border-radius: var(--r-card);
}

.timeline__panel + .timeline__panel {
  margin-top: 2.5rem;
}

.timeline__panel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
}

.timeline__text {
  max-width: 32rem;
}

.timeline__panel:focus-visible {
  outline-offset: 6px;
}

@media (min-width: 900px) {
  .timeline__panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

/* No JS: no tabs, all four seasons one under another */
html:not(.js) .timeline__scale {
  display: none;
}

.orchards__pair {
  display: grid;
  gap: 1.5rem;
  max-width: 58rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.orchards__pair .card {
  margin: 0;
}

.orchards__pair img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 768px) {
  .orchards__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orchards__pair .card:nth-child(2) {
    margin-top: 4rem;
  }
}


/* --- 08.7 Flip cards (R5 facts, R6 dishes) ----------------------------------
   JS contract: aria-pressed on .flip-card__btn, .flip-card.is-flipped,
   aria-hidden on the hidden face. No JS / reduced motion: back under front.
   ------------------------------------------------------------------------- */

.flips__title {
  margin-bottom: 1.25rem;
  font-size: var(--fs-h3);
}

.flips {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .flips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .flips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flips--dishes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.flip-card {
  aspect-ratio: 4 / 3;
  perspective: 1400px;
}

@media (min-width: 600px) {
  .flip-card {
    aspect-ratio: 1 / 1;
  }
}

.flip-card--dish {
  aspect-ratio: 3 / 4;
}

.flip-card__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease);
}

.flip-card.is-flipped .flip-card__btn {
  transform: rotateY(180deg);
}

.flip-card__btn:focus-visible {
  outline-offset: 4px;
  border-radius: var(--r-card);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: var(--border) solid var(--c-plum);
  border-radius: var(--r-card);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.flip-card__front {
  background: var(--c-cream);
  color: var(--c-plum);
}

.flip-card__back {
  background: var(--c-plum);
  border-color: var(--c-plum);
  color: var(--c-petal);
  transform: rotateY(180deg);
}

.flip-card__btn:hover .flip-card__front {
  box-shadow: var(--shadow);
}

.flip-card__kicker {
  color: var(--accent);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.flip-card__back .flip-card__kicker {
  color: var(--c-apple-lt);
}

.flip-card__q,
.flip-card__name {
  font-family: var(--ff-head);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.flip-card__a {
  line-height: 1.5;
}

.flip-card__hint {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: auto;
  font-size: .85rem;
  font-weight: 600;
}

.flip-card__hint::before {
  content: "";
  width: .95em;
  height: .95em;
  background: var(--c-honey);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

/* Dish cards: square photo on the front */
.flip-card--dish .flip-card__front {
  padding: 0;
  gap: 0;
}

.flip-card--dish .flip-card__front img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.flip-card--dish .flip-card__front .flip-card__q {
  padding: 1rem 1.25rem .25rem;
  font-size: 1.15rem;
}

.flip-card--dish .flip-card__front .flip-card__hint {
  padding: 0 1.25rem 1rem;
}

.flip-card--dish .flip-card__back {
  justify-content: flex-end;
}

/* No JS: both faces visible, back under the front */
html:not(.js) .flip-card {
  aspect-ratio: auto;
  perspective: none;
}

html:not(.js) .flip-card__btn {
  display: grid;
  gap: .5rem;
  height: auto;
  cursor: default;
}

html:not(.js) .flip-card__face {
  position: relative;
  transform: none;
}

html:not(.js) .flip-card__hint {
  display: none;
}


/* --- 08.8 R7 Gaming lounge + horizontal strip ------------------------------ */

.casino__intro {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.casino__intro p {
  max-width: var(--measure);
  margin: 0;
}

.casino__intro p:last-child {
  font-family: var(--ff-head);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .casino__intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 4rem;
    align-items: start;
  }
}

.strip {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.strip__title {
  margin: 0;
  font-size: var(--fs-h3);
}

.strip__controls {
  display: flex;
  gap: .5rem;
}

.strip__controls[hidden] {
  display: none;
}

.strip__prev,
.strip__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: var(--border) solid var(--text);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.strip__prev:hover:not(:disabled),
.strip__next:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
}

.strip__prev:disabled,
.strip__next:disabled {
  opacity: .35;
  cursor: default;
}

.strip__prev:focus-visible,
.strip__next:focus-visible {
  border-radius: 50%;
}

.strip__track {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-plum-2) transparent;
}

.strip__item {
  flex: 0 0 clamp(15rem, 72vw, 20rem);
  scroll-snap-align: start;
}

.strip__item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 1200px) {
  .strip__item {
    flex-basis: calc((100% - 3 * 1.25rem) / 4);
  }
}

.casino__rules {
  display: grid;
  gap: 2rem;
}

.casino__rules h3 {
  font-size: var(--fs-h3);
}

.casino__help {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--border) solid var(--c-line-dark);
  border-radius: var(--r-card);
  background: var(--card-bg);
}

.casino__help-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--ff-head);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.casino__help p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .casino__rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
  }
}



/* --- 08.9 R8 Spa: heat → cold → rest, 2×2 grid (strip on phones) --------- */

.steps {
  display: grid;
  gap: 1rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  border: var(--border) solid var(--c-plum);
  border-radius: var(--r-card);
  background: var(--c-cream);
  line-height: 1.5;
}

/* Blossom as the step marker */
.steps__item::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.3rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--c-honey);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

.steps__word {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--ff-head);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  /* Joined into one sequence */
  .steps__item + .steps__item {
    margin-left: -2px;
  }

  .steps__item:not(:first-child):not(:last-child) {
    border-radius: 0;
  }

  .steps__item:first-child {
    border-radius: var(--r-card) 0 0 var(--r-card);
  }

  .steps__item:last-child {
    border-radius: 0 var(--r-card) var(--r-card) 0;
  }
}

/* Spa cards: a strip on phones, a 2×2 grid from 768px */
.strip--spa .strip__item {
  background: var(--c-cream);
}

@media (min-width: 768px) {
  .strip--spa .strip__controls {
    display: none;
  }

  .spa__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .spa__grid .strip__item {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .spa__grid .strip__item img {
    height: 100%;
  }
}

.spa__facts {
  display: grid;
  gap: .5rem;
}

.spa__area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 0;
  font-family: var(--ff-head);
  font-size: var(--fs-h3);
  font-weight: 500;
}

.spa__facts .small {
  max-width: var(--measure);
  margin: 0;
}


/* --- 08.10 R9 Gatherings --------------------------------------------------- */

.events__media {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-card);
  overflow: hidden;
}

.events__media img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.events .lead {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.events__cards,
.region__cards {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding: 0;
  list-style: none;
}

.events__cards img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 768px) {
  .events__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.capacity {
  margin-bottom: 2.5rem;
}

.capacity__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  font-size: var(--fs-h3);
}

/* Scrolls inside its own box on narrow screens, never the page */
.table-scroll {
  overflow-x: auto;
  margin-bottom: .75rem;
  border: var(--border) solid var(--c-plum);
  border-radius: var(--r-card);
  background: var(--c-white);
}

.table-scroll:focus-visible {
  border-radius: var(--r-card);
}

.capacity__table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  text-align: left;
}

.capacity__table th,
.capacity__table td {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.capacity__table thead th {
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.capacity__table tbody th {
  font-family: var(--ff-head);
  font-weight: 600;
}

.capacity__table td {
  font-size: 1.1rem;
  font-weight: 500;
}

.capacity__table tbody tr:last-child > * {
  border-bottom: 0;
}

.events__cta {
  max-width: 48rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-card);
  background: var(--c-blossom);
}

.events__cta p {
  margin: 0;
  font-size: 1.05rem;
}

.events__cta a {
  font-weight: 600;
}


/* --- 08.11 R10 Hardanger: cards, map with JS-placed labels ------------------ */

.region__cards img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .region__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .region__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.region__map-row {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .region__map-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.map {
  margin: 0;
}

.map__frame {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-cream);
}

.map__frame img {
  width: 100%;
}

/* Without JS: a plain list of places under the map */
.map__labels {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.map__label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 15rem;
  padding: .35rem .75rem;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-plum);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 4px 14px -6px rgba(59, 31, 58, .45);
}

.map__label::before {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--c-plum);
}

.map__label--water::before { background: var(--c-fjord); }
.map__label--ice::before   { background: #9CC3CF; box-shadow: inset 0 0 0 1px var(--c-fjord); }

.map__label--project {
  border-radius: 14px;
  background: var(--c-plum);
  color: var(--c-petal);
}

.map__label--project::before {
  width: .9rem;
  height: .9rem;
  border-radius: 0;
  background: var(--c-blossom-2);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
}

/* JS (stage 6) adds .map--placed and sets --x / --y on each label */
.map--placed .map__labels {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  pointer-events: none;
}

.map--placed .map__label {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  transform: translate(-.3rem, -50%);
  white-space: normal;
}

/* The long project label is centred on its point so it stays inside the frame */
.map--placed .map__label--project {
  transform: translate(-50%, -50%);
}

@media (max-width: 599.98px) {
  .map--placed .map__label {
    padding: .25rem .55rem;
    font-size: .72rem;
  }

  .map--placed .map__label--project {
    max-width: 9.5rem;
  }
}

.map__caption {
  margin-top: .75rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  font-style: italic;
}

.region__getting h3 {
  font-size: var(--fs-h3);
}


/* --- 08.12 R11 Polaroids --------------------------------------------------- */

.polaroids {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  margin: 0 0 2rem;
  padding: .5rem 0 0;
  list-style: none;
}

@media (min-width: 600px) {
  .polaroids {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .polaroids {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Offset every other column a little, like prints laid on a table */
  .polaroids > li:nth-child(even) {
    margin-top: 2.5rem;
  }
}

.polaroid__link {
  display: block;
  cursor: zoom-in;
}

.polaroid__link:focus-visible {
  outline-offset: 6px;
  border-radius: 2px;
}

.polaroid__img {
  width: 100%;
  object-fit: cover;
}

.polaroid__img--square   { aspect-ratio: 1 / 1; }
.polaroid__img--portrait { aspect-ratio: 4 / 5; }


/* --- 08.13 R12 FAQ accordion ----------------------------------------------- */

.faq__layout {
  display: grid;
  gap: 1rem clamp(2rem, 5vw, 5rem);
}

@media (min-width: 1024px) {
  .faq__layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq__list {
  border-top: var(--border) solid var(--c-plum);
}

.faq__item {
  border-bottom: 1px solid rgba(59, 31, 58, .25);
}

.faq__q {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.3;
}

.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.2rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
}

.faq__btn::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--c-honey);
  -webkit-mask: var(--blossom) center / contain no-repeat;
  mask: var(--blossom) center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}

.faq__btn[aria-expanded="true"]::after {
  transform: rotate(36deg);
}

html:not(.js) .faq__btn {
  cursor: default;
}

html:not(.js) .faq__btn::after {
  display: none;
}

.faq__a {
  max-width: 62ch;
  padding-bottom: 1.25rem;
}

.faq__a p {
  margin: 0;
}


/* --- 08.14 R13 Interest band ----------------------------------------------- */

.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 11vw, 9rem);
  overflow: hidden;
  background: var(--c-plum);
  color: var(--text);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* Plum shade, heaviest on the left where the text sits */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(59, 31, 58, .9) 0%, rgba(59, 31, 58, .78) 45%, rgba(59, 31, 58, .35) 100%);
}

.cta-band__inner {
  max-width: calc(var(--container) + 2 * var(--gutter));
}

.cta-band h2 {
  max-width: 16ch;
}

.cta-band .lead {
  margin-bottom: 1.75rem;
}

@media (max-width: 767.98px) {
  .cta-band::after {
    background: rgba(59, 31, 58, .82);
  }
}


/* ==========================================================================
   09. Contact page & interest-list form
   JS (stage 6) adds .field--error + .field__error messages and fills .form-status.
   ========================================================================== */

.page-head .lead {
  margin: 1.25rem 0 0;
}

.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.contact__form-wrap {
  background: var(--c-white);
}

.contact__title {
  margin-bottom: 1.25rem;
  font-size: var(--fs-h3);
}

.contact__subtitle {
  margin: 2rem 0 .75rem;
  font-size: 1.1rem;
}

.field {
  display: grid;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.field__label {
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: .7rem 1rem;
  border: var(--border) solid var(--c-plum);
  border-radius: 14px;
  background: var(--c-cream);
  color: var(--c-plum);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field__input:focus-visible {
  outline: none;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--c-cream), 0 0 0 6px var(--c-plum);
}

/* Select with a custom chevron instead of the native arrow */
.field__select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  cursor: pointer;
}

.field:has(.field__select) {
  position: relative;
}

.field:has(.field__select)::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  width: 1rem;
  height: 1rem;
  background: var(--c-plum);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  pointer-events: none;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .75rem;
  font-size: .95rem;
  line-height: 1.5;
}

.field__check {
  width: 1.35rem;
  height: 1.35rem;
  margin: .1rem 0 0;
  accent-color: var(--c-plum);
}

.field--error .field__input {
  border-color: #A3243B;             /* 6.8 on cream · 7.3 on white */
}

.field__error {
  color: #A3243B;
  font-size: .9rem;
  font-weight: 600;
}

.form-status {
  min-height: 1.5em;
  margin: 0 0 1rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #A3243B;
}

.form-status.is-ok {
  color: var(--c-apple-dk);
}

.notice {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: var(--border) dashed var(--c-plum);
  border-radius: 14px;
  background: var(--c-blossom);
}

.contact__direct {
  margin: 1.5rem 0 .5rem;
  font-weight: 600;
}

.contact__mails {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__mails li {
  display: flex;
  flex-wrap: wrap;
  column-gap: .75rem;
  margin-bottom: .4rem;
}

.contact__mails .muted {
  min-width: 4.5rem;
}

.contact__mails a {
  overflow-wrap: anywhere;
}


/* ==========================================================================
   10. Inner pages: page head, breadcrumbs, legal prose, 404
   ========================================================================== */

.page-head {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head h1 {
  max-width: 18ch;
  margin-bottom: 0;
}

.page-head--404 {
  padding-block: clamp(4rem, 12vw, 9rem);
}

.page-head--404 h1 {
  max-width: 16ch;
  margin-bottom: .5em;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: .4rem;
}

.breadcrumbs a {
  color: inherit;
}

.breadcrumbs a[aria-current] {
  text-decoration: none;
}

/* Legal text (stage 9) */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.5em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.prose h3 {
  margin-top: 1.75em;
}

.prose a {
  color: var(--c-fjord);           /* 8.44 on cream */
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: .35em;
}

.prose code {
  font-size: .9em;
  overflow-wrap: anywhere;         /* long storage sample must not force a scroll at 360px */
}


/* ==========================================================================
   11. JS-built elements: hero controls, lightbox, back to top, reveal, sentinels
   ========================================================================== */

/* --- 11.1 Sentinels for IntersectionObserver (header after 80px, fold) ---- */

.sentinel {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.sentinel--header { top: 80px; }
.sentinel--fold   { top: 100vh; }

/* --- 11.2 Hero dots and pause button --------------------------------------- */

.hero__controls {
  position: absolute;
  inset: auto 0 1.1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-petal);
}

.hero__dots {
  display: flex;
  gap: .35rem;
}

.hero__dots .dot {
  width: 1.75rem;
  height: 1.75rem;
  color: inherit;
}

.hero__dots .dot::before {
  inset: .5rem;
}

.hero__dots .dot[aria-current="true"]::before {
  inset: .2rem;
}

.hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: var(--border) solid currentColor;
  border-radius: 50%;
  background: rgba(59, 31, 58, .35);
  color: inherit;
}

.hero__pause:focus-visible,
.hero__dots .dot:focus-visible {
  border-radius: 50%;
}

/* Two bars = pause; a triangle when paused (aria-pressed="true") */
.hero__pause-icon {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}

.hero__pause[aria-pressed="true"] .hero__pause-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 7px solid transparent;
  border-inline: 11px solid currentColor;
  border-right-width: 0;
}

@media (max-width: 767.98px) {
  .hero {
    padding-bottom: 4.25rem;
  }
}

/* --- 11.3 Riddle, JS version ---------------------------------------------- */

.riddle__question:focus {
  outline: none;
}

.riddle__question:focus-visible {
  outline: 3px solid var(--c-apple-lt);
  outline-offset: 4px;
}

/* --- 11.4 Lightbox --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 4rem clamp(1rem, 6vw, 5.5rem) 2rem;
  background: rgba(35, 17, 34, .95);
  color: var(--c-petal);
  touch-action: pan-y;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: .9rem;
  max-width: 100%;
  margin: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100svh - 10rem);
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  user-select: none;
}

.lightbox__caption {
  max-width: 60ch;
  font-size: .95rem;
  text-align: center;
}

.lightbox__counter {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: var(--border) solid var(--c-petal);
  border-radius: 50%;
  background: rgba(59, 31, 58, .6);
  color: var(--c-petal);
  font-size: 1.6rem;
  line-height: 1;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__btn:hover {
  background: var(--c-petal);
  color: var(--c-plum);
}

.lightbox__btn:focus-visible {
  border-radius: 50%;
  outline-color: var(--c-apple-lt);
}

.lightbox__btn[hidden] {
  display: none;
}

.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }
.lightbox__next  { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }

@media (max-width: 599.98px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    translate: none;
  }

  .lightbox {
    padding-bottom: 5rem;
  }
}

/* --- 11.5 Back to top ------------------------------------------------------ */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: var(--border) solid var(--c-petal);
  border-radius: 50%;
  background: var(--c-plum);
  color: var(--c-petal);
  font-size: 1.25rem;
  box-shadow: 0 10px 24px -10px rgba(59, 31, 58, .6);
  opacity: 0;
  visibility: hidden;
  translate: 0 .75rem;
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: none;
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
}

.back-to-top:focus-visible {
  border-radius: 50%;
  outline-color: var(--c-apple-dk);
}

html.is-scroll-locked .back-to-top {
  visibility: hidden;
}

/* --- 11.6 Reveal on scroll (translate, so hover transforms are untouched) -- */

.js-reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 700ms var(--ease), translate 700ms var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  translate: none;
}


/* ==========================================================================
   12. Reduced motion
   Turns off animation, tilts and hero crossfade. Flip cards (stage 4) will show
   the back directly under the front here.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .btn:hover,
  .card--hover:hover,
  .card--hover:focus-within {
    transform: none;
  }

  .polaroid,
  .polaroid:hover,
  .polaroid:focus-within {
    transform: none;
  }
  /* Menu items appear at once */
  .nav-overlay__list li {
    opacity: 1;
    transform: none;
  }

  /* Hero: no crossfade (JS also stops auto-advance) */
  .hero__slide {
    transition: none;
  }

  /* Flip cards: no rotation, the back sits directly under the front */
  .flip-card {
    aspect-ratio: auto;
    perspective: none;
  }

  .flip-card__btn {
    display: grid;
    gap: .5rem;
    height: auto;
    transform: none !important;
  }

  .flip-card__face {
    position: relative;
    transform: none;
  }

  .flip-card__hint {
    display: none;
  }

  .idea__detail {
    transform: none;
  }
  .js-reveal {
    opacity: 1;
    translate: none;
  }
}
