/* Tafløy Lofoten Resort & Casino — style.css
   Design system "Sea & Slate": sand, sea, rorbu red and slate, built on the game-board cell. */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-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: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-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: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-sans-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: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-sans-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;
}

/* Cyrillic is only needed for the owner block in the footer */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  /* Palette */
  --c-sand:      #EFE7DA;  /* main background */
  --c-shell:     #E2DACB;  /* alternating section background */
  --c-shell-2:   #CFC4AF;  /* cards, lines on light */
  --c-slate:     #20262B;  /* dark sections, main text on light */
  --c-slate-2:   #2C343A;  /* cards on dark */
  --c-slate-dim: rgba(32,38,43,.68);
  --c-sea:       #12525A;  /* sea turquoise: main accent, links, focus */
  --c-sea-lt:    #4FA3A8;  /* accent on dark */
  --c-rorbu:     #9E3B2E;  /* rorbu red paint: second accent, used sparingly */
  --c-foam:      #F7FBFA;  /* text on dark */
  --c-line:      rgba(32,38,43,.14);
  --c-line-dark: rgba(247,251,250,.16);

  /* Derived shades (contrast-checked, see stage 2 report) */
  --c-sea-dk:    #0C3B41;  /* button hover on light */
  --c-sea-lt-2:  #62B2B6;  /* accent text on --c-slate-2 cards (sea-lt is 4.30:1 there) */
  --c-rorbu-lt:  #C4574A;  /* active piece on dark (rorbu is 2.27:1 on slate) */
  --c-foam-dim:  rgba(247,251,250,.72);

  /* Type */
  --ff-display: "Young Serif", Georgia, "Times New Roman", serif;
  --ff-text: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, 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.7rem);
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-small: .875rem;
  --fs-eyebrow: .72rem;

  /* Layout */
  --container: 1300px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 62ch;
  --section-space: clamp(4.5rem, 9vw, 9rem);
  --cell: clamp(48px, 6vw, 96px);   /* board cell: background grid step */
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-hop: cubic-bezier(.3,1.5,.5,1);
  --t-card: 240ms;

  /* Grain tiles (SVG feTurbulence, 400×400) */
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .15 0 0 0 0 .17 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .98 0 0 0 0 .98 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Surface variables: sand by default, swapped by .section--shell / .section--slate */
  --bg: var(--c-sand);
  --surface: var(--c-shell);
  --text: var(--c-slate);
  --text-dim: var(--c-slate-dim);
  --accent: var(--c-sea);
  --line: var(--c-line);
  --line-strong: var(--c-shell-2);
  --piece: var(--c-sea);
  --piece-active: var(--c-rorbu);
  --piece-rim: rgba(247,251,250,.4);
  --grid-line: rgba(32,38,43,.035);
  --grain: var(--grain-dark);
  --grain-opacity: .035;
  --shadow: rgba(32,38,43,.16);
  --btn-bg: var(--c-sea);
  --btn-bg-hover: var(--c-sea-dk);
  --btn-text: var(--c-sand);
}

/* 3. Base ----------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background-color: var(--c-sand);
  color: var(--c-slate);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.05;
  text-wrap: balance;
}

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

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}

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

:focus { outline: none; }

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

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

button { cursor: pointer; }

table { border-collapse: collapse; font-variant-numeric: tabular-nums; }

::selection { background: var(--c-sea); color: var(--c-foam); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7em 1.1em;
  background: var(--c-slate);
  color: var(--c-foam);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform 160ms var(--ease);
}

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

.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;
}

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

/* 4. Layout --------------------------------------------------------------- */
/* Breakpoints: 480 / 768 / 1024 / 1200 / 1440 */

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

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

.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* Sections: surface variables, board grid, grain on a pseudo-element under the content */

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-space);
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--cell)),
    repeating-linear-gradient(180deg, var(--grid-line) 0 1px, transparent 1px var(--cell));
  color: var(--text);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 400px 400px;
  opacity: var(--grain-opacity);
  pointer-events: none;
}

.section--shell {
  --bg: var(--c-shell);
  --surface: var(--c-sand);
}

.section--slate,
.site-footer,
.nav-board {
  --bg: var(--c-slate);
  --surface: var(--c-slate-2);
  --text: var(--c-foam);
  --text-dim: var(--c-foam-dim);
  --accent: var(--c-sea-lt);
  --line: var(--c-line-dark);
  --line-strong: rgba(247,251,250,.32);
  --piece: var(--c-sea-lt);
  --piece-active: var(--c-rorbu-lt);
  --piece-rim: rgba(247,251,250,.55);
  --grid-line: rgba(247,251,250,.06);
  --grain: var(--grain-light);
  --grain-opacity: .05;
  --shadow: rgba(0,0,0,.4);
  --btn-bg: var(--c-sea);
  --btn-bg-hover: var(--c-sea-dk);
  --btn-text: var(--c-sand);
}

