/* ============================================================
   TONE REALTY CO — Design Tokens
   Americana / civic palette: navy, brick red, cream, forest green
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 6rem);

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

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.4rem;
  --radius-lg: 0.65rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-accent: 'DM Sans', sans-serif;
}

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f9f6ee;
  --color-surface: #ffffff;
  --color-surface-2: #fdfbf5;
  --color-surface-offset: #f1ebd9;
  --color-surface-offset-2: #e9e0c8;
  --color-surface-dynamic: #e2d8bd;
  --color-divider: #e2dac2;
  --color-border: #d8cca8;

  /* Text */
  --color-text: #1a2233;
  --color-text-muted: #5b5847;
  --color-text-faint: #9a9377;
  --color-text-inverse: #f9f6ee;

  /* Primary — Colonial Navy */
  --color-primary: #1c3557;
  --color-primary-hover: #142842;
  --color-primary-active: #0e1d2f;
  --color-primary-highlight: #d6dee7;

  /* Secondary accent — Brick Red */
  --color-red: #a32b2b;
  --color-red-hover: #832121;
  --color-red-active: #601717;
  --color-red-highlight: #ecd4d4;

  /* Tertiary accent — Federal Green (from brand mark) */
  --color-green: #2f6b4f;
  --color-green-hover: #24533d;
  --color-green-active: #1a3d2d;
  --color-green-highlight: #d3e2d9;

  /* Gold hairline accent */
  --color-gold: #b3893c;
  --color-gold-hover: #93701f;
  --color-gold-highlight: #ecdfc0;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 260 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.02 260 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 260 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #11151f;
  --color-surface: #161b28;
  --color-surface-2: #1a2030;
  --color-surface-offset: #1e2536;
  --color-surface-offset-2: #232b3f;
  --color-surface-dynamic: #2a3348;
  --color-divider: #2a3348;
  --color-border: #364160;

  --color-text: #e9e6da;
  --color-text-muted: #a3a08d;
  --color-text-faint: #6d6a5c;
  --color-text-inverse: #11151f;

  --color-primary: #7fa3d1;
  --color-primary-hover: #a2bfdf;
  --color-primary-active: #c1d4ea;
  --color-primary-highlight: #253248;

  --color-red: #d9767a;
  --color-red-hover: #e59a9d;
  --color-red-active: #efb9bb;
  --color-red-highlight: #3a2529;

  --color-green: #6fae8c;
  --color-green-hover: #8ec3a6;
  --color-green-active: #abd6be;
  --color-green-highlight: #22352c;

  --color-gold: #d3ab5f;
  --color-gold-hover: #e2c081;
  --color-gold-highlight: #3a3221;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #11151f;
    --color-surface: #161b28;
    --color-surface-2: #1a2030;
    --color-surface-offset: #1e2536;
    --color-surface-offset-2: #232b3f;
    --color-surface-dynamic: #2a3348;
    --color-divider: #2a3348;
    --color-border: #364160;
    --color-text: #e9e6da;
    --color-text-muted: #a3a08d;
    --color-text-faint: #6d6a5c;
    --color-text-inverse: #11151f;
    --color-primary: #7fa3d1;
    --color-primary-hover: #a2bfdf;
    --color-primary-active: #c1d4ea;
    --color-primary-highlight: #253248;
    --color-red: #d9767a;
    --color-red-hover: #e59a9d;
    --color-red-active: #efb9bb;
    --color-red-highlight: #3a2529;
    --color-green: #6fae8c;
    --color-green-hover: #8ec3a6;
    --color-green-active: #abd6be;
    --color-green-highlight: #22352c;
    --color-gold: #d3ab5f;
    --color-gold-hover: #e2c081;
    --color-gold-highlight: #3a3221;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
  }
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.wrap--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-red);
  display: inline-block;
}
[data-theme='dark'] .eyebrow::before {
  background: var(--color-red);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}
h4,
.h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-height: 44px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn--primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-red-hover);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1.5px solid color-mix(in oklab, var(--color-text-inverse) 55%, transparent);
}
.btn--ghost:hover {
  border-color: var(--color-text-inverse);
  background: color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-xs);
}
.btn--block {
  width: 100%;
}

