/* =========================================================
   WindowMaps — Design System (refined)
   A small cartographic press. Cream paper, ink, brass.
   Mobile-first · Variable type · Choreographed motion
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Paper & ink (cooler, more refined) */
  --paper:        #F2EAD3;
  --paper-deep:   #ECDFC4;
  --paper-soft:   #FBF6E9;
  --paper-warm:   #F8F1DC;
  --paper-mist:   #FDFAF0;
  --paper-tint:   #E6D7B0;
  --ink:          #1B1A17;
  --ink-soft:     #383530;
  --ink-mute:     #6B6557;

  /* Brass + rust accents */
  --brass:        #A8843A;
  --brass-light:  #D4B575;
  --brass-deep:   #8A6A28;
  --rust:         #7E331C;

  /* Type */
  --display: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Scale */
  --fs-eyebrow: clamp(0.7rem,  0.66rem + 0.2vw, 0.78rem);
  --fs-body:    clamp(0.98rem, 0.94rem + 0.2vw, 1.05rem);
  --fs-lede:    clamp(1.18rem, 1.05rem + 0.7vw, 1.45rem);
  --fs-h3:      clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem);
  --fs-h2:      clamp(2.1rem,  1.6rem + 2.6vw, 3.8rem);
  --fs-h1:      clamp(3.2rem,  2.2rem + 6.2vw, 8rem);

  /* Space */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2.5rem;  --sp-5: 4rem;   --sp-6: 6.5rem; --sp-7: 10rem;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max:    1360px;
  --rule:   1px solid rgba(27,26,23,0.16);

  /* Motion */
  --ease:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'calt', 'ss01';
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brass); color: var(--paper-soft); }

/* ---------- Accessibility primitives ---------- */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.2rem;
  font-family: var(--body); font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--brass);
  transition: top 0.25s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 0;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Universal focus-visible — chique brass outline, never blue browser default */
:focus { outline: 0; }
:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 1px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.letter-form button:focus-visible,
.filter-chip:focus-visible {
  outline-offset: 4px;
}
.card:focus-visible {
  outline-offset: 6px;
}
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible,
.letter-form input:focus-visible {
  outline: 0; /* the border colour change in :focus already handles it */
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.024em;
  line-height: 1.0;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; font-variation-settings: "opsz" 72; }

.italic   { font-style: italic; }
.eyebrow {
  font-family: var(--body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 1.6rem; height: 1px;
  background: currentColor; opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

.lede {
  font-family: var(--display);
  font-size: var(--fs-lede);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  color: var(--ink-soft);
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.serif-num {
  font-family: var(--display);
  font-feature-settings: 'tnum', 'lnum';
  font-style: italic;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.rule       { border: 0; border-top: var(--rule); margin: 0; }
.rule-soft  { border: 0; border-top: 1px solid rgba(27,26,23,0.08); margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 234, 211, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}
.brand-mark { width: 22px; height: 22px; transform: translateY(3px); }
.brand-sup {
  font-family: var(--body); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
}
.nav-links { display: none; gap: 2.2rem; }
.nav-links a {
  font-size: 0.92rem; color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  position: relative; padding-block: 0.25rem;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass);
  transition: width 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-current { color: var(--ink); }
.nav-links a.is-current::after { width: 100%; }
.nav-cta {
  font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.58rem 1.05rem; border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: all 0.35s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (min-width: 760px) { .nav-links { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.7rem;
  font-family: var(--body); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--paper-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow { width: 14px; height: 9px; transition: transform 0.4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-quiet:hover { gap: 0.9rem; color: var(--brass-deep); border-color: var(--brass-deep); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-6);
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: end;
}
.hero-title {
  font-size: var(--fs-h1);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero-title em {
  font-style: italic;
  color: var(--brass-deep);
}
.hero-lede { max-width: 36ch; margin-top: var(--sp-3); }
.hero-meta {
  margin-top: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--paper-soft);
  border: 1px solid rgba(27,26,23,0.14);
  box-shadow:
    0 1px 0 rgba(255,250,235,0.5) inset,
    0 1px 0 rgba(27,26,23,0.05),
    0 40px 80px -40px rgba(27,26,23,0.35),
    0 16px 32px -16px rgba(27,26,23,0.18);
}
.hero-art > svg { width: 100%; height: 100%; display: block; }

.hero-stamp {
  position: absolute;
  top: -16px; right: -16px;
  width: 100px; height: 100px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-style: italic;
  text-align: center; line-height: 1.05;
  padding: 0.5rem;
  box-shadow: 0 8px 24px -8px rgba(27,26,23,0.4);
  transform: rotate(-6deg);
  z-index: 3;
}
.hero-stamp .num {
  font-size: 1.55rem; color: var(--brass-light);
  font-feature-settings: 'tnum';
  font-variation-settings: "opsz" 144;
}
.hero-stamp small {
  display: block;
  font-family: var(--body); font-style: normal;
  font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--paper-deep);
  margin-top: 0.2rem;
}

.hero-caption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(251, 246, 233, 0.92);
  backdrop-filter: blur(4px);
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(27,26,23,0.12);
  z-index: 3;
}
.hero-caption .serif-num { color: var(--brass-deep); margin-left: 0.3rem; }

.ticker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
  animation: wm-blink 2.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes wm-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

@media (min-width: 920px) {
  .hero { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-5); }
}

/* =========================================================
   HERO MAP — choreographed animations
   ========================================================= */
@keyframes wm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@keyframes wm-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wm-bloom {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes wm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.4); }
}
@keyframes wm-compass-in {
  from { opacity: 0; transform: rotate(-14deg); }
  to   { opacity: 1; transform: rotate(0deg); }
}

.hero-art .wm-river {
  opacity: 0; animation: wm-fade 1.3s var(--ease) 0.15s forwards;
}
.hero-art .wm-island {
  fill: var(--paper);
  stroke: var(--ink); stroke-width: 0.9;
  stroke-dasharray: 1700; stroke-dashoffset: 1700;
  animation: wm-draw 1.6s var(--ease) 0.55s forwards;
}
.hero-art .wm-avenue {
  stroke: var(--ink); stroke-width: 0.45; opacity: 0.55;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: wm-draw 1.4s var(--ease) forwards;
}
.hero-art .wm-avenue:nth-of-type(1) { animation-delay: 0.95s; }
.hero-art .wm-avenue:nth-of-type(2) { animation-delay: 1.05s; }
.hero-art .wm-avenue:nth-of-type(3) { animation-delay: 1.15s; }
.hero-art .wm-avenue:nth-of-type(4) { animation-delay: 1.25s; }
.hero-art .wm-avenue:nth-of-type(5) { animation-delay: 1.35s; }
.hero-art .wm-avenue:nth-of-type(6) { animation-delay: 1.45s; }

.hero-art .wm-streets-group {
  opacity: 0; animation: wm-fade 1.1s var(--ease) 1.5s forwards;
}
.hero-art .wm-park {
  opacity: 0; transform-origin: center; transform-box: fill-box;
  animation: wm-bloom 0.85s var(--ease) 1.95s forwards;
}
.hero-art .wm-trees {
  opacity: 0; animation: wm-fade 0.8s var(--ease) 2.4s forwards;
}
.hero-art .wm-landmark {
  opacity: 0;
  transform-origin: center; transform-box: fill-box;
  animation:
    wm-fade 0.5s var(--ease) forwards,
    wm-pulse 3.4s ease-in-out infinite;
}
.hero-art .wm-landmark:nth-of-type(1) { animation-delay: 2.6s, 5.2s; }
.hero-art .wm-landmark:nth-of-type(2) { animation-delay: 2.75s, 5.4s; }
.hero-art .wm-landmark:nth-of-type(3) { animation-delay: 2.9s, 5.6s; }

.hero-art .wm-compass {
  opacity: 0; transform-origin: center; transform-box: fill-box;
  animation: wm-compass-in 1.3s var(--ease) 1.2s forwards;
}
.hero-art .wm-title { opacity: 0; animation: wm-rise 1s var(--ease) 2.2s forwards; }
.hero-art .wm-coord { opacity: 0; animation: wm-fade 0.9s var(--ease) 2.8s forwards; }
.hero-art .wm-reg   { opacity: 0; animation: wm-fade 0.7s var(--ease) 2.4s forwards; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  padding-block: var(--sp-5);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.man-item h3 { margin-bottom: 0.7rem; }
.man-item p  { color: var(--ink-soft); max-width: 38ch; }
.man-num {
  display: inline-block;
  font-family: var(--display); font-style: italic; font-size: 0.95rem;
  color: var(--brass-deep); margin-bottom: 0.5rem;
  font-feature-settings: 'tnum';
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--brass-deep);
}
@media (min-width: 760px) {
  .manifesto-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  border-top: var(--rule); border-bottom: var(--rule);
  padding-block: 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; gap: 4rem;
  white-space: nowrap;
  animation: wm-marquee 48s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  color: var(--ink); letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.marquee-item .dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--brass); border-radius: 50%;
  margin: 0 1rem; vertical-align: middle;
}
@keyframes wm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   FEATURED PAIR
   ========================================================= */
.featured { padding-block: var(--sp-6); }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 42ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--sp-5); }
  .section-head .head-side { text-align: right; }
}

