/* =========================================================
   Ford Framing — demo site
   Type: Cormorant Garamond (display) + Jost (text), self-hosted, SIL OFL
   Palette drawn from the Ford Framing logo: mahogany frame, tan initial, white mat
   ========================================================= */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f1ea;        /* gallery wall */
  --mat: #fbf9f5;          /* white mat board */
  --mat-2: #ede6da;        /* cream mat */
  --line: #ddd3c4;
  --line-soft: #e8e0d3;
  --ink: #1d1916;
  --ink-2: #3f3832;
  --muted: #675d54;
  --mahogany: #691801;     /* logo frame */
  --mahogany-2: #50140a;
  --tan: #9a7b5d;          /* logo initial (decorative use) */
  --tan-ink: #7a5b3d;      /* tan, darkened for text */
  --dark: #1e1714;
  --dark-2: #2a211d;
  --on-dark: #f1e9dc;
  --on-dark-muted: #bfb2a2;
  --gold: #c6a77d;
  --ok: #2f6b3a;
  --err: #a1260f;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-piece: 0 1px 1px rgba(40, 22, 12, .08), 0 10px 18px -8px rgba(40, 22, 12, .28), 0 28px 50px -24px rgba(40, 22, 12, .35);
  --header-h: 68px;
  --dock-h: 0px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--mahogany); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--mahogany-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; line-height: 1.05; text-wrap: balance; }
h2 em, h1 em { font-style: italic; color: var(--mahogany); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--mahogany); color: var(--mat); }

:focus-visible { outline: 2px solid var(--mahogany); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.i.flip { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--mat); padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--mat); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 .75rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--tan-ink); margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--gold); }
@media (max-width: 420px) { .eyebrow { letter-spacing: .14em; font-size: .7rem; } }
/* corner: a mitred frame corner, the site's recurring mark */
.corner { position: relative; width: 14px; height: 14px; flex: none; }
.corner::before, .corner::after { content: ""; position: absolute; left: 0; top: 0; background: currentColor; }
.corner::before { width: 14px; height: 2px; }
.corner::after { width: 2px; height: 14px; }

