/* ==========================================================================
   Westfield Tailors — stylesheet
   Palette: deep navy (from the Elm St. sign), ivory, antique brass
   ========================================================================== */

:root {
  --ink: #0e1828;
  --ink-2: #15233a;
  --ink-3: #1d2f4b;
  --ivory: #f5efe3;
  --paper: #fbf8f2;
  --linen: #ede5d6;
  --brass: #b08d57;
  --brass-2: #c9a96e;
  --brass-deep: #8a6b3c;
  --text: #1b2230;
  --muted: #5a6372;
  --line: rgba(14, 24, 40, 0.12);
  --line-light: rgba(245, 239, 227, 0.16);
  --open: #3f8f5f;
  --closed: #b0533f;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --shadow: 0 30px 60px -30px rgba(14, 24, 40, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Text-size preference (toggle in the top bar) */
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
p { margin: 0 0 1.1em; }
em.serif, .serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--ink); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 16px; top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--brass-2); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38em; }
.on-dark .lede { color: rgba(245, 239, 227, 0.78); }

/* Buttons */
.btn {
  --bg: var(--brass);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { --bg: var(--brass-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-outline { --bg: transparent; --fg: var(--ivory); border-color: rgba(245, 239, 227, 0.4); }
.btn-outline:hover { --bg: var(--ivory); --fg: var(--ink); border-color: var(--ivory); }
.btn-dark { --bg: var(--ink); --fg: var(--ivory); }
.btn-dark:hover { --bg: var(--ink-3); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--ivory); border-color: var(--ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem;
  text-decoration: none; color: var(--brass-deep);
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.on-dark .link-arrow { color: var(--brass-2); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(245, 239, 227, 0.82);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--brass-2); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--closed); box-shadow: 0 0 0 0 currentColor; }
.status.is-open .status-dot { background: var(--open); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 143, 95, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(63, 143, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 143, 95, 0); }
}
.textsize { display: flex; align-items: center; gap: 4px; }
.textsize span { margin-right: 6px; }
.textsize button {
  background: transparent; border: 1px solid var(--line-light); color: var(--ivory);
  min-width: 34px; height: 30px; border-radius: 3px; font-family: var(--serif); font-weight: 600; line-height: 1;
}
.textsize button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.textsize button:nth-of-type(1) { font-size: 0.95rem; }
.textsize button:nth-of-type(2) { font-size: 1.1rem; }
.textsize button:nth-of-type(3) { font-size: 1.28rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 30px -24px rgba(14, 24, 40, 0.5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height 0.3s var(--ease); }
.site-header.scrolled .wrap { min-height: 70px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
/* Logo: Westfield Tailors bow-tie mark + Playfair wordmark (matches the shop's own logo) */
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 6px; }
.brand-name { font-family: "Playfair Display", Didot, "Bodoni 72", Georgia, serif; font-size: 1.55rem; font-weight: 400; line-height: 1; letter-spacing: 0; }
.brand-sub { display: block; font-family: "Playfair Display", Didot, Georgia, serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: #6f5530; margin-top: 7px; }

.logo-stack {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  background: #000; color: #fff; padding: 30px 34px 26px; border-radius: 6px; text-decoration: none;
}
.logo-stack .ls-bow { width: 54px; height: 35px; color: #fff; margin-bottom: 18px; }
.logo-stack .ls-name { font-family: "Playfair Display", Didot, Georgia, serif; font-size: 2rem; line-height: 1.05; color: #fff; }
.logo-stack .ls-tag { font-family: "Playfair Display", Didot, Georgia, serif; font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; margin-top: 14px; color: #fff; }
.site-footer a.logo-stack:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 46px; padding: 0 22px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.on-dark { background: var(--ink); color: var(--ivory); }
.pinstripe {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(245, 239, 227, 0.035) 0 1px, transparent 1px 28px);
}
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 130px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero h1 { color: var(--ivory); margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero .lede { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 2.8rem; padding-top: 2rem;
  border-top: 1px solid var(--line-light); font-size: 0.95rem; color: rgba(245, 239, 227, 0.78);
}
.hero-trust strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ivory); line-height: 1.1; }
.stars { color: var(--brass-2); letter-spacing: 2px; }

.hero-visual { position: relative; min-height: 560px; }
.hero-main {
  position: absolute; right: 0; top: 0; width: 78%; height: 100%; margin: 0;
  overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero.loaded .hero-main img { transform: scale(1); }
.hero-inset {
  position: absolute; left: 0; bottom: -30px; width: 46%; aspect-ratio: 4 / 5; margin: 0;
  border: 8px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; right: -10px; bottom: 60px; z-index: 2;
  background: var(--ivory); color: var(--ink); padding: 18px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: left; max-width: 220px;
}
.hero-badge small { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-deep); font-weight: 500; }
.hero-badge b { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1.1; }
.hero-badge span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; display: block; }

/* Brand marquee */
.marquee { background: var(--ink-2); color: rgba(245, 239, 227, 0.7); border-top: 1px solid var(--line-light); overflow: hidden; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 48px; padding: 22px 24px;
  font-family: var(--serif); font-size: 1.45rem; font-style: italic; white-space: nowrap;
}
.marquee-item::after { content: "✦"; font-style: normal; font-size: 0.8rem; color: var(--brass); }
.marquee-label { font-family: var(--sans); font-style: normal; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin: 0; max-width: 14em; }
.section-head p { margin: 0; max-width: 28em; color: var(--muted); }
.on-dark .section-head p { color: rgba(245, 239, 227, 0.72); }
.linen { background: var(--linen); }
.ivory { background: var(--ivory); }

/* Intro */
.intro .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-figure { position: relative; margin: 0; }
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.intro-figure figcaption {
  position: absolute; left: -24px; bottom: 32px; background: var(--ink); color: var(--ivory);
  padding: 16px 22px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; border-radius: var(--radius);
}
.intro h2 em { font-style: italic; color: var(--brass-deep); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.6rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--ink); }
.stat span { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* Services tabs */
.services-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.tab-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line-light);
  padding: 22px 4px; color: rgba(245, 239, 227, 0.62); font-family: var(--serif); font-size: 1.6rem; line-height: 1.2;
  transition: color 0.3s, padding 0.4s var(--ease);
}
.tab .num { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--brass); }
.tab:hover { color: var(--ivory); }
.tab[aria-selected="true"] { color: var(--ivory); padding-left: 16px; }
.tab[aria-selected="true"] .num { color: var(--brass-2); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.tab-panel[hidden] { display: none; }
.tab-panel.animating { animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tab-panel figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.tab-panel figure img { width: 100%; height: 100%; object-fit: cover; }
.tab-panel h3 { color: var(--ivory); font-size: clamp(2rem, 3vw, 2.6rem); }
.tab-panel p { color: rgba(245, 239, 227, 0.8); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line-light); color: rgba(245, 239, 227, 0.88); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 1px; background: var(--brass-2); }
.ideal { font-size: 0.9rem; color: var(--brass-2); letter-spacing: 0.04em; margin-bottom: 1.6rem; }
.price-tag { display: inline-block; font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--brass-2); margin-bottom: 1rem; }

