/* Castle Rock Kitchens
   Visual system per brand/BRAND-GUIDE.md. Palette and balance from §9 and §31,
   type roles from §11 to §14, graphic language from §23. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #1a1a1a;
  --graphite: #3a3a3a;
  --stone: #b7a58f;
  --limestone: #e8e1d6;
  --bronze: #a88662;
  --evergreen: #2e3b32;
  /* Castle Bronze deepened for small text on Limestone (4.99:1). Bronze itself is 2.59:1 there. */
  --bronze-ink: #74593d;

  --rule-light: rgba(26, 26, 26, 0.16);
  --rule-dark: rgba(232, 225, 214, 0.16);
  --veil: rgba(26, 26, 26, 0.035);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.2vw, 5.6rem);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --header-h: 84px;
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
::selection { background: var(--bronze); color: var(--charcoal); }

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--limestone);
  padding: 12px 18px; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ type */

h1, h2, h3, h4 { margin: 0; color: var(--charcoal); text-wrap: balance; }
h1, .h1 {
  font-family: var(--serif); font-weight: 300; font-size: var(--step-4);
  line-height: 1.02; letter-spacing: -0.012em;
}
h2, .h2 {
  font-family: var(--serif); font-weight: 400; font-size: var(--step-3);
  line-height: 1.08; letter-spacing: -0.006em;
}
h3, .h3 {
  font-family: var(--sans); font-weight: 600; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.5;
}
.lead {
  font-family: var(--serif); font-weight: 400; font-size: var(--step-1);
  line-height: 1.5; color: var(--charcoal);
}
p, li { text-wrap: pretty; }

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 0 22px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--graphite);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: 0.55; }
.eyebrow--left { justify-content: flex-start; }
.eyebrow--left::before { display: none; }
.on-dark .eyebrow { color: var(--stone); }

.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 5vw, 72px); }
.section-head h2 { max-width: 26ch; margin-inline: auto; }
.section-head p { max-width: 60ch; margin: 22px auto 0; }

/* ------------------------------------------------------------ surfaces */

.on-dark { background: var(--charcoal); color: var(--limestone); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .lead { color: var(--limestone); }
.on-dark p, .on-dark li { color: rgba(232, 225, 214, 0.82); }
.on-green { background: var(--evergreen); color: var(--limestone); }
.section { padding-block: var(--section); }
.section + .section:not(.on-dark):not(.on-green) { border-top: 1px solid var(--rule-light); }

/* ------------------------------------------------------------ buttons + links */

.btn {
  --btn-fg: var(--charcoal);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--btn-fg);
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--charcoal); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--limestone); border-color: var(--charcoal); }

.btn--bronze { background: var(--bronze); border-color: var(--bronze); color: var(--charcoal); }
.btn--bronze::before { background: var(--limestone); }
.btn--bronze:hover, .btn--bronze:focus-visible { color: var(--charcoal); border-color: var(--limestone); }
.btn--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--limestone); }
.btn--dark::before { background: var(--bronze); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--charcoal); border-color: var(--bronze); }
.on-dark .btn--line { color: var(--limestone); }
.on-dark .btn--line::before { background: var(--limestone); }
.on-dark .btn--line:hover, .on-dark .btn--line:focus-visible { color: var(--charcoal); border-color: var(--limestone); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
}
.link-arrow::after {
  content: ""; width: 28px; height: 1px; background: var(--bronze);
  transition: width 0.35s var(--ease);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { width: 48px; }

.prose a, .inline-link {
  text-decoration: underline; text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.2s;
}
.prose a:hover, .inline-link:hover { text-decoration-thickness: 2px; }

/* ------------------------------------------------------------ pending markers (pre-launch only) */

.pending {
  display: inline-block; padding: 1px 8px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); background: repeating-linear-gradient(-45deg, #e3d4bf 0 6px, #d9c7ae 6px 12px);
  border: 1px dashed var(--bronze); line-height: 1.7; vertical-align: middle; max-width: 100%;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  color: var(--limestone);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: block; flex: none; width: clamp(196px, 17vw, 244px); position: relative; }
.brand img { width: 100%; height: auto; transition: opacity 0.35s var(--ease); }
.brand__on-light { position: absolute; inset: 0; opacity: 0; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: block; padding: 10px 0;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.primary-nav__trigger {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 0; background: none; border: 0; cursor: pointer;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: inherit;
}
.primary-nav__trigger::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.primary-nav__trigger[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }

/* Service-area mega menu: regions, cities and a feature card. */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 41;
  background: var(--limestone); color: var(--charcoal); border-top: 1px solid var(--rule-light);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.45);
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mega[hidden] { display: none; }
.mega.is-open { opacity: 1; transform: none; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 40px; padding-block: 36px 40px; }
.mega__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--charcoal); }
.mega__col { padding: 18px 18px 0 0; }
.mega__col + .mega__col { padding-left: 18px; border-left: 1px solid var(--rule-light); }
.mega__region { margin: 0 0 12px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-ink); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col a { display: block; padding: 7px 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; text-decoration: none; color: var(--charcoal); transition: padding 0.3s var(--ease), color 0.3s; }
.mega__col a:hover, .mega__col a:focus-visible { padding-left: 6px; color: var(--bronze-ink); }
.mega__feature { position: relative; display: block; min-height: 220px; overflow: hidden; text-decoration: none; color: var(--limestone); background: var(--charcoal); }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: transform 1.2s var(--ease), opacity 0.4s; }
.mega__feature:hover img { transform: scale(1.04); opacity: 0.9; }
.mega__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 26, 26, 0) 30%, rgba(26, 26, 26, 0.88)); }
.mega__feature-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.mega__kicker { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }
.mega__feature strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.site-header.has-mega-open { background: var(--limestone); color: var(--charcoal); box-shadow: 0 1px 0 var(--rule-light); }
.site-header.has-mega-open .brand__on-light { opacity: 1; }
.site-header.has-mega-open .brand__on-dark { opacity: 0; }
.site-header.has-mega-open .btn--header { color: var(--charcoal); }

.btn--header { min-height: 44px; padding: 0 22px; color: var(--limestone); }
.btn--header::before { background: var(--bronze); }
.btn--header:hover, .btn--header:focus-visible { color: var(--charcoal); border-color: var(--bronze); }

