/* ==========================================================================
   ATELIER NOIR — Amazing Tailoring and Alterations
   Single stylesheet. Organized in sections:
   01 Tokens · 02 Reset · 03 Typography · 04 Layout · 05 Buttons · 06 Topbar
   07 Nav · 08 Hero · 09 Sections · 10 Cards · 11 Reviews · 12 Gallery
   13 Forms · 14 Footer · 15 Popup · 16 Mobile bar · 17 Motion · 18 Utilities
   ========================================================================== */

/* ---------- 01 TOKENS ---------- */
:root {
  /* Colour — verified WCAG AA. Gold is 7.75:1 on ink but only 2.12:1 on silk,
     so gold is NEVER used for body text on light sections. */
  --ink:            #14110F;
  --ink-soft:       #191512;
  --silk:           #F5EFE6;
  --silk-deep:      #EBE2D4;
  --smoke:          #1F1A16;
  --gold:           #C6A15B;
  --gold-bright:    #DCBB77;
  --gold-dim:       #8A6F3C;
  --burgundy:       #6E2639;
  --burgundy-soft:  #8A3247;

  --text-on-dark:       #EDE6DA;
  --text-on-dark-mute:  #9C9083;
  --text-on-light:      #14110F;
  --text-on-light-mute: #5A5049;

  --line-dark:  rgba(198, 161, 91, .22);
  --line-light: rgba(20, 17, 15, .14);

  --glass-dark:  rgba(31, 26, 22, .55);
  --glass-light: rgba(245, 239, 230, .82);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body:    "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.6rem, 7.5vw, 5.4rem);
  --fs-h1:    clamp(2.2rem, 6vw, 4.6rem);
  --fs-h2:    clamp(1.9rem, 4.2vw, 3.2rem);
  --fs-h3:    clamp(1.3rem, 2.2vw, 1.75rem);
  --fs-body:  clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --section-y: clamp(4rem, 9vw, 8rem);
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --maxw: 1280px;
  --maxw-text: 68ch;

  /* Form */
  --radius-btn: 2px;
  --radius-card: 4px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.18);
  --shadow-2: 0 1px 2px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.22);
  --shadow-3: 0 1px 2px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.22), 0 24px 60px rgba(0,0,0,.28);
  --shadow-gold: 0 0 0 1px rgba(198,161,91,.35), 0 18px 50px rgba(198,161,91,.14);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 180ms;
  --dur: 280ms;
  --dur-slow: 460ms;

  /* z-index scale — per UX guideline: 10 sticky, 300 dropdown, 999 modal, 9999 toast */
  --z-base: 1;
  --z-sticky: 10;
  --z-nav: 20;
  --z-dropdown: 300;
  --z-modal: 999;
  --z-toast: 9999;
}

/* ---------- 02 RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0 0 var(--sp-4); }
:target { scroll-margin-top: 140px; }

/* Focus — visible gold ring everywhere (a11y CRITICAL) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-light :focus-visible, .sec--light :focus-visible { outline-color: var(--burgundy); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  background: var(--gold); color: var(--ink);
  padding: var(--sp-3) var(--sp-5); font-weight: 500;
  z-index: var(--z-toast); transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- 03 TYPOGRAPHY ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: local("Cormorant Garamond"), local("CormorantGaramond-SemiBold");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: local("Jost"), local("Jost-Light");
  font-weight: 300 500; font-style: normal; font-display: swap;
}

.display  { font-family: var(--font-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  margin: 0 0 var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px;
  background: var(--gold); flex: none;
}
.sec--light .eyebrow { color: var(--burgundy); }
.sec--light .eyebrow::before { background: var(--burgundy); }

.lede { font-size: 1.15em; color: var(--text-on-dark-mute); max-width: var(--maxw-text); }
.sec--light .lede { color: var(--text-on-light-mute); }
.muted { color: var(--text-on-dark-mute); }
.sec--light .muted { color: var(--text-on-light-mute); }
.gold { color: var(--gold); }

/* Running-stitch divider — signature motif */
.stitch {
  height: 1px; border: 0; margin: 0;
  background-image: linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  background-size: 18px 1px;
  opacity: .5;
}
.sec--light .stitch { background-image: linear-gradient(90deg, var(--gold-dim) 0 10px, transparent 10px 18px); opacity: .45; }

