/* ACK Real Estate Development
   Order: tokens > base > type > layout > components > sections > utilities */

/* ---------- 1. Tokens ---------- */
:root {
  /* Fonts */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Bodoni Moda", "Didot", Georgia, serif;  /* "ACK" wordmark only, matches the logo */

  /* Brand primitives (only referenced by semantic tokens below) */
  --gold-100: #FBF3E0;
  --gold-300: #E6D2A0;
  --gold-400: #D8AA3C;
  --gold-500: #C3921C;
  --gold-600: #A87B12;
  --gold-700: #7A5A0E;
  --brown-950: #26190F;
  --brown-900: #33241A;
  --brown-800: #45311F;
  --brown-700: #5A412C;
  --stone-50: #FCF9F3;
  --stone-100: #F5EDDF;
  --stone-200: #EAE0CD;
  --stone-300: #D8CAB2;
  --stone-600: #5E4E40;
  --white: #FFFFFF;

  /* Semantic colors */
  --color-background: var(--stone-50);
  --color-surface: var(--stone-100);
  --color-surface-elevated: var(--white);
  --color-text: var(--brown-900);
  --color-text-muted: var(--stone-600);
  --color-border: var(--stone-200);
  --color-border-strong: var(--stone-300);

  --color-primary: var(--brown-900);
  --color-primary-hover: var(--brown-700);
  --color-primary-active: var(--brown-950);
  --color-primary-contrast: var(--stone-50);

  --color-accent: var(--gold-400);
  --color-accent-hover: var(--gold-500);
  --color-accent-active: var(--gold-600);
  --color-accent-display: var(--gold-600);  /* large gold type on light backgrounds */
  --color-accent-tint: var(--gold-100);
  --color-accent-contrast: var(--brown-900);
  --color-accent-text: var(--gold-700);     /* gold that passes AA on light */
  --color-accent-soft: var(--gold-300);

  --color-dark: var(--brown-900);
  --color-dark-raised: var(--brown-800);
  --color-on-dark: var(--stone-50);
  --color-on-dark-muted: var(--stone-300);
  --color-on-dark-border: rgba(242, 237, 226, 0.16);

  --color-success: #2F7D4F;
  --color-success-surface: #E3F1E8;
  --color-warning: #94610C;
  --color-warning-surface: #FBF0D9;
  --color-danger: #B3261E;
  --color-danger-surface: #FBE6E4;
  --color-info: #2C5D8A;
  --color-info-surface: #E2ECF5;

  --color-focus: var(--gold-500);
  --color-overlay: rgba(38, 25, 15, 0.6);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Type scale */
  --text-caption: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-body-large: 1.1875rem;
  --text-h4: 1.25rem;
  --text-h3: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --text-fluid-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --text-fluid-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --text-fluid-display: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);

  --leading-tight: 1.04;
  --leading-heading: 1.12;
  --leading-body: 1.65;
  --leading-caption: 1.45;

  --tracking-tight: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-label: 0.16em;
  --tracking-button: 0.06em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius: crisp, architectural */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(32, 22, 15, 0.06);
  --shadow-md: 0 10px 30px rgba(32, 22, 15, 0.08);
  --shadow-lg: 0 24px 60px rgba(32, 22, 15, 0.16);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 240ms ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.7, 0, 0.2, 1);
  --intro: 0s;

  /* Layout */
  --container-width: 1180px;
  --container-narrow: 760px;
  --container-padding: 1.25rem;
  --header-height: 72px;
  --mobile-bar-height: 64px;

  /* Z-index */
  --z-header: 50;
  --z-sticky-cta: 60;
  --z-nav: 70;
  --z-toast: 80;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-accent-text); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--color-accent-soft); color: var(--color-text); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary); color: var(--color-primary-contrast);
  font-weight: 500; text-decoration: none; border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-4); color: var(--color-primary-contrast); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Type tiers ---------- */
.t-display, .t-h1, .t-h2, .t-h3 { font-family: var(--font-display); font-weight: 600; }
.t-display { font-size: var(--text-fluid-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.t-h1 { font-size: var(--text-fluid-h1); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); }
.t-h2 { font-size: var(--text-fluid-h2); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); }
.t-h3 { font-size: var(--text-h3); line-height: 1.2; }
.t-h4 { font-family: var(--font-body); font-size: var(--text-h4); font-weight: 500; line-height: 1.3; }
.t-lede { font-size: var(--text-body-large); line-height: 1.6; color: var(--color-text-muted); }
.t-small { font-size: var(--text-small); line-height: var(--leading-caption); }
.t-caption { font-size: var(--text-caption); line-height: var(--leading-caption); }
.t-display em, .t-h1 em, .t-h2 em { font-style: italic; color: var(--color-accent-display); }
.on-dark .t-display em, .on-dark .t-h1 em, .on-dark .t-h2 em { color: var(--gold-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--color-accent); }

