/* =============================================================================
   Magnolia Home Inspections — design system
   Palette sampled directly from the company logo:
   teal #007878 · gold #F0A818 · red #D83018 · wood #906030 · cream #E4D8CC
   ========================================================================== */

/* ------------------------------------------------------------------- tokens */

:root {
  /* brand constants — identical in both themes */
  --brand-teal: #0b8180;
  --brand-teal-deep: #04585f;
  --brand-gold: #f0a818;
  --brand-red: #d83018;
  --brand-wood: #a06e3e;
  --brand-cream: #e8dfd2;

  /* light theme (default) */
  --bg: #f7f2ea;
  --bg-2: #fffdf9;
  --bg-3: #efe7db;
  --bg-inset: #e9e0d2;
  --surface: rgb(255 253 249 / 82%);
  --line: rgb(40 40 41 / 12%);
  --line-2: rgb(40 40 41 / 22%);
  --text: #1f2021;
  --text-2: #4c4a47;
  --text-3: #7a756e;
  --accent: var(--brand-teal);
  --accent-2: #0a6a69;
  --cta: var(--brand-gold);
  --cta-ink: #2a1d05;
  --shadow-sm: 0 1px 2px rgb(31 32 33 / 6%), 0 3px 10px rgb(31 32 33 / 5%);
  --shadow: 0 2px 6px rgb(31 32 33 / 6%), 0 18px 42px -18px rgb(31 32 33 / 22%);
  --shadow-lg: 0 8px 24px rgb(31 32 33 / 8%), 0 40px 80px -30px rgb(31 32 33 / 32%);
  --spot: rgb(11 129 128 / 10%);
  --ring: rgb(11 129 128 / 45%);
  --grid-line: rgb(40 40 41 / 5%);
  --dark-band: #1b1c1d;
  --dark-band-text: #efe8dc;
  --noise-o: 0.028;

  /* type */
  --f-display: 'Bitter', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem);
  --step-5: clamp(2.4rem, 1.75rem + 3.1vw, 4.1rem);

  /* geometry */
  --shell: 1240px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sec-y: clamp(3.75rem, 7vw, 7.5rem);
  --head-h: 68px;
}

[data-theme='dark'] {
  --bg: #1b1c1d;
  --bg-2: #232425;
  --bg-3: #2a2b2c;
  --bg-inset: #151617;
  --surface: rgb(255 255 255 / 4.5%);
  --line: rgb(232 223 210 / 12%);
  --line-2: rgb(232 223 210 / 24%);
  --text: #ede6da;
  --text-2: #b8b1a6;
  --text-3: #8b857c;
  --accent: #3aa9a4;
  --accent-2: #58c2bb;
  --cta: var(--brand-gold);
  --cta-ink: #2a1d05;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 2px 8px rgb(0 0 0 / 34%), 0 24px 50px -22px rgb(0 0 0 / 60%);
  --shadow-lg: 0 10px 30px rgb(0 0 0 / 40%), 0 50px 90px -30px rgb(0 0 0 / 70%);
  --spot: rgb(58 169 164 / 14%);
  --ring: rgb(58 169 164 / 55%);
  --grid-line: rgb(232 223 210 / 4%);
  --dark-band: #121314;
  --dark-band-text: #efe8dc;
  --noise-o: 0.05;
}

/* animatable custom props for the hero lens idle drift */
@property --lx {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}
@property --ly {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}

/* ------------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 18px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain unifies photos and flat colour in both themes */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--noise-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.site-head,
.topbar,
.site-foot {
  position: relative;
  z-index: 1;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

/* Component display rules outrank the UA `[hidden]` rule, so state it louder. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

em {
  font-style: italic;
  color: var(--accent);
}

strong {
  font-weight: 600;
  color: var(--text);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.85rem 0;
}

:focus-visible {
  outline: 2.5px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-gold);
  color: #241905;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap-any {
  overflow-wrap: anywhere;
}

.icon {
  flex: none;
}

.rot-90 {
  transform: rotate(90deg);
}
.rot-270 {
  transform: rotate(-90deg);
}

.skip {
  position: absolute;
  left: 50%;
  top: 6px;
  translate: -50% -200%;
  z-index: 200;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: translate 0.2s;
}
.skip:focus {
  translate: -50% 0;
}

/* ------------------------------------------------------------------ layout */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1.75rem, var(--shell));
  }
}

.sec {
  padding-block: var(--sec-y);
}

.sec + .sec {
  padding-top: 0;
}

/* ------------------------------------------------------- headings & eyebrow */

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow-tick {
  flex: none;
  translate: 0 -0.32em;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
}

.sec-head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow {
  justify-content: center;
}

.sec-title {
  font-size: var(--step-3);
  margin-bottom: 0.35em;
}

.sec-lead {
  font-size: var(--step-1);
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--cta);
  --btn-ink: var(--cta-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: translate 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s, background-color 0.18s,
    border-color 0.18s, color 0.18s;
  box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, var(--shadow-sm);
}

.btn:hover {
  translate: 0 -2px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, var(--shadow);
}

.btn:active {
  translate: 0 0;
}

.btn--primary {
  --btn-bg: var(--cta);
  --btn-ink: var(--cta-ink);
}

.btn--gold {
  --btn-bg: linear-gradient(160deg, #f7bb3c, var(--brand-gold) 60%, #dd9310);
  --btn-ink: #2a1d05;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-ink: var(--text);
  border-color: var(--line-2);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--spot);
  box-shadow: none;
}

.btn--ghost {
  --btn-bg: var(--surface);
  --btn-ink: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn--text {
  --btn-bg: transparent;
  --btn-ink: var(--accent);
  padding: 0.4rem 0;
  box-shadow: none;
  border-radius: 4px;
}

.btn--text .icon {
  transition: translate 0.2s;
}

.btn--text:hover {
  translate: 0;
  box-shadow: none;
}

.btn--text:hover .icon {
  translate: 4px 0;
}

.btn--sm {
  padding: 0.6rem 1rem;
  font-size: var(--step--1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--spot);
}

.icon-btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.chip {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: var(--step--1);
  font-weight: 550;
  cursor: pointer;
  transition: all 0.18s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* -------------------------------------------------------------------- stars */

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--brand-gold);
}