/* Rush band */
.rush { background: var(--brass); color: var(--ink); padding: 34px 0; }
.rush .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rush p { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
.rush p small { display: block; font-family: var(--sans); font-size: 0.95rem; margin-top: 6px; opacity: 0.85; }

/* Fit guide */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.fit-figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fit-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hotspot {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 0; background: rgba(14, 24, 40, 0.85); color: var(--ivory);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--brass-2); transition: transform 0.3s var(--ease), background 0.3s;
}
.hotspot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--brass-2);
  animation: ring 2.6s var(--ease) infinite; pointer-events: none;
}
@keyframes ring { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover, .hotspot[aria-pressed="true"] { background: var(--brass); color: var(--ink); transform: scale(1.12); }
.fit-points { list-style: none; padding: 0; margin: 0; counter-reset: fit; }
.fit-point { border-bottom: 1px solid var(--line); }
.fit-point button {
  width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; background: none; border: 0;
  padding: 18px 0; font-family: var(--serif); font-size: 1.45rem; color: var(--ink);
}
.fit-point button .n {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass-deep);
  display: grid; place-items: center; font-size: 1rem; font-weight: 600; transition: background 0.3s, color 0.3s;
}
.fit-point button .chev { margin-left: auto; transition: transform 0.4s var(--ease); color: var(--brass-deep); font-family: var(--sans); }
.fit-point.open button .n { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.fit-point.open button .chev { transform: rotate(45deg); }
.fit-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.fit-body > div { overflow: hidden; }
.fit-point.open .fit-body { grid-template-rows: 1fr; }
.fit-body p { margin: 0 0 20px 54px; color: var(--muted); }

/* Process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--brass); font-style: italic; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.6rem; margin-bottom: 0.4em; }
.step p { color: var(--muted); font-size: 1.02rem; }

/* Quiz */
.quiz-card {
  max-width: 920px; margin: 0 auto; background: var(--paper); color: var(--text);
  border-radius: 6px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.quiz-progress { height: 4px; background: var(--linen); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--brass); transition: width 0.6s var(--ease); }
.quiz-body { padding: clamp(28px, 5vw, 56px); min-height: 380px; }
.quiz-step { animation: panelIn 0.5s var(--ease); }
.quiz-step[hidden] { display: none; }
.quiz-q { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.4rem; line-height: 1.15; }
.quiz-count { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); font-weight: 500; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.option {
  display: flex; align-items: center; gap: 16px; text-align: left; padding: 20px 22px; min-height: 76px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.05rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.option .ico { font-size: 1.5rem; width: 34px; text-align: center; flex: none; }
.option:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(14, 24, 40, 0.5); }
.option.picked { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.quiz-back { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
.quiz-result { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: center; }
.quiz-result img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.quiz-result h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.quiz-result .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 20px;
  font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; min-height: 44px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.gallery { columns: 3 300px; column-gap: 18px; }
.g-item {
  break-inside: avoid; margin: 0 0 18px; position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; background: var(--linen); display: block; width: 100%; border: 0; padding: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; text-align: left;
  background: linear-gradient(to top, rgba(14, 24, 40, 0.85), transparent);
  color: var(--ivory); font-family: var(--serif); font-size: 1.2rem; font-style: italic;
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.g-item.hide { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 13, 22, 0.94); display: none;
  align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 160px); max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: var(--ivory); font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-top: 16px; text-align: center; }
.lb-btn {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-light);
  background: rgba(14, 24, 40, 0.6); color: var(--ivory); font-size: 1.4rem; display: grid; place-items: center;
}
.lb-btn:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: 30px; color: rgba(245, 239, 227, 0.6); font-size: 0.85rem; letter-spacing: 0.2em; }