/* ---------- 4. Layout ---------- */
.container { width: min(100% - (var(--container-padding) * 2), var(--container-width)); margin-inline: auto; }
.container--narrow { width: min(100% - (var(--container-padding) * 2), var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-24); }
.section--tight { padding-block: var(--space-16); }
.section--surface { background: var(--color-surface); }
.section--dark, .on-dark { background: var(--color-dark) var(--grain); color: var(--color-on-dark); }
.section--dark .t-lede, .on-dark .t-lede { color: var(--color-on-dark-muted); }
.section--dark a:hover, .on-dark a:hover { color: var(--color-accent); }
.section-head { max-width: 46rem; margin-bottom: var(--space-12); }
.section-head .t-lede { margin-top: var(--space-5); }
.split { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split--center { align-items: center; }
  .sticky-col { position: sticky; top: calc(var(--header-height) + var(--space-8)); }
}
@media (max-width: 768px) {
  .section { padding-block: var(--space-16); }
  .section--tight { padding-block: var(--space-12); }
  .section-head { margin-bottom: var(--space-8); }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.375rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  letter-spacing: var(--tracking-button); text-transform: uppercase; text-decoration: none;
  line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--gold { background: var(--color-accent); color: var(--color-accent-contrast); }
.btn--gold:hover { background: var(--color-accent-hover); color: var(--color-accent-contrast); }
.btn--gold:active { background: var(--color-accent-active); color: var(--color-on-dark); }

.btn--dark { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--dark:hover { background: var(--color-primary-hover); color: var(--color-primary-contrast); }
.btn--dark:active { background: var(--color-primary-active); }

.btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--outline:hover { background: var(--color-text); color: var(--color-background); }

.btn--outline-light { background: transparent; color: var(--color-on-dark); border-color: rgba(242, 237, 226, 0.55); }
.btn--outline-light:hover { background: var(--color-on-dark); color: var(--color-text); border-color: var(--color-on-dark); }

.btn--sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Loading state */
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; transform: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.02em;
  color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-accent); padding-bottom: 2px;
  transition: color var(--transition-fast), gap var(--transition-fast);
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { gap: var(--space-3); color: var(--color-accent-text); }
.on-dark .text-link, .section--dark .text-link { color: var(--color-on-dark); }
.on-dark .text-link:hover, .section--dark .text-link:hover { color: var(--color-accent); }

/* ---------- 6. Header + navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(252, 249, 243, 0.9); color: var(--color-text);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}
.site-header.is-scrolled { background: rgba(252, 249, 243, 0.97); box-shadow: 0 8px 28px rgba(51, 36, 26, 0.07); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: var(--header-height); }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand img { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-brand); font-size: 1.625rem; font-weight: 500; letter-spacing: 0.02em; }
.brand__sub { margin-top: 5px; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-text-muted); }
.on-dark .brand, .site-footer .brand { color: var(--color-on-dark); }
.on-dark .brand__sub { color: var(--color-on-dark-muted); }
/* Footer logo is all white */
.site-footer .brand, .site-footer .brand:hover, .site-footer .brand__sub { color: #FFFFFF; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; color: var(--color-text);
}
.nav__link::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 8px; height: 1px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-base);
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--color-accent-text); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone { display: none; align-items: center; gap: var(--space-2); font-weight: 500; text-decoration: none; font-size: 0.9375rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent-text); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 48px; min-height: 48px; padding: 0 var(--space-3);
  background: transparent; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.8125rem; font-weight: 500; letter-spacing: var(--tracking-button); text-transform: uppercase;
  color: var(--color-text); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover { border-color: var(--color-text); }

@media (min-width: 1000px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-phone { display: inline-flex; }
}
@media (max-width: 999px) { .header-actions .btn { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-nav);
  display: flex; flex-direction: column;
  background: var(--color-dark); color: var(--color-on-dark);
  padding: var(--space-4) var(--container-padding) var(--space-8);
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: calc(var(--header-height) - var(--space-4)); }
.mobile-nav__close { border-color: var(--color-on-dark-border); color: var(--color-on-dark); }
.mobile-nav__close:hover { border-color: var(--color-on-dark); }
.mobile-nav__list { list-style: none; margin-top: var(--space-8); border-top: 1px solid var(--color-on-dark-border); }
.mobile-nav__list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 64px;
  border-bottom: 1px solid var(--color-on-dark-border);
  font-family: var(--font-display); font-size: 1.75rem; text-decoration: none; color: var(--color-on-dark);
}
.mobile-nav__list a svg { width: 22px; height: 22px; color: var(--color-accent); }
.mobile-nav__list a[aria-current="page"] { color: var(--color-accent); }
.mobile-nav__foot { margin-top: auto; padding-top: var(--space-8); display: grid; gap: var(--space-3); }

/* ---------- 7. Heroes ---------- */
.hero { position: relative; isolation: isolate; color: var(--color-on-dark); background: var(--color-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(38, 25, 15, 0.88) 0%, rgba(38, 25, 15, 0.66) 45%, rgba(38, 25, 15, 0.22) 100%),
    linear-gradient(0deg, rgba(38, 25, 15, 0.7) 0%, rgba(38, 25, 15, 0) 45%);
}
.hero__inner { padding-block: var(--space-24) var(--space-12); }
.hero__copy { max-width: 44rem; }
.hero__copy .t-lede { margin-top: var(--space-6); max-width: 38rem; color: var(--color-on-dark-muted); }
.hero__copy .btn-row { margin-top: var(--space-8); }
.hero--home .hero__inner { padding-top: clamp(var(--space-16), 10vw, 9rem); }

