/* Washington Wallpaper Craft — The Pattern Book.
   Every colour, font, radius, shadow, space and motion value lives on :root. */

@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/gloock-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour — dominant, supports, ink, paper */
  --cobalt: #25439A;
  --cobalt-700: #1B3275;
  --cobalt-200: #C9D3EE;
  --ground: #E6EAF5;
  --blossom: #F2B8C6;
  --blossom-100: #FBE3E9;
  --brass: #C8952E;
  --brass-100: #F3E4C2;
  --ink: #2A1F33;
  --ink-70: #5A4E63;
  --paper: #FBF6EC;
  --hairline: rgb(42 31 51 / .35);
  --hairline-soft: rgb(42 31 51 / .14);
  --scrim: rgb(42 31 51 / .55);
  --press-shadow: rgb(42 31 51 / .25);
  --rule-on-dark: rgb(251 246 236 / .25);
  --error: #A3253F;        /* 6.4:1 on paper */
  --success: #1D6B4A;      /* 6.1:1 on paper */

  /* type */
  --f-display: "Gloock", "Bodoni 72", Didot, Georgia, serif;
  --f-text: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-display: clamp(2.75rem, 5.6vw, 5.5rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-body: 1.125rem;
  --fs-ui: 1rem;
  --fs-label: .875rem;
  --fs-small: .8125rem;
  --lh-display: 1;
  --lh-head: 1.08;
  --lh-body: 1.6;
  --measure: 66ch;

  /* corners: square leaves, die-cut tabs */
  --r-leaf: 2px;
  --r-tab: 0 10px 10px 0;
  --r-tab-top: 10px 10px 0 0;
  --r-control: 4px;

  /* depth: tone first, then two ink-tinted shadows */
  --shadow-1: 0 1px 0 rgb(42 31 51 / .10), 0 8px 18px -12px rgb(42 31 51 / .35);
  --shadow-2: 0 2px 0 rgb(42 31 51 / .10), 0 22px 40px -22px rgb(42 31 51 / .45);

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --gutter: clamp(16px, 2.4vw, 32px);
  --container: 1360px;
  --spine-w: 156px;
  --header-h: 76px;
  --overlap: var(--s-6);
  --peek: 10px;

  /* motion: 3 durations, 2 easings */
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 760ms;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --ease-paper: cubic-bezier(.6, 0, .2, 1);

  /* endpapers: original drawn tiles, each a few hundred bytes */
  --pattern-railing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='72'%3E%3Crect width='48' height='72' fill='%2325439A'/%3E%3Cg fill='none' stroke='%23C8952E' stroke-width='2'%3E%3Cpath d='M12 18v54M36 18v54M0 64h48'/%3E%3Cpath d='M12 30c0 8 24 8 24 0M12 44c0-8 24-8 24 0'/%3E%3C/g%3E%3Cpath d='M12 4l-4 9 4 5 4-5zM36 4l-4 9 4 5 4-5z' fill='%23C8952E'/%3E%3C/svg%3E");
  --pattern-blossom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cdefs%3E%3Cg id='b'%3E%3Cpath d='M-10 10q4-7 10-7' fill='none' stroke='%232A1F33' stroke-width='1.4'/%3E%3Cg fill='%23F2B8C6'%3E%3Ccircle cy='-5' r='4'/%3E%3Ccircle cx='4.8' cy='-1.5' r='4'/%3E%3Ccircle cx='3' cy='4' r='4'/%3E%3Ccircle cx='-3' cy='4' r='4'/%3E%3Ccircle cx='-4.8' cy='-1.5' r='4'/%3E%3C/g%3E%3Ccircle r='1.7' fill='%23C8952E'/%3E%3C/g%3E%3C/defs%3E%3Crect width='64' height='64' fill='%23FBF6EC'/%3E%3Cuse href='%23b' x='16' y='16'/%3E%3Cuse href='%23b' x='48' y='48'/%3E%3C/svg%3E");
  --pattern-flemish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Crect width='36' height='18' fill='%23FBF6EC'/%3E%3Cpath d='M25 1h11v8H25zM7 10h11v8H7z' fill='%23C9D3EE'/%3E%3Cpath d='M0 .5h36M0 9.5h36M.5 0v9M24.5 0v9M6.5 9v9M18.5 9v9' fill='none' stroke='%2325439A'/%3E%3C/svg%3E");
  --pattern-ticking: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8'%3E%3Crect width='32' height='8' fill='%23F2B8C6'/%3E%3Cpath d='M5.5 0v8M11.5 0v8' stroke='%232A1F33' stroke-width='3'/%3E%3Cpath d='M22.5 0v8' stroke='%23C8952E'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
  color-scheme: light;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-head);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  letter-spacing: -.005em;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-ui); line-height: 1.35; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li { max-width: var(--measure); }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out); }
a:hover { color: var(--cobalt-700); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.small { font-size: var(--fs-small); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible, .leaf--cobalt :focus-visible, .leaf--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--blossom); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); border-radius: var(--r-control);
}
.skip-link:focus { top: var(--s-2); color: var(--paper); }

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

/* The book: page leaves on the left, the spine (fore-edge with index tabs) on the right. */
.book {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}
@media (min-width: 1100px) {
  .book { grid-template-columns: minmax(0, 1fr) var(--spine-w); }
}
.book-pages { min-width: 0; }

/* 12/6/1 editorial grid used inside leaves */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ leaves */
.leaf {
  --leaf-bg: var(--paper);
  --leaf-fg: var(--ink);
  --next-leaf: var(--paper);
  position: relative;
  background: var(--leaf-bg);
  color: var(--leaf-fg);
  border-radius: var(--r-leaf);
  box-shadow: var(--shadow-1);
  padding: var(--s-7) var(--s-5);
  margin-block-start: calc(-1 * var(--overlap));
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.leaf:first-child { margin-block-start: 0; }
@media (min-width: 700px) { .leaf { padding: var(--s-8) var(--s-7); } }
@media (min-width: 1100px) { .leaf { padding: var(--s-9) var(--s-8); } }

/* the strip of the next sheet peeking out underneath */
.leaf--peek::after {
  content: "";
  position: absolute;
  inset: auto var(--s-4) calc(-1 * var(--peek)) var(--s-6);
  height: var(--peek);
  background: var(--next-leaf);
  border-radius: 0 0 var(--r-leaf) var(--r-leaf);
  box-shadow: var(--shadow-1);
  z-index: -1;
}
.leaf--offset-r { translate: var(--s-2) 0; }
.leaf--offset-l { translate: calc(-1 * var(--s-2)) 0; }
@media (max-width: 699px) { .leaf--offset-r, .leaf--offset-l { translate: none; } }

.leaf--cobalt { --leaf-bg: var(--cobalt); --leaf-fg: var(--paper); }
.leaf--cobalt a:not(.button) { color: var(--paper); }
.leaf--cobalt a:not(.button):hover { color: var(--blossom); }
.leaf--ink { --leaf-bg: var(--ink); --leaf-fg: var(--paper); }
.leaf--ink a:not(.button) { color: var(--blossom); }
.leaf--blossom { --leaf-bg: var(--blossom); --leaf-fg: var(--ink); }
.leaf--blossom a:not(.button) { color: var(--ink); }
.leaf--brass { --leaf-bg: var(--brass); --leaf-fg: var(--ink); }
.leaf--brass a:not(.button) { color: var(--ink); }
.leaf--quiet { --leaf-bg: var(--blossom-100); }

.leaf[data-next="cobalt"] { --next-leaf: var(--cobalt); }
.leaf[data-next="blossom"] { --next-leaf: var(--blossom); }
.leaf[data-next="brass"] { --next-leaf: var(--brass); }
.leaf[data-next="ink"] { --next-leaf: var(--ink); }
.leaf[data-next="paper"] { --next-leaf: var(--paper); }

/* a linked leaf (specimen entry, gallery page) lifts a little */
.leaf--link { display: block; text-decoration: none; color: inherit; }
.leaf--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.leaf--link:active { transform: translateY(-1px); }

/* endpaper fills */
.endpaper { background-repeat: repeat; }
.endpaper--railing { background-color: var(--cobalt); background-image: var(--pattern-railing); }
.endpaper--blossom { background-color: var(--paper); background-image: var(--pattern-blossom); }
.endpaper--flemish { background-color: var(--paper); background-image: var(--pattern-flemish); }
.endpaper--ticking { background-color: var(--blossom); background-image: var(--pattern-ticking); }
.endpaper-strip { height: var(--s-6); border-radius: var(--r-leaf); }

/* ------------------------------------------------------------------ specimen label */
.specimen-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px var(--s-4);
  margin: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--brass-100);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-leaf);
  font-size: var(--fs-label);
  line-height: 1.35;
  max-width: 34ch;
}
.specimen-label dt { color: var(--ink-70); font-weight: 400; }
.specimen-label dd { margin: 0; font-weight: 600; }
.specimen-label--blossom { background: var(--blossom-100); }
.specimen-label--paper { background: var(--paper); }