.star {
  fill: currentColor;
  stroke-width: 1.1;
}

/* --------------------------------------------------------- media / blur-up */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  aspect-ratio: var(--ratio, 4 / 3);
  box-shadow: var(--shadow);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.media img.is-loaded,
.gal__item img.is-loaded {
  opacity: 1;
}

.media--tall {
  aspect-ratio: 4 / 5;
}

.media--portrait {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
}

@media (max-width: 700px) {
  .media--tall {
    aspect-ratio: 4 / 3;
  }
}

/* ------------------------------------------------------------------- logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  overflow: visible;
  flex: none;
}

.logo-type {
  display: grid;
  line-height: 1;
}

.logo-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
}

.logo--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.logo--stacked .logo-name {
  font-size: 1.6rem;
}

/* the mark draws itself once on load */
.logo-mark--draw .lm,
.logo-mark--draw .lm-ring,
.logo-mark--draw .lm-handle {
  animation: lm-draw 1.05s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.logo-mark--draw .lm-1 {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.logo-mark--draw .lm-2 {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation-delay: 0.1s;
}
.logo-mark--draw .lm-3 {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation-delay: 0.2s;
}
.logo-mark--draw .lm-ring {
  stroke-dasharray: 164;
  stroke-dashoffset: 164;
  animation-delay: 0.3s;
  animation-duration: 0.85s;
}
.logo-mark--draw .lm-handle {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation-delay: 1s;
  animation-duration: 0.35s;
}

@keyframes lm-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  background: var(--dark-band);
  color: var(--dark-band-text);
  font-size: 0.78rem;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgb(239 232 220 / 72%);
}

.topbar__item .icon {
  color: var(--brand-gold);
}

.topbar__link {
  margin-left: auto;
  transition: color 0.18s;
}

.topbar__link:hover {
  color: #fff;
}

@media (max-width: 1000px) {
  .topbar__item--hours,
  .topbar__link {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
    min-height: 34px;
  }
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.site-head.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgb(0 0 0 / 45%);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--head-h);
}

.site-head__brand {
  flex: none;
  transition: opacity 0.2s;
}

.site-head__brand:hover {
  opacity: 0.82;
}

.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.18s, background-color 0.18s;
}

.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.24rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav__list a:hover {
  color: var(--text);
  background: var(--spot);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current='page']::after {
  scale: 1 1;
}

.site-nav__list a[aria-current='page'] {
  color: var(--text);
}

.site-head__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.theme-toggle .icon {
  position: absolute;
  transition: opacity 0.25s, rotate 0.4s, scale 0.25s;
}

[data-theme='dark'] .theme-toggle__moon,
[data-theme='light'] .theme-toggle__sun {
  opacity: 0;
  rotate: -70deg;
  scale: 0.5;
}