/* ============================================================
   Header / Nav
   ============================================================ */

.topbar {
  background: var(--color-primary-active);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
}
.topbar a {
  color: inherit;
  text-decoration: none;
}
.topbar__contact {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.topbar__contact span,
.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.topbar__contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.topbar .wrap > span {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .topbar .wrap > span:last-child {
    display: none;
  }
}
@media (max-width: 640px) {
  .topbar__contact span {
    display: none;
  }
  .brand__name small {
    display: none;
  }
  .brand__mark {
    width: 38px;
    height: 45px;
  }
  .brand__name strong {
    font-size: var(--text-base);
  }
  .nav {
    gap: var(--space-3);
  }
  .nav__actions {
    gap: var(--space-2);
  }
  .nav__actions .btn--sm {
    display: none;
  }
}
.topbar__flag {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.topbar__flag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand__mark {
  width: 46px;
  height: 55px;
  flex-shrink: 0;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.brand__name small {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links {
  display: flex;
  gap: var(--space-6);
}
.nav__links a {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--color-primary);
  border-color: var(--color-red);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, #0e1d2f 78%, transparent) 0%,
    color-mix(in oklab, #0e1d2f 88%, transparent) 55%,
    color-mix(in oklab, #0e1d2f 96%, transparent) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-block: clamp(var(--space-24), 12vw, var(--space-32));
}
.hero .eyebrow {
  color: #e7b7ae;
}
.hero .eyebrow::before {
  background: #e7b7ae;
}
.hero h1 {
  margin-block: var(--space-5);
  color: #fff;
  font-size: clamp(2.25rem, 1.1rem + 3.6vw, 4rem);
  max-width: 18ch;
}
.hero__lede {
  font-size: var(--text-lg);
  max-width: 52ch;
  color: color-mix(in oklab, #fff 88%, transparent);
  margin-bottom: var(--space-8);
}
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}
.hero__ctas .btn--ghost {
  color: #fff;
  border-color: color-mix(in oklab, #fff 55%, transparent);
}
.hero__ctas .btn--ghost:hover {
  border-color: #fff;
  background: color-mix(in oklab, #fff 12%, transparent);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  border-top: 1px solid color-mix(in oklab, #fff 25%, transparent);
  padding-top: var(--space-6);
  max-width: 720px;
}
.hero__stats dt {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
}
.hero__stats dd {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: color-mix(in oklab, #fff 75%, transparent);
  margin-top: var(--space-1);
}

/* Simple interior page header (no photo) */
.page-header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.page-header .eyebrow {
  color: #e7b7ae;
}
.page-header .eyebrow::before {
  background: #e7b7ae;
}
.page-header h1 {
  color: #fff;
  font-size: var(--text-3xl);
  margin-block: var(--space-4) var(--space-3);
}
.page-header p {
  color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent);
  font-size: var(--text-lg);
  max-width: 60ch;
}
.breadcrumb {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--color-text-inverse) 65%, transparent);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   Cards & Grids
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  color: var(--color-primary);
  white-space: nowrap;
}
.stat-card span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.feature-card:hover .feature-card__media img {
  transform: scale(1.06);
}
.feature-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.feature-card__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.feature-card__tag {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
}
.feature-card__link {
  margin-top: auto;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.feature-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-out);
}
.feature-card__link:hover svg {
  transform: translateX(3px);
}

/* Split section (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.split--reverse .split__media {
  order: 2;
}
.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.split__body p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.split__list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.split__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.split__list svg {
  width: 20px;
  height: 20px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   Video section
   ============================================================ */

.video-block {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
  align-items: center;
}
.video-block .eyebrow {
  color: #e7b7ae;
}
.video-block .eyebrow::before {
  background: #e7b7ae;
}
.video-block h2 {
  color: #fff;
}
.video-block p {
  color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent);
  margin-top: var(--space-4);
}
.video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-wrapper__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, #0e1d2f 30%, transparent);
}
.video-wrapper__play button {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: color-mix(in oklab, #fff 92%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease-out);
}
.video-wrapper__play button:hover {
  transform: scale(1.08);
}
.video-wrapper__play svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}
.video-wrapper.is-playing .video-wrapper__play {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Team
   ============================================================ */

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  border: 3px solid var(--color-gold);
}
.team-card h3 {
  margin-bottom: var(--space-1);
}
.team-card__role {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}
.team-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.team-card__contact {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.team-card__contact a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.team-card__contact a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.team-card__contact a:hover {
  text-decoration: underline;
}

/* ============================================================
   Timeline (About page)
   ============================================================ */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}
.timeline__item {
  border-top: 3px solid var(--color-red);
  padding-top: var(--space-4);
}
.timeline__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.timeline__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.gallery-filters button {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.gallery-filters button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-filters button.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item.gallery-item--video {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item.gallery-item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.gallery-item.gallery-item--video video {
  object-position: left center;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, #0e1d2f 82%, transparent) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}
.gallery-item__overlay span {
  color: #fff;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}
.gallery-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in oklab, #fff 90%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.gallery-item__play svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in oklab, #05070c 90%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__content {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: 100%;
}
.lightbox__content img,
.lightbox__content video {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in oklab, #fff 12%, transparent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.lightbox__close:hover {
  background: color-mix(in oklab, #fff 22%, transparent);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in oklab, #fff 12%, transparent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__nav:hover {
  background: color-mix(in oklab, #fff 22%, transparent);
}
.lightbox__nav--prev {
  left: var(--space-6);
}
.lightbox__nav--next {
  right: var(--space-6);
}

/* ============================================================
   CTA band / Contact
   ============================================================ */

.cta-band {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: var(--text-xl);
}
.cta-band p {
  color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent);
  margin-top: var(--space-2);
}
.cta-band__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.info-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.info-list__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-list__icon svg {
  width: 20px;
  height: 20px;
}
.info-list strong {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 700;
}
.info-list a,
.info-list span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.info-list a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.map-frame {
  margin-top: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-frame iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.form-field {
  margin-bottom: var(--space-5);
}
.form-field label {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.form-field--checkbox input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}
label.form-checkbox-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-bottom: 0;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}
.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-success {
  display: block;
  color: var(--color-green);
}
.form-status.is-error {
  display: block;
  color: var(--color-red);
}
.form-status.is-pending {
  display: block;
  color: var(--color-text-muted);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-primary-active);
  color: color-mix(in oklab, var(--color-text-inverse) 88%, transparent);
  padding-block: clamp(var(--space-16), 6vw, var(--space-20)) var(--space-8);
}
.footer .brand {
  color: #fff;
}
.footer .brand__name small {
  color: color-mix(in oklab, #fff 65%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid color-mix(in oklab, #fff 14%, transparent);
}
.footer p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 34ch;
  color: color-mix(in oklab, #fff 70%, transparent);
}
.footer h5 {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, #fff 55%, transparent);
  margin-bottom: var(--space-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  color: color-mix(in oklab, #fff 82%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: color-mix(in oklab, #fff 55%, transparent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .nav__links,
  .topbar__contact {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .video-block,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-item.gallery-item--video {
    grid-column: span 2;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-4,
  .timeline,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.gallery-item--video {
    grid-column: span 1;
    grid-row: span 1;
  }
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  padding: var(--space-8);
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-nav__links a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
}
.mobile-nav__meta {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.mobile-nav__meta a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Listings (property-for-sale cards & unit mix table)
   ============================================================ */
.listing__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  background: var(--color-red-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.listing__address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}
.listing__address svg {
  width: 16px;
  height: 16px;
  color: var(--color-red);
  flex-shrink: 0;
}
.unit-mix {
  margin-top: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.unit-mix__row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.4fr;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}
.unit-mix__row:last-child {
  border-bottom: none;
}
.unit-mix__row span:first-child {
  font-weight: 700;
  color: var(--color-text);
}
.unit-mix__row span:nth-child(2) {
  color: var(--color-text-muted);
}
.unit-mix__row span:last-child {
  color: var(--color-text-muted);
  text-align: right;
}
.unit-mix__row--total {
  background: var(--color-surface-offset);
}
.unit-mix__row--total span {
  font-weight: 700;
  color: var(--color-primary) !important;
}
@media (max-width: 640px) {
  .unit-mix__row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    text-align: left;
  }
  .unit-mix__row span:last-child {
    text-align: left;
  }
}