.site-header.is-solid,
.site-header[data-theme="light"] {
  background: var(--limestone); color: var(--charcoal);
  box-shadow: 0 1px 0 var(--rule-light);
}
.site-header.is-solid .brand__on-light,
.site-header[data-theme="light"] .brand__on-light { opacity: 1; }
.site-header.is-solid .brand__on-dark,
.site-header[data-theme="light"] .brand__on-dark { opacity: 0; }
.site-header.is-solid .btn--header,
.site-header[data-theme="light"] .btn--header { color: var(--charcoal); }
.site-header.is-hidden { transform: translateY(-100%); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 2px; background: none; border: 0; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.menu-toggle__bars { display: grid; gap: 6px; width: 24px; }
.menu-toggle__bars i { display: block; height: 1px; background: currentColor; }
.menu-toggle__bars i:last-child { width: 16px; justify-self: end; }

/* ------------------------------------------------------------ mobile sheet + app bar */

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(26, 26, 26, 0.55); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__panel {
  width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--limestone); color: var(--charcoal);
  padding: 14px 24px calc(28px + var(--safe-bottom));
  transform: translateY(100%); transition: transform 0.45s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { width: 44px; height: 4px; margin: 0 auto 22px; background: var(--stone); }
.sheet__label { margin: 8px 0 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--graphite); }
.sheet__list { list-style: none; padding: 0; margin: 0 0 18px; }
.sheet__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; text-decoration: none; color: var(--charcoal);
}
.sheet__list--small a { font-family: var(--sans); font-size: 1rem; padding: 12px 0; }
.sheet__no { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--bronze-ink); }
.sheet__close {
  display: block; width: 100%; margin-top: 12px; min-height: 48px; background: none; border: 0; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--graphite);
}

.app-bar {
  display: none; position: fixed; inset: auto 0 0; z-index: 45;
  grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-bottom: var(--safe-bottom);
  background: rgba(26, 26, 26, 0.97); border-top: 1px solid rgba(168, 134, 98, 0.35);
  transition: transform 0.4s var(--ease);
}
.app-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 62px; background: none; border: 0; cursor: pointer; text-decoration: none;
  color: var(--limestone); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.app-bar__item svg { width: 22px; height: 22px; fill: none; stroke: var(--stone); stroke-width: 1.25; }
.app-bar__item--primary { background: var(--bronze); color: var(--charcoal); }
.app-bar__item--primary svg { stroke: var(--charcoal); }
.app-bar.is-tucked { transform: translateY(110%); }

@media (max-width: 1180px) {
  .primary-nav, .btn--header, .mega { display: none !important; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .page-hero--image { min-height: calc(100svh - 62px - var(--safe-bottom)); }
  .page-hero--short { min-height: 60svh; }
  .run__pin { height: 180svh; }
  .hero--run { height: calc(100svh - 62px - var(--safe-bottom)); }
  .app-bar { display: grid; }
  body { padding-bottom: calc(62px + var(--safe-bottom)); }
}

/* ------------------------------------------------------------ hero (home) */

.hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 0; overflow: hidden; }
.hero__copy { text-align: center; max-width: 1040px; margin: 0 auto; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { max-width: 54ch; margin: 28px auto 36px; font-size: 1.125rem; }

/* Scroll run: the hero pins while the camera closes on the island, then the approach
   section scrolls up over the same footage. The photo lives in an absolutely positioned
   track (never a negative margin) so it cannot outlive the run. */
.run { position: relative; isolation: isolate; background: var(--charcoal); }
.run__track { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.run__photo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--charcoal); }
.run__frame { position: absolute; inset: 0; overflow: hidden; background-size: cover; background-position: 50% 50%; transform-origin: 56% 50%; }
.run__frame::before { content: ""; position: absolute; inset: -20px; z-index: 0; background: inherit; filter: blur(18px); }
.run__rig { position: absolute; inset: 0; z-index: 1; transform-origin: 56% 60%; animation: deck-sway 9s ease-in-out infinite; }
@keyframes deck-sway {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.003) rotate(0.08deg); }
}
.run__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.04); }
.run__vignette {
  position: absolute; inset: 0;
  /* Tuned for this footage: the bright upper-left window needs a little top-down shade so
     the small eyebrow clears 4.5:1 (re-measure if the film is replaced). */
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.2) 30%, rgba(26, 26, 26, 0) 45%),
    linear-gradient(95deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.72) 34%, rgba(26, 26, 26, 0.3) 62%, rgba(26, 26, 26, 0.1) 100%);
}
.run__shade { position: absolute; inset: 0; background: var(--charcoal); opacity: 0; }
/* On phones the copy spans the full width, so the left-weighted vignette gives way to an even
   shade that keeps the subtitle above 4.5:1 over this footage. */
@media (max-width: 760px) {
  .run__vignette { background: linear-gradient(180deg, rgba(26, 26, 26, 0.66) 0%, rgba(26, 26, 26, 0.6) 35%, rgba(26, 26, 26, 0.68) 70%, rgba(26, 26, 26, 0.88) 100%); }
}
.run.is-still .run__rig { animation-play-state: paused; }

.run__pin { position: relative; z-index: 1; height: 200vh; height: 200svh; }
.hero--run {
  position: sticky; top: 0; display: grid; grid-template-rows: 1fr auto;
  height: 100vh; height: 100svh; padding: calc(var(--header-h) + 32px) 0 0; overflow: visible; background: transparent;
}
.hero--run .hero__copy { text-align: left; max-width: 980px; margin: 0; }
.hero--run .eyebrow { justify-content: flex-start; color: var(--limestone); }
.hero--run .eyebrow::before { display: none; }
.hero--run h1 { max-width: 24ch; margin: 0; font-size: clamp(2.5rem, 1.3rem + 3.7vw, 5.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero--run .hero__sub { max-width: 46ch; margin: 28px 0 36px; color: var(--limestone); }
.hero--run .btn-row { justify-content: flex-start; }
.approach--run { position: relative; z-index: 1; background: transparent; }
.approach--run .lead, .approach--run p { color: rgba(232, 225, 214, 0.9); }
.approach--run .approach__col:first-of-type { border-right-color: var(--rule-dark); }

/* Headline entrance is pure CSS so the largest element never waits on script. It animates
   `translate`, which composes with the scroll-driven `transform`, and fills backwards only so
   the scroll fade owns opacity once the entrance has finished. */
@keyframes rise-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.hero--run [data-run-copy] { animation: rise-in 1.1s var(--ease) backwards; }
.hero--run .eyebrow { animation-delay: 0.05s; }
.hero--run h1 { animation-delay: 0.15s; }
.hero--run .hero__sub { animation-delay: 0.35s; }
.hero--run .btn-row { animation-delay: 0.5s; }
.hero--run .hero__foot { animation-delay: 0.7s; }

/* Fallback (no JS, reduced motion, or a stalled clock): static photo, nothing hidden, and the
   approach section carries its own scrim. `run--live` is added on the first animation frame. */
html:not(.js) .run__pin { height: auto; }
html:not(.js) .hero--run { position: relative; }
@media (prefers-reduced-motion: reduce) { .run__pin { height: auto; } .hero--run { position: relative; } }
.run:not(.run--live) .approach--run { background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.74) 20%, rgba(26, 26, 26, 0.92) 100%); }
@media (prefers-reduced-motion: reduce) { .run__rig { animation: none; } .hero--run [data-run-copy] { animation: none; } }

