/* ==========================================================================
   JED Designs: "The Creative Table"
   Phase 1: layout, structure, colour, type, imagery, responsive.
   There are no transitions or keyframes in this file on purpose. The only
   motion on the site is the transformation films and the controls that
   present them. Phase 2 hooks: [data-reveal] and [data-reveal-group].
   ========================================================================== */

:root {
  /* Ground */
  --paper: #FAF1E1;
  --paper-warm: #F6EAD6;
  --linen: #F1E2CC;
  --card: #FFFCF6;
  --white: #FDF8EE;

  /* Ink */
  --ink: #2B1A21;
  --ink-soft: #4D3A40;
  --burgundy: #5C1F38;
  --burgundy-deep: #44152A;
  --burgundy-night: #2F0E1D;

  /* Accents */
  --sage: #93A382;
  --sage-deep: #4E5F43;
  --sage-wash: #DEDFCB;
  --gold: #B38D3E;
  --gold-deep: #8F6C28;
  --gold-soft: #D8BC7C;
  --gold-pale: #EBD9AE;

  /* Cloth and paint for the table pieces, the navigation samples and the palette card */
  --sw1: #EADBC3; --sw2: #6B2340; --sw3: #8FA07D;
  --p1: #6B2340; --p2: #8FA07D; --p3: #E6D6B8; --p4: #B8923F;
  --c1: #E9DAC0; --c2: #C9D1B5; --c3: #EBD3C8; --c4: #E6D09C; --c5: #DCCBB2;

  --line: color-mix(in srgb, var(--burgundy) 20%, transparent);
  --line-strong: color-mix(in srgb, var(--burgundy-deep) 66%, transparent);
  --line-light: rgba(248, 242, 231, 0.24);
  --focus: #1F5C4A;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --section: clamp(56px, 7.4vw, 104px);
  --radius: 14px;

  --shadow-card: 0 1px 2px rgba(58, 30, 22, 0.08), 0 10px 24px -16px rgba(58, 30, 22, 0.26);

  /* Paper, drawn in code: fine grain plus a slow mottle */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .14 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .36 0 0 0 0 .2 0 0 0 .14 -.02'/%3E%3C/filter%3E%3Crect width='700' height='700' filter='url(%23m)'/%3E%3C/svg%3E");
  /* The torn outline of a sheet, used as a mask on the boards */
  --torn-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='450' viewBox='0 0 800 450' preserveAspectRatio='none'%3E%3Cfilter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='3' seed='8' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='9' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='6' y='6' width='788' height='438' filter='url(%23t)'/%3E%3C/svg%3E");
  /* Woven cloth, light and dark, for labels, swatches and tape */
  --cloth-weave: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 3px);
  /* The ragged ends of a strip torn off a roll of tape */
  --torn-ends: polygon(3px 0, 100% 0, calc(100% - 5px) 20%, 100% 40%, calc(100% - 4px) 60%, 100% 80%, calc(100% - 5px) 100%, 0 100%, 5px 80%, 0 60%, 4px 40%, 0 20%);
  --tape: rgba(228, 204, 146, 0.9);
  /* Linen weave for the table sections */
  --weave: repeating-linear-gradient(0deg, rgba(110, 80, 50, 0.055) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(110, 80, 50, 0.045) 0 1px, transparent 1px 4px);
}

/* --------------------------------------------------------------------------
   Palettes. The default above is Burgundy and Sage, from the owner's concept.
   Each of the others re-dresses the same table from one of her boards or her
   logo. Token names keep the default's words: --burgundy is "the main colour",
   --sage "the second colour". Brass (the --gold family) stays in every palette.
   contrast_check.py reads these blocks and checks every palette.
   -------------------------------------------------------------------------- */
html[data-theme="royal"] {
  --paper: #FAF4EC; --paper-warm: #F4ECE4; --linen: #EFE5DA; --white: #FDF9F2;
  --ink: #251A2E; --ink-soft: #4A3D55;
  --burgundy: #522976; --burgundy-deep: #3A1B57; --burgundy-night: #241236;
  --sage: #6BA590; --sage-deep: #166451; --sage-wash: #DBE7DE;
  --focus: #145D4B;
  --sw1: #EDE2CF; --sw2: #522976; --sw3: #166451;
  --p1: #522976; --p2: #166451; --p3: #CDB4E0; --p4: #B8923F;
  --c1: #E9DAC0; --c2: #CFE3D8; --c3: #DFCEE9; --c4: #E6D09C; --c5: #D9CCE0;
}
html[data-theme="teal"] {
  --paper: #F8F0E3; --paper-warm: #F1E6D3; --linen: #EADBC4; --white: #FCF7EC;
  --ink: #1C2626; --ink-soft: #3F4A4A;
  --burgundy: #1F4E4F; --burgundy-deep: #163A3B; --burgundy-night: #0F2A2B;
  --sage: #B5774F; --sage-deep: #7A3F22; --sage-wash: #EAD8BF;
  --focus: #8A4324;
  --sw1: #E9DCC6; --sw2: #1F4E4F; --sw3: #9A4A2B;
  --p1: #1F4E4F; --p2: #9A4A2B; --p3: #DDBA98; --p4: #B8923F;
  --c1: #E3D2B8; --c2: #CFE0DC; --c3: #E9CDB8; --c4: #E6D09C; --c5: #D8C7AE;
}
html[data-theme="cobalt"] {
  --paper: #FBF3E8; --paper-warm: #F6EADA; --linen: #F1E0CB; --white: #FEF9F0;
  --ink: #1A2238; --ink-soft: #3F4760;
  --burgundy: #1B3A7A; --burgundy-deep: #142B5C; --burgundy-night: #0E1E42;
  --sage: #EE9A63; --sage-deep: #9A4A1B; --sage-wash: #F7DEC6;
  --focus: #9A4A1B;
  --sw1: #E5D5BF; --sw2: #1B3A7A; --sw3: #EE9A63;
  --p1: #1B3A7A; --p2: #EE9A63; --p3: #E5D5BF; --p4: #B9B7B2;
  --c1: #E9DAC0; --c2: #D3DDF0; --c3: #F6D6BD; --c4: #E6D09C; --c5: #DDD3C4;
}
html[data-theme="walnut"] {
  --paper: #F7F1E4; --paper-warm: #F0E8D6; --linen: #E8DEC8; --white: #FCF8EE;
  --ink: #262419; --ink-soft: #4A4636;
  --burgundy: #3F5238; --burgundy-deep: #2D3D28; --burgundy-night: #1F2A1C;
  --sage: #9A6A48; --sage-deep: #5A3A26; --sage-wash: #E5D7BC;
  --focus: #4E2438;
  --sw1: #CBB095; --sw2: #3F5238; --sw3: #4E2438;
  --p1: #3F5238; --p2: #5A3A26; --p3: #4E2438; --p4: #B0893F;
  --c1: #E6DAC2; --c2: #CCD5BB; --c3: #DCC9B0; --c4: #E6D09C; --c5: #D9C6D0;
}
html[data-theme="ocean"] {
  --paper: #FBF5EC; --paper-warm: #F5ECE0; --linen: #EFE3D2; --white: #FEFAF2;
  --ink: #1E2A30; --ink-soft: #44525A;
  --burgundy: #2C5F6E; --burgundy-deep: #1F4753; --burgundy-night: #163540;
  --sage: #E08E7C; --sage-deep: #9B4636; --sage-wash: #E9DFEC;
  --focus: #9B4636;
  --sw1: #B9A3C4; --sw2: #2C5F6E; --sw3: #E08E7C;
  --p1: #2C5F6E; --p2: #E08E7C; --p3: #B9A3C4; --p4: #D7A36D;
  --c1: #EADCC6; --c2: #CFE4E6; --c3: #F3D3CA; --c4: #DCCFE6; --c5: #D6E0C6;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain), var(--mottle);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--burgundy-deep);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.02; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; }

a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-defs { position: absolute; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--burgundy-deep);
  color: var(--paper);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons, chips, links
   -------------------------------------------------------------------------- */
/* Controls are things on the worktable, not interface chrome.
   - A stitched cloth label is something to press: burgundy for the main action, cream linen for the rest.
   - A strip of masking tape is something to switch: it turns burgundy when it is the one in use.
   - A print with a strip of burgundy tape on it is the one being shown.
   They are still real buttons and links underneath. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(58, 30, 22, 0.3)) drop-shadow(0 7px 8px rgba(58, 30, 22, 0.2));
}
/* the cloth */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--cloth-weave);
  filter: url(#fray);
}
/* the stitching */
.btn::after {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: -1;
  border: 1.5px dashed;
  pointer-events: none;
}
.btn--sm { min-height: 46px; padding: 10px 22px; font-size: 1.1875rem; }
.btn--sm::after { inset: 5px; }