.pair-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 760px) { .pair-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); } }

.card {
  background: var(--paper-soft);
  border: 1px solid rgba(27,26,23,0.12);
  position: relative;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  display: block;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 60px -30px rgba(27,26,23,0.28),
    0 10px 24px -10px rgba(27,26,23,0.12);
}
.card-art {
  aspect-ratio: 4 / 5;
  overflow: hidden; position: relative;
  background: var(--paper);
}
.card-art svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.card:hover .card-art svg { transform: scale(1.035); }

.card-edition {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-soft);
  background: var(--ink); padding: 0.4rem 0.65rem;
  z-index: 2;
}
.card-edition.is-low { background: var(--rust); }

.card-body {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.1rem 1.3rem 1.4rem;
  gap: 1rem;
}
.card-title { font-size: 1.55rem; line-height: 1.05; font-variation-settings: "opsz" 72; }
.card-sub {
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 0.4rem;
}
.card-price {
  font-family: var(--display); font-style: italic;
  font-size: 1.2rem; color: var(--brass-deep); white-space: nowrap;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  background: var(--paper-deep);
  padding-block: var(--sp-6);
  position: relative;
}
.process::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(168,132,58,0.12) 0, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(126,51,28,0.07) 0, transparent 40%);
  pointer-events: none;
}
.process > .wrap { position: relative; }
.process-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  position: relative;
}
@media (min-width: 900px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
}
.step {
  border-top: 1px solid rgba(27,26,23,0.25);
  padding-top: 1.2rem;
}
.step-num {
  font-family: var(--display); font-style: italic; font-size: 2.5rem;
  color: var(--brass-deep); line-height: 1; margin-bottom: 0.8rem;
  font-feature-settings: 'tnum';
  font-variation-settings: "opsz" 144;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p  { color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull { padding-block: var(--sp-6); text-align: center; }
.pull blockquote {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.2; letter-spacing: -0.018em;
  max-width: 24ch; margin: 0 auto;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.pull cite {
  display: block; margin-top: var(--sp-3);
  font-style: normal; font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* =========================================================
   STUDIO LETTER
   ========================================================= */
.letter {
  background: var(--ink); color: var(--paper);
  padding-block: var(--sp-6);
  position: relative; overflow: hidden;
}
.letter::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(ellipse at 80% 20%, rgba(168,132,58,0.18) 0, transparent 50%);
  pointer-events: none;
}
.letter > .wrap { position: relative; }
.letter .lede { color: var(--paper-deep); }
.letter h2 { color: var(--paper); }
.letter h2 em { color: var(--brass-light); font-style: italic; }
.letter-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 900px) {
  .letter-grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-5); align-items: center; }
}
.letter-form {
  display: flex; gap: 0; border: 1px solid var(--paper-deep);
  background: transparent;
  transition: border-color 0.3s var(--ease);
}
.letter-form:focus-within { border-color: var(--brass-light); }
.letter-form input {
  flex: 1; min-width: 0;
  padding: 1.05rem 1.15rem;
  background: transparent; border: 0; outline: 0;
  color: var(--paper); font: inherit;
  letter-spacing: 0.01em;
}
.letter-form input::placeholder { color: rgba(242,234,211,0.5); }
.letter-form button {
  padding: 1.05rem 1.5rem; border: 0;
  background: var(--brass); color: var(--ink);
  font-family: var(--body); font-size: 0.88rem; letter-spacing: 0.06em;
  font-weight: 500; transition: background 0.3s var(--ease);
}
.letter-form button:hover { background: var(--brass-light); }
.letter-note { font-size: 0.8rem; color: rgba(242,234,211,0.5); margin-top: 0.8rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { padding-block: var(--sp-5); border-top: var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.foot-col h4 {
  font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 0.95rem; font-weight: 500;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 0.5rem; }
.foot-col a { color: var(--ink-soft); transition: color 0.25s var(--ease); font-size: 0.93rem; }
.foot-col a:hover { color: var(--brass-deep); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(27,26,23,0.08);
  margin-top: var(--sp-4);
  font-size: 0.82rem; color: var(--ink-mute);
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-4); }
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* =========================================================
   PAGE HEAD + INTERIORS (collection / about / inquire)
   ========================================================= */
.page-head { padding-block: var(--sp-5) var(--sp-4); }
.page-head h1 {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 5rem);
  letter-spacing: -0.035em;
}
.page-head h1 em { color: var(--brass-deep); }
.page-head .lede { max-width: 48ch; margin-top: var(--sp-2); }

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-block: var(--sp-3);
  border-top: var(--rule); border-bottom: var(--rule);
}
.filter-chip {
  background: transparent; border: 1px solid rgba(27,26,23,0.25);
  padding: 0.55rem 1rem; font-size: 0.84rem; letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.collection { padding-block: var(--sp-5); }
.collection-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px)  { .collection-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (min-width: 1024px) { .collection-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }

.inquire-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  padding-block: var(--sp-5);
}
@media (min-width: 900px) { .inquire-grid { grid-template-columns: 1fr 1.3fr; gap: var(--sp-6); } }
.inquire-aside h2 { margin-bottom: var(--sp-2); }
.inquire-aside p  { color: var(--ink-soft); max-width: 36ch; }
.aside-detail {
  margin-top: var(--sp-4);
  border-top: 1px solid rgba(27,26,23,0.12);
  padding-top: var(--sp-3);
}
.aside-detail dt {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.3rem;
}
.aside-detail dd { margin: 0 0 1.1rem; font-size: 0.96rem; color: var(--ink-soft); }
.aside-detail dd .serif-num { color: var(--brass-deep); }

.form-row { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.form-row label {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit; font-size: 0.98rem;
  padding: 0.9rem 1rem;
  background: var(--paper-soft);
  border: 1px solid rgba(27,26,23,0.2);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--brass-deep); background: var(--paper);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-double { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .form-double { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-top: var(--sp-3);
}
.form-note { font-size: 0.85rem; color: var(--ink-mute); max-width: 30ch; }

.editorial {
  padding-block: var(--sp-5);
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
}
@media (min-width: 900px) { .editorial { grid-template-columns: 1fr 1.4fr; gap: var(--sp-5); } }
.editorial h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); }
.editorial-prose p { margin: 0 0 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.editorial-prose p:first-child::first-letter {
  font-family: var(--display); font-style: italic;
  font-size: 3.8rem; float: left; line-height: 0.95;
  padding: 0.35rem 0.55rem 0 0; color: var(--brass-deep);
}

/* =========================================================
   PERSONALISED — anatomy + sample
   ========================================================= */
.anatomy { padding-block: var(--sp-5) var(--sp-6); }
.anatomy-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
}
@media (min-width: 760px) {
  .anatomy-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}
