/* ==========================================================================
   Cedarstone Realty — main.css
   Himalayan Modernism: stone, cedar, brass. One stylesheet, no dependencies.
   ========================================================================== */

/* --- Fonts (self-hosted, variable) ---------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --cedar-900: #10241f;
  --cedar-800: #1c3a32;
  --cedar-700: #234a3f;
  --cedar-600: #2f5a4c;
  --cedar-200: #c3d5cd;
  --cedar-100: #dce7e1;

  --stone-50: #faf7f2;
  --stone-100: #f2ede4;
  --stone-150: #ece5d9;
  --stone-200: #e4dcce;
  --stone-300: #d3c8b6;
  --stone-400: #b9ae9c;

  --brass-600: #8f6329;
  --brass-500: #a8793c;
  --brass-400: #c0955c;
  --brass-300: #d6b27c;

  --ink-900: #14201c;
  --ink-700: #35423c;
  --ink-600: #4c5a54;
  --ink-400: #6e7a74;
  --ink-300: #8b958f;

  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius-sm: 2px;
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(16, 36, 31, 0.05);
  --shadow-md: 0 18px 40px -28px rgba(16, 36, 31, 0.45);
  --shadow-lg: 0 40px 80px -50px rgba(16, 36, 31, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;

  --section-y: clamp(64px, 8vw, 112px);
}

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

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

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink-600);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

/* Visited links keep the colour their component assigns. :where() keeps
   specificity at zero, so no component rule is overridden. */
:where(a:visited) { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-900);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.22; }
h4 { font-size: 1.12rem; line-height: 1.35; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
p { text-wrap: pretty; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

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

::selection { background: var(--cedar-800); color: var(--stone-50); }

:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cedar-800);
  color: var(--stone-50);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }
.section--stone { background: var(--stone-100); }
.section--white { background: var(--white); }
.section--cedar { background: var(--cedar-900); color: rgba(250, 247, 242, 0.78); }
.section--cedar h1, .section--cedar h2, .section--cedar h3, .section--cedar h4 { color: var(--stone-50); }
.section--hairline { border-top: 1px solid var(--stone-200); }

.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split--reverse .split__media { order: -1; }
.split--balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }

.stack > * + * { margin-top: 1rem; }

/* --- Typography helpers --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass-500);
  flex: none;
}
.section--cedar .eyebrow { color: var(--brass-300); }
.section--cedar .eyebrow::before { background: var(--brass-400); }

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-700);
}
.section--cedar .lede { color: rgba(250, 247, 242, 0.8); }

.small { font-size: 13.5px; line-height: 1.65; color: var(--ink-400); }
.muted { color: var(--ink-400); }
.brass { color: var(--brass-500); }
.cedar { color: var(--cedar-800); }

.rule { height: 1px; background: var(--stone-200); border: 0; margin: 0; }
.section--cedar .rule { background: rgba(214, 178, 124, 0.24); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-head__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--stone-200);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--cedar-800);
  --btn-fg: var(--stone-50);
  --btn-bd: var(--cedar-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { --btn-bg: var(--cedar-900); --btn-bd: var(--cedar-900); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cedar-800);
  --btn-bd: var(--stone-300);
}
.btn--ghost:hover { --btn-bg: var(--cedar-800); --btn-fg: var(--stone-50); --btn-bd: var(--cedar-800); }

.btn--light {
  --btn-bg: var(--stone-50);
  --btn-fg: var(--cedar-900);
  --btn-bd: var(--stone-50);
}
.btn--light:hover { --btn-bg: var(--brass-300); --btn-fg: var(--cedar-900); --btn-bd: var(--brass-300); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--stone-50);
  --btn-bd: rgba(250, 247, 242, 0.34);
}
.btn--outline-light:hover { --btn-bg: rgba(250, 247, 242, 0.1); --btn-bd: rgba(250, 247, 242, 0.6); }

.btn--sm { padding: 12px 20px; font-size: 11px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cedar-800);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--brass-600); border-color: var(--brass-500); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--cedar .link-arrow { color: var(--brass-300); }

.text-link {
  color: var(--cedar-800);
  border-bottom: 1px solid var(--stone-300);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link:hover { color: var(--brass-600); border-color: var(--brass-500); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--stone-50);
  transition: color 0.35s var(--ease);
}
.brand__mark { width: 34px; height: 38px; flex: none; color: var(--brass-300); transition: color 0.35s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.72;
}

.site-nav { display: flex; align-items: center; gap: 34px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list > li { position: relative; margin: 0; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.86);
  transition: color 0.25s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--brass-300); }

.site-nav__toggle { display: none; }

/* Dropdown */
.has-menu > .site-nav__link svg { transition: transform 0.25s var(--ease); }
.has-menu:hover > .site-nav__link svg,
.has-menu:focus-within > .site-nav__link svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -22px;
  width: 320px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-menu:hover > .submenu,