/* Wet sand: a faint horizontal wash on dark sections */
.section--slate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(79,163,168,.07) 0%, transparent 42%, transparent 62%, rgba(247,251,250,.035) 100%);
  pointer-events: none;
}

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

.lead {
  font-size: clamp(1.08rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

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

/* 5. Header / nav board --------------------------------------------------- */
/* CSS ↔ JS contract (§3.4):
   .site-header.is-scrolled · .nav-board.is-open + aria-expanded on .nav-toggle · html.is-scroll-locked
   .site-nav__link.is-active · html.js (set by main.js) */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  isolation: isolate;
  height: var(--header-h);
  --text: var(--c-foam);
  --accent: var(--c-sea-lt);
  --piece-active: var(--c-rorbu-lt);
  --piece-rim: rgba(247,251,250,.55);
  color: var(--text);
  transition: background-color 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms var(--ease);
}

/* Transparent over the hero, with a slate gradient for legibility */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(32,38,43,.72), rgba(32,38,43,0));
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}

.site-header.is-scrolled,
.page-inner .site-header {
  --text: var(--c-slate);
  --accent: var(--c-sea);
  --piece-active: var(--c-rorbu);
  --piece-rim: rgba(247,251,250,.4);
  background: rgba(239,231,218,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-line);
}

.site-header.is-scrolled::before,
.page-inner .site-header::before { opacity: 0; }

/* While the nav board is open the header sits on its slate background */
body:has(.nav-board.is-open) .site-header {
  --text: var(--c-foam);
  --accent: var(--c-sea-lt);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

body:has(.nav-board.is-open) .site-header::before { opacity: 0; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}

.logo__mark { width: 34px; height: 34px; }

.logo__word {
  padding-top: .12em;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav,
.site-header .site-header__cta { display: none; }

.site-nav__list {
  display: flex;
  gap: clamp(1.1rem, 1.7vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: .5em 0;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}

/* Active item: a rorbu piece before the text */
.site-nav__list .site-nav__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--piece-active);
  box-shadow: inset 0 0 0 1px var(--piece-rim);
  transform: scale(0);
  transition: transform 220ms var(--ease-hop);
}

.site-nav__list .site-nav__link.is-active::before,
.site-nav__list .site-nav__link[aria-current]::before { transform: scale(1); }

.site-nav__list .site-nav__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.btn--sm {
  min-height: 42px;
  padding-block: .6em;
  padding-left: 1.2em;
  font-size: .86rem;
}

/* Burger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

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

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease), background-color 240ms var(--ease);
}

.nav-toggle__bars { position: relative; }

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

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

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

/* Without JS: a plain link to the footer navigation */
.nav-fallback {
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
}

html.js .nav-fallback { display: none; }

/* Nav board: the menu as a 2×4 game board on slate */
.nav-board {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 1.5rem;
  background-color: rgba(32,38,43,.97);
  background-image:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--cell)),
    repeating-linear-gradient(180deg, var(--grid-line) 0 1px, transparent 1px var(--cell));
  color: var(--text);
}

.nav-board.is-open {
  display: block;
  animation: board-in 240ms var(--ease);
}

@keyframes board-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-board__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 100%;
}

.nav-board nav { width: 100%; display: flex; justify-content: center; }

.nav-board__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: max(15rem, min(100%, 440px, (100svh - var(--header-h) - 9rem) / 2));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--c-line-dark);
  border: 1px solid var(--c-line-dark);
}

.nav-board__cell {
  aspect-ratio: 1 / 1;
  background: var(--c-slate);
}

/* Checker pattern: rows alternate like a board */
.nav-board__cell:nth-child(4n+2),
.nav-board__cell:nth-child(4n+3) { background: var(--c-slate-2); }

.nav-board__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(.75rem, 3vw, 1.1rem);
  color: var(--c-foam);
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 4.4vw, 1.5rem);
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}

.nav-board__link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--piece);
  box-shadow: inset 0 0 0 1px var(--piece-rim);
}

.nav-board__link.is-active::before { background: var(--piece-active); }

.nav-board__link:hover { background: var(--c-sea); }