.anatomy-item { position: relative; }
.anatomy-art {
  background: var(--paper-soft);
  border: 1px solid rgba(27,26,23,0.12);
  aspect-ratio: 8 / 5;
  margin-bottom: 1.4rem;
  overflow: hidden;
}
.anatomy-art svg,
.anatomy-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.anatomy-num {
  display: inline-block;
  font-family: var(--display); font-style: italic;
  font-size: 1rem; color: var(--brass-deep);
  margin-bottom: 0.5rem;
  font-feature-settings: 'tnum';
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--brass-deep);
}
.anatomy-item h3 { margin: 0.6rem 0 0.7rem; font-size: 1.55rem; }
.anatomy-item p  { color: var(--ink-soft); max-width: 42ch; }

.sample {
  background: var(--paper-deep);
  padding-block: var(--sp-6);
  position: relative;
}
.sample::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(168,132,58,0.10) 0, transparent 38%),
    radial-gradient(circle at 85% 75%, rgba(126,51,28,0.06) 0, transparent 42%);
  pointer-events: none;
}
.sample > .wrap { position: relative; }
.sample-art {
  margin: 0;
  background: var(--paper-soft);
  border: 1px solid rgba(27,26,23,0.14);
  box-shadow:
    0 1px 0 rgba(255,250,235,0.5) inset,
    0 40px 80px -40px rgba(27,26,23,0.35),
    0 16px 32px -16px rgba(27,26,23,0.15);
  overflow: hidden;
}
.sample-art svg { width: 100%; height: auto; display: block; }
.sample-caption {
  display: block;
  text-align: center;
  margin-top: 1.4rem;
  font-family: var(--display); font-style: italic;
  font-size: 1rem; color: var(--ink-mute);
  font-variation-settings: "opsz" 72;
}

/* "Personalise →" secondary link on collection cards */
.card-personalise {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0 1.3rem 1.2rem;
  font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--brass-deep);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(168,132,58,0.4);
  width: fit-content;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card-personalise:hover { gap: 0.7rem; border-color: var(--brass-deep); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-art [class^="wm-"], .hero-art [class*=" wm-"] {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ========================================================================
.thanks-wrap {
  max-width: 56ch;
}
.thanks-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.6rem 0 1.6rem;
}
.thanks-title em {
  font-style: italic;
  color: var(--brass);
  font-weight: 300;
}
.thanks-lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}
.thanks-meta {
  font-family: var(--body);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 2.6rem;
}
.thanks-meta a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.thanks-meta a:hover {
  border-bottom-color: var(--brass);
}
.thanks-sign {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* === Netherlands map: province interactivity === */
.hero-art .wm-country {
  opacity: 0;
  animation: wm-fade 1.4s var(--ease) 0.55s forwards;
}
.hero-art .wm-province {
  transition:
    fill 0.35s var(--ease),
    fill-opacity 0.35s var(--ease),
    stroke-width 0.35s var(--ease);
}
.hero-art .wm-province:hover {
  fill: var(--paper-tint);
  fill-opacity: 0.85;
  stroke-width: 0.7;
}
.hero-art .wm-park {
  transition: fill-opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.hero-art .wm-park:hover {
  fill-opacity: 1;
  filter: brightness(1.08);
}

/* === Wave 3: pure sans typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
  letter-spacing: -0.015em;
}
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
.hero-title em, .page-head h1 em {
  font-style: normal;
  font-family: inherit;
  color: var(--brass-deep, #8A6A28);
  font-weight: inherit;
}
body, p, .lede, .hero-lede, .editorial-prose p, .aside-detail dd,
input, textarea, select, button {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.lede em, p em, em {
  font-style: italic;
  font-family: inherit;
}
.serif-num {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-feature-settings: 'tnum', 'lnum';
  font-style: normal;
}
.hero-caption, .sample-caption, .form-note, .letter-note {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
}

/* === Wave 4: globe hero + cartography section === */

/* --- Hero layout: 40/60 split text/globe on desktop --- */
.hero-grid--globe {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid--globe {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Text column gets a clean reading width */
.hero-text {
  max-width: 36rem;
}

/* Hero CTA group — primary button + small meta line */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-cta-group .btn--primary,
.hero-cta-group .btn {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.hero-cta-group .btn--primary:hover,
.hero-cta-group .btn:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
}
.hero-cta-meta {
  font-size: 0.86rem;
  color: var(--ink-mute, #6B6557);
  letter-spacing: 0.01em;
  font-style: italic;
}

/* --- Globe stage --- */
.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin-left: auto;
}
@media (max-width: 900px) {
  .globe-stage {
    margin: 0 auto;
    max-width: 480px;
  }
}
@media (max-width: 600px) {
  .globe-stage {
    max-width: 360px;
  }
}

.globe-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Static placeholder while amCharts initializes */
.globe-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Respect reduced-motion preference: hide the globe entirely, fallback list shows */
@media (prefers-reduced-motion: reduce) {
  /* amCharts itself opts out via JS — this is just a safety net for the placeholder spin */
  .globe-placeholder {
    opacity: 0.6;
  }
}

/* Fallback list (shown only when JS is disabled via <noscript>) */
.globe-fallback-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.9rem 1.2rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(27,26,23,0.18);
  margin: 0;
}
.globe-fallback-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute, #6B6557);
  font-weight: 500;
}
.globe-fallback-list dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink, #1B1A17);
}

/* --- Cartography section (Netherlands map relocated) --- */
.cartography {
  padding: var(--sp-6, 5rem) 0;
  border-top: 1px solid rgba(27,26,23,0.08);
  border-bottom: 1px solid rgba(27,26,23,0.08);
  background:
    radial-gradient(ellipse at center, rgba(168,132,58,0.04), transparent 60%),
    var(--paper-warm);
}
.cartography-head {
  max-width: 52rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.cartography-title {
  font-size: clamp(2.25rem, 4vw + 0.5rem, 4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.4rem;
}
.cartography-title em {
  color: var(--brass-deep, #8A6A28);
  font-style: normal;
  font-weight: inherit;
}
.cartography-lede {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.18rem);
  line-height: 1.6;
  color: var(--ink-mute, #6B6557);
  max-width: 48rem;
  margin: 0 auto;
  font-style: italic;
}

/* The figure containing the Netherlands SVG — gets a generous frame */
.cartography-figure {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.cartography-art {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}
.cartography-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Caption: editorial corner-line treatment */
.cartography-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(27,26,23,0.25);
  font-size: 0.9rem;
}
.cartography-caption > span:first-child {
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cartography-coord {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute, #6B6557);
}

@media (max-width: 600px) {
  .cartography {
    padding: 3rem 0;
  }
  .cartography-head {
    text-align: left;
    margin-bottom: 2rem;
  }
}

/* === Wave 4.1: H1 sizing fix + globe min-height === */
/* The original --fs-h1 clamp(3.2rem, 2.2rem + 6.2vw, 8rem) was tuned
   for serif display sizes. At sans Helvetica with the new business
   positioning, it reads oversized. Override at higher specificity. */
:root {
  --fs-h1: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
}
h1, .hero-title, .page-head h1 {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) !important;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.hero-title {
  max-width: 14ch;
}
h2, .cartography-title {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem) !important;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem) !important;
  line-height: 1.3;
  font-weight: 600;
}
.lede, .hero-lede {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.18rem);
  line-height: 1.55;
  max-width: 52ch;
}
/* Globe canvas needs explicit min-height so amCharts can measure
   the container before CSS aspect-ratio resolves (otherwise it
   initializes at height: 0 and the globe never appears) */
.globe-stage {
  min-height: 480px;
}
.globe-canvas {
  min-height: 480px;
}
@media (max-width: 900px) {
  .globe-stage,
  .globe-canvas {
    min-height: 380px;
  }
}
@media (max-width: 600px) {
  .globe-stage,
  .globe-canvas {
    min-height: 320px;
  }
}

/* === Wave 4.2: globe card treatment === */
/* Lift the globe onto a brighter cream "study card" with editorial
   corner crosses, matching the warranty box and city band pattern.
   Continents are darkened in the JS init for legibility against the
   brighter card background. */
.globe-stage {
  background: var(--paper-soft);
  border: 1px solid rgba(27, 26, 23, 0.10);
  border-radius: 3px;
  padding: 1.5rem;
  position: relative;
  box-shadow:
    0 1px 2px rgba(168, 132, 58, 0.08),
    0 8px 24px rgba(27, 26, 23, 0.04);
}
/* Corner registration crosses — drawn via background-image
   so we don't need to inject HTML elements. */
.globe-stage::before,
.globe-stage::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M0 6h12M6 0v12' stroke='%231B1A17' stroke-width='0.7' fill='none' stroke-opacity='0.4'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.globe-stage::before {
  top: 10px;
  left: 10px;
  box-shadow:
    calc(100% + 20px) 0 0 transparent,
    0 0 0 transparent;
}
.globe-stage::after {
  bottom: 10px;
  right: 10px;
}
/* Two more corners via a wrapping pseudo trick — use additional
   layered background-images on .globe-stage itself for top-right
   and bottom-left so we get all four crosses without extra elements */
.globe-stage {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M0 6h12M6 0v12' stroke='%231B1A17' stroke-width='0.7' fill='none' stroke-opacity='0.4'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M0 6h12M6 0v12' stroke='%231B1A17' stroke-width='0.7' fill='none' stroke-opacity='0.4'/></svg>");
  background-position:
    calc(100% - 10px) 10px,        /* top-right */
    10px calc(100% - 10px);        /* bottom-left */
  background-size: 12px 12px, 12px 12px;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--paper-soft);
}