.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.scroll-rail__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  scale: 0 1;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold) 55%, var(--brand-red));
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }
  .site-head__inner {
    justify-content: space-between;
  }
  .site-head__actions {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .site-head__book,
  .theme-toggle {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-head__call span {
    display: none;
  }
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: translate 0.25s, rotate 0.25s, opacity 0.2s;
}

@media (max-width: 1100px) {
  .burger {
    display: flex;
  }
}

body.menu-open .burger span:nth-child(1) {
  translate: 0 7px;
  rotate: 45deg;
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  translate: 0 -7px;
  rotate: -45deg;
}

/* ------------------------------------------------------------------ drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgb(10 10 11 / 55%);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s;
}

.drawer[hidden] {
  display: none;
}

.drawer.is-open {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem 2rem;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  translate: 100% 0;
  transition: translate 0.34s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.drawer.is-open .drawer__panel {
  translate: 0 0;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer__list {
  display: grid;
  gap: 2px;
}

.drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  translate: 0 10px;
}

.drawer.is-open .drawer__list a {
  animation: drawer-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.06s * var(--i) + 0.12s);
}

@keyframes drawer-in {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.drawer__list .icon {
  color: var(--text-3);
  transition: translate 0.2s, color 0.2s;
}

.drawer__list a:hover .icon {
  translate: 4px 0;
  color: var(--accent);
}

.drawer__list a[aria-current='page'] {
  color: var(--accent);
}

.drawer__cta {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.drawer__mail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hero__bg,
.phero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero__glow--teal {
  width: 46vw;
  height: 46vw;
  top: -18vw;
  left: -12vw;
  background: radial-gradient(circle, var(--brand-teal), transparent 68%);
}

.hero__glow--gold {
  width: 40vw;
  height: 40vw;
  bottom: -20vw;
  right: -10vw;
  background: radial-gradient(circle, var(--brand-gold), transparent 68%);
  opacity: 0.32;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 800;
  margin-bottom: 0.5em;
}

.hero__title em {
  position: relative;
  font-style: normal;
  color: var(--text);
  background: linear-gradient(100deg, var(--brand-teal), var(--brand-gold) 55%, var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

.hero__cta {
  margin-bottom: 1.5rem;
}

.hero__chips,
.phero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--step--1);
  color: var(--text-3);
}

.hero__chips li,
.phero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__chips .icon,
.phero__chips .icon {
  color: var(--accent);
}

.hero__visual {
  position: relative;
}

.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: rgb(18 19 20 / 78%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #f0e9dd;
  line-height: 1.25;
}

.hero__badge-k {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(240 233 221 / 62%);
}

.hero__badge-v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-gold);
}

.hero__reviewpill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--step--1);
  color: var(--text-2);
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
  .hero__reviewpill {
    margin-bottom: 0.5rem;
  }
}

/* -------------------------------------------------------- the thermal lens */

.lens-stage {
  position: relative;
  aspect-ratio: var(--ratio, 3 / 2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background-image: var(--lqip);
  background-size: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  cursor: crosshair;
  touch-action: pan-y;
  --lx: 50%;
  --ly: 45%;
  --lr: 170px;
}

.lens-stage__base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s;
}

.lens-stage__base.is-loaded {
  opacity: 1;
}

.lens {
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  width: var(--lr);
  height: var(--lr);
  translate: -50% -50%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s;
  box-shadow: 0 0 0 3px var(--brand-wood), 0 0 0 6px rgb(0 0 0 / 35%),
    0 18px 40px -12px rgb(0 0 0 / 70%), inset 0 0 30px rgb(0 0 0 / 45%);
}

.lens-stage.is-ready .lens {
  opacity: 1;
}

.lens__img,
.lens__heat,
.lens__scan,
.lens__cross {
  position: absolute;
  inset: 0;
}

/* the base photo, re-rendered through a real luminance→ironbow LUT */
.lens__img {
  background-repeat: no-repeat;
  background-size: var(--sw, 100%) var(--sh, 100%);
  background-position: calc(var(--lr) / 2 - var(--px, 0px)) calc(var(--lr) / 2 - var(--py, 0px));
  filter: url(#thermal) contrast(1.08) saturate(1.15);
}

.lens__heat {
  background: radial-gradient(circle at 50% 45%, rgb(255 214 120 / 22%), transparent 62%);
  mix-blend-mode: screen;
}

.lens__scan {
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / 22%) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

.lens__cross::before,
.lens__cross::after {
  content: '';
  position: absolute;
  background: rgb(255 255 255 / 55%);
}

.lens__cross::before {
  left: 50%;
  top: 18%;
  bottom: 18%;
  width: 1px;
  translate: -50% 0;
}

.lens__cross::after {
  top: 50%;
  left: 18%;
  right: 18%;
  height: 1px;
  translate: 0 -50%;
}

.lens-hint {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgb(18 19 20 / 72%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #efe8dc;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  transition: opacity 0.4s;
}

.lens-hint__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 0 rgb(216 48 24 / 70%);
  animation: rec 1.8s ease-out infinite;
}

@keyframes rec {
  70% {
    box-shadow: 0 0 0 9px rgb(216 48 24 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(216 48 24 / 0%);
  }
}

.lens-stage.is-tracking .lens-hint {
  opacity: 0;
}

@media (max-width: 620px) {
  .lens-hint__text {
    display: none;
  }
  .lens-hint {
    padding: 0.45rem;
  }
}

/* -------------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}

.stat {
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  background: var(--bg-2);
  transition: background-color 0.3s;
}

.stat:hover {
  background: var(--bg-3);
}

.stat__label {
  order: 2;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-2);
}

.stat__value {
  margin: 0 0 0.15rem;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(160deg, var(--text), var(--text-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat:nth-child(1) .stat__value {
  background: linear-gradient(160deg, var(--brand-teal), var(--brand-teal-deep));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat:nth-child(2) .stat__value {
  background: linear-gradient(160deg, #f7bb3c, #d89310);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat:nth-child(3) .stat__value {
  background: linear-gradient(160deg, #e8543c, var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat__note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------- brand band */

.band {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.band__link {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: translate 0.3s, box-shadow 0.3s;
}

.band__link:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-lg);
}

.band__link img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s;
}

.band__link img.is-loaded {
  opacity: 1;
}

/* ----------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: slide 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--text-3);
  white-space: nowrap;
}

.marquee__track .icon {
  color: var(--accent);
}

@keyframes slide {
  to {
    translate: -50% 0;
  }
}

/* ------------------------------------------------------------------- intro */

.intro__grid,
.report__grid,
.owner__grid,
.local__grid,
.citybody__grid,
.faq__grid,
.book__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.intro__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.intro__media {
  position: relative;
}

.intro__stat {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  display: grid;
  gap: 0.15rem;
  max-width: 15rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro__stat-v {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-teal);
}

.intro__stat-k {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
}

.ticklist {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

.ticklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--text-2);
}

.ticklist .icon {
  margin-top: 0.32em;
  padding: 2px;
  border-radius: 50%;
  background: var(--spot);
  color: var(--accent);
  stroke-width: 2.6;
}

@media (max-width: 900px) {
  .intro__grid,
  .report__grid,
  .owner__grid,
  .local__grid,
  .citybody__grid,
  .faq__grid,
  .book__grid {
    grid-template-columns: 1fr;
  }
  .intro__stat {
    left: 1rem;
  }
}

/* ---------------------------------------------------------------- systems */

.systems__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.systems__aside {
  position: sticky;
  top: calc(var(--head-h) + 2rem);
}

.systems__panel {
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--bg-2), var(--bg));
  box-shadow: var(--shadow-sm);
}

.systems__count {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0 0 0.5rem;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.systems__count [data-sys-index] {
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.systems__count-sep {
  opacity: 0.5;
}

.systems__now {
  font-size: var(--step-2);
  margin-bottom: 0.4em;
  min-height: 1.2em;
}

.systems__now-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-3);
  border-left: 2px solid var(--line-2);
  padding-left: 0.85rem;
}

.systems__rail {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.systems__rail-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.25s;
}

.systems__rail-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s, scale 0.3s;
}

.systems__rail-item.is-active {
  color: var(--text);
  font-weight: 600;
}

.systems__rail-item.is-active .systems__rail-dot {
  background: var(--accent);
  border-color: var(--accent);
  scale: 1.25;
  box-shadow: 0 0 0 4px var(--spot);
}

.systems__rail-item.is-done .systems__rail-dot {
  background: var(--line-2);
  border-color: transparent;
}

.systems__list {
  display: grid;
  gap: 1rem;
}

