/* Self-hosted fonts (was Google Fonts) — latin + latin-ext, variable woff2. */
@font-face{font-family:'Charis SIL';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/charis-sil-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Charis SIL';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/charis-sil-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Charis SIL';font-style:italic;font-weight:700;font-display:swap;src:url('/assets/fonts/charis-sil-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Charis SIL';font-style:italic;font-weight:700;font-display:swap;src:url('/assets/fonts/charis-sil-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Charis SIL';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/charis-sil-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Charis SIL';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/charis-sil-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Charis SIL';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/charis-sil-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Charis SIL';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/charis-sil-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/hanken-grotesk-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/hanken-grotesk-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/hanken-grotesk-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/hanken-grotesk-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/hanken-grotesk-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/hanken-grotesk-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/hanken-grotesk-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/hanken-grotesk-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Curtains Newcastle — design system.
   The workroom ledger: calico ground, ink voice, brass thread.
   Palette + motifs come from brand-kit (swatch emblem, pinked edge, wave track).
   Fonts: Charis SIL (serif voice, matches the Charter wordmark) + Hanken Grotesk (labels/UI). */

:root {
  --calico: #F6F1E7;
  --voile: #FBF8F1;
  --oat: #EDE5D3;
  --oat-deep: #E2D6BE;
  --ink: #262119;
  --ink-soft: #4A4237;
  --ink-faint: #6E6455;
  --brass: #9C7C42;        /* ornament, rules, marks */
  --brass-deep: #7A5F2E;   /* brass as TEXT on calico (AA) */
  --brass-lift: #C8A968;   /* brass on ink surfaces */
  --line: rgba(38, 33, 25, 0.16);
  --line-strong: rgba(38, 33, 25, 0.34);
  --serif: "Charis SIL", "Charter", Georgia, serif;
  --sans: "Hanken Grotesk", "Gill Sans", "Trebuchet MS", sans-serif;
  --measure: 66ch;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--calico) url("/assets/brand/textures/calico-whisper.webp") repeat-y top center / 100% auto;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
::placeholder { color: rgba(38, 33, 25, 0.32); }
a { color: var(--brass-deep); text-decoration-color: rgba(156, 124, 66, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.14; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.4rem; }
li { margin-bottom: 0.45em; }

/* content lists take the brand bullet */
.prose ul { list-style: none; padding-left: 1.5rem; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: -1.5rem; top: 0.52em;
  width: 0.72em; height: 0.72em;
  background: url("/assets/brand/micro/bullet.svg") no-repeat center / contain;
}

/* ---------- shared atoms ---------- */
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 52rem; margin-inline: auto; padding-inline: var(--pad); }

.kicker {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-deep);
  display: inline-flex; align-items: center; gap: 0.65rem; margin: 0 0 1rem;
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--brass); flex: 0 0 auto; }
.on-ink .kicker, .kicker.on-ink { color: var(--brass-lift); }
.on-ink .kicker::before { background: var(--brass-lift); }

.lede { font-size: clamp(1.12rem, 1.9vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.small { font-size: 0.9rem; color: var(--ink-faint); }

/* selvedge rule: the woven edge, drawn as a double hairline with brass stitches */
.selvedge {
  border: 0; height: 7px; margin: 2.6rem 0; max-width: 20rem;
  background:
    repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 14px) center / 100% 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top / 100% 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom / 100% 1px no-repeat;
}
.selvedge.center { margin-inline: auto; }

/* buttons — Hanken, pill, ink or outline. Explicit colour beside every container
   anchor rule below (the scoped-anchor trap). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--calico); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { color: var(--calico); background: #3A332A; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(38, 33, 25, 0.18); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(38, 33, 25, 0.06); color: var(--ink); box-shadow: none; }
.on-ink .btn, .btn.reversed { background: var(--calico); color: var(--ink); border-color: var(--calico); }
.on-ink .btn:hover, .btn.reversed:hover { background: var(--voile); color: var(--ink); }
.on-ink .btn.ghost { background: transparent; color: var(--calico); border-color: rgba(246, 241, 231, 0.6); }
.on-ink .btn.ghost:hover { background: rgba(246, 241, 231, 0.1); color: var(--calico); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* fabric swatch chips — the brand's own tag element: a pinked-edge cloth swatch.
   Transparency of the chip mirrors the fabric it names. */
.swatch-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.42rem 0.9rem; color: var(--ink);
  background: var(--oat);
  clip-path: polygon(0% 6px, 3% 0%, 6% 6px, 9% 0%, 12% 6px, 15% 0%, 18% 6px, 21% 0%, 24% 6px, 27% 0%, 30% 6px, 33% 0%, 36% 6px, 39% 0%, 42% 6px, 45% 0%, 48% 6px, 51% 0%, 54% 6px, 57% 0%, 60% 6px, 63% 0%, 66% 6px, 69% 0%, 72% 6px, 75% 0%, 78% 6px, 81% 0%, 84% 6px, 87% 0%, 90% 6px, 93% 0%, 96% 6px, 100% 0%, 100% calc(100% - 6px), 97% 100%, 94% calc(100% - 6px), 91% 100%, 88% calc(100% - 6px), 85% 100%, 82% calc(100% - 6px), 79% 100%, 76% calc(100% - 6px), 73% 100%, 70% calc(100% - 6px), 67% 100%, 64% calc(100% - 6px), 61% 100%, 58% calc(100% - 6px), 55% 100%, 52% calc(100% - 6px), 49% 100%, 46% calc(100% - 6px), 43% 100%, 40% calc(100% - 6px), 37% 100%, 34% calc(100% - 6px), 31% 100%, 28% calc(100% - 6px), 25% 100%, 22% calc(100% - 6px), 19% 100%, 16% calc(100% - 6px), 13% 100%, 10% calc(100% - 6px), 7% 100%, 4% calc(100% - 6px), 0% 100%);
}
.swatch-chip .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brass); background: transparent; flex: 0 0 auto; }
.swatch-chip.sheer { background: #FDFBF6; }
.swatch-chip.filter { background: #F0E9DA; }
.swatch-chip.blockout { background: var(--ink); color: var(--calico); }
.swatch-chip.blockout .dot { border-color: var(--brass-lift); }
.swatch-chip.thermal { background: #D9CBAB; }

/* ---------- header ---------- */
.selvedge-strip {
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.55) 0 7px, transparent 7px 15px) center / 100% 2px no-repeat,
    var(--ink);
}
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 0.8rem;
}
.site-head .logo { display: block; flex: 0 0 auto; }
.site-head .logo img { height: 46px; width: auto; transition: transform 0.4s var(--ease); }
.site-head .logo:hover img { transform: rotate(-1.2deg); transform-origin: 14% 30%; }
.nav-primary { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
.nav-primary a:not(.btn) {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-primary a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--brass); }
.nav-primary a.btn { color: var(--calico); padding: 0.55rem 1.2rem; font-size: 0.84rem; }
.nav-primary a.btn:hover { color: var(--calico); }

