/* ==========================================================================
   Lucera Group - design system
   Warm, high-end hospitality. Rounded surfaces, soft motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (from the Lucera brand package) */
  --sand: #e7dcc9;          /* outer page canvas */
  --cream: #f6f1e8;         /* light sections */
  --paper: #fbf8f3;         /* cards on cream */
  --linen: #efe6d8;         /* subtle fills */
  --espresso: #1b1712;      /* darkest */
  --umber: #2a231b;         /* dark sections */
  --olive: #3a3226;         /* dark cards */
  --copper: #8f4d22;        /* accent text on light (AA, including on sand) */
  --caramel: #c98b55;       /* accent on dark, buttons */
  --caramel-soft: #e2b98f;
  --ember: #b5532d;         /* laurel red-orange */

  /* Semantic */
  --bg: var(--sand);
  --surface: var(--cream);
  --surface-raised: var(--paper);
  --text: #1f1b16;
  --text-muted: #675d53;
  --text-on-dark: #f3ece1;
  --text-on-dark-muted: #c2b7a8;
  --accent: var(--copper);
  --accent-on-dark: var(--caramel);
  --line: rgba(31, 27, 22, 0.12);
  --line-on-dark: rgba(243, 236, 225, 0.14);
  --focus: var(--copper);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2vw, 2.875rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-hero: clamp(2.75rem, 1.5rem + 4.6vw, 5.5rem);

  /* Space (8pt rhythm) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --frame: clamp(0.5rem, 0.25rem + 1vw, 1rem);
  --max: 1240px;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(42, 35, 27, 0.06), 0 2px 8px rgba(42, 35, 27, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(42, 35, 27, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(27, 23, 18, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.15, 1);
  --t-fast: 220ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  /* Layers */
  --z-nav: 40;
  --z-menu: 60;
  --z-skip: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: page-in 600ms var(--ease-out) both;
}

body.is-leaving { opacity: 0; transition: opacity 120ms var(--ease-soft); }

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

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

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

figure { margin: 0; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

h1 em, h2 em, h3 em, .serif-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.on-dark h1 em, .on-dark h2 em, .on-dark h3 em, .on-dark .serif-italic { color: var(--accent-on-dark); }

::selection { background: var(--caramel-soft); color: var(--espresso); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--espresso);
  color: var(--text-on-dark);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.frame {
  margin: var(--frame);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.surface-cream { background: var(--surface); }
.surface-paper { background: var(--paper); }
.surface-dark { background: var(--umber); color: var(--text-on-dark); }
.surface-espresso { background: var(--espresso); color: var(--text-on-dark); }

.on-dark { color: var(--text-on-dark); }
.on-dark .muted, .on-dark .lead { color: var(--text-on-dark-muted); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split--top { align-items: start; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s-5);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.on-dark .eyebrow { color: var(--accent-on-dark); }

/* Dark surfaces get the light focus ring */
.on-dark, .menu, .site-header:not(.is-scrolled):not([data-theme="light"]) { --focus: var(--caramel); }
.eyebrow--center { justify-content: center; }

.display { font-size: var(--fs-3xl); }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-xl); line-height: 1.2; }
.h4 {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

.muted { color: var(--text-muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: var(--s-5); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--espresso);
  --btn-fg: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--fs-sm)/1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--t-med) var(--ease-out),
    color var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out);
}
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) { .btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } }
@media (hover: hover) { .btn:hover .icon { transform: translateX(3px); } }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary { --btn-bg: var(--caramel); --btn-fg: var(--espresso); }
@media (hover: hover) { .btn--primary:hover { --btn-bg: var(--caramel-soft); } }

@media (hover: hover) { .btn--dark:hover { --btn-bg: var(--olive); } }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
@media (hover: hover) {
  .btn--ghost:hover {
    --btn-bg: color-mix(in srgb, currentColor 8%, transparent);
    border-color: currentColor;
    box-shadow: none;
  }
}