.sys {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  opacity: 0.55;
  transition: opacity 0.4s, border-color 0.4s, translate 0.4s, box-shadow 0.4s;
}

.sys.is-active {
  opacity: 1;
  border-color: var(--sys-c, var(--accent));
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--sys-c, var(--accent)) 10%, transparent);
}

.sys--teal {
  --sys-c: var(--brand-teal);
}
.sys--gold {
  --sys-c: var(--brand-gold);
}
.sys--red {
  --sys-c: var(--brand-red);
}

.sys__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.sys__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--sys-c);
  background: color-mix(in srgb, var(--sys-c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sys-c) 26%, transparent);
}

.sys__no {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--line-2);
  font-variant-numeric: tabular-nums;
}

.sys__name {
  font-size: var(--step-1);
  margin-bottom: 0.35em;
}

.sys__text {
  color: var(--text-2);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.sys__findings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sys__findings li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  font-size: 0.76rem;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .systems__grid {
    grid-template-columns: 1fr;
  }
  .systems__aside {
    position: static;
  }
  .systems__panel {
    display: none;
  }
  .sys {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------- services */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}

/* pointer-tracked spotlight — set by JS via --mx/--my */
[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--svc-c, var(--accent)) 16%, transparent),
    transparent 70%
  );
}

[data-spotlight]:hover::before {
  opacity: 1;
}

.svc:hover,
.city:hover,
.val:hover,
.addon:hover {
  translate: 0 -3px;
  border-color: color-mix(in srgb, var(--svc-c, var(--accent)) 45%, var(--line));
  box-shadow: var(--shadow);
}

.svc--teal {
  --svc-c: var(--brand-teal);
}
.svc--gold {
  --svc-c: var(--brand-gold);
}
.svc--red {
  --svc-c: var(--brand-red);
}

.svc__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  color: var(--svc-c);
  background: color-mix(in srgb, var(--svc-c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-c) 26%, transparent);
  transition: scale 0.3s, rotate 0.3s;
}

.svc:hover .svc__icon {
  scale: 1.06;
  rotate: -4deg;
}

.svc__name {
  position: relative;
  font-size: var(--step-1);
  margin-bottom: 0.3em;
}

.svc__short {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--svc-c);
}

.svc__summary {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-2);
}

.svc__bullets {
  position: relative;
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.svc__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.85rem;
  color: var(--text-3);
}

.svc__bullets .icon {
  margin-top: 0.3em;
  color: var(--svc-c);
  stroke-width: 2.8;
}

.svc__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.svc__link .icon {
  transition: translate 0.25s;
}

.svc:hover .svc__link .icon {
  translate: 5px 0;
}

.services__more,
.gal-sec__more,
.reviews__more,
.review-wall__foot,
.nearby__foot,
.videos__foot {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* ------------------------------------------------------------------ addons */

.addons__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--bg-2), var(--bg) 65%);
}

.addons__inner .sec-head {
  margin-bottom: 1.5rem;
}

.addons__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.85rem;
}

.addon {
  position: relative;
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}

.addon__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  color: var(--accent);
  background: var(--spot);
}

.addon h3 {
  font-size: 0.98rem;
  margin-bottom: 0.25em;
}

.addon p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .addons__inner {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------- process */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--r) var(--r);
  background: var(--bg-2);
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.6s, translate 0.6s;
}

.step.is-in {
  opacity: 1;
  translate: 0 0;
}

.steps .step:nth-child(2) {
  border-top-color: var(--brand-gold);
  transition-delay: 0.08s;
}
.steps .step:nth-child(3) {
  border-top-color: var(--brand-red);
  transition-delay: 0.16s;
}
.steps .step:nth-child(4) {
  border-top-color: var(--brand-wood);
  transition-delay: 0.24s;
}

.step__no {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.step__name {
  font-size: var(--step-1);
  margin: 0.4rem 0 0.5rem;
}

.step__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ report */

.report__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.report__features {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.report__features h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.2em;
}

.report__features .icon {
  padding: 2px;
  border-radius: 50%;
  background: var(--spot);
  color: var(--accent);
  stroke-width: 2.8;
}

.report__features p {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-3);
}

.severity {
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
}