.hero__inner { align-self: center; padding-bottom: 40px; }
.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px 26px; border-top: 1px solid var(--rule-dark);
}
.hero__note { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(232, 225, 214, 0.78); }
.hero__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: rgba(26, 26, 26, 0.35); border: 1px solid var(--rule-dark); cursor: pointer;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--limestone);
  transition: border-color 0.3s, background 0.3s;
}
.hero__toggle[hidden] { display: none; }
.hero__toggle:hover { border-color: var(--bronze); background: rgba(26, 26, 26, 0.6); }
.hero__toggle-icon { position: relative; width: 10px; height: 12px; border-left: 3px solid var(--bronze); border-right: 3px solid var(--bronze); }
.hero__toggle.is-paused .hero__toggle-icon { border: 0; border-left: 10px solid var(--bronze); border-top: 6px solid transparent; border-bottom: 6px solid transparent; width: 0; height: 0; }

.page-hero__inner { text-align: center; max-width: 980px; margin: 0 auto; }
.page-hero h1 { max-width: 22ch; margin-inline: auto; }
.page-hero .lead { max-width: 46ch; margin: 26px auto 34px; }
.page-hero--light { border-bottom: 1px solid var(--rule-light); }
.page-hero--light h1 { font-size: var(--step-3); }
.page-hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
}
.page-hero__meta div { padding: 18px 12px; text-align: center; border-left: 1px solid var(--rule-dark); }
.page-hero__meta div:first-child { border-left: 0; }
.page-hero__meta dt { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
.page-hero__meta dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--limestone); }

/* Image heroes: every inner page carries its own photograph. */
.page-hero--image {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: center; min-height: 100vh; min-height: 100svh;
}
.page-hero--short { min-height: 64vh; min-height: 64svh; }
@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.5%, 0); }
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; background: var(--charcoal); }
.page-hero__media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  animation: hero-drift 26s ease-in-out infinite alternate;
}
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0) 75%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.45) 35%, rgba(26, 26, 26, 0.55) 65%, rgba(26, 26, 26, 0.9) 100%);
}
.page-hero--image h1, .page-hero--image .lead { text-shadow: 0 1px 28px rgba(0, 0, 0, 0.45); }
.page-hero--image .lead, .page-hero--image .eyebrow, .page-hero--image p { color: var(--limestone); }
.page-hero--image .page-hero__meta { background: rgba(26, 26, 26, 0.45); backdrop-filter: blur(4px); }
.page-hero--image .mark-img { margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .page-hero__media img { animation: none; } }

/* Topic accordion on service pages */
.topics { background: var(--charcoal); }
.acc--topics { height: clamp(460px, 40vw, 560px); }
.acc--topics .acc__panel.is-open { flex-grow: 7; }

.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; }
.crumbs li { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--limestone); }
.page-hero--light .crumbs li { color: var(--graphite); }
.page-hero--light .crumbs a:hover { color: var(--charcoal); }

/* ------------------------------------------------------------ photography */

.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; background: var(--stone); }
.photo figcaption {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule-light);
  font-size: 0.8rem; line-height: 1.5; color: var(--graphite);
}
.photo--wide { margin-bottom: clamp(40px, 5vw, 72px); }
.prose .photo { margin: 44px 0; }
.approach__grid .photo { grid-column: 1 / -1; }

/* ------------------------------------------------------------ home: kitchen gallery */

.approach__grid .gallery { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 72px); }
.gallery__stage { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--charcoal); touch-action: pan-y; }
.gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.gallery__slide.is-active { opacity: 1; }
.gallery__slide[hidden] { display: block; visibility: hidden; }
.gallery__slide.is-active[hidden] { visibility: visible; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 6s var(--ease); }
.gallery__slide.is-active img { transform: scale(1); }
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px;
  background: rgba(26, 26, 26, 0.55); border: 1px solid rgba(232, 225, 214, 0.25); cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.gallery__arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -7px;
  border-top: 1px solid var(--limestone); border-right: 1px solid var(--limestone); transform: rotate(45deg);
}
.gallery__arrow--prev { left: 20px; }
.gallery__arrow--prev::before { margin-left: -3px; transform: rotate(-135deg); }
.gallery__arrow--next { right: 20px; }
.gallery__arrow:hover { background: rgba(26, 26, 26, 0.85); border-color: var(--bronze); }

.gallery__index { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-light); }
.gallery__tab {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 18px 0;
  text-align: left; background: none; border: 0; cursor: pointer; color: var(--graphite);
}
.gallery__tab + .gallery__tab { padding-left: 16px; border-left: 1px solid var(--rule-light); }
.gallery__tab::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--charcoal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.gallery__tab[aria-selected="true"]::before { transform: scaleX(1); }
.gallery__no { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; color: var(--bronze-ink); }
.gallery__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: var(--charcoal); }
.gallery__mat { font-size: 0.8rem; line-height: 1.4; }
.gallery__tab:hover .gallery__name, .gallery__tab[aria-selected="true"] .gallery__name { text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 0.2em; }
.gallery__note { margin: 14px 0 0; font-size: 0.8rem; color: var(--graphite); }

/* Full-screen variant: the stage fills the viewport and the index sits over it. */
.gallery-full { position: relative; }
.gallery--full { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.gallery--full .gallery__stage { position: absolute; inset: 0; aspect-ratio: auto; }
.gallery--full .gallery__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0) 22%, rgba(26, 26, 26, 0) 50%, rgba(26, 26, 26, 0.88) 100%);
}
.gallery--full .gallery__index {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 8px;
  border-bottom: 0;
}
.gallery--full .gallery__tab { padding-top: 22px; padding-bottom: 26px; color: rgba(232, 225, 214, 0.72); border-top: 1px solid rgba(232, 225, 214, 0.28); }
.gallery--full .gallery__tab + .gallery__tab { border-left: 1px solid rgba(232, 225, 214, 0.18); }
.gallery--full .gallery__tab::before { background: var(--bronze); height: 3px; top: -2px; }
.gallery--full .gallery__no { color: var(--bronze); }
.gallery--full .gallery__name { color: var(--limestone); font-size: clamp(1.05rem, 0.55rem + 0.85vw, 1.4rem); transition: transform 0.4s var(--ease); }
.gallery--full .gallery__mat { min-height: 2.8em; }
@media (min-width: 1081px) { .gallery--full .gallery__name { white-space: nowrap; } }
.gallery--full .gallery__tab:hover .gallery__name, .gallery--full .gallery__tab[aria-selected="true"] .gallery__name { text-decoration: none; transform: translateY(-3px); }
.gallery--full .gallery__tab[aria-selected="true"] { color: var(--limestone); }
.gallery--full .gallery__arrow { top: 46%; }
.gallery--full .gallery__arrow--prev { left: var(--gutter); }
.gallery--full .gallery__arrow--next { right: var(--gutter); }
.gallery--full .gallery__note {
  position: absolute; top: calc(var(--header-h) + 18px); right: var(--gutter); z-index: 3; margin: 0;
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(232, 225, 214, 0.8);
}