.btn--primary { color: var(--paper); }
.btn--primary::before { background-color: var(--burgundy); }
.btn--primary::after { border-color: var(--gold-soft); }
.btn--primary:hover::before { background-color: var(--burgundy-deep); }

.btn--ghost { color: var(--burgundy-deep); }
.btn--ghost::before { background-color: #F1E3C9; }
.btn--ghost::after { border-color: color-mix(in srgb, var(--burgundy-deep) 74%, transparent); }
.btn--ghost:hover::before { background-color: #FBF2DF; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

/* Masking tape: filters, switches and step markers */
.chip,
.reel-toggle,
.reel-mode,
.step-tab,
.choice-grid--chips .choice-btn {
  position: relative;
  isolation: isolate;
  flex: none;
  min-height: 46px;
  min-width: 48px;
  padding: 8px 20px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
  filter: drop-shadow(0 1px 1px rgba(58, 30, 22, 0.3));
}
.chip::before,
.reel-toggle::before,
.reel-mode::before,
.step-tab::before,
.choice-grid--chips .choice-btn::before {
  content: '';
  position: absolute;
  inset: 3px 0;
  z-index: -1;
  background-color: var(--tape);
  background-image: var(--grain);
  clip-path: var(--torn-ends);
}
.chip:hover::before,
.reel-toggle:hover::before,
.reel-mode:hover::before,
.step-tab:hover::before,
.choice-grid--chips .choice-btn:hover::before { background-color: #EFDCA9; }

/* the strip in use: burgundy cloth tape */
.chip.is-active,
.chip[aria-pressed="true"],
.reel-toggle[aria-pressed="true"],
.reel-mode[aria-pressed="true"],
.step-tab.is-current,
.choice-grid--chips .choice-btn[aria-pressed="true"] { color: var(--paper); }
.chip.is-active::before,
.chip[aria-pressed="true"]::before,
.reel-toggle[aria-pressed="true"]::before,
.reel-mode[aria-pressed="true"]::before,
.step-tab.is-current::before,
.choice-grid--chips .choice-btn[aria-pressed="true"]::before {
  background-color: var(--burgundy);
  background-image: var(--cloth-weave);
}
/* strips are stuck down by hand, not ruled */
.filter-bar .chip:nth-child(odd) { transform: rotate(-1.1deg); }
.filter-bar .chip:nth-child(even) { transform: rotate(0.8deg); }

.text-link,
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--burgundy);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.text-link:hover,
.link-btn:hover { color: var(--burgundy-deep); text-decoration-color: var(--burgundy); }

/* A photograph or drawing lying on the table: white paper with a torn edge.
   The paper is a pseudo-element so the edge filter never touches the picture. */
.print {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 10px;
}
.print::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--white);
  background-image: var(--grain);
  filter: url(#deckle) drop-shadow(0 1px 1px rgba(58, 30, 22, 0.22)) drop-shadow(0 14px 16px rgba(58, 30, 22, 0.2));
}
.print img { width: 100%; }
.print--b::before,
.story-card:nth-child(even)::before { filter: url(#deckle-b) drop-shadow(0 1px 1px rgba(58, 30, 22, 0.22)) drop-shadow(-4px 14px 16px rgba(58, 30, 22, 0.2)); }

/* A photograph in a clean cream mat with a hairline. Drawings and the film keep torn paper. */
.mat {
  display: block;
  padding: 12px;
  background-color: #FCF6EA;
  background-image: var(--grain);
  border: 1px solid color-mix(in srgb, var(--burgundy) 16%, transparent);
  box-shadow: 0 1px 2px rgba(58, 30, 22, 0.14), 0 16px 24px -14px rgba(58, 30, 22, 0.34);
}
.mat img { display: block; width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A sheet with a torn outline and no mat: the boards already carry their own ground */
.torn { display: block; filter: drop-shadow(0 2px 2px rgba(58, 30, 22, 0.28)) drop-shadow(0 22px 24px rgba(58, 30, 22, 0.26)); }
.torn img {
  display: block;
  width: 100%;
  -webkit-mask: var(--torn-mask) center / 100% 100% no-repeat;
  mask: var(--torn-mask) center / 100% 100% no-repeat;
}

/* The torn top edge where one sheet lies over the next */
.torn-top { position: relative; overflow-x: clip; }
.torn-top::before {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  top: -13px;
  height: 30px;
  background: inherit;
  filter: url(#deckle-edge);
  pointer-events: none;
}

/* Fabric and paint samples */
.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.2; color: var(--ink); }
.chips i,
.fabric {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 3px);
  filter: url(#deckle) drop-shadow(0 1px 1px rgba(58, 30, 22, 0.35));
}

/* Small leaf used as a list mark */
.leaf-list li { position: relative; padding-left: 30px; }
.leaf-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 16px;
  height: 9px;
  border-radius: 0 100% 0 100%;
  background: var(--gold);
  transform: rotate(-24deg);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  background-image: var(--grain);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

/* Jessica's own logo, as it is, on a white paper label so its colours read
   true whatever palette the table is dressed in */
.logo-label {
  flex: none;
  align-self: flex-start;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 14px 18px 12px;
  filter: drop-shadow(0 3px 3px rgba(58, 30, 22, 0.3));
}
.logo-label::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #FFFEFA;
  background-image: var(--grain);
  filter: url(#fray);
}
.logo-label::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed color-mix(in srgb, var(--burgundy) 45%, transparent);
  pointer-events: none;
}
.logo-label img { display: block; width: auto; height: 54px; }
.logo-label:focus-visible { outline-offset: -5px; }

/* The navigation is a row of fabric samples hanging over the top edge of the
   table: pinked at the bottom, stitched at the top, each cut to its own length. */
.site-nav,
.header-actions { align-self: flex-start; display: flex; align-items: flex-start; gap: 6px; }
.site-nav a,
.swatch-tab {
  --cloth: var(--c1);
  --stitch: color-mix(in srgb, var(--burgundy) 55%, transparent);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 74px;
  min-width: 48px;
  padding: 0 17px 18px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  filter: drop-shadow(0 3px 3px rgba(58, 30, 22, 0.3));
}
.site-nav a::before,
.swatch-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--cloth);
  background-image: var(--cloth-weave);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.site-nav a::after,
.swatch-tab::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 9px;
  border-top: 1.5px dashed var(--stitch);
}
.site-nav a:hover,
.swatch-tab:hover { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.site-nav a:focus-visible,
.swatch-tab:focus-visible { outline-offset: -5px; }

.site-nav a:nth-child(1) { --cloth: var(--c1); height: 72px; }
.site-nav a:nth-child(2) { --cloth: var(--c2); height: 79px; }
.site-nav a:nth-child(3) { --cloth: var(--c3); height: 70px; }
.site-nav a:nth-child(4) { --cloth: var(--c4); height: 77px; }
.site-nav a:nth-child(5) { --cloth: var(--c5); height: 72px; }
/* the page you are on, and the main action, are cut from the burgundy cloth */
.site-nav a[aria-current="page"],
.swatch-tab--cta {
  --cloth: var(--burgundy);
  --stitch: var(--gold-soft);
  color: var(--paper);
}
.site-nav a[aria-current="page"]:hover,
.swatch-tab--cta:hover { text-decoration-color: var(--gold-soft); }
.swatch-tab--cta { height: 84px; padding-inline: 20px; gap: 8px; }
.cta-short { display: none; }
.nav-toggle { display: none; height: 70px; }

/* The palette card: a paint chip hanging with the samples. It opens a tray of
   paint cards, one per palette, and the whole table is re-dressed in the one chosen. */
.palette-toggle { height: 76px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; --cloth: #FFFEFA; }
.palette-toggle__dots { display: flex; gap: 3px; }
.palette-toggle__dots i { width: 9px; height: 16px; border-radius: 46% 54% 50% 50% / 60% 44% 56% 40%; }
.palette-toggle[aria-expanded="true"] { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.palette-tray {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 30px 0 34px;
  background-color: var(--paper-warm);
  background-image: var(--weave), var(--grain);
  box-shadow: 0 24px 30px -18px rgba(43, 26, 33, 0.55);
}
.palette-tray__title { font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.1; color: var(--burgundy-deep); margin-bottom: 18px; }
.palette-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); }
.paint-pick {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 132px;
  padding: 16px 14px 14px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(58, 30, 22, 0.25)) drop-shadow(0 8px 9px rgba(58, 30, 22, 0.18));
}
.paint-pick::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #FFFEFA;
  background-image: var(--grain);
  filter: url(#fray);
}
.paint-pick:nth-child(odd) { transform: rotate(-1.2deg); }
.paint-pick:nth-child(even) { transform: rotate(1deg); }
.paint-pick__strokes { display: grid; gap: 6px; }
.paint-pick__strokes i { display: block; height: 14px; border-radius: 46% 54% 50% 50% / 60% 44% 56% 40%; filter: url(#fray); }
.paint-pick__strokes i:nth-child(1) { background: var(--a); }
.paint-pick__strokes i:nth-child(2) { background: var(--b); width: 92%; margin-left: 6%; }
.paint-pick__strokes i:nth-child(3) { background: var(--c); width: 96%; }
.paint-pick__strokes i:nth-child(4) { background: var(--d); width: 86%; margin-left: 4%; }
.paint-pick__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.1; color: #2B1A21; }
.paint-pick:hover .paint-pick__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* the palette in use carries a strip of its own tape */
.paint-pick[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  background-color: var(--a);
  background-image: var(--cloth-weave);
  clip-path: var(--torn-ends);
  transform: rotate(-4deg);
}
.paint-pick[aria-pressed="true"] .paint-pick__name { font-style: italic; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(22px, 2.6vw, 34px) 0 var(--section); overflow-x: clip; }

.hero h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(30px, 3.4vw, 46px);
  font-size: clamp(2.75rem, 5.25vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero h1 em {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  color: var(--burgundy);
  white-space: nowrap;
}
.swash {
  position: absolute;
  left: 2%;
  bottom: -0.1em;
  width: 96%;
  height: 0.16em;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}
.swash path { vector-effect: non-scaling-stroke; }
/* --------------------------------------------------------------------------
   The transformation reel
   -------------------------------------------------------------------------- */
.reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 348px);
  grid-template-areas: "main intro" "main list";
  grid-template-rows: auto 1fr;
  gap: 22px clamp(24px, 3.4vw, 48px);
  align-items: start;
}
.hero-intro { grid-area: intro; }
.reel-main { grid-area: main; position: relative; isolation: isolate; min-width: 0; }
.reel-list { grid-area: list; }

.hero-lead { font-family: var(--serif); font-size: 1.4375rem; font-weight: 500; line-height: 1.22; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 14px; }
.hero-actions .btn { padding-inline: 22px; }

.reel-print { padding: 12px 12px 14px; }
/* A strip of masking tape holding the print to the table */
.reel-tape {
  position: absolute;
  top: -15px;
  left: 26%;
  width: 132px;
  height: 34px;
  margin-left: -66px;
  z-index: 2;
  background-color: rgba(226, 200, 138, 0.82);
  background-image: var(--grain);
  filter: url(#deckle) drop-shadow(0 1px 1px rgba(58, 30, 22, 0.25));
  transform: rotate(-2.5deg);
  pointer-events: none;
}

/* Things lying on the table around the print. All decorative. */
.swatches { position: absolute; z-index: -1; left: clamp(-74px, -5vw, -22px); bottom: 64px; width: 150px; height: 240px; }
.swatches i {
  position: absolute;
  width: 118px;
  height: 140px;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 3px);
  filter: url(#deckle) drop-shadow(0 4px 5px rgba(58, 30, 22, 0.3));
}
.swatches i:nth-child(1) { left: 0; top: 0; background-color: var(--sw1); transform: rotate(-9deg); }
.swatches i:nth-child(2) { left: 4px; top: 44px; background-color: var(--sw2); transform: rotate(-4deg); }
.swatches i:nth-child(3) { left: -2px; top: 92px; background-color: var(--sw3); transform: rotate(-12deg); }

.brass-tile {
  position: absolute;
  z-index: -1;
  right: clamp(-40px, -2.6vw, -18px);
  bottom: 150px;
  width: 104px;
  height: 104px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #F1DFA9 0%, #C9A552 42%, #A8842F 78%, #D9BE78 100%);
  box-shadow: 0 6px 10px rgba(58, 30, 22, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: rotate(9deg);
}
.hero-paint {
  position: absolute;
  z-index: 3;
  top: -44px;
  right: clamp(-22px, -1.4vw, -10px);
  width: 108px;
  padding: 14px 12px 16px;
  transform: rotate(8deg);
  pointer-events: none;
}
.hero-paint i {
  display: block;
  height: 20px;
  margin-top: 8px;
  border-radius: 46% 54% 50% 50% / 60% 44% 56% 40%;
  filter: url(#deckle);
}
.hero-paint i:first-child { margin-top: 0; }
.hero-paint i:nth-child(1) { background: var(--p1); }
.hero-paint i:nth-child(2) { background: var(--p2); width: 92%; margin-left: 6%; }
.hero-paint i:nth-child(3) { background: var(--p3); width: 96%; }
.hero-paint i:nth-child(4) { background: var(--p4); width: 86%; margin-left: 4%; }

.reel-stage { position: relative; background: var(--linen); }
.reel-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 5;
  object-fit: cover;
}

.reel-compare {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--linen);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  --split: 50%;
}
.reel-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.reel-compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.reel-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 48px;
  margin-left: -24px;
  cursor: ew-resize;
}
.reel-compare__handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(43, 26, 33, 0.3), 0 0 10px rgba(43, 26, 33, 0.35);
}
.reel-compare__handle::after {
  content: '‹ ›';
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: linear-gradient(135deg, #F3E1AC, #C6A04E 55%, #9A772F);
  box-shadow: 0 2px 8px rgba(43, 26, 33, 0.5);
  color: var(--burgundy-deep);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
}
.reel-compare__handle:focus-visible { outline: none; }
.reel-compare__handle:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }

.reel-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px 0;
}
/* Play is a wax seal pressed onto the print */
.reel-play {
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-pale);
  cursor: pointer;
  filter: drop-shadow(0 2px 2px rgba(58, 30, 22, 0.45));
}
.reel-play::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 46% 54% 51% 49% / 53% 47% 53% 47%;
  background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--burgundy) 80%, white), var(--burgundy) 55%, var(--burgundy-deep));
  box-shadow: inset 0 0 0 5px rgba(68, 21, 42, 0.5), inset 0 0 0 6.5px rgba(216, 188, 124, 0.55);
  filter: url(#fray);
}
.reel-play:hover::before { background: radial-gradient(circle at 36% 30%, var(--burgundy), var(--burgundy-deep) 60%, var(--burgundy-night)); }
.reel-play .icon { width: 24px; height: 24px; fill: currentColor; display: none; }
.reel-play[data-state="paused"] .icon--play,
.reel-play[data-state="playing"] .icon--pause,
.reel-play[data-state="ended"] .icon--replay { display: block; }