.has-menu:focus-within > .submenu,
.has-menu.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.submenu a:hover { background: var(--stone-100); color: var(--cedar-800); }
.submenu a span { display: block; font-size: 11.5px; color: var(--ink-400); font-weight: 400; margin-top: 2px; }

/* Header states */
.site-header.is-solid {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--stone-200);
}
.site-header.is-solid .brand,
.site-header.is-solid .brand__mark { color: var(--cedar-800); }
.site-header.is-solid .brand__mark { color: var(--brass-500); }
.site-header.is-solid .site-nav__link { color: var(--ink-700); }
.site-header.is-solid .site-nav__link[aria-current="page"] { color: var(--brass-600); }
.site-header.is-solid .header-cta { --btn-bg: var(--cedar-800); --btn-fg: var(--stone-50); --btn-bd: var(--cedar-800); }

/* Pages without a dark hero: header starts solid */
.page-inner .site-header { background: rgba(250, 247, 242, 0.94); border-bottom-color: var(--stone-200); }
.page-inner .brand,
.page-inner .brand__mark { color: var(--cedar-800); }
.page-inner .brand__mark { color: var(--brass-500); }
.page-inner .site-nav__link { color: var(--ink-700); }
.page-inner .site-nav__link[aria-current="page"] { color: var(--brass-600); }
.page-inner .site-header.is-solid { box-shadow: 0 1px 0 rgba(16, 36, 31, 0.04); }

.header-cta { --btn-bg: transparent; --btn-fg: var(--stone-50); --btn-bd: rgba(250, 247, 242, 0.4); }
.header-cta:hover { --btn-bg: var(--stone-50); --btn-fg: var(--cedar-900); --btn-bd: var(--stone-50); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(250, 247, 242, 0.34);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--stone-50);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.site-header.is-solid .nav-toggle { border-color: var(--stone-300); }
.site-header.is-solid .nav-toggle span { background: var(--cedar-800); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- Mobile drawer -------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) 24px 40px;
  background: var(--cedar-900);
  color: var(--stone-50);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__group + .mobile-nav__group { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(214, 178, 124, 0.2); }
.mobile-nav__label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin-bottom: 12px;
}
.mobile-nav a {
  display: block;
  padding: 11px 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--stone-50);
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
}
.mobile-nav a.is-sub { font-family: var(--font-sans); font-size: 15px; padding: 9px 0 9px 14px; color: rgba(250, 247, 242, 0.78); }
.mobile-nav__foot { margin-top: auto; padding-top: 32px; font-size: 13.5px; color: rgba(250, 247, 242, 0.66); }
.mobile-nav__foot a { font-family: var(--font-sans); font-size: 14px; border: 0; padding: 4px 0; color: var(--brass-300); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 780px);
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(48px, 6vw, 76px);
  overflow: hidden;
  background: var(--cedar-900);
  color: var(--stone-50);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroSettle 1.8s var(--ease) forwards; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 26, 22, 0.92) 0%, rgba(10, 26, 22, 0.72) 42%, rgba(10, 26, 22, 0.18) 100%),
    linear-gradient(to top, rgba(10, 26, 22, 0.55), transparent 45%);
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero__inner { width: 100%; }
.hero__content { max-width: 720px; }
.hero h1 { color: var(--stone-50); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--brass-300); }
.hero__lede { max-width: 540px; font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.66; color: rgba(250, 247, 242, 0.84); margin-bottom: 30px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.66);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--brass-300); flex: none; }

.hero--page {
  min-height: 0;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 72px);
  align-items: center;
}
.hero--page .hero__content { max-width: 780px; }
.hero--page h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
}
.breadcrumb a { color: rgba(250, 247, 242, 0.8); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-color: currentColor; }
.breadcrumb span[aria-current] { color: var(--brass-300); }

/* --- Credential strip ----------------------------------------------------- */
.credentials { background: var(--cedar-800); color: var(--stone-50); }
.credentials__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.credential {
  padding: 26px 26px 26px 0;
  border-right: 1px solid rgba(250, 247, 242, 0.14);
}
.credential:last-child { border-right: 0; }
.credential + .credential { padding-left: 26px; }
.credential__label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-300); margin-bottom: 8px; }
.credential__value { font-family: var(--font-display); font-size: 1.02rem; color: var(--stone-50); line-height: 1.35; }