/* ------------------------------------------------------------------ specimen photo */
.specimen { margin: 0; position: relative; }
.specimen img {
  width: 100%;
  border-radius: var(--r-leaf);
  background: var(--cobalt-200);
  object-fit: cover;
}
.specimen figcaption { margin-top: var(--s-3); }

/* ------------------------------------------------------------------ buttons */
.button {
  --btn-bg: var(--cobalt);
  --btn-fg: var(--paper);
  --btn-bg-hover: var(--cobalt-700);
  --btn-bg-press: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  border: 0;
  border-radius: var(--r-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--fs-ui)/1.2 var(--f-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--press-shadow);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.button:hover { background: var(--btn-bg-hover); color: var(--btn-fg); text-decoration: none; }
.button:active { transform: translateY(2px) scale(.98); box-shadow: 0 0 0 var(--press-shadow); background: var(--btn-bg-press); }
.button[disabled], .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.button .glyph { flex: none; }

.button--estimate { --btn-bg: var(--brass); --btn-fg: var(--ink); --btn-bg-hover: var(--brass-100); --btn-bg-press: var(--blossom); }
.button--call { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bg-hover: var(--blossom-100); --btn-bg-press: var(--blossom); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--call:active { box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bg-hover: var(--cobalt-700); --btn-bg-press: var(--cobalt); }
.leaf--cobalt .button--call, .leaf--ink .button--call { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bg-hover: var(--cobalt-700); --btn-bg-press: var(--ink); box-shadow: inset 0 0 0 1.5px var(--paper); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* toggle chips (room choice, interactive options): die-cut, never pills */
.choice {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1.5px solid currentColor;
  border-radius: var(--r-control);
  background: transparent;
  color: inherit;
  font: 600 var(--fs-label)/1.2 var(--f-text);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.choice:hover { background: var(--blossom-100); color: var(--ink); }
.choice:active { transform: scale(.97); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.leaf--cobalt .choice:hover { background: var(--cobalt-700); color: var(--paper); }
.leaf--cobalt .choice[aria-pressed="true"] { background: var(--blossom); color: var(--ink); border-color: var(--blossom); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--hairline-soft);
  view-transition-name: site-header;
}
.site-header-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  color: var(--ink); text-decoration: none; flex: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; transition: transform var(--dur-2) var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-4deg) translateY(-1px); }
.brand-name { font-family: var(--f-display); font-size: 1.125rem; line-height: 1.05; }

.site-nav { display: none; margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.nav-list > li { max-width: none; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: var(--s-2) 10px;
  border: 0; border-radius: var(--r-control); background: transparent;
  color: var(--ink); font: 500 var(--fs-ui)/1.2 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.nav-link:hover { background: var(--cobalt-200); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"], .nav-drop.is-current > .nav-link {
  background: var(--paper);
  box-shadow: inset 0 -3px 0 var(--cobalt);
}
.chev { transition: transform var(--dur-2) var(--ease-out); }
.nav-drop-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 270px;
  padding: var(--s-3);
  background: var(--paper);
  border-radius: var(--r-leaf);
  box-shadow: var(--shadow-2);
  transform-origin: top left;
  opacity: 0; visibility: hidden;
  transform: scale(.96) translateY(-4px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.nav-drop-panel::before { /* die-cut tab joining the panel to its button */
  content: ""; position: absolute; top: -6px; left: var(--s-4); width: 44px; height: 6px;
  background: var(--paper); border-radius: var(--r-tab-top);
}
.nav-drop.is-open .nav-drop-panel,
html:not(.js) .nav-drop:hover .nav-drop-panel,
html:not(.js) .nav-drop:focus-within .nav-drop-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s;
}
.nav-drop-list { margin: 0; padding: 0; list-style: none; }
.nav-drop-list a, .nav-drop-all {
  display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-control);
  color: var(--ink); text-decoration: none; font-size: var(--fs-ui); line-height: 1.3;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.nav-drop-list a:hover, .nav-drop-all:hover { background: var(--blossom-100); color: var(--ink); transform: translateX(3px); }
.nav-drop-list a[aria-current="page"], .nav-drop-all[aria-current="page"] { background: var(--cobalt-200); }
.nav-drop-all { margin-top: var(--s-2); border-top: 1px solid var(--hairline-soft); padding-top: var(--s-3); border-radius: 0; font-weight: 600; color: var(--cobalt); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); margin-inline-start: auto; }
.phone-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: var(--s-2) var(--s-2);
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--r-control); white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.phone-link:hover { color: var(--ink); background: var(--blossom-100); }
.phone-link:active { background: var(--blossom); transform: scale(.97); }
.header-phone { /* icon-only call button until the full nav fits */
  width: 48px; height: 48px; justify-content: center; padding: 0;
  border: 1.5px solid var(--ink); background: var(--paper);
}
.header-phone .glyph { width: 20px; height: 20px; }
.header-phone > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-estimate { display: none; }

.menu-toggle {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: var(--r-control); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.menu-toggle:hover { background: var(--blossom-100); }
.menu-toggle:active { transform: scale(.95); }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); background: currentColor; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); background: currentColor; }

@media (min-width: 560px) {
  .header-estimate { display: inline-flex; padding-inline: var(--s-4); }
}
@media (min-width: 1240px) {
  .site-nav { display: block; }
  .header-actions { margin-inline-start: 0; }
  .header-phone { width: auto; height: auto; padding: var(--s-2); border: 0; background: transparent; }
  .header-phone > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .menu-toggle { display: none; }
  .site-header-inner { gap: var(--s-4); }
}

