/* ==========================================================================
   Costume & Ballet Centre, mockup stylesheet
   Implements 03-design/design-system.md exactly: tokens, type scale, colour,
   the crossed-ribbon motif, and every component. Light theme only by intent.
   border-radius is locked to 0 system-wide. No glassmorphism, no blur shadows,
   no ambient animation.
   ========================================================================== */

/* ---------- 1. Tokens ----------------------------------------------------- */
:root {
  /* families */
  --font-display: "Fraunces", "Hoefler Text", "Georgia", serif;
  --font-body: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Georgia", serif;

  /* weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* fluid display: clamps between mobile and desktop, no JS */
  --fs-display: clamp(2.25rem, 1.30rem + 4.75vw, 4.00rem);
  --fs-h1:      clamp(2.00rem, 1.40rem + 3.00vw, 3.052rem);
  --fs-h2:      clamp(1.75rem, 1.32rem + 2.15vw, 2.441rem);
  --fs-h3:      clamp(1.44rem, 1.18rem + 1.30vw, 1.953rem);
  --fs-h4:      clamp(1.25rem, 1.13rem + 0.60vw, 1.563rem);
  --fs-h5:      clamp(1.125rem, 1.07rem + 0.27vw, 1.250rem);
  --fs-h6:      1.000rem;
  --fs-lead:    clamp(1.15rem, 1.04rem + 0.55vw, 1.375rem);
  --fs-body:    clamp(1.00rem, 0.97rem + 0.16vw, 1.063rem);
  --fs-small:   0.875rem;
  --fs-xs:      0.781rem;
  --fs-overline: clamp(0.75rem, 0.72rem + 0.16vw, 0.813rem);

  /* line-heights */
  --lh-display: 1.04;
  --lh-tight: 1.10;
  --lh-snug: 1.20;
  --lh-heading: 1.24;
  --lh-normal: 1.40;
  --lh-relaxed: 1.55;
  --lh-loose: 1.65;

  /* tracking */
  --ls-tightest: -0.02em;
  --ls-tighter: -0.015em;
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.005em;
  --ls-wider: 0.01em;
  --ls-overline: 0.16em;

  /* raw palette */
  --c-satin-rose: #C77F73;
  --c-satin-rose-deep: #A85F55;
  --c-blush: #F3E3DE;
  --c-paper: #F7F2EC;
  --c-paper-surface: #FFFFFF;
  --c-rosin-sand: #E8DECF;
  --c-timber-ink: #2A211D;
  --c-timber-ink-soft: #4A3E38;
  --c-stone-muted: #7A6E66;
  --c-ribbon-plum: #4B2E45;
  --c-hairline: #DBCEC4;
  --c-hairline-strong: #B9A89B;
  --c-success: #3E6048;
  --c-error: #9A3B2E;
  --c-focus: #1E5C7A;

  /* semantic tokens (use THESE in components) */
  --bg: var(--c-paper);
  --bg-alt: var(--c-rosin-sand);
  --bg-invert: var(--c-ribbon-plum);
  --surface: var(--c-paper-surface);
  --surface-tint: var(--c-blush);

  --ink: var(--c-timber-ink);
  --ink-soft: var(--c-timber-ink-soft);
  --muted: var(--c-stone-muted);
  --ink-invert: var(--c-paper);

  --accent: var(--c-satin-rose);
  --accent-strong: var(--c-satin-rose-deep);
  --accent-ink: var(--c-satin-rose-deep);

  --line: var(--c-hairline);
  --line-strong: var(--c-hairline-strong);

  --focus: var(--c-focus);
  --ok: var(--c-success);
  --bad: var(--c-error);

  /* spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* section vertical rhythm (fluid) */
  --section-y: clamp(3rem, 7vw, 6.5rem);

  /* layout */
  --container: 1180px;
  --container-wide: 1320px;
  --container-narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* lines */
  --bw: 1px;
  --bw-2: 2px;
  --bw-strong: 3px;

  /* radius: locked to zero, system-wide */
  --radius: 0;

  /* elevation: NO blur shadows; flat offset or border only */
  --edge: 0 0 0 1px var(--line);
  --edge-strong: 0 0 0 var(--bw-2) var(--ink);
  --lift: 6px 6px 0 var(--c-blush);
  --lift-ink: 8px 8px 0 var(--ink);

  /* motion */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;

  /* z-index */
  --z-skip: 1000;
  --z-header: 900;
  --z-drawer: 950;
  --z-overlay: 940;
}

/* ---------- 2. Reset + base ---------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important; /* enforce the hard constraint everywhere */
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-normal);
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: var(--fw-semibold); }
h4, h5, h6 { font-family: var(--font-body); font-weight: var(--fw-semibold); }

.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-tightest); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tighter); margin: 0 0 0.5em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 0 0 0.5em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); margin: 0 0 0.4em; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); margin: 0 0 0.4em; }
h5 { font-size: var(--fs-h5); line-height: var(--lh-normal); margin: 0 0 0.35em; }
h6 { font-size: var(--fs-h6); line-height: var(--lh-normal); letter-spacing: var(--ls-wide); margin: 0 0 0.35em; }