/* active page underline */
body[data-page="curtains"] .nav-primary a[data-nav="curtains"],
body[data-page="blinds"] .nav-primary a[data-nav="blinds"],
body[data-page="areas"] .nav-primary a[data-nav="areas"],
body[data-page="guides"] .nav-primary a[data-nav="guides"],
body[data-page="planner"] .nav-primary a[data-nav="planner"],
body[data-page="about"] .nav-primary a[data-nav="about"] {
  color: var(--ink); border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* mobile drawer: the curtain draws across from the right, pinked leading edge */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(21rem, 88vw); z-index: 80;
  background: var(--ink) url("/assets/brand/textures/ink-drape.webp") center / cover;
  color: var(--calico);
  padding: 4.5rem 2rem 2rem;
  transform: translateX(104%);
  transition: transform 0.42s var(--ease);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.drawer::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -13px; width: 14px;
  background: url("/assets/brand/textures/pinked-edge-ink.svg") repeat-y left center;
  transform: rotate(180deg);
}
.drawer.open { transform: translateX(0); }
.drawer a:not(.btn) {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; text-decoration: none;
  color: var(--calico); padding: 0.55rem 0; border-bottom: 1px solid rgba(246, 241, 231, 0.14);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.drawer a:not(.btn):hover { color: var(--brass-lift); transform: translateX(0.4rem); }
.drawer .btn { margin-top: 1.4rem; background: var(--calico); color: var(--ink); border-color: var(--calico); }
.drawer .btn:hover { color: var(--ink); }
.drawer .drawer-close {
  position: absolute; top: 1.1rem; right: 1.1rem; background: none; border: 0;
  color: var(--calico); cursor: pointer; padding: 0.4rem;
}
.drawer .drawer-close svg { width: 24px; height: 24px; }
.drawer .drawer-mark { margin-top: auto; opacity: 0.55; width: 40px; }
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(38, 33, 25, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* keep any late-loading chat widget below the drawer/scrim layer */
l2-chat { position: relative; z-index: 65; }

@media (max-width: 900px) {
  .nav-primary { display: none; }
  .nav-toggle { display: block; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--calico); padding: 0.7rem 1.2rem;
  font-family: var(--sans);
}
.skip-link:focus { left: 0; color: var(--calico); }

/* ---------- bands + pinked edges ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band.tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.band.voile { background: var(--voile); }
.band.oat { background: var(--oat) url("/assets/brand/textures/calico-whisper.webp") top center / 100% auto; background-blend-mode: multiply; }
.band.ink-band {
  background: var(--ink) url("/assets/brand/textures/ink-drape.webp") center / cover;
  color: var(--calico);
}
.band.ink-band h2, .band.ink-band h3 { color: var(--calico); }
.band.ink-band p { color: rgba(246, 241, 231, 0.86); }
.band.ink-band a:not(.btn) { color: var(--brass-lift); }
.band.ink-band a:not(.btn):hover { color: var(--calico); }

/* pinked joins: the cloth edge between a light band and an ink band */
.pinked-top { position: relative; }
.pinked-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: url("/assets/brand/textures/pinked-edge-ink.svg") repeat-x bottom center;
}
.pinked-bottom { position: relative; }
.pinked-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; z-index: 2;
  background: url("/assets/brand/textures/pinked-edge-ink.svg") repeat-x top center;
  transform: rotate(180deg);
}