/* mobile menu: a sheet that grows from the menu button corner */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--scrim);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-sheet {
  margin-inline-start: auto;
  width: min(100%, 420px);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  padding: var(--s-5) var(--gutter) var(--s-7);
  box-shadow: var(--shadow-2);
  transform-origin: top right;
}
.js .mobile-menu.is-opening .mobile-menu-sheet { animation: sheet-in var(--dur-2) var(--ease-out) both; }
.js .mobile-menu.is-opening { animation: fade-in var(--dur-2) var(--ease-out) both; }
@keyframes sheet-in { from { opacity: 0; transform: scale(.94) translate(8px, -8px); } }
@keyframes fade-in { from { opacity: 0; } }
.mobile-group { border-bottom: 1px solid var(--hairline-soft); }
.mobile-group summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; font: 400 1.5rem/1.1 var(--f-display);
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after { content: "+"; font-family: var(--f-text); font-size: 1.5rem; transition: transform var(--dur-2) var(--ease-out); }
.mobile-group[open] summary::after { transform: rotate(45deg); }
.mobile-group ul, .mobile-pages { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.mobile-group a, .mobile-pages a {
  display: block; padding: var(--s-2) 0; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.0625rem;
}
.mobile-pages a { font: 400 1.5rem/1.2 var(--f-display); padding: var(--s-3) 0; border-bottom: 1px solid var(--hairline-soft); background: none; box-shadow: none; }
.mobile-pages a[aria-current="page"], .mobile-group a[aria-current="page"] { color: var(--cobalt); text-decoration: underline; text-underline-offset: .25em; }
.mobile-actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.mobile-menu-sheet::after { /* endpaper at the foot of the sheet */
  content: ""; display: block; height: 48px; margin: var(--s-6) calc(-1 * var(--gutter)) calc(-1 * var(--s-7));
  background: var(--cobalt) var(--pattern-railing) repeat-x; background-size: auto 48px;
}
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ index tabs */
/* desktop: tabs on the fore-edge (spine), sticky */
.spine { display: none; }
@media (min-width: 1100px) {
  .spine {
    display: block;
    position: relative;
  }
  .spine::before { /* railing strip runs the full height of the spine */
    content: ""; position: absolute; inset: 0 auto 0 0; width: 24px;
    background: var(--cobalt) var(--pattern-railing) repeat-y; background-size: 24px auto;
    border-radius: var(--r-leaf);
  }
}
.index-tabs {
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  margin: 0; padding: var(--s-5) 0 0; list-style: none;
  display: grid; gap: var(--s-1);
}
.index-tabs li { max-width: none; }
.index-tab {
  --tab-bg: var(--cobalt-200);
  display: block;
  margin-left: 24px;
  padding: var(--s-2) var(--s-3) var(--s-2) var(--s-3);
  background: var(--tab-bg);
  color: var(--ink);
  border-radius: var(--r-tab);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transform: translateX(0);
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.index-tab:hover { transform: translateX(6px); color: var(--ink); background: var(--blossom); }
.index-tab[data-tone="blossom"] { --tab-bg: var(--blossom-100); }
.index-tab[data-tone="brass"] { --tab-bg: var(--brass-100); }
.index-tab[aria-current="true"], .index-tab[aria-current="true"]:hover { --tab-bg: var(--cobalt); background: var(--cobalt); color: var(--paper); transform: translateX(10px); }

/* mobile/tablet: a strip under the header that scrolls inside itself */
.tab-strip {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--hairline-soft);
}
.tab-strip-list {
  display: flex; gap: var(--s-2); margin: 0; padding: var(--s-2) var(--gutter);
  list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.tab-strip-list::-webkit-scrollbar { display: none; }
.tab-strip-list li { flex: none; scroll-snap-align: start; max-width: none; }
.tab-strip .index-tab { margin: 0; border-radius: var(--r-tab-top); white-space: nowrap; padding: var(--s-2) var(--s-4); min-height: 40px; display: flex; align-items: center; }
.tab-strip .index-tab:hover { transform: translateY(-2px); }
.tab-strip .index-tab[aria-current="true"] { transform: translateY(-3px); }
@media (min-width: 1100px) { .tab-strip { display: none; } }

/* ------------------------------------------------------------------ forms (base; full form in stage 8) */
.field { display: grid; gap: var(--s-1); margin-bottom: var(--s-4); }
.field label { font-size: var(--fs-label); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px;
  padding: var(--s-3) var(--s-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-ui)/1.4 var(--f-text);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--cobalt-200), 0 0 0 4px var(--ink); }
.field .hint { font-size: var(--fs-small); color: var(--ink-70); margin: 0; }
.leaf--cobalt .field .hint { color: var(--cobalt-200); }

/* ------------------------------------------------------------------ FAQ (native details) */
.faq-item { border-top: 1px solid var(--hairline-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline-soft); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: var(--s-4); align-items: baseline;
  padding: var(--s-4) 0; font-weight: 600; font-size: var(--fs-body);
  transition: color var(--dur-1) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--f-display); transition: transform var(--dur-2) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cobalt); }
.faq-answer { padding: 0 0 var(--s-4); }
.faq-answer p:last-child { margin-bottom: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height var(--dur-2) var(--ease-out), content-visibility var(--dur-2) allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* ------------------------------------------------------------------ breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: var(--fs-label); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: var(--s-2); color: var(--ink-70); }
.breadcrumbs [aria-current="page"] { color: var(--ink-70); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: var(--s-9);
  background: var(--cobalt-700);
  color: var(--paper);
}
.footer-endpaper { height: 72px; background: var(--cobalt) var(--pattern-railing) repeat-x; }
.footer-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-block: var(--s-8) var(--s-7);
  display: grid; gap: var(--s-7) var(--gutter);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .footer-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .8fr); }
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--blossom); }
.brand--footer, .brand--footer:hover { color: var(--paper); }
.brand--footer .brand-name { font-size: 1.375rem; }
.footer-brand p { margin-top: var(--s-4); font-size: var(--fs-ui); }
.footer-phone { color: var(--paper); padding-inline: 0; font-size: 1.125rem; }
.footer-phone:hover { background: transparent; color: var(--blossom); }
.footer-heading { font: 400 1.375rem/1.1 var(--f-display); margin-bottom: var(--s-4); color: var(--blossom); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--fs-ui); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-location { display: grid; gap: 2px; }
.footer-location-name { font-weight: 600; }
.footer-locations { gap: var(--s-4) !important; }
.footer-legal {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto; max-width: none;
  padding-block: var(--s-4) var(--s-6);
  border-top: 1px solid var(--rule-on-dark);
  font-size: var(--fs-small);
}

/* ------------------------------------------------------------------ page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-2); animation-timing-function: var(--ease-out); }

/* ------------------------------------------------------------------ reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition { navigation: none; }
}

/* =================================================================== HOME */

