/* Xtreme Studio Salon and Spa · website design preview v005 ("Pressed and Polished")
   White-led, natural, tactile. Materials: handmade paper, carved stone, brushed brass, pressed botanicals,
   deckled edges, debossed controls. Fonts: locally bundled, unmodified, SIL OFL 1.1 (see fonts/FONTS.md).
   Textures: original procedurally generated tiles in tex/ (see DESIGN-CONTEXT.md). */

@font-face { font-family: "Lora"; src: url("fonts/lora-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/lora-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-wght-italic.woff2") format("woff2-variations"), url("fonts/lora-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/nunito-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --paper: #FBF8F3;       /* handmade paper base */
  --page: #FFFEFB;        /* a fresh page lying on the paper */
  --linen: #EFE8DC;
  --stone: #F1EEE8;
  --ink: #2B2824;         /* 14.7:1 on white */
  --ink-2: #57514A;       /* 7.6:1 on white, 7.2:1 on paper */
  --moss: #4A5A42;        /* 7.4:1; white on moss 7.4:1 */
  --moss-hi: #56684C; --moss-lo: #3F4D38;
  --engrave: #6E5226;     /* engraved label ink, 7.3:1 on white, 6.8:1 on paper */
  --leaf: #7B8C6B;        /* decorative */
  --hair: #E4DDD2;
  --field: #857D72;       /* input borders, 4.1:1 on white, 3.8:1 on paper */
  --err: #9B2C20;
  --brass: linear-gradient(100deg, #8C6A32 0%, #D9B878 22%, #A07A3C 45%, #E6CC92 62%, #9C7638 82%, #C9A565 100%);
  --brushed: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.10) 0 1px, transparent 1px 3px);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --carved: "Marcellus", "Lora", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --max: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --space: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.25, 1, 0.3, 1);
  --lift: 0 1px 1px rgb(70 55 35 / 0.10), 0 10px 22px -10px rgb(70 55 35 / 0.28), 0 30px 50px -34px rgb(70 55 35 / 0.30);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
.lib { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--moss); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Materials ---------- */
.paper { background: url("tex/paper-grain.webp") 0 0 / 200px 200px, var(--paper); }
/* Deckled edge: the element's top and bottom are cut to an irregular handmade edge */
.deckle {
  -webkit-mask: url("tex/deckle-top.svg") 0 0 / 400px 14px repeat-x, linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat, url("tex/deckle-bottom.svg") 0 100% / 400px 14px repeat-x;
          mask: url("tex/deckle-top.svg") 0 0 / 400px 14px repeat-x, linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat, url("tex/deckle-bottom.svg") 0 100% / 400px 14px repeat-x;
}
/* Shadows live on a wrapper, because a mask would also cut away the element's own shadow */
.lift { position: relative; isolation: isolate; }
.lift::before { content: ""; position: absolute; z-index: -1; inset: 11px 1px; border-radius: 2px; box-shadow: 0 1px 2px rgb(70 55 35 / 0.16), 0 14px 22px -10px rgb(70 55 35 / 0.18); }
/* (A drop-shadow filter would follow the torn edge exactly, but it makes the browser re-filter the whole
   sheet on every keystroke or tab change; this separate layer is visually almost identical and far cheaper.) */
.engraved-label { font-family: var(--carved); font-weight: 400; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--engrave); text-shadow: 0 1px 0 rgb(255 255 255 / 0.9); }