/* wave-track motif divider */
.wave-divider { height: 46px; background: url("/assets/brand/textures/wave-track.svg") repeat-x center / auto 100%; opacity: 0.8; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; }
.hero .grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero .copy h1 { max-width: 13em; }
.hero .frame { position: relative; }
.hero .frame img {
  width: 100%; height: clamp(20rem, 46vw, 34rem); object-fit: cover;
  border: 1px solid var(--line);
}
/* the hem: a folded caption strip pinned to the image */
.hem-caption {
  position: absolute; left: 0; bottom: clamp(1rem, 3vw, 2rem);
  background: var(--ink); color: var(--calico);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem; max-width: 85%;
}
.hem-caption::after {
  content: ""; position: absolute; right: -8px; top: 0; border-style: solid;
  border-width: 0 0 100% 8px; border-color: transparent transparent transparent var(--ink);
  height: 100%; box-sizing: border-box;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero .chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; align-items: center; }
.hero .chip-row .lbl { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-right: 0.3rem; }
@media (max-width: 820px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero .frame { order: -1; margin-inline: calc(var(--pad) * -1); }
  .hero .frame img { border-inline: 0; height: clamp(14rem, 52vw, 22rem); }
  .hem-caption { bottom: 0.9rem; }
}

/* ---------- editorial rows (image + text alternating) ---------- */
.editorial-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(1.8rem, 4vw, 3rem);
}
.editorial-row + .editorial-row { border-top: 1px solid var(--line); }
.editorial-row.flip .media { order: 2; }
.editorial-row .media img { width: 100%; height: clamp(15rem, 30vw, 22rem); object-fit: cover; border: 1px solid var(--line); }
.editorial-row .media { position: relative; }
.editorial-row .chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 1.1rem; }
@media (max-width: 760px) {
  .editorial-row { grid-template-columns: 1fr; }
  .editorial-row.flip .media { order: 0; }
}

