/* ==========================================================================
   Kumlegard Ryfylke Resort & Casino — style.css
   Design system "Salt & Copper": mist and fog, basalt for the evening,
   copper as the only warm accent.
   ========================================================================== */

/* 1. Fonts ................................................................. */
/* Variable files (wght axis). Cyrillic only for Geologica (owner block). */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-moda-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: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-moda-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: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geologica-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: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geologica-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: 'Geologica';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geologica-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

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

:root {
  /* Palette */
  --c-mist:      #EFF1F0;  /* main background */
  --c-fog:       #DDE3E2;  /* alternating sections */
  --c-fog-2:     #C6CFCD;  /* cards, lines on light */
  --c-basalt:    #1B1E1F;  /* dark sections, main text on light */
  --c-basalt-2:  #262A2B;  /* cards on dark */
  --c-basalt-dim: rgba(27,30,31,.68);
  --c-copper:    #B5714A;  /* copper: main accent, links, focus */
  --c-copper-lt: #D99A6C;  /* copper on dark */
  --c-oat:       #E6DCC8;  /* oat: underlays, quotes */
  --c-slope:     #5F7A5E;  /* slope green: secondary marks */
  --c-line:      rgba(27,30,31,.14);
  --c-line-dark: rgba(239,241,240,.16);

  /* Derived text shades: --c-copper and --c-slope fall below 4.5:1 as text on
     mist/fog/oat, so text and focus on light surfaces use these instead. */
  --c-copper-ink: #8A5231; /* 5.56 mist · 4.85 fog · 4.63 oat */
  --c-slope-ink:  #4A654A; /* 5.69 mist · 4.97 fog */
  --c-mist-dim:   rgba(239,241,240,.72);

  /* Surface (overridden by .section--fog / .section--basalt) */
  --bg:        var(--c-mist);
  --text:      var(--c-basalt);
  --text-dim:  var(--c-basalt-dim);
  --accent:    var(--c-copper-ink);  /* text-level accent: eyebrow, links */
  --rule:      var(--c-copper);      /* decorative copper lines */
  --focus:     var(--c-copper-ink);
  --line:      var(--c-line);
  --card:      var(--c-fog);

  /* Type */
  --ff-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --ff-text: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1: clamp(2.9rem, 6.8vw, 6.2rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.6rem);
  --fs-h3: clamp(1.375rem, 2.1vw, 1.8rem); /* min 22px: Bodoni floor */
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-small: .875rem;
  --fs-caption: .82rem;
  --fs-eyebrow: .72rem;
  --fs-chip: .66rem;

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

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .2s;
  --t-med: .45s;

  /* Textures (data: URIs, allowed by img-src) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --steam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M2.5 11c-1-1.2 1-2.3 0-3.5s1-2.3 0-3.5'/%3E%3Cpath d='M6 11c-1-1.2 1-2.3 0-3.5s1-2.3 0-3.5S7 1.7 6 .5'/%3E%3Cpath d='M9.5 11c-1-1.2 1-2.3 0-3.5s1-2.3 0-3.5'/%3E%3C/svg%3E");
}

/* Surfaces */
.section--fog {
  --bg: var(--c-fog);
  --card: var(--c-mist);
}
.section--basalt,
.site-footer {
  --bg: var(--c-basalt);
  --text: var(--c-mist);
  --text-dim: var(--c-mist-dim);
  --accent: var(--c-copper-lt);
  --rule: var(--c-copper-lt);
  --focus: var(--c-copper-lt);
  --line: var(--c-line-dark);
  --card: var(--c-basalt-2);
}

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

*,
*::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;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--t-fast) var(--ease), text-decoration-thickness var(--t-fast) var(--ease);
}
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--c-copper); color: var(--c-mist); }

strong, b { font-weight: 500; }

/* 4. Typography ............................................................ */

h1, h2, h3, h4,
.h1, .h2, .h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.04;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.375rem; } /* Bodoni never below 22px */

.display-strong { font-weight: 600; }

p + p { margin-top: 1.1em; }

.lead {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2,
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--steam) center / contain no-repeat;
  mask: var(--steam) center / contain no-repeat;
}

/* Copper rule: 64px under the eyebrow, opens every section */
.copper-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 1.1rem 0 1.4rem;
  background: var(--rule);
  border: 0;
}

.caption,
figcaption {
  font-size: var(--fs-caption);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-dim);
}
.caption { margin-top: .75rem; }

.disclaimer {
  font-size: var(--fs-caption);
  font-weight: 300;
  color: var(--text-dim);
}

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

/* 5. Layout ................................................................ */

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

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

.section__head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin-top: 0; }
.section__head .lead { margin-top: 1.5rem; }

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.grid--2,
.grid--3,
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 480px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--12 { grid-template-columns: repeat(12, 1fr); }
}
@media (min-width: 1440px) {
  :root { --header-h: 80px; }
}

/* 6. Textures (pseudo-elements only) ....................................... */

/* Light sections: faint fog gradient on top + grain */
.section:not(.section--basalt)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(27,30,31,.04), rgba(27,30,31,0));
}
.section:not(.section--basalt)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grain) repeat;
  background-size: 400px 400px;
  opacity: .03;
}

/* Dark sections: warm copper glow in one corner */
.section--basalt::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 100% 0%, rgba(181,113,74,.07), rgba(181,113,74,0) 70%);
}
.section--basalt.glow--bl::before {
  background: radial-gradient(60% 55% at 0% 100%, rgba(181,113,74,.07), rgba(181,113,74,0) 70%);
}