/* Testimonials */
.testimonials { text-align: center; }
.quote-stage { display: grid; max-width: 900px; margin: 0 auto; }
.quote {
  grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s; pointer-events: none;
}
.quote.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: 0.6; color: var(--brass); display: block; height: 40px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; font-style: italic; color: var(--ivory); }
.quote figcaption { margin-top: 1.6rem; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-2); }
.quote figcaption span { display: block; color: rgba(245, 239, 227, 0.55); letter-spacing: 0.08em; text-transform: none; font-size: 0.9rem; margin-top: 4px; }
.quote-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 40px; }
.q-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; color: var(--ivory);
  display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.q-arrow:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--brass-2); background: transparent; padding: 0; }
.dot[aria-current="true"] { background: var(--brass-2); }
.rating-line { margin-top: 36px; color: rgba(245, 239, 227, 0.7); font-size: 0.95rem; }
.rating-line a { color: var(--brass-2); }

/* Owner teaser */
.owner-teaser .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.owner-photo { position: relative; margin: 0; }
.owner-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; box-shadow: var(--shadow); }
.owner-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); border-radius: var(--radius); z-index: -1;
}
.signature { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--brass-deep); margin: 0.4rem 0 1.4rem; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 4vw, 46px); }
.visit-card h3 { margin-bottom: 0.3em; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-line svg { width: 22px; height: 22px; color: var(--brass-deep); flex: none; margin-top: 4px; }
.contact-line small { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-line b { font-weight: 500; font-size: 1.15rem; }
a.contact-line:hover b { color: var(--brass-deep); }
.hours { width: 100%; border-collapse: collapse; margin: 22px 0 26px; font-size: 1.05rem; }
.hours td { padding: 9px 10px; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { background: var(--ink); color: var(--ivory); border-color: transparent; font-weight: 500; }
.hours tr.today td:first-child { border-radius: 3px 0 0 3px; }
.hours tr.today td:last-child { border-radius: 0 3px 3px 0; }
.hours .note { color: var(--muted); font-style: italic; }
.hours tr.today .note { color: var(--brass-2); }
.live-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--linen); font-size: 0.95rem; font-weight: 500; }
.live-status.is-open { background: rgba(63, 143, 95, 0.12); color: #2c6b45; }
.live-status.is-closed { background: rgba(176, 83, 63, 0.1); color: #8f3f2e; }
.live-status .status-dot { background: currentColor; }
.map-frame { border-radius: 6px; overflow: hidden; min-height: 460px; position: relative; box-shadow: var(--shadow); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.85) contrast(1.05) sepia(0.12); transition: filter 0.6s; }
.map-frame:hover iframe { filter: none; }
.map-pin-card {
  position: absolute; left: 20px; bottom: 20px; background: var(--ink); color: var(--ivory); padding: 16px 20px;
  border-radius: var(--radius); max-width: 280px; font-size: 0.95rem; pointer-events: none;
}
.map-pin-card b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; }

/* CTA */
.cta-final { text-align: center; padding: clamp(90px, 11vw, 150px) 0; }
.cta-final h2 { max-width: 14em; margin: 0 auto 0.4em; color: var(--ivory); }
.cta-final h2 em { color: var(--brass-2); }
.cta-final .lede { margin: 0 auto 2.2rem; }
.cta-final .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { background: #0a111d; color: rgba(245, 239, 227, 0.72); padding: 80px 0 120px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--ivory); }
.site-footer h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-2); font-weight: 500; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brass-2); }
.socials { display: flex; gap: 12px; margin-top: 1.4rem; }
.socials a { width: 46px; height: 46px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.socials a:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(245, 239, 227, 0.5); }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  grid-template-columns: repeat(3, 1fr); background: var(--ink); border-top: 1px solid var(--line-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a, .action-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 64px; color: var(--ivory); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: 0;
}
.action-bar svg { width: 20px; height: 20px; color: var(--brass-2); }
.action-bar .primary { background: var(--brass); color: var(--ink); }
.action-bar .primary svg { color: var(--ink); }

