/* Tauvik Sunnmøre Resort & Casino — style.css
   Design system “Hemp & Indigo” (stage 2).
   1 Fonts · 2 Tokens · 3 Surfaces · 4 Base · 5 Type · 6 Layout · 7 Texture
   8 Thread & knots · 9 Buttons · 10 Chips · 11 Frames · 12 Woven cards · 13 Utilities
   14 Header & nav panel (stage 3) · 15 Footer (stage 3) · 16 Sections (stages 4–5)
   17 Legal pages (stage 9) · 18 Reduced motion */

/* ==========================================================================
   1. Fonts — self-hosted, see fonts/OFL.txt
   ========================================================================== */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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: "Lora";
  src: url("../fonts/lora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}
/* True italic for captions and disclaimers (Latin only: they are always English) */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  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: "Lora";
  src: url("../fonts/lora-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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: "Lora";
  src: url("../fonts/lora-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Metric-matched fallbacks: system fonts scaled to the width of the web fonts
   (measured with canvas.measureText on the site's own text), so the swap does
   not re-wrap lines and shift the bottom-aligned hero (CLS). */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 103.7%;
}
@font-face {
  font-family: "Lora Fallback";
  src: local("Georgia");
  size-adjust: 105.7%;
}
@font-face {
  font-family: "Lora Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 100.4%;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
  /* Palette (brief §2.1) */
  --c-hemp: #EFE6D8;           /* main background */
  --c-flax: #E2D6C2;           /* alternating sections */
  --c-flax-2: #CDBFA6;         /* cards, lines on light */
  --c-indigo: #1E2A4A;         /* dark sections, body text on light */
  --c-indigo-2: #2A3760;       /* cards on dark */
  --c-indigo-dim: rgba(30, 42, 74, .68);
  --c-madder: #A33E35;         /* main accent, links, focus */
  --c-madder-lt: #CC6B5E;      /* accent on dark: focus, knots, lines */
  --c-rope: #B99B6B;           /* thread, secondary lines, icons */
  --c-sea: #6E7E86;            /* grey sea: decorative only on dark */
  --c-line: rgba(30, 42, 74, .14);
  --c-line-dark: rgba(239, 230, 216, .16);

  /* Text-safe variants (contrast ≥ 4.5:1, see stage 2 report) */
  --c-indigo-dim-flax: rgba(30, 42, 74, .74);  /* 5.02:1 on flax */
  --c-madder-dk: #97392F;                       /* 4.97:1 on flax */
  --c-madder-txt-dark: #D98073;                 /* 4.91:1 on indigo */
  --c-madder-txt-card: #E3958A;                 /* 4.92:1 on indigo-2 */
  --c-sea-lt: #9AA7AD;                          /* 5.73:1 on indigo, 4.69:1 on indigo-2 */

  /* Type */
  --ff-head: "Space Grotesk", "Space Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Lora", "Lora Fallback", Georgia, "Times New Roman", serif;
  --fs-h1: clamp(2.8rem, 6.6vw, 6rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 2.1vw, 1.7rem);
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-lead: clamp(1.1rem, 1.35vw, 1.3rem);
  --fs-small: .875rem;
  --fs-caption: .85rem;
  --fs-eyebrow: .72rem;

  /* Space & layout */
  --container: 1300px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --measure: 60ch;
  --header-h: 4.5rem;
  --radius-btn: 2px;

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

  /* Graphics: knot used by eyebrows and chips (mask), grain tile */
  --knot-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1c0 1.9 3.4 2.3 3.4 4.2s-6.8 2.7-6.8 4.6 6.8 1.9 6.8 0-6.8-2.7-6.8-4.6S6 2.9 6 1' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --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 type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. Surfaces — sections swap these variables
   ========================================================================== */
:root,
.section--hemp {
  --bg: var(--c-hemp);
  --text: var(--c-indigo);
  --text-dim: var(--c-indigo-dim);
  --accent: var(--c-madder);
  --accent-deco: var(--c-madder);
  --line: var(--c-line);
  --frame-line: var(--c-flax-2);
  --card: var(--c-flax);
  --weave: rgba(30, 42, 74, .03);
  --btn-bg: var(--c-indigo);
  --btn-text: var(--c-hemp);
}

.section--flax {
  --bg: var(--c-flax);
  --text: var(--c-indigo);
  --text-dim: var(--c-indigo-dim-flax);
  --accent: var(--c-madder-dk);
  --accent-deco: var(--c-madder);
  --line: var(--c-line);
  --frame-line: var(--c-flax-2);
  --card: var(--c-hemp);
  --weave: rgba(30, 42, 74, .035);
  --btn-bg: var(--c-indigo);
  --btn-text: var(--c-hemp);
}

.section--indigo,
.site-footer {
  --bg: var(--c-indigo);
  --text: var(--c-hemp);
  --text-dim: var(--c-sea-lt);
  --accent: var(--c-madder-txt-dark);
  --accent-deco: var(--c-madder-lt);
  --line: var(--c-line-dark);
  --frame-line: rgba(205, 191, 166, .38);
  --card: var(--c-indigo-2);
  --weave: rgba(239, 230, 216, .045);
  --btn-bg: var(--c-hemp);
  --btn-text: var(--c-indigo);
}

/* Cards and tables on light surfaces sit on a contrasting tint (flax on hemp, hemp on flax):
   use the text colours that pass on both */
.card,
.table-wrap {
  --text-dim: var(--c-indigo-dim-flax);
  --accent: var(--c-madder-dk);
}

/* Cards on dark sit on indigo-2: lift the accent once more */
.section--indigo .card,
.site-footer .card {
  --text-dim: var(--c-sea-lt);
  --accent: var(--c-madder-txt-card);
}

/* ==========================================================================
   4. 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-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: var(--c-madder);
  color: var(--c-hemp);
}

:focus {
  outline: none;
}

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7rem 1.1rem;
  background: var(--c-indigo);
  color: var(--c-hemp);
  font-family: var(--ff-head);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform var(--t-fast) var(--ease);
}

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

/* ==========================================================================
   5. Type
   ========================================================================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  font-family: var(--ff-head);
  font-weight: 500;
  letter-spacing: -.02em;
  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; }
h4 { font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }

h1 strong,
h2 strong,
h3 strong {
  font-weight: 700;
}

p,
ul,
ol,
dl,
blockquote,
table {
  margin: 0 0 1.25em;
}

p {
  text-wrap: pretty;
}

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.1rem;
  font-family: var(--ff-head);
  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(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
}

.caption,
figcaption {
  margin-top: .7rem;
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-dim);
}

.num {
  font-family: var(--ff-head);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ==========================================================================
   6. Layout — container, sections, grid
   Breakpoints: 480 / 768 / 1024 / 1200 / 1440
   ========================================================================== */
.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--tight {
  padding-block: calc(var(--section-y) * .6);
}

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

.prose > :last-child {
  margin-bottom: 0;
}

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

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

.grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.stack > * + * {
  margin-top: var(--gap);
}

@media (min-width: 768px) {
  .md-span-6 { grid-column: auto / span 6; }
}

@media (min-width: 1024px) {
  .lg-span-4 { grid-column: auto / span 4; }
  .lg-span-5 { grid-column: auto / span 5; }
  .lg-span-6 { grid-column: auto / span 6; }
  .lg-span-7 { grid-column: auto / span 7; }
  .lg-span-8 { grid-column: auto / span 8; }
  .lg-start-7 { grid-column-start: 7; }
  .lg-start-8 { grid-column-start: 8; }
}

/* ==========================================================================
   7. Texture — woven cloth + grain, always on pseudo-elements
   ========================================================================== */
.section::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 3px),
    var(--grain);
  background-size: auto, auto, 400px 400px;
}

/* ==========================================================================
   8. Thread & knots — inline SVG in markup, styled here, never animated
   ========================================================================== */
.thread {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--c-rope);
  pointer-events: none;
}

.thread path,
.knot-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.thread .thread__knot,
.knot-divider .knot-divider__knot {
  stroke: var(--accent-deco);
}

/* Divider: rope line on both sides, the logo knot in the middle */
.knot-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--c-rope);
  pointer-events: none;
}