/* 7. Brand details ......................................................... */

/* Steam divider: three thin wavy lines rising and fading. Static, no animation. */
.steam-divider {
  display: flex;
  justify-content: center;
  padding-block: 1.5rem;
  background: var(--bg);
  color: var(--rule);
}
.steam-divider svg {
  width: 56px;
  height: 64px;
  overflow: visible;
  -webkit-mask: linear-gradient(to top, #000 30%, transparent);
  mask: linear-gradient(to top, #000 30%, transparent);
}
.steam-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 60 4 10 6 4 8;
}

/* Image frame: radius 0, 1px copper line on the bottom edge only */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame > picture { display: block; width: 100%; height: 100%; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame--3x2  { aspect-ratio: 3 / 2; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--4x5  { aspect-ratio: 4 / 5; }
.frame--1x1  { aspect-ratio: 1 / 1; }

/* Circles: gallery plates, back-to-top, timeline markers share one shape */
.circle,
.plate {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.plate {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--card);
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.marker {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  transition: background-color var(--t-med) var(--ease);
}
.marker.is-active,
.is-active > .marker { background: var(--rule); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: 0;
  font-family: var(--ff-text);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn--primary {
  background: var(--c-basalt);
  color: var(--c-mist);
}
/* Hover uses the deeper copper: mist on #B5714A is only 3.41:1 */
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-copper-ink);
  color: var(--c-mist);
}
.section--basalt .btn--primary,
.site-footer .btn--primary {
  background: var(--c-mist);
  color: var(--c-basalt);
}
.section--basalt .btn--primary:hover,
.section--basalt .btn--primary:focus-visible,
.site-footer .btn--primary:hover,
.site-footer .btn--primary:focus-visible {
  background: var(--c-copper-lt);
  color: var(--c-basalt);
}

.btn--link {
  min-height: 48px;
  padding: .85rem 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: .45em;
  transition: text-decoration-thickness var(--t-fast) var(--ease);
}
.btn--link:hover,
.btn--link:focus-visible { text-decoration-thickness: 3px; }

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

/* Chips: Planned, Subject to licensing, 18+, Thursdays */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .2rem .6rem;
  border: 1px solid var(--accent); /* ≥3:1 on fog, where --c-copper is 2.98 */
  border-radius: 0;
  font-size: var(--fs-chip);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chip--slope { border-color: var(--c-slope); color: var(--c-slope-ink); }
.section--basalt .chip--slope { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Cards: copper line runs in left to right, caption shifts 2px. No scale. */
.card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card);
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease);
}
.card__body { padding: 1.25rem 1.25rem 1.5rem; }
.card__title { font-size: var(--fs-h3); }
.card__caption {
  display: block;
  margin-top: .5rem;
  transition: transform var(--t-fast) var(--ease);
}
.card:hover::after,
.card:focus-within::after { transform: scaleX(1); }
.card:hover .card__caption,
.card:focus-within .card__caption { transform: translateX(2px); }

/* Quote / underlay */
.underlay {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--c-oat);
  color: var(--c-basalt);
  --accent: var(--c-copper-ink);
}

/* 8. Utilities ............................................................. */

.visually-hidden {
  position: absolute !important;
  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;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--c-basalt);
  color: var(--c-mist);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--c-copper-lt);
  outline-offset: 2px;
}

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

.no-js-hidden { display: none; }
.js .no-js-hidden { display: revert; }

/* 9. Header / nav drawer ................................................... */

main:focus { outline: none; }

.site-header {
  --focus: var(--c-copper-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--c-basalt);
}
/* Surface on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position drawer inside the header box. */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.site-header::before {
  background: rgba(239,241,240,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-copper);
}
.site-header::after {
  height: 180%;
  background: linear-gradient(to bottom, rgba(27,30,31,.72), rgba(27,30,31,0));
  opacity: 0;
}

/* Home: transparent over the hero until .is-scrolled (80px) */
.site-header--overlay {
  --focus: var(--c-copper-lt);
  position: fixed;
  left: 0;
  right: 0;
  color: var(--c-mist);
}
.site-header--overlay::before { opacity: 0; }
.site-header--overlay::after { opacity: 1; }
.site-header--overlay.is-scrolled {
  --focus: var(--c-copper-ink);
  color: var(--c-basalt);
}
.site-header--overlay.is-scrolled::before { opacity: 1; }
.site-header--overlay.is-scrolled::after { opacity: 0; }

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

/* Logo: copper disc with K and steam + KUMLEGARD */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}
.site-logo__mark { width: 40px; height: 40px; flex: none; }
.site-logo__disc { fill: var(--c-copper); }
.site-logo__steam,
.site-logo__k {
  fill: none;
  stroke: var(--c-mist);
  stroke-linecap: round;
}
.site-logo__steam { stroke-width: 1.8; }
.site-logo__k { stroke-width: 4.2; stroke-linecap: square; }
.site-logo__word {
  font-family: var(--ff-text);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}

/* Toggle (hidden until JS unhides it; <noscript> link covers no-JS) */
.nav-toggle-slot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 48px;
  min-height: 48px;
}
.nav-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  transition: color var(--t-fast) var(--ease);
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle__bars { top: 50%; margin-top: -.75px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] { color: var(--c-mist); }
.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); }