.nav-board__link:focus-visible {
  outline: 2px solid var(--c-sea-lt);
  outline-offset: -4px;
}

/* The eighth square holds a single wooden piece */
.nav-board__cell--piece {
  display: grid;
  place-items: center;
}

.nav-board__cell--piece::after {
  content: "";
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--c-rorbu);
  box-shadow: inset 0 0 0 3px rgba(247,251,250,.18), inset 0 -4px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.25);
}

.nav-board__cta {
  width: max(15rem, min(100%, 440px, (100svh - var(--header-h) - 9rem) / 2));
}

@media (min-width: 1200px) {
  .site-nav { display: block; }
  .site-header .site-header__cta { display: inline-flex; }
  html.js .nav-toggle,
  .nav-fallback,
  .nav-board,
  .nav-board.is-open { display: none; }
}

/* 6. Footer --------------------------------------------------------------- */

.site-footer.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  font-size: .95rem;
  line-height: 1.65;
}

.site-footer a { color: var(--text); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.footer-col--brand { padding-bottom: 2rem; }

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

.footer-col__title {
  margin: 0;
  color: var(--accent);
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

/* Accordion marker: an empty cell, a piece appears in it when open */
.footer-col__toggle::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
}

.footer-col__toggle[aria-expanded="true"]::after {
  background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px);
}

.footer-col:not(.footer-col--brand) { border-top: 1px solid var(--line); }

.footer-col__panel { padding-bottom: 1.5rem; }

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

.footer-links li + li { margin-top: .45em; }

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current] {
  color: var(--text);
  text-decoration: underline;
}

.footer-links--mail { margin-top: 1.25rem; }

.footer-links--mail li { display: flex; flex-direction: column; }

.footer-links__label {
  color: var(--text-dim);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links--mail a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: grid;
  gap: .9rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .85rem;
  line-height: 1.6;
}

.site-footer__bottom p { margin: 0; }

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

.footer__rg .chip { margin-top: .1em; }

.footer__games { color: var(--text); }

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

  .footer-col--brand { padding-bottom: 0; }
  .footer-col:not(.footer-col--brand) { border-top: 0; }
  .footer-col__panel { padding-bottom: 0; }

  .footer-col__toggle {
    min-height: 0;
    margin-bottom: 1rem;
    cursor: default;
    pointer-events: none;
  }

  .footer-col__toggle::after { display: none; }

  /* The accordion only collapses on phones */
  .footer-col__panel[hidden] { display: block !important; }
}

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

/* 7. Components ----------------------------------------------------------- */

/* Eyebrow: a small board cell with a round piece in it */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  background: radial-gradient(circle, currentColor 0 1.5px, transparent 2px);
}

/* Piece: round wooden disc with a thin rim */
.piece,
.pieces > li::before {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--piece);
  box-shadow: inset 0 0 0 1px var(--piece-rim), 0 1px 0 rgba(0,0,0,.18);
}

.piece--active { background: var(--piece-active); }

.pieces {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.pieces > li {
  position: relative;
  padding-left: 1.6em;
}

.pieces > li + li { margin-top: .55em; }

.pieces > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
}

/* Corner cells: two opposite corners marked like the corner squares of a board */
.cornered {
  position: relative;
}

.cornered::before,
.cornered::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  background: var(--accent);
  opacity: .14;
  pointer-events: none;
}

.cornered::before { top: 0; left: 0; }
.cornered::after { right: 0; bottom: 0; }

/* Buttons: a small disc hops one cell (12px) to the right on hover */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8em 3.1em .8em 1.5em;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--ff-text);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(1.5em + 12px);
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 260ms var(--ease-hop);
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

.btn:hover::after,
.btn:focus-visible::after { animation: piece-hop 280ms var(--ease) forwards; }

@keyframes piece-hop {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(6px, -6px); }
  100% { transform: translate(12px, 0); }
}

.btn--secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--line);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}

/* Chips: Planned, Subject to licensing, 18+, No stakes */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .35em .75em;
  border: 1px solid var(--text-dim);
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.chip--rorbu::before { background: var(--piece-active); }

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

/* Cards: hover moves the card exactly one small cell (6px) right-down, the shadow stays behind */
.card {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  transition: transform var(--t-card) var(--ease), box-shadow var(--t-card) var(--ease);
}

.section--slate .card { --accent: var(--c-sea-lt-2); }

.card--link:hover,
.card--link:focus-within {
  transform: translate(6px, 6px);
  box-shadow: -6px -6px 0 var(--shadow);
}