/* Mobile — reduce padding so the globe stays prominent */
@media (max-width: 600px) {
  .globe-stage {
    padding: 1rem;
  }
}

/* === Wave 4.3: lighter card + graticule support === */
/* Brighter card cream so the globe's surface registers as a separate
   "specimen plate" against the page background. Border + shadow
   strengthened. The card now reads as a print plate placed on the
   table, not a watermark on the paper. */
.globe-stage {
  background-color: var(--paper-mist) !important;
  border-color: rgba(27, 26, 23, 0.20) !important;
  box-shadow:
    0 1px 3px rgba(168, 132, 58, 0.10),
    0 12px 32px rgba(27, 26, 23, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}
/* Slightly darker corner crosses for stronger anchoring on the lighter card */
.globe-stage {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M0 6h12M6 0v12' stroke='%231B1A17' stroke-width='0.8' fill='none' stroke-opacity='0.55'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M0 6h12M6 0v12' stroke='%231B1A17' stroke-width='0.8' fill='none' stroke-opacity='0.55'/></svg>") !important;
}
.globe-stage::before,
.globe-stage::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M0 6h12M6 0v12' stroke='%231B1A17' stroke-width='0.8' fill='none' stroke-opacity='0.55'/></svg>") !important;
}

/* === Wave 6: footer flag strip === */
.flag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(27, 26, 23, 0.10);
  margin-top: 2rem;
}
.flag-strip__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #383530);
  margin-right: 0.5rem;
  font-weight: 500;
}
.flag {
  display: inline-block;
  line-height: 0;
  border: 1px solid rgba(27, 26, 23, 0.20);
  border-radius: 1px;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.flag svg {
  display: block;
  height: 14px;
  width: auto;
}
.flag:hover,
.flag:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(27, 26, 23, 0.45);
  box-shadow: 0 3px 6px rgba(27, 26, 23, 0.12);
  outline: none;
}
@media (max-width: 540px) {
  .flag-strip { gap: 0.5rem; padding: 1rem 0; }
  .flag svg { height: 12px; }
  .flag-strip__label { font-size: 0.65rem; }
}

/* === Wave 8: Why WindowMaps section === */
.why-wm {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background: var(--paper-mist);
  border-top: 1px solid rgba(27, 26, 23, 0.08);
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}
.why-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.why-title {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 16ch;
}
.why-title em {
  color: var(--brass-deep, #A8843A);
  font-style: italic;
  font-weight: 500;
}
.why-body {
  margin-top: 1.75rem;
  max-width: 56ch;
}
.why-body p {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.18rem);
  line-height: 1.7;
  color: var(--ink-soft, #383530);
  margin: 0 0 1.1em 0;
}
.why-body p:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .why-wm {
    padding: clamp(3rem, 9vw, 5rem) var(--gutter);
  }
}
/* =========================================================
   THE WORK — Map cards (Wave 9A.1)
   MapLibre + OpenFreeMap (Positron), static-looking,
   filtered toward the WindowMaps paper aesthetic
   ========================================================= */

/* Container that MapLibre mounts into. Fills the .card-art box. */
.card-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--paper);                      /* Pre-load + error fallback */
  transition: transform 1.4s var(--ease),
              opacity 0.7s var(--ease);
  opacity: 0;
  /* Push OpenFreeMap Positron into the cream/brass tonal range.
     Mild — we want real geography readable, just warmed. */
  filter: sepia(0.18) saturate(0.78) hue-rotate(-6deg) contrast(1.02) brightness(1.01);
}
.card-map.is-loaded { opacity: 1; }
.card-map.is-errored {
  opacity: 1;
  filter: none;
  /* Keep cream paper so the card still reads as a plate if tiles fail */
}

/* Match the hover-scale effect the SVG cards had */
.card:hover .card-map { transform: scale(1.035); }

/* Italic city name overlay — picks up the role the in-SVG <text> used to play */
.card-map-label {
  position: absolute;
  left: 1.4rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  /* Subtle paper halo so the label stays readable over any tile region */
  text-shadow:
    0 0 8px rgba(251, 246, 233, 0.95),
    0 0 16px rgba(251, 246, 233, 0.7);
  pointer-events: none;
}

/* MapLibre attribution: required by OSM/OpenMapTiles. Soften visually
   so it doesn't fight the editorial typography. */
.card-art .maplibregl-ctrl-bottom-right { right: 0.4rem; bottom: 0.4rem; }
.card-art .maplibregl-ctrl-attrib {
  background: rgba(251, 246, 233, 0.78);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 0;
}
.card-art .maplibregl-ctrl-attrib a {
  color: var(--ink-mute);
}
.card-art .maplibregl-ctrl-attrib-button {
  background-color: rgba(251, 246, 233, 0.78);
}

/* Hide the MapLibre logo (we keep the data attribution, which is the
   legal requirement; the logo is a courtesy, optional per their license). */
.card-art .maplibregl-ctrl-logo { display: none !important; }

/* If JS or the CDN script fails entirely, hide attribution gracefully */
html.no-maplibre .card-map {
  opacity: 1;
  filter: none;
}

/* Smaller label on phones so it sits well in the narrower card */
@media (max-width: 640px) {
  .card-map-label { font-size: 1.4rem; left: 1.1rem; bottom: 0.8rem; }
}

/* =========================================================
   ROOMS — Gallery (/rooms/) — reuses .card + .collection-grid
   .card--photo : modifier for landscape photographs vs. map cards
   ========================================================= */
.card--photo .card-art {
  aspect-ratio: 16 / 9;
}
.card--photo .card-art picture {
  display: block;
  width: 100%;
  height: 100%;
}
.card--photo .card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.card--photo:hover .card-art img {
  transform: scale(1.035);
}