.knot-divider::before,
.knot-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
}

.knot-divider svg {
  flex: none;
  width: 64px;
  height: 24px;
  overflow: visible;
}

/* ==========================================================================
   9. Buttons — the thread pulls through on hover
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--ff-head);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 0;
  height: 1px;
  background: var(--c-madder);
  transition: width var(--t-med) var(--ease);
}

.btn:hover::after,
.btn:focus-visible::after {
  width: 100%;
}

.btn:hover {
  text-decoration: none;
}

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

.btn--secondary::after {
  background: var(--accent-deco);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25em;
}

/* ==========================================================================
   10. Chips — Planned · Subject to licensing · 18+ · Made here
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .3em .7em .3em .55em;
  border: 1px solid currentColor;
  border-radius: var(--radius-btn);
  font-family: var(--ff-head);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  vertical-align: middle;
}

.chip::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--accent-deco);
  -webkit-mask: var(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
}

.chip--age {
  letter-spacing: .06em;
}

/* ==========================================================================
   11. Image frames — square, 1px line, madder ticks in two corners
   ========================================================================== */
.frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--frame-line);
  border-radius: 0;
}

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

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-deco);
  border-left: 2px solid var(--accent-deco);
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent-deco);
  border-bottom: 2px solid var(--accent-deco);
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-3x2  { aspect-ratio: 3 / 2; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-3x4  { aspect-ratio: 3 / 4; }
.ratio-1x1  { aspect-ratio: 1 / 1; }

/* ==========================================================================
   12. Cards — woven corners, thread tightens along the bottom on hover
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  background-image: linear-gradient(var(--accent-deco), var(--accent-deco));
  background-position: left bottom;
  background-size: 0 2px;
  background-repeat: no-repeat;
  color: var(--text);
  transition: background-size var(--t-med) var(--ease);
}

.card:hover,
.card:focus-within {
  background-size: 100% 2px;
}

.card__body {
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.card__title {
  transition: transform var(--t-fast) var(--ease);
}

.card:hover .card__title,
.card:focus-within .card__title {
  transform: translateX(2px);
}

/* Two short strips that cross at opposite corners: rope passes under, accent over */
.woven::before,
.woven::after {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  background-repeat: no-repeat;
}

.woven::before {
  z-index: 1;
  background-image:
    linear-gradient(var(--c-rope), var(--c-rope)),
    linear-gradient(var(--c-rope), var(--c-rope));
  background-size: 56px 2px, 56px 2px;
  background-position: left 0 top 22px, right 0 bottom 22px;
}

.woven::after {
  z-index: 2;
  background-image:
    linear-gradient(90deg, var(--bg) 0 2px, var(--accent-deco) 2px 4px, var(--bg) 4px 6px),
    linear-gradient(90deg, var(--bg) 0 2px, var(--accent-deco) 2px 4px, var(--bg) 4px 6px);
  background-size: 6px 56px, 6px 56px;
  background-position: left 20px top 0, right 20px bottom 0;
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

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

/* ==========================================================================
   14. Header & nav panel
   Contract: .site-header.is-scrolled · .nav-panel.is-open ·
   aria-expanded on .nav-toggle · html.is-scroll-locked · .site-nav__link.is-active
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(239, 230, 216, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--c-indigo);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

/* Thread along the lower edge once the header is solid */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-rope);
  transition: opacity var(--t-med) var(--ease);
}