p { margin: 0 0 1.15em; max-width: 68ch; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  color: var(--ink-soft);
  max-width: 60ch;
}

small, .small { font-size: var(--fs-small); line-height: var(--lh-relaxed); letter-spacing: var(--ls-wide); }
.xs { font-size: var(--fs-xs); line-height: var(--lh-relaxed); letter-spacing: var(--ls-wider); }

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  line-height: var(--lh-normal);
  color: var(--accent-ink);
  margin: 0 0 var(--space-3);
}

em, .italic { font-style: italic; }
strong, b { font-weight: var(--fw-semibold); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }

ul, ol { margin: 0 0 1.15em; }

/* ---------- 3. Motif: crossed ribbon ------------------------------------- */
.ribbon-cross { color: var(--accent); display: inline-block; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.ribbon-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ribbon-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  line-height: var(--lh-loose);
  max-width: 64ch;
}
.ribbon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: var(--accent-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1 9 L5 13 L13 1' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1 9 L5 13 L13 1' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- 4. Layout helpers -------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--surface-tint); }
.section--invert { background: var(--bg-invert); color: var(--ink-invert); }
.section--invert h1, .section--invert h2, .section--invert h3 { color: var(--ink-invert); }

.stack > * + * { margin-top: var(--space-5); }
.measure { max-width: 64ch; }
.section__head { max-width: 62ch; margin-bottom: var(--space-6); }

main:focus { outline: none; }

/* ---------- 5. Accessibility foundation ---------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 6. Header / navigation --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: var(--bw) solid var(--line);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* sticky-header condense: a flat hairline drop on scroll, no blur */
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 1px 0 0 var(--line-strong);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] .site-header__inner { min-height: 60px; }

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.25rem;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
}
.brand__est {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.nav { display: flex; align-items: center; gap: var(--space-6); }

.nav__list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: var(--bw-2);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { font-weight: var(--fw-semibold); }

.nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.nav__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--accent-strong); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: var(--bw) solid var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle-bar { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767.98px) {
  .nav__toggle { display: inline-flex; order: 2; }
  .nav__list {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: var(--z-drawer);
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: var(--bw-2) solid var(--ink);
    padding: var(--space-3) var(--gutter) var(--space-5);
    transform: translateY(-110%);
    transition: transform var(--dur-slow) var(--ease);
  }
  .nav__list[data-open="true"] { transform: translateY(0); }
  .nav__list a { min-height: 52px; border-bottom: var(--bw) solid var(--line); width: 100%; }
  .nav__list a::after { display: none; }
  .nav__actions {
    order: 3;
    width: 100%;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: var(--z-header);
    background: var(--bg);
    border-top: var(--bw) solid var(--line);
    padding: var(--space-3) var(--gutter);
  }
  .nav__phone, .nav__actions .btn { flex: 1 1 50%; justify-content: center; }
  /* leave room at the bottom of the page so the pinned bar never covers content */
  body { padding-bottom: 76px; }
}

/* ---------- 7. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  border: var(--bw-2) solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.btn--lg { min-height: 52px; padding: 0 var(--space-6); font-size: 1.125rem; }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--ink-invert);
  transform: translateY(-2px);
}
.btn--primary:active { box-shadow: var(--edge-strong); transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ink-invert); transform: translateY(-2px); }

.section--invert .btn--ghost { color: var(--ink-invert); border-color: var(--ink-invert); }
.section--invert .btn--ghost:hover { background: var(--ink-invert); color: var(--ink); }

.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 8. Hero ------------------------------------------------------ */
.hero { background: var(--bg); border-bottom: var(--bw) solid var(--line); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-block: var(--section-y);
  align-items: center;
}
.hero__copy .display { margin: 0.25em 0 0.4em; max-width: 16ch; }
.hero__copy h1 { margin: 0.25em 0 0.4em; max-width: 18ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

.hero__media img {
  width: 100%;
  aspect-ratio: 2000 / 1293;
  object-fit: cover;
  border: var(--bw) solid var(--line);
  box-shadow: var(--lift);
}

/* interior heroes with no photo use a flat sand panel carrying the motif */
.hero--panel .hero__panel {
  background: var(--bg-alt);
  border: var(--bw) solid var(--line);
  box-shadow: var(--lift);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-6);
}
.hero--panel .hero__panel svg { width: 46%; height: auto; color: var(--accent); }

@media (min-width: 1080px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); }
}

/* ---------- 9. Trust strip ----------------------------------------------- */
.trust-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: var(--bw) solid var(--line);
  background: var(--surface-tint);
}
.trust-strip li {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: var(--space-5) var(--space-5);
  border-bottom: var(--bw) solid var(--line);
}
.trust-strip strong { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--ink); }
.trust-strip span { color: var(--ink-soft); font-size: var(--fs-small); }
@media (min-width: 768px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .trust-strip li { border-bottom: 0; border-right: var(--bw) solid var(--line); }
  .trust-strip li:last-child { border-right: 0; }
}