/* Honesty note below the gallery grid */
.rooms-honesty {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: var(--rule);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 64ch;
  margin-inline: auto;
  text-align: center;
}
@media (max-width: 640px) {
  .rooms-honesty { text-align: left; margin-inline: 0; }
}

/* =========================================================
   WAVE 10 — Mobile-first navigation system
   Hamburger toggle + slide-in panel + sticky mobile CTA
   ========================================================= */

/* --- Mobile nav toggle button --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  background: transparent;
  border: 1px solid rgba(27, 26, 23, 0.18);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(27, 26, 23, 0.04);
  border-color: var(--ink);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

/* Hamburger icon — three lines that morph to X */
.nav-toggle__icon {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after,
.nav-toggle__icon span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.25s var(--ease);
  border-radius: 1px;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span    { top: 6.25px; }
.nav-toggle__icon::after  { top: 12.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 6.25px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 6.25px;
  transform: rotate(-45deg);
}

/* Show toggle on mobile only */
@media (min-width: 760px) {
  .nav-toggle { display: none; }
}

/* --- Mobile nav panel (slides from right) --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.4s var(--ease);
}
.mobile-nav[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 23, 0.45);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.mobile-nav[aria-hidden="false"] .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 380px);
  background: var(--paper-soft);
  box-shadow:
    -1px 0 0 rgba(27, 26, 23, 0.08),
    -24px 0 64px -24px rgba(27, 26, 23, 0.25);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav[aria-hidden="false"] .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(27, 26, 23, 0.10);
  min-height: 64px;
}
.mobile-nav__close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.5rem;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav__close svg {
  width: 18px;
  height: 18px;
}

.mobile-nav__body {
  flex: 1;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1rem;
  font-weight: 500;
}

.mobile-nav__links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav__links li {
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}
.mobile-nav__links li:last-child {
  border-bottom: 0;
}
.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.1;
  transition: color 0.25s var(--ease), transform 0.4s var(--ease);
  font-weight: 500;
}
.mobile-nav__links a::after {
  content: '→';
  font-style: italic;
  color: var(--brass-deep);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.mobile-nav__links a:hover,
.mobile-nav__links a:focus-visible,
.mobile-nav__links a.is-current {
  color: var(--brass-deep);
}
.mobile-nav__links a:hover::after,
.mobile-nav__links a:focus-visible::after,
.mobile-nav__links a.is-current::after {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav__links a .link-meta {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 0.2rem;
  display: block;
}
.mobile-nav__links a {
  flex-wrap: wrap;
}
.mobile-nav__links a > span:first-child {
  flex: 1;
}

.mobile-nav__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}
.mobile-nav__cta .btn {
  width: 100%;
  justify-content: center;
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.mobile-nav__cta .btn:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--paper-soft);
}
.mobile-nav__contact {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.6;
}
.mobile-nav__contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 1px;
}

/* Stagger reveal of links when panel opens */
.mobile-nav[aria-hidden="false"] .mobile-nav__links li {
  animation: wm-slide-in 0.55s var(--ease) backwards;
}
.mobile-nav[aria-hidden="false"] .mobile-nav__links li:nth-child(1) { animation-delay: 0.18s; }
.mobile-nav[aria-hidden="false"] .mobile-nav__links li:nth-child(2) { animation-delay: 0.24s; }
.mobile-nav[aria-hidden="false"] .mobile-nav__links li:nth-child(3) { animation-delay: 0.30s; }
.mobile-nav[aria-hidden="false"] .mobile-nav__links li:nth-child(4) { animation-delay: 0.36s; }
.mobile-nav[aria-hidden="false"] .mobile-nav__links li:nth-child(5) { animation-delay: 0.42s; }

@keyframes wm-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Hide page scrolling when nav is open */
body.is-nav-open {
  overflow: hidden;
  touch-action: none;
}

/* --- Sticky mobile CTA bar — appears after hero, slides down when leaving hero --- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(27, 26, 23, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
          backdrop-filter: saturate(140%) blur(10px);
  color: var(--paper);
  padding: 0.85rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
  border-top: 1px solid var(--brass-deep);
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta__label {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--paper-deep);
  flex: 1;
  min-width: 0;
}
.sticky-cta__label strong {
  color: var(--brass-light);
  font-style: normal;
  font-weight: 500;
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.sticky-cta__btn {
  background: var(--brass);
  color: var(--ink);
  border: 0;
  padding: 0.75rem 1.1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
}
.sticky-cta__btn:hover,
.sticky-cta__btn:active {
  background: var(--brass-light);
  transform: translateY(-1px);
}
.sticky-cta__btn svg {
  width: 12px;
  height: 8px;
}

/* Hide sticky CTA on desktop and on the inquire page itself */
@media (min-width: 760px) {
  .sticky-cta { display: none; }
}
.is-inquire-page .sticky-cta { display: none; }

/* --- Scroll progress bar at top of viewport --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass-deep) 0%, var(--brass) 50%, var(--brass-light) 100%);
  width: 0%;
  z-index: 70;
  transition: width 0.1s linear, opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.scroll-progress.is-active {
  opacity: 1;
}

/* =========================================================
   WAVE 10.1 — Touch-friendly improvements & active states
   ========================================================= */

/* Larger tap targets on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-cta,
  .filter-chip {
    min-height: 44px;
  }
  .card:active {
    transform: translateY(-3px) scale(0.997);
    transition: transform 0.15s var(--ease);
  }
  .nav-links a {
    padding-block: 0.45rem;
  }
}

/* Subtle press state on buttons */
.btn:active {
  transform: translateY(1px);
  transition: transform 0.1s var(--ease);
}
.nav-cta:active {
  transform: translateY(1px);
}

/* Refine card hover so it works on touch */
.card {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   WAVE 11 — Testimonials section
   ========================================================= */
.testimonials {
  padding-block: var(--sp-6);
  background: var(--paper-soft);
  border-top: var(--rule);
  border-bottom: var(--rule);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(168, 132, 58, 0.05) 0, transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(126, 51, 28, 0.04) 0, transparent 45%);
  pointer-events: none;
}
.testimonials > .wrap { position: relative; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
@media (min-width: 760px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
  }
}

.testimonial {
  background: var(--paper);
  border: 1px solid rgba(27, 26, 23, 0.10);
  padding: 2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px -18px rgba(27, 26, 23, 0.18),
    0 6px 12px -6px rgba(27, 26, 23, 0.06);
}

.testimonial__mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 0.5rem;
  display: block;
}
.testimonial__quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.4rem;
  flex: 1;
}
.testimonial__attribution {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(27, 26, 23, 0.08);
}
.testimonial__name {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 500;
}
.testimonial__detail {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =========================================================
   WAVE 12 — FAQ accordion
   ========================================================= */
.faq {
  padding-block: var(--sp-6);
}
.faq-list {
  margin-top: var(--sp-4);
  border-top: 1px solid rgba(27, 26, 23, 0.10);
}
.faq-item {
  border-bottom: 1px solid rgba(27, 26, 23, 0.10);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
  color: var(--brass-deep);
}
.faq-item summary::after {
  content: '+';
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brass-deep);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
  font-weight: 300;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item__body {
  padding: 0 0 1.6rem;
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}
.faq-item__body p { margin: 0 0 0.9rem; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body a {
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 1px;
}

/* =========================================================
   WAVE 13 — Trust strip (credentials / press / numbers)
   ========================================================= */
.trust-strip {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.trust-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 50% 50%, rgba(168, 132, 58, 0.12) 0, transparent 60%);
  pointer-events: none;
}
.trust-strip > .wrap { position: relative; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 1.2rem;
  text-align: center;
}
@media (min-width: 760px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3);
  }
}
.trust-item__num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem);
  color: var(--brass-light);
  line-height: 1;
  font-feature-settings: 'tnum';
  display: block;
  margin-bottom: 0.4rem;
}
.trust-item__label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-deep);
  font-weight: 500;
}