/* Home with JS: transparent over the hero until .is-scrolled */
.page--home .site-header {
  margin-bottom: calc(var(--header-h) * -1);
}

.js .page--home .site-header:not(.is-scrolled) {
  background: linear-gradient(rgba(30, 42, 74, .72), rgba(30, 42, 74, 0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--c-hemp);
}

.js .page--home .site-header:not(.is-scrolled)::after {
  opacity: 0;
}

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

.site-header a:not(.btn) {
  color: inherit;
  text-decoration: none;
}

.site-header :focus-visible {
  outline-color: currentColor;
}

/* Logo: monogram T with the figure-eight + wordmark */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
}

.site-logo__mark {
  flex: none;
  width: 22px;
  height: 28px;
}

.site-logo__t {
  fill: currentColor;
}

.site-logo__knot {
  fill: none;
  stroke: var(--c-madder);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section--indigo .site-logo__knot,
.site-footer .site-logo__knot,
.js .page--home .site-header:not(.is-scrolled) .site-logo__knot {
  stroke: var(--c-madder-lt);
}

.site-logo__word {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
}

/* Desktop menu (≥ 1200px) */
.site-nav {
  display: none;
  margin-left: auto;
}

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

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding-block: .5rem;
  font-family: var(--ff-head);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Active item: a small knot before the text */
.site-nav__link::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: -16px;
  background: var(--c-madder);
  opacity: 0;
  -webkit-mask: var(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
  transition: opacity var(--t-fast) var(--ease);
}

.js .page--home .site-header:not(.is-scrolled) .site-nav__link::before {
  background: var(--c-madder-lt);
}

.site-nav__link.is-active::before,
.site-nav__link[aria-current]::before {
  opacity: 1;
}

.site-nav__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--c-rope);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}

.site-header__cta {
  display: none;
}

.js .page--home .site-header:not(.is-scrolled) .site-header__cta {
  --btn-bg: var(--c-hemp);
  --btn-text: var(--c-indigo);
}

/* Burger (< 1200px) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-left: auto;
  padding: .5rem .25rem .5rem .75rem;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-toggle__lines {
  position: relative;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle__lines::before {
  top: -7px;
  width: 24px;
}

.nav-toggle__lines::after {
  top: 7px;
  width: 15px;
}

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

  .site-header__cta {
    display: inline-flex;
    min-height: 2.6rem;
    padding: .6rem 1.15rem;
    font-size: .88rem;
  }

  .nav-toggle {
    display: none;
  }
}

/* Without JS: no burger, the menu becomes a scrollable second row */
html:not(.js) .nav-toggle {
  display: none;
}

@media (max-width: 1199.98px) {
  html:not(.js) .site-header {
    height: auto;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: .9rem .4rem;
  }

  html:not(.js) .site-nav {
    display: block;
    flex-basis: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
}

/* Bottom sheet menu: slides up from the bottom, full height */
html.is-scroll-locked {
  overflow: hidden;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(14, 20, 36, .55);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.nav-backdrop.is-open {
  opacity: 1;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(100%, 34rem);
  height: 100vh;
  height: 100dvh;
  padding: 0 var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  transform: translateY(100%);
  transition: transform var(--t-med) var(--ease);
}

.nav-panel.is-open {
  transform: none;
}

.nav-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: var(--header-h);
}

.nav-panel__close {
  min-height: 44px;
  padding: .5rem 0 .5rem .75rem;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-panel__nav {
  position: relative;
  flex: 1 0 auto;
  padding-block: 1.5rem;
}

.nav-panel__thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 100%;
}

.nav-panel__list {
  margin: 0;
  padding: 0 0 0 3rem;
  list-style: none;
}

.nav-panel__link {
  position: relative;
  display: block;
  padding-block: .35rem;
  color: var(--text);
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-decoration: none;
}

/* The thread ties a knot beside the active item */
.nav-panel__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-3rem + 2px);
  width: 20px;
  height: 20px;
  background: var(--accent-deco);
  opacity: 0;
  transform: translateY(-50%);
  -webkit-mask: var(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
}

