/* Site styles. Every value comes from tokens.css. */

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

html { scroll-padding-top: calc(var(--header-h) + var(--s-4)); }

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-2xl); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--t-lg); font-weight: var(--w-bold); line-height: var(--lh-snug); }

p { margin: 0; }
p + p { margin-top: var(--s-4); }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: calc(var(--s-10) * -1);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--c-brand);
  color: var(--c-on-brand);
  font-weight: var(--w-bold);
}
.skip-link:focus { top: var(--s-4); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  font-size: var(--t-lg);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}

/* Link with a trailing arrow that slides on hover (after the reference site's linkArrow). */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--tap);
  color: var(--c-brand-text);
  font-weight: var(--w-bold);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.text-link::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.text-link:hover,
.text-link:focus-visible { color: var(--c-text); text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover::after,
.text-link:focus-visible::after { transform: translateX(var(--nudge)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: var(--s-3) var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn--primary:hover { background: var(--c-brand-hover); }
.btn--ghost { border-color: var(--c-text); color: var(--c-text); }
.btn--ghost:hover { background: var(--c-text); color: var(--c-ink); }
.btn--dark { background: var(--c-ink-deep); color: var(--c-text); }
.btn--dark:hover { background: var(--c-ink); }
.btn--lg { padding: var(--s-4) var(--s-6); font-size: var(--t-lg); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-header-bg);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  min-height: var(--tap);
  justify-content: center;
  margin-right: auto;
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark small {
  margin-top: var(--s-1);
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0;
  color: var(--c-text-muted);
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-3);
  font-weight: var(--w-medium);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.nav__link { gap: var(--s-1); transition: color var(--dur) var(--ease); }
.nav__link:hover { color: var(--c-brand-text); }
.nav__caret { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.nav__item--has-sub:hover .nav__caret,
.nav__item--has-sub:focus-within .nav__caret { transform: rotate(180deg); }
.nav__link[aria-current] {
  color: var(--c-brand-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav__item--has-sub { position: relative; }
.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  margin: 0;
  padding: var(--s-2);
  list-style: none;
  background: var(--c-ink-raised);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  visibility: hidden;
  opacity: 0;
  transform: translateY(var(--s-4));
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.nav__sub a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.nav__sub a { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav__sub a:hover { background: var(--c-ink); color: var(--c-brand-text); }

.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  font-weight: var(--w-bold);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--c-brand-text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: var(--s-1); width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-actions .btn { display: none; }
}

@media (max-width: 900px) {
  .site-header__inner { gap: var(--s-2); }
  .nav-toggle { display: inline-flex; }
  .header-phone__number { display: none; }
  .header-phone {
    justify-content: center;
    width: var(--tap);
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: var(--c-ink-deep);
  }
  /* With JS the menu slides in from the right; without JS it stays hidden (footer nav remains). */
  .js .nav {
    display: block;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform var(--dur) var(--ease);
  }
  .nav__caret { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; padding: 0; font-size: var(--t-lg); }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 var(--s-2) var(--s-4);
    background: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav__sub a { padding: 0; color: var(--c-text-muted); }
  .nav__cta { margin-top: var(--s-4); }
}
@media (min-width: 901px) {
  .nav__cta { display: none; }
}

/* ---------- Hero (full-bleed photo with overlay) ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: var(--hero-min);
  padding-block: var(--s-9);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-overlay);
}
.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-5);
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--s-8);
  height: var(--s-8);
  padding: 0;
  border: 2px solid var(--c-text);
  border-radius: var(--r-pill);
  background: var(--c-control-bg);
  color: var(--c-text);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.video-toggle svg { width: 22px; height: 22px; }
.video-toggle .icon-play,
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle:hover { background: var(--c-text); color: var(--c-ink); }
/* Shown on hover like the reference; always shown on touch screens, when focused, or when paused. */
.hero:hover .video-toggle,
.media-video:hover .video-toggle,
.video-toggle:focus-visible,
.video-toggle[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .video-toggle { opacity: 1; } }
html:not(.js) .video-toggle { display: none; }
.media-video { position: relative; }
.media-video .video-toggle { right: var(--s-4); bottom: var(--s-4); width: var(--tap); height: var(--tap); }
.media-video .video-toggle svg { width: 18px; height: 18px; }

.hero__content {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero__sub {
  margin-top: var(--s-5);
  font-size: var(--t-xl);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
  padding-block: var(--s-9) var(--s-8);
  background: var(--c-ink-deep);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 60ch; margin-top: var(--s-5); }
.breadcrumb {
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--c-text-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--c-brand-text); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--raised { background: var(--c-ink-raised); }
.section--light { background: var(--c-paper); color: var(--c-text-dark); }
.section--light .lede,
.section--light .muted { color: var(--c-text-dark-muted); }
.section--light .text-link { color: var(--c-text-dark); }
.section--light .text-link:hover { color: var(--c-text-dark-muted); }

.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head .lede { margin-top: var(--s-4); }
.muted { color: var(--c-text-muted); }

/* ---------- Intro + credential strip ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.intro__statement {
  font-size: var(--t-xl);
  line-height: var(--lh-snug);
  font-weight: var(--w-medium);
}
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}
.facts li {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}
.facts strong { font-size: var(--t-xl); font-weight: var(--w-black); color: var(--c-brand-text); line-height: var(--lh-snug); }
.facts span { color: var(--c-text-muted); }

/* ---------- Audience columns (property types) ---------- */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.audience {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 4px solid var(--c-brand);
  cursor: pointer;
}
.audience p { color: var(--c-text-muted); flex: 1; }
.audience__head { display: flex; align-items: center; gap: var(--s-5); }
.audience h3 { transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
/* The card's link covers the whole card, so the full card is clickable. */
.audience .text-link::before { content: ""; position: absolute; inset: 0; }

/* Line icon that redraws itself and hops when its card is hovered or focused. */
.line-icon {
  flex: none;
  width: var(--icon-lg);
  height: var(--icon-lg);
  color: var(--c-brand-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.line-icon path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.audience:hover h3,
.audience:focus-within h3 { transform: translateX(var(--nudge)); color: var(--c-brand-text); }
.audience:hover .line-icon,
.audience:focus-within .line-icon { animation: icon-hop 0.6s var(--ease-back); }
.audience:hover .line-icon path,
.audience:focus-within .line-icon path { animation: icon-draw var(--dur-draw) var(--ease) both; }
.audience:hover .line-icon path + path,
.audience:focus-within .line-icon path + path { animation-delay: 0.25s; }
@keyframes icon-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes icon-hop {
  0%, 100% { transform: none; }
  40% { transform: translateY(calc(var(--s-2) * -1)) scale(1.06); }
}

/* ---------- Service rows (asymmetric split) ---------- */
.service-rows { display: grid; gap: var(--s-9); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s-8);
  align-items: center;
}
.service-row:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media img,
.service-row__media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}
.service-row__body { display: grid; gap: var(--s-5); justify-items: start; }
.service-row__body p { color: var(--c-text-muted); }

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-2);
}
.ticks li { position: relative; padding-left: var(--s-6); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--c-brand);
  border-bottom: 3px solid var(--c-brand);
  transform: rotate(-45deg);
}
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }

/* ---------- Reviews carousel (scroll-snap; works without JS) ---------- */
.reviews { display: grid; gap: var(--s-6); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__slide { scroll-snap-align: start; padding-right: var(--s-2); }
.reviews__controls { display: flex; align-items: center; gap: var(--s-2); }
.reviews__dots { display: flex; margin: 0; padding: 0; list-style: none; }
.reviews__dot,
.reviews__arrow {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-text);
  cursor: pointer;
}
.reviews__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-text-muted);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.reviews__dot[aria-current="true"]::before { background: var(--c-brand); transform: scale(1.5); }
.reviews__arrow { border: 2px solid var(--c-line); border-radius: var(--r-pill); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.reviews__arrow:hover { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.reviews__arrow svg { width: 20px; height: 20px; }
html:not(.js) .reviews__controls { display: none; }

/* ---------- Quote ---------- */
.quote { max-width: 980px; margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: var(--t-3xl);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}
.quote figcaption {
  margin-top: var(--s-6);
  font-size: var(--t-lg);
  color: var(--c-text-muted);
}
.quote figcaption strong { color: var(--c-text); }

/* ---------- Gallery (mixed heights) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 120px;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { position: relative; overflow: hidden; border-radius: var(--r-md); }
.gallery figure { margin: 0; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery li:nth-child(5n + 1) { grid-column: span 7; grid-row: span 4; }
.gallery li:nth-child(5n + 2) { grid-column: span 5; grid-row: span 2; }
.gallery li:nth-child(5n + 3) { grid-column: span 5; grid-row: span 2; }
.gallery li:nth-child(5n + 4) { grid-column: span 4; grid-row: span 3; }
.gallery li:nth-child(5n + 5) { grid-column: span 8; grid-row: span 3; }
.gallery li:last-child:nth-child(5n + 4) { grid-column: span 12; grid-row: span 4; }
.gallery figcaption {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--c-ink-deep);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
}
.gallery-foot { margin-top: var(--s-6); }

/* ---------- Process (a real sequence) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; display: grid; gap: var(--s-3); align-content: start; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: var(--s-7);
  height: var(--s-7);
  border-radius: var(--r-pill);
  background: var(--c-text-dark);
  color: var(--c-paper);
  font-weight: var(--w-black);
  font-size: var(--t-lg);
}
.steps p { color: var(--c-text-dark-muted); }

/* ---------- Areas (editorial two-column) ---------- */
.split-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.split-editorial > div { display: grid; gap: var(--s-5); justify-items: start; }
.area-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--s-6);
  font-size: var(--t-xl);
  font-weight: var(--w-bold);
}
.area-list li {
  break-inside: avoid;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-line);
}

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--s-8); background: var(--c-brand); color: var(--c-on-brand); }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.cta-band h2 { font-size: var(--t-2xl); }
.cta-band p { margin-top: var(--s-2); font-weight: var(--w-medium); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: var(--t-lg);
  font-weight: var(--w-black);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Service detail pages ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s-8);
  align-items: start;
}
.detail__body { display: grid; gap: var(--s-5); }
.detail__body h2 { font-size: var(--t-2xl); margin-top: var(--s-4); }
.detail__body p { color: var(--c-text-muted); }
.detail__aside { display: grid; gap: var(--s-5); position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.detail__aside img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.aside-box {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-ink-raised);
}
.aside-box p { color: var(--c-text-muted); }