/* Path router inside the home hero */
.paths { margin-top: clamp(var(--space-12), 7vw, var(--space-20)); display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-on-dark-border); }
.path {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-2); text-decoration: none; color: var(--color-on-dark);
  border-bottom: 1px solid var(--color-on-dark-border);
  transition: background-color var(--transition-base), padding var(--transition-base);
}
.path__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--color-on-dark-border); border-radius: var(--radius-sm); color: var(--color-accent); }
.path__icon svg { width: 22px; height: 22px; }
.path__title { display: block; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; }
.path__desc { display: block; margin-top: 2px; font-size: var(--text-small); color: var(--color-on-dark-muted); }
.path__arrow { width: 20px; height: 20px; color: var(--color-accent); transition: transform var(--transition-base); }
.path:hover { color: var(--color-on-dark); background: rgba(242, 237, 226, 0.06); }
.path:hover .path__arrow { transform: translateX(4px); }
@media (min-width: 720px) {
  .paths { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
}
@media (min-width: 1100px) {
  .paths { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 0; }
  .path { grid-template-columns: 1fr; align-content: start; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-on-dark-border); border-right-width: 0; background: rgba(21, 14, 9, 0.5); }
  .path:last-child { border-right-width: 1px; }
  .path__arrow { margin-top: var(--space-2); }
}

/* Inner page heroes */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--space-20) var(--space-16); background: linear-gradient(180deg, var(--gold-100) 0%, var(--color-background) 100%); }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--gold-500), rgba(195, 146, 28, 0)); transform-origin: left; animation: line-draw 1.6s var(--ease-out) 0.3s both; }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -8%; bottom: -26%; width: min(62vw, 760px); aspect-ratio: 790 / 575; background: url("../img/mark.svg") no-repeat center / contain; opacity: 0.09; pointer-events: none; }
.page-hero > .container > div:first-child > *, .page-hero > .container > :is(.eyebrow, h1, .t-lede, p), .hero__copy > * { animation: enter-up 0.9s var(--ease-out) both; }
.page-hero > .container > div:first-child > :nth-child(2), .page-hero > .container > :nth-child(2), .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.page-hero > .container > div:first-child > :nth-child(3), .page-hero > .container > :nth-child(3), .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.page-hero > .container > div:first-child > :nth-child(n+4), .page-hero > .container > :nth-child(n+4), .hero__copy > :nth-child(n+4) { animation-delay: 0.24s; }
.page-hero > .container.split > :nth-child(2) { animation: enter-up 1s var(--ease-out) 0.2s both; }
.page-hero .t-lede { margin-top: var(--space-6); max-width: 40rem; }
.page-hero .btn-row { margin-top: var(--space-8); }
.page-hero--photo { border-bottom: 0; }
.page-hero--photo .hero__inner { padding-block: var(--space-20) var(--space-16); }
@media (max-width: 768px) {
  .page-hero { padding-block: var(--space-12) var(--space-12); }
  .page-hero--photo .hero__inner, .hero__inner { padding-block: var(--space-16) var(--space-10); }
}

.checklist { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-8); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: start; }
.checklist svg { width: 22px; height: 22px; margin-top: 2px; color: var(--color-accent-text); }
.on-dark .checklist svg { color: var(--color-accent); }

/* ---------- 8. Lifecycle (five bars from the logo) ---------- */
.stages { list-style: none; display: grid; gap: var(--space-8); counter-reset: stage; }
.stage { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-5); align-items: start; }
.stage__bar { width: 28px; background: var(--color-accent); }
.stage__bar--1, .stage__bar--5 { height: 56px; }
.stage__bar--2, .stage__bar--4 { height: 76px; }
.stage__bar--3 { height: 96px; }
.stage__bar--1, .stage__bar--2 { clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.stage__bar--4, .stage__bar--5 { clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%); }
.stage__bar--3 { clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%); }
.stage__num { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--color-accent-text); }
.stage h3 { margin-top: var(--space-2); }
.stage p { margin-top: var(--space-3); color: var(--color-text-muted); font-size: 1rem; }
.stage .text-link { margin-top: var(--space-4); }
@media (min-width: 1000px) {
  .stages { grid-template-columns: repeat(5, 1fr); gap: 0; align-items: end; }
  .stage { grid-template-columns: 1fr; gap: 0; padding: 0 var(--space-5); border-left: 1px solid var(--color-border); align-self: stretch; grid-template-rows: 120px auto; }
  .stage:first-child { border-left: 0; padding-left: 0; }
  .stage__bar { align-self: end; width: 36px; margin-bottom: var(--space-6); }
  .stage__bar--1, .stage__bar--5 { height: 64px; }
  .stage__bar--2, .stage__bar--4 { height: 92px; }
  .stage__bar--3 { height: 120px; }
}

/* ---------- 9. Spec sheet ---------- */
.spec { border-top: 1px solid var(--color-text); }
.spec__row { display: grid; gap: var(--space-2); padding-block: var(--space-6); border-bottom: 1px solid var(--color-border-strong); }
.spec__label { font-size: var(--text-caption); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.spec__value { font-size: 1.0625rem; }
.spec__tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.spec__tags li { padding: 0.375rem 0.75rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface-elevated); font-size: 0.9375rem; }
@media (min-width: 720px) { .spec__row { grid-template-columns: 200px 1fr; gap: var(--space-8); } }