.severity__k {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.severity__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.severity__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.severity__item span {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.severity__item--info span {
  background: var(--brand-teal);
}
.severity__item--warn span {
  background: var(--brand-gold);
}
.severity__item--bad span {
  background: var(--brand-red);
}

.report__phones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  align-items: center;
  padding-block: 1rem;
}

.report__phone .media {
  border-radius: 22px;
  border: 6px solid var(--bg-3);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1024 / 1536;
}

.report__phone--back {
  translate: 12% 0;
  rotate: 5deg;
  scale: 0.86;
  opacity: 0.9;
}

.report__phone--front {
  position: relative;
  z-index: 2;
  rotate: -3deg;
}

@media (max-width: 900px) {
  .report__grid {
    grid-template-columns: 1fr;
  }
  .report__phones {
    max-width: 460px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------- radar map */

.area__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.radar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 50%, var(--bg-2), var(--bg-inset) 78%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.radar svg {
  width: 100%;
  height: auto;
}

.radar__grid line {
  stroke: var(--line);
  stroke-width: 1.4;
  stroke-dasharray: 5 9;
}

.radar__ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
}

.radar__ring:last-of-type {
  stroke: color-mix(in srgb, var(--accent) 45%, transparent);
  stroke-dasharray: 3 7;
}

.radar__ring-label {
  fill: var(--text-3);
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.08em;
}

.radar__sweep path {
  fill: url(#sweepGrad);
  transform-origin: 500px 500px;
  animation: sweep 9s linear infinite;
}

[data-theme='light'] .radar__sweep {
  opacity: 0.6;
}

@keyframes sweep {
  to {
    rotate: 360deg;
  }
}

.pin,
.hq {
  cursor: pointer;
}

.pin__halo,
.pin__dot,
.hq__pulse {
  transform-box: fill-box;
  transform-origin: center;
}

.pin__halo {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
  scale: 0.4;
  opacity: 0;
  transition: scale 0.3s, opacity 0.3s;
}

.pin__dot {
  fill: var(--accent);
  stroke: var(--bg-2);
  stroke-width: 3.5;
  transition: fill 0.25s, scale 0.25s, stroke 0.25s;
}

.pin__label {
  fill: var(--text-2);
  font-family: var(--f-body);
  font-size: 23px;
  font-weight: 600;
  text-anchor: middle;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.25s, translate 0.25s;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.pin:hover .pin__label,
.pin:focus-visible .pin__label,
.pin.is-hot .pin__label,
.pin.is-active .pin__label {
  opacity: 1;
  translate: 0 0;
}

.pin:hover .pin__halo,
.pin.is-hot .pin__halo,
.pin.is-active .pin__halo {
  scale: 1;
  opacity: 1;
}

.pin:hover .pin__dot,
.pin.is-hot .pin__dot,
.pin.is-active .pin__dot {
  fill: var(--brand-gold);
  scale: 1.3;
}

.pin.is-active .pin__dot {
  stroke: var(--brand-gold);
  fill: var(--brand-gold);
}

.pin.is-dim {
  opacity: 0.18;
}

.pin {
  transition: opacity 0.25s;
}

.hq__dot {
  fill: var(--brand-red);
  stroke: var(--bg);
  stroke-width: 3.5;
}

.hq__pulse {
  fill: none;
  stroke: var(--brand-red);
  stroke-width: 2.5;
  animation: hq 2.8s ease-out infinite;
}

@keyframes hq {
  0% {
    scale: 0.6;
    opacity: 0.85;
  }
  100% {
    scale: 2.4;
    opacity: 0;
  }
}

.hq__label {
  fill: var(--text);
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 7px;
  stroke-linejoin: round;
}

.hq__sub {
  fill: var(--text-3);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-anchor: middle;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- area list */

.area__panel {
  display: grid;
  gap: 0.85rem;
}

.area__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.area__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--spot);
}

.area__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 0.95rem;
}

.area__search input::-webkit-search-cancel-button {
  filter: grayscale(1);
}

.area__list {
  display: grid;
  gap: 2px;
  max-height: 26rem;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.area-row a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.area-row a:hover,
.area-row.is-hot a {
  background: var(--bg-2);
  border-color: var(--line);
}

.area-row.is-active a {
  background: var(--spot);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.area-row__name {
  display: grid;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.area-row__parish {
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-3);
}

.area-row__miles {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.area-row .icon {
  color: var(--text-3);
  transition: translate 0.2s, color 0.2s;
}

.area-row a:hover .icon {
  translate: 4px 0;
  color: var(--accent);
}

.area-row[hidden] {
  display: none;
}

.area__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--spot);
  font-size: 0.88rem;
  color: var(--text-2);
}

.area__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-3);
}

.area__foot p {
  margin: 0;
}

@media (max-width: 900px) {
  .area__grid {
    grid-template-columns: 1fr;
  }
  .area__list {
    max-height: none;
  }
}

/* ------------------------------------------------------------------- owner */

.owner__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.owner__media {
  position: relative;
}

/* Copy-only variant: no portrait column, so keep the measure readable rather
   than letting the paragraphs run the full shell width. */
.owner__grid--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 78ch;
}

/* Two headshots side by side. The name sits under the photo rather than over
   it — an overlay label lands on the subject's face at this size. */
.owner__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.owner__person {
  margin: 0;
}

.media--headshot {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
}

.owner__tag {
  display: grid;
  gap: 1px;
  padding: 0.6rem 0.2rem 0;
  text-align: center;
}

.owner__tag-n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}

.owner__tag-r {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pledge {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.35rem 1.5rem 1.35rem 3.75rem;
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface);
}

.pledge .icon {
  position: absolute;
  left: 1.15rem;
  top: 1.25rem;
  color: var(--brand-gold);
  fill: currentColor;
  stroke: none;
  opacity: 0.85;
}

.pledge p {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .owner__media {
    max-width: 460px;
  }
}

/* -------------------------------------------------------------------- team */

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  max-width: 940px;
  margin-inline: auto;
}

.team-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  transition: border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  translate: 0 -3px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

.team__photo {
  border-radius: var(--r);
}

.team__photo--mono {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--brand-teal-deep), var(--brand-teal));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.team__mono {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  color: var(--brand-cream);
}

.team-card__name {
  margin: 0;
  font-size: 1.18rem;
}

.team-card__role {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.team-card__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.team-card__creds li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--spot);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.team-card__creds .icon {
  color: var(--accent);
  flex: none;
}

.team-card__text {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.team__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-3);
}

.team__foot .icon {
  color: var(--brand-gold);
  flex: none;
}

@media (max-width: 560px) {
  .team-card {
    grid-template-columns: 1fr;
  }
  .team__photo {
    max-width: 180px;
  }
}

/* ----------------------------------------------------------------- reviews */

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.reviews__head .sec-head {
  margin-bottom: 0;
  flex: 1 1 30ch;
}

.reviews__score {
  display: grid;
  justify-items: start;
  gap: 0.3rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  transition: border-color 0.25s, translate 0.25s;
}

.reviews__score:hover {
  border-color: var(--brand-gold);
  translate: 0 -2px;
}

.reviews__score-n {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-gold);
}