/* ==========================================================================
   Booking modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 13, 22, 0.72); backdrop-filter: blur(4px); animation: fade 0.3s; }
.modal-dialog {
  position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--paper); border-radius: 8px; display: grid; grid-template-columns: 0.75fr 1.25fr;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6); animation: modalIn 0.5s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.modal-aside { position: relative; background: var(--ink) url("../images/showroom.jpg") center / cover; color: var(--ivory); padding: 40px 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; }
.modal-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 24, 40, 0.96) 30%, rgba(14, 24, 40, 0.35)); }
.modal-aside > * { position: relative; }
.modal-aside h3 { color: var(--ivory); font-size: 2.1rem; }
.modal-aside p { color: rgba(245, 239, 227, 0.8); font-size: 1rem; }
.modal-aside a { color: var(--brass-2); }
.modal-main { padding: clamp(28px, 4vw, 44px); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); font-size: 1.3rem; display: grid; place-items: center;
}
.modal-close:hover { background: var(--ink); color: var(--ivory); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--text); background: #fff; border: 1px solid rgba(14, 24, 40, 0.22);
  border-radius: var(--radius); padding: 13px 14px; min-height: 52px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.25); }
.field .hint { font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.field .hint.warn { color: var(--closed); }
.field.invalid input, .field.invalid select { border-color: var(--closed); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-actions small { color: var(--muted); font-size: 0.9rem; }
.booking-done { text-align: center; padding: 30px 10px; animation: panelIn 0.5s var(--ease); }
.booking-done .check { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: var(--ink); color: var(--brass-2); display: grid; place-items: center; font-size: 2rem; }
.booking-summary { text-align: left; background: var(--ivory); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; font-size: 1rem; }
.booking-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.booking-summary div:last-child { border: 0; }
.booking-summary span { color: var(--muted); }
body.modal-open { overflow: hidden; }

/* ==========================================================================
   The Tailor page
   ========================================================================== */
.page-hero { padding: clamp(60px, 8vw, 110px) 0 0; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.page-hero h1 { color: var(--ivory); }
.page-hero h1 em { color: var(--brass-2); }
.page-hero .text { padding-bottom: clamp(60px, 8vw, 110px); }
.page-hero figure { margin: 0; position: relative; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius) var(--radius) 0 0; }
.page-hero figure figcaption {
  position: absolute; left: -30px; top: 40px; background: var(--brass); color: var(--ink);
  padding: 14px 20px; border-radius: var(--radius); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.breadcrumb { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 239, 227, 0.6); margin-bottom: 1.6rem; }
.breadcrumb a { text-decoration: none; color: var(--brass-2); }