.nav-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
/* Active: copper dot before the text */
.site-nav__link::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: .6em;
  border-radius: 50%;
  background: var(--c-copper);
  opacity: 0;
  transform: scale(.4);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.site-nav__link.is-active::before,
.site-nav__link[aria-current]::before { opacity: 1; transform: none; }

/* Scrim (inserted into the header by JS, below the drawer) */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(27,30,31,.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.nav-scrim.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-med) var(--ease);
}

/* < 1200px: drawer from the right, 92% wide */
@media (max-width: 1199.98px) {
  .nav-drawer {
    --focus: var(--c-copper-lt);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 92%;
    padding: calc(var(--header-h) + 1rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--c-basalt);
    color: var(--c-mist);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .nav-drawer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(70% 45% at 100% 100%, rgba(181,113,74,.07), rgba(181,113,74,0) 70%);
  }
  .nav-drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--t-med) var(--ease);
  }
  .nav-drawer .site-nav__list > li + li { border-top: 1px solid rgba(217,154,108,.32); }
  .nav-drawer .site-nav__link {
    display: flex;
    padding: .8rem 0;
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
  }
  .nav-drawer .site-nav__link::before { width: 8px; height: 8px; margin-right: .5em; background: var(--c-copper-lt); }
  .nav-drawer .site-nav__cta {
    margin-top: auto;
    align-self: stretch;
    background: var(--c-mist);
    color: var(--c-basalt);
  }
  .nav-drawer .site-nav__list { margin-bottom: 2.5rem; }
  .nav-drawer .site-nav__cta:hover,
  .nav-drawer .site-nav__cta:focus-visible { background: var(--c-copper-lt); color: var(--c-basalt); }
}

/* >= 1200px: inline menu, CTA far right */
@media (min-width: 1200px) {
  .nav-toggle-slot { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }
  .site-nav__link {
    min-height: 48px;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  /* Dot hangs to the left so labels don't shift */
  .site-nav__link::before {
    position: absolute;
    left: -12px;
    top: 50%;
    margin: -3px 0 0;
  }
  .site-nav__link:hover { text-decoration: underline; text-decoration-color: var(--c-copper); text-underline-offset: .5em; }
  .site-nav__cta { min-height: 44px; padding: .7rem 1.25rem; font-size: .8rem; }
  .site-header--overlay:not(.is-scrolled) .site-nav__cta {
    background: var(--c-mist);
    color: var(--c-basalt);
  }
  .site-header--overlay:not(.is-scrolled) .site-nav__cta:hover,
  .site-header--overlay:not(.is-scrolled) .site-nav__cta:focus-visible {
    background: var(--c-copper-lt);
    color: var(--c-basalt);
  }
}

/* 10. Footer ............................................................... */

.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 a { color: inherit; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--c-copper-lt);
}
.site-footer .btn:hover { text-decoration: none; }

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

.site-footer__col--brand { padding-bottom: 2rem; }
.site-footer__col--brand p { margin-top: 1rem; max-width: 36ch; color: var(--text-dim); }
.site-logo--footer .site-logo__mark { width: 48px; height: 48px; }
.site-footer .site-footer__pitch { color: var(--text); }
.site-footer .site-footer__mail { color: var(--accent); }

.site-footer__title {
  margin: 0;
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}
.site-footer__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;
}
.site-footer__toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}
.site-footer__toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

.site-footer__panel { padding-bottom: 1.5rem; }
.site-footer__panel > * + * { margin-top: 1rem; }
.site-footer__panel p { color: var(--text-dim); }
.site-footer__links,
.site-footer__mails { list-style: none; margin: 0; padding: 0; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.site-footer__links a[aria-current]::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: .6em;
  border-radius: 50%;
  background: var(--c-copper-lt);
}
.site-footer__panel > .site-footer__mails { margin-top: 1.75rem; }
.site-footer__mails li { padding-block: .3rem; }
.site-footer__mails a { color: var(--accent); overflow-wrap: anywhere; }
.site-footer__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Phone: columns 2–4 become an accordion (state kept by JS) */
@media (max-width: 767.98px) {
  .site-footer__col:not(.site-footer__col--brand) { border-top: 1px solid var(--line); }
  .site-footer__title:has([aria-expanded="false"]) + .site-footer__panel { display: none; }
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }
  .site-footer__col--brand { padding-bottom: 0; }
  .site-footer__title { margin-bottom: 1rem; }
  .site-footer__toggle { min-height: 0; cursor: default; }
  .site-footer__toggle::after { display: none; }
  .site-footer__panel { padding-bottom: 0; }
}

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