.nav-panel__link.is-active::before,
.nav-panel__link[aria-current]::before {
  opacity: 1;
}

.nav-panel__link:hover,
.nav-panel__link.is-active {
  color: var(--accent);
}

.nav-panel__foot {
  flex: none;
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.nav-panel__foot .btn {
  width: 100%;
}

.nav-panel__foot p {
  margin: 0;
}

@media (min-width: 1200px) {
  .nav-panel,
  .nav-backdrop {
    display: none !important;
  }
}

/* ==========================================================================
   15. Footer — indigo; four columns / two / accordion on phones
   Contract: aria-expanded on .site-footer__toggle
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  padding-bottom: 2.5rem;
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  line-height: 1.65;
}

.site-footer > .knot-divider {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.site-footer a:not(.btn) {
  color: var(--text);
  text-decoration-color: var(--line);
}

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

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer__col--brand {
  padding-bottom: 1.5rem;
}

.site-footer__col--brand .site-logo {
  margin-bottom: 1.25rem;
}

.site-footer__pitch {
  max-width: 34ch;
  font-size: 1.05rem;
}

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

.site-footer__title {
  margin: 0;
  font-size: var(--fs-eyebrow);
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: .9rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--accent);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

/* Small knot that tightens when the section is open */
.site-footer__toggle::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--c-rope);
  -webkit-mask: var(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
  transform: rotate(90deg);
  transition: transform var(--t-fast) var(--ease);
}

.site-footer__toggle[aria-expanded="true"]::after {
  transform: none;
}

.site-footer__panel {
  padding-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .site-footer__title:has(> .site-footer__toggle[aria-expanded="false"]) + .site-footer__panel {
    display: none;
  }
}

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

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

.site-footer__mail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem 1rem;
  margin: 0;
}

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

.site-footer__mail dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.site-footer__bottom p {
  margin: 0;
}

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

.site-footer__play .chip {
  margin-top: .1rem;
}

.site-footer__knots {
  font-style: italic;
}

.footer__owner {
  font-family: var(--ff-body);
}

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

  .site-footer__col--brand {
    padding-bottom: 0;
  }

  .site-footer__toggle {
    min-height: 0;
    padding: 0 0 1rem;
    border-top: 0;
    pointer-events: none;
    cursor: default;
  }

  .site-footer__toggle::after {
    display: none;
  }

  .site-footer__panel {
    padding-bottom: 0;
  }
}

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

  .site-footer__bottom {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gap);
  }

  .site-footer__play {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   16. Sections
   ========================================================================== */

/* Seam: the thread ties a knot where two sections meet */
.section__seam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}

figure {
  margin: 0;
}

/* ---------- S1 Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--c-indigo);
  color: var(--text);
}

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

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}

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

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

/* Indigo shade: strong at the bottom and along the left, where the text sits;
   the right of the frame stays light. Measured: text ≥ 4.5:1, H1 ≥ 3:1 on all three frames */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 42, 74, .86) 0%, rgba(30, 42, 74, .76) 40%, rgba(30, 42, 74, .4) 62%, rgba(30, 42, 74, 0) 82%),
    linear-gradient(to top, rgba(30, 42, 74, .94) 0%, rgba(30, 42, 74, .78) 32%, rgba(30, 42, 74, .2) 62%, rgba(30, 42, 74, 0) 75%),
    linear-gradient(to bottom, rgba(30, 42, 74, .45), rgba(30, 42, 74, 0) 22%);
}

.hero__content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(1.75rem, 5vh, 3.5rem);
}

.hero__text {
  max-width: 58rem;
}

.hero h1 {
  margin-bottom: .35em;
  font-size: clamp(2.3rem, 6.6vw, 5.25rem);
}

.hero__lead {
  max-width: 44rem;
  margin-bottom: 0;
}

.hero .disclaimer {
  margin: 0;
}

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

.hero .eyebrow::before {
  background: var(--c-madder-lt);
}

/* Thread enters from the left edge and ties itself next to the buttons */
.hero__thread {
  position: relative;
  width: min(100%, 30rem);
  margin: .75rem 0 .5rem;
}

.hero__thread::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 100vw;
  height: 2px;
  margin-top: -1px;
  background: var(--c-rope);
}

.hero__thread svg {
  width: 100%;
  height: auto;
}

.hero .btn-row {
  margin-bottom: 1rem;
}

.hero__controls {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: clamp(1.75rem, 5vh, 3.5rem);
}