/* ---------- 04 LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section-y); position: relative; }
.sec--light { background: var(--silk); color: var(--text-on-light); }
.sec--light h1, .sec--light h2, .sec--light h3 { color: var(--text-on-light); }
.sec--ink { background: var(--ink); }
.sec--smoke { background: linear-gradient(180deg, var(--ink), var(--ink-soft)); }

.grid { display: grid; gap: var(--sp-6); }
.split-7-5 { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-8-4 { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split-7-5 { grid-template-columns: 7fr 5fr; }
  .split-8-4 { grid-template-columns: 8fr 4fr; }
  .split-7-5.is-flipped > :first-child,
  .split-8-4.is-flipped > :first-child { order: 2; }
}
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- 05 BUTTONS ---------- */
.btn {
  --btn-fg: var(--ink);
  --btn-bg: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: 48px; padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: var(--fs-small);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Gold sweep fills from the left */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:hover { box-shadow: var(--shadow-gold); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  --btn-fg: var(--text-on-dark);
  --btn-bg: transparent;
  border: 1px solid var(--line-dark);
}
.btn--ghost::after { background: var(--gold); }
.btn--ghost:hover, .btn--ghost:focus-visible { --btn-fg: var(--ink); border-color: var(--gold); }

.sec--light .btn--ghost { --btn-fg: var(--ink); border-color: var(--line-light); }

.btn--lg { min-height: 56px; padding-inline: var(--sp-7); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* Stitch-dash underline links */
.link-stitch {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--gold); font-size: var(--fs-small);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 4px; background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0 6px, transparent 6px 11px);
  background-size: 0 1px; background-position: 0 100%;
  transition: background-size var(--dur-slow) var(--ease-out);
}
.link-stitch:hover, .link-stitch:focus-visible { background-size: 100% 1px; }
.sec--light .link-stitch { color: var(--burgundy); }