.site-footer__bottom {
  display: grid;
  align-items: start;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.site-footer__bottom a { color: var(--accent); text-decoration: underline; }
.site-footer__play {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 80ch;
}
.site-footer__play .chip { flex: none; margin-top: .1rem; }
.site-footer__note { color: var(--text); }
.footer__owner { font-size: var(--fs-caption); line-height: 1.6; }

@media (min-width: 1024px) {
  .site-footer__bottom { grid-template-columns: auto 1fr; column-gap: 3rem; }
  .site-footer__copy,
  .site-footer__note { grid-column: 1; }
  .site-footer__play,
  .footer__owner { grid-column: 2; }
  .site-footer__play { grid-row: 1; }
  .footer__owner { grid-row: 2; }
}

/* 11. Sections S1–S12 ...................................................... */

/* Reveal (armed by JS only: html.has-reveal) */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Shared: split (image + text) */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5.5rem);
}
.split__text > * + * { margin-top: 1rem; }
.split__text { max-width: 56ch; }
@media (min-width: 768px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--reverse { grid-template-columns: 5fr 7fr; }
  .split--reverse .split__media { grid-column: 2; grid-row: 1; }
  .split--reverse .split__text { grid-column: 1; grid-row: 1; }
  .split:has(.split__media--narrow):not(.split--reverse) { grid-template-columns: 5fr 7fr; }
  .split--reverse:has(.split__media--narrow) { grid-template-columns: 7fr 5fr; }
  .split__media--narrow { max-width: 440px; width: 100%; justify-self: center; }
}

/* Shared: strip (horizontal, snap) */
.strip { position: relative; min-width: 0; }
/* Grid items default to min-width: auto, so a wide child (the capacity table,
   a strip) would stretch its column and widen the whole page on phones. */
.spa__grid > *,
.thursday__body > *,
.idea__grid > *,
.thursday__head > *,
.casino__head > *,
.casino__rules > *,
.split > *,
.rooms__panel > *,
.events__details > *,
.ryfylke__head > *,
.ryfylke__map > *,
.faq__grid > *,
.contact__grid > *,
.site-footer__grid > * { min-width: 0; }
.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  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(--rule) transparent;
}
.strip__item { scroll-snap-align: start; }
@media (min-width: 768px) {
  .strip__track { grid-auto-columns: calc((100% - 2 * 1.75rem) / 2.4); }
}
@media (min-width: 1024px) {
  .strip__track { grid-auto-columns: calc((100% - 3 * 1.75rem) / 3.3); }
}
.strip__controls {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: 1rem;
}
.strip__controls[hidden] { display: none; }
.strip__prev,
.strip__next {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast);
}
.strip__prev:hover:not(:disabled),
.strip__next:hover:not(:disabled) { background: var(--rule); color: var(--c-basalt); }
.strip__prev:disabled,
.strip__next:disabled { opacity: .35; cursor: default; }

/* Spa: strip only below 768px, 2×2 grid above */
@media (min-width: 768px) {
  .strip--until-md .strip__controls { display: none; }
  .strip--until-md .strip__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
  }
}

/* S1. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 clamp(2rem, 5vh, 4.5rem);
  overflow: hidden;
  background: var(--c-basalt);
  color: var(--c-mist);
}
.hero__slides { 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;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(27,30,31,.92) 0%, rgba(27,30,31,.7) 32%, rgba(27,30,31,.18) 62%, rgba(27,30,31,0) 80%),
    linear-gradient(to right, rgba(27,30,31,.55), rgba(27,30,31,0) 70%);
}
.hero__content { position: relative; }
.hero__content > * { max-width: 46rem; }
.hero .eyebrow { color: var(--c-mist); text-shadow: 0 1px 12px rgba(27,30,31,.6); }
.hero .eyebrow::before { background: var(--c-copper-lt); }
.hero__title {
  margin-top: 1rem;
  font-size: var(--fs-h1);
  font-weight: 400;
  max-width: 14ch;
}
.hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  max-width: 40rem;
}
.hero__actions { margin-top: 1.75rem; }
.hero .btn--link { color: var(--c-mist); }
.hero__disclaimer { margin-top: 1.25rem; color: var(--c-mist-dim); }

.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vh, 4.5rem);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero__controls[hidden] { display: none; }
.hero__dots { display: flex; gap: .25rem; }
.hero__dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
}
.hero__dot::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--c-copper-lt);
  border-radius: 50%;
  transition: background-color var(--t-fast) var(--ease);
}
.hero__dot[aria-current="true"]::before { background: var(--c-copper-lt); }
.hero__pause {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-line-dark);
  border-radius: 50%;
  background: rgba(27,30,31,.4);
  color: var(--c-mist);
}

@media (max-width: 767.98px) {
  .hero__controls { position: static; }
  .hero__controls:not([hidden]) { display: flex; margin-top: 1rem; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero__controls { padding-inline: var(--gutter); }
}
/* Short screens (390×664 etc.): everything must fit in the first screen */
@media (max-height: 760px) {
  .hero__title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
  .hero__lead { font-size: 1rem; line-height: 1.5; margin-top: 1rem; }
  .hero__actions { margin-top: 1.25rem; }
  .hero__disclaimer { margin-top: .9rem; }
}
@media (max-width: 479.98px) {
  .hero__actions { gap: .25rem 1.25rem; }
  .hero__actions .btn--primary { padding-inline: 1.25rem; }
}