/* ---------- cards (areas, guides) : ledger cards with an eyelet ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.3rem; }
.ledger-card {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--voile); border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.4rem; text-decoration: none; color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ledger-card::before {
  content: ""; position: absolute; top: 0.85rem; left: 0.85rem;
  width: 11px; height: 11px; border-radius: 50%;
  border: 3px solid var(--brass); background: var(--calico);
}
.ledger-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(38, 33, 25, 0.12); border-color: var(--line-strong); color: var(--ink); }
.ledger-card h3 { margin: 0.4rem 0 0.1rem; font-size: 1.22rem; }
.ledger-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.ledger-card .go {
  margin-top: auto; padding-top: 0.8rem; font-family: var(--sans); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep);
}
.ledger-card:hover .go { color: var(--ink); }
.ledger-card img.icon { width: 54px; height: 54px; object-fit: contain; }

/* ---------- how-it-works steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 0.4rem; }
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--brass);
  line-height: 1; display: block; margin-bottom: 0.4rem;
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.3em; }
.step p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- quote ---------- */
.pull-quote {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
  max-width: 42rem; margin: 2.2rem auto; font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic; line-height: 1.5;
}
.pull-quote::before { content: ""; width: 40px; height: 40px; background: url("/assets/brand/micro/quote.svg") no-repeat center / contain; margin-top: 0.3rem; }

/* ---------- page hero (inner pages) ---------- */
.page-head { padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.4rem); }
.page-head .crumbs { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 1.3rem; }
.page-head .crumbs a { color: var(--ink-faint); text-decoration: none; }
.page-head .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { max-width: 17em; }

/* figure treatment */
figure { margin: 2rem 0; }
figure img { width: 100%; object-fit: cover; border: 1px solid var(--line); }
figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); padding-top: 0.55rem; letter-spacing: 0.03em; }

/* two-up figures */
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 640px) { .fig-pair { grid-template-columns: 1fr; } }

/* ---------- definition table (guides) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin: 1.6rem 0; }
.spec-table th {
  text-align: left; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-deep); padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--line-strong);
}
.spec-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr td:first-child { font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* glossary */
.glossary dt { font-weight: 700; font-size: 1.12rem; margin-top: 1.5rem; }
.glossary dt .term-tag { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); margin-left: 0.6rem; }
.glossary dd { margin: 0.3rem 0 0; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); max-width: 46rem; }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.05rem 0.2rem; font-weight: 700; font-size: 1.06rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--brass-deep);
  transition: transform 0.3s var(--ease); flex: 0 0 auto;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 0.2rem 1.2rem; color: var(--ink-soft); }

