/* PRPD — shared design system ("one house, two rooms").
 * Tokens + base + shared components. Division pages override the semantic
 * tokens (--bg, --fg, …) in their own stylesheet; sections can opt into the
 * dark scheme with data-theme="dark".
 */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
/* Packaging division voices (only downloaded on pages that use them) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-200-700.woff2") format("woff2"); font-weight: 200 700; font-stretch: 62% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --ivory: #f5f0e6;
  --porcelain: #fbf8f2;
  --linen: #ece4d6;
  --ink: #14171d;
  --midnight: #1b2433;
  --body: #2a2723;
  --muted-ink: #6b645a;
  --hairline: #d8cdbb;
  --gold: #b39a66;        /* decoration only on light grounds */
  --gold-text: #7e6235;   /* small gold text on light grounds */
  --champagne: #cdb98f;   /* gold on dark grounds, solid buttons */
  --claret: #4a1f22;

  /* Semantic (light scheme) */
  --bg: var(--ivory);
  --surface: var(--porcelain);
  --fg: var(--ink);
  --fg-soft: var(--body);
  --muted: var(--muted-ink);
  --line: var(--hairline);
  --accent: var(--gold);
  --accent-text: var(--gold-text);
  --btn-bg: var(--ink);
  --btn-fg: var(--porcelain);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --fs-hero: clamp(3.5rem, 1.5rem + 8.5vw, 10.5rem);
  --fs-h1: clamp(3rem, 1.4rem + 6vw, 8rem);
  --fs-h2: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --fs-lede: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --track-label: 0.22em;

  /* Space & layout */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(6rem, 12vw, 12rem);
  --max: 1440px;
  --header-h: clamp(4.5rem, 6vw, 5.75rem);

  /* Motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);   /* expo.out */
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1); /* expo.inOut */
  --dur: 0.9s;
}