.btn--block { width: 100%; }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-block: 0.25rem;
  transition: border-color var(--t-med) var(--ease-out), gap var(--t-med) var(--ease-out);
}
.link-arrow .icon { width: 1rem; height: 1rem; }
@media (hover: hover) { .link-arrow:hover { border-color: currentColor; gap: 0.75rem; } }
.on-dark .link-arrow { color: var(--accent-on-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: calc(var(--frame) + 0.5rem) 0 auto 0;
  z-index: var(--z-nav);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: calc(100% - 2 * var(--frame) - 1rem);
  max-width: 1320px;
  margin-inline: auto;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  border-radius: var(--r-pill);
  color: var(--text-on-dark);
  border: 1px solid transparent;
  transition:
    background-color var(--t-med) var(--ease-out),
    color var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out);
}

.site-header.is-scrolled .nav,
.site-header[data-theme="light"] .nav {
  background: rgba(251, 248, 243, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-color: rgba(31, 27, 22, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.site-header.is-hidden .nav { transform: translateY(calc(-100% - 2rem)); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.brand__mark {
  width: 132px;
  aspect-ratio: 1399 / 390;
  background: currentColor;
  -webkit-mask: url("../brand/lucera-wordmark.png") center / contain no-repeat;
  mask: url("../brand/lucera-wordmark.png") center / contain no-repeat;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease-out);
}
@media (hover: hover) { .nav__links a:hover { background: color-mix(in srgb, currentColor 9%, transparent); } }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--caramel);
  transform: translateX(-50%);
}

.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out);
}
@media (hover: hover) { .nav__toggle:hover { background: color-mix(in srgb, currentColor 16%, transparent); } }

@media (min-width: 1040px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu sheet */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--frame) + 1rem) var(--gutter) 2rem;
  background: var(--umber);
  color: var(--text-on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out),
    visibility 0s linear var(--t-med);
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out),
    visibility 0s;
}
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__links { list-style: none; margin: 0; padding: 3rem 0 0; display: grid; gap: 0.25rem; align-content: start; }
.menu__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.2;
}
.menu__links a[aria-current="page"] { color: var(--caramel); }
.menu__foot { display: grid; gap: 0.25rem; padding-top: 1.5rem; color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
.menu__foot a:not(.btn) { display: flex; align-items: center; min-height: 44px; }
@media (max-height: 560px) {
  .menu__links { padding-top: 1.25rem; }
  .menu__links a { padding: 0.6rem 0; font-size: 1.5rem; }
}

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 2 * var(--frame));
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--espresso);
  color: var(--text-on-dark);
}

.hero__media,
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img,
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-settle 2.6s var(--ease-soft) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero__media::after,
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 23, 18, 0.78) 0%, rgba(27, 23, 18, 0.45) 45%, rgba(27, 23, 18, 0.1) 80%),
    linear-gradient(180deg, rgba(27, 23, 18, 0.6) 0%, rgba(27, 23, 18, 0.2) 28%, rgba(27, 23, 18, 0.4) 60%, rgba(27, 23, 18, 0.94) 100%);
}

/* Even tint under the gradients so text stays legible on bright photos */
.hero__media::before,
.page-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(27, 23, 18, 0.32);
}
.hero__media::after,
.page-hero__media::after { z-index: 1; }

.hero__content {
  align-self: end;
  padding-top: 9rem;
  padding-bottom: var(--s-8);
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 350;
  max-width: 15ch;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero .lead { margin-top: var(--s-5); color: rgba(243, 236, 225, 0.82); max-width: 54ch; }
.hero .btn-row { margin-top: var(--s-6); }

.hero__strip {
  border-top: 1px solid var(--line-on-dark);
  background: rgba(27, 23, 18, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.hero__strip li { position: relative; text-align: center; }
.hero__strip li + li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--caramel);
}

.hero__strip ul.is-wrapped li + li::before { display: none; }
/* Balance wrapped rows (3 + 2 rather than 4 + 1) */
.hero__strip ul.is-wrapped { max-width: 42rem; }

/* Sub-page hero */
.page-hero {
  min-height: clamp(460px, 62svh, 640px);
  display: flex;
  align-items: flex-end;
  background: var(--espresso);
  color: var(--text-on-dark);
}
.page-hero .container { padding-top: 9rem; padding-bottom: var(--s-8); }
.page-hero h1 { font-size: var(--fs-3xl); max-width: 18ch; font-weight: 350; }
.page-hero .lead { margin-top: var(--s-5); color: rgba(243, 236, 225, 0.82); }

/* ---------- Statement (inspired by the dark band in the reference) ---------- */
.statement {
  text-align: center;
}
.statement__emblem {
  width: 108px;
  margin: 0 auto var(--s-6);
}
.statement blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.statement p.lead { margin: var(--s-6) auto 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
  .stat { padding-right: 0; }
}
.on-dark .stats, .stats.on-dark { border-color: var(--line-on-dark); }
.stat {
  padding: var(--s-6) var(--s-5) var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.on-dark .stat { border-color: var(--line-on-dark); }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__value sup, .stat__value small { font-size: 0.45em; vertical-align: super; color: var(--accent); }
.on-dark .stat__value sup, .on-dark .stat__value small { color: var(--accent-on-dark); }
.stat__label { display: block; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); max-width: 26ch; }
.on-dark .stat__label { color: var(--text-on-dark-muted); }

@media (min-width: 900px) {
  .stat + .stat { padding-left: var(--s-5); border-left: 1px solid var(--line); }
  .on-dark .stat + .stat { border-left-color: var(--line-on-dark); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out);
}
@media (hover: hover) { .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(154, 84, 39, 0.25); } }
.card h3 { font-size: var(--fs-xl); line-height: 1.2; }
.card p { color: var(--text-muted); }