/* ------------------------------------------------------------ home: approach */

.approach__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 32px; align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}
.approach__col { grid-column: span 6; }
.approach__col:first-of-type { padding-right: clamp(0px, 3vw, 48px); border-right: 1px solid var(--rule-light); }
.approach__col:last-of-type { padding-left: clamp(0px, 3vw, 48px); }

/* ------------------------------------------------------------ home: capability list */

.cap { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--section); }
.cap__media { position: absolute; inset: 0; z-index: -2; background: var(--charcoal); }
.cap__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.cap__layer.is-active { opacity: 1; }
.cap__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.74) 55%, rgba(26, 26, 26, 0.6) 100%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0) 30%, rgba(26, 26, 26, 0) 70%, rgba(26, 26, 26, 0.65) 100%);
}
.cap__ghost {
  position: absolute; right: -0.04em; bottom: -0.2em; z-index: -1;
  font-family: var(--serif); font-weight: 300; font-size: clamp(14rem, 30vw, 30rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(232, 225, 214, 0.2); pointer-events: none; user-select: none;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.cap__ghost.is-swapping { opacity: 0; transform: translateY(24px); }

.cap__head { text-align: center; max-width: 1100px; margin: 0 auto clamp(56px, 7vw, 104px); }
.cap__index { margin: 0 0 24px; font-size: clamp(0.8rem, 0.7rem + 0.3vw, 1rem); font-weight: 600; letter-spacing: 0.36em; text-transform: uppercase; color: var(--stone); }
.cap__index span { color: var(--bronze); margin: 0 6px; }
.cap__head h2 { font-size: clamp(3.4rem, 1.6rem + 6.4vw, 8rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.015em; color: var(--limestone); }
.cap__head p { max-width: 40ch; margin: clamp(22px, 2.4vw, 34px) auto 0; font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem); line-height: 1.5; color: rgba(232, 225, 214, 0.88); }

.cap__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(232, 225, 214, 0.22); }
.cap__row { position: relative; border-bottom: 1px solid rgba(232, 225, 214, 0.22); transition: transform 0.5s var(--ease); }
.cap__row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--bronze);
  transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease);
}
.cap__row.is-active { transform: translateX(8px); }
.cap__row.is-active::before { transform: scaleY(1); }
.cap__btn {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; align-items: center; gap: 16px;
  width: 100%; padding: clamp(22px, 2.6vw, 34px) 0 clamp(22px, 2.6vw, 34px) 24px;
  background: none; border: 0; cursor: pointer; text-align: left; color: rgba(232, 225, 214, 0.55);
  transition: color 0.4s var(--ease);
}
.cap__row.is-active .cap__btn, .cap__btn:hover { color: var(--limestone); }
.cap__btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: -2px; }
.cap__no { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; color: var(--bronze); }
.cap__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: 0.04em; text-transform: uppercase; }
.cap__arrow { width: 32px; height: 32px; justify-self: end; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.5s var(--ease), stroke 0.4s; }
.cap__row.is-active .cap__arrow { stroke: var(--bronze); transform: translate(4px, -4px); }

.cap__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.6s var(--ease), visibility 0s linear 0.6s; }
.cap__row.is-active .cap__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.6s var(--ease), visibility 0s; }
.cap__panel-inner { min-height: 0; overflow: hidden; padding-left: calc(24px + 72px + 16px); }
.cap__panel-inner p { max-width: 56ch; margin: 0 0 18px; font-size: 1.05rem; color: rgba(232, 225, 214, 0.86); }
.cap__panel-inner .link-arrow { margin-bottom: clamp(24px, 2.6vw, 34px); color: var(--limestone); }

/* ------------------------------------------------------------ home: planner */

.planner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.planner__q { grid-column: 1 / span 6; margin: 0; padding: 0; border: 0; min-width: 0; }
.planner__fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.planner__fs legend { padding: 0; margin-bottom: 20px; color: var(--stone); }
.planner__opt { position: relative; display: block; cursor: pointer; }
.planner__opt input { position: absolute; opacity: 0; pointer-events: none; }
.planner__opt span {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 112px; gap: 16px; align-items: center;
  min-height: 120px; padding: 16px 0; border-top: 1px solid var(--rule-dark);
  font-size: 1.02rem; color: rgba(232, 225, 214, 0.85); transition: color 0.3s, padding 0.35s var(--ease);
}
.planner__opt:last-of-type span { border-bottom: 1px solid var(--rule-dark); }
.planner__opt b {
  font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--stone);
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule-dark);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.planner__opt:hover span { color: var(--limestone); padding-left: 8px; }
.planner__opt input:checked + span { color: var(--limestone); padding-left: 8px; }
.planner__opt input:checked + span b { background: var(--bronze); border-color: var(--bronze); color: var(--charcoal); }
.planner__opt input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

.planner__result {
  grid-column: 8 / span 5; align-self: stretch; position: relative;
  padding: clamp(28px, 3vw, 44px); border: 1px solid rgba(168, 134, 98, 0.5);
  display: flex; flex-direction: column;
}
.planner__result::before {
  content: "Recommendation"; position: absolute; top: -9px; left: 24px; padding: 0 10px;
  background: var(--charcoal); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze);
}
.planner__panel[hidden] { display: none; }
.planner__panel h3 { color: var(--stone); margin-bottom: 14px; }
.planner__panel .h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); color: var(--limestone); margin-bottom: 18px; }
.planner__panel .btn-row { justify-content: flex-start; margin-top: 26px; }
.planner__empty { margin: auto 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--stone); }

/* Planner imagery: thumbnails, a photo recommendation card and a soft section backdrop. */
.planner-section { position: relative; overflow: hidden; isolation: isolate; }
.planner__backdrop { position: absolute; inset: 0; z-index: -1; background: var(--charcoal); }
.planner__backdrop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: blur(6px) saturate(0.8); transform: scale(1.08); transition: opacity 1s var(--ease);
}
.planner__backdrop img.is-active { opacity: 0.32; }
.planner__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.72) 40%, rgba(26, 26, 26, 0.92)); }