/* =========================================================
   WAVE 14 — Refined reveal animations with stagger
   ========================================================= */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* =========================================================
   WAVE 15 — Mobile-first refinements
   - Better hero stacking on small screens
   - Stronger mobile typography rhythm
   - Better spacing on small viewports
   ========================================================= */
@media (max-width: 600px) {
  .hero {
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-5);
  }
  .hero-grid--globe {
    gap: 1.5rem;
  }
  .hero-cta-group {
    margin-top: 1.6rem;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-meta {
    font-size: 0.78rem;
  }
  .featured,
  .process,
  .pull,
  .letter,
  .testimonials,
  .faq,
  .why-wm {
    padding-block: var(--sp-5);
  }
  .marquee {
    padding-block: 1rem;
  }
  .section-head {
    margin-bottom: var(--sp-3);
  }
  .pair-grid,
  .collection-grid {
    gap: var(--sp-3);
  }
  /* Stronger touch target on filter chips */
  .filter-chip {
    padding: 0.7rem 1.1rem;
    font-size: 0.86rem;
  }
  /* Footer flag strip wraps better on mobile */
  .flag-strip {
    gap: 0.4rem;
  }
  .flag-strip__label {
    width: 100%;
    margin-bottom: 0.4rem;
    margin-right: 0;
  }
}

/* =========================================================
   WAVE 16 — Footer bottom layout fix for narrow viewports
   ========================================================= */
@media (max-width: 540px) {
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
  }
}

/* =========================================================
   WAVE 17 — Letter form mobile fix (button wrapping)
   ========================================================= */
@media (max-width: 480px) {
  .letter-form {
    flex-direction: column;
    border: 0;
  }
  .letter-form input {
    border: 1px solid var(--paper-deep);
    margin-bottom: 0.6rem;
  }
  .letter-form button {
    width: 100%;
  }
}

/* =========================================================
   WAVE 18 — Inquire form mobile rhythm
   ========================================================= */
@media (max-width: 600px) {
  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 16px; /* Prevents iOS Safari zoom on focus */
  }
  .inquire-grid {
    padding-block: var(--sp-4);
  }
  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .form-foot .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   WAVE 19 — Page transition (subtle paper-fade on load)
   ========================================================= */
body {
  animation: wm-page-in 0.4s var(--ease) backwards;
}
@keyframes wm-page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   WAVE 20 — Refined link underline rule on inline links
   ========================================================= */
.editorial-prose a,
.faq-item__body a {
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.editorial-prose a:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

/* =========================================================
   WAVE 21 — Accessibility: reduced-motion overrides
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav__panel,
  .mobile-nav__backdrop,
  .sticky-cta,
  .reveal-stagger > *,
  .scroll-progress {
    transition: none !important;
    animation: none !important;
  }
  .reveal-stagger > * { opacity: 1; transform: none; }
  body { animation: none; }
}

/* =========================================================
   WAVE 22 — 404 / utility page styling
   ========================================================= */
.utility-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--sp-5);
}
.utility-wrap {
  max-width: 52ch;
}
.utility-num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--brass-deep);
  line-height: 1;
  margin-bottom: 1rem;
  font-feature-settings: 'tnum';
}

/* =========================================================
   WAVE 23 — Visually-hidden helper (improved)
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   WAVE 24 — Strip the bounding-box card from the globe stage
   The globe should float on the page background, not sit on
   a "specimen plate". This nullifies the card styling from
   Waves 4.2 and 4.3 while preserving the min-height that
   amCharts requires to initialise correctly.
   ========================================================= */
.globe-stage,
.globe-stage::before,
.globe-stage::after {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.globe-stage {
  padding: 0 !important;
}
.globe-stage::before,
.globe-stage::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   WAVE 25 — Hide the globe entirely on phones
   The globe JS already skips initialisation below 600px to save
   ~600KB of amCharts bandwidth. The static SVG placeholder also
   shouldn't take up vertical space on phones where the hero
   text + CTA is the conversion path. Visually hide the stage
   below 700px, keep it for tablets and desktops.
   ========================================================= */
@media (max-width: 700px) {
  .globe-stage {
    display: none !important;
  }
  /* Reclaim the hero grid space on mobile */
  .hero-grid--globe {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  /* Tighten hero text now that nothing follows it */
  .hero-text {
    max-width: none;
  }
}

/* Slightly smaller globe canvas on tablets — between 700 and 900px
   the globe was floating awkwardly with too much white space */
@media (min-width: 700px) and (max-width: 900px) {
  .globe-stage,
  .globe-canvas {
    min-height: 400px;
    max-width: 440px;
  }
}

/* =========================================================
   WAVE 26 — Mobile-first layout audit (refinements)
   Pass over every section ensuring rhythm, tap targets, and
   typography scale correctly across 320, 375, 414, 600, 768,
   1024+ viewports.
   ========================================================= */

/* ---- 320px floor: the smallest viable phone (iPhone SE 1st gen) ---- */
@media (max-width: 380px) {
  :root {
    --gutter: 1.1rem;
  }
  /* Hero typography tightens further on the smallest phones */
  h1, .hero-title, .page-head h1 {
    font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem) !important;
    line-height: 1.08 !important;
  }
  .hero-lede,
  .lede {
    font-size: 1rem !important;
    line-height: 1.55;
  }
  /* Brand mark — drop the "est. '24" sup so the nav fits */
  .brand-sup {
    display: none;
  }
  /* Card titles slightly smaller so price doesn't crowd */
  .card-title {
    font-size: 1.35rem;
  }
  .card-price {
    font-size: 1.05rem;
  }
  /* Trust-strip numbers can be tighter on very small viewports */
  .trust-item__num {
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.2rem);
  }
}

/* ---- Hero on all mobile sizes (≤600px) ---- */
@media (max-width: 600px) {
  .hero {
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-4);
  }
  .hero-text {
    max-width: 100%;
  }
  /* Eyebrow above hero h1 — tighter top margin */
  .hero-text .eyebrow {
    margin-bottom: 0.5rem;
  }
  /* H1 line-height a touch tighter to avoid wrap drift */
  .hero-title {
    line-height: 1.05 !important;
    letter-spacing: -0.03em;
  }
  /* Sticky CTA accounts for the iOS bottom-bar safe-area properly */
  .sticky-cta__label {
    font-size: 0.88rem;
    line-height: 1.2;
  }
  .sticky-cta__label strong {
    font-size: 0.62rem;
  }
  .sticky-cta__btn {
    padding: 0.7rem 0.95rem;
    font-size: 0.82rem;
  }
}

/* ---- Section-heads on mobile: tighter rhythm ---- */
@media (max-width: 760px) {
  .section-head {
    gap: 0.5rem;
    margin-bottom: var(--sp-3);
  }
  .section-head h2 {
    max-width: 22ch;
  }
  .section-head .head-side {
    margin-top: 0.4rem;
  }
}