/* ---------- hero: the photo specimen leads, title leaf tucked over its corner, label leaf beneath ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: var(--s-4) var(--s-6);
}
.hero .leaf { margin: 0; }
.hero-title { order: 1; padding: var(--s-6) var(--s-5); z-index: 2; }
.hero-title h1 { max-width: 11ch; margin-bottom: var(--s-4); }
.hero-sentence { font-size: var(--fs-lead); line-height: 1.45; max-width: 44ch; margin-bottom: var(--s-5); }
.hero-photo { order: 2; padding: var(--s-2); margin: calc(-1 * var(--s-4)) 0 0 var(--s-2) !important; z-index: 1; }
.hero-photo img { width: 100%; height: clamp(220px, 34vh, 360px); object-fit: cover; object-position: 50% 62%; }
.hero-label { order: 3; padding: var(--s-3); justify-self: end; margin-top: calc(-1 * var(--s-6)) !important; margin-right: var(--s-2) !important; z-index: 3; }
.hero-label .specimen-label { max-width: none; }
.hero-areas { order: 4; padding: var(--s-4) var(--s-5); font-size: var(--fs-ui); }
.hero-areas p { margin-bottom: var(--s-2); }
.reviews-slot--compact .reviews-line { margin: 0; font-weight: 600; }
@media (max-width: 699px) {
  .hero-photo img { object-position: 50% 45%; }
  .hero-title { padding: var(--s-5) var(--s-4); }
  .hero-title .actions { display: grid; gap: var(--s-2); }
  .hero-sentence { margin-bottom: var(--s-4); }
}
@media (min-width: 700px) {
  .hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }
  .hero-photo { grid-column: 2 / 7; grid-row: 1 / 3; margin: 0 !important; order: 0; }
  .hero-photo img { height: clamp(360px, 52vh, 520px); }
  .hero-title { grid-column: 1 / 5; grid-row: 2 / 4; margin-top: calc(-1 * var(--s-9)) !important; order: 0; }
  .hero-label { grid-column: 5 / 7; grid-row: 3; justify-self: stretch; align-self: start; margin: calc(-1 * var(--s-5)) var(--s-3) 0 0 !important; order: 0; }
  .hero-areas { grid-column: 5 / 7; grid-row: 4; margin-top: var(--s-2) !important; order: 0; }
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 170px auto;
    column-gap: var(--gutter);
    row-gap: 0;
    padding-block: var(--s-5) var(--s-6);
  }
  .hero-photo { grid-column: 4 / 13; grid-row: 1 / 3; padding: var(--s-3); }
  .hero-photo img { height: clamp(340px, calc(100vh - var(--header-h) - 330px), 540px); }
  .hero-title { grid-column: 1 / 8; grid-row: 2 / 4; align-self: start; margin: 0 !important; padding: var(--s-6) var(--s-7) var(--s-6) var(--s-6); }
  .hero-title h1 { font-size: clamp(2.75rem, 4.6vw, 4.75rem); max-width: 13ch; }
  .hero-label { grid-column: 10 / 13; grid-row: 2; align-self: end; justify-self: end; margin: 0 calc(-1 * var(--s-3)) calc(-1 * var(--s-5)) 0 !important; }
  .hero-areas { grid-column: 8 / 13; grid-row: 3; align-self: start; margin: var(--s-7) 0 0 !important; padding: var(--s-4) var(--s-5); }
}

/* opening scene: leaves settle, the photo is smoothed down from the ceiling (once per session) */
.js.intro .hero [data-intro] { animation: settle var(--dur-3) var(--ease-out) both; animation-delay: calc((var(--i, 1) - 1) * 90ms); }
.js.intro .hero [data-intro="1"] { --i: 1; }
.js.intro .hero [data-intro="2"] { --i: 2; animation-name: none; }
.js.intro .hero [data-intro="3"] { --i: 3; }
.js.intro .hero [data-intro="4"] { --i: 4; }
.js.intro .hero-photo img { animation: smooth-down var(--dur-3) var(--ease-paper) both 60ms; }
@keyframes settle { from { opacity: 0; translate: 0 10px; } }
@keyframes smooth-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- recent work: a tight specimen spread, labels stuck on the photos' corners ---------- */
.work { overflow: clip; }
.work-head { display: grid; gap: var(--s-3); justify-items: start; margin-bottom: var(--s-6); }
.work-head h2, .work-head p { margin: 0; }
.work-spread {
  position: relative;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 180px;
}
.work-item { position: relative; margin: 0; min-height: 0; }
.work-link { display: block; height: 100%; border-radius: var(--r-leaf); overflow: hidden; background: var(--cobalt-200); }
.work-link img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-2) var(--ease-out); }
.work-link:hover img { transform: scale(1.025); }
.work-item figcaption { position: absolute; left: var(--s-2); bottom: var(--s-2); margin: 0; pointer-events: none; max-width: calc(100% - var(--s-4)); }
.work-item .specimen-label { box-shadow: var(--shadow-1); font-size: var(--fs-small); padding: var(--s-2) var(--s-3); gap: 0 var(--s-3); max-width: min(100%, 30ch); }
.work-a { grid-column: 1 / 3; grid-row: span 1; }
.work-b { grid-row: span 2; }
.work-c { grid-row: span 2; }
.work-d { grid-row: span 2; }
.work-e { grid-row: span 2; }
.work-f { grid-column: 1 / 3; grid-row: span 2; }
.work-b img { object-position: 50% 40%; }
.work-item:not(.work-a) .specimen-label dt:nth-of-type(n+2), .work-item:not(.work-a) .specimen-label dd:nth-of-type(n+2) { display: none; }
.work-a img { object-position: 50% 88%; }
@media (max-width: 699px) {
  .work-a .specimen-label dt:nth-of-type(n+2), .work-a .specimen-label dd:nth-of-type(n+2) { display: none; }
}
@media (min-width: 700px) {
  .work-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .work-head p { grid-column: 1; }
  .work-head .button { grid-column: 2; grid-row: 1 / 3; }
  .work-spread { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; gap: var(--s-4); }
  .work-a { grid-column: 1 / 5; grid-row: 1 / 3; }
  .work-b { grid-column: 5 / 7; grid-row: 1 / 4; }
  .work-c { grid-column: 1 / 3; grid-row: 3 / 6; }
  .work-d { grid-column: 3 / 5; grid-row: 3 / 6; }
  .work-e { grid-column: 5 / 7; grid-row: 4 / 6; }
  .work-f { grid-column: 1 / 7; grid-row: 6 / 8; }
  .work-f img { object-position: 50% 30%; }
}
@media (min-width: 1100px) {
  .work-spread { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 118px; gap: var(--s-4); }
  .work-a { grid-column: 1 / 7; grid-row: 1 / 3; }
  .work-b { grid-column: 7 / 10; grid-row: 1 / 4; }
  .work-c { grid-column: 10 / 13; grid-row: 1 / 4; }
  .work-d { grid-column: 1 / 4; grid-row: 3 / 6; }
  .work-e { grid-column: 4 / 7; grid-row: 3 / 6; }
  .work-f { grid-column: 7 / 13; grid-row: 4 / 6; }
}