.planner__thumb {
  width: 112px; height: 84px; object-fit: cover; justify-self: end;
  filter: brightness(0.7) saturate(0.85); border: 1px solid rgba(232, 225, 214, 0.18);
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease), border-color 0.4s;
}
.planner__opt:hover .planner__thumb { filter: none; transform: scale(1.04); }
.planner__opt input:checked + span .planner__thumb { filter: none; border-color: var(--bronze); }

.planner__result { overflow: hidden; min-height: 460px; justify-content: flex-end; padding: 0; align-self: stretch; }
.planner__media { position: absolute; inset: 0; z-index: 0; }
.planner__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 6s var(--ease);
}
.planner__media img.is-active { opacity: 1; transform: scale(1); }
.planner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 26, 26, 0.15) 0%, rgba(26, 26, 26, 0.35) 35%, rgba(26, 26, 26, 0.9) 75%, rgba(26, 26, 26, 0.96) 100%); }
.planner__result::before { z-index: 2; top: 18px; left: 18px; padding: 6px 12px; background: rgba(26, 26, 26, 0.75); }
.planner__panel, .planner__empty { position: relative; z-index: 1; padding: clamp(28px, 3vw, 40px); }
.planner__empty { margin: 0; color: var(--limestone); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); }
.planner__panel { animation: acc-in 0.6s var(--ease) both; }

/* ------------------------------------------------------------ home: material library */

.library { position: relative; overflow: hidden; isolation: isolate; }
.library__backdrop { position: absolute; inset: 0; z-index: -1; background: var(--charcoal); }
.library__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(0.9);
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 6s var(--ease);
}
.library__bg.is-active { opacity: 1; transform: scale(1); }
.library__backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.4) 30%, rgba(26, 26, 26, 0.32) 55%, rgba(26, 26, 26, 0.82) 78%, rgba(26, 26, 26, 0.92) 100%);
}

/* Horizontal accordion: one open panel carries the content, the rest collapse to labeled strips. */
.acc { display: flex; gap: 10px; height: clamp(500px, 44vw, 600px); margin: 0; padding: 0; list-style: none; }
.acc__panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border: 1px solid rgba(232, 225, 214, 0.2); background: var(--charcoal);
  transition: flex-grow 0.7s var(--ease), border-color 0.4s;
}
.acc__panel.is-open { flex-grow: 9; border-color: var(--bronze); }
.acc__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62) saturate(0.85); transform: scale(1.08);
  transition: filter 0.6s var(--ease), transform 1.2s var(--ease);
}
.acc__panel:hover .acc__img { filter: brightness(0.85); }
.acc__panel.is-open .acc__img { filter: none; transform: scale(1); }
.acc__panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 45%, rgba(26, 26, 26, 0.8) 100%);
  transition: background 0.6s var(--ease);
}
.acc__panel.is-open::after { background: linear-gradient(180deg, rgba(26, 26, 26, 0.2) 0%, rgba(26, 26, 26, 0.35) 30%, rgba(26, 26, 26, 0.9) 72%, rgba(26, 26, 26, 0.96) 100%); }

.acc__trigger {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px 14px; background: none; border: 0; cursor: pointer; color: var(--limestone); text-align: left;
}
.acc__trigger:focus-visible { outline: 2px solid var(--bronze); outline-offset: -4px; }
.acc__panel:not(.is-open) .acc__trigger > span:first-child { margin: 0; }
.acc__panel:not(.is-open) .acc__trigger { writing-mode: vertical-rl; transform: rotate(180deg); align-items: center; justify-content: flex-end; gap: 10px; flex-direction: row; }
.acc__code { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; color: var(--bronze); white-space: nowrap; }
.acc__label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.acc__panel.is-open .acc__trigger { inset: 0 0 auto 0; height: 60px; align-items: center; padding: 0 22px; cursor: default; }
.acc__panel.is-open .acc__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.acc__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 32px 30px;
  animation: acc-in 0.6s var(--ease) 0.2s both;
}
.acc__body[hidden] { display: none; }
@keyframes acc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.acc__sub { margin: 0 0 6px; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
.acc__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); line-height: 1.05; letter-spacing: 0; text-transform: none; color: var(--limestone); }
.acc__desc { max-width: 52ch; margin: 0 0 18px; font-size: 0.98rem; color: rgba(232, 225, 214, 0.9); }
.acc__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 18px; padding-top: 14px; border-top: 1px solid rgba(232, 225, 214, 0.22); }
.acc__specs dt { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.acc__specs dd { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.5; color: rgba(232, 225, 214, 0.82); }
.acc__link { color: var(--limestone); }
.strip__legend { display: flex; justify-content: center; gap: 28px; margin: 18px 0 0; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }

/* ------------------------------------------------------------ home: anatomy of a kitchen */

.anatomy__stage { position: relative; aspect-ratio: 2400 / 1029; overflow: hidden; background: var(--stone); }
.anatomy__stage > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.anatomy__spot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(26, 26, 26, 0.55); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(232, 225, 214, 0.7);
  transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
}
.anatomy__spot span { font-size: 0.8rem; font-weight: 600; color: var(--limestone); }
.anatomy__spot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(232, 225, 214, 0.6);
  animation: spot-pulse 2.6s var(--ease) infinite;
}
.anatomy__spot:hover, .anatomy__spot:focus-visible { transform: scale(1.1); }
.anatomy__spot[aria-pressed="true"] { background: var(--bronze); box-shadow: 0 0 0 1px var(--bronze), 0 0 0 6px rgba(168, 134, 98, 0.35); }
.anatomy__spot[aria-pressed="true"] span { color: var(--charcoal); }
.anatomy__spot:focus-visible { outline: 2px solid var(--limestone); outline-offset: 4px; }
@keyframes spot-pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.anatomy__caption {
  position: absolute; left: 16px; bottom: 12px; z-index: 2; margin: 0; padding: 4px 10px;
  background: rgba(26, 26, 26, 0.6); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--limestone);
}