/* Phones: H1, buttons and the disclaimer must fit the first screen at 390×664 */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.6rem);
  }

  .hero .eyebrow {
    margin-bottom: .7rem;
    font-size: .66rem;
    letter-spacing: .16em;
  }

  .hero__lead {
    font-size: .98rem;
    line-height: 1.55;
  }

  .hero__thread {
    margin: .4rem 0 .25rem;
  }

  .hero .btn-row {
    gap: .5rem;
    margin-bottom: .7rem;
  }

  .hero .btn {
    min-height: 2.75rem;
    padding: .7rem .95rem;
    font-size: .88rem;
  }

  .hero__content {
    padding-bottom: 1.25rem;
  }

  /* Portrait frames put peaks and sky behind the text: shade higher up */
  .hero__media::after {
    background:
      linear-gradient(to top, rgba(30, 42, 74, .95) 0%, rgba(30, 42, 74, .87) 45%, rgba(30, 42, 74, .78) 72%, rgba(30, 42, 74, .45) 88%, rgba(30, 42, 74, .2) 100%),
      linear-gradient(to bottom, rgba(30, 42, 74, .5), rgba(30, 42, 74, 0) 18%);
  }
}

@media (max-width: 379.98px) {
  .hero .btn {
    padding-inline: .7rem;
    font-size: .82rem;
  }

  .hero__lead {
    font-size: .94rem;
  }
}

/* ---------- S2 The idea ---------- */
.idea__top {
  align-items: start;
}

.idea__detail {
  margin-top: clamp(0rem, 6vw, 5rem);
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--c-rope);
}

.stat__num {
  font-size: var(--fs-h2);
  line-height: 1;
}

.stat__label {
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--text-dim);
}

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

/* ---------- S3 The Ropewalk ---------- */
.ropewalk__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

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

/* 4:5 · 4:5 · 4:3 — the wider third column keeps all three the same height */
@media (min-width: 768px) {
  .ropewalk__row {
    grid-template-columns: 1fr 1fr 1.667fr;
  }

  .ropewalk__row figure:last-child {
    grid-column: auto;
  }
}