.reviews__score-k {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.reviews__rail-wrap {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.reviews__rail {
  display: flex;
  gap: 1rem;
  padding: 0.5rem max(1.25rem, calc(50vw - var(--shell) / 2)) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.reviews__rail::-webkit-scrollbar {
  display: none;
}

.review {
  flex: 0 0 min(88vw, 400px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  transition: border-color 0.25s, translate 0.25s, box-shadow 0.25s;
}

.review:hover {
  border-color: var(--line-2);
  translate: 0 -3px;
  box-shadow: var(--shadow);
}

.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
}

.review__badge .icon {
  fill: currentColor;
  stroke: none;
}

.review__highlight {
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.review__text {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review__foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-teal), var(--brand-teal-deep));
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.review__who {
  display: grid;
  line-height: 1.3;
}

.review__who span {
  font-size: 0.76rem;
  color: var(--text-3);
}

.rail-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.rail-nav__bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.rail-nav__bar span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
  transition: translate 0.3s ease, width 0.3s;
}

/* ------------------------------------------------------------------ videos */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
}

.video-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.video-card__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-inset);
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.video-card__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s, filter 0.4s;
}

.video-card__btn:hover img {
  scale: 1.04;
  filter: brightness(0.85);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 60%));
  transition: scale 0.3s;
}

.video-card__btn:hover .video-card__play {
  scale: 1.12;
}

.video-card__label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgb(18 19 20 / 75%);
  color: #efe8dc;
  font-size: 0.72rem;
  font-weight: 600;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
}

/* --------------------------------------------------------------------- faq */

.faq__grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--head-h) + 2rem);
}

.faq__card {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
}

.faq__card-k {
  margin: 0;
  font-size: 0.75rem
  ;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.faq__card-tel {
  display: block;
  margin: 0.2rem 0 0.35rem;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s;
}

.faq__card-tel:hover {
  color: var(--accent);
}

.faq__card-n {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.faq__card-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-2);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  width: 100%;
}

.faq__list {
  display: grid;
  gap: 0.6rem;
}

.qa {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s, background-color 0.25s;
}

.qa[open] {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--bg-2);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 700;
  transition: color 0.2s;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  color: var(--accent);
}

.qa__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-3);
  transition: rotate 0.3s, background-color 0.25s, color 0.25s, border-color 0.25s;
}

.qa[open] .qa__mark {
  rotate: 180deg;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.qa__body {
  padding: 0 1.3rem 1.2rem;
}

.qa__body p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.93rem;
  max-width: 68ch;
}

/* animate the disclosure when the browser supports it */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .qa::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.35s allow-discrete;
  }
  .qa[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 900px) {
  .faq__intro {
    position: static;
  }
}

/* ----------------------------------------------------------------- gallery */

.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gal {
  columns: 4;
  column-gap: 0.85rem;
}

.gal__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background-image: var(--lqip);
  background-size: cover;
  cursor: zoom-in;
  break-inside: avoid;
  transition: border-color 0.25s, translate 0.3s, box-shadow 0.3s, opacity 0.3s, scale 0.3s;
}

.gal__item img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s, scale 0.5s;
}

.gal__item:hover {
  border-color: var(--accent);
  translate: 0 -3px;
  box-shadow: var(--shadow);
}

.gal__item:hover img {
  scale: 1.05;
}

.gal__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgb(12 13 14 / 88%));
  color: #f0e9dd;
  font-size: 0.78rem;
  font-weight: 550;
  text-align: left;
  line-height: 1.35;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.3s, translate 0.3s;
}

.gal__item:hover .gal__cap,
.gal__item:focus-visible .gal__cap {
  opacity: 1;
  translate: 0 0;
}

.gal__zoom {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(18 19 20 / 72%);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.25s, scale 0.25s;
}

.gal__item:hover .gal__zoom {
  opacity: 1;
  scale: 1;
}

.gal__item.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .gal {
    columns: 3;
  }
}

@media (max-width: 700px) {
  .gal {
    columns: 2;
    column-gap: 0.6rem;
  }
  .gal__item {
    margin-bottom: 0.6rem;
  }
}

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgb(10 10 11 / 92%);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__bar {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #efe8dc;
}

.lightbox__count {
  margin: 0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.lightbox .icon-btn {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 18%);
  color: #efe8dc;
}

.lightbox .icon-btn:hover {
  background: rgb(255 255 255 / 16%);
  color: #fff;
  border-color: #fff;
}

.lightbox__fig {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  min-width: 0;
}

.lightbox__fig img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  border-radius: var(--r);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 80%);
  animation: lb-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lb-in {
  from {
    opacity: 0;
    scale: 0.96;
  }
}

.lightbox__fig figcaption {
  color: rgb(239 232 220 / 78%);
  font-size: 0.88rem;
  text-align: center;
  max-width: 60ch;
}

@media (max-width: 700px) {
  .lightbox {
    grid-template-columns: 1fr;
  }
  .lightbox__nav {
    position: absolute;
    bottom: 1.25rem;
  }
  .lightbox__nav--prev {
    left: 25%;
  }
  .lightbox__nav--next {
    right: 25%;
  }
}

/* --------------------------------------------------------------- page hero */

.phero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.25rem, 4vw, 3.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.phero__inner {
  position: relative;
  max-width: 78ch;
}

.phero__title {
  font-size: var(--step-4);
  font-weight: 800;
}

.phero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-teal), var(--brand-gold) 60%, var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phero__lead {
  font-size: var(--step-1);
  color: var(--text-2);
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.phero__chips {
  margin-top: 1.5rem;
}

.crumbs {
  margin-bottom: 1.25rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs .icon {
  opacity: 0.5;
}

/* ---------------------------------------------------------------- cta band */

.cta-band {
  position: relative;
  margin-top: var(--sec-y);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  background: var(--dark-band);
  color: var(--dark-band-text);
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 12% 0%, rgb(11 129 128 / 30%), transparent 60%),
    radial-gradient(60% 110% at 90% 100%, rgb(240 168 24 / 22%), transparent 60%);
}

.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-band h2 {
  font-size: var(--step-3);
  color: #fff;
}

.cta-band .eyebrow {
  color: rgb(239 232 220 / 55%);
}

.cta-band__lead {
  font-size: var(--step-1);
  color: rgb(239 232 220 / 78%);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.cta-band .btn--outline {
  --btn-ink: #efe8dc;
  border-color: rgb(255 255 255 / 26%);
}

.cta-band .btn--outline:hover {
  --btn-ink: #fff;
  border-color: #fff;
  background: rgb(255 255 255 / 8%);
}

.cta-band__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: rgb(239 232 220 / 55%);
}

.cta-band__card {
  display: grid;
  gap: 0.85rem;
}

.mini-card {
  padding: 1.1rem 1.3rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--r);
  background: rgb(255 255 255 / 5%);
  backdrop-filter: blur(6px);
}