.card--dark {
  background: var(--olive);
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
  box-shadow: none;
}
.card--dark p { color: var(--text-on-dark-muted); }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--linen);
  color: var(--copper);
}
.card__icon .icon { width: 1.4rem; height: 1.4rem; }
.card--dark .card__icon { background: rgba(201, 139, 85, 0.14); color: var(--caramel); }

.card__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--accent);
}

.card__foot { margin-top: auto; padding-top: var(--s-3); }

/* Audience cards with image */
.audience {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.audience__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--text-on-dark);
  background: var(--olive);
}
.audience__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-soft);
}
.audience__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(27, 23, 18, 0) 25%, rgba(27, 23, 18, 0.88) 78%);
}
@media (hover: hover) { .audience__card:hover img { transform: scale(1.05); } }
.audience__card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.audience__card p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.audience__card .link-arrow { color: var(--caramel-soft); }
.audience__tag {
  position: absolute;
  top: var(--s-5);
  left: var(--s-5);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(27, 23, 18, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 139, 85, 0.45);
  color: var(--caramel-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(27, 23, 18, 0.25);
}

/* ---------- Media ---------- */
.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--linen);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }

.media__badge {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  right: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: rgba(251, 248, 243, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: var(--fs-sm);
}
.media__badge strong { display: block; font-size: var(--fs-base); }
.media__badge .card__icon { width: 44px; height: 44px; border-radius: 12px; }

/* Parallax-lite image (JS sets --shift) */
[data-parallax] img { transform: translateY(var(--shift, 0)) scale(1.08); transition: transform 80ms linear; }

/* ---------- Feature list ---------- */
.features { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.on-dark .feature { border-color: var(--line-on-dark); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.on-dark .feature:last-child { border-bottom-color: var(--line-on-dark); }
.feature .card__icon { width: 44px; height: 44px; border-radius: 14px; }
.feature h3 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: 0.25rem; }
.feature p { font-size: var(--fs-sm); color: var(--text-muted); }
.on-dark .feature p { color: var(--text-on-dark-muted); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.checklist .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; color: var(--copper); }
.on-dark .checklist .icon { color: var(--caramel); }

/* ---------- Comparison table ---------- */
.compare {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-on-dark);
  overflow: hidden;
  background: rgba(58, 50, 38, 0.45);
}
/* On a light page the panel needs its own solid dark ground so the text stays readable */
.compare.on-dark { background: var(--umber); }
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.compare caption { text-align: left; padding: var(--s-5); color: var(--text-on-dark-muted); caption-side: bottom; font-size: var(--fs-xs); }
.compare th, .compare td {
  padding: 1.05rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-on-dark);
}
.compare thead th {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  background: rgba(27, 23, 18, 0.35);
}
.compare thead th.is-lucera { color: var(--caramel); }
.compare tbody th { font-weight: 500; color: var(--text-on-dark); width: 24%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.is-lucera { background: rgba(201, 139, 85, 0.08); color: var(--text-on-dark); }
.compare td { color: var(--text-on-dark-muted); }
.compare tbody tr { transition: background-color var(--t-fast) var(--ease-out); }
@media (hover: hover) { .compare tbody tr:hover { background: rgba(243, 236, 225, 0.03); } }

.verdict { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.verdict__icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
}
.verdict__icon .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.verdict--yes .verdict__icon { background: #a9c79a; color: #1f3318; }
.verdict--no .verdict__icon { background: #e6a596; color: #4a1a10; }
.verdict--mid .verdict__icon { background: #e8cf8b; color: #4a3708; }

.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-on-dark-muted); }

/* ---------- Process / timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-6);
}
.step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--caramel), rgba(201, 139, 85, 0.15));
}
.step:last-child::before { display: none; }
.step:last-child { padding-bottom: 0; }
.step__num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(201, 139, 85, 0.5);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--copper);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
@media (hover: hover) { .step:hover .step__num { background: var(--caramel); color: var(--espresso); } }
.step h3 { font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; padding-top: 0.85rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); max-width: 52ch; }

.on-dark .step__num { background: transparent; color: var(--caramel); }
.on-dark .step p { color: var(--text-on-dark-muted); }

@media (min-width: 960px) { .sticky { position: sticky; top: 7rem; } }

/* ---------- Residences ---------- */
.residence {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
@media (hover: hover) { .residence:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.residence .media { border-radius: calc(var(--r-xl) - var(--s-4)); }
.residence__body { padding: var(--s-2) var(--s-4) var(--s-4); display: grid; gap: var(--s-4); }
.residence h3 { font-size: var(--fs-xl); }

.meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--linen);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
}
.meta .icon { width: 0.95rem; height: 0.95rem; color: var(--copper); }

.gallery {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(2, 1fr);
}
.gallery .media:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.gallery .media img { transition: transform 1.2s var(--ease-soft); }
@media (hover: hover) { .gallery .media:hover img { transform: scale(1.04); } }

.profile { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
@media (min-width: 980px) {
  .profile { grid-template-columns: 0.8fr 1.2fr; }
  .profile--flip { grid-template-columns: 1.2fr 0.8fr; }
  .profile--flip .profile__info { order: 2; }
}
.profile__info { display: grid; gap: var(--s-5); }
.profile__info h2 { font-size: var(--fs-2xl); }

/* ---------- Quotes ---------- */
.quote {
  display: grid;
  gap: var(--s-5);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.quote__stars { display: flex; gap: 2px; color: var(--caramel); }
.quote__stars .icon { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.5; }
.quote figcaption { font-size: var(--fs-sm); color: var(--text-muted); }
.quote figcaption strong { color: var(--text); font-weight: 600; }

.big-quote {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.big-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.big-quote figcaption { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: 0.04em; }
.big-quote .quote__stars { justify-content: center; margin-bottom: var(--s-5); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.faq details[open] { border-color: rgba(154, 84, 39, 0.3); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--copper);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--caramel); color: var(--espresso); }
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease-out);
}
.faq details[open] .faq__body { grid-template-rows: 1fr; }
.faq details.is-closing .faq__body { grid-template-rows: 0fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 1.5rem 1.4rem; color: var(--text-muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem);
  background: var(--espresso);
  color: var(--text-on-dark);
  text-align: center;
}
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(27, 23, 18, 0.45), rgba(27, 23, 18, 0.9) 75%); }
.cta h2 { font-size: var(--fs-3xl); max-width: 16ch; margin-inline: auto; font-weight: 350; }
.cta .lead { margin: var(--s-5) auto 0; color: rgba(243, 236, 225, 0.8); }
.cta .btn-row { justify-content: center; margin-top: var(--s-6); }