/* --- Media ---------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-150);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 16 / 9; }
.media--panorama { aspect-ratio: 21 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--bordered { border: 1px solid var(--stone-200); }
a:hover .media img, .media:hover img { transform: scale(1.03); }

.media__caption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-400);
}

.media-frame { position: relative; }
.media-frame__badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  z-index: 2;
  max-width: 240px;
  padding: 22px 24px;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.media-frame__badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--cedar-800); line-height: 1; margin-bottom: 6px; }
.media-frame__badge span { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-400); line-height: 1.5; display: block; }

/* --- Panels and cards ----------------------------------------------------- */
.panel {
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel--stone { background: var(--stone-100); border-color: var(--stone-200); }
.panel--cedar { background: var(--cedar-900); border-color: var(--cedar-700); color: rgba(250, 247, 242, 0.78); }
.panel--cedar h3, .panel--cedar h4 { color: var(--stone-50); }
.panel--flat { box-shadow: none; background: transparent; border: 0; padding: 0; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--stone-300); }
.card__body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: 15.5px; line-height: 1.68; }
.card__foot { margin-top: auto; padding-top: 20px; }

/* Numbered index list (signature element) */
.index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--stone-200); }
.index-list li { margin: 0; border-bottom: 1px solid var(--stone-200); }
.index-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 26px 0;
  transition: padding 0.3s var(--ease);
}
.index-item:hover { padding-left: 8px; }
.index-item__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--brass-500);
  padding-top: 4px;
}
.index-item h3 { margin-bottom: 6px; font-size: clamp(1.12rem, 1.5vw, 1.3rem); }
.index-item p { font-size: 15px; line-height: 1.65; margin: 0; max-width: 62ch; }
.index-item__arrow { align-self: center; color: var(--stone-400); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.index-item:hover .index-item__arrow { color: var(--brass-500); transform: translateX(4px); }
.section--cedar .index-list, .section--cedar .index-list li { border-color: rgba(250, 247, 242, 0.14); }
.section--cedar .index-item p { color: rgba(250, 247, 242, 0.72); }

/* Feature list with brass ticks */
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.65;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 1px;
  background: var(--brass-500);
}
.section--cedar .tick-list li::before { background: var(--brass-400); }

/* Definition-style two column list */
.fact-list { margin: 0; border-top: 1px solid var(--stone-200); }
.fact-list__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--stone-200); }
.fact-list__row dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); padding-top: 3px; }
.fact-list__row dd { margin: 0; color: var(--ink-900); font-size: 15.5px; }

/* --- Two-pillar split (home) --------------------------------------------- */
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--stone-50);
  isolation: isolate;
}
.pillar img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 26, 22, 0.94) 0%, rgba(10, 26, 22, 0.72) 42%, rgba(10, 26, 22, 0.28) 100%),
    linear-gradient(to right, rgba(10, 26, 22, 0.45), rgba(10, 26, 22, 0) 65%);
}
.pillar:hover img { transform: scale(1.04); }
.pillar h3 { color: var(--stone-50); font-size: clamp(1.45rem, 2.1vw, 1.85rem); margin-bottom: 10px; }
.pillar p { font-size: 15px; line-height: 1.66; color: rgba(250, 247, 242, 0.82); max-width: 46ch; }
.pillar__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 11px;
  border: 1px solid rgba(250, 247, 242, 0.32);
  border-radius: 1px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-300);
  align-self: flex-start;
}

/* --- Approach steps ------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--stone-200); }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 30px 0;
  border-bottom: 1px solid var(--stone-200);
  align-items: start;
}
.step__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--stone-300); line-height: 1; }
.step h3 { font-size: 1.16rem; margin: 0; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.68; }

/* --- Coverage ------------------------------------------------------------- */
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--stone-200); border: 1px solid var(--stone-200); }
.coverage__item { padding: 20px 22px; background: var(--stone-50); }
.coverage__item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); margin-bottom: 3px; }
.coverage__item span { font-size: 13px; color: var(--ink-400); }

/* --- Quote / callout ------------------------------------------------------ */
.callout {
  padding: clamp(28px, 4vw, 48px);
  border-left: 2px solid var(--brass-500);
  background: var(--stone-100);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:first-child { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.42; color: var(--ink-900); }
.callout__attr { margin-top: 18px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }

/* --- Accordion ------------------------------------------------------------ */
.accordion { border-top: 1px solid var(--stone-200); }
.accordion__item { border-bottom: 1px solid var(--stone-200); }
.accordion__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-900);
  transition: color 0.25s var(--ease);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { color: var(--cedar-800); }