/* the cobalt endpaper sheet over the spread turns like a page as it scrolls through (CSS only) */
.turning-sheet { display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 700px) {
    .work-spread { perspective: 1800px; }
    .turning-sheet {
      display: block;
      position: absolute; inset: calc(-1 * var(--s-3));
      z-index: 5;
      pointer-events: none;
      border-radius: var(--r-leaf);
      transform-origin: 100% 50%;          /* hinged on the fore-edge, next to the spine */
      backface-visibility: hidden;
      animation: turn-page linear both;
      animation-timeline: view();
      animation-range: entry 40px entry 500px;
    }
  }
}
@keyframes turn-page {
  0% { transform: rotateY(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: rotateY(-118deg) translateX(-4%); opacity: 0; }
}

/* ---------- where the first strip goes ---------- */
.fs-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.fs-head p { margin: 0; }
@media (min-width: 1100px) { .fs-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-7); align-items: end; } }
.fs-stage { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .first-strip.is-live .fs-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.fs-board { min-width: 0; }
.fs-figure { margin: 0; background: var(--cobalt-700); padding: var(--s-4); border-radius: var(--r-leaf); touch-action: pan-y; }
.first-strip.is-live .fs-figure { cursor: ew-resize; }
.fs-figure.is-dragging { cursor: grabbing; }
.fs-drawing { width: 100%; height: auto; max-height: 62vh; user-select: none; -webkit-user-select: none; }
.fs-ceiling { fill: var(--paper); }
.fs-crown { fill: var(--brass-100); }
.fs-bare { fill: var(--cobalt-200); }
.fs-seam { stroke: var(--paper); stroke-width: .9; }
.fs-seam--bad { stroke: var(--brass); stroke-width: 2.2; }
.fs-narrow { fill: var(--blossom); opacity: .88; }
.fs-tag { fill: var(--paper); font: 600 6px/1 var(--f-text); paint-order: stroke; stroke: var(--ink); stroke-width: 1.6px; }
.fs-rail { fill: var(--paper); }
.fs-casing { fill: var(--paper); }
.fs-glass { fill: var(--cobalt-200); }
.fs-sash { stroke: var(--paper); stroke-width: 1.6; fill: none; }
.fs-sill { fill: var(--paper); }
.fs-firebox { fill: var(--ink); }
.fs-base { fill: var(--paper); }
.fs-plumb line { stroke: var(--blossom); stroke-width: .7; }
.fs-plumb path { fill: var(--blossom); }
.fs-plumb-hit { fill: transparent; }
.fs-plumb-focus { fill: none; stroke: var(--blossom); stroke-width: .8; opacity: 0; transition: opacity var(--dur-1) var(--ease-out); }
.fs-plumb { outline: none; }
.fs-plumb:focus-visible .fs-plumb-focus, .fs-figure:hover .fs-plumb-focus { opacity: 1; }
.fs-plumb:focus-visible .fs-plumb-focus { stroke-width: 1.4; }
.fs-verdict { margin: var(--s-4) 0 0; font-weight: 600; color: var(--blossom); max-width: 62ch; }
.fs-readout { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; max-width: 48ch; margin: var(--s-3) 0 var(--s-3); }
.fs-num { font-variant-numeric: tabular-nums; }
.fs-math { color: var(--cobalt-200); max-width: 80ch; margin-top: var(--s-5); }

/* scene two: strips hang outwards from the line, the bob swings once and settles */
.fs-drawing.is-hanging .fs-strip { animation: strip-drop var(--dur-3) var(--ease-paper) both; animation-delay: var(--d, 0ms); }
.fs-drawing.is-hanging .fs-narrow, .fs-drawing.is-hanging .fs-tag { animation: narrow-in var(--dur-2) var(--ease-out) both 700ms; }
.fs-drawing.is-hanging .fs-seam--bad { animation: narrow-in var(--dur-2) var(--ease-out) both 700ms; }
.fs-drawing.is-hanging .fs-swing { animation: bob-swing 900ms var(--ease-out) both; }
@keyframes strip-drop {
  from { transform: translateY(-14px); clip-path: inset(0 0 100% 0); }
  to { transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes narrow-in { from { opacity: 0; } }
@keyframes bob-swing {
  0% { transform: rotate(3deg); }
  35% { transform: rotate(-2deg); }
  65% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
.fs-plumb { transform-box: view-box; }

/* controls */
.fs-controls { display: grid; gap: var(--s-5); }
.fs-controls[hidden] { display: none; }
.fs-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs-group legend, .fs-roll summary { font: 400 1.25rem/1.2 var(--f-display); margin-bottom: var(--s-3); padding: 0; }
.fs-choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fs-hint { font-size: var(--fs-small); color: var(--cobalt-200); margin: var(--s-2) 0 0; }
.fs-range { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
.fs-range[hidden] { display: none; }
.fs-range label { grid-column: 1 / -1; font-size: var(--fs-label); font-weight: 600; }
.fs-range input[type="range"] { width: 100%; accent-color: var(--blossom); min-height: 32px; }
.fs-range-num, .fs-unit-input { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-label); }
.fs-range-num input, .fs-unit-input input {
  width: 4.5em; min-height: 40px; padding: var(--s-1) var(--s-2);
  border: 1px solid var(--hairline); border-radius: var(--r-control);
  background: var(--paper); color: var(--ink); font: 600 var(--fs-ui)/1.2 var(--f-text);
}
.fs-range-num input:focus-visible, .fs-unit-input input:focus-visible { outline: 3px solid var(--blossom); outline-offset: 1px; }
.fs-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.fs-swatch {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 var(--s-2); align-items: center;
  padding: var(--s-2); text-align: left; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--r-control);
  background: var(--cobalt-700); color: var(--paper); font: 600 var(--fs-label)/1.2 var(--f-text);
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.fs-swatch:hover { border-color: var(--cobalt-200); }
.fs-swatch:active { transform: scale(.97); }
.fs-swatch[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--blossom); }
.fs-swatch-tile { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: var(--r-leaf); box-shadow: inset 0 0 0 1px var(--hairline-soft); }
.fs-swatch-rep { font-weight: 400; font-size: var(--fs-small); opacity: .85; }
.fs-roll summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; margin: 0; }
.fs-roll summary::-webkit-details-marker { display: none; }
.fs-roll summary::after { content: "+"; font-family: var(--f-text); transition: transform var(--dur-2) var(--ease-out); }
.fs-roll[open] summary::after { transform: rotate(45deg); }
.fs-roll-fields { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); }
.fs-roll-fields label { display: grid; gap: var(--s-1); font-size: var(--fs-label); font-weight: 600; }

/* ---------- what we hang: specimen entries of different weight ---------- */
.hang-book { display: grid; gap: var(--s-5) var(--gutter); grid-template-columns: minmax(0, 1fr); }
.hang-entry {
  display: grid; gap: var(--s-3); align-content: start;
  color: var(--ink); text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out);
}
.hang-entry:hover { color: var(--ink); transform: translateY(-3px); }
.hang-entry:hover .hang-name { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.hang-entry img, .hang-swatch { border-radius: var(--r-leaf); box-shadow: var(--shadow-1); width: 100%; object-fit: cover; }
.hang-entry--large img { aspect-ratio: 4 / 5; }
.hang-entry--medium img { aspect-ratio: 1 / 1; }
.hang-swatch { display: block; aspect-ratio: 3 / 2; }
.hang-text { display: grid; gap: var(--s-1); max-width: 40ch; font-size: var(--fs-ui); }
.hang-name { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.1; }
.hang-entry--small { grid-template-columns: 96px minmax(0, 1fr); align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--hairline-soft); }
.hang-entry--small .hang-swatch { aspect-ratio: 1 / 1; }
.hang-entry--small .hang-name { font-size: 1.25rem; }
@media (min-width: 700px) {
  .hang-book { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hang-entry--large { grid-column: span 3; }
  .hang-entry--medium { grid-column: span 3; }
  .hang-entry--small { grid-column: span 3; }
}
@media (min-width: 1100px) {
  .hang-book { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; }
  .hang-entry--large:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
  .hang-entry--large:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 3; margin-top: var(--s-8); }
  .hang-entry--medium:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
  .hang-entry--medium:nth-child(4) { grid-column: 9 / 13; grid-row: 2; }
  .hang-entry--medium img { aspect-ratio: 16 / 9; }
  .hang-entry--small:nth-child(5) { grid-column: 1 / 6; }
  .hang-entry--small:nth-child(6) { grid-column: 6 / 11; }
}