/* ---------- 10. Commitments ---------- */
.commitments { list-style: none; display: grid; gap: 0; counter-reset: c; border-top: 1px solid var(--color-on-dark-border); }
.commitment { counter-increment: c; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding-block: var(--space-8); border-bottom: 1px solid var(--color-on-dark-border); }
.commitment::before { content: counter(c, decimal-leading-zero); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--color-accent); }
.commitment h3 { margin-bottom: var(--space-3); }
.commitment p { color: var(--color-on-dark-muted); }
.section:not(.section--dark) .commitments { border-top-color: var(--color-border-strong); }
.section:not(.section--dark) .commitment { border-bottom-color: var(--color-border-strong); }
.section:not(.section--dark) .commitment::before { color: var(--color-accent-text); }
.section:not(.section--dark) .commitment p { color: var(--color-text-muted); }
@media (min-width: 860px) {
  .commitments { grid-template-columns: 1fr 1fr; column-gap: var(--space-16); }
}

/* ---------- 11. Steps ---------- */
.steps { list-style: none; display: grid; gap: var(--space-6); counter-reset: s; }
.step { counter-increment: s; position: relative; padding: var(--space-8) var(--space-6) var(--space-6); background: var(--color-surface-elevated); border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); }
.step::before { content: "Step " counter(s); display: block; margin-bottom: var(--space-3); font-size: var(--text-caption); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent-text); }
.step h3 { margin-bottom: var(--space-3); }
.step p { color: var(--color-text-muted); font-size: 1rem; }
@media (min-width: 860px) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 12. Feature list (situations, structures, partner types) ---------- */
.features { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--color-border-strong); }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-5); padding-block: var(--space-6); border-bottom: 1px solid var(--color-border-strong); }
.feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-accent-text); }
.section--surface .feature__icon { background: var(--color-surface-elevated); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: var(--space-2); }
.feature p { color: var(--color-text-muted); font-size: 1rem; }
@media (min-width: 860px) {
  .features--2 { grid-template-columns: 1fr 1fr; column-gap: var(--space-12); }
}

.features--3 .text-link, .feature .text-link { margin-top: var(--space-3); }
@media (min-width: 900px) { .features--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-10); } }

/* Seller situations (foreclosure, short sale, beyond repair) */
.situations { border-top: 1px solid var(--color-text); }
.situation { display: grid; gap: var(--space-6); padding-block: var(--space-12); border-bottom: 1px solid var(--color-border-strong); scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
.situation__head .feature__icon { margin-bottom: var(--space-5); }
.situation__head .eyebrow { margin-bottom: var(--space-3); }
.situation .checklist { margin-top: var(--space-6); }
@media (min-width: 900px) { .situation { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-16); } }
@media (max-width: 768px) { .situation { padding-block: var(--space-10); } }

/* ---------- 13. Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--color-surface-elevated); border: 1px solid var(--color-border); font-size: 1rem; }
.compare caption { text-align: left; padding-bottom: var(--space-4); color: var(--color-text-muted); font-size: var(--text-small); }
.compare th, .compare td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.compare thead th { font-size: var(--text-caption); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface); }
.compare thead th.is-ack { color: var(--color-accent-contrast); background: var(--color-accent); }
.compare tbody th { font-weight: 500; width: 34%; }
.compare td.is-ack { background: rgba(195, 146, 28, 0.08); font-weight: 500; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: var(--space-3); font-size: 0.9375rem; }
}

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--color-border-strong); }
.faq details { border-bottom: 1px solid var(--color-border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  min-height: 64px; padding-block: var(--space-5); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center/14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center/1.5px 14px no-repeat;
  color: var(--color-accent-text); transition: transform var(--transition-base);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent-text); }
.faq__answer { padding-bottom: var(--space-6); max-width: 44rem; color: var(--color-text-muted); }

/* ---------- 15. Forms ---------- */
.form-card { background: var(--color-surface-elevated); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); padding: var(--space-8); border-radius: var(--radius-md); color: var(--color-text); }
.form-card__head { margin-bottom: var(--space-6); }
.form-card__head p { margin-top: var(--space-2); color: var(--color-text-muted); font-size: 1rem; }
@media (max-width: 560px) { .form-card { padding: var(--space-6) var(--space-5); } }

.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

.field { display: grid; gap: var(--space-2); }
.field__label { font-size: 0.9375rem; font-weight: 500; }
.field__optional { font-weight: 400; color: var(--color-text-muted); }
.field__hint { font-size: var(--text-small); color: var(--color-text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.875rem;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--color-text);
  background: var(--color-surface-elevated); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320160F' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 18px;
}
.input::placeholder, .textarea::placeholder { color: #8B8478; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-accent-text); box-shadow: 0 0 0 3px rgba(195, 146, 28, 0.28); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--color-surface); color: var(--color-text-muted); cursor: not-allowed; }
.field.is-valid .input, .field.is-valid .select, .field.is-valid .textarea { border-color: var(--color-success); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--color-danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.field__error { display: none; align-items: flex-start; gap: var(--space-2); font-size: var(--text-small); color: var(--color-danger); }
.field__error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.field.is-invalid .field__error { display: flex; }

.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: var(--space-2); }
.choices__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface-elevated);
  font-size: 0.9375rem; cursor: pointer; transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.choice span:hover { border-color: var(--color-text); }
.choice input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-contrast); }
.choice input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field.is-invalid .choice span { border-color: var(--color-danger); }