.card__body { padding: clamp(1.1rem, 2vw, 1.6rem); }

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

/* Disclaimer line under images */
.impression-note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* 8. Sections ------------------------------------------------------------- */

/* Inner pages: title band under the fixed header */
.page-head.section {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.page-head .lead { margin-top: 1.25rem; max-width: var(--measure); }

.page-head .btn-row { margin-top: 2rem; }

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

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.breadcrumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
}

.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs [aria-current] { color: var(--text); }

/* Legal text */
.prose { max-width: var(--measure); }

.prose h2 {
  margin-top: 2.4em;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 1.8em;
  font-family: var(--ff-text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }

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

.prose ul { list-style: none; padding-left: 0; }

.prose ul > li {
  position: relative;
  padding-left: 1.6em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--piece);
  box-shadow: inset 0 0 0 1px var(--piece-rim);
}

.prose table {
  width: 100%;
  margin: 0 0 1.4em;
  font-size: .95rem;
}

.prose th,
.prose td {
  padding: .6em .8em .6em 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal__meta {
  margin-bottom: 2rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.prose .legal__facts > li::before { display: none; }
.prose .legal__facts > li { padding-left: 0; }

.prose code {
  padding: .1em .35em;
  background: var(--c-shell);
  font-size: .88em;
  overflow-wrap: anywhere;
}

.prose .table-scroll { margin-bottom: 1.4em; }
.prose .table-scroll table { min-width: 34rem; margin: 0; }
.prose thead th {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Home sections */

figure { margin: 0; }

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

figcaption {
  margin-top: .6rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

/* S1. Hero ---------------------------------------------------------------- */

.hero {
  --text: var(--c-foam);
  --text-dim: rgba(247,251,250,.8);
  --accent: var(--c-sea-lt);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--c-slate);
  color: var(--text);
}

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

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

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

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

/* Slate shade from below, and from the left where the text sits */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(32,38,43,.94) 0%, rgba(32,38,43,.74) 35%, rgba(32,38,43,.42) 62%, rgba(32,38,43,.2) 82%, rgba(32,38,43,0) 100%),
    linear-gradient(to right, rgba(32,38,43,.55) 0%, rgba(32,38,43,0) 65%);
  pointer-events: none;
}

.hero__content { padding-bottom: clamp(4rem, 9vh, 6.5rem); }

.hero .eyebrow,
.hero__title,
.hero__lead { text-shadow: 0 1px 14px rgba(32,38,43,.45); }

.hero .eyebrow { color: var(--c-foam); }

.hero__title {
  max-width: 15ch;
  margin-bottom: .32em;
  color: var(--c-foam);
}

.hero__lead {
  max-width: 54ch;
  margin-bottom: 1.6rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}

.hero .impression-note { margin-top: 1.25rem; }

.hero__controls {
  position: absolute;
  inset: auto 0 clamp(1rem, 3vh, 1.75rem);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.hero__dots {
  display: flex;
  gap: .25rem;
  pointer-events: auto;
}

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

.hero__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-foam);
}

.hero__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
}

.hero__dot[aria-current="true"]::before {
  background: radial-gradient(circle, var(--c-rorbu-lt) 0 3.5px, transparent 4px);
}

@media (max-width: 767.98px) {
  .hero__content { padding-bottom: 3.75rem; }
  .hero__lead { margin-bottom: 1.25rem; }
  .hero .btn-row { gap: .6rem; }
  .hero .btn { min-height: 44px; }
  .hero .impression-note { margin-top: .9rem; font-size: .8rem; }
}

/* Short phone screens (390×664): keep the H1, buttons and disclaimer in the first view */
@media (max-width: 767.98px) and (max-height: 720px) {
  .hero .eyebrow { margin-bottom: .6rem; }
  .hero__title { font-size: 2.45rem; }
  .hero__lead { font-size: .95rem; line-height: 1.5; }
}

/* S2. The idea ------------------------------------------------------------ */

.idea__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.idea__detail { max-width: 460px; }

.idea__wide { margin-top: clamp(3rem, 6vw, 5.5rem); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}

.stat__unit {
  margin-left: .12em;
  font-size: .5em;
}

.stat__label { color: var(--text-dim); line-height: 1.4; }

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

