/* ==========================================================================
   site.css — SHARED shell for the Turtle Creek / Leasebox property template.
   Uses only the custom properties declared in tokens.css.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-deep);
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 20px -10px rgba(32, 80, 63, 0.8);
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: var(--on-brand);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(32, 80, 63, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn--light {
  background: var(--bg);
  color: var(--brand);
}

.btn--light:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  color: var(--header-fg);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(27, 33, 30, 0.4);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: var(--logo-height);
  width: auto;
}

.primary-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--header-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.primary-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.header-call {
  min-height: 2.75rem;
  padding-block: 0.5rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 899px) {
  .header-call {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--gutter) 1rem;
    display: none;
  }

  .site-header[data-open="true"] .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav a {
    display: block;
    padding: 0.85rem 0.75rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }

  .primary-nav .nav-call {
    margin-top: 0.5rem;
    background: var(--brand);
    color: var(--on-brand);
    text-align: center;
  }
}

@media (min-width: 900px) {
  .primary-nav .nav-call {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3.5rem, 4vw + 2rem, 6.5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--brand {
  background: var(--brand);
  color: var(--on-brand);
}

.section--brand a:not(.btn) {
  color: var(--on-brand);
}

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

.section-head p {
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.section--brand .section-head p {
  color: var(--on-brand-muted);
}

.prose {
  max-width: 68ch;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 4vw, 4rem);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy .lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 48ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.hero-meta a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta a:hover {
  color: var(--brand);
}

.hero-meta svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--brand);
}

.hero-media {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  background: var(--brand-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg);
  color: var(--brand);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-media {
    clip-path: inset(0 0 0 100% round var(--radius));
    animation: hero-reveal 900ms var(--ease) 120ms forwards;
  }

  .js .hero-copy > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 700ms var(--ease) forwards;
  }

  .js .hero-copy > :nth-child(2) {
    animation-delay: 90ms;
  }

  .js .hero-copy > :nth-child(3) {
    animation-delay: 180ms;
  }

  .js .hero-copy > :nth-child(4) {
    animation-delay: 270ms;
  }
}

@keyframes hero-reveal {
  to {
    clip-path: inset(0 0 0 0 round var(--radius));
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Rent sheet (pricing table) ---------- */
.rent-sheet {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.rent-sheet table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-variant-numeric: tabular-nums;
}

.rent-sheet caption {
  text-align: left;
  padding: 1rem 1.25rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.rent-sheet th,
.rent-sheet td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-top: 1px solid var(--line);
}

.rent-sheet thead th {
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-top: 0;
}

.rent-sheet .label-short {
  display: none;
}

.rent-sheet th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 700;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--line);
}

.rent-sheet tbody tr:hover th[scope="row"] {
  background: var(--brand-soft);
}

@media (max-width: 599px) {
  .rent-sheet table {
    min-width: 0;
    width: 100%;
  }

  .rent-sheet th,
  .rent-sheet td {
    padding: 0.65rem 0.45rem;
    font-size: 0.92rem;
  }

  .rent-sheet th[scope="row"] {
    padding-left: 0.75rem;
  }

  .rent-sheet td.price:last-child,
  .rent-sheet th:last-child {
    padding-right: 0.75rem;
  }

  .rent-sheet .label-long {
    display: none;
  }

  .rent-sheet .label-short {
    display: inline;
  }

  .rent-sheet td.price[colspan] {
    white-space: normal;
  }

  .rent-sheet caption {
    padding: 0.85rem 0.75rem 0.4rem;
  }

  /* Baths is 1.0 on every plan; square footage stays. */
  .rent-sheet .col-baths {
    display: none;
  }

  .rent-sheet .price {
    font-size: 1rem;
  }
}

.rent-sheet th[scope="row"] a {
  text-decoration: none;
}

.rent-sheet th[scope="row"] a:hover {
  text-decoration: underline;
}

.rent-sheet td.num {
  text-align: right;
}

.rent-sheet tbody tr:hover {
  background: var(--brand-soft);
}

.rent-sheet .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  white-space: nowrap;
}

.rent-sheet tfoot td {
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding-block: 0.75rem;
}

/* ---------- Floor plan filter and cards ---------- */
.fp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 1.25rem;
}

.fp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp-filters button {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.fp-filters button:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.fp-filters button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.fp-status {
  margin: 0 0 0 auto;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: start;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.fp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.fp-card[hidden] {
  display: none;
}

.fp-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 1rem;
}

.fp-card figure a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

.fp-card figure a:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.fp-card figure img,
.fp-card figure svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.fp-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fp-body h3 {
  margin: 0;
}

.fp-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.fp-specs div {
  display: inline-flex;
  gap: 0.3rem;
}

.fp-specs div + div::before {
  content: "·";
  color: var(--line);
  margin-right: 0.3rem;
}

.fp-specs dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.fp-specs dd {
  margin: 0;
}

.fp-price {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}

.fp-price li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.fp-price strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.fp-placeholder {
  width: 100%;
  height: 100%;
  color: var(--ink-muted);
}

/* ---------- Two-column feature sections ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.feature--flip > figure {
  order: 2;
}

.feature figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--brand-soft);
}

.feature figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .feature--flip > figure {
    order: 0;
  }
}

/* Fee list */
.fee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.fee-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.fee-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--brand-olive);
}

.fine-print {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Feature lists (amenities) */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.check-list svg {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  color: var(--brand);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-grid li:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid a {
  display: block;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--brand-soft);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

@media (max-width: 899px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(10, 14, 12, 0.92);
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #d6ddd9;
  font-size: 0.95rem;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox button svg {
  width: 1.4rem;
  height: 1.4rem;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Neighborhood ---------- */
.directions {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.directions .prose {
  font-size: 1.08rem;
}

.map-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.map-card h3 {
  margin-bottom: 0.25rem;
}

.map-card address {
  font-style: normal;
  color: var(--on-brand-muted);
  margin-bottom: 1rem;
}

.map-card .btn + .btn {
  margin-top: 0.5rem;
}

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

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.contact-info h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.35rem;
}

.contact-info h3:first-of-type {
  margin-top: 0;
}

.contact-info address {
  font-style: normal;
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.lead-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow);
  min-height: 24rem;
}

.lead-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

.lead-form__fallback {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.lead-form[data-state="failed"] .lead-form__fallback {
  font-size: 1.1rem;
  color: var(--ink);
  padding: 1rem;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: var(--on-brand-muted);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--on-brand);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  align-items: flex-start;
}

.footer-brand img {
  height: 2.5rem;
  width: auto;
  background: var(--bg);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.footer-brand address {
  font-style: normal;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  font-size: 0.92rem;
}

.cookie-notice p {
  flex: 1 1 24rem;
  margin: 0;
}

.cookie-notice[hidden] {
  display: none;
}

/* ---------- Scroll reveal (one authored moment: sections settle in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(2.5rem, 4vw, 4rem) clamp(3rem, 5vw, 6rem);
}

.legal .prose h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
}

.legal .prose h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.legal .prose ul {
  padding-left: 1.25rem;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .cookie-notice,
  .nav-toggle,
  .lead-form {
    display: none !important;
  }
}