.reel-rail {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.reel-rail__end {
  flex: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--burgundy-deep);
  white-space: nowrap;
}
.reel-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.2;
  color: var(--ink-soft);
  text-align: center;
}

.reel-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 0%;
}
.reel-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--burgundy) var(--p), var(--gold-soft) var(--p));
}
.reel-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--gold-deep);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(43, 26, 33, 0.45);
}
.reel-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--gold-soft);
}
.reel-range::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--burgundy);
}
.reel-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-deep);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(43, 26, 33, 0.45);
}

.reel-modes { flex: none; display: flex; }
.reel-mode + .reel-mode { margin-left: -5px; }
.reel-toggle { transform: rotate(-1deg); }
.reel-mode:first-child { transform: rotate(0.8deg); }
.reel-mode:last-child { transform: rotate(-0.7deg); }

.reel-caption { padding: 10px 4px 0; }
.reel-caption__head { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--burgundy); font-style: italic; }
.reel-caption__head strong { font-style: normal; font-weight: 600; font-size: 1.4375rem; color: var(--burgundy-deep); margin-right: 6px; }
.reel-caption__desc { margin-top: 2px; font-size: 1rem; line-height: 1.5; color: var(--ink); }

.reel-status { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-soft); }
.reel-status:empty { display: none; }