/* ---------- prep: ink leaf with a Flemish-bond strip ---------- */
.prep { padding-top: 0; overflow: clip; }
.prep-strip { height: var(--s-6); margin: 0 calc(-1 * var(--s-5)) var(--s-7); }
@media (min-width: 700px) { .prep-strip { margin-inline: calc(-1 * var(--s-7)); } }
@media (min-width: 1100px) { .prep-strip { margin-inline: calc(-1 * var(--s-8)); } }
.prep .lead { color: var(--blossom); }
.prep-list { display: grid; gap: var(--s-5) var(--s-7); grid-template-columns: minmax(0, 1fr); margin-top: var(--s-6); }
@media (min-width: 700px) { .prep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .prep-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prep-item h3 { font-size: 1.375rem; margin-bottom: var(--s-2); color: var(--paper); }
.prep-item p { margin: 0; font-size: var(--fs-ui); }

/* ---------- where we work ---------- */
.where { display: grid; gap: var(--s-6) var(--gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .where { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.where-areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-6); }
.where-areas a { font-weight: 600; }
.where-text h3 { font-size: 1.5rem; }
.where-locations { list-style: none; padding: 0; display: grid; gap: var(--s-4); margin: 0; }
.where-locations li { display: grid; gap: 2px; font-size: var(--fs-ui); }
.loc-name { font-weight: 600; }
.where-map { background: var(--paper); padding: var(--s-2); border-radius: var(--r-leaf); box-shadow: var(--shadow-1); }
.where-map iframe { display: block; height: 420px; border-radius: var(--r-leaf); }

/* ---------- questions ---------- */
.questions { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .questions { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.reviews-slot { padding: var(--s-4); border-radius: var(--r-leaf); background: var(--brass-100); }
.reviews-slot--compact { padding: 0; background: none; }
.reviews-line { margin: 0; font-weight: 600; }

/* ---------- estimate ---------- */
.estimate { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .estimate { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.estimate-contact { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.phone-link--on-dark { color: var(--paper); font-size: 1.25rem; padding-inline: 0; }
.phone-link--on-dark:hover { color: var(--ink); background: var(--blossom); padding-inline: var(--s-2); }

/* the lead form (validation states arrive with stage 8) */
.estimate-form { min-width: 0; }
.room-choice { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.room-choice legend { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: var(--s-3); padding: 0; }
.room-choice-buttons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.form-grid { display: grid; gap: 0 var(--gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.optional { font-weight: 400; color: inherit; opacity: .85; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.form-status { margin: 0; }
.form-legal { margin-top: var(--s-4); }
.field-error { margin: 0; font-size: var(--fs-small); font-weight: 600; }
.leaf--cobalt .field label { color: var(--paper); }
.leaf--cobalt .form-legal { color: var(--cobalt-200); }

/* small screens: the wall stays in view while the controls below it scroll */
@media (max-width: 1099px) {
  .first-strip.is-live .fs-board { display: contents; }
  .first-strip.is-live .fs-figure {
    position: sticky;
    top: calc(var(--header-h) + 52px);
    z-index: 3;
    padding: var(--s-2);
    box-shadow: var(--shadow-2);
  }
  .first-strip.is-live .fs-drawing { max-height: 34vh; }
  .first-strip.is-live .fs-stage { row-gap: var(--s-3); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .first-strip.is-live .fs-figure { top: calc(var(--header-h) + 56px); }
}

/* =================================================================== INNER PAGES (shared) */

/* page hero: title on paper beside the photo specimen (Home puts it on cobalt; inner pages don't clone that) */
.page-hero { padding-top: var(--s-6); }
.page-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); max-width: 16ch; }
.page-hero .lead { max-width: 52ch; }
.page-hero-grid { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1100px) { .page-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.page-hero-photo { position: relative; margin: 0; }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; box-shadow: var(--shadow-2); }
.page-hero-photo figcaption { position: absolute; left: calc(-1 * var(--s-4)); bottom: var(--s-5); }
@media (max-width: 699px) {
  .page-hero-photo img { aspect-ratio: 4 / 3; }
  .page-hero-photo figcaption { position: static; margin-top: var(--s-3); }
}

/* long-form copy with a sticky aside */
.article-grid { display: grid; gap: var(--s-7) var(--s-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .article-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); column-gap: var(--s-7); } .prose { max-width: 66ch; } }
.prose h2 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p { line-height: 1.7; }
.article-aside { display: grid; gap: var(--s-4); align-content: start; }
@media (min-width: 1100px) { .article-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.aside-card {
  padding: var(--s-5); border-radius: var(--r-leaf); background: var(--brass); color: var(--ink);
  box-shadow: var(--shadow-1); display: grid; gap: var(--s-3); justify-items: start;
}
.aside-card p { margin: 0; font-size: var(--fs-ui); }
.aside-title { font: 400 1.5rem/1.1 var(--f-display); }
.aside-card .phone-link { padding-inline: 0; }
.aside-endpaper { height: 180px; border-radius: var(--r-leaf); box-shadow: var(--shadow-1); }
@media (max-width: 1099px) { .aside-endpaper { display: none; } }

/* "what the job includes": a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-5) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--s-3); max-width: none; }
.steps li::before {
  content: counter(step); grid-row: 1 / 3;
  font: 400 1.75rem/1 var(--f-display); color: var(--blossom);
}
.steps h3 { font-size: 1.375rem; margin: 0 0 var(--s-1); }
.steps p { margin: 0; font-size: var(--fs-ui); color: var(--cobalt-200); }

/* gallery strip on service pages */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-4); margin-bottom: var(--s-6); }
.section-head h2 { margin: 0; }
.svc-photos { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .svc-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .svc-photos { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); align-items: end; }
}
.svc-photo { margin: 0; }
.svc-photo-link { display: block; border-radius: var(--r-leaf); overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 3 / 4; position: relative; }
.svc-photos .svc-photo:nth-child(2) .svc-photo-link { aspect-ratio: 4 / 5; }
.svc-photos .svc-photo:nth-child(3) .svc-photo-link { aspect-ratio: 1 / 1; }
.svc-photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-2) var(--ease-out); }
.svc-photo-link:hover img { transform: scale(1.025); }
.svc-photo-note {
  position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  padding: var(--s-3); background: var(--paper); color: var(--ink); border-radius: var(--r-leaf);
  font-size: var(--fs-label); font-weight: 600;
}

/* areas + other services */
.link-columns { display: grid; gap: var(--s-6) var(--s-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .link-columns { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.h3-size { font-size: var(--fs-h3); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.link-list a { font-weight: 600; }
@media (min-width: 1100px) { .page-hero { padding-bottom: var(--s-8); } }
.index-endpaper { min-height: 260px; height: 100%; border-radius: var(--r-leaf); box-shadow: var(--shadow-2); }
@media (max-width: 699px) { .index-endpaper { min-height: 120px; } }
.page-services .hang { padding-top: var(--s-8); }
.aside-card .phone-link { white-space: normal; }

/* =================================================================== AREA PAGES */

/* hero: photo first, title beside it, then a place card (service pages put the photo on the right) */
.area-hero-grid { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1100px) { .area-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.area-hero-photo figcaption { left: auto; right: calc(-1 * var(--s-4)); }
@media (max-width: 1099px) { .area-hero-photo { order: 2; } }
@media (max-width: 699px) { .area-hero-photo figcaption { right: auto; } }
.place-card {
  display: inline-grid; grid-auto-flow: column; gap: 0; margin: var(--s-6) 0 0;
  background: var(--brass-100); border: 1px solid var(--hairline); border-radius: var(--r-leaf);
}
.place-card > div { padding: var(--s-3) var(--s-4); }
.place-card > div + div { border-left: 1px solid var(--hairline); }
.place-card dt { font-size: var(--fs-label); color: var(--ink-70); }
.place-card dd { margin: 0; font-weight: 600; }
@media (max-width: 499px) { .place-card { grid-auto-flow: row; } .place-card > div + div { border-left: 0; border-top: 1px solid var(--hairline); } }

/* nearest location */
.nearest-grid { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .nearest-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.nearest-name { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--f-display); margin: 0 0 var(--s-2); }
.nearest-address { font-weight: 600; margin-top: 0; }
.area-zips { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: var(--s-5) 0; }
.area-zips-title { flex-basis: 100%; font-size: var(--fs-label); color: var(--cobalt-200); }
.zip { padding: 2px var(--s-2); border: 1px solid var(--rule-on-dark); border-radius: var(--r-control); font-weight: 600; font-variant-numeric: tabular-nums; }
.area-zips--note { display: block; font-size: var(--fs-label); color: var(--cobalt-200); max-width: 52ch; }
.nearest-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.nearest-contact .phone-link { padding-inline: 0; }
.where-map iframe { width: 100%; }
@media (max-width: 699px) { .where-map iframe { height: 300px; } }

/* services + two gallery photos */
.area-services-grid { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .area-services-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.area-svc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .area-svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.area-svc { display: grid; gap: 2px; padding: var(--s-4) 0; border-top: 1px solid var(--hairline-soft); color: var(--ink); text-decoration: none; }
.area-svc-name { font: 400 1.375rem/1.15 var(--f-display); color: var(--cobalt); }
.area-svc-line { font-size: var(--fs-label); color: var(--ink-70); }
.area-svc:hover .area-svc-name { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.area-thumbs { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.area-thumb { margin: 0; }
.area-thumbs .svc-photo-link { aspect-ratio: 2 / 3; }
@media (min-width: 700px) { .area-thumbs .area-thumb:nth-child(2) { margin-top: var(--s-8); } }
@media (max-width: 499px) { .area-thumbs { grid-template-columns: minmax(0, 1fr); } .area-thumbs .svc-photo-link { aspect-ratio: 4 / 3; } .area-thumbs .area-thumb:nth-child(2) .svc-photo-link { aspect-ratio: 4 / 3; } }

.other-areas .where-areas { margin-bottom: 0; }

/* areas index: a drawn sketch map, not a screenshot of a map */
@media (min-width: 1100px) { .areas-index-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.area-map-frame { margin: 0; padding: var(--s-4); background: var(--ground); color: var(--ink); border-radius: var(--r-leaf); box-shadow: var(--shadow-2); }
.area-map { display: block; width: 100%; height: auto; }
.am-dc { fill: var(--paper); stroke: var(--cobalt); stroke-width: 1.5; stroke-dasharray: 6 4; }
.am-dc-label { font: 400 22px var(--f-display); fill: var(--cobalt); }
.am-link { stroke: var(--brass); stroke-width: 2.5; }
.am-loc { fill: var(--brass); stroke: var(--ink); stroke-width: 1.5; }
.am-area { fill: var(--cobalt); stroke: var(--paper); stroke-width: 2; }
.am-label { font: 600 20px var(--f-text); fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 4px; stroke-linejoin: round; }
.area-map a:hover .am-area, .area-map a:focus-visible .am-area { fill: var(--blossom); stroke: var(--ink); }
.area-map a:hover .am-label { text-decoration: underline; }
.area-map-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: var(--fs-label); }
.am-key { display: inline-block; width: 12px; height: 12px; margin-left: var(--s-3); }
.am-key:first-child { margin-left: 0; }
.am-key--area { border-radius: 50%; background: var(--cobalt); }
.am-key--loc { border-radius: 2px; background: var(--brass); box-shadow: inset 0 0 0 1.5px var(--ink); }
.area-rows { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.area-row {
  display: grid; gap: var(--s-1) var(--s-5); grid-template-columns: minmax(0, 1fr); padding: var(--s-4) 0;
  border-top: 1px solid var(--hairline-soft); color: var(--ink); text-decoration: none;
}
.area-rows li:last-child .area-row { border-bottom: 1px solid var(--hairline-soft); }
@media (min-width: 700px) { .area-row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr); align-items: baseline; } }
.area-row-name { font: 400 1.625rem/1.15 var(--f-display); color: var(--cobalt); }
.area-row-near { font-size: var(--fs-ui); }
.area-row-dist { font-size: var(--fs-label); color: var(--ink-70); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .area-row-dist { text-align: right; } }
.area-row:hover .area-row-name { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.area-locs { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .area-locs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-locs li { display: grid; gap: 2px; }
.area-locs strong { font: 400 1.375rem/1.2 var(--f-display); font-weight: 400; }

/* =================================================================== GALLERY */
.gallery-hero { padding-bottom: var(--s-6); }
.gallery-hero h1 { max-width: none; }
.gallery-hero-grid { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1100px) {
  .gallery-hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); align-items: end; }
  .gallery-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
}
.gallery-hero .lead { margin-bottom: 0; }
.gallery-hero-grid > .gallery-filters { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .filter-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: var(--s-4); }
  .filter-title { margin: 0; }
}
.gallery-filters .choice { min-height: 40px; padding: var(--s-1) var(--s-3); white-space: nowrap; }
@media (min-width: 900px) { .filter-group { align-items: start; } .filter-title { padding-top: 10px; } }
.gallery-leaf { padding-top: var(--s-6); }
.gallery-filters { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); min-width: 0; }
.filter-group { min-width: 0; }
.filter-title { margin: 0 0 var(--s-2); font-size: var(--fs-label); font-weight: 600; color: var(--ink-70); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 899px) {
  .filter-buttons { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 2px var(--s-1); margin: -2px; }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-buttons .choice { flex: none; }
}
.choice[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }
.gallery-count { margin: 0; font-size: var(--fs-label); color: var(--ink-70); }
.gallery-wall { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s-4); }
@media (min-width: 700px) { .gallery-wall { columns: 3; column-gap: var(--s-5); } }
.gallery-item { break-inside: avoid; margin-bottom: var(--s-5); }
.gallery-figure { margin: 0; display: grid; gap: var(--s-2); }
.gallery-open { display: block; border-radius: var(--r-leaf); overflow: hidden; box-shadow: var(--shadow-1); }
.gallery-open img { display: block; width: 100%; height: auto; transition: transform var(--dur-2) var(--ease-out); }
.gallery-open:hover img { transform: scale(1.02); }
.gallery-open:focus-visible { outline-offset: 3px; }
.gallery-label { font-size: .8125rem; padding: var(--s-2) var(--s-3); }
@media (max-width: 699px) { .gallery-label dt:nth-of-type(3), .gallery-label dd:nth-of-type(3) { display: none; } }
.gallery-empty { display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-6) 0; }

/* lightbox (native <dialog>: the page behind is inert while it is open) */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--s-4);
  border: 0; background: var(--ink); color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: var(--ink); }
.has-lightbox { overflow: hidden; }
.lightbox-frame { display: grid; gap: var(--s-3); max-width: min(1200px, 100%); width: 100%; justify-items: center; }
.lightbox-img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-leaf); touch-action: pan-y; }
.lightbox-img.is-in-r { animation: lb-in-r var(--dur-2) var(--ease-out); }
.lightbox-img.is-in-l { animation: lb-in-l var(--dur-2) var(--ease-out); }
@keyframes lb-in-r { from { transform: translateX(24px); opacity: 0; } }
@keyframes lb-in-l { from { transform: translateX(-24px); opacity: 0; } }
.lightbox-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-2) var(--s-4); align-items: center; width: 100%; }
.lightbox-caption { margin: 0; font-size: var(--fs-ui); }
.lightbox-pos { margin: 0; font-size: var(--fs-label); color: var(--cobalt-200); font-variant-numeric: tabular-nums; }
.lightbox-buttons { display: flex; gap: var(--s-2); }
.lightbox-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-control);
  border: 1.5px solid var(--rule-on-dark); background: transparent; color: var(--paper); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-btn:hover { background: var(--cobalt-700); border-color: var(--paper); }
.lightbox-btn:active { background: var(--cobalt); }
.lightbox-btn:disabled { opacity: .35; cursor: default; }
.lightbox-btn:focus-visible { outline: 2px solid var(--blossom); outline-offset: 2px; }
@media (max-width: 599px) { .lightbox-bar { grid-template-columns: minmax(0, 1fr) auto; } .lightbox-buttons { grid-column: 1 / -1; justify-content: center; } }

/* =================================================================== OUR PROCESS: the steps hang from a plumb line */
.plumb-leaf { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .plumb-leaf { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.plumb-steps { list-style: none; margin: 0; padding: 0 0 var(--s-8) 0; counter-reset: step; position: relative; }
.plumb-steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 34px; width: 2px; background: var(--cobalt); }
.plumb-steps::after {   /* the bob */
  content: ""; position: absolute; left: 10px; bottom: 0; width: 20px; height: 20px;
  background: var(--brass); border: 1.5px solid var(--ink); border-radius: 50% 0 50% 50%; transform: rotate(-45deg);
}
.plumb-step { counter-increment: step; position: relative; padding-left: 64px; margin-bottom: var(--s-7); max-width: 64ch; }
.plumb-step::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--cobalt); color: var(--cobalt); font: 400 1.25rem/1 var(--f-display);
}
.plumb-step h2 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); margin: 4px 0 var(--s-3); }
.plumb-step p { line-height: 1.7; }
.plumb-photo { margin: 0; position: relative; }
.plumb-photo img { width: 100%; height: auto; border-radius: var(--r-leaf); box-shadow: var(--shadow-2); }
.plumb-photo figcaption { margin-top: var(--s-3); }
@media (min-width: 1100px) { .plumb-photo { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }

/* =================================================================== MATERIALS: a sample book */
.materials-toc { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-label); }
.materials-toc a { font-weight: 600; }
.material-book { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-7) var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .material-book { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.material { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--s-5); align-items: start; scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
@media (max-width: 499px) { .material { grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); } }
.material-swatch { display: block; aspect-ratio: 4 / 5; border-radius: var(--r-leaf); overflow: hidden; box-shadow: var(--shadow-1); }
.swatch-svg { display: block; width: 100%; height: 100%; }
.material-text h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); margin: 0 0 var(--s-3); }
.material-label { margin-bottom: var(--s-3); }
.material-text p { margin: 0; line-height: 1.65; }
.sw-ground { fill: var(--paper); }
.sw-ground--prepasted, .sw-ground--grasscloth { fill: var(--brass-100); }
.sw-ground--commercial { fill: var(--cobalt); }
.sw-ground--silk, .sw-ground--peel { fill: var(--blossom-100); }
.sw-ground--mural { fill: var(--ground); }
.sw-ground--metallic { fill: var(--brass); }
.sw-fibre { stroke: var(--cobalt); opacity: .4; stroke-width: 1.2; stroke-linecap: round; }
.sw-dot { fill: var(--brass); }
.sw-weft { stroke: var(--cobalt-700); stroke-width: 1.6; }
.sw-warp { stroke: var(--cobalt-200); stroke-width: .6; opacity: .3; }
.sw-seam { stroke: var(--paper); stroke-width: 1; opacity: .7; }
.sw-grass1 { fill: var(--brass); }
.sw-grass2 { fill: var(--brass); opacity: .55; }
.sw-grass3 { fill: var(--ink-70); opacity: .3; }
.sw-thread { stroke: var(--ink-70); stroke-width: .6; opacity: .35; }
.sw-seamgap { fill: var(--ink-70); }
.sw-silk1 { stroke: var(--blossom); stroke-width: 1.2; }
.sw-silk2 { stroke: var(--paper); stroke-width: 1; }
.sw-silk3 { stroke: var(--blossom); stroke-width: 1; opacity: .45; }
.sw-hill1 { fill: var(--cobalt); }
.sw-hill2 { fill: var(--cobalt-200); }
.sw-sun { fill: var(--blossom); }
.sw-panel { stroke: var(--paper); stroke-width: 1.5; }
.sw-foil { stroke: var(--brass-100); stroke-width: 2; opacity: .55; }
.sw-foil2 { stroke: var(--ink); stroke-width: 1; opacity: .15; }
.sw-backing { fill: var(--paper); }
.sw-curl { fill: var(--blossom); stroke: var(--ink); stroke-width: 1; }