/* ---------- Preview notes ---------- */
.note { display: block; max-width: 62ch; margin-top: 20px; padding: 12px 16px; font-size: 0.9375rem; line-height: 1.55; color: #394534; background: #EEF1EA; border-radius: 12px; border: 1px solid #D9E0D2; }
.note::before { content: "Preview note: "; font-weight: 700; }
.note--center { margin-inline: auto; text-align: center; }
.note--inline { margin-top: 8px; padding: 8px 12px; font-size: 0.875rem; }
body:not(.notes-on) .note { display: none; }
.preview { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 8px var(--gut); background: #EEF1EA; color: #394534; font-size: 0.9375rem; }
.preview__toggle { min-height: 36px; padding: 0 16px; border: 1px solid var(--moss); border-radius: 999px; background: var(--white); color: var(--moss); font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.preview__toggle:hover { background: #F6F8F3; }

/* ---------- Buttons: moss enamel set in a brass rim ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.btn--moss {
  color: var(--white);
  background: linear-gradient(180deg, var(--moss-hi), var(--moss-lo)) padding-box, var(--brushed) border-box, var(--brass) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -2px 0 rgb(0 0 0 / 0.16), 0 1px 1px rgb(60 45 25 / 0.2), 0 8px 16px -8px rgb(60 45 25 / 0.45);
  text-shadow: 0 -1px 0 rgb(0 0 0 / 0.25);
}
.btn--ghost {
  color: var(--moss);
  background: linear-gradient(180deg, #FFFFFF, #F7F3EC) padding-box, var(--brushed) border-box, var(--brass) border-box;
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 0 rgb(110 90 60 / 0.08), 0 1px 1px rgb(60 45 25 / 0.12), 0 6px 12px -8px rgb(60 45 25 / 0.3);
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); filter: brightness(1.04); } }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.22), 0 1px 1px rgb(60 45 25 / 0.15); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--moss); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: #C3A56C; transition: text-decoration-color 0.3s; }
.link:hover { text-decoration-color: var(--moss); }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / 0.94); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.head__in { display: flex; align-items: center; gap: 28px; max-width: var(--max); margin: 0 auto; padding: 14px var(--gut); }
.head__rule { height: 4px; background: linear-gradient(90deg, transparent, #C9A565 20%, #E6CC92 50%, #C9A565 80%, transparent) 0 0 / 100% 1px no-repeat, linear-gradient(90deg, transparent, #D9C39A 30%, #D9C39A 70%, transparent) 0 3px / 100% 1px no-repeat; opacity: 0; transition: opacity 0.4s; }
.head.is-scrolled .head__rule { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.seal { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 3px; background: var(--brushed), var(--brass); box-shadow: 0 1px 1px rgb(60 45 25 / 0.25), 0 4px 8px -4px rgb(60 45 25 / 0.4); }
.seal svg { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--paper) 60%, #EFE8DC); box-shadow: inset 0 1px 3px rgb(60 45 25 / 0.3); padding: 5px 9px; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--carved); font-size: 1.375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 0 #FFFFFF; }
.brand__sub { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.nav ul { display: flex; gap: 6px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; color: var(--moss); font-weight: 700; cursor: pointer; background: linear-gradient(#FFFFFF, #F7F3EC) padding-box, var(--brass) border-box; box-shadow: 0 1px 1px rgb(60 45 25 / 0.12), 0 6px 12px -8px rgb(60 45 25 / 0.3); }
.menu-btn__icon { width: 18px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
@media (max-width: 1040px) { .nav, .head__cta { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 400px) { .brand__name { font-size: 1.1875rem; } .seal { width: 40px; height: 40px; } }

/* Drawer (a sheet of letter paper) */
.drawer { margin: 0 0 0 auto; padding: 0; border: 0; height: 100%; max-height: none; width: min(420px, 100%); max-width: none; background: transparent; color: var(--ink); }
.drawer::backdrop { background: rgb(251 248 243 / 0.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: slide 0.45s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__in { position: relative; display: flex; flex-direction: column; gap: 24px; min-height: 100%; padding: 22px 28px 36px; overflow: hidden; box-shadow: -1px 0 0 #E4DDD2, -24px 0 50px rgb(60 45 25 / 0.14); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__title { font-family: var(--carved); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--engrave); }
.drawer__list a { display: flex; align-items: center; min-height: 60px; font-family: var(--serif); font-size: 1.875rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--hair); box-shadow: 0 1px 0 #FFFFFF; }
.drawer__list a:hover { color: var(--moss); }
.drawer .btn--moss { align-self: flex-start; }
.drawer__addr { color: var(--ink-2); font-size: 1rem; }
.drawer__sprig { position: absolute; right: -6px; bottom: -14px; width: 110px; height: 200px; transform: rotate(-12deg); opacity: 0.85; filter: drop-shadow(0 2px 2px rgb(60 45 25 / 0.2)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }

/* ---------- Type ---------- */
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1.12; margin-top: 10px; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.2; }
.shead { max-width: var(--max); margin: 0 auto clamp(32px, 4vw, 52px); }
.shead--center { text-align: center; }
.shead__aside { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }
.shead--center .shead__aside { margin-inline: auto; }
.ph { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--ink-2); padding: 0 16px; text-align: center; }

/* ---------- Hero: a mounted, framed print ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut) clamp(40px, 5vw, 64px); }
.hero__text { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__title { margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.75rem, 6.2vw, 5.25rem); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--moss); }
.hero__lede { margin: 20px auto 0; max-width: 36ch; font-size: 1.25rem; color: var(--ink-2); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.mount { position: relative; max-width: 1040px; margin: clamp(48px, 6vw, 72px) auto 0; }
.mount__frame { border-radius: 6px; padding: 5px; background: var(--brushed), var(--brass); box-shadow: 0 2px 2px rgb(60 45 25 / 0.18), 0 22px 30px -18px rgb(60 45 25 / 0.45), 0 60px 80px -60px rgb(60 45 25 / 0.5); }
.mount__mat { padding: clamp(14px, 3vw, 36px); border-radius: 2px; background: linear-gradient(180deg, #FFFFFF, #FAF7F2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8), inset 0 2px 6px rgb(60 45 25 / 0.14); }
.mount__img {
  display: grid; place-items: center; aspect-ratio: 16 / 7.5;
  background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.55), transparent 55%), linear-gradient(160deg, #F2EEE7 0%, #E5DDD0 60%, #D9CDBB 100%);
  /* bevel-cut mat edge: a light cut face, then a shadowed step into the picture */
  box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 4px #EDE6DA, 0 0 0 5px #D9D0C2, inset 0 3px 10px rgb(60 45 25 / 0.2);
}
.mount__specimen { position: absolute; left: clamp(-10px, -1vw, 0px); bottom: -28px; width: clamp(64px, 9vw, 110px); height: clamp(118px, 16.5vw, 200px); transform: rotate(-22deg); filter: drop-shadow(1px 2px 1.5px rgb(50 40 25 / 0.28)); }
.tag { position: relative; display: block; width: fit-content; max-width: 34ch; margin: 22px 0 0 auto; padding: 10px 16px 10px 30px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); background: url("tex/paper-grain.webp") 0 0 / 200px 200px, var(--paper); border-radius: 4px 10px 10px 4px; box-shadow: var(--lift); transform: rotate(-1deg); }
.tag__hole { position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 2.5px transparent; }
.tag__hole::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.25); }
@media (max-width: 700px) { .mount__img { aspect-ratio: 4 / 3.4; } .tag { margin-right: auto; } }

/* ---------- Dividers: the "herbarium" set ---------- */
.dv { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 3vw, 36px) var(--gut); }
.dv svg { width: 100%; height: auto; overflow: visible; }
.dv__compact { display: none; }
@media (max-width: 640px) { .dv__full { display: none; } .dv__compact { display: block; } }
.dv--filigree svg { max-height: 64px; }
.dv--arch { padding-bottom: 0; }
.dv--arch svg { filter: drop-shadow(0 3px 3px rgb(60 45 25 / 0.12)); }
.dv--laurel svg { max-height: 48px; }
/* Stitched linen ribbon, cut with swallowtail ends and held by a brass button */
.ribbon {
  position: relative; height: 30px; max-width: 880px; margin: 0 auto;
  background:
    repeating-linear-gradient(0deg, rgb(110 90 60 / 0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(110 90 60 / 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #F3EDE3, #E9E0D1);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
  filter: drop-shadow(0 2px 2px rgb(60 45 25 / 0.12));
}
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 22px; right: 22px; height: 0; border-top: 1.5px dashed #A99478; }
.ribbon::before { top: 5px; } .ribbon::after { bottom: 5px; }
.ribbon__knot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--brushed), var(--brass); box-shadow: 0 1px 2px rgb(60 45 25 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.5); z-index: 1; }
.ribbon__knot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; box-shadow: inset 0 1px 1px rgb(60 45 25 / 0.45); }
@media (max-width: 640px) { .ribbon { height: 24px; } .ribbon::before { top: 4px; } .ribbon::after { bottom: 4px; } }

/* ---------- Essentials: a carved stone ledge ---------- */
.ledge-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) var(--space); }
.ledge {
  display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px;
  background: url("tex/stone-mottle.webp") 0 0 / 160px 160px, linear-gradient(180deg, #F7F5F1, #EDE9E2);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -3px 6px rgb(60 45 25 / 0.06), 0 1px 1px rgb(60 45 25 / 0.12), 0 18px 30px -20px rgb(60 45 25 / 0.35);
}
.ledge__cell { position: relative; padding: 30px 30px 28px; }
.ledge__cell + .ledge__cell { box-shadow: inset 1px 0 0 #D8D1C5, inset 2px 0 0 #FFFFFF; }
.ledge__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; color: var(--engrave); background: #EFEBE4; box-shadow: inset 0 2px 3px rgb(60 45 25 / 0.18), 0 1px 0 #FFFFFF; }
.ledge__icon svg { width: 22px; height: 22px; }
.ledge__value { margin-top: 6px; font-size: 1.125rem; color: var(--ink); }
.ledge__value--tbc { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
@media (max-width: 860px) {
  .ledge { grid-template-columns: 1fr; }
  .ledge__cell + .ledge__cell { box-shadow: inset 0 1px 0 #D8D1C5, inset 0 2px 0 #FFFFFF; }
}

/* ---------- Services: the service book on a paper sheet ---------- */
.services { position: relative; isolation: isolate; padding: 0 clamp(8px, 2vw, 28px); }
/* The sheet's shadow is a separate layer behind it (cheaper than filtering the whole section on every tab change) */
.services::before { content: ""; position: absolute; z-index: -1; top: 12px; bottom: 12px; inset-inline: max(clamp(8px, 2vw, 28px), calc((100% - var(--max) - 120px) / 2)); border-radius: 3px; box-shadow: 0 1px 2px rgb(70 55 35 / 0.14), 0 18px 26px -10px rgb(70 55 35 / 0.16); }
.sheet { max-width: calc(var(--max) + 120px); margin: 0 auto; }
.sheet__in { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gut); }
.book { display: grid; grid-template-columns: 250px 1fr; align-items: start; }
.book__tabs { display: none; flex-direction: column; gap: 8px; padding-top: 18px; position: relative; z-index: 1; }
.js .book__tabs { display: flex; }
.book__tabs [role="tab"] {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; text-align: left;
  font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: var(--ink); cursor: pointer;
  border: 1px solid #E1D8CA; border-right: 0; border-radius: 12px 0 0 12px;
  background: linear-gradient(90deg, #F3ECE0, #EDE4D5);
  box-shadow: inset -8px 0 10px -8px rgb(60 45 25 / 0.25), 0 1px 0 #FFFFFF;
  transition: background 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.book__tabs [role="tab"]:hover { transform: translateX(-3px); }
.book__tabs [role="tab"][aria-selected="true"] { background: var(--page); color: var(--moss-lo); box-shadow: -4px 3px 8px -4px rgb(60 45 25 / 0.28); margin-right: -1px; transform: translateX(-6px); }
.eyelet { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); box-shadow: 0 1px 1px rgb(60 45 25 / 0.3); position: relative; }
.eyelet::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #F6F0E6; box-shadow: inset 0 1px 1px rgb(60 45 25 / 0.35); }
.book__pages { display: grid; gap: 28px; }
.page {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 3.5vw, 44px); background: var(--page); border: 1px solid #E6DED1; border-radius: 4px 14px 14px 14px;
  /* a small stack of pages beneath */
  box-shadow: 0 1px 2px rgb(60 45 25 / 0.08), 5px 5px 0 -1px #F6F0E7, 5px 5px 0 0 #E3DACB, 10px 10px 0 -1px #F2EBE0, 10px 10px 0 0 #DDD3C3;
}
.page[hidden] { display: none; }
.js .page:not([hidden]) { animation: turn 0.5s var(--ease); }
@keyframes turn { from { opacity: 0; transform: translateX(10px) rotate(0.3deg); } to { opacity: 1; transform: none; } }
.page__img { display: grid; place-items: center; aspect-ratio: 4 / 4.2; border-radius: 3px; background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #EEF1EA, #D9E0D0); box-shadow: inset 0 2px 8px rgb(60 45 25 / 0.18), 0 0 0 5px #FFFFFF, 0 0 0 6px #E3DACB; }
.page__img--b { background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #F4EFE7, #E4D9C8); }
.page__img--c { background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #F5ECE6, #E6D3C6); }
.page__text p { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.ledger { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 22px 0 14px; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ledger dt { font-family: var(--carved); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--engrave); }
.ledger dd { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink-2); }
.services .note { margin-top: 36px; }
@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .book__tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0 0 0 6px; }
  .book__tabs [role="tab"] { min-height: 46px; padding: 0 14px; font-size: 1rem; border: 1px solid #E1D8CA; border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: inset 0 -8px 10px -8px rgb(60 45 25 / 0.25); }
  .book__tabs [role="tab"]:hover { transform: translateY(-2px); }
  .book__tabs [role="tab"][aria-selected="true"] { transform: translateY(-4px); margin-right: 0; box-shadow: 0 -3px 8px -4px rgb(60 45 25 / 0.25); }
  .page { grid-template-columns: 1fr; border-radius: 14px; }
  .page__img { aspect-ratio: 16 / 10; }
}

/* ---------- Work: a hung gallery wall ---------- */
.work { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gut) var(--space); }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.piece { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.piece--1 { grid-column: 1 / 5; }
.piece--2 { grid-column: 5 / 9; margin-top: 48px; }
.piece--3 { grid-column: 9 / 13; }
.piece--4 { grid-column: 2 / 7; margin-top: -20px; }
.piece--5 { grid-column: 7 / 12; }
.frame { width: 100%; padding: 4px; border-radius: 3px; background: var(--brushed), var(--brass); box-shadow: 0 2px 2px rgb(60 45 25 / 0.16), 0 16px 26px -16px rgb(60 45 25 / 0.45); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.frame__mat { padding: clamp(10px, 1.6vw, 20px); background: linear-gradient(#FFFFFF, #F9F6F1); box-shadow: inset 0 2px 5px rgb(60 45 25 / 0.12); }
.frame__img { display: grid; place-items: center; aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #F2EEE7, #E1D8CA); box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 3px #ECE5D9, inset 0 2px 7px rgb(60 45 25 / 0.2); }
.frame__img--b { background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #EEF1EA, #D6DECD); }
.frame__img--c { background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #F5ECE6, #E4D0C2); }
.piece--4 .frame__img, .piece--5 .frame__img { aspect-ratio: 5 / 4; }
.oval { width: 86%; padding: 5px; border-radius: 50%; background: var(--brushed), var(--brass); box-shadow: 0 2px 2px rgb(60 45 25 / 0.16), 0 18px 28px -16px rgb(60 45 25 / 0.45); transition: transform 0.4s var(--ease); }
.oval__img { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 50%; background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #EEF1EA, #D6DECD); box-shadow: inset 0 3px 10px rgb(60 45 25 / 0.25), 0 0 0 6px #FFFFFF, 0 0 0 7px #E6DECF; }
@media (hover: hover) { .piece:hover .frame, .piece:hover .oval { transform: translateY(-3px); } }
.plate { padding: 4px 14px; font-family: var(--carved); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #3B2E17; border-radius: 3px; background: var(--brushed), linear-gradient(180deg, #E8D3A2, #CFB27A); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), 0 1px 2px rgb(60 45 25 / 0.3); text-shadow: 0 1px 0 rgb(255 255 255 / 0.4); }
.work__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(40px, 5vw, 64px); }
.work__foot .note { margin-top: 0; }
@media (max-width: 760px) {
  .wall { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .piece--1, .piece--2, .piece--3, .piece--4, .piece--5 { grid-column: auto; margin-top: 0; }
  .piece--1 { grid-column: 1 / -1; } .piece--1 .frame { max-width: 360px; }
  .piece--4 { grid-column: 1 / -1; }
}
@media (max-width: 340px) {
  .wall { grid-template-columns: 1fr; }
  .piece--2 .oval { width: 70%; }
}

/* ---------- Studio: a pinned letter and cameo portraits ---------- */
.studio { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) var(--space); }
.letter { padding: clamp(44px, 5vw, 60px) clamp(28px, 4vw, 48px); }
.studio > .lift { rotate: -0.6deg; }
.letter__text { margin-top: 14px; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.55; }
.letter__pin { position: absolute; right: 18px; top: -26px; width: 60px; height: 110px; transform: rotate(18deg); filter: drop-shadow(1px 2px 1.5px rgb(50 40 25 / 0.28)); }
.pin { position: absolute; right: 44px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); box-shadow: 0 2px 2px rgb(50 40 25 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.6); }
.people__label { text-align: center; margin-bottom: 26px; }
.cameos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 32px); }
.cameo { display: grid; justify-items: center; text-align: center; }
.cameo:nth-child(2) { margin-top: 36px; }
.cameo__bezel { width: 100%; padding: 5px; border-radius: 50%; background: var(--brushed), var(--brass); box-shadow: 0 2px 2px rgb(60 45 25 / 0.18), 0 16px 24px -14px rgb(60 45 25 / 0.45); }
.cameo__img { aspect-ratio: 4 / 5; border-radius: 50%; background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #F2EEE7, #E1D8CA); box-shadow: inset 0 3px 10px rgb(60 45 25 / 0.25); }
.cameo__img--b { background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #EEF1EA, #D6DECD); }
.cameo__img--c { background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.6), transparent 55%), linear-gradient(160deg, #F5ECE6, #E4D0C2); }
.cameo__tag { margin-top: 16px; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.cameo__role { font-size: 1rem; color: var(--ink-2); }
.people .note { margin: 28px auto 0; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cameos { grid-template-columns: 1fr 1fr; gap: 24px 18px; } .cameo:nth-child(2) { margin-top: 0; } .cameo:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; } .cameo__tag { font-size: 1.125rem; } }

/* ---------- Reviews: carved stone medallions ---------- */
.reviews { max-width: 1000px; margin: 0 auto; padding: 0 var(--gut) var(--space); }
.medals { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); }
.medal {
  display: grid; place-content: center; text-align: center; width: clamp(210px, 24vw, 250px); aspect-ratio: 1; border-radius: 50%;
  background: url("tex/stone-mottle.webp") 0 0 / 160px 160px, radial-gradient(circle at 35% 30%, #FAF8F4, #ECE7DF 70%, #E3DDD3);
  box-shadow: inset 0 0 0 8px rgb(255 255 255 / 0.45), inset 0 0 0 9px #D8D0C3, inset 0 0 0 10px #FFFFFF, inset 0 -6px 12px rgb(60 45 25 / 0.08), 0 1px 1px rgb(60 45 25 / 0.14), 0 18px 28px -18px rgb(60 45 25 / 0.4);
}
.medal__num { font-family: var(--serif); font-weight: 500; font-size: clamp(3.75rem, 7vw, 4.75rem); line-height: 1; color: var(--moss-lo); text-shadow: 0 1px 0 rgb(255 255 255 / 0.9), 0 -1px 0 rgb(60 45 25 / 0.12); }
.medal__txt { margin-top: 8px; font-size: 1rem; line-height: 1.4; color: #4F4A43; }
.medals__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 32px; margin-top: 22px; }
.card-quote-wrap { max-width: 660px; margin: clamp(48px, 6vw, 72px) auto 0; }
.card-quote { padding: clamp(40px, 5vw, 56px) clamp(24px, 5vw, 56px); text-align: center; }
.card-quote-wrap { rotate: 0.5deg; }
.card-quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.45; }
.card-quote blockquote p::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: 0.55; margin-bottom: 14px; color: #B89A5E; font-style: normal; }
.card-quote figcaption { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.reviews .note { margin-top: 36px; }

/* ---------- Visit and request letter ---------- */
.visit { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: start; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) var(--space); }
.visit__addr { margin: 22px 0 8px; font-style: normal; font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.45; }
.details { margin-top: 30px; border-top: 1px solid var(--hair); }
.details > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); box-shadow: 0 1px 0 #FFFFFF; }
.details dt { font-family: var(--carved); font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--engrave); padding-top: 2px; }
.details dd { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink-2); }
.request { padding: clamp(44px, 5vw, 60px) clamp(24px, 4vw, 48px); }
.request__intro { margin-top: 10px; color: var(--ink-2); }
.form { display: grid; gap: 22px; margin-top: 28px; }
.f { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.f label, .f legend { font-weight: 700; font-size: 1rem; padding: 0; color: var(--ink); }
.f__opt { font-weight: 400; color: var(--ink-2); }
.f__hint { font-size: 0.9375rem; color: var(--ink-2); }
/* Debossed fields: pressed into the paper */
.f input[type="text"], .f select, .f textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font-size: 1.0625rem; color: var(--ink); border-radius: 10px;
  background: #FFFEFC; border: 1.5px solid var(--field);
  box-shadow: inset 0 2px 3px rgb(60 45 25 / 0.12), 0 1px 0 #FFFFFF; transition: border-color 0.2s, box-shadow 0.2s;
}
.f select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: none; border-color: var(--moss); box-shadow: inset 0 2px 3px rgb(60 45 25 / 0.12), 0 0 0 3px rgb(74 90 66 / 0.3); }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] { border: 2px solid var(--err); }
.f input[aria-invalid="true"]:focus-visible { border-color: var(--err); box-shadow: inset 0 2px 3px rgb(60 45 25 / 0.12), 0 0 0 3px rgb(155 44 32 / 0.22); }
.f__err { font-size: 0.9375rem; font-weight: 700; color: var(--err); }
.f__err::before { content: "! "; }
/* Recessed toggle track: the chosen option rises out of it */
.toggles { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 999px; background: #EEE7DB; border: 1px solid #D8CDBC; box-shadow: inset 0 2px 4px rgb(60 45 25 / 0.14), 0 1px 0 #FFFFFF; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: #3F3A34; transition: background 0.25s, box-shadow 0.25s, color 0.25s; }
.toggle input:checked + span { background: linear-gradient(#FFFFFF, #F8F4EE); color: var(--moss-lo); box-shadow: 0 1px 2px rgb(60 45 25 / 0.25), inset 0 1px 0 #FFFFFF, 0 0 0 1px #CDB88E; }
.toggle input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }
@media (max-width: 480px) {
  .toggles { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 16px; }
  .toggle span { justify-content: center; text-align: center; padding: 6px 8px; min-height: 48px; line-height: 1.2; border-radius: 12px; font-size: 0.9375rem; }
}
.request__fine { font-size: 0.9375rem; color: var(--ink-2); text-align: center; }
.request__status:empty { display: none; }
.request__status { padding: 16px 18px; border-radius: 10px; background: #FFFFFF; border: 1.5px solid var(--moss); color: var(--moss-lo); font-weight: 600; }
.request__status:focus { outline: none; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .details > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--gut) 40px; text-align: center; }
.foot__rule { height: 6px; max-width: var(--max); margin: 0 auto 48px; background: var(--brass) 0 0 / 100% 1.5px no-repeat, linear-gradient(90deg, #D9C39A, #D9C39A) 0 4px / 100% 1px no-repeat; opacity: 0.9; }
.foot__sprig { width: 40px; height: 72px; margin: 0 auto 14px; filter: drop-shadow(1px 2px 1.5px rgb(50 40 25 / 0.25)); }
.foot__name { font-family: var(--carved); font-size: clamp(1.625rem, 3vw, 2.125rem); letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 0 #FFFFFF; }
.foot__sub { color: var(--ink-2); font-weight: 600; }
.foot__addr { margin-top: 18px; color: var(--ink-2); }
.foot__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 8px; margin-top: 18px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-decoration-color: #C3A56C; text-underline-offset: 5px; }
.foot__legal { margin-top: 24px; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .rise.is-in { opacity: 1; transform: none; }
  .js .mount.rise { transform: translateY(18px) scale(0.985); }
  .js .mount.rise.is-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print { .preview, .head, .drawer, .form, .book__tabs, .dv { display: none !important; } .page[hidden] { display: grid !important; } }