.reel-title { font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; white-space: nowrap; }
/* The four films are small prints. The one playing has a strip of burgundy tape on it. */
.reel-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; padding-top: 8px; }
.film-pick {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 7px 7px 9px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(58, 30, 22, 0.25)) drop-shadow(0 8px 9px rgba(58, 30, 22, 0.18));
}
.film-pick::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--white);
  background-image: var(--grain);
  filter: url(#fray);
}
.film-pick:nth-child(odd) { transform: rotate(-1.1deg); }
.film-pick:nth-child(even) { transform: rotate(0.9deg); }
.film-pick img { display: block; width: 100%; aspect-ratio: 9 / 5; object-fit: cover; }
.film-pick__text { display: block; padding: 6px 3px 0; }
.film-pick strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--burgundy-deep);
}
.film-pick small { display: block; margin-top: 1px; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft); line-height: 1.2; }
.film-pick:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.film-pick[aria-pressed="true"]::after,
.board-pick[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  background-color: var(--burgundy);
  background-image: var(--cloth-weave);
  clip-path: var(--torn-ends);
  transform: rotate(-4deg);
}
.film-pick[aria-pressed="true"] strong { font-style: italic; color: var(--burgundy); }
.film-pick[aria-pressed="true"] small::after { content: ', now showing'; color: var(--burgundy); }

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 3.6vw, 44px);
}
.section-head--stack { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.section-intro { color: var(--ink-soft); max-width: 60ch; }
.section-head--stack .section-intro {
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  max-width: 54ch;
}
.section-head__aside { display: grid; gap: 16px; justify-items: start; padding-bottom: 6px; }

/* --------------------------------------------------------------------------
   Spaces
   -------------------------------------------------------------------------- */
.spaces {
  position: relative;
  overflow-x: clip;
  padding: clamp(48px, 6vw, 84px) 0;
  background-color: var(--sage-wash);
  background-image: var(--grain);
}
.spaces-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.spaces-head h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); line-height: 1.04; }
.promises { display: grid; gap: 12px; margin-top: clamp(22px, 2.8vw, 34px); max-width: 30rem; }
.promises li { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.promises li::before { background: var(--sage-deep); top: 0.6em; }
.promises strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.375rem; line-height: 1.15; color: var(--burgundy-deep); }
.spaces-list li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--sage-deep) 50%, transparent);
}
.spaces-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--sage-deep) 50%, transparent); }
.spaces-list h3 { font-size: 1.625rem; line-height: 1.12; }
.spaces-list p { font-size: 1rem; line-height: 1.5; color: var(--ink); }

/* --------------------------------------------------------------------------
   The studio: process
   -------------------------------------------------------------------------- */
.spaces::before,
.stories::before,
.jessica::before,
.studio::before,
.boards::before,
.vision::before,
.page-cta::before,
.site-footer::before {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  top: -13px;
  height: 30px;
  background: inherit;
  filter: url(#deckle-edge);
  pointer-events: none;
}
.studio {
  position: relative;
  overflow-x: clip;
  padding: var(--section) 0 clamp(48px, 5.6vw, 76px);
  background-color: var(--paper);
  background-image: var(--grain), var(--mottle);
}

/* Four cards pinned along a pencil line. The one being read is the burgundy one. */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 30px);
  margin-bottom: clamp(30px, 3.8vw, 52px);
  padding-top: 8px;
}
.flow::before {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  top: calc(50% + 4px);
  border-top: 2px dashed rgba(43, 26, 33, 0.32);
}
.flow-arrow { display: none; }
.flow-step {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 20px 18px 14px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(58, 30, 22, 0.25)) drop-shadow(0 9px 10px rgba(58, 30, 22, 0.18));
}
.flow-step::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--white);
  background-image: var(--grain);
  filter: url(#fray);
}
/* the brass pin */
.flow-step::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F8EBC0, #C6A04E 55%, #8C6A28);
  box-shadow: 0 2px 2px rgba(58, 30, 22, 0.45);
}
.flow-step:nth-of-type(odd) { transform: rotate(-1deg); }
.flow-step:nth-of-type(even) { transform: rotate(0.9deg); }
.flow-step__icon {
  flex: none;
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-step__text { display: grid; gap: 0; min-width: 0; }
.flow-step strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--burgundy-deep);
}
.flow-step small { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--ink-soft); }
.flow-step:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.flow-step.is-active::before { background-color: var(--burgundy); background-image: var(--cloth-weave); }
.flow-step.is-active strong { font-style: italic; color: var(--paper); }
.flow-step.is-active small { color: var(--gold-pale); }
.flow-step.is-active .flow-step__icon { stroke: var(--gold-soft); }
.flow-step.is-active:hover strong { text-decoration-color: var(--gold-soft); }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: start;
}
.chapter-copy h3 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.06; }
.chapter-explanation { margin-top: 16px; color: var(--ink-soft); max-width: 58ch; }