.form-foot { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.form-fine { font-size: var(--text-small); color: var(--color-text-muted); }
.form-fine a { color: var(--color-text); }
.form-alert { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm); font-size: 0.9375rem; background: var(--color-danger-surface); color: var(--color-danger); border: 1px solid rgba(179, 38, 30, 0.25); }
.form-alert svg { width: 20px; height: 20px; flex: none; }
.form-alert[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: left; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--color-success-surface); color: var(--color-success); margin-bottom: var(--space-5); }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success p { margin-top: var(--space-3); color: var(--color-text-muted); }
.form-success .text-link { margin-top: var(--space-6); }

/* ---------- 16. Notices, empty states, contact cards ---------- */
.notice { padding: var(--space-6); border-left: 3px solid var(--color-accent); background: var(--color-surface); font-size: 0.9375rem; color: var(--color-text-muted); }
.notice strong { color: var(--color-text); }
.notice--elevated { background: var(--color-surface-elevated); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); }

.empty-state { display: grid; justify-items: start; gap: var(--space-4); padding: var(--space-12) var(--space-8); border: 1px dashed var(--color-border-strong); background: var(--color-surface-elevated); border-radius: var(--radius-md); }
.empty-state__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-accent-text); }
.empty-state__icon svg { width: 28px; height: 28px; }
.empty-state p { max-width: 36rem; color: var(--color-text-muted); }
@media (max-width: 560px) { .empty-state { padding: var(--space-8) var(--space-5); } }

.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--color-border-strong); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; padding-block: var(--space-5); border-bottom: 1px solid var(--color-border-strong); }
.contact-list__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--color-surface); color: var(--color-accent-text); border-radius: var(--radius-sm); }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list__label { display: block; font-size: var(--text-caption); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.contact-list a { font-weight: 500; }

.route-links { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.route-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 52px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); background: var(--color-surface-elevated); text-decoration: none; font-weight: 500; transition: border-color var(--transition-fast); }
.route-links a:hover { border-color: var(--color-accent); color: var(--color-text); }
.route-links svg { width: 18px; height: 18px; color: var(--color-accent-text); }

/* ---------- 17. Elevation drawing (development hero) ---------- */
.elevation { width: 100%; height: auto; color: var(--color-accent); }
.elevation .thin { stroke-width: 1; opacity: 0.45; }
.elevation [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-inout) 0.4s forwards; }
.elevation { color: var(--gold-600); }
.elevation-wrap { padding: var(--space-6); border: 1px solid var(--color-border-strong); background:
  linear-gradient(rgba(122, 90, 14, 0.1) 1px, transparent 1px) 0 0/32px 32px,
  linear-gradient(90deg, rgba(122, 90, 14, 0.1) 1px, transparent 1px) 0 0/32px 32px, var(--color-surface-elevated); }
.elevation-caption { margin-top: var(--space-3); font-size: var(--text-caption); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }

/* ---------- 18. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--color-accent); color: var(--color-accent-contrast); }
.cta-band__inner { display: grid; gap: var(--space-8); align-items: center; padding-block: var(--space-20); }
.cta-band .t-h2 { max-width: 40rem; font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem); line-height: 1.05; }
.cta-band p { margin-top: var(--space-4); max-width: 34rem; font-size: var(--text-body-large); }
.cta-band__mark { position: absolute; right: -60px; bottom: -40px; width: 420px; opacity: 0.12; filter: brightness(0); pointer-events: none; }
.cta-band .btn--outline { border-color: var(--color-accent-contrast); }
.cta-band .btn--outline:hover { background: var(--color-accent-contrast); color: var(--color-accent); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; } }
@media (max-width: 768px) { .cta-band__inner { padding-block: var(--space-16); } .cta-band__mark { width: 260px; } }

/* ---------- 19. Footer ---------- */
/* Footer: deep gold that steps down from the gold CTA band above it */
.site-footer { background: radial-gradient(80% 55% at 12% 0%, rgba(216, 170, 60, 0.32), rgba(216, 170, 60, 0) 70%), #8A5F17; color: rgba(255, 255, 255, 0.88); font-size: 0.9375rem; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-100); text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-10); padding-block: var(--space-16) var(--space-8); }
.footer-about p { margin-top: var(--space-5); max-width: 22rem; }
.footer-col h2 { margin-bottom: var(--space-4); font-family: var(--font-body); font-size: var(--text-caption); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: #F9EBC6; }
.footer-col ul { list-style: none; display: grid; gap: var(--space-1); }
.footer-col li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-bottom { display: grid; gap: var(--space-5); padding-block: var(--space-8); border-top: 1px solid rgba(255, 255, 255, 0.28); font-size: var(--text-small); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.eho { display: inline-flex; align-items: center; gap: var(--space-2); }
.eho svg { width: 26px; height: 26px; color: #FFFFFF; }
.footer-disclaimer { max-width: 60rem; font-size: var(--text-caption); line-height: 1.6; color: rgba(255, 255, 255, 0.84); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
/* Phones and tablets: link lists sit two-up instead of one long column */
@media (max-width: 859px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8) var(--space-5); padding-block: var(--space-12) var(--space-6); }
  .footer-about, .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- 20. Mobile CTA bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-cta);
  display: flex; gap: var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: rgba(252, 249, 243, 0.97); border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px rgba(51, 36, 26, 0.06);
}
.mobile-bar .btn { flex: 1; min-height: 48px; padding-inline: var(--space-3); }
@media (max-width: 767px) { body.has-mobile-bar { padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- 21. Toasts ---------- */
.toast-stack { display: grid; gap: var(--space-3); }
.toast-region { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: var(--z-toast); display: grid; gap: var(--space-3); width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
@media (max-width: 767px) { .has-mobile-bar .toast-region { bottom: calc(var(--mobile-bar-height) + var(--space-3) + env(safe-area-inset-bottom)); } .toast-region { left: var(--space-4); right: var(--space-4); width: auto; } }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: 22px 1fr 32px; gap: var(--space-3); align-items: start;
  padding: var(--space-4); background: var(--color-surface-elevated); color: var(--color-text);
  border: 1px solid var(--color-border); border-left: 4px solid var(--color-info); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: toast-in 220ms ease;
}
.toast[data-type="success"] { border-left-color: var(--color-success); }
.toast[data-type="error"] { border-left-color: var(--color-danger); }
.toast[data-type="warning"] { border-left-color: var(--color-warning); }
.toast__icon svg { width: 22px; height: 22px; }
.toast[data-type="success"] .toast__icon { color: var(--color-success); }
.toast[data-type="error"] .toast__icon { color: var(--color-danger); }
.toast[data-type="warning"] .toast__icon { color: var(--color-warning); }
.toast[data-type="info"] .toast__icon { color: var(--color-info); }
.toast__title { font-weight: 500; line-height: 1.35; }
.toast__msg { margin-top: 2px; font-size: var(--text-small); color: var(--color-text-muted); }
.toast__close { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--color-text-muted); cursor: pointer; }
.toast__close:hover { background: var(--color-surface); color: var(--color-text); }
.toast__close svg { width: 16px; height: 16px; }
.toast.is-leaving { animation: toast-out 180ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 22. Legal pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.75rem; margin: var(--space-12) 0 var(--space-4); }
.prose h3 { font-size: var(--text-h4); font-weight: 500; margin: var(--space-8) 0 var(--space-3); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose p, .prose li { color: var(--color-text); }

/* ---------- 23. Utilities ---------- */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.muted { color: var(--color-text-muted); }
.max-prose { max-width: 40rem; }



/* ---------- 24. Motion keyframes ---------- */
@keyframes enter-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rise-line { from { transform: translateY(110%); } to { transform: none; } }
@keyframes line-draw { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
body.has-intro { --intro: 1.9s; }
html.intro-seen body.has-intro { --intro: 0.1s; }
.enter { animation: enter-up 1s var(--ease-out) both; animation-delay: calc(var(--intro) + var(--i, 0) * 110ms); }

/* ---------- 25. Intro (home only, once per visit) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, var(--color-surface-elevated), var(--color-background) 70%);
  color: var(--gold-500);
  animation: intro-out 0.85s var(--ease-inout) 1.35s forwards;
}
.intro-seen .intro { display: none; }
.intro__inner { display: grid; justify-items: center; animation: intro-fade 0.5s ease 1.2s forwards; }
.intro__mark { width: min(170px, 40vw); height: auto; overflow: visible; }
.intro__ring { stroke-dasharray: 1; stroke-dashoffset: 1; transform-box: fill-box; transform-origin: center; transform: rotate(90deg); animation: draw 0.9s var(--ease-inout) 0.1s forwards; }
.intro__bar { opacity: 0; transform-box: fill-box; transform: translateY(70%); animation: bar-up 0.7s var(--ease-out) forwards; animation-delay: calc(0.35s + var(--b) * 0.08s); }
.intro__word { margin: var(--space-5) 0 0; font-family: var(--font-brand); font-size: 2.5rem; line-height: 1; color: var(--color-text); letter-spacing: 0.6em; opacity: 0; animation: word-in 0.8s var(--ease-out) 0.55s forwards; }
.intro__sub { margin: var(--space-3) 0 0; font-size: 0.625rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-text-muted); opacity: 0; animation: enter-up 0.6s ease 0.8s forwards; }
@keyframes bar-up { to { opacity: 1; transform: none; } }
@keyframes word-in { to { opacity: 1; letter-spacing: 0.12em; } }
@keyframes intro-fade { to { opacity: 0; transform: translateY(-14px); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- 26. Home hero: walkthrough notes ---------- */
.hero-x { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--gold-100) 0%, var(--color-background) 78%); }
.hero-x::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 82% 22%, rgba(216, 170, 60, 0.22), rgba(216, 170, 60, 0) 70%); }
.hero-x__watermark { position: absolute; z-index: -1; left: -10%; bottom: -24%; width: min(78vw, 940px); height: auto; color: var(--gold-500); opacity: 0.08; }
.hero-x__grid { display: grid; gap: var(--space-8) var(--space-12); align-items: center; padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero-x__copy { container-type: inline-size; min-width: 0; }
.hero-x__title { font-size: clamp(2.5rem, 11.6cqi, 6rem); line-height: 1.02; color: var(--color-text); }
.hero-x__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-x__title .line > .enter { display: inline-block; animation-name: rise-line; animation-duration: 1.1s; }
.rotator { display: inline-grid; }
.rotator em { grid-area: 1 / 1; white-space: nowrap; color: var(--color-accent-display); opacity: 0; transform: translateY(0.4em); filter: blur(6px); transition: opacity 0.5s ease, transform 0.8s var(--ease-out), filter 0.5s ease; }
.rotator em.is-active { opacity: 1; transform: none; filter: none; }
.rotator em.is-leaving { opacity: 0; transform: translateY(-0.4em); filter: blur(6px); }
.hero-x__body .t-lede { max-width: 34rem; }
.hero-x__body .btn-row { margin-top: var(--space-8); }
.hero-x__proof { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-8); font-size: var(--text-small); color: var(--color-text-muted); }
.hero-x__proof li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-x__proof svg { width: 16px; height: 16px; color: var(--gold-600); }
/* Phones and tablets read title, photo, then text. Desktop puts the photo beside both. */
@media (min-width: 1100px) {
  .hero-x__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 var(--space-16); }
  .hero-x__copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-x__body { grid-column: 1; grid-row: 2; align-self: start; padding-top: var(--space-6); }
  .hero-x .scope { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 559px) {
  .hero-x__body .btn-row, .cta-band .btn-row { flex-direction: column; }
  .hero-x__body .btn-row .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
}

.scope { margin: 0; container: scope / inline-size; }
.scope__frame { position: relative; aspect-ratio: 4 / 3; background: var(--stone-200); box-shadow: var(--shadow-lg); }
.scope__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); animation: develop 2s ease both; animation-delay: calc(var(--intro) + 0.3s); }
@keyframes develop { from { filter: grayscale(1) brightness(1.15) contrast(0.9); } }
.scope__scan { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 2px; background: var(--gold-400); box-shadow: 0 0 20px 4px rgba(216, 170, 60, 0.55); opacity: 0; animation: scan 1.7s var(--ease-inout) both; animation-delay: calc(var(--intro) + 0.45s); }
@keyframes scan { 0% { opacity: 0; transform: none; } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(100cqi - 2px)); } }
.scope__corners { position: absolute; inset: -10px; pointer-events: none; --c: var(--gold-500); --l: 28px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px var(--l);
  background-repeat: no-repeat; }