.ropewalk__lead {
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

/* Length strip: a list without JS, a 0–180 m rail with knots with JS.
   Contract: --pos (0…1, share of 180 m) on .length; aria-current on the active mark */
.length {
  --pos: 0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.length__rail,
.length__controls,
.length__pin {
  display: none;
}

.length__list {
  display: grid;
  gap: 1.5rem;
  border-left: 2px solid var(--c-rope);
  padding-left: 1.5rem;
}

.length__at {
  display: block;
  font-size: .8rem;
  color: var(--accent);
}

.length__name {
  margin: .15rem 0 .35rem;
  font-size: var(--fs-h3);
}

.length__body p {
  margin: 0;
  max-width: 46ch;
}

.js .length {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "rail rail"
    "body controls";
  gap: 1.5rem 1rem;
  align-items: end;
}

.js .length__rail {
  grid-area: rail;
  position: relative;
  display: block;
  height: 4.5rem;
}

.js .length__scale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--c-line-dark);
  padding-top: .5rem;
  font-family: var(--ff-head);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.length__tick {
  position: relative;
  width: 0;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}

.length__tick::before {
  content: "";
  position: absolute;
  top: calc(-.5rem - 8px);
  left: 0;
  width: 1px;
  height: 8px;
  background: var(--c-line-dark);
}

.length__tick:first-child {
  justify-content: flex-start;
}

.length__tick:last-child {
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .length__tick:nth-child(even) {
    visibility: hidden;
  }
}

/* The rope pulled out to the current point */
.length__fill {
  position: absolute;
  left: 0;
  bottom: calc(1.6rem - 1px);
  width: calc(var(--pos) * 100%);
  height: 2px;
  background: var(--c-rope);
  transition: width var(--t-med) var(--ease);
}

.js .length__list {
  grid-area: body;
  display: block;
  position: static;
  padding: 0;
  border: 0;
  min-height: 7.5rem;
}

.js .length__mark {
  display: contents;
}

.js .length__mark:not([aria-current]) .length__body {
  display: none;
}

/* Knots on the rope: positioned by JS through --at (0…100%) */
.js .length__pin {
  position: absolute;
  display: block;
  left: var(--at, 0%);
  top: calc(var(--pin-top) - 9px);
  width: 18px;
  height: 18px;
  margin-left: -9px;
  background: var(--c-rope);
  -webkit-mask: var(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.js .length {
  position: relative;
  --pin-top: calc(4.5rem - 1.6rem);
}

.js .length__mark[aria-current] .length__pin {
  background: var(--accent-deco);
  transform: scale(1.35);
}

.js .length__controls {
  grid-area: controls;
  display: flex;
  gap: .5rem;
}

.js .length__controls[hidden] {
  display: none;
}

.length__prev,
.length__next,
.strip__prev,
.strip__next {
  width: 3rem;
  height: 3rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text);
  font-family: var(--ff-head);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

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

.length__prev[disabled],
.length__next[disabled],
.strip__prev[disabled],
.strip__next[disabled] {
  opacity: .35;
  cursor: default;
}

/* ---------- S4 The Knot Room ---------- */
.knotroom__body {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.knotroom__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.points {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.point {
  padding-left: 1.25rem;
  border-left: 2px solid var(--c-rope);
}

.point__title {
  margin-bottom: .3rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

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

.knots-row__title {
  margin: clamp(3rem, 6vw, 5rem) 0 1.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.knots-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
  padding-block: 2rem;
  border-block: 1px solid var(--line);
}

.knot-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.knot-glyph svg {
  width: 64px;
  height: 64px;
  color: var(--c-rope);
}

.knot-glyph path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.knot-glyph__name {
  font-family: var(--ff-head);
  font-size: .85rem;
  font-weight: 500;
}

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

.knotroom__note {
  margin: 1.5rem 0 0;
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--text-dim);
}

/* ---------- S5 Rooms: knot navigation ----------
   Contract: aria-selected on .knot (role="tab"), hidden on panels */
.rooms__layout {
  display: grid;
  gap: 2rem;
}

.knots {
  position: relative;
  display: none;
}

.js .knots {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: .25rem 0 .75rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.js .knots::-webkit-scrollbar {
  display: none;
}

.knots__thread {
  position: absolute;
  pointer-events: none;
}

.knots__thread--v {
  display: none;
}

.knots__thread--h {
  left: 0;
  top: 0;
  width: max(100%, 60rem);
  height: 24px;
}

.knot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
}

.knot__mark {
  width: 24px;
  height: 24px;
  overflow: visible;
  background: var(--bg);
  border-radius: 50%;
}

.knot__mark path {
  fill: none;
  stroke: var(--c-rope);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.knot__tight {
  display: none;
}

.knot[aria-selected="true"] {
  color: var(--accent);
}

.knot[aria-selected="true"] .knot__loose {
  display: none;
}

.knot[aria-selected="true"] .knot__tight {
  display: inline;
  stroke: var(--accent-deco);
}

.knot:hover .knot__label {
  text-decoration: underline;
  text-decoration-color: var(--c-rope);
  text-underline-offset: .3em;
}

@media (min-width: 1024px) {
  .js .rooms__layout {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .js .knots {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    flex-direction: column;
    gap: 2.25rem;
    margin: 0;
    padding: 1rem 0;
    overflow: visible;
  }

  .knots__thread--h {
    display: none;
  }

  .knots__thread--v {
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    height: 100%;
  }

  .knot {
    flex-direction: row;
    gap: 1rem;
    font-size: 1rem;
  }
}

.room {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-content: start;
}

.room + .room {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.js .room + .room {
  margin-top: 0;
}

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

.room__name {
  margin-bottom: .75rem;
}

.room__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

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

.room__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}

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

.thumb img {
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}

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

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

/* ---------- S6 Dining ---------- */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

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

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split__media--narrow {
    max-width: 30rem;
    justify-self: center;
    width: 100%;
  }

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

.dishes {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gap) + 10px);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

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

.dish {
  height: 100%;
}

.dish .card__body {
  margin: 0;
  padding-block: 1rem 1.25rem;
  font-style: normal;
}

.dish__name {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- S7 Gaming lounge ---------- */
.casino__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em .6em;
}

.casino__title .chip {
  font-size: .72rem;
  letter-spacing: .14em;
}

.casino__body {
  margin-block: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.rules {
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.rules__title {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.rules__list {
  display: grid;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.rules__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

/* Strips (gaming lounge, spa on phones). Contract: disabled on .strip__prev / .strip__next */
.strip {
  position: relative;
}

.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 20rem);
  gap: calc(var(--gap) + 10px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-rope) transparent;
  margin-inline: calc(var(--gutter) * -1);
  padding: 12px var(--gutter) 1.25rem;
  scroll-padding-inline: var(--gutter);
}

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

.strip__item .card {
  height: 100%;
}

.strip__item .card p {
  margin: 0;
  color: var(--text-dim);
}

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

.strip__controls[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .strip__track {
    grid-auto-columns: calc((100% - 3 * (var(--gap) + 10px)) / 4);
  }
}

/* ---------- S8 Spa ---------- */
.spa__top {
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rhythm {
  display: grid;
  gap: 0;
  margin-top: .5rem;
  border-left: 2px solid var(--c-rope);
}

.rhythm__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0 1.5rem;
  margin-left: -13px;
}

.rhythm__knot {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: .2rem;
  background: var(--bg);
}

.rhythm__knot path {
  fill: none;
  stroke: var(--accent-deco);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rhythm__name {
  margin: 0 0 .2rem;
  font-size: var(--fs-h3);
}

.rhythm__step p {
  margin: 0;
  color: var(--text-dim);
}

.spa__safety {
  margin: .5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  color: var(--text-dim);
}

/* Phones: a strip; from 768px a 2×2 grid */
@media (min-width: 768px) {
  .strip--spa .strip__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .strip--spa .strip__controls {
    display: none;
  }
}

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

/* ---------- S9 Gatherings ---------- */
.events__top {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.events__cards,
.island__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gap) + 10px);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

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

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

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

.events__cards .card,
.island__cards .card {
  height: 100%;
}

.events__cards .card p,
.island__cards .card p {
  margin: 0;
  color: var(--text-dim);
}

/* Capacity table: scrolls inside its own box on phones */
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  background: var(--card);
}

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

.capacity {
  width: 100%;
  min-width: 34rem;
  margin: 0;
  border-collapse: collapse;
  font-size: .95rem;
}

.capacity caption {
  padding: 1rem 1.25rem .5rem;
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-align: left;
  text-transform: uppercase;
  color: var(--accent);
}

.capacity caption .chip {
  margin-left: .5rem;
  letter-spacing: .14em;
}

.capacity th,
.capacity td {
  padding: .8rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.capacity thead th {
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.capacity td {
  font-family: var(--ff-head);
  font-variant-numeric: tabular-nums;
}

.events__note {
  margin: 1rem 0 0;
}

/* ---------- S10 The island ---------- */
.island__top {
  align-items: end;
}

.island__map-row {
  align-items: start;
}

.map__frame {
  position: relative;
}

/* Without JS the labels are a plain legend under the map */
.map__labels {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1rem;
  font-family: var(--ff-head);
  font-size: .85rem;
}

.map__label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.map__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-rope);
}

.map__label--project::before {
  background: var(--c-madder-lt);
  box-shadow: 0 0 0 3px rgba(204, 107, 94, .35);
}

/* With JS (stage 6) the labels sit on the map at --x / --y, set via setProperty */
.js .map {
  position: relative;
}

.js .map__labels {
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 4 / 3;
  display: block;
  margin: 0;
  pointer-events: none;
}

.js .map__label {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  max-width: 13rem;
  padding: .3rem .6rem;
  transform: translate(-6px, -50%);
  background: rgba(239, 230, 216, .92);
  color: var(--c-indigo);
  font-size: .78rem;
  line-height: 1.3;
}

.js .map__label::before {
  margin-left: -2px;
}

.getting-here {
  padding: 1.5rem;
  border: 1px solid var(--line);
}

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

/* ---------- S11 Gallery: woven grid ----------
   Contract: .weave__cell.is-raised (hover/focus), lightbox on click.
   Neighbouring columns are offset by half a card, so the grid reads as cloth. */
.gallery__intro {
  color: var(--text-dim);
}

.weave {
  --cols: 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}

.weave__cell {
  transition: transform var(--t-fast) var(--ease);
}

.weave__cell.is-raised {
  transform: translateY(-6px);
}

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

/* Offset = half a 3:4 card = 2/3 of its width; % margins resolve against the cell width */
@media (min-width: 600px) {
  .weave {
    --cols: 2;
    padding-bottom: calc((100% - var(--gap)) / 3);
  }

  .weave__cell:nth-child(2n) {
    margin-top: 66.667%;
    margin-bottom: -66.667%;
  }
}

@media (min-width: 1024px) {
  .weave {
    --cols: 4;
    padding-bottom: calc((100% - 3 * var(--gap)) / 6);
  }
}

.gallery .disclaimer {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

/* ---------- S12 FAQ ---------- */
.faq__head {
  align-self: start;
}

@media (min-width: 1024px) {
  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq__list {
  border-bottom: 1px solid var(--line);
}

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

.faq__heading {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}

/* Knot loosens when closed, tightens when open */
.faq__q::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: .25rem;
  background: var(--c-rope);
  -webkit-mask: var(--knot-mask) center / contain no-repeat;
  mask: var(--knot-mask) center / contain no-repeat;
  transform: rotate(90deg);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.faq__q[aria-expanded="true"]::after {
  transform: none;
  background: var(--accent-deco);
}

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

.faq__a {
  padding-bottom: 1.25rem;
}

.faq__a p {
  max-width: var(--measure);
  margin: 0;
  color: var(--text);
}

.faq__item:has(.faq__q[aria-expanded="false"]) .faq__a {
  display: none;
}

/* ---------- S12 CTA band ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 52vw, 40rem);
  background: var(--c-indigo);
  color: var(--text);
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 42, 74, .92) 0%, rgba(30, 42, 74, .72) 45%, rgba(30, 42, 74, .15) 80%);
}

.cta__content {
  padding-block: var(--section-y);
}

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

.cta__sub {
  font-size: var(--fs-lead);
  color: var(--text);
}

@media (max-width: 767.98px) {
  .cta__media::after {
    background: rgba(30, 42, 74, .78);
  }
}

/* ---------- Inner pages: page head ---------- */
.page-head {
  padding-bottom: calc(var(--section-y) * .6);
}

.page-head h1 {
  font-size: var(--fs-h2);
}

/* ---------- Contact: interest-list form ---------- */
.contact .grid {
  align-items: start;
}

.contact__card {
  background-color: var(--c-hemp);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form__field {
  display: grid;
  gap: .4rem;
}

.form__label {
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 500;
}

.form__input {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  border: 1px solid var(--c-indigo-dim);
  border-radius: var(--radius-btn);
  background: var(--c-hemp);
  color: var(--c-indigo);
  font-family: var(--ff-body);
  font-size: 1rem;
}

.form__input:focus-visible {
  outline: 2px solid var(--c-madder);
  outline-offset: 1px;
  border-color: var(--c-indigo);
}

.form__input[aria-invalid="true"] {
  border-color: var(--c-madder);
}

.form__select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-indigo) 50%), linear-gradient(135deg, var(--c-indigo) 50%, transparent 50%);
  background-position: right 1.15rem center, right .8rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form__field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .75rem;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.form__check {
  width: 1.25rem;
  height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--c-indigo);
}

.form__error {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-madder);
}

.form__field--check .form__error {
  grid-column: 2;
}

.form__submit {
  justify-self: start;
}

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

.form__status:empty {
  display: none;
}

.form__noscript,
.form__fine {
  margin: 1.25rem 0 0;
}

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

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

.contact__mail {
  margin: 0 0 1.25rem;
}

.contact__mail dt {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.contact__mail dd {
  margin: .1rem 0 0;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   16b. Elements created by JS (stage 6)
   ========================================================================== */
.sentinel {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.sentinel--header {
  top: 80px;
}

.sentinel--top {
  top: 100vh;
}

/* Hero dots and pause */
.hero__controls {
  display: flex;
  align-items: center;
  gap: .75rem;
}

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

.hero__dot,
.hero__pause {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-hemp);
}

.hero__dot::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(239, 230, 216, .55);
  transition: background-color var(--t-fast) var(--ease), height var(--t-fast) var(--ease);
}

.hero__dot[aria-current]::before {
  height: 4px;
  margin-top: -2px;
  background: var(--c-madder-lt);
}

.hero__dot:hover::before {
  background: var(--c-hemp);
}

.hero__pause {
  border: 1px solid rgba(239, 230, 216, .55);
  border-radius: var(--radius-btn);
}

/* Pause icon: two bars; when pressed (paused) a play triangle */
.hero__pause::before,
.hero__pause::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 14px;
  margin-top: -7px;
  background: currentColor;
}

.hero__pause::before {
  left: 16px;
}

.hero__pause::after {
  left: 23px;
}

.hero__pause[aria-pressed="true"]::before {
  left: 17px;
  width: 0;
  height: 0;
  margin-top: -7px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
  background: none;
}

.hero__pause[aria-pressed="true"]::after {
  display: none;
}

@media (max-width: 767.98px) {
  .hero__controls {
    top: calc(var(--header-h) + .25rem);
    bottom: auto;
  }
}

/* Reveal below the first screen */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

/* Room panels crossfade in */
@keyframes tauvik-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.js .room:not([hidden]) {
  animation: tauvik-fade .45s var(--ease);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 4.5rem clamp(1rem, 7vw, 6rem) 2rem;
  background: rgba(14, 20, 36, .95);
  color: var(--c-hemp);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  display: grid;
  gap: .75rem;
  max-width: min(100%, 1200px);
  margin: 0;
  touch-action: pan-y;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  margin-inline: auto;
  border: 1px solid rgba(205, 191, 166, .38);
  object-fit: contain;
}

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--c-sea-lt);
}

.lightbox__count {
  flex: none;
  font-family: var(--ff-head);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(239, 230, 216, .5);
  border-radius: var(--radius-btn);
  background: rgba(30, 42, 74, .6);
  color: var(--c-hemp);
  font-family: var(--ff-head);
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--c-hemp);
  color: var(--c-indigo);
}

.lightbox :focus-visible {
  outline-color: var(--c-madder-lt);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: -1.5rem;
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

.lightbox__prev[hidden],
.lightbox__next[hidden] {
  display: none;
}

@media (max-width: 767.98px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    margin-top: 0;
  }

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

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-rope);
  border-radius: var(--radius-btn);
  background: var(--c-indigo);
  color: var(--c-hemp);
  font-family: var(--ff-head);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.back-to-top:focus-visible {
  outline-color: var(--c-madder);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
}

.notfound__thread {
  width: min(100%, 40rem);
  margin: 1rem 0 2rem;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   17. Legal pages
   ========================================================================== */
.legal__updated {
  font-family: var(--ff-head);
  font-size: var(--fs-small);
  color: var(--text-dim);
}

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

@media (min-width: 1024px) {
  .legal__layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
  }

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

.legal__toc {
  padding-left: 1.25rem;
  border-left: 2px solid var(--c-rope);
  font-family: var(--ff-head);
  font-size: .9rem;
  line-height: 1.4;
}

.legal__toc-title {
  margin-bottom: .75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.legal__toc a {
  color: var(--text);
  text-decoration-color: transparent;
}

.legal__toc a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.legal__body {
  max-width: 68ch;
}

.legal__section + .legal__section {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.legal__section h2 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.legal__section h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.legal__section ul {
  padding-left: 1.25rem;
}

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

.legal__section li::marker {
  color: var(--c-rope);
}

.legal__section > :last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  min-width: 30rem;
  margin: 0;
  border-collapse: collapse;
  font-size: .95rem;
}

.legal-table caption {
  padding: 1rem 1.25rem .5rem;
  font-family: var(--ff-head);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-align: left;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-table th,
.legal-table td {
  padding: .8rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 11rem;
  font-family: var(--ff-head);
  font-weight: 500;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .88em;
  padding: .1em .35em;
  background: var(--line);
  border-radius: 2px;
}

.legal-contacts dt {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.legal-contacts dd {
  margin: .1rem 0 0;
  overflow-wrap: anywhere;
}


/* ==========================================================================
   18. Reduced motion — no animation, no hero crossfade,
       no thread pull in buttons, no lift in the woven gallery
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn::after {
    display: none;
  }

  .hero__slide {
    transition: none !important;
  }

  .weave__cell.is-raised {
    transform: none !important;
  }

  .nav-panel,
  .nav-backdrop {
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
