/* ============================================================
   SI-Digi — Luxury Real-Estate Landing Page
   Palette C (Dual): warm dark folds + cream editorial folds
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Dark palette */
  --dark-bg: #0E0C0A;
  --dark-bg-elev: #15110D;
  --dark-divider: #211C17;
  --dark-text: #F4ECDF;
  --dark-text-muted: #B5A88F;
  --dark-text-faint: #6E6452;

  /* Light palette */
  --light-bg: #F5F0E6;
  --light-bg-elev: #ECE5D5;
  --light-card: #FFFEFA;
  --light-text: #1A1612;
  --light-text-muted: #4F463A;
  --light-divider: #D8CFBA;

  /* Accent */
  --accent: #B8924A;
  --accent-hover: #C9A05A;
  --accent-soft: #8E6F36;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --section-pad-y: clamp(5rem, 10vw, 9rem);
  --container-max: 1280px;
  --container-narrow: 820px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--light-text);
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---------- Section palettes ---------- */
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
  padding: var(--section-pad-y) 0;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: var(--section-pad-y) 0;
}

.section-divider {
  border-top: 1px solid var(--light-divider);
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--dark-text-muted);
  margin-top: 1.25rem;
  line-height: 1.55;
}

.section-light .section-sub {
  color: var(--light-text-muted);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.display-md {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
}

.display-sm {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.1;
}

.section-dark .display em {
  color: var(--accent);
}

.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.overline-light {
  color: var(--accent-hover);
}

.lede {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.45;
  color: var(--light-text-muted);
  margin-top: 1.5rem;
  max-width: 36em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  background: rgba(14, 12, 10, 0);
  backdrop-filter: blur(0);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(14, 12, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 0.875rem clamp(1.5rem, 4vw, 3rem);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark-text);
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}

.brand-mark {
  font-style: italic;
  color: var(--accent);
}

.brand-tail {
  color: var(--dark-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--dark-text);
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--dark-text);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark-bg) !important;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark-bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(184, 146, 74, 0.4);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.section-light .btn-secondary {
  color: var(--light-text);
  border-color: var(--light-text);
}

.section-light .btn-secondary:hover {
  background: var(--light-text);
  color: var(--light-bg);
}

.section-dark .btn-secondary {
  color: var(--dark-text);
  border-color: var(--dark-text);
}

.section-dark .btn-secondary:hover {
  background: var(--dark-text);
  color: var(--dark-bg);
}

.link-arrow {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: padding 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow:hover {
  padding-bottom: 4px;
  color: var(--accent-hover);
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--dark-text);
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.55) 0%, rgba(14, 12, 10, 0.65) 45%, rgba(14, 12, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 12, 10, 0.5) 0%, rgba(14, 12, 10, 0.1) 60%, rgba(14, 12, 10, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.hero .overline {
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}

.hero .display {
  max-width: 18ch;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.25s forwards;
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  color: var(--dark-text-muted);
  line-height: 1.4;
  margin-bottom: 3rem;
  max-width: 32ch;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.4s forwards;
}

.hero-microcopy {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--dark-text-faint);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.7s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
  transition: color 0.25s var(--ease);
}

.hero-scroll:hover {
  color: var(--accent);
}