.section { padding-block: clamp(76px, 11vw, 136px); position: relative; }
.section-mat { background: var(--mat); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head h2 { font-size: clamp(2.35rem, 7.2vw, 4rem); }
.section-lede { margin-top: 1.1rem; font-size: clamp(1.06rem, 2.4vw, 1.18rem); color: var(--ink-2); max-width: 62ch; }
.section-head-row { max-width: none; display: grid; gap: 18px; align-items: end; }
@media (min-width: 860px) { .section-head-row { grid-template-columns: 1.1fr 1fr; gap: 48px; } .section-head-row .section-lede { margin-top: 0; justify-self: end; } }
.fineprint { margin-top: 32px; color: var(--muted); font-size: .98rem; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--b); border-radius: 1px;
  font: 500 .95rem/1.2 var(--sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  --b: var(--mahogany);
  background: var(--mahogany); color: var(--mat);
  /* double bevel line, like a mat's cut edge */
  box-shadow: inset 0 0 0 3px var(--mahogany), inset 0 0 0 4px rgba(255, 244, 228, .32);
}
.btn-primary:hover { background: var(--mahogany-2); color: var(--mat); box-shadow: inset 0 0 0 3px var(--mahogany-2), inset 0 0 0 4px rgba(255, 244, 228, .45); }
.btn-ghost { background: transparent; color: var(--ink); --b: rgba(29, 25, 22, .35); }
.btn-ghost:hover { --b: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .i { width: 1.1em; height: 1.1em; }
.count { opacity: .7; }

.round {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.round:disabled { opacity: .3; cursor: default; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--mahogany); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: .95rem; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(40, 22, 12, .5); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-logo { width: 40px; height: auto; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 600 1.42rem/1 var(--serif); letter-spacing: .01em; }
.brand-sub { font: 500 .66rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.menu { display: none; gap: 28px; }
.menu a { color: var(--ink-2); text-decoration: none; font-size: .92rem; letter-spacing: .03em; position: relative; padding-block: 6px; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--mahogany); transition: right .3s var(--ease); }
.menu a:hover { color: var(--ink); }
.menu a:hover::after { right: 0; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.link-phone { display: none; align-items: center; gap: .45em; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .02em; }
.link-phone:hover { color: var(--mahogany); }
@media (max-width: 380px) { .hide-xs { display: none; } .brand-sub { letter-spacing: .1em; } }
@media (min-width: 720px) { .link-phone { display: inline-flex; } .brand-logo { width: 44px; } }
@media (min-width: 1040px) { .menu { display: flex; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: 0; position: relative; overflow: hidden; }
.hero::before {
  /* faint wall texture: soft light from top right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 85% 0%, rgba(255, 255, 255, .75), transparent 60%);
}
.hero-grid { position: relative; display: grid; gap: clamp(40px, 7vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; } }
.hero-title { font-size: clamp(3.15rem, 13.4vw, 6.4rem); line-height: .94; letter-spacing: -.018em; }
.hero-title em { display: block; }
.hero-lede { margin-top: 1.4rem; font-size: clamp(1.08rem, 2.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
@media (max-width: 520px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.6rem; }
.rating { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.rating strong { color: var(--ink); font-weight: 500; }
.rating:hover span { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--tan); }
.stars .i { width: 15px; height: 15px; }

.status { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #b5aa9c; flex: none; position: relative; }
.status.is-open .status-dot { background: #3c8a4a; }
.status.is-open .status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3c8a4a; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* salon wall: pieces hung from a picture rail */
.salon {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 4vw, 30px);
  row-gap: clamp(18px, 4vw, 28px);
  padding-top: 26px;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.salon-rail { position: absolute; left: -10%; right: -10%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tan) 12%, var(--tan) 88%, transparent); opacity: .55; }
.piece { margin: 0; position: relative; }
.piece picture { background: var(--mat); padding: 6px; box-shadow: var(--shadow-piece); }
.piece img { width: 100%; }
/* hanging wires */
.piece::before { content: ""; position: absolute; left: 50%; width: 46%; height: 26px; top: -30px; transform: translateX(-50%); background: linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(122, 91, 61, .5) 50%, transparent calc(50% + .5px)) left/50% 100% no-repeat, linear-gradient(to bottom left, transparent calc(50% - .5px), rgba(122, 91, 61, .5) 50%, transparent calc(50% + .5px)) right/50% 100% no-repeat; clip-path: none; }
.piece-a { grid-row: 1 / span 2; margin-top: 30px; }
.piece-b { margin-top: 30px; width: 92%; }
.piece-c { width: 78%; justify-self: end; margin-top: 30px; }
.piece-b::before, .piece-c::before { display: none; }
.label {
  margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--tan);
  font: 500 1.05rem/1.25 var(--serif); color: var(--ink);
}
.label-no { display: block; font: 500 .66rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--tan-ink); margin-bottom: 2px; }
.label-sub { display: block; font: 400 .82rem/1.4 var(--sans); color: var(--muted); margin-top: 3px; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  position: relative;
}
.facts li { display: flex; align-items: flex-start; gap: 12px; padding: 18px 12px 18px 0; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 16px; }
.facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts li:nth-child(n+3) { padding-bottom: 6px; }
.facts strong { display: block; font: 500 1.06rem/1.2 var(--serif); color: var(--ink); margin-bottom: 2px; }
@media (min-width: 860px) { .facts strong { font-size: 1.2rem; } }
.facts .i { color: var(--tan); margin-top: 3px; }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 22px 20px; border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
}