.benefit { margin-top: 26px; padding-left: 22px; border-left: 3px solid var(--gold); }
.benefit__label,
.chapter-specs__label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--sage-deep);
  font-weight: 500;
}
.benefit__quote {
  margin-top: 2px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  font-weight: 500;
  line-height: 1.14;
  color: var(--burgundy);
  text-wrap: balance;
}

.chapter-specs { margin-top: 26px; }
.chapter-specs ul { margin-top: 8px; display: grid; gap: 8px; }

.chapter-figure { min-width: 0; }
.chapter-prints { display: grid; gap: 14px; }
.chapter-print { transform: rotate(0.8deg); }
/* Two drawings of the same height, side by side */
.chapter-prints[data-layout="pair"] { grid-template-columns: 800fr 424fr; align-items: start; }
.chapter-prints[data-layout="pair"] .chapter-print:first-child { transform: rotate(-0.8deg); }
.chapter-prints[data-layout="pair"] .chapter-print:last-child { transform: rotate(1.4deg); margin-top: 26px; }
/* Two wide strips, one laid over the edge of the other */
.chapter-prints[data-layout="stack"] { gap: 0; }
.chapter-prints[data-layout="stack"] .chapter-print:first-child { transform: rotate(-0.8deg); width: 94%; }
.chapter-prints[data-layout="stack"] .chapter-print:last-child { transform: rotate(1deg); width: 92%; margin: -12px 0 0 auto; }
.chapter-figure figcaption {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 56ch;
}

.chapter-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: clamp(18px, 2.4vw, 30px);
}
.chapter-stepper .link-btn { font-family: var(--serif); font-size: 1.375rem; text-decoration: none; }
.chapter-stepper .link-btn:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.chapter-stepper .link-btn:disabled { visibility: hidden; }
.next-step {
  margin-top: clamp(22px, 3vw, 36px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.25;
  color: var(--burgundy-deep);
}
.next-step .text-link { font-size: inherit; font-family: inherit; }
.chapter-counter { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   On the table: boards
   -------------------------------------------------------------------------- */
.boards {
  position: relative;
  overflow-x: clip;
  padding: clamp(52px, 6.4vw, 88px) 0 var(--section);
  background-color: var(--linen);
  background-image: var(--weave), var(--grain), var(--mottle);
}

.board-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 26px;
  align-items: center;
}
.board-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.board-open img { aspect-ratio: 1672 / 941; object-fit: cover; }
.board-note {
  position: relative;
  z-index: 1;
  padding: 26px 26px 22px;
}
.board-note h3 { font-size: clamp(1.75rem, 2.4vw, 2.125rem); line-height: 1.04; }
.board-kind,
.detail-kind {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--burgundy);
}
.board-kind { margin-top: 4px; }
.board-shows { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.board-note .chips { margin-top: 14px; gap: 6px 14px; }
.board-actions { display: grid; justify-items: start; gap: 2px; margin-top: 14px; }

.board-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  margin-bottom: clamp(26px, 3.2vw, 40px);
}
.board-pick {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.board-pick .torn { filter: drop-shadow(0 1px 1px rgba(58, 30, 22, 0.3)) drop-shadow(0 8px 8px rgba(58, 30, 22, 0.22)); }
.board-pick img { aspect-ratio: 1672 / 941; object-fit: cover; }
.board-pick__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.12;
  color: var(--burgundy-deep);
}
.board-pick:hover .board-pick__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.board-pick[aria-pressed="true"]::after { z-index: 1; }
.board-pick[aria-pressed="true"] .board-pick__name { font-style: italic; color: var(--burgundy); }

/* --------------------------------------------------------------------------
   Home: the way through to our projects
   -------------------------------------------------------------------------- */
.teaser { padding: var(--section) 0 clamp(52px, 6.2vw, 84px); }
.teaser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-bottom: clamp(26px, 3.2vw, 40px);
}
.teaser-head .section-intro { margin-top: 12px; font-family: var(--serif); font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.3; max-width: 46ch; }
/* Three photographs at one height: each takes width in proportion to its shape */
.teaser-row { display: flex; align-items: flex-start; gap: clamp(12px, 1.8vw, 24px); }
.teaser-print { min-width: 0; }
.teaser-print img { object-fit: cover; filter: saturate(0.88) sepia(0.08) contrast(0.97) brightness(1.03); }
.teaser-print--a { flex: 0.75 1 0; }
.teaser-print--a img { aspect-ratio: 3 / 4; }
.teaser-print--b { flex: 1.72 1 0; }
.teaser-print--b img { aspect-ratio: 1.72; }
.teaser-print--c { flex: 0.75 1 0; }
.teaser-print--c img { aspect-ratio: 3 / 4; object-position: center 60%; }

.page-cta {
  position: relative;
  overflow-x: clip;
  padding: clamp(52px, 6.4vw, 88px) 0;
  background-color: var(--paper-warm);
  background-image: var(--weave), var(--grain), var(--mottle);
  text-align: center;
}
.page-cta h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1; max-width: 18ch; margin-inline: auto; }
.page-cta h2 em { font-style: italic; color: var(--burgundy); }
.page-cta p { margin: 16px auto 0; max-width: 50ch; color: var(--ink-soft); font-size: 1.125rem; }
.page-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Our work
   -------------------------------------------------------------------------- */
.work { padding: clamp(36px, 4.6vw, 64px) 0 var(--section); }
/* The projects page lays the photographs on the same linen as the boards */
.page-projects { background-color: var(--linen); background-image: var(--weave), var(--grain), var(--mottle); }
.page-projects .site-header { background-color: var(--paper); }
.work h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--burgundy-deep); }
.work-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.filter-bar .chip { font-size: 1.0625rem; padding-inline: 14px; }
.work-count {
  flex: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(18px, 2.2vw, 28px);
}
.project-card {
  grid-column: span 3;
  /* A button centres its content when the row stretches it; pin it to the top so frames and titles line up */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.project-card[data-shape="wide"] { grid-column: span 6; }
.work-grid.is-filtered .project-card { grid-column: span 4; }
.project-card .mat { padding: 10px; height: clamp(230px, 27.5vw, 396px); }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A light, shared grade so mixed phone photographs sit together. The detail view shows them as shot. */
  filter: saturate(0.88) sepia(0.08) contrast(0.97) brightness(1.03);
}

.project-card__title {
  display: block;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.12;
  color: var(--burgundy-deep);
}
.project-card__cat { display: block; margin-top: 3px; font-size: 0.9375rem; color: var(--ink-soft); }
.project-card:hover .project-card__title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* --------------------------------------------------------------------------
   Client stories
   -------------------------------------------------------------------------- */
.stories {
  position: relative;
  overflow-x: clip;
  padding: var(--section) 0;
  background-color: var(--sage-wash);
  background-image: var(--grain);
}