/* S2. The idea -------------------------------------------------------------- */
.idea__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.idea__body { margin-top: 2rem; }
.idea__detail { max-width: 420px; }
@media (min-width: 1024px) {
  .idea__grid { grid-template-columns: repeat(12, 1fr); }
  .idea__text { grid-column: 1 / span 6; }
  .idea__detail { grid-column: 8 / span 5; max-width: none; margin-top: 4rem; }
}
.idea__wide { margin-top: clamp(3rem, 6vw, 5.5rem); }
.idea__wide figcaption { margin-top: .75rem; }

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.figures__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.75rem 1rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.figures__num {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.figures__unit {
  font-family: var(--ff-text);
  font-size: .32em;
  font-weight: 400;
  letter-spacing: .02em;
  vertical-align: .9em;
}
.figures__label { color: var(--text-dim); font-size: var(--fs-small); }
@media (min-width: 1024px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
  .figures__item { padding-inline: 0 1.5rem; border-bottom: 0; }
  .figures__item + .figures__item { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

/* S3. The Thursday Table ---------------------------------------------------- */
.thursday__head {
  display: grid;
  gap: 2rem;
  align-items: end;
}
.thursday__chips { margin-top: 1.5rem; }
@media (min-width: 1024px) {
  .thursday__head { grid-template-columns: 6fr 5fr; gap: 4rem; }
  .thursday__lead { font-size: 1.1rem; }
}
.thursday__hall { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.thursday__row {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: end;
}
.thursday__row figcaption { margin-top: .6rem; }
@media (min-width: 768px) {
  .thursday__row { grid-template-columns: 1fr 1fr 1.6fr; gap: 1.5rem; }
}

.thursday__body {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
@media (min-width: 1024px) {
  .thursday__body { grid-template-columns: 7fr 5fr; }
  .thursday__aside { padding-top: 4.5rem; }
}
.thursday__subhead { margin-bottom: 2rem; }

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 14px 4.5rem 1fr;
  column-gap: 1.25rem;
  padding-bottom: 2rem;
  transition: opacity var(--t-med) var(--ease);
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step .marker { grid-row: 1 / span 2; margin-top: .55rem; }
.timeline__time {
  grid-column: 2;
  padding-top: .25rem;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.timeline__title { grid-column: 3; }
.timeline__step p {
  grid-column: 3;
  margin-top: .5rem;
  color: var(--text-dim);
  max-width: 48ch;
}
.timeline__step[aria-current="step"] .marker,
.timeline__step.is-active .marker { background: var(--rule); }
.has-timeline .timeline__step:not(.is-active) { opacity: .62; }
@media (max-width: 479.98px) {
  .timeline__step { grid-template-columns: 14px 1fr; }
  .timeline__time,
  .timeline__title,
  .timeline__step p { grid-column: 2; }
  .timeline__step .marker { grid-row: 1; margin-top: .45rem; }
}

.points { margin: 0; padding: 0; list-style: none; }
.points__item { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.points__item:last-child { border-bottom: 1px solid var(--line); }
.points__item p { margin-top: .6rem; color: var(--text-dim); }
.thursday__diet {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}
.thursday__disclaimer { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* S4. Rooms ----------------------------------------------------------------- */
.rooms__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-copper);
}
.rooms__row { border-bottom: 1px solid var(--c-copper); }
.rooms__heading { font-size: inherit; }
.rooms__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 72px;
  padding: 1.1rem 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
}
.rooms__name {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.rooms__meta {
  font-family: var(--ff-text);
  font-size: var(--fs-small);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rooms__item::after {
  content: "";
  grid-column: 3;
  width: 11px;
  height: 11px;
  margin: 0 6px 6px 0;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}
.rooms__item { grid-template-columns: 1fr auto 20px; }
.rooms__item[aria-expanded="true"]::after { transform: translateY(6px) rotate(-135deg); }
.rooms__item:hover .rooms__name,
.rooms__item:focus-visible .rooms__name { color: var(--accent); transform: translateX(4px); }
.rooms__heading:has(.rooms__item[aria-expanded="false"]) + .rooms__panel { display: none; }

.rooms__panel {
  display: grid;
  gap: 1.5rem 3rem;
  padding: .5rem 0 2.5rem;
}
.rooms__text { max-width: 60ch; }
.rooms__text > * + * { margin-top: 1rem; }
.rooms__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rooms__thumb { display: block; }
.rooms__thumb img { transition: opacity var(--t-fast) var(--ease); }
.rooms__thumb:hover img { opacity: .85; }
@media (min-width: 1024px) {
  .rooms__panel { grid-template-columns: 7fr 5fr; align-items: start; }
  .rooms__main { grid-column: 1 / -1; }
  .rooms__thumbs { grid-template-columns: 1fr 1fr; }
  .rooms__thumbs li:first-child { grid-column: 1 / -1; }
}

/* Row thumbnails (touch / reduced motion only), CSS background: no style=.
   Backgrounds switch on only near the viewport (.is-near from JS). */
.rooms__thumb-row {
  display: none;
  width: 72px;
  aspect-ratio: 3 / 2;
  background: var(--card) center / cover no-repeat;
  border-bottom: 1px solid var(--c-copper);
}
.rooms__list.is-near .rooms__row--fjord-room .rooms__thumb-row,
html:not(.js) .rooms__row--fjord-room .rooms__thumb-row { background-image: url('../img/room-fjord-room.webp'); }
.rooms__list.is-near .rooms__row--waterfall-room .rooms__thumb-row,
html:not(.js) .rooms__row--waterfall-room .rooms__thumb-row { background-image: url('../img/room-waterfall-room.webp'); }
.rooms__list.is-near .rooms__row--kitchen-loft .rooms__thumb-row,
html:not(.js) .rooms__row--kitchen-loft .rooms__thumb-row { background-image: url('../img/room-kitchen-loft.webp'); }
.rooms__list.is-near .rooms__row--steam-suite .rooms__thumb-row,
html:not(.js) .rooms__row--steam-suite .rooms__thumb-row { background-image: url('../img/room-steam-suite.webp'); }
.rooms__list.is-near .rooms__row--quay-suite .rooms__thumb-row,
html:not(.js) .rooms__row--quay-suite .rooms__thumb-row { background-image: url('../img/room-quay-suite.webp'); }
.rooms__list.is-near .rooms__row--cliff-house .rooms__thumb-row,
html:not(.js) .rooms__row--cliff-house .rooms__thumb-row { background-image: url('../img/room-cliff-house.webp'); }

/* Floating preview (created by JS; --px / --py set with setProperty) */
.rooms__preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: clamp(240px, 24vw, 380px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  pointer-events: none;
  background: var(--c-fog-2);
  border-bottom: 1px solid var(--c-copper);
  box-shadow: 0 24px 60px -24px rgba(27,30,31,.45);
  opacity: 0;
  transform: translate3d(calc(var(--px, 0px) + 28px), calc(var(--py, 0px) - 50%), 0);
  transition: opacity .25s var(--ease);
}
.rooms__preview.is-visible { opacity: 1; }
.rooms__preview img { width: 100%; height: 100%; object-fit: cover; }

/* Fine pointer + motion allowed: floating preview mode, no in-panel main image */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rooms__main { display: none; }
}
/* Touch or reduced motion: no floating preview; thumbnail on the row */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .rooms__preview { display: none; }
  .rooms__thumb-row { display: block; }
  .rooms__item { grid-template-columns: 72px 1fr auto 20px; }
  .rooms__item::after { grid-column: 4; }
  .rooms__meta { grid-column: 3; }
}
@media (max-width: 599.98px) {
  .rooms__item { grid-template-columns: 1fr 20px; row-gap: .25rem; }
  .rooms__name { grid-column: 1; }
  .rooms__meta { grid-column: 1; grid-row: 2; }
  .rooms__item::after { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 599.98px) and ((hover: none) or (pointer: coarse) or (prefers-reduced-motion: reduce)) {
  .rooms__item { grid-template-columns: 64px 1fr 20px; column-gap: .9rem; }
  .rooms__thumb-row { width: 64px; grid-row: 1 / span 2; }
  .rooms__name,
  .rooms__meta { grid-column: 2; }
  .rooms__item::after { grid-column: 3; }
}

/* S5. Dining ---------------------------------------------------------------- */
.dishes {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .dishes { grid-template-columns: repeat(3, 1fr); }
}
.dish .frame { border-bottom: 0; }
.card .frame { border-bottom-color: transparent; }
.bread .underlay { max-width: 60ch; }
.bread .underlay > * + * { margin-top: 1rem; }

/* S6. Gaming lounge --------------------------------------------------------- */
.casino__head {
  display: grid;
  gap: 2rem;
  align-items: end;
}
.casino__chips { margin-top: 1.5rem; }
@media (min-width: 1024px) {
  .casino__head { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .casino__lead { font-size: 1.1rem; }
}
.casino__hero { margin-block: clamp(2.5rem, 5vw, 4.5rem); }
.casino .strip__item .card__body { padding-inline: 1.1rem; }

.casino__rules {
  display: grid;
  gap: 2rem 4rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .casino__rules { grid-template-columns: 5fr 6fr; }
}
.rules { margin: 0; padding: 0; list-style: none; }
.rules li { padding-block: .7rem; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.rules__term {
  display: block;
  font-weight: 500;
  color: var(--text);
}
.casino__notes > * + * { margin-top: 1.25rem; }
.casino__help { display: flex; align-items: flex-start; gap: .75rem; }
.casino__help .chip { flex: none; margin-top: .25rem; }

/* S7. Spa ------------------------------------------------------------------- */
.spa__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 1024px) {
  .spa__grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .spa__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.spa__intro .lead { margin-top: 1.5rem; }
.spa__area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.rhythm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.rhythm__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.rhythm__circle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: .5rem;
  border: 1px solid var(--c-copper);
  border-radius: 50%;
}
.rhythm__step:nth-child(1) .rhythm__circle { background: var(--c-copper); }
.rhythm__step:nth-child(2) .rhythm__circle { background: linear-gradient(to top, var(--c-copper) 50%, transparent 50%); }
.rhythm__step:not(:last-child) .rhythm__circle::after {
  content: "";
  position: absolute;
  left: calc(100% + .5rem);
  top: 50%;
  width: calc(100% + 2rem);
  height: 1px;
  background: var(--c-copper);
}
.rhythm__name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  line-height: 1.1;
}
.rhythm__text { font-size: var(--fs-small); color: var(--text-dim); line-height: 1.5; }
.spa__safety {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--c-copper);
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.spa__cards .card__body { padding: 1rem 1rem 1.25rem; }

/* S8. Gatherings ------------------------------------------------------------ */
.events__cards {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .events__cards { grid-template-columns: repeat(3, 1fr); }
}
.events__details {
  display: grid;
  gap: 2.5rem 4rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 1024px) {
  .events__details { grid-template-columns: 7fr 5fr; align-items: start; }
}
.events__subhead { margin-bottom: 1.25rem; }
.events__notes > * + * { margin-top: 1rem; }
.events__notes .btn-row { margin-top: 1.75rem; }
.events__mail { overflow-wrap: anywhere; }

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-top: 1px solid var(--c-copper);
}
/* Phones: fade the right edge so the hidden columns read as scrollable */
@media (max-width: 599.98px) {
  .table-scroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
}
.capacity {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.capacity th,
.capacity td {
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.capacity th:first-child { text-align: left; padding-left: 0; }
.capacity thead th {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.capacity tbody th { font-weight: 500; }
.capacity td { color: var(--text); }
.events__table .caption {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
}

/* S9. Ryfylke --------------------------------------------------------------- */
.ryfylke__head {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 1024px) {
  .ryfylke__head { grid-template-columns: 5fr 6fr; gap: 4rem; }
}
.ryfylke__cards {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .ryfylke__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .ryfylke__cards { grid-template-columns: repeat(4, 1fr); }
}
.ryfylke__map {
  display: grid;
  gap: 2.5rem 4rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 1024px) {
  .ryfylke__map { grid-template-columns: 7fr 4fr; align-items: end; }
}
.ryfylke__travel > * + * { margin-top: 1rem; }
.ryfylke__warning {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
  color: var(--text-dim);
}

/* Map with text labels (positions from data-x / data-y via JS) */
.map { margin: 0; }
.map figcaption { margin-top: .75rem; }
.map__canvas { position: relative; }
/* Without JS: the labels are a plain list under the map */
.map__labels {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.map__label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .6rem;
  background: rgba(27,30,31,.86);
  color: var(--c-mist);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.3;
}
/* Placed by JS */
.map__labels:has(.is-placed) {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}
.map__label.is-placed {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max-content;
  max-width: 13em;
  transform: translate(-6px, -50%);
}
.map__label--left.is-placed {
  flex-direction: row-reverse;
  text-align: right;
  transform: translate(calc(-100% + 6px), -50%);
}
.map__label--region.is-placed,
.map__label--water.is-placed { transform: translate(-50%, -50%); }
.map__label--region {
  background: transparent;
  color: var(--c-basalt);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map__labels:not(:has(.is-placed)) .map__label--region {
  background: rgba(27,30,31,.86);
  color: var(--c-mist);
}
.map__label--water { font-style: italic; letter-spacing: .08em; }
.map__label--project { color: var(--c-mist); }
.map__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-copper-lt);
  box-shadow: 0 0 0 3px rgba(217,154,108,.3);
}
@media (max-width: 599.98px) {
  .map__label { font-size: .68rem; padding: .25rem .45rem; }
  .map__label.is-placed { max-width: 11em; }
  /* Bodoni may not go below 22px, so the region name switches to Geologica here */
  .map__label--region {
    font-family: var(--ff-text);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .28em;
  }
}

/* S10. Gallery: round plates ------------------------------------------------ */
.plates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) {
  .plates { grid-template-columns: repeat(4, 1fr); }
}
.plates__item { text-align: center; }
.plate {
  display: block;
  transition: box-shadow var(--t-med) var(--ease);
}
.plate img { transition: transform var(--t-med) var(--ease); }
.plate:hover,
.plate:focus-visible { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--c-copper); }
.plate[aria-current="true"] { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--c-copper-ink); }
.plate:focus-visible { outline-offset: 8px; }
.plates__caption {
  margin-top: .9rem;
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.gallery__disclaimer { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }

/* S11. FAQ ------------------------------------------------------------------ */
.faq__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 4fr 7fr; align-items: start; }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq__intro .lead { margin-top: 1.5rem; }
.faq__list { border-top: 1px solid var(--c-copper); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { font-size: inherit; }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 64px;
  padding: 1.1rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--ff-display);
  font-size: clamp(1.375rem, 1.9vw, 1.6rem);
  line-height: 1.2;
  text-align: left;
}
.faq__q button::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: translateY(-4px) rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}
.faq__q button[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.faq__q button:hover { color: var(--accent); }
.faq__a { padding: 0 2.5rem 1.5rem 0; max-width: 64ch; color: var(--text-dim); }

/* S12. Interest list band --------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 52vw, 620px);
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--c-basalt);
  color: var(--c-mist);
}
.cta-band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(27,30,31,.9) 0%, rgba(27,30,31,.72) 45%, rgba(27,30,31,.3) 100%),
    linear-gradient(to top, rgba(27,30,31,.6), rgba(27,30,31,0) 60%);
}
.cta-band__content > * { max-width: 34rem; }
.cta-band__content h2 { max-width: 16ch; }
.cta-band__text { margin: 1.25rem 0 1.75rem; font-size: 1.1rem; }
.cta-band .eyebrow { color: var(--c-copper-lt); }

/* Contact page + form ------------------------------------------------------- */
.page-head__lead { margin-top: 1.5rem; max-width: 60ch; }
.contact__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 7fr 4fr; align-items: start; }
}
.form { max-width: 40rem; }
.field + .field { margin-top: 1.5rem; }
.field__label {
  display: block;
  margin-bottom: .45rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .04em;
}
.field__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .75rem .9rem;
  border: 1px solid rgba(27,30,31,.55); /* 3.9:1 on mist */
  border-radius: 0;
  background: #F8F9F8;
  color: var(--c-basalt);
  font: inherit;
  font-weight: 400;
}
.field__input:hover { border-color: var(--c-basalt); }
.field__input:focus-visible { outline: 2px solid var(--c-copper-ink); outline-offset: 2px; border-color: var(--c-copper-ink); }
.field__select {
  appearance: none;
  padding-right: 2.75rem;
  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 d='M1 1l5 5 5-5' fill='none' stroke='%238A5231' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .9rem;
  align-items: start;
  font-size: var(--fs-small);
}
.field__check {
  width: 22px;
  height: 22px;
  margin: .1rem 0 0;
  accent-color: var(--c-copper-ink);
}
.field--check .field__error { grid-column: 2; }
.form__how {
  margin-top: 1.75rem;
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.form__submit { margin-top: 1.25rem; }
.form__status {
  padding: .9rem 1rem;
  border-left: 1px solid var(--c-copper);
  background: var(--c-fog);
}
.form__noscript,
.form__direct { margin-top: 1.25rem; }
.form__small {
  margin-top: .75rem;
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.contact__title {
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.contact__title + * { margin-top: 0; }
.contact__list { margin: 0 0 2.5rem; padding: 0; list-style: none; }
.contact__list li { padding-block: .6rem; border-bottom: 1px solid var(--line); }
.contact__list a { overflow-wrap: anywhere; }
.contact__label {
  display: block;
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.contact__aside p + p { margin-top: 1rem; }
.contact__note { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--text-dim); }

/* 12. Legal pages, contact, 404 ............................................ */

.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--c-fog);
  border-bottom: 1px solid var(--line);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grain) repeat;
  background-size: 400px 400px;
  opacity: .03;
}
.page-head__title {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
}
.page-head__meta {
  margin-top: 1.25rem;
  font-size: var(--fs-caption);
  color: var(--text-dim);
}