/* ---------- services ---------- */
.services { display: grid; gap: 14px; counter-reset: svc; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.service {
  position: relative; background: var(--mat);
  padding: clamp(26px, 4vw, 34px) clamp(24px, 3.4vw, 32px) clamp(28px, 4vw, 36px);
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* inner bevel line: a mat window */
.service::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(154, 123, 93, .28); pointer-events: none; transition: inset .4s var(--ease), border-color .4s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -22px rgba(40, 22, 12, .45); }
.service:hover::before { inset: 6px; border-color: rgba(105, 24, 1, .35); }
@media (max-width: 639px) {
  .services { gap: 0; border-bottom: 1px solid var(--line); }
  .service { display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; background: none; border: 0; border-top: 1px solid var(--line); padding: 22px 0 24px; }
  .service::before { display: none; }
  .service:hover { transform: none; box-shadow: none; }
  .service .service-no { grid-row: 1 / span 2; margin: 6px 0 0; }
  .service h3 { margin-bottom: 6px; }
}
.service-no { display: block; font: italic 500 1.3rem/1 var(--serif); color: var(--tan-ink); margin-bottom: 18px; }
.service h3 { font-size: clamp(1.6rem, 4.6vw, 1.85rem); margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 1rem; }

/* ---------- process ---------- */
.process-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .process-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; align-items: start; } .process-figure { position: sticky; top: calc(var(--header-h) + 40px); } }
.steps { position: relative; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 34px; position: relative; }
.step:last-child { padding-bottom: 0; }
/* the moulding rail joining steps */
.step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 4px; width: 2px; background: linear-gradient(var(--tan), rgba(154, 123, 93, .15)); }
.step:last-child::before { display: none; }
.step-no {
  width: 56px; height: 56px; display: grid; place-items: center;
  font: 500 .95rem/1 var(--sans); letter-spacing: .06em; color: var(--mahogany);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(154, 123, 93, .45);
}
.step h3 { font-size: clamp(1.6rem, 4.6vw, 1.9rem); margin: 8px 0 8px; }
.step p { color: var(--ink-2); }
.note { margin-top: 40px; padding: 20px 22px; background: var(--paper); border-left: 3px solid var(--mahogany); font-size: .98rem; color: var(--ink-2); }
.note strong { color: var(--ink); font-weight: 500; }
.process-figure { margin: 0; }
.matboard { background: var(--mat-2); padding: clamp(18px, 4vw, 30px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), 0 20px 40px -28px rgba(40, 22, 12, .5); position: relative; }
.matboard::after { content: ""; position: absolute; inset: clamp(12px, 3vw, 22px); border: 1px solid rgba(154, 123, 93, .35); pointer-events: none; }
.matboard img { width: 100%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }

/* ---------- gallery ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 28px; padding: 2px var(--pad) 4px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--mat); color: var(--ink-2);
  font-size: .9rem; letter-spacing: .03em; cursor: pointer; transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--mat); }
.works { column-count: 2; column-gap: 14px; }
@media (min-width: 760px) { .works { column-count: 3; column-gap: 22px; } }
@media (min-width: 1120px) { .works { column-count: 4; } }
.work { break-inside: avoid; margin: 0 0 22px; display: inline-block; width: 100%; }
.work[hidden] { display: none; }
.work-btn { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--mat); cursor: zoom-in; overflow: hidden; box-shadow: 0 1px 2px rgba(40, 22, 12, .12); }
.work-btn img { width: 100%; transition: transform .7s var(--ease), filter .4s; }
.work-btn:hover img { transform: scale(1.035); }
.work-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(251, 249, 245, .92); color: var(--ink); opacity: 0; transform: translateY(4px); transition: all .3s var(--ease); }
.work-btn:hover .work-zoom, .work-btn:focus-visible .work-zoom { opacity: 1; transform: none; }
@media (hover: none) { .work-zoom { opacity: .9; transform: none; width: 30px; height: 30px; } .work-zoom .i { width: 15px; height: 15px; } }
.work figcaption { padding: 2px 2px 2px 10px; border-left: 2px solid var(--line); margin-top: 12px; }
.work-title { display: block; font: 500 1rem/1.2 var(--serif); color: var(--ink); }
.work-meta { display: block; font-size: .74rem; line-height: 1.4; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
@media (min-width: 760px) { .work-title { font-size: 1.1rem; } .work-meta { font-size: .8rem; } }
.works-more { display: flex; justify-content: center; margin-top: 18px; }
.js .work.is-new { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: transparent; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(20, 15, 12, .94); }
.lightbox[open] { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { position: relative; height: 100%; display: grid; place-items: center; padding: 64px 16px 24px; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-figure img { max-height: calc(100dvh - 190px); max-height: calc(100vh - 190px); width: auto; max-width: min(100%, 1100px); object-fit: contain; background: var(--mat); padding: 6px; }
@supports (height: 100dvh) { .lb-figure img { max-height: calc(100dvh - 190px); } }
.lb-cap { text-align: center; margin-top: 16px; }
.lb-cap .work-title { color: var(--on-dark); font-size: 1.3rem; }
.lb-cap .work-meta { color: var(--on-dark-muted); font-size: .85rem; }
.lb-count { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .18em; color: var(--on-dark-muted); }
.lb-close { position: absolute; top: 12px; right: 12px; color: var(--on-dark); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--on-dark); background: rgba(30, 23, 20, .55); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-nav:hover, .lb-close:hover { background: var(--on-dark); color: var(--dark); }
@media (max-width: 700px) { .lb-nav { top: auto; bottom: 18px; transform: none; } .lb-inner { padding-bottom: 84px; } .lb-figure img { max-height: calc(100vh - 250px); } @supports (height: 100dvh) { .lb-figure img { max-height: calc(100dvh - 250px); } } }

/* ---------- reviews ---------- */
.section-dark { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.section-dark::before {
  /* a big gilt frame corner, drawn in CSS */
  content: ""; position: absolute; top: 34px; right: max(var(--pad), calc((100vw - var(--wrap)) / 2)); width: 110px; height: 110px;
  border-top: 2px solid rgba(198, 167, 125, .4); border-right: 2px solid rgba(198, 167, 125, .4);
  box-shadow: inset -8px 8px 0 -6px rgba(198, 167, 125, .18);
  pointer-events: none;
}
.section-dark h2 { color: var(--on-dark); }
.section-dark h2 em { color: var(--gold); }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 44px; }
.reviews-head h2 { font-size: clamp(2.35rem, 7.2vw, 4rem); }
.score { display: flex; align-items: center; gap: 16px; }
.score strong { font: 500 4rem/1 var(--serif); color: var(--on-dark); }
.score-side { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--on-dark-muted); }
.score .stars, .section-dark .stars { color: var(--gold); }