.stories-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}
.story-card:nth-child(2) { transform: rotate(-0.8deg); }
/* The right-hand column sits a clear step lower than the middle one */
.story-card:nth-child(3) { transform: rotate(0.9deg); margin-top: 64px; }
.story-card:nth-child(4) { transform: rotate(0.7deg); }
.story-card:nth-child(5) { transform: rotate(-1deg); }
.story-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  color: var(--ink);
}
.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--paper);
  background-image: var(--grain);
  filter: url(#deckle) drop-shadow(0 1px 1px rgba(58, 30, 22, 0.2)) drop-shadow(0 14px 16px rgba(58, 30, 22, 0.18));
}
.story-card--featured { grid-row: span 2; padding: clamp(24px, 2.8vw, 40px); color: var(--paper); }
.story-card--featured::before {
  background-color: var(--burgundy-deep);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
  filter: url(#deckle) drop-shadow(0 16px 18px rgba(58, 30, 22, 0.35));
}
.story-card--featured :focus-visible { outline-color: var(--gold-soft); }

.story-card__portrait { width: 156px; padding: 7px; margin-bottom: 18px; }
.story-card--featured .story-card__portrait { width: min(100%, 320px); padding: 10px; margin-bottom: 26px; transform: rotate(-1.4deg); }
.story-card__portrait img { aspect-ratio: 4 / 3; object-fit: cover; }

.story-card__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.16;
  color: var(--burgundy-deep);
  text-wrap: balance;
}
.story-card--featured .story-card__quote { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; color: var(--paper); }
.story-card--featured .story-full { color: #F1E6D6; border-top-color: var(--line-light); }
.story-card--featured .link-btn { color: var(--gold-pale); text-decoration-color: var(--gold-soft); }
.story-full {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  white-space: pre-line;
  font-size: 1rem;
  color: var(--ink);
}
.story-toggle { margin-top: 8px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Start your vision
   -------------------------------------------------------------------------- */
.vision {
  position: relative;
  overflow-x: clip;
  padding: var(--section) 0;
  background-color: var(--paper-warm);
  background-image: var(--weave), var(--grain), var(--mottle);
}
.vision-head { text-align: center; margin-bottom: clamp(30px, 4vw, 52px); }
.vision-head__sprig {
  width: 84px;
  height: 52px;
  margin: 0 auto 8px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vision-head h2 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 0.98; max-width: 18ch; margin-inline: auto; }
.vision-head h2 em { font-style: italic; color: var(--burgundy); }
.vision-benefit { margin: 18px auto 0; max-width: 50ch; font-size: 1.1875rem; color: var(--ink-soft); }

.vision-grid {
  display: grid;
  grid-template-columns: minmax(280px, 392px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.vision-board,
.builder {
  background-color: var(--paper);
  background-image: var(--grain);
  border: 1.5px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.vision-board { padding: clamp(20px, 2.2vw, 28px); position: sticky; top: 92px; align-self: start; }
.vision-board__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vision-board__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--burgundy-deep);
}
.vision-board__step {
  flex: none;
  padding-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--sage-deep);
  white-space: nowrap;
}
.vision-board__pips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.vision-board__pips i { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--burgundy) 16%, transparent); }
.vision-board__pips i.is-active { background: var(--gold); }
.vision-board__pips i.is-done { background: var(--burgundy); }

.vision-board__collage { position: relative; margin: 26px 4px 34px; }
.vision-board__print { padding: 8px; width: 88%; transform: rotate(-2deg); }
.vision-board__print img { aspect-ratio: 4 / 3; object-fit: cover; }
.paint-card.is-blank { display: none; }
.paint-card {
  position: absolute;
  right: -4px;
  bottom: -26px;
  width: 42%;
  padding: 10px 12px;
  transform: rotate(4deg);
}
.strokes { display: grid; gap: 7px; }
.strokes i {
  display: block;
  height: 15px;
  border-radius: 46% 54% 50% 50% / 60% 44% 56% 40%;
  filter: url(#deckle);
}
.strokes i:nth-child(2) { width: 92%; margin-left: 6%; }
.strokes i:nth-child(3) { width: 96%; }
.strokes i:nth-child(4) { width: 88%; margin-left: 4%; }

.vision-board__list { display: grid; }
.vision-board__list > div { padding: 10px 0; border-top: 1px solid var(--gold-pale); }
.vision-board__list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.vision-board__list dd {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.16;
  color: var(--burgundy-deep);
  overflow-wrap: anywhere;
}
.vision-board__list dd.is-empty { font-style: italic; font-weight: 400; color: var(--ink-soft); }

.builder { min-width: 0; padding: clamp(18px, 2.8vw, 38px); display: flex; flex-direction: column; }
.builder-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 26px;
}
.step-tab:nth-child(odd) { transform: rotate(-0.9deg); }
.step-tab:nth-child(even) { transform: rotate(0.8deg); }
/* a step already passed: sage tape with a tick */
.step-tab.is-done::before { background-color: var(--sage-wash); }
.step-tab.is-done::after { content: ' ✓'; font-family: var(--sans); font-style: normal; font-size: 0.875rem; font-weight: 600; color: var(--sage-deep); }

.builder-body h3 { font-size: clamp(1.875rem, 3vw, 2.625rem); line-height: 1.04; }
.builder-body h3:focus-visible { outline-offset: 6px; }
.builder-body > p { margin-top: 8px; color: var(--ink-soft); }

/* Choices. Three looks: picture tiles, mood chips, palette tiles */
.choice-btn {
  position: relative;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.choice-btn strong {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--burgundy-deep);
}
.choice-btn small { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-soft); }
.choice-btn[aria-pressed="true"]::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 1.5px solid var(--gold-soft);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.choice-grid { display: grid; gap: 12px; margin-top: 22px; }
.choice-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Picture tiles are prints laid on the table, not boxes */
.choice-grid--tiles { gap: 22px 18px; }
.choice-grid--tiles .choice-btn { display: grid; align-content: start; gap: 3px; padding: 0; border: 0; background: none; box-shadow: none; }
.choice-thumb { display: block; margin-bottom: 10px; padding: 7px; }
.choice-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.choice-grid--tiles .choice-btn:nth-child(odd) .choice-thumb { transform: rotate(-1deg); }
.choice-grid--tiles .choice-btn:nth-child(even) .choice-thumb { transform: rotate(0.9deg); }
.choice-grid--tiles .choice-btn[aria-pressed="true"] { background: none; box-shadow: none; }
.choice-grid--tiles .choice-btn[aria-pressed="true"] .choice-thumb img { outline: 3px solid var(--burgundy); outline-offset: 2px; }
.choice-grid--tiles .choice-btn[aria-pressed="true"] strong { font-style: italic; color: var(--burgundy); }
.choice-grid--tiles .choice-btn[aria-pressed="true"]::after { top: -8px; right: -8px; width: 32px; height: 32px; z-index: 1; }

/* Moods are strips of tape (base rules with the other tape) */
.choice-grid--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.choice-grid--chips .choice-btn { min-height: 52px; padding: 10px 48px 10px 22px; white-space: normal; }
.choice-grid--chips .choice-btn strong { font-weight: 500; font-size: 1.375rem; color: inherit; }
.choice-grid--chips .choice-btn small { display: none; }
.choice-grid--chips .choice-btn:nth-child(odd) { transform: rotate(-0.6deg); }
.choice-grid--chips .choice-btn:nth-child(even) { transform: rotate(0.5deg); }
.choice-grid--chips .choice-btn[aria-pressed="true"]::after { top: 50%; right: 12px; margin-top: -14px; background: var(--paper); color: var(--burgundy); border-color: var(--paper); }
.choice-note {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4375rem;
  line-height: 1.25;
  color: var(--burgundy);
}
.choice-note:empty { display: none; }