@media (min-width: 1024px) {
  .idea__grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .idea__text { grid-column: 1 / span 6; }
  .idea__detail { grid-column: 8 / span 5; max-width: none; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding-left: 1.5rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* S3. The Games Room ------------------------------------------------------ */

.games__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.games__head h2 { margin-bottom: 0; }

.games__trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.games__trio figure:last-child { grid-column: 1 / -1; }

.games__trio figcaption {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  z-index: 3;
  margin: 0;
  padding: .25em .65em;
  background: rgba(32,38,43,.82);
  color: var(--c-foam);
  font-size: .8rem;
  font-weight: 600;
}

.games__grid {
  display: grid;
  gap: 3rem;
  margin: clamp(3rem, 6vw, 5rem) 0 2rem;
}

@media (min-width: 768px) {
  /* Widths proportional to 4:5, 4:5 and 4:3, so all three share one height */
  .games__trio { grid-template-columns: .8fr .8fr 1.3333fr; gap: 1.25rem; }
  .games__trio figure:last-child { grid-column: auto; }
}

@media (min-width: 1024px) {
  .games__head { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: end; }
  .games__grid { grid-template-columns: 7fr 5fr; gap: 4.5rem; align-items: start; }
}

/* Planner */
.planner {
  --accent: var(--c-sea-lt-2);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--c-slate-2);
  border: 1px solid var(--line);
}

.planner__title { margin-bottom: .35em; }

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

.planner__group {
  min-width: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.planner__legend {
  margin-bottom: .75rem;
  padding: 0;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Options as board cells sharing their borders */
.planner__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.planner__option {
  position: relative;
  min-height: 60px;
  margin-left: -1px;
  padding: .7em .6em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.planner__option:first-child { margin-left: 0; }

.planner__option:hover { background: rgba(247,251,250,.06); }

.planner__option[aria-pressed="true"] {
  z-index: 1;
  background: var(--c-sea);
  border-color: var(--c-sea-lt);
  color: var(--c-foam);
}

.planner__option[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-rorbu-lt);
  box-shadow: inset 0 0 0 1px rgba(247,251,250,.55);
}

.planner__option:focus-visible { z-index: 2; outline-offset: 2px; }

.planner__result {
  min-height: 9.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.planner__kicker {
  margin-bottom: .4rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.planner__name {
  margin-bottom: .4em;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

html:not(.js) .planner__intro,
html:not(.js) .planner__controls,
html:not(.js) .planner__result { display: none; }

html.js .planner__table-wrap { display: none; }

.planner__table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.planner__table {
  width: 100%;
  min-width: 34rem;
  font-size: .9rem;
  line-height: 1.5;
}

.planner__table caption {
  margin-bottom: .75rem;
  color: var(--text-dim);
  text-align: left;
}

.planner__table th,
.planner__table td {
  padding: .7em .9em .7em 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.planner__table thead th {
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Three points */
.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.point {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 1.1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.point:first-child { padding-top: 0; border-top: 0; }

.point .piece { margin-top: .65em; }

.point__title {
  margin-bottom: .35em;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

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

/* S4. Rooms: a 3×2 board ------------------------------------------------- */

.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-shell-2);
  border: 1px solid var(--c-shell-2);
}

.board__cell {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-slate);
  color: var(--c-foam);
  text-decoration: none;
}

.board__media,
.board__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.board__media img {
  object-fit: cover;
  transition: opacity 240ms var(--ease);
}

.board__cell:hover .board__media img { opacity: .88; }

.board__info {
  --text: var(--c-foam);
  --text-dim: rgba(247,251,250,.85);
  --accent: var(--c-sea-lt);
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 3.5rem 1.1rem 1.1rem;
  background: linear-gradient(to top, rgba(32,38,43,.9) 0%, rgba(32,38,43,.7) 55%, rgba(32,38,43,0) 100%);
}

.board__name {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.board__info .chip { font-size: .66rem; letter-spacing: .1em; }

.board__cell:focus-visible {
  outline: 3px solid var(--c-sea);
  outline-offset: -3px;
}

/* Active square: a rorbu piece in the corner */
.board__cell::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-rorbu);
  box-shadow: inset 0 0 0 2px rgba(247,251,250,.35), 0 2px 0 rgba(0,0,0,.3);
  transform: scale(0);
  transition: transform 240ms var(--ease-hop);
}

.board__cell[aria-selected="true"]::after { transform: scale(1); }

/* Frame drawn above the photo, so the selected square reads at a glance */
.board__cell[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 3px solid var(--c-rorbu);
  pointer-events: none;
}

.board__cell::after { z-index: 2; }

.room-panels { margin-top: clamp(2.5rem, 5vw, 4rem); }

.room-panel {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.room-panel:first-child { padding-top: 0; border-top: 0; }

html.js .room-panel { padding-top: 0; border-top: 0; }

.room-panel h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

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

.room-panel .btn { margin-top: .5rem; }

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thumbs li:first-child { grid-column: 1 / -1; }

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 240ms var(--ease);
}

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

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

@media (min-width: 1024px) {
  .board { grid-template-columns: repeat(3, 1fr); }
  .room-panel { grid-template-columns: 6fr 5fr; gap: 4rem; align-items: start; }
}

/* S5. Dining -------------------------------------------------------------- */

.media-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.media-row__text p { max-width: 56ch; }

.media-row__media--tall { max-width: 460px; }

@media (min-width: 1024px) {
  .media-row { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 5vw, 5rem); }
  .media-row--reverse { grid-template-columns: 6fr 5fr; }
  .media-row--reverse .media-row__media { order: 2; justify-self: end; }
}

.dishes {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish img {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dish__name { margin-bottom: .3em; font-size: clamp(1.2rem, 1.7vw, 1.4rem); }

.bar {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.bar__media { max-width: 380px; }

.bar__text p { max-width: 52ch; }

@media (min-width: 768px) {
  .dishes { grid-template-columns: repeat(3, 1fr); }
  .bar { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}

/* S6. Gaming lounge ------------------------------------------------------- */

.casino__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}

.casino__title-row h2 { margin: 0; }

.casino__text {
  display: grid;
  gap: 2rem;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4rem);
}

.casino__divide {
  align-self: start;
  padding: 1.5rem;
  background: var(--c-slate-2);
  border: 1px solid var(--line-strong);
}

.casino__divide strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--c-foam);
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.casino__rules {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

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

.casino__rg {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  align-self: start;
}

.casino__rg .chip { margin-top: .2em; }

@media (min-width: 768px) {
  .casino__rules { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1024px) {
  .casino__text { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

/* Strips: casino cards, spa on phones */
.strip { position: relative; }

.strip__nav {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: 1rem;
}

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

.strip__prev,
.strip__next {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background-color 180ms var(--ease), opacity 180ms var(--ease);
}

.strip__prev::before,
.strip__next::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.strip__prev::before { transform: translateX(2px) rotate(-135deg); }
.strip__next::before { transform: translateX(-2px) rotate(45deg); }

.strip__prev:hover,
.strip__next:hover { background: var(--line); }

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

.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: 1rem;
  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(--line-strong) transparent;
}

.strip__item { scroll-snap-align: start; }

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

.strip__item h3 { margin-bottom: .35em; font-size: clamp(1.2rem, 1.7vw, 1.4rem); }

@media (min-width: 1024px) {
  .strip__track { grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem; }
}

/* S7. Spa ----------------------------------------------------------------- */

.spa__grid {
  display: grid;
  gap: 3rem;
}

/* Grid cells holding a scroll strip must not grow to its content width */
.spa__grid > *,
.games__grid > *,
.events__grid > * { min-width: 0; }

.rhythm {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

/* A line joining the three pieces, like a row of squares */
.rhythm::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 33%;
  height: 1px;
  background: var(--line-strong);
}

.rhythm__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  line-height: 1.4;
}

.rhythm__step strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.strip--spa .card__body { padding: .9rem 1.1rem; }
.strip--spa h3 { margin: 0; font-size: 1.15rem; }

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

  .strip--spa .strip__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    gap: 1.25rem;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
}

@media (min-width: 1024px) {
  .spa__grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; }
  .spa__text { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* S8. Gatherings ---------------------------------------------------------- */

.cards-3,
.cards-4 {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards-3 { margin-top: 1.25rem; }

.cards-3 .card > img {
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cards-4 .card > img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cards-3 h3,
.cards-4 h3 { margin-bottom: .35em; font-size: clamp(1.2rem, 1.7vw, 1.4rem); }

.events__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 5vw, 4rem);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible { outline-offset: 4px; }

.capacity {
  width: 100%;
  min-width: 32rem;
  font-size: .95rem;
}

.capacity caption {
  margin-bottom: .9rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  text-align: left;
}

.capacity th,
.capacity td {
  padding: .8em 1em .8em 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.capacity thead th {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.capacity tbody th {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
}

.capacity td { font-variant-numeric: tabular-nums; }

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

@media (min-width: 1024px) {
  .events__grid { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
}

/* S9. The island ---------------------------------------------------------- */

.island .card { --accent: var(--c-sea-lt-2); }

.island__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.map__frame { position: relative; }

.map figcaption { margin-top: .75rem; }

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

.map__label {
  padding: .3em .7em;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}

/* With JS the labels are placed on the map from their data- attributes */
.map.is-placed .map__labels { margin: 0; }

.map.is-placed .map__label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  max-width: 14rem;
  border-color: transparent;
  background: rgba(32,38,43,.86);
  color: var(--c-foam);
  transform: translate(-50%, -50%);
}

.map.is-placed .map__label--sea {
  background: transparent;
  color: var(--c-foam);
  font-style: italic;
  letter-spacing: .08em;
  text-shadow: 0 1px 6px rgba(32,38,43,.7);
}

.map__label--project {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}

.map__label--project::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-rorbu-lt);
  box-shadow: inset 0 0 0 1px rgba(247,251,250,.55);
}

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

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

@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .island__grid { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; }
}

/* S10. Gallery ------------------------------------------------------------ */
/* Without JS: a plain 4/2/1 grid. The fanned deck (.fan.is-ready) arrives with the JS in stage 6. */

.fan__deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fan__link {
  display: block;
  overflow: hidden;
}

.fan__link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.fan__caption {
  margin-top: .6rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.fan__controls { display: none; }

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

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

.gallery .impression-note { margin-top: 2rem; }

/* S11. FAQ ---------------------------------------------------------------- */

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

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__q {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.3rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.3;
  text-align: left;
}

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

/* The same cell-and-piece marker as the footer accordion */
.faq__toggle::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
}

.faq__toggle[aria-expanded="true"]::after {
  background: radial-gradient(circle, var(--c-rorbu) 0 3.5px, transparent 4px);
}

.faq__a {
  max-width: var(--measure);
  padding-bottom: 1.5rem;
}

.faq__note {
  color: var(--text-dim);
  font-size: var(--fs-small);
  font-style: italic;
}

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 4fr 7fr; gap: 4.5rem; align-items: start; }
  .faq .section__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* S12. Interest list band ------------------------------------------------- */

.cta-band {
  --text: var(--c-foam);
  --text-dim: var(--c-foam-dim);
  --accent: var(--c-sea-lt);
  position: relative;
  isolation: isolate;
  padding-block: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
  background: var(--c-slate);
  color: var(--text);
}

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

/* Slate at 70% everywhere keeps text at ≥ 5.9:1 even over the brightest window in the frame */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(32,38,43,.45) 0%, rgba(32,38,43,0) 70%),
    rgba(32,38,43,.7);
  pointer-events: none;
}

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

.cta-band__text {
  margin-bottom: 1.75rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

/* Contact page ------------------------------------------------------------ */

.contact {
  display: grid;
  gap: 3rem;
}

.field { margin-bottom: 1.4rem; }

.field__label {
  display: block;
  margin-bottom: .45rem;
  font-size: .92rem;
  font-weight: 700;
}

.field__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .75em .9em;
  border: 1px solid var(--c-slate-dim);
  border-radius: 0;
  background: var(--c-foam);
  color: var(--c-slate);
  font-size: 1rem;
  line-height: 1.4;
}

.field__input:focus-visible { outline-offset: 2px; }

.field__select {
  padding-right: 2.75em;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2320262B' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 12px 8px;
}

.field--check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .85rem;
  align-items: start;
  font-size: .92rem;
  line-height: 1.55;
}

.field__check {
  width: 22px;
  height: 22px;
  margin: .1em 0 0;
  accent-color: var(--c-sea);
}

.field__input[aria-invalid="true"],
.field__check[aria-invalid="true"] { border-color: var(--c-rorbu); outline: 1px solid var(--c-rorbu); }

.field__error {
  margin: .45rem 0 0;
  color: var(--c-rorbu);
  font-size: .88rem;
  font-weight: 600;
}

.field--check .field__error { grid-column: 2; margin-top: 0; }

.interest-form__submit { margin-top: .5rem; }

.interest-form__status {
  min-height: 1.5em;
  margin-top: 1rem;
  font-weight: 600;
}

.contact__direct { margin-top: 1.5rem; }

.contact__noscript {
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-rorbu);
}

.contact__small {
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.contact__aside {
  align-self: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--c-shell);
  border: 1px solid var(--line);
}

.contact__aside-title {
  margin-bottom: 1rem;
  font-size: var(--fs-h3);
}

.contact__aside .pieces + .contact__aside-title { margin-top: 2rem; }

.contact__mail a { color: var(--text); }
.contact__mail .footer-links__label { color: var(--text-dim); }

@media (min-width: 1024px) {
  .contact { grid-template-columns: 7fr 5fr; gap: 5rem; }
}

/* 9. Utilities & reduced motion ------------------------------------------- */

@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::after,
  .btn:focus-visible::after { animation: none; transform: none; }

  .card--link:hover,
  .card--link:focus-within { transform: none; box-shadow: 0 0 0 1px var(--line-strong); }
}

/* 10. JS-driven components (stage 6) -------------------------------------- */

/* Sentinels for IntersectionObserver */
.scroll-sentinel,
.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

.scroll-sentinel { height: 80px; }
.top-sentinel { height: 150vh; }

/* Hero pause button, next to the dots */
.hero__pause {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: .35rem;
  padding: 0;
  border: 1px solid rgba(247,251,250,.55);
  background: rgba(32,38,43,.35);
  color: var(--c-foam);
}

.hero__pause::before {
  content: "";
  width: 8px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.hero__pause[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
  margin-left: 3px;
}

/* Room panel crossfade */
.room-panel.is-entering { animation: panel-in 320ms var(--ease); }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

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

/* Fan: the gallery as a fanned deck */
.fan.is-ready {
  --card-w: min(340px, 62vw);
  padding-block: 1.5rem .5rem;
  overflow: hidden;
}

.fan.is-ready .fan__deck {
  display: block;
  position: relative;
  height: calc(var(--card-w) * 1.25 + 4rem);
  touch-action: pan-y;
}

.fan.is-ready .fan__card {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: calc(20 - var(--d, 0));
  width: var(--card-w);
  margin-left: calc(var(--card-w) / -2);
  transform:
    translateX(calc(var(--o, 0) * 36%))
    translateY(calc(var(--d, 0) * 10px))
    rotate(calc(var(--o, 0) * 5deg));
  transform-origin: 50% 120%;
  transition: transform 420ms var(--ease), opacity 300ms var(--ease);
}

.fan.is-ready .fan__card.is-far { opacity: 0; pointer-events: none; }

.fan.is-ready .fan__card:not([aria-current]) { cursor: pointer; }

.fan.is-ready .fan__link {
  border: 6px solid var(--c-foam);
  box-shadow: 0 14px 30px rgba(32,38,43,.22);
}

.fan.is-ready .fan__card:not([aria-current]) .fan__link { filter: saturate(.8) brightness(.94); }

.fan.is-ready .fan__caption {
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.fan.is-ready .fan__card:not([aria-current]) .fan__caption { visibility: hidden; }

.fan.is-ready .fan__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.fan__count {
  min-width: 4.5ch;
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.fan__prev,
.fan__next,
.lightbox__prev,
.lightbox__next,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background-color 180ms var(--ease), opacity 180ms var(--ease);
}

.fan__prev::before,
.fan__next::before,
.lightbox__prev::before,
.lightbox__next::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.fan__prev::before,
.lightbox__prev::before { transform: translateX(2px) rotate(-135deg); }
.fan__next::before,
.lightbox__next::before { transform: translateX(-2px) rotate(45deg); }

.fan__prev:hover,
.fan__next:hover { background: var(--line); }

.fan__prev:disabled,
.fan__next:disabled,
.lightbox__prev:disabled,
.lightbox__next:disabled { opacity: .35; cursor: default; }

/* Lightbox */
.lightbox {
  --text: var(--c-foam);
  --line-strong: rgba(247,251,250,.32);
  --accent: var(--c-sea-lt);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  gap: .75rem;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: rgba(20,24,27,.96);
  color: var(--text);
}

.lightbox__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox__count {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  grid-area: 1 / 1;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.lightbox__close::after { transform: rotate(-45deg); }

.lightbox__prev,
.lightbox__next { align-self: center; }

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  touch-action: pan-y;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 10rem);
  object-fit: contain;
}

.lightbox__caption {
  margin-top: .9rem;
  color: var(--c-foam-dim);
  text-align: center;
}

@media (max-width: 599.98px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 2; }
  .lightbox__prev { grid-row: 3; justify-self: start; }
  .lightbox__next { grid-row: 3; justify-self: end; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(247,251,250,.3);
  background: var(--c-slate);
  color: var(--c-foam);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s linear 240ms;
}

.back-to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

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

body:has(.nav-board.is-open) .back-to-top { visibility: hidden; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .fan.is-ready .fan__card {
    transform: translateX(calc(var(--o, 0) * 36%)) translateY(calc(var(--d, 0) * 10px));
    transition: none;
  }
  .reveal { opacity: 1; transform: none; }
}