.anatomy__panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: 1px solid var(--rule-light); }
.anatomy__details { position: relative; min-height: 220px; padding: 36px 48px 32px 0; border-right: 1px solid var(--rule-light); }
.anatomy__detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; animation: detail-in 0.5s var(--ease); }
.anatomy__detail[hidden] { display: none; }
@keyframes detail-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.anatomy__big { font-family: var(--serif); font-weight: 300; font-size: clamp(4.5rem, 3rem + 4vw, 7.5rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 1px var(--bronze-ink); }
.anatomy__detail h3 { font-family: var(--serif); font-size: var(--step-2); font-weight: 400; letter-spacing: 0; text-transform: none; margin: 4px 0 12px; }
.anatomy__detail p { max-width: 52ch; margin: 0; }
.anatomy__index ol { list-style: none; margin: 0; padding: 22px 0 22px 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.anatomy__item {
  display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 52px; padding: 12px 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule-light); cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 1.15rem; color: var(--graphite); transition: color 0.3s, padding 0.35s var(--ease);
}
.anatomy__item-no { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; color: var(--bronze-ink); }
.anatomy__item:hover, .anatomy__item[aria-pressed="true"] { color: var(--charcoal); padding-left: 6px; }
.anatomy__item[aria-pressed="true"] { border-bottom-color: var(--charcoal); }

/* ------------------------------------------------------------ contact band */

.contact-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.band-media img { animation-duration: 34s; }
.contact-band .contact-band__lead, .contact-band .eyebrow { color: var(--limestone); }
.contact-band h2 { max-width: 24ch; margin-inline: auto; }
.contact-band__lead { max-width: 52ch; margin: 22px auto 36px; }
.contact-band__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: clamp(48px, 6vw, 72px) auto 0;
  border-top: 1px solid var(--rule-dark);
}
.contact-band__facts div { padding: 26px 16px; border-left: 1px solid var(--rule-dark); }
.contact-band__facts div:first-child { border-left: 0; }
.contact-band__facts dt { font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone); }
.contact-band__facts dd { margin: 10px 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--limestone); overflow-wrap: anywhere; }
.contact-band__facts a { text-decoration: none; }

/* ------------------------------------------------------------ article layout (service pages) */

/* Section-aware backdrop: a sticky layer swaps to the photo of the section being read. */
.article-section { position: relative; isolation: isolate; }
.article__backdrop { position: absolute; inset: 0; z-index: -1; background: var(--limestone); }
.article__backdrop-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.article__backdrop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05); transition: opacity 1.1s var(--ease), transform 8s var(--ease);
}
.article__backdrop img.is-active { opacity: 1; transform: scale(1); }
.article__backdrop-pin::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(232, 225, 214, 0.18) 0%, rgba(232, 225, 214, 0.42) 26%, rgba(232, 225, 214, 0.9) 36%, rgba(232, 225, 214, 0.94) 100%);
}
.article-section .toc { padding: 0 18px 10px; background: rgba(232, 225, 214, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }


.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
.article__toc { grid-column: 1 / span 3; }
.article__body { grid-column: 5 / span 8; min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); border-top: 1px solid var(--charcoal); }
.toc p { margin: 0; padding: 16px 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--rule-light); }
.toc a {
  display: grid; grid-template-columns: 34px 1fr; padding: 11px 0; font-size: 0.9rem; line-height: 1.45; text-decoration: none;
  color: var(--graphite); transition: color 0.25s, padding 0.3s var(--ease);
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 0.72rem; color: var(--bronze-ink); padding-top: 2px; }
.toc a:hover, .toc a.is-current { color: var(--charcoal); padding-left: 6px; }
.toc a.is-current { font-weight: 600; }

.prose > h2 { margin: clamp(56px, 6vw, 88px) 0 24px; padding-top: 28px; border-top: 1px solid var(--rule-light); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 12px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--bronze); }
.prose strong { color: var(--charcoal); font-weight: 600; }

.sheet-ref { display: block; margin-bottom: 10px; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-ink); }

.callout {
  position: relative; margin: 40px 0; padding: 26px 28px 8px 32px;
  background: rgba(26, 26, 26, 0.04); border-left: 2px solid var(--bronze);
}
.callout__label { margin: 0 0 8px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--charcoal); }
.callout p { font-size: 1rem; }

.stall { margin: 48px 0; padding: clamp(28px, 3.5vw, 44px); background: var(--charcoal); color: var(--limestone); }
.stall h3 { color: var(--stone); margin: 0 0 14px; }
.stall p, .stall li { color: rgba(232, 225, 214, 0.85); }
.stall .stall__fix { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule-dark); }
.stall .stall__fix b { color: var(--bronze); font-weight: 600; letter-spacing: 0.18em; font-size: 0.72rem; text-transform: uppercase; display: block; margin-bottom: 6px; }

.table-wrap { margin: 36px 0; overflow-x: auto; border-top: 1px solid var(--charcoal); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: 0.8rem; color: var(--graphite); }
table.data th, table.data td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-light); }
table.data thead th { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal); }
table.data tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--charcoal); white-space: nowrap; }
table.data td + td, table.data th + td { padding-left: 16px; }

.matrix { margin: 40px 0; border-top: 1px solid var(--charcoal); }
.matrix__row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.matrix__if, .matrix__then { margin: 0; font-size: 0.98rem; }
.matrix__if b, .matrix__then b { display: block; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-ink); margin-bottom: 2px; }
.matrix__arrow { height: 1px; background: var(--bronze); position: relative; }
.matrix__arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--bronze); border-right: 0; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; margin: 32px 0; border-top: 1px solid var(--charcoal); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-light); margin: 0; max-width: none; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--bronze-ink); }
.steps li b { display: block; color: var(--charcoal); font-weight: 600; }

.faq-list { margin-top: 28px; border-top: 1px solid var(--charcoal); }
details.faq { border-bottom: 1px solid var(--rule-light); }
details.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--charcoal);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before, details.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--bronze);
  transition: transform 0.35s var(--ease);
}
details.faq summary::after { transform: rotate(90deg); }
details.faq[open] summary::after { transform: rotate(0); }
details.faq .faq__a { padding: 0 0 18px; }

.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--charcoal); }
.related a { display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 26px 26px 26px 0; text-decoration: none; border-bottom: 1px solid var(--rule-light); }
.related a + a { padding-left: 26px; padding-right: 0; border-left: 1px solid var(--rule-light); }
.related strong { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--charcoal); line-height: 1.15; }
.related span { font-size: 0.95rem; }
.related .link-arrow { margin-top: auto; padding-top: 8px; }

.dim-line { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; color: var(--bronze-ink); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; }
.dim-line::before, .dim-line::after { content: ""; flex: 1; height: 9px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }

/* ------------------------------------------------------------ about */

.approach__grid--flush { margin-top: 0; }
.mark-img { width: 88px; margin: 0 auto 32px; }

.pillars { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--charcoal); }
.pillar { padding: 30px 26px 10px; border-left: 1px solid var(--rule-light); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar__no { font-family: var(--serif); font-size: 1rem; color: var(--bronze-ink); }
.pillar h3 { margin: 12px 0 12px; }
.pillar p { font-size: 0.98rem; }

/* ------------------------------------------------------------ contact page + form */

.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
.contact-layout__form { grid-column: 1 / span 7; }
.contact-layout__aside { grid-column: 9 / span 4; }
.form-step { margin: 0 0 40px; padding: 0; border: 0; min-width: 0; }
.form-step legend { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0 0 16px; margin-bottom: 22px; border-bottom: 1px solid var(--charcoal); }
.form-step legend b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--bronze-ink); }
.form-step legend span { font-family: var(--serif); font-size: 1.7rem; color: var(--charcoal); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal); }
.field .optional { font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--graphite); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--charcoal);
  background: rgba(255, 255, 255, 0.35); border: 1px solid rgba(26, 26, 26, 0.35); border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px var(--charcoal); }