/* ---- Why WindowMaps section — better mobile padding ---- */
@media (max-width: 600px) {
  .why-wm {
    padding-block: var(--sp-4);
  }
  .why-title {
    font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
  }
  .why-body {
    margin-top: 1.2rem;
  }
  .why-body p {
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* ---- Cartography Netherlands section — better mobile rhythm ---- */
@media (max-width: 600px) {
  .cartography {
    padding-block: var(--sp-4);
  }
  .cartography-title {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem) !important;
  }
  .cartography-lede {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .cartography-figure {
    margin-top: 1rem;
  }
}

/* ---- Marquee — gentler on mobile ---- */
@media (max-width: 600px) {
  .marquee {
    padding-block: 0.9rem;
  }
  .marquee-item {
    font-size: clamp(1.2rem, 0.9rem + 1.4vw, 1.6rem);
  }
  .marquee-track {
    gap: 2.4rem;
  }
  .marquee-item .dot {
    margin: 0 0.6rem;
  }
}

/* ---- Featured pair cards — better mobile typography ---- */
@media (max-width: 600px) {
  .card-body {
    padding: 0.95rem 1.1rem 1.15rem;
    gap: 0.7rem;
  }
  .card-title {
    font-size: 1.45rem;
  }
  .card-sub {
    font-size: 0.72rem;
  }
  .card-price {
    font-size: 1.1rem;
  }
  .card-edition {
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
    top: 0.7rem;
    right: 0.7rem;
  }
}

/* ---- Process steps — better mobile rhythm ---- */
@media (max-width: 600px) {
  .process {
    padding-block: var(--sp-4);
  }
  .process-grid {
    gap: var(--sp-3);
  }
  .step-num {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .step h3 {
    font-size: 1.15rem;
  }
  .step p {
    font-size: 0.92rem;
  }
}

/* ---- Pull quote — better mobile scale ---- */
@media (max-width: 600px) {
  .pull {
    padding-block: var(--sp-4);
  }
  .pull blockquote {
    font-size: clamp(1.4rem, 1rem + 1.8vw, 1.9rem);
    line-height: 1.25;
    max-width: 22ch;
  }
}

/* ---- Trust strip — better tile rhythm ---- */
@media (max-width: 600px) {
  .trust-strip {
    padding-block: var(--sp-3);
  }
  .trust-grid {
    gap: 1.4rem 1rem;
  }
  .trust-item__num {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  }
  .trust-item__label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
}

/* ---- Testimonials — better mobile padding ---- */
@media (max-width: 600px) {
  .testimonials {
    padding-block: var(--sp-4);
  }
  .testimonial {
    padding: 1.5rem 1.4rem;
  }
  .testimonial__mark {
    font-size: 2.6rem;
    margin-bottom: 0.2rem;
  }
  .testimonial__quote {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
  }
  .testimonial__attribution {
    padding-top: 0.8rem;
  }
}

/* ---- FAQ — better mobile rhythm + tap targets ---- */
@media (max-width: 600px) {
  .faq {
    padding-block: var(--sp-4);
  }
  .faq-item summary {
    padding: 1.15rem 0;
    font-size: 0.98rem;
    gap: 1rem;
    line-height: 1.35;
  }
  .faq-item summary::after {
    font-size: 1.4rem;
    margin-top: -0.05rem;
  }
  .faq-item__body {
    font-size: 0.94rem;
    line-height: 1.6;
    padding-bottom: 1.3rem;
  }
}

/* ---- Letter (newsletter) — better mobile rhythm ---- */
@media (max-width: 600px) {
  .letter {
    padding-block: var(--sp-4);
  }
  .letter-grid {
    gap: var(--sp-3);
  }
  .letter h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem) !important;
  }
  .letter .lede {
    font-size: 1rem;
  }
}

/* ---- Inquire form — refined mobile layout ---- */
@media (max-width: 600px) {
  .form-double {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .inquire-aside h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem) !important;
  }
  .aside-detail dt {
    font-size: 0.68rem;
  }
  .aside-detail dd {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* ---- Page head — better mobile rhythm ---- */
@media (max-width: 600px) {
  .page-head {
    padding-block: var(--sp-4) var(--sp-3);
  }
  .page-head h1 {
    line-height: 1.05 !important;
  }
  .page-head .lede {
    margin-top: 1.2rem;
  }
}

/* ---- Editorial (About) — better mobile rhythm ---- */
@media (max-width: 600px) {
  .editorial-prose h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
  }
  .editorial-prose p:first-child::first-letter {
    font-size: 3rem;
    padding: 0.25rem 0.4rem 0 0;
  }
}

/* ---- Anatomy steps (Your Window) — better mobile rhythm ---- */
@media (max-width: 600px) {
  .anatomy {
    padding-block: var(--sp-4);
  }
  .anatomy-grid {
    gap: var(--sp-4);
  }
  .anatomy-art {
    margin-bottom: 1rem;
  }
  .anatomy-item h3 {
    font-size: 1.35rem;
  }
}

/* ---- Footer — better mobile rhythm ---- */
@media (max-width: 600px) {
  .foot {
    padding-block: var(--sp-4);
  }
  .foot-grid {
    gap: var(--sp-3);
  }
  .foot-col p {
    font-size: 0.9rem;
  }
  .foot-col h4 {
    margin-bottom: 0.6rem;
  }
  .foot-col li {
    margin-bottom: 0.4rem;
  }
  .foot-col a {
    font-size: 0.92rem;
    /* Bigger touch target on mobile */
    display: inline-block;
    padding-block: 0.15rem;
  }
}

/* ---- Filters — better mobile rhythm ---- */
@media (max-width: 600px) {
  .filters {
    padding-block: var(--sp-2);
    gap: 0.4rem;
  }
  .filter-chip {
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }
}

/* =========================================================
   WAVE 27 — Hardening: ensure no horizontal scroll on mobile
   ========================================================= */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}
/* The marquee track is intentionally wider than the viewport;
   its parent already has overflow:hidden, but belt-and-braces */
.marquee {
  width: 100%;
  max-width: 100vw;
}
/* Tables (if added later) should scroll-x rather than break layout */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   WAVE 28 — Better card hover/active behaviour on touch
   The :hover lift state can stick on touch devices after a tap.
   Confine it to actual hover-capable pointers.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
  }
  .testimonial:hover {
    transform: translateY(-3px);
  }
}
@media (hover: none) {
  .card:hover,
  .testimonial:hover {
    transform: none;
    box-shadow:
      0 1px 0 rgba(255,250,235,0.5) inset,
      0 1px 0 rgba(27,26,23,0.05);
  }
  /* Active state still gives tactile feedback */
  .card:active {
    transform: translateY(-2px) scale(0.998);
    transition: transform 0.15s var(--ease);
  }
}

/* =========================================================
   WAVE 29 — Better focus-visible refinements
   Only show focus rings when keyboard-navigating, not on click.
   ========================================================= */
:focus { outline: 0; }
.keyboard-user :focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
/* But always keep focus on form fields and toggle */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible,
.mobile-nav__close:focus-visible {
  outline: 2px solid var(--brass-deep) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   WAVE 30 — Improved sticky-cta safe-area padding
   Some Android browsers don't pick up env(safe-area-inset-bottom)
   in transformed elements. Reinforce.
   ========================================================= */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky-cta {
    padding-bottom: max(0.85rem, calc(0.7rem + env(safe-area-inset-bottom)));
  }
}

/* =========================================================
   WAVE 31 — Hide the desktop nav-cta on mobile
   The header text "Begin Your Commission" is too long to fit
   alongside the brand and hamburger toggle on any phone viewport.
   The slide-in mobile nav already presents the same CTA more
   prominently as its primary action button, and the sticky-cta
   bar appears after hero scroll. Hiding the header CTA on phones
   declutters the header and gives the brand mark room to breathe.
   ========================================================= */
@media (max-width: 759px) {
  .nav-cta {
    display: none;
  }
  /* Re-balance nav layout when CTA is hidden — brand + toggle only */
  .nav-inner {
    gap: 0.5rem;
  }
}

/* =========================================================
   WAVE 32 — Cookie consent banner + preferences modal
   GDPR-style opt-in shown globally. Brand-matched: paper-soft
   ground, brass accents, editorial registration crosses,
   italic display headings, the studio's .btn vernacular.
   Slides in from the bottom with the site's standard ease.
   ========================================================= */