[data-theme="dark"] {
  --bg: var(--ink);
  --surface: #1b1f27;
  --fg: var(--porcelain);
  --fg-soft: rgba(251, 248, 242, 0.8);
  --muted: rgba(251, 248, 242, 0.58);
  --line: rgba(205, 185, 143, 0.24);
  --accent: var(--champagne);
  --accent-text: var(--champagne);
  --btn-bg: var(--champagne);
  --btn-fg: var(--ink);
}
[data-theme="midnight"] {
  --bg: var(--midnight);
  --surface: #222d3f;
  --fg: var(--porcelain);
  --fg-soft: rgba(251, 248, 242, 0.8);
  --muted: rgba(251, 248, 242, 0.6);
  --line: rgba(205, 185, 143, 0.26);
  --accent: var(--champagne);
  --accent-text: var(--champagne);
  --btn-bg: var(--champagne);
  --btn-fg: var(--ink);
}
[data-theme="linen"] { --bg: var(--linen); }
[data-theme="porcelain"] { --bg: var(--porcelain); }
[data-theme] { background-color: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg-soft);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--champagne); color: var(--ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Typography ---------- */
.display, .h-hero, .h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
.h-hero { font-size: var(--fs-hero); line-height: 0.92; letter-spacing: -0.02em; font-weight: 300; }
.h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.02em; font-weight: 300; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 500; letter-spacing: -0.005em; }
.h-hero em, .h1 em, .h2 em, .h3 em, .lede em { font-style: italic; font-weight: inherit; }
.lede {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  line-height: 1.3;
  color: var(--fg);
  font-weight: 400;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-text);
  line-height: 1.4;
}
.eyebrow--rule::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: 0.7; }
.prose { max-width: 60ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.frame { position: relative; overflow: hidden; background: var(--linen); }
[data-theme="dark"] .frame, [data-theme="midnight"] .frame { background: #20242c; }
.frame > img, .frame > picture > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons & links ---------- */
.btn {
  --_bg: var(--btn-bg);
  --_fg: var(--btn-fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.5rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1;
  color: var(--_fg);
  background: var(--_bg);
  border: 1px solid var(--_bg);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: var(--ink); }
.btn--ghost { --_bg: transparent; --_fg: var(--fg); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--accent); }
.btn__roll { display: inline-grid; overflow: hidden; height: 1em; line-height: 1; }
.btn__roll > span { grid-area: 1 / 1; transition: transform 0.7s var(--ease-out); }
.btn__roll > span + span { transform: translateY(110%); }
.btn:hover .btn__roll > span:first-child, a:hover > .btn__roll > span:first-child { transform: translateY(-110%); }
.btn:hover .btn__roll > span + span, a:hover > .btn__roll > span + span { transform: translateY(0); }
.btn__arrow { width: 1.1em; height: 1.1em; flex: none; }

.btn-circle {
  display: inline-grid;
  place-items: center;
  width: clamp(7.5rem, 10vw, 9.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-align: center;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.btn-circle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: transform 0.8s var(--ease-out);
}
.btn-circle:hover, .btn-circle:focus-visible { color: var(--ink); border-color: var(--accent); }
.btn-circle:hover::before, .btn-circle:focus-visible::before { transform: scale(1); }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.3em;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--fg);
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: 100% 50%; transition: transform 0.8s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(0); }
.link--draw::after { transform: scaleX(0); transform-origin: 0 50%; }
.link--draw:hover::after, .link--draw:focus-visible::after { transform: scaleX(1); }

/* ---------- Brand ---------- */
.mark {
  display: inline-block;
  width: var(--mark-size, 1.6rem);
  aspect-ratio: 196 / 200;
  background: currentColor;
  -webkit-mask: url("../img/prpd-mark.png") center / contain no-repeat;
  mask: url("../img/prpd-mark.png") center / contain no-repeat;
  flex: none;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
  color: var(--fg);
  margin-right: -0.32em;
}
.wordmark .mark { color: var(--accent); }
.logo-mask {
  display: block;
  height: var(--logo-h, 2.6rem);
  aspect-ratio: var(--ar, 2);
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}

/* ---------- Header ---------- */
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 2000; padding: 0.8rem 1.2rem;
  background: var(--ink); color: var(--porcelain); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  --hdr-fg: var(--ink);
  --hdr-bg: rgba(251, 248, 242, 0.86);
  --hdr-line: var(--hairline);
  --hdr-accent: var(--gold);
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--hdr-fg);
  transition: transform 0.8s var(--ease-out), color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-light, html.menu-open .site-header {
  --hdr-fg: var(--porcelain);
  --hdr-bg: rgba(20, 23, 29, 0.82);
  --hdr-line: rgba(205, 185, 143, 0.22);
  --hdr-accent: var(--champagne);
}
.site-header.is-scrolled {
  background: var(--hdr-bg);
  border-bottom-color: var(--hdr-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.site-header.is-hidden { transform: translateY(-101%); }
html:not(.js) .site-header, .motion-failed .site-header { background: var(--hdr-bg); border-bottom-color: var(--hdr-line); }
html.menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; transform: none; }
.site-header__inner {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.site-header .wordmark { color: var(--hdr-fg); font-size: 1.35rem; }
.site-header .wordmark .mark { color: var(--hdr-accent); }
.site-header__division {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  padding-left: 1.4rem; border-left: 1px solid var(--hdr-line); opacity: 0.85; white-space: nowrap;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.site-nav a:not(.btn) {
  position: relative; font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  padding-block: 0.4rem;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hdr-accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease-out);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-header .btn { min-height: 2.75rem; padding: 0.8rem 1.4rem; --_bg: transparent; --_fg: var(--hdr-fg); border-color: var(--hdr-line); }
.site-header .btn::before { background: var(--hdr-accent); }
.menu-toggle {
  display: none; position: relative; width: 2.75rem; height: 2.75rem; margin-left: auto; margin-right: -0.6rem;
}
.menu-toggle span {
  position: absolute; left: 0.6rem; right: 0.6rem; height: 1px; background: currentColor;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}
.menu-toggle span:nth-child(1) { top: calc(50% - 4px); }
.menu-toggle span:nth-child(2) { top: calc(50% + 4px); }
html.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
html.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 850;
  background: var(--ink); color: var(--porcelain);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-inout), visibility 0s linear 0.9s;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-inout), visibility 0s; }
.menu__links { display: grid; gap: 0.2rem; }
.menu__links a {
  font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.1; font-weight: 300;
  display: block; overflow: hidden;
}
.menu__links a > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
html.menu-open .menu__links a > span { transform: none; }
html.menu-open .menu__links li:nth-child(2) a > span { transition-delay: 0.05s; }
html.menu-open .menu__links li:nth-child(3) a > span { transition-delay: 0.1s; }
html.menu-open .menu__links li:nth-child(4) a > span { transition-delay: 0.15s; }
html.menu-open .menu__links li:nth-child(5) a > span { transition-delay: 0.2s; }
html.menu-open .menu__links li:nth-child(6) a > span { transition-delay: 0.25s; }
.menu__meta { font-size: var(--fs-small); color: rgba(251, 248, 242, 0.7); display: grid; gap: 0.3rem; }
.menu__meta a { color: var(--champagne); }