.field [aria-invalid="true"] { border-color: #8a3b2a; }
.field__error { font-size: 0.85rem; color: #7a2f20; min-height: 0; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 76px; padding: 14px 18px;
  border: 1px solid rgba(26, 26, 26, 0.3); transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.choice span b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--charcoal); line-height: 1.2; }
.choice span small { font-size: 0.85rem; color: var(--graphite); }
.choice:hover span { border-color: var(--charcoal); }
.choice input:checked + span { background: var(--charcoal); border-color: var(--charcoal); }
.choice input:checked + span b { color: var(--limestone); }
.choice input:checked + span small { color: var(--stone); }
.choice input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.choice-label { margin: 0 0 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal); }
.field-grid--spaced { margin-top: 22px; }
.map-frame { display: block; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; }
.form-status { margin-top: 16px; padding: 14px 18px; border-left: 2px solid var(--bronze); background: rgba(26, 26, 26, 0.04); }
.form-status[hidden] { display: none; }

.aside-card { position: sticky; top: calc(var(--header-h) + 32px); padding: 32px; background: var(--charcoal); color: var(--limestone); }
.aside-card h2 { font-size: 1.9rem; color: var(--limestone); margin-bottom: 18px; }
.aside-card dl { margin: 0; }
.aside-card dl div { padding: 16px 0; border-top: 1px solid var(--rule-dark); }
.aside-card dt { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
.aside-card dd { margin: 6px 0 0; color: var(--limestone); overflow-wrap: anywhere; }
.aside-card a { text-decoration: none; }
.aside-card p { color: rgba(232, 225, 214, 0.82); font-size: 0.95rem; }

/* ------------------------------------------------------------ legal / plain pages */

.plain { max-width: 760px; margin: 0 auto; }
.plain h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 48px 0 14px; }
.plain h2:first-child { margin-top: 0; }
.review-flag { margin: 0 0 40px; padding: 16px 20px; border: 1px dashed var(--bronze); font-size: 0.92rem; }
.sitemap-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--charcoal); }
.sitemap-list li { border-bottom: 1px solid var(--rule-light); }
.sitemap-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; color: var(--charcoal); }
.sitemap-list a span { font-family: var(--sans); font-size: 0.85rem; color: var(--graphite); align-self: center; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--charcoal); color: var(--limestone); padding: clamp(72px, 8vw, 112px) 0 32px; }
.site-footer__top { text-align: center; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--rule-dark); }
.site-footer__brand { display: inline-block; width: 210px; }
.site-footer__tagline { margin: 26px 0 0; font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-footer__grid > * { padding: 36px 24px 28px; border-left: 1px solid var(--rule-dark); }
.site-footer__grid > *:first-child { border-left: 0; padding-left: 0; }
.site-footer__head { margin: 0 0 16px; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.95rem; color: rgba(232, 225, 214, 0.85); }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--bronze); }
.site-footer__contact { overflow-wrap: anywhere; }
.site-footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-size: 0.8rem; color: rgba(232, 225, 214, 0.65); }
.site-footer__base p { margin: 0; }
.site-footer__mark { letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.68rem; }

/* ------------------------------------------------------------ reveal */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .article__backdrop-pin::after { background: rgba(232, 225, 214, 0.9); }
  .acc { flex-direction: column; height: auto; gap: 8px; }
  .acc__panel { flex: none; height: 62px; transition: height 0.6s var(--ease), border-color 0.4s; }
  .acc__panel.is-open { height: auto; min-height: 520px; }
  .acc__panel:not(.is-open) .acc__trigger { writing-mode: horizontal-tb; transform: none; flex-direction: row; justify-content: flex-start; align-items: center; padding: 0 18px; }
  .acc__panel:not(.is-open)::after { background: rgba(26, 26, 26, 0.45); }
  .acc__body { position: relative; padding-top: 220px; }
  .acc__panel.is-open .acc__trigger { position: absolute; }
  .anatomy__panel { grid-template-columns: 1fr; }
  .anatomy__details { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--rule-light); }
  .anatomy__index ol { padding-left: 0; }
  .gallery__mat { font-size: 0.75rem; }
  .gallery__name { font-size: 1.1rem; }
  .planner__q { grid-column: 1 / -1; }
  .planner__result { grid-column: 1 / -1; min-height: 280px; }
  .article__toc { display: none; }
  .article__body { grid-column: 1 / -1; max-width: 760px; margin-inline: auto; width: 100%; }
  .contact-layout__form { grid-column: 1 / span 7; }
  .contact-layout__aside { grid-column: 8 / span 5; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--rule-light); }
  .pillar:nth-child(2n) { padding-right: 0; }
}

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > *:nth-child(3) { border-left: 0; padding-left: 0; }
  .site-footer__grid > *:nth-child(n + 3) { border-top: 1px solid var(--rule-dark); }
  .contact-layout__form, .contact-layout__aside { grid-column: 1 / -1; }
  .contact-layout__aside { margin-top: 24px; }
  .aside-card { position: static; }
}