.accordion__icon { position: relative; flex: none; width: 16px; height: 16px; margin-top: 6px; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--brass-500);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.accordion__icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.accordion__icon::after { left: 7px; top: 0; width: 1.5px; height: 16px; }
.accordion__item[open] .accordion__icon::after { transform: rotate(90deg); opacity: 0; }
.accordion__body { padding: 0 40px 24px 0; font-size: 15.5px; line-height: 1.72; }
.accordion__body p:last-child { margin-bottom: 0; }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-700); }
.field label .req { color: var(--brass-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234C5A54' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cedar-600);
  box-shadow: 0 0 0 3px rgba(47, 90, 76, 0.12);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #a4462f; box-shadow: 0 0 0 3px rgba(164, 70, 47, 0.1); }
.field__error { font-size: 12.5px; color: #a4462f; min-height: 0; }
.field__hint { font-size: 12px; color: var(--ink-400); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--ink-600); }
.field label.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.6;
  color: var(--ink-600);
}
.field label.checkbox .req { font-weight: 700; }
.checkbox input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--cedar-700); flex: none; }

.form__status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--cedar-100); border: 1px solid var(--cedar-200); color: var(--cedar-900); }
.form__status--error { background: #f8e8e4; border: 1px solid #e6c3ba; color: #7c2d1b; }
.form__status--info { background: var(--stone-100); border: 1px solid var(--stone-200); color: var(--ink-700); }

/* --- Contact block -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--stone-200); }
.contact-line__icon { color: var(--brass-500); flex: none; margin-top: 3px; }
.contact-line__label { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 4px; }
.contact-line__value { font-size: 15.5px; color: var(--ink-900); line-height: 1.6; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--cedar-900); color: rgba(250, 247, 242, 0.66); padding-top: clamp(48px, 6vw, 80px); }
.site-footer a { color: rgba(250, 247, 242, 0.72); transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--brass-300); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.85fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.footer-brand .brand { color: var(--stone-50); margin-bottom: 18px; }
.footer-brand .brand__mark { color: var(--brass-300); }
.footer-brand p { font-size: 14px; line-height: 1.72; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-300); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 14px; line-height: 1.6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px 26px;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
  font-size: 12.5px;
  color: rgba(250, 247, 242, 0.5);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal { padding-bottom: 28px; font-size: 11.5px; line-height: 1.7; color: rgba(250, 247, 242, 0.4); max-width: 90ch; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--cedar-900); color: var(--stone-50); }
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10, 26, 22, 0.93), rgba(10, 26, 22, 0.62)); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { color: var(--stone-50); margin: 0; max-width: 20ch; }
.cta-band p { color: rgba(250, 247, 242, 0.78); max-width: 46ch; margin-top: 10px; }

/* --- Page body / prose ---------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { font-size: 16px; line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.1em; }
.prose ul li::marker { color: var(--brass-500); }
.prose > *:first-child { margin-top: 0; }
.prose hr { margin: 2.4em 0; }
.prose .fact-list { margin: 1.8em 0; }

.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc h2 { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--stone-200); }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 0 8px 16px; font-size: 13.5px; color: var(--ink-600); border-left: 1px solid transparent; margin-left: -1px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.toc a:hover { color: var(--cedar-800); border-color: var(--brass-500); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* --- Misc ----------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--stone-300);
  border-radius: 1px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.divider-dot { color: var(--stone-400); }

.notice {
  padding: 18px 20px;
  border: 1px solid var(--stone-200);
  border-left: 2px solid var(--brass-500);
  background: var(--stone-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.7;
}
.notice strong { color: var(--ink-900); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--stone-200); border-block: 1px solid var(--stone-200); }
.stat { padding: 24px 20px; background: var(--stone-50); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cedar-800); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: 12.5px; line-height: 1.5; color: var(--ink-400); }

/* --- Motion --------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

@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; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav__list { gap: 22px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .site-nav__list, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .split, .split--balanced, .contact-grid, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential:nth-child(2n) { border-right: 0; }
  .credential:nth-child(-n+2) { border-bottom: 1px solid rgba(250, 247, 242, 0.14); }
  .credential + .credential { padding-left: 0; }
  .credential:nth-child(2n) { padding-left: 26px; }
  .toc { position: static; }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step p { grid-column: 2; }
  .media-frame__badge { left: 16px; bottom: 16px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 84px); padding-bottom: 48px; }
  .hero__meta { gap: 8px 18px; font-size: 10.5px; }
  .index-item { grid-template-columns: 40px minmax(0, 1fr); }
  .index-item__arrow { display: none; }
  .fact-list__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .pillar { min-height: 340px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .media-frame__badge { position: static; margin-top: 16px; max-width: none; }
  .section-head__foot { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .btn-row .btn { width: 100%; }
}

@media (min-width: 721px) {
  .btn-row .btn { width: auto; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .cta-band, .site-footer { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: 0; background: none; color: #000; padding-top: 0; }
  .hero::after, .hero__media { display: none; }
  .hero h1, .hero__lede { color: #000; }
  a { text-decoration: underline; }
}
.footer-col__label { font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-300); margin: 0 0 16px; }

.subhead {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 10px;
  line-height: 1.4;
}
.index-item .index-item__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink-900);
}