/* ---------- 06 TOPBAR ---------- */
.topbar {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  position: relative; z-index: var(--z-nav);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 44px; flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar__item {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--text-on-dark-mute);
  transition: color var(--dur) var(--ease);
  padding-block: var(--sp-2);
}
a.topbar__item:hover, a.topbar__item:focus-visible { color: var(--gold); }
.topbar__item svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.status { display: inline-flex; align-items: center; gap: var(--sp-2); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-on-dark-mute); flex: none; }
.status.is-open   { color: #7FB77E; } .status.is-open   .status__dot { background: #7FB77E; box-shadow: 0 0 0 3px rgba(127,183,126,.18); }
.status.is-closed { color: var(--text-on-dark-mute); }
.socials { display: flex; align-items: center; gap: var(--sp-2); }
.socials:empty { display: none; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--line-dark);
  color: var(--text-on-dark-mute);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.socials svg { width: 15px; height: 15px; }
@media (max-width: 780px) {
  .topbar__hide-sm { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- 07 NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(20, 17, 15, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-stuck {
  background: rgba(20, 17, 15, .92);
  border-bottom-color: var(--line-dark);
  box-shadow: var(--shadow-2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 78px; }

/* Logo — injected from SITE config by JS, never hardcoded in markup */
.logo { display: inline-flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-2); }
.logo__mark { width: 38px; height: 38px; color: var(--gold); flex: none; transition: transform var(--dur-slow) var(--ease-out); }
.logo:hover .logo__mark { transform: rotate(-12deg); }
.logo__text { display: flex; flex-direction: column; gap: 3px; }
.logo__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1; color: var(--text-on-dark); letter-spacing: -0.01em;
}
.logo__rule { width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.logo__tag {
  font-size: 9px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-on-dark-mute); line-height: 1;
}
@media (max-width: 420px) { .logo__tag, .logo__rule { display: none; } }

.nav__links { display: none; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
@media (min-width: 1000px) { .nav__links { display: flex; } }
.nav__link {
  position: relative; font-size: var(--fs-small);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-on-dark-mute); padding: var(--sp-3) 0;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text-on-dark); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }
@media (min-width: 1000px) { .nav__cta { display: inline-flex; } }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px; margin-right: -12px;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; height: 1px; background: var(--text-on-dark); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-dropdown);
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-8) var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-menu__list a {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem); padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(18px);
}
.mobile-menu.is-open .mobile-menu__list a { animation: menuIn var(--dur-slow) var(--ease-out) forwards; }
.mobile-menu__foot { margin-top: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* Scroll progress — "measuring tape" */
.tape {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
  z-index: var(--z-toast); pointer-events: none;
}

/* ---------- 08 HERO ---------- */
.hero { position: relative; min-height: clamp(600px, 92vh, 900px); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: -8% 0 -8%; z-index: 0; will-change: transform; }
.hero__bg img, .hero__bg .imgfall { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,17,15,.88) 0%, rgba(20,17,15,.62) 40%, rgba(20,17,15,.96) 100%),
    radial-gradient(120% 80% at 15% 40%, rgba(20,17,15,.35), transparent 70%);
}
/* Oversized ghosted outline word */
.hero__ghost {
  position: absolute; left: 50%; top: 52%; z-index: 2;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(5rem, 21vw, 18rem);
  line-height: 1; white-space: nowrap; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(237,230,218,.10);
  pointer-events: none; user-select: none;
}
.hero__inner { position: relative; z-index: 3; width: 100%; padding-block: var(--sp-9); }
.hero__content { max-width: 46rem; }
.hero__title { font-size: var(--fs-hero); margin-bottom: var(--sp-5); }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-on-dark); opacity: .88; margin-bottom: var(--sp-6); max-width: 40rem; }

.hero__floats { position: absolute; right: var(--gutter); bottom: clamp(2rem, 8vh, 5rem); z-index: 3; display: none; gap: var(--sp-4); }
@media (min-width: 1100px) { .hero__floats { display: flex; } }
.floatcard {
  background: var(--glass-dark);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  padding: var(--sp-5) var(--sp-6); text-align: center; min-width: 160px;
  box-shadow: var(--shadow-2);
}
.floatcard__num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold); }
.floatcard__label { font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-dark-mute); margin-top: var(--sp-2); }

.scroll-hint {
  position: absolute; left: 50%; bottom: var(--sp-5); z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-on-dark-mute);
}
.scroll-hint__line { width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold), transparent); }
@media (max-width: 1099px) { .scroll-hint { display: none; } }

/* ---------- 09 SECTIONS ---------- */
.trust {
  background: var(--smoke);
  border-block: 1px solid var(--line-dark);
  padding-block: var(--sp-6);
}
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); text-align: center; }
@media (min-width: 860px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.trust__item svg { width: 26px; height: 26px; color: var(--gold); }
.trust__label { font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-mute); }

.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--line-dark); pointer-events: none; z-index: 0;
}
.sec--light .media-frame::before { border-color: var(--line-light); }
.media-frame img, .media-frame .imgfall { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-card); }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.collage > :first-child { grid-row: span 2; }
.collage img, .collage .imgfall { height: 100%; object-fit: cover; border-radius: var(--radius-card); }

.factlist { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.factlist li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.factlist svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 5px; }
.sec--light .factlist svg { color: var(--burgundy); }