.choice-grid--palettes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* A palette is a swatch card: cloth strips in a cream mat, its name beneath */
.choice-grid--palettes { gap: 22px 18px; }
.choice-grid--palettes .choice-btn { display: grid; align-content: start; gap: 3px; padding: 0; border: 0; background: none; box-shadow: none; }
.choice-grid--palettes .choice-btn[aria-pressed="true"] { background: none; box-shadow: none; }
.choice-grid--palettes .choice-btn[aria-pressed="true"] .choice-swatches { outline: 3px solid var(--burgundy); outline-offset: 2px; }
.choice-grid--palettes .choice-btn[aria-pressed="true"] strong { font-style: italic; color: var(--burgundy); }
.choice-grid--palettes .choice-btn[aria-pressed="true"]::after { top: -8px; right: -8px; width: 32px; height: 32px; z-index: 1; }
.choice-swatches {
  display: flex;
  height: 84px;
  margin: 0 0 12px;
  padding: 10px 12px 10px 16px;
  background-color: #FCF6EA;
  background-image: var(--grain);
  border: 1px solid color-mix(in srgb, var(--burgundy) 16%, transparent);
  box-shadow: 0 1px 2px rgba(58, 30, 22, 0.14), 0 10px 16px -12px rgba(58, 30, 22, 0.3);
}
.choice-swatches i {
  flex: 1 1 0;
  margin-left: -4px;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 3px);
  filter: url(#deckle) saturate(0.84);
}
.choice-swatches i:first-child { margin-left: 0; }
.choice-swatches i:nth-child(odd) { transform: rotate(-1.2deg); }
.choice-swatches i:nth-child(even) { transform: rotate(1deg) translateY(2px); }

.brief-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.field-group { display: grid; gap: 6px; min-width: 0; }
.field-group--wide { grid-column: 1 / -1; }
.field-group label { font-size: 1rem; font-weight: 600; color: var(--burgundy-deep); }
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field-group textarea { min-height: 132px; resize: vertical; }
.field-group ::placeholder { color: #75656A; opacity: 1; }

.summary-box { margin-top: 20px; border-top: 1px solid var(--line); }
.summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row dt { font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.summary-row dd { font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.2; color: var(--burgundy-deep); overflow-wrap: anywhere; white-space: pre-line; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.email-notice {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--sage-wash);
  border-left: 4px solid var(--sage-deep);
  font-size: 1rem;
  color: var(--ink);
}
.email-notice code { font-family: var(--sans); font-weight: 600; overflow-wrap: anywhere; }

.builder-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.builder-actions .btn--primary { margin-left: auto; }
.noscript-note { margin-top: 16px; color: var(--ink-soft); }

.vision-direct {
  margin: clamp(26px, 3.4vw, 44px) auto 0;
  max-width: 58ch;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}
.vision-direct .text-link { margin-inline: 4px; }
.vision-reassurance {
  margin: clamp(32px, 4.4vw, 56px) auto 0;
  max-width: 58ch;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.28;
  color: var(--burgundy-deep);
}
/* --------------------------------------------------------------------------
   Meet Jessica
   -------------------------------------------------------------------------- */
.jessica {
  position: relative;
  overflow-x: clip;
  padding: var(--section) 0;
  background-color: var(--paper);
  background-image: var(--grain), var(--mottle);
}
.jessica-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.jessica-portrait { max-width: 480px; }
.jessica-portrait .mat { transform: rotate(-1.6deg); padding: 14px; }
.jessica-portrait img { aspect-ratio: 1; object-fit: cover; }
.jessica-portrait figcaption { margin-top: 20px; font-size: 1rem; color: var(--ink-soft); }
.jessica-portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--burgundy-deep);
}
.jessica-copy h2 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 0.98; }
.jessica-statement {
  margin-top: 24px;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.24;
  color: var(--burgundy-deep);
}
.jessica-values { margin-top: 20px; max-width: 58ch; color: var(--ink-soft); }
.jessica-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow-x: clip;
  background-color: var(--burgundy-night);
  background-image: var(--grain);
  color: #EADCCB;
  padding: clamp(40px, 5vw, 64px) 0 20px;
}
.site-footer :focus-visible { outline-color: var(--gold-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.footer-logo { width: 150px; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; font-size: 1rem; }
.footer-col { display: grid; align-content: start; justify-items: start; }
.footer-col--links { grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 28px; }
.footer-col--links .footer-heading { grid-column: 1 / -1; }
.footer-heading {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 5px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  font-size: 0.9375rem;
  color: #D9C8B8;
}

/* --------------------------------------------------------------------------
   Detail dialog
   -------------------------------------------------------------------------- */
.detail-dialog {
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(20, 6, 12, 0.7);
}
.detail-dialog::backdrop { background: rgba(47, 14, 29, 0.74); }
.dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dialog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px clamp(14px, 2.4vw, 28px);
  border-bottom: 1px solid var(--gold-pale);
}
.dialog-position { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; color: var(--ink-soft); }
.dialog-topbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-body { overflow: auto; padding: clamp(18px, 2.8vw, 34px); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: start;
}
.detail-layout--board { grid-template-columns: minmax(0, 1fr); }
.detail-media.mat { padding: 10px; }
.detail-media img { width: 100%; max-height: 70dvh; object-fit: contain; }
.detail-copy--board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(20px, 3.4vw, 48px); align-items: start; }
.detail-copy h2 { margin-top: 2px; font-size: clamp(2rem, 3.6vw, 3rem); }
.detail-summary { margin-top: 14px; color: var(--ink-soft); }
.detail-list { margin-top: 16px; display: grid; gap: 10px; }
.detail-copy .chips { margin-top: 18px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 22px; }

/* --------------------------------------------------------------------------
   Privacy page
   -------------------------------------------------------------------------- */
.page-plain { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.page-plain .wrap { max-width: 760px; }
.page-plain h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.02; margin-bottom: 20px; }
.page-plain p { margin-bottom: 16px; }
.page-plain .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav a { font-size: 1.125rem; padding-inline: 11px; }
  .swatch-tab--cta { font-size: 1.125rem; padding-inline: 14px; }
  .palette-toggle { font-size: 1.0625rem; padding-inline: 10px; }
  .palette-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1160px) {
  /* The film's controls take two rows before they crowd the scrubber */
  .reel-bar { flex-wrap: wrap; gap: 6px 12px; }
  .reel-rail, .reel-hint { flex: 1 1 60%; }
  .reel-bar::after { content: ''; flex: 1 0 100%; height: 0; order: 1; }
  .reel-toggle { order: 2; }
  .reel-modes { order: 2; margin-left: auto; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 26px;
    background-color: var(--paper);
    background-image: var(--grain);
    box-shadow: 0 22px 30px -18px rgba(43, 26, 33, 0.55);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .site-nav a:nth-child(n) { height: 64px; justify-content: flex-start; align-items: center; padding: 6px 24px 10px; margin-top: -7px; font-size: 1.5rem; }
  .site-nav a:first-child { margin-top: 0; }
  .site-nav a:nth-child(1) { z-index: 5; }
  .site-nav a:nth-child(2) { z-index: 4; }
  .site-nav a:nth-child(3) { z-index: 3; }
  .site-nav a:nth-child(4) { z-index: 2; }
  .site-nav a:nth-child(5) { z-index: 1; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  /* The menu opens like a swatch book: one strip of cloth per place, each lying over the next */
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 26px;
    background-color: var(--paper);
    background-image: var(--grain);
    box-shadow: 0 22px 30px -18px rgba(43, 26, 33, 0.55);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .site-nav a:nth-child(n) { height: 64px; justify-content: flex-start; align-items: center; padding: 6px 24px 10px; margin-top: -7px; font-size: 1.5rem; }
  .site-nav a:first-child { margin-top: 0; }
  .site-nav a:nth-child(1) { z-index: 5; }
  .site-nav a:nth-child(2) { z-index: 4; }
  .site-nav a:nth-child(3) { z-index: 3; }
  .site-nav a:nth-child(4) { z-index: 2; }
  .site-nav a:nth-child(5) { z-index: 1; }

  .hero h1 { font-size: clamp(2.75rem, 8.6vw, 4.5rem); }
  /* The film comes straight after the headline; the words and the picker follow */
  .reel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "intro" "list"; grid-template-rows: auto; gap: 26px; }
  .hero-intro { max-width: 40rem; }
  .swatches { left: -18px; }
  .reel-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .reel-title { white-space: normal; font-size: 1.75rem; }

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

  .flow { gap: 12px; }
  .flow-step { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 20px 14px 14px; }
  .flow-step__icon { width: 40px; height: 40px; }
  .story-card:nth-child(n) { margin-top: 0; }

  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }

  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .board-feature { grid-template-columns: minmax(0, 1fr); }
  .board-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .board-note > h3, .board-note > .board-kind, .board-note > .board-shows { grid-column: 1; }
  .board-note > .chips { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
  .board-note > .board-actions { grid-column: 2; grid-row: 3; }

  /* Two even columns: no photograph is blown up to full width */
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card[data-shape="wide"], .work-grid.is-filtered .project-card { grid-column: span 1; }
  .project-card .mat { height: clamp(200px, 38vw, 330px); }

  .reel-bar { flex-wrap: wrap; gap: 6px 12px; }
  .reel-rail, .reel-hint { flex: 1 1 60%; }
  .reel-bar::after { content: ''; flex: 1 0 100%; height: 0; order: 1; }
  .reel-toggle { order: 2; }
  .reel-modes { order: 2; margin-left: auto; }
  .choice-grid--palettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-paint { width: 92px; top: -30px; }
  .brass-tile { width: 84px; height: 84px; }

  .stories-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-card--featured { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 28px; align-items: center; }
  .story-card--featured .story-card__portrait { grid-row: 1 / span 3; margin-bottom: 0; width: 100%; }
  .story-card--featured > :not(.story-card__portrait) { grid-column: 2; }
  .vision-grid { align-items: start; }

  .vision-grid { grid-template-columns: minmax(0, 1fr); }
  .vision-board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 32px; align-items: center; }
  .vision-board__top, .vision-board__pips { grid-column: 1 / -1; }

  .jessica-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: start; }
  .footer-col--links { grid-template-columns: minmax(0, 1fr); }

  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-media img { max-height: 46dvh; }
}