/* ---------- Pillars (legal / insurance) ---------- */
/* Cards share row tracks so icons, titles, intros, and lists line up across a row */
@supports (grid-template-rows: subgrid) {
  .pillars > .pillar {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: var(--s-4);
    align-content: start;
  }
  .pillars > .pillar > * { margin: 0; }
  .pillars > .pillar .card__icon { justify-self: start; }
  .pillars > .pillar ol { align-content: start; }
}
.pillar ol {
  list-style: none;
  counter-reset: pillar;
  margin: var(--s-2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.pillar li {
  counter-increment: pillar;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.pillar li::before {
  content: counter(pillar);
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field label, .field legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.field .req { color: var(--copper); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(31, 27, 22, 0.18);
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a5427' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(31, 27, 22, 0.32); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 4px rgba(201, 139, 85, 0.22);
  background: #fff;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #b3261e; }
.field__error { display: none; font-size: var(--fs-xs); color: #b3261e; font-weight: 600; }
.field.has-error .field__error { display: flex; gap: 0.4rem; align-items: center; }

.choice { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--copper); flex: none; }

.form-status {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: #e7efe0; color: #24361b; }
.form-status--err { background: #f6e1db; color: #6b1d10; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--s-8) var(--s-5);
}
.form-success.is-visible { display: block; animation: page-in var(--t-slow) var(--ease-out); }
.form-success .card__icon { margin: 0 auto var(--s-5); width: 64px; height: 64px; border-radius: 50%; }

.panel {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.contact-list a, .contact-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: rgba(243, 236, 225, 0.06);
  border: 1px solid var(--line-on-dark);
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
@media (hover: hover) { .contact-list a:hover { background: rgba(243, 236, 225, 0.1); border-color: rgba(201, 139, 85, 0.5); } }
.contact-list small { display: block; color: var(--text-on-dark-muted); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-list .card__icon { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: var(--text-on-dark);
  padding-block: var(--s-9) var(--s-6);
}
.footer__top {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line-on-dark);
}
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.3fr 2fr; } }
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  text-align: center;
}
.footer__brand img { width: 220px; }
.footer__brand p { margin-top: var(--s-5); color: var(--text-on-dark-muted); max-width: 36ch; font-size: var(--fs-sm); }
.footer__tagline { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--text-on-dark); }
.footer__tagline em { color: var(--caramel); }
.footer__cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer__cols h2 {
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
}
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer__cols a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--t-fast) var(--ease-out);
}
@media (hover: hover) { .footer__cols a:hover { color: var(--text-on-dark); } }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
}