/* Process timeline */
.timeline { position: relative; display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); } }
.timeline__line {
  position: absolute; left: 0; top: 26px; height: 1px; width: 100%;
  background: var(--line-light); display: none;
}
@media (min-width: 900px) { .timeline__line { display: block; } }
.timeline__line span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1.6s var(--ease-out); }
.timeline.is-in .timeline__line span { width: 100%; }
.step { position: relative; text-align: left; }
.step__dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--silk); border: 1px solid var(--line-light);
  font-family: var(--font-display); font-size: 1.25rem; color: var(--burgundy);
  position: relative; z-index: 1;
}
.sec--ink .step__dot, .sec--smoke .step__dot { background: var(--ink); border-color: var(--line-dark); color: var(--gold); }
.step__title { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step__text { font-size: var(--fs-small); color: var(--text-on-light-mute); margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--smoke); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(198,161,91,.14), transparent 60%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 10 CARDS (3D tilt) ---------- */
.cards { display: grid; gap: var(--sp-5); }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.tilt-scene { perspective: 1200px; }
.card {
  position: relative; height: 100%; cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--glass-dark);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  transform-style: preserve-3d;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-slow) var(--ease-out);
  box-shadow: var(--shadow-1);
}
.sec--light .card {
  background: var(--glass-light);
  border-color: var(--line-light);
  color: var(--text-on-light);
}
.card:hover, .card:focus-within { border-color: var(--gold); box-shadow: var(--shadow-3), var(--shadow-gold); }
.card__icon {
  width: 46px; height: 46px; color: var(--gold);
  transform: translateZ(28px);
}
.sec--light .card__icon { color: var(--burgundy); }
.card__title { font-size: var(--fs-h3); transform: translateZ(20px); }
.card__text { font-size: var(--fs-small); color: var(--text-on-dark-mute); margin: 0; transform: translateZ(12px); }
.sec--light .card__text { color: var(--text-on-light-mute); }
.card__foot { margin-top: auto; padding-top: var(--sp-3); transform: translateZ(18px); }
.card__link::after { content: ""; position: absolute; inset: 0; } /* full-card click target */