.page-head--404 {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  border-bottom: 0;
}
.page-head--404 .page-head__lead { margin-top: 1.5rem; }
.page-head__text { margin-top: 1rem; max-width: 52ch; color: var(--text-dim); }
.page-head__actions { margin-top: 2rem; }

.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.breadcrumbs li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: .6rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--c-copper);
}
.breadcrumbs a { color: var(--accent); }

.legal { padding-block: clamp(3rem, 6vw, 5.5rem); }
.legal__body { max-width: 68ch; }
.legal__body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-top: 2.4em;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin-top: 1.8em; }
.legal__body li::marker { color: var(--c-copper-ink); }
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.legal__body th,
.legal__body td {
  padding: .7rem .75rem .7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal__body th { font-weight: 500; }
.legal__body .lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: var(--text); }
.legal__body .lead + h2 { margin-top: 2em; }
.legal__address {
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--c-copper);
  background: var(--c-fog);
  font-variant-numeric: tabular-nums;
}
.legal__table { overflow-x: auto; }
.legal__body th[scope="row"] { width: 34%; padding-right: 1.25rem; }
.legal__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  padding: .1em .35em;
  background: var(--c-fog);
  overflow-wrap: anywhere;
}
.legal__body a { overflow-wrap: anywhere; }

/* 12a. JS-built elements (stage 6) ......................................... */