.hero-scroll svg {
  animation: scrollNudge 2.4s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero-scroll { display: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- Lead form (hero & final CTA) ---------- */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.875rem;
  align-items: stretch;
  max-width: 880px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.55s forwards;
}

.lead-form input[type="url"],
.lead-form input[type="email"],
.lead-form input[type="text"] {
  background: rgba(244, 236, 223, 0.05);
  border: 1px solid rgba(244, 236, 223, 0.25);
  border-radius: 2px;
  padding: 1rem 1.125rem;
  color: var(--dark-text);
  font-size: 0.9375rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  min-width: 0;
}

.lead-form input::placeholder {
  color: rgba(244, 236, 223, 0.5);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(244, 236, 223, 0.08);
}

.lead-form .btn {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.lead-form-dark input[type="url"],
.lead-form-dark input[type="email"],
.lead-form-dark input[type="text"] {
  background: rgba(244, 236, 223, 0.04);
  border-color: rgba(244, 236, 223, 0.18);
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
  color: var(--accent);
  transition: opacity 0.3s var(--ease);
}

.form-status.error {
  color: #E89B7B;
}

.lead-form.submitted input,
.lead-form.submitted .btn {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 880px) {
  .lead-form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .lead-form .btn { width: 100%; }
}

/* ============================================================
   SECTION 2 — THE PROBLEM
   ============================================================ */
.problem {
  text-align: left;
}

.problem-points {
  list-style: none;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.problem-points li {
  padding-top: 1.25rem;
  position: relative;
}

.problem-points .rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.problem-points p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--light-text);
}

@media (max-width: 768px) {
  .problem-points {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   SECTION 3 — WHAT YOU GET
   ============================================================ */
.wyg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--accent);
  line-height: 1;
  min-width: 2.5rem;
}

.feature-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.feature-list p {
  font-size: 0.9375rem;
  color: var(--light-text-muted);
  line-height: 1.55;
}

/* Browser-frame preview */
.browser-frame {
  border-radius: 6px;
  overflow: hidden;
  background: var(--light-card);
  border: 1px solid var(--light-divider);
  box-shadow:
    0 1px 1px rgba(26, 22, 18, 0.04),
    0 30px 60px -25px rgba(26, 22, 18, 0.25),
    0 8px 20px -10px rgba(26, 22, 18, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.browser-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 1px rgba(26, 22, 18, 0.04),
    0 40px 70px -25px rgba(26, 22, 18, 0.3),
    0 12px 24px -10px rgba(26, 22, 18, 0.18);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--light-bg-elev);
  border-bottom: 1px solid var(--light-divider);
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--light-divider);
}

.browser-dot:nth-child(1) { background: #D9755B; }
.browser-dot:nth-child(2) { background: #D9B856; }
.browser-dot:nth-child(3) { background: #8DA374; }

.browser-url {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--light-text-muted);
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

.browser-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.browser-frame figcaption {
  padding: 1.5rem;
  background: var(--light-card);
  border-top: 1px solid var(--light-divider);
}

@media (max-width: 900px) {
  .wyg-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ============================================================
   SECTION 4 — RECENT WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.75rem;
}

.work-tile {
  background: var(--light-card);
  border: 1px solid var(--light-divider);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.work-tile .work-link {
  display: block;
  height: 100%;
}

.work-tile:not(.work-placeholder):hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -28px rgba(26, 22, 18, 0.3);
}

.work-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-bg-elev);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-tile:not(.work-placeholder):hover .work-image img {
  transform: scale(1.04);
}

.work-meta {
  padding: 1.75rem 1.75rem 2rem;
}

.overline-tile {
  margin-bottom: 0.875rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
}

.work-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.work-price {
  font-size: 0.9375rem;
  color: var(--light-text-muted);
  margin-bottom: 1.25rem;
}

.work-featured .work-image { aspect-ratio: 16 / 11; }
.work-featured .work-title { font-size: 1.875rem; }

.work-placeholder {
  opacity: 0.55;
}

.placeholder-image {
  background:
    repeating-linear-gradient(
      45deg,
      var(--light-bg-elev) 0,
      var(--light-bg-elev) 10px,
      var(--light-bg) 10px,
      var(--light-bg) 20px
    );
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .work-featured { grid-column: 1 / -1; }
}

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

/* ============================================================
   SECTION 5 — HOW IT WORKS
   ============================================================ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--light-divider);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4rem, 7vw, 6rem);
  color: var(--accent);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.step p {
  font-size: 1rem;
  color: var(--light-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .steps::before { display: none; }
}

/* ============================================================
   SECTION 6 — PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.tier {
  position: relative;
  background: var(--dark-bg-elev);
  border: 1px solid var(--dark-divider);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.tier:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
}

.tier-featured {
  background: linear-gradient(180deg, rgba(184, 146, 74, 0.08) 0%, var(--dark-bg-elev) 60%);
  border-color: var(--accent-soft);
  transform: translateY(-8px);
}

.tier-featured:hover { transform: translateY(-12px); }

.tier-badge {
  position: absolute;
  top: -0.6875rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--dark-bg);
  padding: 0.3rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}

.tier-head {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--dark-divider);
  margin-bottom: 1.75rem;
}

.tier-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 1.25rem;
}

.tier-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--dark-text);
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  margin-bottom: 0.875rem;
}

.price-currency {
  font-size: 0.6em;
  color: var(--dark-text-muted);
  margin-right: 0.1em;
}

.price-suffix {
  font-size: 0.32em;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dark-text-muted);
}

.price-custom {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--accent);
}

.tier-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--dark-text-muted);
}

.tier-features {
  list-style: none;
  margin-bottom: 2.25rem;
  flex: 1;
}

.tier-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--dark-text);
}

.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.tier-cta {
  width: 100%;
}

.tier-featured .tier-cta {
  background: var(--accent);
  color: var(--dark-bg);
}

.tier-featured .tier-cta:hover {
  background: var(--accent-hover);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .tier-featured { transform: none; }
  .tier-featured:hover { transform: translateY(-3px); }
}

/* ============================================================
   SECTION 7 — ABOUT
   ============================================================ */
.about-body {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--light-text);
}

.about-body p {
  margin-bottom: 1.5rem;
}

.about-body strong {
  font-weight: 500;
  color: var(--light-text);
}

/* ============================================================
   SECTION 8 — FINAL CTA
   ============================================================ */
.final-cta {
  text-align: left;
}

.final-cta .display {
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dark-text-muted);
  line-height: 1.45;
  margin-bottom: 3rem;
  max-width: 36ch;
}