/* ---------- Misc ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--linen);
  color: var(--copper);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.on-dark .pill { background: rgba(201, 139, 85, 0.14); color: var(--caramel); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.note {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--linen);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.note .icon { color: var(--copper); margin-top: 2px; }

.stack-sm > * + * { margin-top: var(--s-3); }
.stack > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-6); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img, .page-hero__media img { transform: none; }
  [data-parallax] img { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .hero__strip li + li::before { display: none; }
  .hero__strip ul { gap: 0.4rem 1.25rem; padding-inline: var(--gutter); }
  .audience__card { min-height: 420px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Phones: layout fixes ---------- */

/* Long values (the email address) wrap inside their card instead of spilling out */
.contact-list a, .contact-list div { grid-template-columns: auto minmax(0, 1fr); }
.contact-list a > span:last-child { overflow-wrap: break-word; }

/* Comparison tables become one card per row */
@media (max-width: 859px) {
  .compare__scroll { overflow: visible; }
  .compare table { display: flex; flex-direction: column; min-width: 0; }
  .compare thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .compare caption { order: 2; display: block; }
  .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; }
  .compare tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4);
    padding: var(--s-4); border-bottom: 1px solid var(--line-on-dark);
  }
  .compare tbody th, .compare td.is-lucera,
  .compare td.is-lucera + td:last-child { grid-column: 1 / -1; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody tr:hover { background: none; }
  .compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
  .compare tbody th {
    width: auto; padding: 0 0 var(--s-2); border: 0;
    font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; line-height: 1.3;
  }
  .compare td { padding: var(--s-2) 0 0; border: 0; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
  }
  .compare td.is-lucera { margin-bottom: var(--s-1); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
  .compare td.is-lucera::before { color: var(--caramel); }
  .compare td .verdict { gap: 0.5rem; }
}
@media (max-width: 480px) {
  /* Side-by-side answers line up even when one label wraps to two lines */
  .compare td.is-lucera + td:not(:last-child), .compare td.is-lucera + td + td {
    display: grid; grid-template-rows: minmax(2.3rem, auto) auto; align-content: start;
  }
  .compare td.is-lucera + td:not(:last-child)::before, .compare td.is-lucera + td + td::before { align-self: end; }
}

/* Single-column layouts (phones and small tablets) */
@media (max-width: 959px) {
  /* The inquiry form comes before the contact details */
  .contact-split > .panel { order: -1; }
}

@media (max-width: 640px) {
  /* Home hero fits the first screen, highlights strip included */
  .hero__content { padding-top: 6.5rem; padding-bottom: var(--s-6); }
  .hero__strip ul { padding-block: 0.9rem; }


  /* Room for the full email address on one line */
  .contact-list a, .contact-list div { padding-inline: var(--s-4); }
  .contact-list a > span:last-child { font-size: var(--fs-sm); }
}

/* Touch screens (phones and tablets): touch targets of at least 44px */
@media (max-width: 640px), (pointer: coarse) {
  .link-arrow { min-height: 44px; }
  .footer__cols ul { gap: 0; }
  .footer__cols a { min-height: 44px; }
  .choice { padding-block: 0.6rem; }
  .choice input { width: 22px; height: 22px; margin-top: 0; }
}

/* Shorter phones (iPhone SE, small Androids) */
@media (max-width: 640px) and (max-height: 760px) {
  .hero__content { padding-top: 5.5rem; }
  .hero .btn-row { margin-top: var(--s-5); }
}

/* ---------- Phones: designed for the small screen ---------- */

/* Gallery controls only exist on phones, where galleries swipe */
.gallery__nav { display: none; }

@media (max-width: 899px) {
  /* No parallax on touch screens (smoother scrolling on iOS) */
  [data-parallax] img { transform: none; }
}

@media (max-width: 640px) {
  :root { --section: 3.5rem; }

  /* Hero photos: each page can set its own focal point for the tall crop */
  .hero__media img, .page-hero__media img { object-position: var(--img-focus, 50% 50%); }

  /* Eyebrows drop the leading rule so long labels wrap cleanly */
  .eyebrow::before { display: none; }

  .split, .profile { gap: var(--s-6); }
  .media--tall { aspect-ratio: 4 / 3; }

  /* Audience cards: a swipeable row with the next card peeking in */
  .audience {
    display: flex;
    gap: var(--s-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 2px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .audience::-webkit-scrollbar { display: none; }
  .audience__card { flex: 0 0 86%; min-height: 380px; padding: var(--s-5); scroll-snap-align: start; }

  /* Residence galleries: swipe one photo at a time */
  .gallery {
    display: flex;
    gap: var(--s-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .media, .gallery .media:first-child { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .gallery__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
    margin-top: calc(var(--s-2) - var(--s-6));
  }
  .gallery__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
    cursor: pointer;
    transition: opacity var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
  }
  .gallery__btn:active { background: var(--linen); }
  .gallery__btn:disabled { opacity: 0.35; cursor: default; }
  .gallery__btn .icon { width: 18px; height: 18px; }
  .gallery__count {
    min-width: 3.5em;
    margin: 0;
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }

  /* Home residence cards: compact chips */
  .residence { gap: var(--s-4); }
  .residence__body { padding: 0 var(--s-2) var(--s-2); gap: var(--s-3); }
  .residence .meta { gap: 0.35rem; }
  .residence .meta li { padding: 0.35rem 0.7rem; }
  .meta__long { display: none; }

  /* Stats: smaller figures, labels use the full column */
  .stats { column-gap: var(--s-4); }
  .stat { padding: var(--s-5) 0 var(--s-4); }
  .stat__value { font-size: 2.25rem; }
  .stat__label { max-width: none; font-size: 0.875rem; }

  /* Feature list: tighter rows, decorative photo hidden */
  .feature { padding: var(--s-4) 0; }
  .hide-phone { display: none; }

  /* Footer: link groups side by side */
  .site-footer { padding-block: var(--s-8) var(--s-5); }
  .footer__top { gap: var(--s-6); padding-bottom: var(--s-6); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__cols h2 { margin-bottom: var(--s-2); }
  .footer__brand { width: auto; }
  .footer__brand img { width: 190px; }
}

/* Touch screens: a brief press effect instead of hover lifts */
@media (hover: none) {
  .residence:active, .audience__card:active, .card--hover:active { transform: scale(0.985); }
}

/* Phones in landscape: headlines sized to the short screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero h1 { font-size: 2.5rem; max-width: 22ch; }
  .hero__content { padding-top: 5.5rem; padding-bottom: var(--s-5); }
  .page-hero { min-height: 0; }
  .page-hero h1 { font-size: 2.25rem; max-width: 24ch; }
  .page-hero .container { padding-top: 5.5rem; padding-bottom: var(--s-6); }
}

/* Hide the "Powered by Netlify" badge that Netlify injects on free-plan sites */
#nl-badge-frame { display: none !important; }