/* ---------- 11 REVIEWS ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.tab {
  min-height: 44px; padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--line-dark); border-radius: var(--radius-btn);
  font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-on-dark-mute); background: transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tab:hover { color: var(--text-on-dark); border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 500; }

.reviews-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4); scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
@media (min-width: 1000px) { .reviews-rail { grid-auto-columns: minmax(0, 1fr); overflow: visible; } }
.reviews-rail::-webkit-scrollbar { height: 3px; }
.reviews-rail::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--glass-dark);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-dark); border-radius: var(--radius-card);
}
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.review__text { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; margin: 0; }
.review__who { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold), var(--gold-dim));
  color: var(--ink); font-weight: 500; font-size: var(--fs-small);
}
.review__name { font-size: var(--fs-small); }
.review__date { font-size: var(--fs-micro); color: var(--text-on-dark-mute); }
.rail-ctrl { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-5); }
@media (min-width: 1000px) { .rail-ctrl { display: none; } }
.rail-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--text-on-dark);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rail-btn:hover { border-color: var(--gold); color: var(--gold); }
.rail-btn svg { width: 18px; height: 18px; }
.dots { display: flex; gap: var(--sp-2); }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dots button[aria-current="true"] { background: var(--gold); transform: scale(1.35); }

/* ---------- 12 GALLERY ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.masonry { columns: 1; column-gap: var(--sp-4); }
@media (min-width: 640px)  { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry__item {
  break-inside: avoid; margin-bottom: var(--sp-4);
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  transition: opacity var(--dur) var(--ease);
}
.masonry__item.is-hidden { display: none; }
.masonry__btn { display: block; width: 100%; position: relative; cursor: pointer; }
.masonry__btn img, .masonry__btn .imgfall { width: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.masonry__btn:hover img, .masonry__btn:hover .imgfall { transform: scale(1.05); }
.masonry__cap {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(180deg, transparent, rgba(20,17,15,.92));
  font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-on-dark);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.masonry__btn:hover .masonry__cap, .masonry__btn:focus-visible .masonry__cap { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(10, 8, 7, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: min(1100px, 92vw); }
.lightbox__fig img, .lightbox__fig .imgfall { max-height: 76vh; width: auto; margin-inline: auto; border-radius: var(--radius-card); }
.lightbox__cap { text-align: center; margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--text-on-dark-mute); }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--text-on-dark);
  background: rgba(31,26,22,.7);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: var(--gutter); right: var(--gutter); }
.lightbox__prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__prev { left: var(--sp-3); } .lightbox__next { right: var(--sp-3); }
}

/* ---------- 13 FORMS ---------- */
.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--glass-dark);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-dark); border-radius: var(--radius-card);
  box-shadow: var(--shadow-3);
}
.sec--light .form-card { background: #FFFDF9; border-color: var(--line-light); color: var(--text-on-light); }
.form-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-mute); }
.sec--light .field label { color: var(--text-on-light-mute); }
.field .req { color: var(--gold); }
.sec--light .field .req { color: var(--burgundy); }
.field input, .field select, .field textarea {
  min-height: 50px; padding: var(--sp-3) var(--sp-4);
  background: rgba(20,17,15,.5);
  border: 1px solid var(--line-dark); border-radius: var(--radius-btn);
  color: var(--text-on-dark); font-size: 1rem; width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.sec--light .field input, .sec--light .field select, .sec--light .field textarea {
  background: #fff; border-color: var(--line-light); color: var(--text-on-light);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,161,91,.2);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #C4574F; box-shadow: 0 0 0 3px rgba(196,87,79,.16);
}
.field__err { font-size: var(--fs-micro); color: #E08A82; min-height: 1em; }
.sec--light .field__err { color: #A32A20; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-micro); color: var(--text-on-dark-mute); }
.sec--light .form-note { color: var(--text-on-light-mute); }
.form-status { font-size: var(--fs-small); }
.form-status:empty { display: none; }
.form-status.is-ok  { color: #7FB77E; }
.form-status.is-err { color: #E08A82; }
.sec--light .form-status.is-ok  { color: #2F6B2E; }
.sec--light .form-status.is-err { color: #A32A20; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.hours th, .hours td { text-align: left; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-dark); }
.sec--light .hours th, .sec--light .hours td { border-color: var(--line-light); }
.hours td:last-child { text-align: right; }
.hours tr.is-today { color: var(--gold); font-weight: 500; }
.sec--light .hours tr.is-today { color: var(--burgundy); }
.hours tr.is-today th::before { content: "▸ "; }

.map-frame { border: 1px solid var(--line-dark); border-radius: var(--radius-card); overflow: hidden; min-height: 320px; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- 14 FOOTER ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding-top: var(--sp-9); }
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1060px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1.3fr; } }
.footer h3 { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-4); }
.footer__links { display: grid; gap: var(--sp-3); }
.footer__links a { font-size: var(--fs-small); color: var(--text-on-dark-mute); transition: color var(--dur) var(--ease); }
.footer__links a:hover, .footer__links a:focus-visible { color: var(--gold); }
.footer__contact { display: grid; gap: var(--sp-3); font-size: var(--fs-small); color: var(--text-on-dark-mute); }
.footer__contact a { transition: color var(--dur) var(--ease); }
.footer__contact a:hover { color: var(--gold); }
.footer__credits {
  text-align: center; padding-block: var(--sp-5);
  font-size: var(--fs-micro); color: var(--text-on-dark-mute);
}
.footer__credits a { color: var(--gold); transition: color var(--dur) var(--ease); }
.footer__credits a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer__stitch { margin-top: var(--sp-8); }

/* ---------- 15 POPUP ---------- */
.popup {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(10, 8, 7, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup__box {
  position: relative; width: min(560px, 100%);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  background: var(--glass-dark);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-3);
  transform: scale(.94) translateY(10px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.popup.is-open .popup__box { transform: none; }
.popup__box::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(198,161,91,.4); pointer-events: none;
}
.popup__title { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: var(--sp-4); }
.popup__badge {
  display: inline-block; margin-bottom: var(--sp-4);
  padding: 6px var(--sp-4); border: 1px solid var(--gold);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.popup__text { font-size: var(--fs-small); color: var(--text-on-dark-mute); }
.popup__urgency { color: var(--gold); font-size: var(--fs-small); letter-spacing: .06em; margin-bottom: var(--sp-6); }
.popup__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 520px) { .popup__actions { flex-direction: row; justify-content: center; } }
.popup__close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--text-on-dark-mute); transition: color var(--dur) var(--ease);
}
.popup__close:hover { color: var(--gold); }
.popup__close svg { width: 18px; height: 18px; }

/* ---------- 16 MOBILE STICKY BAR ---------- */
.mobar { display: none; }
@media (max-width: 768px) {
  .mobar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    display: grid; grid-template-columns: 1fr 1fr;
    background: rgba(20,17,15,.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobar a {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 56px; font-size: var(--fs-small); font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase;
  }
  .mobar a svg { width: 18px; height: 18px; }
  .mobar__call { background: var(--gold); color: var(--ink); }
  .mobar__wa   { background: #1FA855; color: #fff; }
  body { padding-bottom: 56px; }
}

/* ---------- 17 MOTION ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
}
.reveal.is-in { opacity: 1; transform: none; }

.word { display: inline-block; opacity: 0; transform: translateY(0.5em); }
@media (prefers-reduced-motion: no-preference) {
  .word { transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
}
.is-in .word, .word.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .floatcard { animation: drift 6s var(--ease) infinite alternate; }
  .floatcard:nth-child(2) { animation-delay: -3s; }
  @keyframes drift { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
  .scroll-hint__line { animation: pulseLine 2.4s var(--ease) infinite; }
  @keyframes pulseLine { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
}

/* Kill all motion for users who ask for it (a11y HIGH) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .word { opacity: 1 !important; transform: none !important; }
  .hero__bg, .parallax { transform: none !important; }
  .tape { display: none; }
}

/* ---------- 18 UTILITIES ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }
.center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

/* Image fallback — woven texture so a missing photo still looks intentional.
   Applied by JS via <img onerror>. Never shows a broken-image icon. */
.imgfall {
  position: relative; width: 100%; aspect-ratio: var(--fall-ratio, 4 / 3);
  background:
    repeating-linear-gradient(45deg,  rgba(198,161,91,.05) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(198,161,91,.05) 0 2px, transparent 2px 5px),
    linear-gradient(150deg, #241E19, #14110F 55%, #2A231C);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  display: grid; place-items: center; overflow: hidden;
}
.imgfall::after {
  content: ""; width: 42px; height: 42px; opacity: .5;
  background: currentColor; color: var(--gold);
  -webkit-mask: var(--needle) center / contain no-repeat;
          mask: var(--needle) center / contain no-repeat;
}
:root {
  --needle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M21 3 8.5 15.5'/%3E%3Ccircle cx='6' cy='18' r='2.6'/%3E%3Cpath d='M19.5 3.2c-3 1-5.2 2.6-4.4 4.2.8 1.6 3.6.4 4.4-1'/%3E%3C/svg%3E");
}
.sec--light .imgfall {
  background:
    repeating-linear-gradient(45deg,  rgba(20,17,15,.045) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(20,17,15,.045) 0 2px, transparent 2px 5px),
    linear-gradient(150deg, #EFE6D8, #F5EFE6 55%, #E6DACA);
  border-color: var(--line-light);
}
.sec--light .imgfall::after { color: var(--gold-dim); }