/* ---------- enquiry form: the measure sheet ---------- */
.measure-sheet {
  background: var(--voile); border: 1px solid var(--line-strong);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  position: relative;
}
.measure-sheet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 7px, transparent 7px 16px);
}
.measure-sheet .sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.8rem; margin-bottom: 1.6rem; }
.measure-sheet .sheet-head .no { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field label .opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong);
  padding: 0.55rem 0.15rem; border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field select { appearance: none; background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C7C42' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 0.4rem center; padding-right: 2rem; }
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.88rem; color: var(--ink-faint); max-width: 40rem; }
.lead-result { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; margin-top: 1.4rem; border: 1px solid var(--line-strong); background: var(--calico); }
.lead-result img { width: 56px; height: 56px; flex: 0 0 auto; }
.lead-result p { margin: 0; }
.lead-result.err { border-color: #A04A2A; color: #7C3616; }

/* ---------- planner ---------- */
.planner-shell { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
.planner-preview { position: sticky; top: 5.2rem; }
@media (max-width: 880px) { .planner-shell { grid-template-columns: 1fr; } .planner-preview { order: -1; position: static; } }
.planner-preview svg { width: 100%; height: auto; border: 1px solid var(--line-strong); background: var(--voile); }
.planner-preview .toggle-row { display: flex; gap: 0.6rem; margin-top: 0.9rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.daynight { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.daynight button {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.daynight button[aria-pressed="true"] { background: var(--ink); color: var(--calico); }
.verdict { border: 1px solid var(--line-strong); background: var(--calico); padding: 1.1rem 1.2rem; margin-top: 1rem; font-size: 0.97rem; }
.verdict strong { display: block; margin-bottom: 0.25rem; }

.opt-group { margin-bottom: 1.9rem; }
.opt-group .g-label { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.opt-group .g-label::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.opt-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.opt {
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  padding: 0.55rem 1.05rem; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--voile); color: var(--ink-soft);
  transition: all 0.22s var(--ease);
}
.opt:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--calico); }
.opt.heading-opt { display: grid; justify-items: center; gap: 0.35rem; border-radius: 6px; padding: 0.8rem 1rem 0.65rem; }
.opt.heading-opt svg { width: 74px; height: 30px; display: block; }
.opt.heading-opt svg .profile { stroke: currentColor; }

.schedule { border: 1px solid var(--line-strong); background: var(--voile); }
.schedule .sched-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem; border-bottom: 2px solid var(--ink); }
.schedule .sched-head h3 { margin: 0; font-size: 1.05rem; }
.schedule ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); margin: 0; font-size: 0.95rem; }
.schedule li .rm { font-weight: 700; }
.schedule li .spec { color: var(--ink-soft); flex: 1; }
.schedule li button { background: none; border: 0; color: var(--brass-deep); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.schedule li button:hover { color: var(--ink); text-decoration: underline; }
.schedule .sched-empty { padding: 1.6rem 1.2rem; display: flex; gap: 1rem; align-items: center; color: var(--ink-faint); font-size: 0.95rem; }
.schedule .sched-empty img { width: 60px; height: 60px; }
.schedule .sched-actions { padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- areas ---------- */
.area-facts { display: flex; flex-wrap: wrap; gap: 2.2rem; padding: 1.4rem 0; border-block: 1px solid var(--line); margin: 1.8rem 0; }
.area-facts .fact .v { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; display: block; }
.area-facts .fact .k { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink) url("/assets/brand/textures/ink-drape.webp") center / cover;
  color: rgba(246, 241, 231, 0.82); margin-top: 0; position: relative;
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: url("/assets/brand/textures/pinked-edge-ink.svg") repeat-x bottom center;
}
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; padding-block: 3.4rem 2.4rem; }
.site-foot h4 { color: var(--brass-lift); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.site-foot a:not(.btn) { color: rgba(246, 241, 231, 0.82); text-decoration: none; }
.site-foot a:not(.btn):hover { color: var(--calico); text-decoration: underline; text-decoration-color: var(--brass-lift); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.site-foot .brand-col img { width: 190px; margin-bottom: 1rem; }
.site-foot .brand-col p { font-size: 0.92rem; color: rgba(246, 241, 231, 0.66); max-width: 30ch; }
.site-foot .legal {
  border-top: 1px solid rgba(246, 241, 231, 0.16); padding-block: 1.3rem 1.6rem;
  font-size: 0.82rem; color: rgba(246, 241, 231, 0.55);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; justify-content: space-between;
}
.site-foot .legal a { color: rgba(246, 241, 231, 0.66); }
@media (max-width: 820px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* enquiry band (pre-footer) */
.measure-band { text-align: center; }
.measure-band .inner { max-width: 44rem; margin-inline: auto; }
.measure-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.measure-band .btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- reveal motion ---------- */
/* Rests FULLY VISIBLE. The hidden-then-settle state is gated behind .reveal-anim,
   which a synchronous head guard sets before first paint only when motion is welcome
   and IntersectionObserver exists. No-JS visitors and crawlers therefore see every
   section; the fade-in is a progressive enhancement, never a prerequisite to read. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-anim .reveal { opacity: 0; transform: translateY(14px); }
.reveal-anim .reveal.in { opacity: 1; transform: none; }

/* the hero sheer sway: an almost-subliminal breath in the hem caption's parent image */
@keyframes sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ---------- 404 ---------- */
.lost { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.lost img { width: 220px; margin-inline: auto; }

/* ---------- print: the planner schedule is a leave-behind ---------- */
@media print {
  .site-head, .site-foot, .measure-band, .selvedge-strip, .drawer, .scrim, .nav-toggle,
  .planner-controls, .daynight, .btn, .wave-divider { display: none !important; }
  body { background: #fff; }
  .planner-shell { grid-template-columns: 1fr; }
}

/* ---------- node-motion pass: eased affordances + signature ---------- */
/* Ease the hovers the hand-build left snapping. Colour/decoration only, short + crisp,
   so links feel drawn rather than flicked. transform/opacity stay the animated axes;
   these text-colour eases are cheap and never touch layout. Element-scoped rules that
   already declare their own transition (nav, cards, buttons, pills) are untouched. */
a { transition: color 0.16s var(--ease), text-decoration-color 0.16s var(--ease); }
.ledger-card .go { transition: color 0.3s var(--ease); }
.page-head .crumbs a { transition: color 0.16s var(--ease); }
.site-foot a:not(.btn) { transition: color 0.16s var(--ease), text-decoration-color 0.16s var(--ease); }
.schedule li button { transition: color 0.16s var(--ease); }

/* focus-visible parity: a keyboard visitor reaching a ledger card gets the same lift
   the mouse gets, so the path deeper into the site reads the same by keyboard as by
   hand. The global brass :focus-visible outline is preserved (added, not replaced). */
.ledger-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(38, 33, 25, 0.12); border-color: var(--line-strong); }
.ledger-card:focus-visible .go { color: var(--ink); }

/* THE DRAW, the signature. The primary enquiry CTA fills the way a curtain is drawn
   along its track: an inner panel sweeps across (transform: scaleX, GPU only) behind a
   crisp label, a fine brass thread riding its leading edge. It lands ONLY on the solid
   primary buttons (not the ghost secondaries), so the eye is pulled to "Book a free
   measure" wherever it sits. The hover END-state matches the design's existing hover
   colour exactly; the draw only changes how that colour ARRIVES. Armed by motion.js
   (.motion-on) and steered edge-first by pointer, so with no JS the original fade holds
   and nothing half-draws. transform-origin + thread side come from motion.js vars. */
.motion-on .btn:not(.ghost) {
  position: relative; overflow: hidden;
  --draw-o: left center; --draw-tr: 2px; --draw-tl: 0px; --draw-thread: var(--brass-lift);
}
.motion-on .btn:not(.ghost)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #3A332A;
  border-right: var(--draw-tr) solid var(--draw-thread);
  border-left: var(--draw-tl) solid var(--draw-thread);
  transform: scaleX(0); transform-origin: var(--draw-o);
  transition: transform 0.18s var(--ease);
}
.motion-on .btn:not(.ghost):hover::before,
.motion-on .btn:not(.ghost):focus-visible::before { transform: scaleX(1); }
/* hold the base fill under .motion-on so the draw is the only colour change that reads */
.motion-on .btn:not(.ghost):hover { background: var(--ink); }
/* on-ink / reversed primaries are light: the panel draws in voile with a brass-deep
   thread, matching their existing light hover end-state instead of the dark one */
.motion-on .on-ink .btn:not(.ghost)::before,
.motion-on .btn.reversed:not(.ghost)::before { background: var(--voile); }
.motion-on .on-ink .btn:not(.ghost),
.motion-on .btn.reversed:not(.ghost) { --draw-thread: var(--brass-deep); }
.motion-on .on-ink .btn:not(.ghost):hover,
.motion-on .btn.reversed:not(.ghost):hover { background: var(--calico); }

/* ---------- reduced motion floor ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .drawer { transition: none; }
}