/* =================================================================== FAQ page */
.faq-leaf { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .faq-leaf { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); } }
.faq-groups { display: grid; gap: var(--s-8); }
.faq-group { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.faq-group h2 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); margin: 0 0 var(--s-4); }
.faq-aside { align-self: start; }
@media (min-width: 1100px) { .faq-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }

/* =================================================================== ABOUT + CONTACT: locations */
.about-prose { max-width: 66ch; }
.about-locs-grid { display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1100px) { .about-locs-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.leaf--cobalt .area-map-frame { box-shadow: none; }
.loc-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .loc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loc-name { font-size: 1.375rem; margin: 0 0 var(--s-1); }
.loc-address { margin: 0; font-weight: 600; }
.loc-list--maps { gap: var(--s-6) var(--s-6); }
.loc-map { margin-top: var(--s-3); }
.loc-map iframe { height: 280px; }
.contact-lines { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; }
.contact-lines > div { display: grid; gap: 2px; }
.contact-lines dt { font-size: var(--fs-label); color: var(--ink-70); }
.contact-lines dd { margin: 0; }
.contact-phone { font: 400 clamp(1.5rem, 2.6vw, 1.875rem)/1.2 var(--f-display); }
.contact-lines dd > a[href^="mailto"] { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-phone { padding-inline: 0; }
.contact-lines .reviews-slot { margin: 0; }

/* =================================================================== PRIVACY */
.privacy { padding-top: var(--s-6); }
.privacy h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.privacy-date { color: var(--ink-70); font-size: var(--fs-label); }
.privacy-toc { margin: var(--s-6) 0 var(--s-7); padding: var(--s-5); background: var(--ground); border-radius: var(--r-leaf); max-width: 66ch; }
.privacy-toc ol { margin: var(--s-3) 0 0; padding-left: 1.5em; columns: 2; column-gap: var(--s-6); }
@media (max-width: 599px) { .privacy-toc ol { columns: 1; } }
.privacy-toc li { break-inside: avoid; margin-bottom: var(--s-1); }
.privacy .prose { max-width: 66ch; }
.privacy .prose section { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.privacy .prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); margin-top: var(--s-7); }

/* =================================================================== 404 */
.nf-leaf { min-height: 60vh; }
.nf-links { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.nf-strip { display: grid; justify-items: center; }
.nf-paper {
  display: block; width: min(220px, 50%); aspect-ratio: 1 / 3; border-radius: var(--r-leaf); box-shadow: var(--shadow-2);
  transform-origin: top left; transform: rotate(4deg);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 60% 100%, 0 100%);
}
@media (max-width: 699px) { .nf-strip { display: none; } }

/* =================================================================== FORM STATES (stage 8) */
/* errors and statuses sit on a light tag so they read on paper and on cobalt; the words carry the meaning */
.field-error, .form-status:not(:empty) {
  justify-self: start; padding: 2px var(--s-2); border-radius: var(--r-control);
  background: var(--blossom-100); color: var(--error); font-size: var(--fs-small); font-weight: 600;
}
.field-error::before { content: "Fix: "; font-weight: 700; }
.field.is-invalid input, .field.is-invalid textarea { border: 2px solid var(--error); }
.leaf--cobalt .field.is-invalid input, .quote-modal .field.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 2px var(--blossom); }
.form-status.is-success { background: var(--paper); color: var(--success); font-size: var(--fs-ui); padding: var(--s-2) var(--s-3); }
.form-status.is-pending { background: transparent; color: inherit; padding: 0; font-weight: 400; }
.form-status.is-error { font-size: var(--fs-label); }
.submit-button { position: relative; min-width: 12rem; justify-content: center; }
.submit-button.is-loading { cursor: progress; opacity: 1; }
.submit-button.is-loading::after {
  content: ""; width: 14px; height: 14px; margin-left: var(--s-2); border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.estimate-form.is-sent .submit-button { --btn-bg: var(--paper); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =================================================================== QUOTE MODAL */
.quote-modal {
  width: min(720px, calc(100vw - 2 * var(--s-4))); max-height: calc(100dvh - 2 * var(--s-4));
  padding: 0; border: 0; border-radius: var(--r-leaf); background: var(--cobalt); color: var(--paper);
  box-shadow: var(--shadow-2); overflow: auto; overscroll-behavior: contain;
}
.quote-modal::backdrop { background: var(--ink); opacity: .72; }
.quote-modal[open] { animation: quote-in var(--dur-2) var(--ease-out); }
@keyframes quote-in { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .quote-modal[open] { animation: none; } }
.quote-sheet { padding: var(--s-6) var(--s-6) var(--s-5); }
@media (max-width: 599px) {
  .quote-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .quote-sheet { padding: var(--s-5) var(--s-4); }
}
.quote-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-4); }
.quote-head h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.quote-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control);
  border: 1.5px solid var(--rule-on-dark); background: transparent; color: var(--paper); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out);
}
.quote-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.quote-close:hover { background: var(--cobalt-700); }
.quote-close:active { background: var(--ink); }
.quote-close:focus-visible { outline: 2px solid var(--blossom); outline-offset: 2px; }
.quote-lead { color: var(--cobalt-200); margin: var(--s-2) 0 var(--s-5); }
.quote-phone { color: var(--paper); padding-inline: 0; }
.quote-phone .glyph { display: none; }
.quote-modal .field label, .quote-modal .room-choice legend { color: var(--paper); }
.quote-modal .field .hint, .quote-modal .form-legal { color: var(--cobalt-200); }
.quote-modal .form-legal a { color: var(--paper); }
.quote-modal .choice:hover { background: var(--cobalt-700); color: var(--paper); }
.quote-modal .choice[aria-pressed="true"] { background: var(--blossom); color: var(--ink); border-color: var(--blossom); }
.quote-modal :focus-visible { outline-color: var(--blossom); }
.has-modal { overflow: hidden; }

/* =================================================================== MOBILE CALL BAR */
.call-bar { display: none; }
@media (max-width: 767px) {
  .js .call-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--hairline); box-shadow: 0 -8px 20px -14px var(--hairline);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .js .call-bar.is-visible { transform: none; visibility: visible; transition: transform var(--dur-2) var(--ease-out), visibility 0s; }
  .call-bar .button { min-height: 48px; justify-content: center; }
  .js .site-footer { padding-bottom: 72px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .js .call-bar { transition: none; } }

/* =================================================================== NO-JS FALLBACKS */
.menu-fallback { display: none; }
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 1239px) {
  html:not(.js) .menu-fallback {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-4);
    border: 1.5px solid var(--ink); border-radius: var(--r-control); color: var(--ink); font-weight: 600; text-decoration: none;
  }
}