.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 400px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(var(--pad), calc((100vw - var(--wrap)) / 2)) 10px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2));
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -2px; }
.review {
  scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--mat); color: var(--ink);
  padding: 30px 26px 26px;
  box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .8);
}
.review::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(154, 123, 93, .3); pointer-events: none; }
.review .stars { color: var(--tan); }
.review-kind { font: 500 .68rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--tan-ink); }
.quote { margin: 0; font: 500 1.28rem/1.42 var(--serif); color: var(--ink); flex: 1; position: relative; }
.quote p::before { content: "“"; } .quote p::after { content: "”"; }
.quote.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.more { align-self: flex-start; background: none; border: 0; padding: 6px 0; color: var(--mahogany); font-size: .88rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.who { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; font-size: .86rem; color: var(--muted); }
.who strong { font: 600 1.12rem/1.2 var(--serif); color: var(--ink); letter-spacing: .01em; }
.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; }
.carousel-progress { flex: 1; height: 2px; background: rgba(241, 233, 220, .16); position: relative; max-width: 420px; }
.carousel-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--gold); transition: left .2s linear, width .2s; }
.carousel-btns { display: flex; gap: 10px; color: var(--on-dark); }
.carousel-btns .round:hover:not(:disabled) { background: var(--on-dark); color: var(--dark); }
.review-links { margin-top: 30px; font-size: .86rem; color: var(--on-dark-muted); max-width: 70ch; }
.review-links a { color: var(--on-dark); }
.review-links a:hover { color: var(--gold); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 88px; } }
.about-art { margin: 0; position: relative; padding-bottom: 70px; padding-right: 36px; }
.about-photo { background: var(--mat); padding: 8px; box-shadow: var(--shadow-piece); }
.about-photo img { width: 100%; }
.logo-plate { position: absolute; right: 0; bottom: 0; width: clamp(130px, 34vw, 170px); background: #fff; padding: 14px 16px; box-shadow: var(--shadow-piece); }
.logo-plate::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(154, 123, 93, .3); pointer-events: none; }
.logo-plate img { width: 100%; }
.about-copy h2 { font-size: clamp(2.35rem, 7.2vw, 4rem); }
.pull { margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--mahogany); }
.pull p { font: italic 500 clamp(1.4rem, 4vw, 1.7rem)/1.3 var(--serif); color: var(--ink); }
.pull footer { margin-top: 10px; font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.pull footer::before { content: "— "; }
.ticks { margin-top: 30px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .i { color: var(--mahogany); margin-top: 4px; }

/* ---------- booking ---------- */
.book-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .book-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; } .contact-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.form-card { background: #fff; border: 1px solid var(--line-soft); padding: clamp(20px, 4.4vw, 40px); box-shadow: 0 30px 60px -44px rgba(40, 22, 12, .55); position: relative; }
.demo-note { font-size: .9rem; color: var(--ink-2); background: #f8f1e4; border: 1px dashed #cdb48f; padding: 12px 14px; margin-bottom: 28px; }
.demo-note strong { color: var(--mahogany); font-weight: 500; }
.booking { display: grid; gap: 30px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
fieldset.field > .field { margin-top: 6px; }
legend, .field label:not(.chip):not(.slot):not(.drop):not(.day), .flabel { padding: 0; font: 500 .95rem/1.3 var(--sans); color: var(--ink); letter-spacing: .01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 4px; }
.step-tag { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--tan); color: var(--tan-ink); font: 500 .78rem/1 var(--sans); margin-right: 4px; transform: translateY(-1px); align-self: center; }
.legend-sub, .opt { font-size: .82rem; font-weight: 400; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom */
  background: var(--mat); border: 1px solid #cfc4b4; border-radius: 1px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8b8077; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mahogany); background: #fff; box-shadow: 0 0 0 3px rgba(105, 24, 1, .14); }
[aria-invalid="true"] { border-color: var(--err) !important; background: #fdf6f4 !important; }
.select { position: relative; }
.select select { padding-right: 40px; cursor: pointer; }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--muted); }
.err { color: var(--err); font-size: .86rem; display: flex; gap: 6px; align-items: baseline; }
.err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font-size: .7rem; font-weight: 500; flex: none; transform: translateY(2px); }
.error-summary { border: 1px solid var(--err); background: #fdf6f4; padding: 14px 16px; font-size: .92rem; color: var(--ink); }
.error-summary:focus { outline: 2px solid var(--err); outline-offset: 2px; }
.error-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.error-summary a { color: var(--err); }

/* calendar: Tue–Sat only */
.cal { margin-top: 4px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal-head span { text-align: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.cal-month { grid-column: 1 / -1; font: 500 1.1rem/1 var(--serif); color: var(--ink); padding: 10px 2px 4px; }
.cal-month:first-child { padding-top: 0; }
.day { position: relative; display: block; }
.day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.day span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 54px; border: 1px solid var(--line); background: var(--mat);
  font: 500 1.08rem/1 var(--sans); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.day small { font: 400 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.day input:hover + span { border-color: var(--ink); }
.day input:checked + span { background: var(--mahogany); border-color: var(--mahogany); color: var(--mat); box-shadow: inset 0 0 0 3px var(--mahogany), inset 0 0 0 4px rgba(255, 244, 228, .35); }
.day input:checked + span small { color: rgba(251, 249, 245, .8); }
.day input:focus-visible + span { outline: 2px solid var(--mahogany); outline-offset: 2px; }
.day input:disabled + span { background: transparent; border-style: dashed; border-color: var(--line-soft); color: #b9afa4; }
.day input:disabled { cursor: not-allowed; }
.day.is-blank span { visibility: hidden; }
.day-today small { color: var(--tan-ink); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.slot, .chip { position: relative; display: block; cursor: pointer; }
.slot input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); background: var(--mat); font-size: .93rem; letter-spacing: .02em; transition: all .15s; }
.slot input:hover + span, .chip input:hover + span { border-color: var(--ink); }
.slot input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--mat); }
.slot input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--mahogany); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--mat); font-size: .92rem; transition: all .15s; }
.chip span::before { content: ""; width: 14px; height: 14px; border: 1px solid #b7aa98; border-radius: 3px; flex: none; transition: all .15s; background: #fff center/10px no-repeat; }
.chip input:checked + span { border-color: var(--mahogany); background: #f8eeea; color: var(--mahogany-2); }
.chip input:checked + span::before { background-color: var(--mahogany); border-color: var(--mahogany); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed #bfae97; background: var(--mat); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop .i { width: 28px; height: 28px; color: var(--tan-ink); }
.drop strong { display: block; font-weight: 500; }
.drop-sub { display: block; font-size: .85rem; color: var(--muted); }
.drop:hover, .drop.is-over { border-color: var(--mahogany); background: #fff; }
.file-input:focus-visible + .thumbs, .file-input:focus-visible ~ .thumbs { outline: none; }
.drop:has(+ .file-input:focus-visible) { outline: 2px solid var(--mahogany); outline-offset: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; background: var(--mat-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb button .i { width: 14px; height: 14px; }
.submit-row { display: grid; gap: 10px; text-align: center; }

.confirm { text-align: left; animation: rise .5s var(--ease) both; }
.confirm-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mahogany); color: var(--mat); margin-bottom: 18px; box-shadow: 0 0 0 6px #f3e6e2; }
.confirm-mark .i { width: 26px; height: 26px; }
.confirm h3 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 10px; }
.confirm h3:focus { outline: none; }
.confirm > p { color: var(--ink-2); }
.summary { margin: 22px 0 24px; border-top: 1px solid var(--line); display: grid; }
.summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.summary dt { color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.summary dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.confirm-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
@media (max-width: 520px) { .confirm-ctas .btn { flex: 1 1 100%; } }

.contact-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 4vw, 32px); position: relative; }
.contact-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(154, 123, 93, .25); pointer-events: none; }
.contact-card h3 { font-size: 1.9rem; margin-bottom: 18px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .i { color: var(--mahogany); margin-top: 4px; }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--mahogany); text-decoration: underline; }
.contact-sub { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.hours { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hours h4 { font-size: 1.4rem; }
.status-sm { font-size: .82rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { padding: 7px 0; border-bottom: 1px dotted var(--line); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; color: var(--ink-2); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--mahogany); font-weight: 500; }
.hours-table tr.is-today th::after { content: " · today"; font-size: .78rem; font-weight: 400; letter-spacing: .04em; }
.hours .hint { margin-top: 10px; }
.area-link { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 12px; background: var(--mat); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.area-link:hover { border-color: var(--ink); color: var(--ink); }
.area-link > .i { margin-left: auto; color: var(--mahogany); }
.area-link strong { font-weight: 500; display: block; }
.area-map { position: relative; width: 60px; height: 60px; flex: none; display: grid; place-items: center; color: var(--mahogany);
  background:
    linear-gradient(90deg, rgba(154, 123, 93, .16) 1px, transparent 1px) 0 0/12px 12px,
    linear-gradient(rgba(154, 123, 93, .16) 1px, transparent 1px) 0 0/12px 12px,
    var(--mat-2);
}
.area-ring { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(105, 24, 1, .35); }
.area-ring.r2 { width: 54px; height: 54px; border-color: rgba(105, 24, 1, .16); }
.social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.social a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; text-decoration: none; min-height: 32px; }
.social a:hover { color: var(--mahogany); }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 calc(28px + var(--dock-h)); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; flex-direction: column; align-items: flex-start; } }
.footer .logo-plate { position: relative; width: 112px; padding: 10px 12px; }
.footer-tag { font: italic 500 1.5rem/1.2 var(--serif); color: var(--on-dark); max-width: 14ch; }
.footer-h { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-list { display: grid; gap: 8px; font-size: .95rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 22px; position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .84rem; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: rgba(241, 233, 220, .14); }
.footer-base p:first-child { color: var(--on-dark); }

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 249, 245, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(40, 22, 12, .45);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.dock.is-visible { transform: none; }
.dock-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: .04em; font-size: .98rem; }
.dock-primary { background: var(--mahogany); border-color: var(--mahogany); color: var(--mat); box-shadow: inset 0 0 0 3px var(--mahogany), inset 0 0 0 4px rgba(255, 244, 228, .32); }
.dock-btn:hover { color: inherit; }
.dock-primary:hover { color: var(--mat); }
@media (max-width: 1039px) { :root { --dock-h: calc(70px + env(safe-area-inset-bottom)); } }
@media (min-width: 1040px) { .dock { display: none; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .services .reveal:nth-child(3n+2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .services .reveal:nth-child(3n+3), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js .hero-copy > :nth-child(4) { animation-delay: .22s; }
.js .hero-copy > :nth-child(5) { animation-delay: .3s; }
.js .piece { animation: hang 1.1s var(--ease) both; transform-origin: 50% -20px; }
.js .piece-a { animation-delay: .2s; }
.js .piece-b { animation-delay: .35s; }
.js .piece-c { animation-delay: .5s; }
.js .salon-rail { animation: rail 1.2s var(--ease) both; transform-origin: left; }
@keyframes hang { from { opacity: 0; transform: translateY(-14px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
@keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .status.is-open .status-dot::after { display: none; }
}

@media print {
  .topbar, .dock, .lightbox, .carousel-foot, .works-more, .filters { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