.faq { display: grid; gap: var(--s-3); max-width: var(--container-narrow); }
.faq details {
  border-bottom: 1px solid var(--c-paper-line);
  padding-block: var(--s-3);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  list-style: none;
  min-height: var(--tap);
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block: var(--s-2) var(--s-3); color: var(--c-text-dark-muted); }

/* ---------- Services index ---------- */
.service-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-ink-raised);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover,
.service-card:focus-within { transform: translateY(var(--lift)); box-shadow: var(--shadow-1); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card__body { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); }
.service-card__body p { color: var(--c-text-muted); }
.service-card a { text-decoration: none; }
.service-card a::after { content: ""; position: absolute; inset: 0; }
.service-card h2 { transition: color var(--dur) var(--ease); }
.service-card:hover h2 { color: var(--c-brand-text); }
.service-card h2 { font-size: var(--t-xl); line-height: var(--lh-snug); }

.property-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7);
}
.property-types > div { display: grid; gap: var(--s-3); align-content: start; }
.property-types h3 { font-size: var(--t-xl); }

/* ---------- About ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s-8);
  align-items: start;
}
.story__body { display: grid; gap: var(--s-4); max-width: 62ch; }
.story__body p { color: var(--c-text-muted); }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s-8);
  align-items: start;
}
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-weight: var(--w-bold); }
.field .hint { font-size: var(--t-sm); color: var(--c-text-muted); font-weight: var(--w-regular); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-text-muted);
  border-radius: var(--r-sm);
  background: var(--c-ink-deep);
  color: var(--c-text);
  font: inherit;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--c-focus); }
.form__honeypot { display: none; }
.form__note { font-size: var(--t-sm); color: var(--c-text-muted); }

.contact-card {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  border-radius: var(--r-md);
  background: var(--c-ink-raised);
}
.contact-card dl { margin: 0; display: grid; gap: var(--s-4); }
.contact-card dt { font-size: var(--t-sm); color: var(--c-text-muted); }
.contact-card dd { margin: 0; font-size: var(--t-lg); font-weight: var(--w-bold); }
.contact-card dd a { text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.contact-card dd a:hover { color: var(--c-brand-text); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--s-8) var(--s-6);
  background: var(--c-ink-deep);
  font-size: var(--t-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-7);
}
.footer-grid h2 { font-size: var(--t-base); font-weight: var(--w-bold); margin-bottom: var(--s-3); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li a {
  min-width: var(--tap);
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-text-muted);
  text-decoration: none;
}
.footer-grid li a:hover { color: var(--c-text); text-decoration: underline; }
.footer-brand { display: grid; gap: var(--s-4); justify-items: start; }
.footer-brand p { color: var(--c-text-muted); max-width: 36ch; }
.footer-brand .footer-contact { display: grid; justify-items: start; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-text);
  font-weight: var(--w-bold);
}
.footer-bottom p { margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  color: var(--c-text-muted);
}

/* ---------- 404 / thank-you ---------- */
.notice { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: var(--s-5); }
.notice .lede { max-width: 56ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro,
  .split-editorial,
  .detail,
  .story,
  .contact { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .detail__aside { position: static; }
  .detail__aside img { aspect-ratio: 4 / 3; }
  .service-row,
  .service-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index,
  .property-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-auto-rows: 90px; }
}

@media (max-width: 680px) {
  .section { padding-block: var(--s-8); }
  .hero { padding-block: var(--s-8); }
  .hero__sub { font-size: var(--t-lg); }
  .hero__actions { margin-top: var(--s-6); }
  .hero__actions .btn { width: 100%; }
  .audiences,
  .steps,
  .service-index,
  .property-types,
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .ticks--cols { grid-template-columns: minmax(0, 1fr); }
  .area-list { columns: 1; }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .gallery li,
  .gallery li:nth-child(n),
  .gallery li:last-child:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery img { aspect-ratio: 4 / 3; height: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .cta-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; animation: none; }
  .reviews__track { scroll-behavior: auto; }
  .service-card:hover,
  .service-card:focus-within { transform: none; }
}