.scope__tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 6px 10px; background: rgba(255, 255, 255, 0.94); color: var(--color-text); box-shadow: var(--shadow-sm); font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.scope__tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--gold-400); vertical-align: 1px; }
.scope__pins { list-style: none; position: absolute; inset: 0; z-index: 3; }
.pin { position: absolute; left: var(--x); top: var(--y); }
.pin__dot { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-400); color: var(--brown-950); font-size: 0.75rem; font-weight: 500; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 4px 12px rgba(51, 36, 26, 0.3); animation: pin-pop 0.55s var(--ease-out) both; animation-delay: calc(var(--intro) + 1.8s + var(--i) * 0.32s); }
.pin__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); opacity: 0; animation: pulse 3s ease-out 3; animation-delay: calc(var(--intro) + 3s + var(--i) * 0.4s); }
@keyframes pin-pop { from { transform: scale(0); } 60% { transform: scale(1.15); } to { transform: none; } }
@keyframes pulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
.pin__label { display: none; }
@container scope (min-width: 530px) {
  .pin__label { display: block; position: absolute; top: 0; transform: translateY(-50%); width: max-content; max-width: 8.5rem; padding: 7px 10px; background: rgba(255, 255, 255, 0.95); color: var(--color-text); box-shadow: 0 6px 18px rgba(51, 36, 26, 0.18); font-size: 0.75rem; line-height: 1.3; clip-path: inset(0 100% 0 0); animation: label-in 0.6s var(--ease-out) forwards; animation-delay: calc(var(--intro) + 2s + var(--i) * 0.32s); }
  .pin__label b { display: block; margin-bottom: 1px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-text); }
  .pin--right .pin__label { left: 22px; }
  .pin--left .pin__label { right: 22px; clip-path: inset(0 0 0 100%); }
  .scope__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@keyframes label-in { to { clip-path: inset(0 0 0 0); } }
.scope__cap { margin-top: var(--space-4); }
/* Phones: smaller tag so it clears the roof note; the four notes sit under the photo as a 2x2 set */
@container scope (max-width: 529.98px) {
  .scope__tag { left: 10px; top: 10px; padding: 5px 8px; font-size: 0.625rem; letter-spacing: 0.1em; }
  .scope__tag::before { width: 6px; height: 6px; margin-right: 6px; }
}
.scope__legend { list-style: none; counter-reset: pin; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.scope__legend li { counter-increment: pin; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-3); align-items: start; padding-top: var(--space-3); border-top: 1px solid var(--color-border-strong); }
.scope__legend li::before { content: counter(pin); grid-row: 1 / span 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-400); color: var(--brown-950); font-size: 0.75rem; font-weight: 600; }
.scope__legend b { font-size: 0.75rem; font-weight: 600; line-height: 1.6; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-text); }
.scope__legend li > span { font-size: var(--text-small); line-height: 1.4; color: var(--color-text); }
.motion .scope__legend li { animation: enter-up 0.6s var(--ease-out) both; animation-delay: calc(var(--intro) + 2s + var(--i) * 0.32s); }
.scope__note { margin-top: var(--space-3); font-size: var(--text-caption); letter-spacing: 0.04em; color: var(--color-text-muted); }