@media (max-width: 760px) {
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter-figure { order: -1; }
  .jessica-grid { grid-template-columns: minmax(0, 1fr); }
  .jessica-portrait { max-width: 360px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .detail-copy--board { grid-template-columns: minmax(0, 1fr); }

  /* Vision: the question comes first on small screens, the board follows */
  .vision-board { order: 2; }
  .builder { order: 1; }

  /* One scrolling row of filters instead of five stacked rows */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
  .filter-bar .chip { scroll-snap-align: start; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 60px; gap: 8px; }
  .logo-label { height: 74px; padding: 12px 12px 10px; }
  .logo-label img { height: 42px; }
  .palette-toggle { height: 68px; }
  .palette-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .palette-toggle__dots i { width: 7px; height: 20px; }
  .palette-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .palette-tray { padding: 22px 0 26px; }
  .swatch-tab { font-size: 1.125rem; padding-inline: 13px; }
  .swatch-tab--cta { height: 76px; }
  .nav-toggle { height: 64px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .btn { min-height: 52px; padding-inline: 22px; }

  .hero h1 { font-size: clamp(2.5rem, 12.4vw, 3.25rem); }
  .hero h1 em { white-space: normal; }
  .hero-actions .btn { flex: 1 1 100%; }

  .print { padding: 7px; }
  .reel-print { padding: 8px 8px 12px; }
  .reel-tape { top: -11px; left: 50%; width: 92px; height: 24px; margin-left: -46px; }
  .swatches, .brass-tile, .hero-paint { display: none; }
  .hero-lead { font-size: 1.3125rem; }
  .teaser-row { flex-wrap: wrap; }
  .teaser-print--b { flex: 1 0 100%; order: -1; }
  .teaser-print { padding: 8px; }
  .teaser-head .btn { flex: 1 1 100%; }
  .mat { padding: 8px; }
  .reel-rail { gap: 8px; }
  .reel-rail__end { font-size: 1.0625rem; }
  .reel-caption__head strong { display: block; }

  .reel-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .reel-hint { font-size: 1rem; }
  .reel-toggle, .reel-mode { font-size: 1.125rem; padding-inline: 14px; }

  .spaces-list li { grid-template-columns: minmax(0, 1fr); }

  /* One row of four pinned cards: picture above, name beneath */
  .flow { gap: 8px; }
  .flow-step { align-items: center; text-align: center; padding: 18px 2px 10px; }
  .flow-step__icon { width: 32px; height: 32px; }
  .flow-step strong { font-size: 1.0625rem; }
  .flow-step small { display: none; }
  .flow-step__text { justify-items: center; }

  .board-note { display: block; padding: 20px 18px 16px; }
  .board-note > .chips { margin-top: 14px; }
  /* All five boards stay in view: three and two, picture above name */
  .board-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .board-pick__name { font-size: 1.0625rem; }

  /* One photograph per row at its own shape, so nothing is cropped */
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .project-card .mat { height: auto; padding: 8px; }
  /* Landscape photographs keep their whole frame; tall ones stop short of a full screen */
  .project-card img { height: auto; max-height: 68vh; }
  .project-card__title { margin-top: 12px; font-size: 1.4375rem; }

  .stories-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .story-card:nth-child(n) { transform: none; }
  .story-card--featured { display: flex; }
  .story-card--featured .story-card__portrait { width: min(100%, 230px); margin-bottom: 20px; }
  .story-card__portrait { width: 132px; }

  /* Choices as compact rows: picture left, name right */
  .choice-grid--tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .choice-grid--tiles .choice-btn { grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .choice-grid--tiles .choice-thumb { grid-row: 1 / span 2; margin-bottom: 0; padding: 5px; }
  .choice-grid--tiles strong { align-self: end; }
  .choice-grid--tiles small { align-self: start; }
  .choice-grid--chips { grid-template-columns: minmax(0, 1fr); }
  .choice-grid--tiles .choice-btn[aria-pressed="true"]::after { top: -6px; left: 88px; right: auto; }
  /* A soft edge on the right shows the filter row keeps going */
  .filter-bar { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent); padding-right: 44px; }

  .vision-board { display: block; }
  .choice-grid--palettes, .brief-fields { grid-template-columns: minmax(0, 1fr); }
  .choice-grid--chips .choice-btn strong { font-size: 1.25rem; }
  .step-tab { padding-inline: 13px; font-size: 1.0625rem; }
  .summary-row { grid-template-columns: minmax(0, 1fr); }
  .builder-actions .btn, .summary-actions .btn { flex: 1 1 auto; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .dialog-topbar__actions .btn { padding-inline: 14px; min-height: 46px; }
}

@media (max-width: 380px) {
  .reel-rail__end { display: none; }
  .logo-label { padding-inline: 9px; }
  .logo-label img { height: 34px; }
  .header-actions { gap: 3px; }
  .swatch-tab { padding-inline: 8px; font-size: 1.0625rem; }
  .swatch-tab--cta { padding-inline: 10px; }
  .cta-arrow { display: none; }
  .palette-toggle__dots { gap: 2px; }
  .palette-toggle__dots i { width: 5px; }
  .reel-toggle, .reel-mode { padding-inline: 10px; font-size: 1rem; }
  .story-card__portrait { width: 112px; }
  .film-pick strong { font-size: 1.125rem; }
}

@media print {
  .site-header, .reel-bar, .nav-toggle { display: none; }
}