.mini-card__k {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(239 232 220 / 55%);
}

.mini-card__v {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.mini-card__n {
  margin: 0;
  font-size: 0.82rem;
  color: rgb(239 232 220 / 68%);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1fr;
  }
}

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

.site-foot {
  background: var(--bg-inset);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9rem;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
}

.site-foot__blurb {
  color: var(--text-3);
  max-width: 34ch;
  margin: 1.25rem 0 1rem;
  font-size: 0.86rem;
}

.site-foot__lic {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-2);
}

.site-foot__lic .icon {
  color: var(--brand-gold);
}

.site-foot__social {
  display: flex;
  gap: 0.6rem;
}

.site-foot__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: all 0.2s;
}

.site-foot__social .icon {
  fill: currentColor;
  stroke: none;
}

.site-foot__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--spot);
  translate: 0 -2px;
}

.site-foot__h {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.site-foot__list {
  display: grid;
  gap: 0.55rem;
}

.site-foot__list a,
.site-foot__list span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.88rem;
  transition: color 0.18s, translate 0.18s;
}

.site-foot__list a:hover {
  color: var(--accent);
  translate: 3px 0;
}

.site-foot__list .icon {
  color: var(--text-3);
}

.site-foot__hours {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.site-foot__hours p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.site-foot__hours span:first-child {
  color: var(--text-2);
}

.site-foot__areas {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.site-foot__arealist {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.9;
}

.site-foot__arealist a {
  color: var(--text-3);
  transition: color 0.18s;
}

.site-foot__arealist a:hover {
  color: var(--accent);
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-3);
}

.site-foot__bottom p {
  margin: 0;
}

.site-foot__bottom a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-foot__grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- mobile dock */

.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  gap: 1px;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  translate: 0 110%;
  transition: translate 0.35s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.dock.is-up {
  translate: 0 0;
}

.dock a {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0.45rem 0.25rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
}

.dock__ico {
  display: grid;
  place-items: center;
  color: var(--text);
}

/* `.dock a` would otherwise win on specificity and leave low-contrast text
   sitting on the gold fill. */
.dock a.dock__primary {
  background: var(--cta);
  color: var(--cta-ink);
}

.dock a.dock__primary .dock__ico {
  color: var(--cta-ink);
}

@media (max-width: 760px) {
  .dock {
    display: flex;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

/* ================================================================== pages */

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

.vals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.val {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}

.val__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 13px;
  color: var(--accent);
  background: var(--spot);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.val h3 {
  position: relative;
  font-size: 1.08rem;
}

.val p {
  position: relative;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.local__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.local__media {
  position: relative;
}

.local__cap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.local__cap .icon {
  color: var(--brand-red);
}

/* -------------------------------------------------------------- services */

.sdetails {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-top: var(--sec-y);
}

.sdetail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  scroll-margin-top: calc(var(--head-h) + 2rem);
}

.sdetail--flip {
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
}

.sdetail--flip .sdetail__copy {
  order: 2;
}

.sdetail--teal {
  --sd-c: var(--brand-teal);
}
.sdetail--gold {
  --sd-c: var(--brand-gold);
}
.sdetail--red {
  --sd-c: var(--brand-red);
}

.sdetail__no {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--sd-c);
}

.sdetail__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 15px;
  color: var(--sd-c);
  background: color-mix(in srgb, var(--sd-c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sd-c) 26%, transparent);
}

.sdetail__name {
  font-size: var(--step-3);
}

.sdetail__short {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--sd-c);
  margin-bottom: 1rem;
}

.sdetail__copy > p {
  color: var(--text-2);
  max-width: 66ch;
}

.sdetail__bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sdetail__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--text-2);
}

.sdetail__bullets .icon {
  margin-top: 0.3em;
  color: var(--sd-c);
  stroke-width: 2.8;
}

.sdetail__card {
  position: sticky;
  top: calc(var(--head-h) + 2rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sd-c);
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.sdetail__card-k {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.sdetail__card-v {
  margin: 0.1rem 0 0;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.sdetail__card-n {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .sdetail {
    grid-template-columns: 1fr;
  }
  .sdetail--flip .sdetail__copy {
    order: 0;
  }
  .sdetail__card {
    position: static;
  }
}

/* ---------------------------------------------------------- service areas */

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
}

.city {
  position: relative;
  display: grid;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}

.city__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.city__pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-red) 22%, transparent);
}

.city__miles {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.city__name {
  position: relative;
  font-size: 1.12rem;
  margin-bottom: 0.15em;
}

.city__parish {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.city__blurb {
  position: relative;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-3);
}

.city__go {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  color: var(--text-3);
  opacity: 0;
  translate: -6px 0;
  transition: opacity 0.25s, translate 0.25s;
}

.city:hover .city__go {
  opacity: 1;
  translate: 0 0;
  color: var(--accent);
}

/* ---------------------------------------------------------------- reviews */

.score-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--bg-2), var(--bg) 70%);
}

.score-band__big {
  text-align: center;
}

.score-band__n {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--brand-gold);
}

.score-band__big p {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
  max-width: 18ch;
  margin-inline: auto;
}

.score-band__themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.1rem;
}

.score-band__themes li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

.score-band__themes .icon {
  margin-top: 0.2em;
  color: var(--accent);
}