/* ---------- Bottom banner (first surface) ---------- */
.wm-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 65;
  pointer-events: none;
  visibility: hidden;
  max-width: 540px;
  transition: visibility 0.6s var(--ease);
}
@media (min-width: 760px) {
  .wm-consent {
    left: 1.5rem;
    right: auto;
    bottom: 1.5rem;
  }
}
.wm-consent[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.wm-consent__panel {
  background: var(--paper-soft);
  border: 1px solid rgba(27, 26, 23, 0.20);
  padding: 1.5rem 1.5rem 1.35rem;
  position: relative;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease);
  box-shadow:
    0 -4px 16px -8px rgba(27, 26, 23, 0.10),
    0 -24px 56px -20px rgba(27, 26, 23, 0.22);
}
.wm-consent[aria-hidden="false"] .wm-consent__panel {
  transform: translateY(0);
  opacity: 1;
}

/* Editorial corner crosses */
.wm-consent__panel::before,
.wm-consent__panel::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M0 5h10M5 0v10' stroke='%231B1A17' stroke-width='0.6' fill='none' stroke-opacity='0.5'/></svg>");
  background-repeat: no-repeat;
  pointer-events: none;
}
.wm-consent__panel::before { top: 9px; left: 9px; }
.wm-consent__panel::after  { bottom: 9px; right: 9px; }

.wm-consent__header { margin-bottom: 0.75rem; }
.wm-consent__header .eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
}
.wm-consent__header h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
  margin: 0.45rem 0 0 !important;
  color: var(--ink);
  max-width: 22ch !important;
  letter-spacing: -0.015em;
}
.wm-consent__header h2 em {
  color: var(--brass-deep);
  font-style: italic;
  font-weight: inherit;
}

.wm-consent__body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}
.wm-consent__body a {
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.wm-consent__body a:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.wm-consent__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.wm-consent__actions .btn {
  padding: 0.7rem 1.05rem;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}
.wm-consent__actions .btn--accept {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.wm-consent__actions .btn--accept:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--paper-soft);
}
.wm-consent__actions .btn--reject {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.wm-consent__actions .btn--reject:hover {
  background: var(--ink);
  color: var(--paper);
}
.wm-consent__link {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}
.wm-consent__link:hover,
.wm-consent__link:focus-visible {
  color: var(--brass-deep);
  border-bottom-color: var(--brass-deep);
}

@media (max-width: 520px) {
  .wm-consent { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .wm-consent__panel { padding: 1.25rem 1.25rem 1.1rem; }
  .wm-consent__header h2 { font-size: 1.25rem !important; }
  .wm-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .wm-consent__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .wm-consent__link {
    margin-left: 0;
    text-align: center;
    padding-top: 0.4rem;
  }
}

/* Hide sticky CTA + scroll-progress bar while consent banner is up
   (prevents bottom-of-screen visual clutter on phones) */
body.is-consent-pending .sticky-cta {
  transform: translateY(110%) !important;
  pointer-events: none !important;
}

/* ---------- Preferences modal (deeper surface) ---------- */
.wm-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.5s var(--ease);
}
.wm-consent-modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.wm-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 23, 0.55);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.wm-consent-modal[aria-hidden="false"] .wm-consent-modal__backdrop {
  opacity: 1;
}

.wm-consent-modal__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--brass-deep);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease);
  box-shadow:
    0 -8px 32px -12px rgba(27, 26, 23, 0.30);
}
.wm-consent-modal[aria-hidden="false"] .wm-consent-modal__panel {
  transform: translateY(0);
}

@media (min-width: 760px) {
  .wm-consent-modal__panel {
    left: 50%;
    right: auto;
    bottom: 50%;
    width: 100%;
    max-width: 680px;
    max-height: 84vh;
    border: 1px solid rgba(27, 26, 23, 0.20);
    border-top: 1px solid var(--brass-deep);
    border-radius: 3px;
    transform: translateX(-50%) translateY(60%) scale(0.96);
    box-shadow:
      0 30px 80px -30px rgba(27, 26, 23, 0.40),
      0 12px 24px -8px rgba(27, 26, 23, 0.15);
  }
  .wm-consent-modal[aria-hidden="false"] .wm-consent-modal__panel {
    transform: translateX(-50%) translateY(50%) scale(1);
  }
}

.wm-consent-modal__header {
  padding: 1.5rem var(--gutter) 1.2rem;
  border-bottom: 1px solid rgba(27, 26, 23, 0.10);
  position: relative;
}
.wm-consent-modal__header .eyebrow {
  font-size: 0.66rem;
}
.wm-consent-modal__header h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem !important;
  line-height: 1.15 !important;
  margin: 0.45rem 0 0 !important;
  font-weight: 400 !important;
  max-width: 24ch !important;
  letter-spacing: -0.018em;
}
.wm-consent-modal__header h2 em {
  color: var(--brass-deep);
  font-style: italic;
  font-weight: inherit;
}
.wm-consent-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s var(--ease);
  border-radius: 2px;
}
.wm-consent-modal__close:hover,
.wm-consent-modal__close:focus-visible {
  background: rgba(27, 26, 23, 0.06);
}
.wm-consent-modal__close svg {
  width: 16px;
  height: 16px;
}

.wm-consent-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem var(--gutter);
  -webkit-overflow-scrolling: touch;
}

.wm-consent-cat {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: start;
}
.wm-consent-cat:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.wm-consent-cat legend {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
  padding: 0;
  margin: 0;
  grid-column: 1;
  letter-spacing: -0.01em;
}
.wm-consent-cat p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  grid-column: 1;
  grid-row: 2;
  max-width: 52ch;
}
.wm-consent-cat .wm-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.wm-consent-modal__foot {
  padding: 1.1rem var(--gutter) calc(1.3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(27, 26, 23, 0.10);
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.wm-consent-modal__foot .btn {
  flex: 1;
  min-width: 160px;
  justify-content: center;
}
.wm-consent-modal__foot .btn--save {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.wm-consent-modal__foot .btn--save:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--paper-soft);
}

body.is-consent-modal-open {
  overflow: hidden;
  touch-action: none;
}

/* ---------- Brass-and-cream toggle switch ---------- */
.wm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.wm-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.wm-toggle__visual {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(27, 26, 23, 0.35);
  border-radius: 12px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  flex-shrink: 0;
}
.wm-toggle__visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--ink);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.wm-toggle input:checked ~ .wm-toggle__visual {
  background: var(--brass);
  border-color: var(--brass-deep);
}
.wm-toggle input:checked ~ .wm-toggle__visual::after {
  transform: translateY(-50%) translateX(20px);
  background: var(--paper-soft);
}
.wm-toggle input:focus-visible ~ .wm-toggle__visual {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}
.wm-toggle__label {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  min-width: 2.8em;
}
.wm-toggle input:checked ~ .wm-toggle__label {
  color: var(--brass-deep);
}
/* Disabled (strictly necessary always on) */
.wm-toggle.is-disabled {
  cursor: not-allowed;
}
.wm-toggle.is-disabled .wm-toggle__visual {
  background: var(--brass);
  border-color: var(--brass-deep);
  opacity: 0.6;
}
.wm-toggle.is-disabled .wm-toggle__visual::after {
  transform: translateY(-50%) translateX(20px);
  background: var(--paper-soft);
}
.wm-toggle.is-disabled .wm-toggle__label {
  color: var(--ink-mute);
  opacity: 0.7;
}

/* ---------- Footer "Manage cookies" + "Do not sell" links ---------- */
.foot-legal {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(27, 26, 23, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.foot-legal a,
.foot-legal button {
  color: var(--ink-mute);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.foot-legal a:hover,
.foot-legal button:hover,
.foot-legal a:focus-visible,
.foot-legal button:focus-visible {
  color: var(--brass-deep);
  border-bottom-color: var(--brass-deep);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wm-consent,
  .wm-consent__panel,
  .wm-consent-modal,
  .wm-consent-modal__panel,
  .wm-consent-modal__backdrop,
  .wm-toggle__visual,
  .wm-toggle__visual::after {
    transition: none !important;
    animation: none !important;
  }
}