@media (max-width: 760px) {
  :root { --section: 72px; }
  .approach__grid, .planner, .article, .contact-layout { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .planner { row-gap: 40px; }
  .planner__opt span { grid-template-columns: 36px minmax(0, 1fr) 72px; gap: 12px; }
  .planner__thumb { width: 72px; height: 56px; }
  .planner__result { min-height: 480px; }
  .approach__col { grid-column: 1 / -1; }
  .approach__col:first-of-type { padding-right: 0; border-right: 0; padding-bottom: 8px; }
  .approach__col:last-of-type { padding-left: 0; }



  .anatomy__stage { aspect-ratio: 4 / 3; }
  .anatomy__stage > img { object-position: 45% 50%; }
  .anatomy__spot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .anatomy__index ol { grid-template-columns: 1fr 1fr; padding: 8px 0 20px; }
  .anatomy__item { font-size: 1rem; }

  .eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; gap: 12px; }
  .gallery__stage { aspect-ratio: 4 / 3; }
  .cap__layer.is-active { opacity: 0.5; }
  .cap__media::after { background: rgba(26, 26, 26, 0.78); }
  .cap__row.is-active { transform: none; }
  .cap__btn { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 10px; padding-left: 14px; }
  .cap__arrow { width: 22px; height: 22px; }
  .cap__panel-inner { padding-left: calc(14px + 40px + 10px); }
  .cap__ghost { font-size: 11rem; }
  .acc__specs { grid-template-columns: 1fr; gap: 10px; }
  .acc__body { padding: 22px 20px 24px; }
  .gallery__arrow { width: 44px; height: 44px; margin-top: -22px; }
  .gallery__arrow--prev { left: 10px; }
  .gallery__arrow--next { right: 10px; }
  .gallery__index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__tab, .gallery__tab + .gallery__tab { padding: 14px 10px; border-left: 1px solid var(--rule-light); border-top: 1px solid var(--rule-light); }
  .gallery__tab:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .gallery__mat { display: none; }
  .gallery--full { height: calc(100svh - 62px - var(--safe-bottom)); }
  .gallery--full .gallery__tab, .gallery--full .gallery__tab + .gallery__tab { padding: 12px 8px 14px; border-left: 1px solid rgba(232, 225, 214, 0.18); }
  .gallery--full .gallery__tab:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .gallery--full .gallery__note { top: calc(var(--header-h) + 10px); left: var(--gutter); right: auto; font-size: 0.58rem; }
  .gallery__name { font-size: 1.05rem; }
  .eyebrow::before, .eyebrow::after { width: 20px; }
    .hero__note { font-size: 0.6rem; letter-spacing: 0.12em; }
        
  .page-hero__meta, .contact-band__facts { grid-template-columns: 1fr; }
  .page-hero__meta div, .contact-band__facts div { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .page-hero__meta div:first-child, .contact-band__facts div:first-child { border-top: 0; }

  .matrix__row { grid-template-columns: 1fr; gap: 8px; }
  .matrix__arrow { width: 40px; }
  .related { grid-template-columns: 1fr; }
  .related a, .related a + a { padding: 22px 0; border-left: 0; }
  .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { padding: 24px 0 6px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--rule-light); }
  table.data { font-size: 0.9rem; min-width: 560px; }
  .btn-row .btn { flex: 1 1 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > *, .site-footer__grid > *:first-child { padding: 26px 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
  .site-footer__grid > *:first-child { border-top: 0; }
  .site-footer__base { flex-direction: column; text-align: center; align-items: center; }
  details.faq summary { font-size: 1.2rem; }
}

@media (max-width: 380px) {
  h1, .h1 { font-size: 2.3rem; }
  .page-hero h1 { font-size: 2.05rem; }
  .brand { width: 176px; }
  .menu-toggle__label { display: none; }
  .app-bar__item { font-size: 0.6rem; letter-spacing: 0.1em; }
}

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

@media (forced-colors: active) {
  .btn, .choice span, .planner__opt b { border: 1px solid CanvasText; }
}

@media print {
  .site-header, .app-bar, .sheet, .site-footer,   body { background: #fff; padding: 0; }
}

/* ------------------------------------------------------------ service areas: corridor map */

.corridor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border-top: 1px solid var(--charcoal); border-bottom: 1px solid var(--rule-light); }
.corridor__map { position: relative; padding: 28px 32px 28px 0; border-right: 1px solid var(--rule-light); }
.corridor__map svg { width: 100%; height: auto; overflow: visible; }
.corridor__road { fill: none; stroke: var(--stone); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.corridor__label-road { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; fill: var(--graphite); }
.corridor__city { cursor: pointer; }
.corridor__city circle { fill: var(--limestone); stroke: var(--charcoal); stroke-width: 1.5; transition: r 0.3s var(--ease), fill 0.3s; }
.corridor__city text { font-family: var(--serif); font-size: 17px; fill: var(--charcoal); transition: fill 0.3s; }
.corridor__city:hover circle, .corridor__city:focus circle, .corridor__city.is-active circle { fill: var(--bronze); r: 8; }
.corridor__city:hover text, .corridor__city:focus text, .corridor__city.is-active text { fill: var(--bronze-ink); }
.corridor__city:focus { outline: none; }
.corridor__city:focus-visible circle { stroke: var(--bronze-ink); stroke-width: 3; }
.corridor__compass { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; fill: var(--graphite); }
.corridor__panel { display: flex; flex-direction: column; justify-content: center; padding: 36px 0 36px 48px; }
.corridor__card[hidden] { display: none; }
.corridor__card { animation: acc-in 0.5s var(--ease) both; }
.corridor__card .eyebrow { justify-content: flex-start; }
.corridor__card .eyebrow::before { display: none; }
.corridor__card h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.05; letter-spacing: 0; text-transform: none; margin: 0 0 18px; }
.corridor__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; border-top: 1px solid var(--rule-light); }
.corridor__facts div { padding: 14px 14px 0 0; }
.corridor__facts div + div { padding-left: 14px; border-left: 1px solid var(--rule-light); }
.corridor__facts dt { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-ink); }
.corridor__facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--charcoal); }

.region-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--charcoal); }
.region-list > div { padding: 22px 22px 18px 0; }
.region-list > div + div { padding-left: 22px; border-left: 1px solid var(--rule-light); }
.region-list h3 { margin-bottom: 12px; }
.region-list ul { list-style: none; margin: 0; padding: 0; }
.region-list li { padding: 5px 0; font-size: 0.98rem; }
.region-list a { font-family: var(--serif); font-size: 1.15rem; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 0.2em; }

/* City page "at a glance" strip */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; margin: clamp(36px, 4vw, 56px) auto 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); background: rgba(26, 26, 26, 0.45); backdrop-filter: blur(4px); }
.glance div { padding: 16px 12px; text-align: center; border-left: 1px solid var(--rule-dark); }
.glance div:first-child { border-left: 0; }
.glance dt { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }
.glance dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.2rem; color: var(--limestone); }

@media (max-width: 1080px) {
  .corridor { grid-template-columns: 1fr; }
  .corridor__map { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule-light); max-width: 520px; margin: 0 auto; width: 100%; }
  .corridor__panel { padding: 28px 0; }
  .region-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .region-list > div:nth-child(n + 3) { border-top: 1px solid var(--rule-light); }
}
@media (max-width: 760px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance div:nth-child(3) { border-left: 0; }
  .glance div:nth-child(n + 3) { border-top: 1px solid var(--rule-dark); }
  .corridor__facts { grid-template-columns: 1fr 1fr 1fr; }
  .corridor__facts dd { font-size: 1.05rem; }
  .region-list { grid-template-columns: 1fr; }
  .region-list > div, .region-list > div + div { padding: 20px 0; border-left: 0; }
  .region-list > div + div { border-top: 1px solid var(--rule-light); }
}

.page-hero__note {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 1; margin: 0;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(232, 225, 214, 0.75) !important;
}
@media (max-width: 760px) { .page-hero__note { left: var(--gutter); right: auto; bottom: 10px; font-size: 0.56rem; } }