@media (max-width: 960px) {
  .site-nav, .site-header__division { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 961px) { .menu { display: none; } }

/* ---------- Curtain (page transitions) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  background: var(--curtain-bg, var(--ink)); color: var(--champagne);
  visibility: hidden; transform: translateY(100%);
  pointer-events: none;
}
.is-entering .curtain { visibility: visible; transform: none; }
.curtain__inner { display: grid; justify-items: center; gap: 1.4rem; }
.curtain .mark { --mark-size: 2.6rem; }
.curtain__label { font-size: var(--fs-label); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(251, 248, 242, 0.75); min-height: 1em; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: transform 0.6s var(--ease-out), background-color 0.4s, width 0.6s var(--ease-out), height 0.6s var(--ease-out), margin 0.6s var(--ease-out);
}
.cursor.is-link .cursor__dot { transform: scale(3.4); }
.cursor.is-down .cursor__dot { transform: scale(0.6); }
.cursor.has-label .cursor__dot { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--champagne); mix-blend-mode: normal; }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 0.3s;
}
.cursor.has-label .cursor__label { opacity: 1; transition-delay: 0.15s; }
.has-cursor [data-cursor] { cursor: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee__track { display: flex; width: max-content; }
.marquee__track > * { flex: none; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.5rem; position: relative; }
.field__label { font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 0.7rem 0 0.8rem; outline: none; transition: border-color 0.5s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { color: var(--ink); background: var(--porcelain); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form__note { font-size: var(--fs-small); color: var(--muted); }

/* Enquiry section, shared by both divisions (each page sets its own colours):
   title and a one-line intro on the left; the short fields in one row, a short
   message and the send button on the right. Kept compact on purpose. */
.enq { position: relative; padding-block: clamp(4.5rem, 8vw, 7rem); background: var(--bg); color: var(--fg-soft); }
.enq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 6vw, 7rem); row-gap: 2.5rem; align-items: start; }
.enq__intro { display: grid; gap: 1.2rem; align-content: start; }
.enq__title { font-size: clamp(2.6rem, 1.5rem + 2.8vw, 4.5rem); line-height: 1; color: var(--fg); }
.enq__lede { max-width: 26rem; color: var(--fg-soft); }
.enq__form { display: grid; gap: clamp(1.4rem, 2.4vw, 2rem); }
.enq__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem clamp(1.1rem, 2vw, 1.75rem); }
.enq__fields--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.enq__message textarea { min-height: 5.25rem; }
.enq__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.enq__hint { max-width: 24rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.enq .form__note { padding: 0.9rem 1.1rem; border: 1px solid var(--line); color: var(--fg-soft); }
.enq .form__note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 1199px) {
  .enq__fields, .enq__fields--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enq__fields:not(.enq__fields--4) > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 899px) { .enq__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .enq__fields, .enq__fields--4 { grid-template-columns: 1fr; }
  .enq__submit .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(251, 248, 242, 0.75); overflow: hidden; }
.site-footer a:hover { color: var(--champagne); }
.site-footer__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem var(--gutter);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  font-size: var(--fs-small); line-height: 1.7;
}
.site-footer__cols h3 { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--champagne); margin-bottom: 1rem; }
.site-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.6rem; border-top: 1px solid rgba(205, 185, 143, 0.2);
  font-size: 0.75rem; letter-spacing: 0.06em; color: rgba(251, 248, 242, 0.55);
}
.site-footer__bar nav { display: flex; gap: 1.6rem; }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Consent (analytics cookies; built by consent.js) ---------- */
.consent {
  position: fixed;
  z-index: 1000; /* over the header and menu, under the intro doors and the curtain */
  right: clamp(0.75rem, 2vw, 2rem); /* clear of the hero headlines, which sit bottom left */
  bottom: clamp(0.75rem, 2vw, 2rem);
  width: min(27rem, calc(100vw - 1.5rem));
  max-height: calc(100svh - 1.5rem);
  overflow: auto;
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 93%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
  color: var(--fg-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.consent[hidden] { display: none; }
.consent.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.consent:focus { outline: none; }
html.menu-open .consent { opacity: 0; visibility: hidden; }
.consent__eyebrow { font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent-text); }
.consent__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.65rem, 1.45rem + 0.6vw, 2rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--fg); }
.consent__title em { font-style: italic; color: var(--accent-text); }
.consent__text, .consent__state { font-size: 0.875rem; line-height: 1.6; }
.consent__text a { color: var(--fg); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.consent__state { color: var(--accent-text); }
/* the two answers carry equal weight */
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.35rem; }
.consent__btn { min-height: 3rem; padding: 0.9rem 1rem; }
@media (max-width: 560px) {
  .consent { left: 0.75rem; width: auto; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); gap: 0.6rem; padding: 1.15rem; }
  .consent__title { font-size: 1.5rem; }
  .consent__text, .consent__state { font-size: 0.8125rem; line-height: 1.55; }
  .consent__btn { min-height: 2.75rem; padding-block: 0.8rem; }
}

/* ---------- Texture ---------- */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: var(--grain, 0.07); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"].grain::after, [data-theme="midnight"].grain::after { mix-blend-mode: screen; --grain: 0.05; filter: invert(1); }

/* ---------- Motion states ---------- */
.split-line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.motion-failed):not(.is-static-shot) [data-reveal],
  .js:not(.motion-failed):not(.is-static-shot) [data-reveal-group] > *,
  .js:not(.motion-failed):not(.is-static-shot) [data-split]:not(.is-split) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.is-static-shot [data-reveal], .is-static-shot [data-reveal-group] > *, .is-static-shot [data-split] { visibility: visible !important; opacity: 1 !important; }

/* ---------- Utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