[hidden] { display: none !important; }

.js-sentinel {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}
.js-sentinel--header { top: 80px; }
.js-sentinel--top { top: 100vh; }

.site-footer__toggle:disabled { cursor: default; color: inherit; }

/* Hero pause */
.hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero__pause-icon {
  position: relative;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.hero__pause[aria-pressed="true"] .hero__pause-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
.hero__pause:hover { border-color: var(--c-copper-lt); }

/* Lightbox: full frame, never cropped to a circle */
.lightbox {
  --focus: var(--c-copper-lt);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(3.5rem, 7vh, 5rem) clamp(1rem, 6vw, 5.5rem) 1.25rem;
  background: rgba(27,30,31,.96);
  color: var(--c-mist);
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  touch-action: pan-y;
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-height: 100%;
  margin: 0;
}
.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  max-height: calc(100svh - 12rem);
  object-fit: contain;
  border-radius: 0;
  border-bottom: 1px solid var(--c-copper-lt);
  user-select: none;
}
.lightbox__caption {
  max-width: 62ch;
  text-align: center;
  color: var(--c-mist-dim);
}
.lightbox__counter {
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--c-mist-dim);
  font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--c-copper-lt);
  border-radius: 50%;
  background: rgba(27,30,31,.6);
  color: var(--c-mist);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lightbox__btn:hover { background: var(--c-copper-lt); color: var(--c-basalt); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev,
.lightbox__next { top: 50%; margin-top: -24px; }
.lightbox__prev { left: .75rem; }
.lightbox__next { right: .75rem; }
@media (max-width: 767.98px) {
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: .75rem; margin-top: 0; }
}

/* Back to top: the same circle as plates and timeline markers */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--c-copper);
  border-radius: 50%;
  background: var(--c-basalt);
  color: var(--c-mist);
  transition: background-color var(--t-fast) var(--ease);
}
.back-to-top:hover { background: var(--c-copper-ink); }
.back-to-top:focus-visible { outline-color: var(--c-copper-ink); }
.back-to-top__arrow {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}


/* Form messages */
.field__error {
  margin-top: .4rem;
  font-size: var(--fs-small);
  font-weight: 400;
  color: #9A3B1F; /* 6.13 mist · 5.35 fog */
}
.form__status {
  margin-top: 1rem;
  font-size: var(--fs-small);
}
.form__status:empty { display: none; }
[aria-invalid="true"] { border-color: #9A3B1F; }

/* 13. 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;
  }
  .card:hover .card__caption,
  .card:focus-within .card__caption { transform: none; }
  /* Hero crossfade, floating room preview and timeline highlighting
     are switched off per component (stages 4 and 6). */
}