/* ---------- 27. Situation ticker ---------- */
.marquee { overflow: hidden; background: var(--color-accent); color: var(--brown-950); border-block: 1px solid var(--gold-500); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee__item { padding-block: 1.05rem; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1rem + 1.5vw, 2.375rem); line-height: 1; white-space: nowrap; }
.marquee__mark { flex: none; width: 2.25rem; height: auto; margin-inline: 1.5rem; opacity: 0.85; }

/* ---------- 28. Situation list (home): calm hover ---------- */
.sit-sec__head { display: grid; gap: var(--space-6); align-items: end; margin-bottom: var(--space-12); }
@media (min-width: 960px) { .sit-sec__head { grid-template-columns: 1.25fr 0.75fr; gap: var(--space-16); } }
.sit-index { list-style: none; border-top: 1px solid var(--color-border-strong); }
.sit {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) 80px; align-items: center; gap: var(--space-4);
  padding: var(--space-6) var(--space-2); border-bottom: 1px solid var(--color-border-strong);
  color: var(--color-text); text-decoration: none;
}
.sit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent-tint); opacity: 0; transition: opacity 0.35s ease; }
.sit:hover, .sit:focus-visible { color: var(--color-text); }
.sit:hover::before, .sit:focus-visible::before { opacity: 1; }
.sit__num { align-self: start; padding-top: 0.55rem; font-size: var(--text-caption); font-weight: 500; letter-spacing: var(--tracking-label); color: var(--color-accent-text); }
.sit__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 0.9rem + 2.2vw, 2.75rem); line-height: 1.08; letter-spacing: -0.01em; transition: color 0.3s ease; }
.sit:hover .sit__title, .sit:focus-visible .sit__title { color: var(--color-accent-text); }
.sit__desc { display: block; margin-top: var(--space-2); max-width: 36rem; font-size: 1rem; color: var(--color-text-muted); }
.sit__thumb { width: 80px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-200); border-radius: var(--radius-sm); }
.sit__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.sit:hover .sit__thumb img, .sit:focus-visible .sit__thumb img { transform: scale(1.04); }
.sit__arrow { display: none; width: 48px; height: 48px; place-items: center; border: 1px solid var(--color-border-strong); border-radius: 50%; color: var(--color-text); transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease-out); }
.sit__arrow svg { width: 18px; height: 18px; }
.sit:hover .sit__arrow, .sit:focus-visible .sit__arrow { background: var(--color-accent); border-color: var(--color-accent); transform: translateX(3px); }
@media (min-width: 720px) {
  .sit { gap: var(--space-8); padding: var(--space-6) var(--space-4); grid-template-columns: 3rem minmax(0, 1fr) 160px 48px; }
  .sit__thumb { width: 160px; }
  .sit__arrow { display: grid; }
}

/* ---------- 29. Statement + photo strip ---------- */
.statement { padding-top: clamp(5rem, 12vw, 9.5rem); overflow: hidden; background: var(--color-surface); }
.statement__text { max-width: 62rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--color-text); }
.statement__text em { font-style: italic; color: var(--color-accent-display); }
.motion .statement__text .w { opacity: 0.22; transition: opacity 0.3s linear; }
.motion .statement__text .w.is-lit { opacity: 1; }
.strip { margin-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.strip__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__set { display: flex; flex: none; gap: var(--space-4); padding-right: var(--space-4); }
.strip__item { margin: 0; width: clamp(220px, 26vw, 380px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-200); border-radius: var(--radius-sm); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.strip__item:hover img { transform: scale(1.03); }
.strip__note { margin-top: var(--space-4); padding-bottom: clamp(4rem, 8vw, 6.5rem); font-size: var(--text-caption); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }

/* ---------- 30. Stages, collage, stats ---------- */
.motion .stage__bar { transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease-out); }
.stages.is-in .stage__bar { transform: none; }
.stages.is-in .stage:nth-child(2) .stage__bar { transition-delay: 0.12s; }
.stages.is-in .stage:nth-child(3) .stage__bar { transition-delay: 0.24s; }
.stages.is-in .stage:nth-child(4) .stage__bar { transition-delay: 0.36s; }
.stages.is-in .stage:nth-child(5) .stage__bar { transition-delay: 0.48s; }

.collage { position: relative; max-width: 520px; margin-top: var(--space-12); padding-bottom: 16%; }
.collage figure { margin: 0; overflow: hidden; background: var(--stone-200); will-change: transform; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__a { width: 70%; aspect-ratio: 4 / 5; }
.collage__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--color-surface); box-shadow: var(--shadow-lg); }

.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); margin-bottom: var(--space-16); }
.stat { padding-top: var(--space-5); border-top: 1px solid rgba(195, 146, 28, 0.45); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; color: var(--gold-400); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { display: block; max-width: 15rem; margin-top: var(--space-3); font-size: var(--text-small); color: var(--color-on-dark-muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 31. Scroll reveals ---------- */
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--ri, 0) * 80ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 32. Footer wordmark ---------- */
.footer-giant { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); overflow: hidden; padding-top: var(--space-4); }
.footer-giant span { font-family: var(--font-brand); font-size: clamp(5rem, 2rem + 16vw, 16rem); line-height: 0.8; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7); }
.footer-giant__mark { flex: none; width: clamp(80px, 17vw, 240px); height: auto; color: #FFFFFF; }

/* ---------- 33. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .intro { display: none; }
  .marquee__track, .strip__track { animation: none !important; }
  .strip { overflow-x: auto; }
  .rotator em { filter: none; }
}