/* ---------- 10. Service / category cards --------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  padding: var(--space-6);
  text-decoration: none;
  color: var(--ink);
  min-height: 100%;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--lift-ink);
  border-color: var(--ink);
}
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__eyebrow { margin: 0; }
.card__title { margin: 0; }
.card__body { color: var(--ink-soft); margin: 0; }
.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  color: var(--accent-ink);
}
.card:hover .card__more { color: var(--accent-strong); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* category cards (with image) */
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat-card__media { display: block; overflow: hidden; border-bottom: var(--bw) solid var(--line); }
.cat-card__media img {
  width: 100%; aspect-ratio: 465 / 300; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.cat-card:hover { border-color: var(--ink); box-shadow: var(--lift); }
.cat-card:hover .cat-card__media img { transform: scale(1.03); }
.cat-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cat-card__label { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.cat-card__title { margin: 0; }
.cat-card__meta { color: var(--muted); font-size: var(--fs-small); }

/* ---------- 11. Plain info panels (no link) ------------------------------ */
.panel {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  padding: var(--space-6);
}
.panel--tint { background: var(--surface-tint); }
.panel--sand { background: var(--bg-alt); }
.panel h3, .panel h4 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) { .info-grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 12. Numbered steps (fitting / postal) ------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
  max-width: 64ch;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h5);
  color: var(--ink);
  background: var(--surface-tint);
  border: var(--bw-2) solid var(--accent);
}
.steps h3 { margin: 0.1rem 0 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- 13. Testimonials --------------------------------------------- */
.quote {
  margin: 0;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-left: var(--bw-strong) solid var(--accent);
  padding: var(--space-6);
}
.quote__body {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  quotes: none;
}
.quote__by { display: flex; flex-direction: column; gap: 0.15rem; }
.quote__name { font-weight: var(--fw-semibold); color: var(--ink); font-style: normal; }
.quote__where {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--muted);
}

.quote-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .quote-grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 14. Team cards ----------------------------------------------- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.team-card__role { margin: 0; }
.team-card__name { margin: 0; }
.team-card p { color: var(--ink-soft); }
.team-card > :last-child { margin-bottom: 0; }

/* ---------- 15. Definition / facts list ---------------------------------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border: var(--bw) solid var(--line); }
.facts > div {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--bw) solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: var(--fw-semibold); color: var(--ink); margin: 0; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* ---------- 16. Contact layout ------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 1080px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.map-placeholder {
  border: var(--bw) solid var(--line);
  background:
    repeating-linear-gradient(0deg, var(--c-rosin-sand) 0 23px, var(--c-blush) 23px 24px),
    repeating-linear-gradient(90deg, var(--c-rosin-sand) 0 31px, var(--c-blush) 31px 32px);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-5);
  color: var(--ink-soft);
}
.map-placeholder span { background: var(--surface); border: var(--bw) solid var(--line-strong); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); }

/* ---------- 17. Forms ---------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-5); max-width: 560px; }
.form__note { color: var(--muted); margin: 0; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: var(--fw-semibold); color: var(--ink); }
.field__hint { color: var(--muted); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--surface);
  border: var(--bw) solid var(--line-strong);
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' stroke='%232A211D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-7);
}

.form__success { color: var(--ok); border-left: var(--bw-strong) solid var(--ok); padding-left: var(--space-4); margin: 0; }
.form__error { color: var(--bad); border-left: var(--bw-strong) solid var(--bad); padding-left: var(--space-4); margin: 0; }
.field input:invalid:not(:placeholder-shown) { border-color: var(--bad); }

/* ---------- 18. Closing CTA band ----------------------------------------- */
.cta-band__inner { text-align: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-6); }

/* ---------- 19. Footer --------------------------------------------------- */
.site-footer { background: var(--bg-invert); color: var(--ink-invert); }
.site-footer a { color: var(--ink-invert); text-decoration: underline; text-underline-offset: 0.18em; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-7);
  padding-block: var(--section-y);
}
.site-footer__head {
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.site-footer__name { font-family: var(--font-display); font-size: var(--fs-h5); margin: 0 0 var(--space-2); }
.site-footer p { margin: 0 0 var(--space-3); max-width: 40ch; }
.hours div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: var(--bw) solid rgba(247,242,236,0.18); }
.hours dt { font-weight: var(--fw-semibold); margin: 0; }
.hours dd { margin: 0; }
.site-footer__links, .site-footer__social { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.site-footer__links li, .site-footer__social li { margin-bottom: var(--space-2); }
.site-footer__links a, .site-footer__social a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: var(--bw) solid rgba(247,242,236,0.22);
  font-size: var(--fs-small);
}
.site-footer__base p { margin: 0; max-width: none; }
@media (min-width: 768px)  { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- 20. Scroll-reveal (one effect, IO-driven) -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 21. Misc ----------------------------------------------------- */
.page-intro { padding-block: var(--section-y) 0; }
.note {
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: var(--bw-2) solid var(--line-strong);
  padding-left: var(--space-4);
  margin: var(--space-4) 0;
  max-width: 60ch;
}
.anchor-target { scroll-margin-top: 96px; }

/* ---------- 22. Print ---------------------------------------------------- */
@media print {
  .site-header, .nav__actions, .nav__toggle, .cta-band, .section-divider { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
}