.profile-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 50px; overflow-x: auto; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.ptab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 22px; white-space: nowrap;
  font-size: 0.92rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: -1px;
}
.ptab[aria-selected="true"] { color: var(--ink); border-color: var(--brass); }
.ptab:hover { color: var(--ink); }
.ppanel[hidden] { display: none; }
.ppanel { animation: panelIn 0.5s var(--ease); }

.story-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 90px); }
.story-grid .dropcap::first-letter {
  float: left; font-family: var(--serif); font-size: 5.4rem; line-height: 0.8; padding: 8px 12px 0 0; color: var(--brass-deep);
}
.story-grid p { font-size: 1.18rem; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.3; color: var(--ink); border-left: 2px solid var(--brass); padding: 6px 0 6px 28px; margin: 2rem 0; }
.factsheet { background: var(--ink); color: var(--ivory); border-radius: 6px; padding: 34px 30px; align-self: start; position: sticky; top: 110px; }
.factsheet h3 { color: var(--ivory); font-size: 1.7rem; }
.factsheet dl { margin: 0; }
.factsheet dt { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-2); margin-top: 18px; }
.factsheet dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); font-size: 1.05rem; }
.factsheet .btn { width: 100%; margin-top: 24px; }

.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.craft {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.craft:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brass); }
.craft svg { width: 40px; height: 40px; color: var(--brass-deep); margin-bottom: 16px; }
.craft h3 { font-size: 1.6rem; margin-bottom: 0.3em; }
.craft p { color: var(--muted); font-size: 1rem; margin: 0; }

.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: var(--brass); opacity: 0.5; }
.tl-item { position: relative; padding: 0 0 46px 76px; }
.tl-item::before {
  content: ""; position: absolute; left: 14px; top: 10px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
}
.tl-item .when { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); font-weight: 500; }
.tl-item h3 { font-size: 1.8rem; margin: 6px 0 8px; }
.tl-item p { color: var(--muted); margin: 0; }

.kind-words { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.kind { background: var(--ink-2); border-radius: 6px; padding: 34px 32px; border: 1px solid var(--line-light); }
.kind p { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.4; color: var(--ivory); }
.kind cite { font-style: normal; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-2); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: 0.82rem; }
  .services-grid { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; border-top: 0; scrollbar-width: none; gap: 8px; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: none; border: 1px solid var(--line-light); border-radius: 999px; padding: 12px 20px; font-size: 1.15rem; }
  .tab .num { display: none; }
  .tab[aria-selected="true"] { padding-left: 20px; background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .topbar .addr, .textsize span { display: none; }
  .menu-toggle { display: inline-flex; }
  /* backdrop-filter would trap the fixed menu overlay inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: 70; background: var(--ink); flex-direction: column; justify-content: center;
    gap: 22px; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { color: var(--ivory); font-family: var(--serif); font-size: 2.2rem; text-transform: none; letter-spacing: 0; }
  .nav .btn { margin-top: 14px; }
  .menu-toggle { position: relative; z-index: 80; }
  .menu-toggle[aria-expanded="true"] { border-color: var(--line-light); }
  .menu-toggle[aria-expanded="true"] span { background: var(--ivory); }

  .hero .wrap, .intro .wrap, .fit-grid, .owner-teaser .wrap, .visit-grid, .page-hero .wrap, .story-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; aspect-ratio: 1 / 1.05; margin-bottom: 30px; }
  .intro-figure { max-width: 520px; }
  .intro-figure figcaption { left: 16px; }
  .section-head { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .tab-panel { grid-template-columns: 1fr; }
  .tab-panel figure { aspect-ratio: 16 / 11; }
  .quiz-result { grid-template-columns: 1fr; }
  .quiz-result img { aspect-ratio: 16 / 10; }
  .modal-dialog { grid-template-columns: 1fr; }
  .modal-aside { min-height: 0; padding: 30px 26px 24px; }
  .page-hero figure { max-width: 520px; }
  .page-hero .text { padding-bottom: 20px; }
  .factsheet { position: static; }
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .action-bar { display: grid; }
  .owner-photo { max-width: 520px; }
}

@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .topbar .phone-top { display: none; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.2em; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-ctas .btn { width: 100%; }
  .hero-badge { right: 0; bottom: auto; top: 16px; padding: 12px 16px; }
  .hero-badge b { font-size: 1.7rem; }
  .hero-inset { width: 50%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .options { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .craft-grid, .kind-words { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 70px 10px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .page-hero figure figcaption { left: 12px; top: 12px; }
  .rush .btn { width: 100%; }
  .map-frame { min-height: 360px; }
}