/* ============================================================
   SECTION 9 — FOOTER
   ============================================================ */
.footer {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 3rem;
  border-top: 1px solid var(--dark-divider);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-link {
  font-size: 1rem;
  color: var(--dark-text);
  border-bottom: 1px solid var(--dark-divider);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.footer-mark em {
  color: var(--accent);
  font-weight: 500;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--dark-text-muted);
  max-width: 28ch;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-text-faint);
  margin-bottom: 0.875rem;
}

.footer-contact a {
  font-size: 1rem;
  color: var(--dark-text);
  border-bottom: 1px solid var(--dark-divider);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 0.875rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--dark-divider);
  border-radius: 50%;
  color: var(--dark-text-muted);
  transition: all 0.25s var(--ease);
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--dark-divider);
  font-size: 0.8125rem;
  color: var(--dark-text-faint);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.footer-bottom a {
  color: var(--dark-text-muted);
  transition: color 0.25s var(--ease);
}

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

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
}

/* ============================================================
   MODAL (Tier 3 — Brokerage inquiry)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdropIn 0.3s var(--ease);
}

.modal-card {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-text);
  border: 1px solid var(--dark-divider);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.35s var(--ease);
}

.modal-card .display { color: var(--dark-text); }
.modal-card .display em { color: var(--accent); }

.modal-sub {
  margin-bottom: 2.25rem;
  max-width: 38ch;
}

.modal-card .lead-form {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text-muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.modal-close:hover {
  color: var(--accent);
  background: var(--dark-bg-elev);
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Intersection-observer reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero .overline,
  .hero .display,
  .hero-sub,
  .lead-form,
  .hero-microcopy,
  .hero-scroll {
    opacity: 1;
    animation: none;
  }
}

/* ============================================================
   Hero responsive tweaks
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
    min-height: 92dvh;
    padding-top: 7rem;
    padding-bottom: 6rem;
  }
  .hero .display { max-width: none; }
  .hero-sub { max-width: none; margin-bottom: 2.25rem; }
}