.score-band__themes h3 {
  font-size: 0.98rem;
  margin-bottom: 0.15em;
}

.score-band__themes p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-3);
}

.score-band__cta {
  display: grid;
  gap: 0.6rem;
}

.score-band__cta .media {
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.score-band__cta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.review-wall {
  columns: 3;
  column-gap: 1rem;
}

.review-wall .review {
  break-inside: avoid;
  margin-bottom: 1rem;
  flex: none;
  display: block;
}

.review-wall .review__text {
  display: block;
  -webkit-line-clamp: none;
}

@media (max-width: 1000px) {
  .score-band {
    grid-template-columns: auto 1fr;
  }
  .score-band__cta {
    grid-column: 1 / -1;
    max-width: 420px;
  }
  .review-wall {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .score-band {
    grid-template-columns: 1fr;
  }
  .review-wall {
    columns: 1;
  }
}

/* --------------------------------------------------------------- schedule */

.book__grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.ways {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.way {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}

.way--primary {
  border-color: color-mix(in srgb, var(--brand-gold) 45%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-gold) 8%, var(--bg-2)), var(--bg-2));
}

.way__no {
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding-top: 0.35rem;
}

.way h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3em;
}

.way p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 0.9rem;
}

.way__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.book__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
}

.book__note .icon {
  color: var(--brand-teal);
  margin-top: 0.2em;
}

.book__note p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-2);
}

.bform {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.bform__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.bform__k {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.bform__steps {
  display: flex;
  gap: 0.4rem;
}

.bform__steps li {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  transition: all 0.25s;
}

.bform__steps li.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.bform__steps li.is-done {
  background: var(--line-2);
  border-color: transparent;
  color: var(--text);
}

.bstep {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  animation: step-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bstep.is-active {
  display: grid;
  gap: 1.1rem;
}

@keyframes step-in {
  from {
    opacity: 0;
    translate: 12px 0;
  }
}

.bstep legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-family: var(--f-display);
  font-size: var(--step-2);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b857c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--spot);
}

.field input[aria-invalid='true'] {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-red) 14%, transparent);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.radios,
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio,
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.radio input,
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio:hover,
.check:hover {
  border-color: var(--accent);
}

.radio:has(input:checked),
.check:has(input:checked) {
  background: var(--spot);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.radio:has(input:focus-visible),
.check:has(input:focus-visible) {
  outline: 2.5px solid var(--ring);
  outline-offset: 2px;
}

.bform__nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.bform__nav .btn:last-child {
  margin-left: auto;
}

.bform__fine,
.bform__alt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.bform__alt {
  margin-top: 1rem;
  text-align: center;
}

.bform__alt a {
  color: var(--accent);
  font-weight: 600;
}

.bform__done {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 40%, var(--line));
  border-radius: var(--r-xl);
  background: var(--bg-2);
  text-align: center;
}

.bform__done-ico {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--spot);
  color: var(--accent);
  stroke-width: 2.4;
}

.bform__done h3 {
  font-size: var(--step-2);
}

.bform__done p {
  color: var(--text-2);
  max-width: 46ch;
  margin-inline: auto;
}

.bform__done .btn-row {
  justify-content: center;
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------- city pages */

.citybody__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
}

.citybody__aside {
  position: sticky;
  top: calc(var(--head-h) + 2rem);
  display: grid;
  gap: 1rem;
}

.cityfacts {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
}

.cityfacts__h {
  font-size: 1.12rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cityfacts dl {
  display: grid;
  gap: 0.7rem;
}

.cityfacts dl div {
  display: grid;
  gap: 0.1rem;
}

.cityfacts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cityfacts dd {
  font-size: 0.9rem;
  color: var(--text-2);
}

.cityfacts__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  transition: translate 0.2s;
}

.cityfacts__cta:hover {
  translate: 0 -2px;
}

.cityfacts__cap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.cityfacts__cap .icon {
  color: var(--brand-red);
}

@media (max-width: 900px) {
  .citybody__aside {
    position: static;
  }
}

.nearby__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nearby__list a {
  display: block;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-2);
  transition: all 0.2s;
}

.nearby__list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--spot);
  translate: 0 -2px;
}

/* -------------------------------------------------------------------- 404 */

.e404__inner {
  max-width: 60ch;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.e404__code {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(140deg, var(--brand-teal), var(--brand-gold) 55%, var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.e404 h1 {
  font-size: var(--step-3);
  margin-top: 1rem;
}

.e404__lead {
  font-size: var(--step-1);
  color: var(--text-2);
  margin-bottom: 1.75rem;
}

.e404__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.e404__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 550;
  transition: all 0.2s;
}

.e404__links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--spot);
}

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

/*
 * Several of these grids declare their column template in their own page
 * section further down this file, which meant a same-specificity rule beat the
 * shared max-width block by source order and the layout stayed two-up on a
 * phone. Collapsing them here — last in the file — is what actually sticks.
 */
@media (max-width: 900px) {
  .intro__grid,
  .report__grid,
  .owner__grid,
  .local__grid,
  .citybody__grid,
  .faq__grid,
  .book__grid,
  .area__grid,
  .addons__inner,
  .systems__grid,
  .cta-band__inner,
  .sdetail,
  .sdetail--flip,
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .score-band,
  .grid-2,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

[data-reveal] {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.7s, translate 0.7s;
}

[data-reveal].is-in {
  opacity: 1;
  translate: 0 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;
  }
  .lens {
    animation: none;
    --lx: 50%;
    --ly: 45%;
  }
  [data-reveal],
  .step,
  .sys {
    opacity: 1 !important;
    translate: none !important;
  }
  .drawer__list a {
    opacity: 1;
    translate: none;
  }
}

@media print {
  .topbar,
  .site-head,
  .dock,
  .drawer,
  .marquee,
  .lightbox,
  .cta-band__card,
  .radar__sweep {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
