/* ===================================================================
   TYSHA — Editorial Luxury Landing
   Fraunces (display) · Geist (sans) · JetBrains Mono (ledger)
   =================================================================== */

/* ─── Reset ───────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img,svg,video { display:block; max-width:100%; height:auto; }
button { background:none; border:none; font:inherit; color:inherit; cursor:pointer; }
a { color: inherit; text-decoration: none; }
input,select,textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
:focus-visible { outline: 1px solid var(--sage); outline-offset: 3px; border-radius: 2px; }

/* ─── Design tokens ───────────────────────────────────────────────── */
:root {
  /* OKLCH palette — every neutral tinted toward brand hue */
  --paper:        oklch(0.952 0.012 80);    /* warm cream — main bg */
  --paper-2:      oklch(0.928 0.018 82);    /* deeper cream — cards on cream */
  --paper-3:      oklch(0.890 0.020 84);    /* hairline cream */
  --ink:          oklch(0.205 0.020 165);   /* deep ink-green — main text on cream / main bg dark */
  --ink-2:        oklch(0.265 0.022 162);   /* one step lighter */
  --ink-3:        oklch(0.345 0.024 160);   /* hairlines on dark */
  --sage:         oklch(0.610 0.045 158);   /* primary accent */
  --sage-2:       oklch(0.740 0.030 158);   /* lighter sage */
  --moss:         oklch(0.420 0.045 162);   /* darker sage for hover */
  --water:        oklch(0.480 0.045 220);   /* river accent */
  --copper:       oklch(0.620 0.110 55);    /* warm rare accent */

  --cream-text:    oklch(0.205 0.020 165);
  --cream-text-70: oklch(0.205 0.020 165 / 0.82);
  --cream-text-55: oklch(0.205 0.020 165 / 0.65);
  --cream-text-35: oklch(0.205 0.020 165 / 0.45);
  --cream-hair:    oklch(0.205 0.020 165 / 0.18);
  --cream-hair-strong: oklch(0.205 0.020 165 / 0.36);

  --dark-text:     oklch(0.952 0.012 80);
  --dark-text-70:  oklch(0.952 0.012 80 / 0.85);
  --dark-text-55:  oklch(0.952 0.012 80 / 0.70);
  --dark-text-35:  oklch(0.952 0.012 80 / 0.42);
  --dark-hair:     oklch(0.952 0.012 80 / 0.15);
  --dark-hair-strong: oklch(0.952 0.012 80 / 0.32);

  /* Type */
  --f-display: "Source Serif 4", "Cormorant Garamond", "Times New Roman", serif;
  --f-sans:    "Manrope", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --f-mono:    "DM Mono", "SF Mono", ui-monospace, monospace;

  /* Scale (1.333 perfect fourth) */
  --t-xs:  11px;
  --t-sm:  13px;
  --t-base:15px;
  --t-md:  17px;
  --t-lg:  22px;
  --t-xl:  30px;
  --t-2xl: 42px;
  --t-3xl: 64px;
  --t-4xl: 96px;
  --t-5xl: clamp(72px, 12vw, 196px);
  --t-6xl: clamp(96px, 18vw, 280px);

  /* Spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;
  --sp-11: 192px;

  /* Easing — exponential ease-outs */
  --e-out:        cubic-bezier(0.16, 1, 0.30, 1);
  --e-out-soft:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-out-strong: cubic-bezier(0.19, 1, 0.22, 1);
  --e-quart:      cubic-bezier(0.25, 1, 0.50, 1);

  --max-w: 1640px;
  --gutter: clamp(20px, 4vw, 72px);
}

/* ─── Base ────────────────────────────────────────────────────────── */
html { background: var(--ink); }
body {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark-text);
  background: var(--ink);
  letter-spacing: -0.005em;
}

/* Typographic primitives */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 60, "wght" 400;
  letter-spacing: -0.015em;
  line-height: 0.97;
  font-feature-settings: "liga", "kern", "lnum";
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 400;
  font-weight: 400;
}

.ledger {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ledger-lg {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--t-sm);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

::selection { background: var(--sage); color: var(--paper); }

/* ─── Page chrome ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Universal grain (fixed, pointer-none) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Custom cursor (desktop only) */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, label, [data-magnet], [data-cursor] { cursor: none; }
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 28px; height: 28px;
    border-radius: 9999px;
    border: 1px solid var(--dark-text-55);
    background: transparent;
    pointer-events: none;
    z-index: 200;
    mix-blend-mode: difference;
    transform: translate3d(-100px, -100px, 0);
    transition:
      width 0.45s var(--e-out),
      height 0.45s var(--e-out),
      border-color 0.4s var(--e-out),
      background-color 0.4s var(--e-out);
  }
  .cursor.is-hover { width: 74px; height: 74px; background: oklch(0.952 0.012 80 / 0.15); border-color: var(--dark-text-70); }
  .cursor.is-down  { width: 18px; height: 18px; }
  .cursor-dot {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 5px; height: 5px;
    border-radius: 9999px;
    background: var(--paper);
    pointer-events: none;
    z-index: 201;
    mix-blend-mode: difference;
    transform: translate3d(-100px, -100px, 0);
  }
}

/* ─── Loader ──────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 300;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
  padding: var(--sp-7);
  transition: opacity 0.9s var(--e-out), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  align-self: center;
  justify-self: center;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  gap: 0.02em;
}
.loader__mark span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderRise 0.9s var(--e-out) forwards;
}
.loader__mark span:nth-child(1) { animation-delay: 0.05s; }
.loader__mark span:nth-child(2) { animation-delay: 0.12s; }
.loader__mark span:nth-child(3) { animation-delay: 0.19s; }
.loader__mark span:nth-child(4) { animation-delay: 0.26s; }
.loader__mark span:nth-child(5) { animation-delay: 0.33s; }
@keyframes loaderRise { to { transform: translateY(0); } }

.loader__base {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-5);
}
.loader__lab { justify-self: start; color: var(--dark-text-55); }
.loader__pct { justify-self: end; color: var(--dark-text-70); font-feature-settings: "tnum"; }
.loader__bar { width: 100%; max-width: 380px; height: 1px; background: var(--dark-hair); overflow: hidden; }
.loader__bar > i { display: block; height: 100%; width: 0; background: var(--paper); transition: width 0.3s linear; }

/* ─── Nav (fluid island) ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  padding: 10px 14px 10px 22px;
  border-radius: 9999px;
  background: oklch(0.205 0.020 165 / 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--dark-hair);
  box-shadow:
    0 1px 0 oklch(0.952 0.012 80 / 0.06) inset,
    0 24px 60px -30px oklch(0 0 0 / 0.5);
  transition: transform 0.6s var(--e-out), opacity 0.4s var(--e-out), padding 0.4s var(--e-out), background-color 0.6s var(--e-out);
  max-width: calc(100vw - 32px);
}
.nav.is-hidden { transform: translateX(-50%) translateY(-150%); }
.nav__brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.nav__brand small {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-text-55);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav__links a {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--dark-text-70);
  letter-spacing: -0.005em;
  transition: color 0.35s var(--e-out);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--e-out);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 9999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.35s var(--e-out), background-color 0.35s var(--e-out);
}
.nav__cta:hover { background: var(--paper-2); }
.nav__cta:active { transform: scale(0.97); }
.nav__cta .cta-bubble {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-grid;
  place-items: center;
  transition: transform 0.4s var(--e-out);
}
.nav__cta:hover .cta-bubble { transform: translate(2px, -1px) rotate(-8deg); }

.nav__menu-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border-radius: 9999px;
}
.nav__menu-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--e-out), opacity 0.3s var(--e-out);
}
.nav__menu-toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.nav__menu-toggle span:nth-child(2) { transform: translate(-50%, 0); }
.nav__menu-toggle span:nth-child(3) { transform: translate(-50%, 6px); }
.nav__menu-toggle.is-open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav__menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__menu-toggle.is-open span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: oklch(0.205 0.020 165 / 0.92);
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transform: translateY(-100%);
  transition: transform 0.7s var(--e-out-strong);
  pointer-events: none;
}
.mobile-menu.is-open { transform: translateY(0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: auto; }
.mobile-menu nav a {
  font-family: var(--f-display);
  font-size: clamp(38px, 9vw, 56px);
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--e-out), transform 0.7s var(--e-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.20s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 0.40s; }
.mobile-menu.is-open nav a:nth-child(7) { transition-delay: 0.45s; }

.mobile-menu__footer {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding-top: var(--sp-6);
  margin-top: auto;
  border-top: 1px solid var(--dark-hair);
}
.mobile-menu__footer a { color: var(--dark-text-70); font-size: var(--t-sm); }
.mobile-menu__footer .phone { color: var(--paper); font-family: var(--f-mono); letter-spacing: 0.08em; }

/* ─── Sections (generic) ──────────────────────────────────────────── */
section { position: relative; }
.section { padding: clamp(56px, 7vw, 120px) 0; }
.section-num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-text-55);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-num::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--dark-hair-strong);
  background: oklch(0.952 0.012 80 / 0.04);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--dark-text-70);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--sage);
  box-shadow: 0 0 0 4px oklch(0.610 0.045 158 / 0.20);
  animation: pulse 2.4s var(--e-out) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px oklch(0.610 0.045 158 / 0.20); }
  50%      { box-shadow: 0 0 0 8px oklch(0.610 0.045 158 / 0); }
}

/* Cream-theme inheritances */
.theme-cream {
  background: var(--paper);
  color: var(--cream-text);
  position: relative;
}
.theme-cream .eyebrow { border-color: var(--cream-hair-strong); background: oklch(0.205 0.020 165 / 0.03); color: var(--cream-text-70); }
.theme-cream .section-num { color: var(--cream-text-55); }

/* paper grain on cream */
.theme-cream::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ─── Reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--e-out),
    transform 1.1s var(--e-out),
    filter 1.1s var(--e-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-line {
  display: block;
  overflow: hidden;
  line-height: inherit;
}
.reveal-line > span {
  display: block;
  transform: translateY(0);
  transition: transform 1.1s var(--e-out);
  transition-delay: var(--delay, 0s);
  will-change: transform;
}
/* Hidden only when wrapped in a .reveal that hasn't fired yet */
.reveal:not(.in) .reveal-line > span { transform: translateY(110%); }
.in .reveal-line > span { transform: translateY(0); }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero__media {
  position: absolute; inset: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  animation: kenBurns 18s var(--e-out) forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.18) translate(-1%, -1%); }
  to   { transform: scale(1.04) translate(0%, 0%); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    /* Center sweep — darkens the area exactly behind the title for readability */
    radial-gradient(70% 60% at 38% 55%, oklch(0.205 0.020 165 / 0.62) 0%, oklch(0.205 0.020 165 / 0.10) 75%, transparent 100%),
    /* Top→bottom gradient — sets ambience, dark at top & bottom */
    linear-gradient(180deg, oklch(0.205 0.020 165 / 0.55) 0%, oklch(0.205 0.020 165 / 0.20) 30%, oklch(0.205 0.020 165 / 0.45) 65%, oklch(0.205 0.020 165 / 0.92) 100%),
    /* Left-side darkness — title is on the left */
    linear-gradient(90deg, oklch(0.205 0.020 165 / 0.55) 0%, oklch(0.205 0.020 165 / 0.10) 60%, transparent 100%);
}
/* Optional readability shadow on hero display text */
.hero__title .reveal-line > span,
.hero__title em {
  text-shadow: 0 2px 24px oklch(0.205 0.020 165 / 0.45);
}
.hero__fog {
  position: absolute; inset: -10%;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(60% 40% at 18% 70%, oklch(0.740 0.030 158 / 0.30), transparent 60%),
    radial-gradient(50% 30% at 82% 60%, oklch(0.610 0.045 158 / 0.22), transparent 65%),
    radial-gradient(70% 50% at 50% 92%, oklch(0.480 0.045 220 / 0.30), transparent 70%);
  filter: blur(40px);
  animation: drift 28s var(--e-out) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1.05); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.10); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.07); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--sp-9) + 32px) var(--gutter) var(--sp-7);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Top ledger row */
.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
  margin-bottom: var(--sp-7);
}
.hero__top .ledger { color: var(--dark-text-55); }
.hero__top .meta { display: flex; flex-direction: column; gap: 4px; }
.hero__top .meta-value { font-family: var(--f-display); font-size: 22px; font-weight: 300; letter-spacing: -0.01em; color: var(--paper); }
.hero__top .meta:nth-child(2) { justify-self: center; text-align: center; }
.hero__top .meta:nth-child(3) { justify-self: end; text-align: right; }

/* Main content — original "floating" layout, no glass-card */
.hero__content {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: 1400px;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);   /* slightly tighter than --t-5xl */
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 60;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 60;
  color: var(--sage-2);
  font-weight: 400;
}
.hero__title .line { display: block; }
.hero__title .indent { padding-left: 2.5ch; }

.hero__sub {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--dark-text-70);
  max-width: 520px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 24px;
  border-radius: 9999px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--e-out), background-color 0.4s var(--e-out), color 0.4s var(--e-out), border-color 0.4s var(--e-out);
  position: relative;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.btn--primary:hover { background: var(--sage-2); }
.btn--primary .cta-bubble {
  width: 30px; height: 30px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-grid;
  place-items: center;
  transition: transform 0.4s var(--e-out);
}
.btn--primary:hover .cta-bubble { transform: translate(3px, -2px) rotate(-12deg); background: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--dark-hair-strong);
  padding: 14px 24px;
}
.btn--ghost:hover { background: oklch(0.952 0.012 80 / 0.06); border-color: var(--dark-text-70); }

.theme-cream .btn--primary { background: var(--ink); color: var(--paper); }
.theme-cream .btn--primary:hover { background: var(--moss); }
.theme-cream .btn--primary .cta-bubble { background: var(--paper); color: var(--ink); }
.theme-cream .btn--ghost { color: var(--ink); border-color: var(--cream-hair-strong); }
.theme-cream .btn--ghost:hover { background: oklch(0.205 0.020 165 / 0.05); border-color: var(--cream-text-70); }

/* Bottom ledger */
.hero__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  padding-top: var(--sp-6);
  margin-top: var(--sp-7);
  border-top: 1px solid var(--dark-hair);
}
.hero__bottom .stat { display: flex; flex-direction: column; gap: 6px; }
.hero__bottom .stat-num {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.hero__bottom .stat-num sup { font-size: 0.45em; vertical-align: super; color: var(--dark-text-55); margin-left: 4px; }
.hero__bottom .stat-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-text-55); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: var(--sp-7);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-text-70);
}
.scroll-cue__bar {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--paper), transparent);
  background-size: 100% 200%;
  background-position: 0 100%;
  animation: scrollBar 2.6s var(--e-out) infinite;
}
@keyframes scrollBar {
  0% { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}

/* ─── Animatable custom properties ────────────────────────────────── */
/* Without @property registration, variables animate in discrete jumps.
   Registering them as <number> lets transitions/animations interpolate them. */
@property --w    { syntax: '<number>'; inherits: false; initial-value: 300; }
@property --soft { syntax: '<number>'; inherits: false; initial-value: 40;  }

/* ─── Split-char title animation ──────────────────────────────────── */
/* Used on [data-split] headings — each character animates in from a wide
   tracking + lifted state to a tight, settled position. Editorial reveal. */
[data-split] .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(10px);
  transition:
    opacity 0.95s var(--e-out),
    transform 1.05s var(--e-out),
    filter 0.9s var(--e-out),
    letter-spacing 1.1s var(--e-out);
  transition-delay: calc(var(--i, 0) * 22ms);
  letter-spacing: 0.18em;
}
[data-split] .split-word {
  display: inline-block;
  white-space: nowrap;
}
[data-split] .split-space {
  display: inline-block;
  width: 0.35em;
  transition: width 1.1s var(--e-out);
  transition-delay: calc(var(--i, 0) * 22ms);
}
[data-split].is-in .split-char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  letter-spacing: 0;
}
[data-split].is-in .split-space {
  width: 0.28em;
}
/* italic words keep accent color from existing .display em rules */
[data-split] em .split-char { font-style: italic; color: inherit; }

/* ─── Weight-pulse on concept title ───────────────────────────────── */
/* Each char does a brief overshoot from light → bold → settled, in stagger.
   Uses CSS animation (not transition) so we can run a multi-keyframe pulse. */
.concept__title[data-split] .split-char {
  font-variation-settings: "wght" var(--w), "opsz" 60;
  --w: 420;
}
.concept__title[data-split].is-in .split-char {
  animation: conceptPulse 1.6s var(--e-out) both;
  animation-delay: calc(var(--i, 0) * 28ms + 0.30s);
}
@keyframes conceptPulse {
  0%   { --w: 400; }
  50%  { --w: 720; }
  100% { --w: 420; }
}
/* Italic accent words pulse harder */
.concept__title[data-split].is-in em .split-char {
  animation-name: conceptPulseHot;
}
@keyframes conceptPulseHot {
  0%   { --w: 400; }
  55%  { --w: 820; }
  100% { --w: 480; }
}

/* ─── Concept / Manifesto ─────────────────────────────────────────── */
.concept {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 9vw, 140px) 0;
}
.concept__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.concept__head { display: flex; flex-direction: column; gap: var(--sp-5); }
.concept__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.concept__title em {
  font-style: italic;
  color: var(--sage-2);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
}
.concept__title .pad { padding-left: 4ch; display: inline-block; }
.concept__title .indent-1 { padding-left: 2.5ch; }
.concept__title .indent-2 { padding-left: 5ch; }

.concept__body { display: flex; flex-direction: column; gap: var(--sp-5); padding-top: var(--sp-3); }
.concept__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-text-70);
  max-width: 52ch;
  font-weight: 400;
}
.concept__body p .lead { color: var(--paper); }
.concept__body .quote {
  border-left: 0;
  padding: var(--sp-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-family: var(--f-display);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.concept__body .quote::before { content: ""; display: block; width: 32px; height: 1px; background: var(--sage); margin-bottom: 12px; }
.concept__body .quote cite { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark-text-55); margin-top: var(--sp-3); }

/* ─── Location section ───────────────────────────────────────────── */
.location {
  padding: clamp(70px, 9vw, 140px) 0;
}
.location__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}
.location__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.022em;
}
.location__title em { font-style: italic; color: var(--moss); }

.location__addr {
  display: flex; flex-direction: column; gap: var(--sp-2);
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-text-70);
}
.location__addr strong { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 22px; letter-spacing: -0.01em; text-transform: none; color: var(--cream-text); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(110px, auto);
  gap: 14px;
}
.bento__cell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--cream-hair);
  box-shadow:
    0 1px 0 oklch(0.952 0.012 80 / 0.6) inset,
    0 30px 50px -32px oklch(0.205 0.020 165 / 0.12);
}
.bento__cell img { width: 100%; height: 100%; object-fit: cover; }
.bento__cell-pad { padding: clamp(20px, 2.4vw, 40px); height: 100%; display: flex; flex-direction: column; }

.bento .c-aerial    { grid-column: span 8; grid-row: span 4; }
.bento .c-coord     { grid-column: span 4; grid-row: span 2; }
.bento .c-distance  { grid-column: span 4; grid-row: span 2; }
.bento .c-river     { grid-column: span 12; grid-row: span 3; height: clamp(340px, 30vw, 460px); }
.bento .c-territory { grid-column: span 7; grid-row: span 3; min-height: 280px; }

.bento .c-aerial img { height: 100%; }
.bento .c-river img  { height: 100%; }

.bento__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(18px, 2vw, 30px);
  background: linear-gradient(to top, oklch(0.205 0.020 165 / 0.86), transparent);
  color: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
}
.bento__overlay .ledger { color: var(--dark-text-70); }
.bento__overlay .h {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Coord / distance cells */
.bento__metric {
  display: flex; flex-direction: column; gap: var(--sp-3);
  height: 100%;
}
.bento__metric .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-text-55);
}
.bento__metric .value {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream-text);
  margin-top: auto;
}
.bento__metric .value em { font-style: italic; color: var(--moss); font-size: 0.55em; }
.bento__metric .sub {
  font-size: var(--t-sm);
  color: var(--cream-text-70);
  max-width: 30ch;
}

.bento .c-territory {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--ink);
  color: var(--paper);
  border-color: oklch(0.205 0.020 165);
}
.bento .c-territory .territory-grid {
  padding: clamp(22px, 2.6vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: var(--sp-5);
}
.bento .c-territory .t-item { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--dark-hair); }
.bento .c-territory .t-item .ledger { color: var(--dark-text-55); }
.bento .c-territory .t-item .h {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.bento .c-territory .t-item p { font-size: var(--t-sm); color: var(--dark-text-70); line-height: 1.5; }

.bento .c-territory .territory-foot {
  padding: clamp(22px, 2.6vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  border-top: 1px solid var(--dark-hair);
}
.bento .c-territory .territory-foot .display { color: var(--paper); font-size: clamp(26px, 3vw, 40px); }
.bento .c-territory .territory-foot .sage-line { color: var(--sage-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }

/* ─── Architecture ───────────────────────────────────────────────── */
.architecture {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 9vw, 140px) 0;
}
.architecture__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: var(--sp-6);
  align-items: end;
}
.architecture__head .h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.022em;
}
.architecture__head .h em { font-style: italic; color: var(--sage-2); font-weight: 400; }
.architecture__head p { font-size: 17px; line-height: 1.65; color: var(--dark-text-70); max-width: 52ch; font-weight: 400; }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  grid-auto-rows: minmax(90px, auto);
}
.arch-cell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--dark-hair);
}
.arch-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-out); }
.arch-cell:hover img { transform: scale(1.04); }
.arch-cell .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 2.2vw, 32px);
  background: linear-gradient(to top, oklch(0.205 0.020 165 / 0.92), transparent);
  color: var(--paper);
  display: flex; align-items: end; justify-content: space-between; gap: var(--sp-5);
}
.arch-cell .meta .h { font-family: var(--f-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.015em; }
.arch-cell .meta .ledger { color: var(--dark-text-55); }

.arch-cell.a-main { grid-column: span 7; grid-row: span 6; min-height: 460px; }
.arch-cell.a-detail { grid-column: span 5; grid-row: span 3; min-height: 220px; }
.arch-cell.a-front { grid-column: span 5; grid-row: span 3; min-height: 220px; }
.arch-cell.a-text {
  grid-column: span 12;
  grid-row: span 2;
  background: transparent;
  border: 0;
  padding: var(--sp-7) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-7);
}
.arch-cell.a-text .col { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--dark-hair); }
.arch-cell.a-text .col .ledger { color: var(--sage-2); }
.arch-cell.a-text .col .h { font-family: var(--f-display); font-weight: 300; font-size: 22px; letter-spacing: -0.01em; color: var(--paper); line-height: 1.2; }
.arch-cell.a-text .col p { font-size: var(--t-sm); color: var(--dark-text-70); line-height: 1.55; }

/* ─── Plans section (horizontal scroll) ──────────────────────────── */
.plans {
  padding: clamp(56px, 7vw, 120px) 0 0;
}
.plans__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: var(--sp-6);
  align-items: end;
}
.plans__head .h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.022em;
}
.plans__head .h em { font-style: italic; color: var(--moss); font-weight: 400; }
.plans__head p { font-size: 17px; line-height: 1.65; color: var(--cream-text-70); max-width: 52ch; font-weight: 400; }

.plans__scroller {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(60px, 10vw, 120px);
}
.plans__track {
  display: flex;
  gap: clamp(20px, 2vw, 32px);
  padding-inline: var(--gutter);
  cursor: grab;
}
.plans__track.is-grab { cursor: grabbing; }

.plan {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 460px);
  background: var(--paper-2);
  border: 1px solid var(--cream-hair);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  position: relative;
  transition:
    transform 0.85s var(--e-out),
    box-shadow 0.85s var(--e-out),
    border-color 0.6s var(--e-out);
  box-shadow: 0 30px 50px -36px oklch(0.205 0.020 165 / 0.20);
}
.plan:hover {
  transform: translateY(-10px);
  box-shadow:
    0 60px 90px -42px oklch(0.205 0.020 165 / 0.42),
    0 1px 0 oklch(0.205 0.020 165 / 0.08);
  border-color: var(--cream-hair-strong);
}
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 4px 6px 0; position: relative; z-index: 3; }
.plan__head .num { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-text-55); }
.plan__head .badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; background: var(--ink); color: var(--paper); }
.plan__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 30px;
}
/* Peek photo behind the floor-plan svg */
.plan__media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--peek-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.10);
  filter: saturate(1.05) contrast(1.02);
  transition:
    opacity 1s var(--e-out),
    transform 1.6s var(--e-out),
    filter 1s var(--e-out);
  z-index: 0;
}
/* Warm vignette that holds the plan readable on top of the peek photo */
.plan__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, oklch(0.928 0.018 82 / 0.55) 0%, oklch(0.928 0.018 82 / 0.78) 55%, oklch(0.928 0.018 82 / 0.88) 100%);
  opacity: 0;
  transition: opacity 0.9s var(--e-out);
  z-index: 2; /* above both peek layers, below the plan and the tag */
  pointer-events: none;
}
/* Secondary peek: cross-fades in over the first one after a hold */
.plan__peek-2 {
  position: absolute; inset: 0;
  background-image: var(--peek-img-2);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0;
  transform: scale(1.14);
  transition:
    opacity 1.6s var(--e-out) 1.6s,
    transform 3s var(--e-out) 1.2s;
  z-index: 1;          /* above ::before peek, below cream vignette */
  pointer-events: none;
}
.plan__media .plan__plan {
  position: relative;
  z-index: 3;
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.9s var(--e-out), opacity 0.6s var(--e-out);
}
.plan__peek-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 4;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 12px;
  border-radius: 9999px;
  background: oklch(0.205 0.020 165 / 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--e-out) 0.05s, transform 0.7s var(--e-out) 0.05s;
}
.plan:hover .plan__media::before { opacity: 0.78; transform: scale(1); }
.plan:hover .plan__media::after  { opacity: 1; }
.plan:hover .plan__media .plan__plan { transform: scale(1.02); }
.plan:hover .plan__peek-tag { opacity: 1; transform: translateY(0); }
.plan:hover .plan__peek-2 { opacity: 0.85; transform: scale(1); }
/* Fallback for old img selector used elsewhere */
.plan__media img:not(.plan__plan) { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.plan__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-4);
  padding: 0 6px 6px;
}
.plan__foot .name { font-family: var(--f-display); font-weight: 300; font-size: 26px; letter-spacing: -0.015em; line-height: 1; color: var(--cream-text); }
.plan__foot .name small { display: block; font-family: var(--f-sans); font-size: 12px; color: var(--cream-text-70); margin-top: 8px; letter-spacing: 0; }
.plan__foot .area { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 24px; letter-spacing: -0.01em; color: var(--moss); }
.plan__foot .area small { font-family: var(--f-mono); font-style: normal; font-size: 10px; letter-spacing: 0.16em; color: var(--cream-text-55); display: block; margin-top: 4px; text-align: right; }

.plans__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-7) var(--gutter) 0;
  gap: var(--sp-5);
}
.plans__progress {
  flex: 1;
  height: 1px;
  background: var(--cream-hair);
  position: relative;
  overflow: hidden;
}
.plans__progress > i {
  position: absolute; top: 0; left: 0;
  height: 100%;
  width: 16%;
  background: var(--ink);
  transition: transform 0.5s var(--e-out), width 0.5s var(--e-out);
}
.plans__buttons { display: flex; gap: 10px; }
.plans__btn {
  width: 52px; height: 52px;
  border-radius: 9999px;
  border: 1px solid var(--cream-hair-strong);
  display: grid; place-items: center;
  transition: background-color 0.4s var(--e-out), color 0.4s var(--e-out), transform 0.3s var(--e-out);
}
.plans__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plans__btn:active { transform: scale(0.94); }
.plans__btn svg { width: 16px; height: 16px; }

/* ─── Infrastructure ─────────────────────────────────────────────── */
.infra {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 9vw, 140px) 0;
}
.infra__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: var(--sp-6);
  align-items: end;
}
.infra__head .h { font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 5.5vw, 88px); line-height: 1.0; letter-spacing: -0.022em; }
.infra__head .h em { font-style: italic; color: var(--sage-2); font-weight: 400; }
.infra__head p { font-size: 17px; line-height: 1.65; color: var(--dark-text-70); max-width: 52ch; font-weight: 400; }

/* Bento layout — 12-col asymmetric grid of photo-fill tiles */
.infra-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 14px;
}
.infra-tile {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--dark-hair);
  color: var(--paper);
  isolation: isolate;
  box-shadow: 0 30px 60px -40px oklch(0 0 0 / 0.55);
  transition: transform 0.9s var(--e-out), border-color 0.6s var(--e-out);
}
.infra-tile:hover { border-color: var(--dark-hair-strong); }
.infra-tile > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(1.02) brightness(0.85);
  transition: transform 1.6s var(--e-out), filter 1s var(--e-out);
}
.infra-tile:hover > img { transform: scale(1.0); filter: saturate(1.08) contrast(1.04) brightness(0.92); }
.infra-tile__veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      oklch(0.205 0.020 165 / 0.30) 0%,
      oklch(0.205 0.020 165 / 0.10) 30%,
      oklch(0.205 0.020 165 / 0.55) 70%,
      oklch(0.205 0.020 165 / 0.92) 100%);
  pointer-events: none;
}
.infra-tile__veil.v-soft {
  background:
    linear-gradient(180deg,
      oklch(0.205 0.020 165 / 0.20) 0%,
      oklch(0.205 0.020 165 / 0.45) 60%,
      oklch(0.205 0.020 165 / 0.85) 100%);
}
.infra-tile__body {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2.6vw, 40px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-3);
}
.infra-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: auto;
}
.infra-tile__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 5px 10px;
  border-radius: 9999px;
  background: oklch(0.952 0.012 80 / 0.12);
  border: 1px solid oklch(0.952 0.012 80 / 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.infra-tile__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(26px, 3.0vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.infra-tile__title em { font-style: italic; color: var(--sage-2); font-variation-settings: "opsz" 60; }
.infra-tile__desc {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--dark-text-70);
  max-width: 42ch;
}
.infra-tile__meta {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-3);
  border-top: 1px solid oklch(0.952 0.012 80 / 0.16);
  margin-top: var(--sp-3);
}
.infra-tile__meta .num {
  display: flex; flex-direction: column; gap: 4px;
}
.infra-tile__meta .num b {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--sage-2);
}
.infra-tile__meta .num small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-text-55);
}

/* Tile placements (asymmetric) */
.infra-tile.t-lobby { grid-column: span 7; grid-row: span 4; min-height: 460px; }
.infra-tile.t-park  { grid-column: span 5; grid-row: span 2; min-height: 220px; }
.infra-tile.t-kids  { grid-column: span 5; grid-row: span 2; min-height: 220px; }
.infra-tile.t-river { grid-column: span 4; grid-row: span 3; min-height: 320px; }
.infra-tile.t-gym   { grid-column: span 4; grid-row: span 3; min-height: 320px; }
.infra-tile.t-safe  { grid-column: span 4; grid-row: span 3; min-height: 320px; }
.infra-tile.t-smart { grid-column: span 12; grid-row: span 2; min-height: 180px; background: var(--ink); }
.infra-tile.t-smart > img { display: none; }
/* Розумний дім — компактна картка замість стрічки */
.infra-tile.t-smart-card { background: var(--ink); border-color: oklch(0.95 0.012 80 / 0.16); }
.infra-tile.t-smart-card .infra-tile__body { justify-content: space-between; gap: var(--sp-3); }
.infra-tile.t-smart-card .smart-live { color: var(--sage-2); }
.smart-card__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.smart-card__chips span {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 9999px;
  border: 1px solid oklch(0.95 0.012 80 / 0.20); color: var(--paper);
  white-space: nowrap;
}

.infra-tile.t-smart .infra-tile__body { padding: clamp(28px, 3vw, 48px); }
.infra-tile__smart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
  height: 100%;
}
.infra-tile__smart-grid .smart-head { display: flex; flex-direction: column; gap: var(--sp-3); }
.infra-tile__smart-grid .smart-head .ledger { color: var(--sage-2); }
.infra-tile__smart-grid .smart-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
}
.infra-tile__smart-grid .smart-col {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid oklch(0.952 0.012 80 / 0.18);
}
.infra-tile__smart-grid .smart-col .ledger { color: var(--sage-2); font-style: italic; font-family: var(--f-display); text-transform: lowercase; font-size: 16px; letter-spacing: 0; }
.infra-tile__smart-grid .smart-col p { font-size: var(--t-sm); color: var(--dark-text-70); line-height: 1.55; }

/* ─── Gallery ────────────────────────────────────────────────────── */
.gallery {
  padding: clamp(70px, 9vw, 140px) 0 clamp(80px, 10vw, 160px);
}
.gallery__head {
  display: flex; flex-direction: column; gap: var(--sp-7);
  padding-bottom: var(--sp-8);
  max-width: 1000px;
}
.gallery__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(46px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.gallery__title em { font-style: italic; color: var(--moss); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery__tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--cream-hair);
}
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-out); }
.gallery__tile:hover img { transform: scale(1.05); }
.gallery__tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 2vw, 26px);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, oklch(0.205 0.020 165 / 0.75), transparent);
}
.g-1 { grid-column: span 7; grid-row: span 2; min-height: 360px; }
.g-2 { grid-column: span 5; grid-row: span 1; min-height: 240px; }
.g-4 { grid-column: span 5; grid-row: span 1; min-height: 240px; }
.g-5 { grid-column: span 12; grid-row: span 1; min-height: 240px; }

/* ─── Progress (timeline) ────────────────────────────────────────── */
.progress {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 9vw, 140px) 0;
}
.progress__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: var(--sp-6);
  align-items: end;
}
.progress__head .h { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5vw, 80px); line-height: 1.0; letter-spacing: -0.022em; }
.progress__head .h em { font-style: italic; color: var(--sage-2); font-weight: 400; }
.progress__head p { font-size: 17px; line-height: 1.65; color: var(--dark-text-70); max-width: 52ch; font-weight: 400; padding-top: 0; }

.progress__phase-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: var(--sp-7);
}
.progress__phase-bar > div {
  height: 3px;
  border-radius: 9999px;
  background: var(--dark-hair-strong);
}
.progress__phase-bar > div.done { background: var(--paper); }
.progress__phase-bar > div.active { background: linear-gradient(90deg, var(--paper) 70%, var(--dark-hair) 70%); }

/* Overall progress strip — single fat horizontal bar with center "62%" mark */
.progress__overall {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--dark-hair);
  border-radius: 28px;
  background: oklch(0.952 0.012 80 / 0.025);
  margin-bottom: clamp(40px, 6vw, 88px);
}
.progress__overall-track {
  position: relative;
  height: 6px;
  border-radius: 9999px;
  background: var(--dark-hair-strong);
  overflow: hidden;
}
.progress__overall-fill {
  display: block; height: 100%; width: 62%;
  background: linear-gradient(90deg, var(--sage-2), var(--paper));
  border-radius: inherit;
  box-shadow: 0 0 18px 0 oklch(0.740 0.030 158 / 0.45);
  animation: pctSheen 4.5s var(--e-out) infinite;
}
@keyframes pctSheen {
  0%,100% { box-shadow: 0 0 18px 0 oklch(0.740 0.030 158 / 0.30); }
  50%      { box-shadow: 0 0 28px 0 oklch(0.740 0.030 158 / 0.65); }
}
.progress__overall-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: var(--sp-5);
}
.progress__overall-meta .ledger { color: var(--dark-text-55); }
.progress__overall-meta .ledger:last-child { text-align: right; }
.progress__overall-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 144px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.progress__overall-num small {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.32em;
  color: var(--sage-2);
}

/* Horizontal phase rail — full-bleed, scroll-snap */
.progress-rail {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-6);
}
.progress-rail__track {
  display: flex;
  gap: clamp(20px, 2vw, 32px);
  padding-inline: var(--gutter);
  cursor: grab;
}
.progress-rail__track.is-grab { cursor: grabbing; }
.phase {
  flex: 0 0 auto;
  width: clamp(320px, 38vw, 540px);
  background: var(--ink-2);
  border: 1px solid var(--dark-hair);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.7s var(--e-out), border-color 0.6s var(--e-out), box-shadow 0.7s var(--e-out);
  scroll-snap-align: start;
  box-shadow: 0 30px 60px -36px oklch(0 0 0 / 0.55);
  position: relative;
}
.phase:hover { transform: translateY(-6px); border-color: var(--dark-hair-strong); box-shadow: 0 50px 80px -36px oklch(0 0 0 / 0.65); }
.phase__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.phase__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--e-out);
  filter: saturate(0.95) brightness(0.92);
}
.phase:hover .phase__media img { transform: scale(1.04); }
.phase__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.205 0.020 165 / 0.75) 100%);
  pointer-events: none;
}
.phase__pulse {
  position: absolute; top: 18px; right: 18px;
  width: 12px; height: 12px;
  border-radius: 9999px;
  background: var(--sage);
  box-shadow: 0 0 0 0 oklch(0.610 0.045 158 / 0.55);
  animation: phasePulse 2s var(--e-out) infinite;
}
@keyframes phasePulse {
  0%,100% { box-shadow: 0 0 0 0 oklch(0.610 0.045 158 / 0.55); }
  60%      { box-shadow: 0 0 0 14px oklch(0.610 0.045 158 / 0); }
}
.phase__body {
  padding: clamp(22px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.phase__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.phase__head .ledger { color: var(--dark-text-55); }
.phase__badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--dark-hair-strong);
  color: var(--dark-text-70);
  white-space: nowrap;
}
.phase__badge.done { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.phase__badge.active { background: var(--sage); color: var(--paper); border-color: var(--sage); }
.phase__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.phase__title em { font-style: italic; color: var(--sage-2); font-variation-settings: "opsz" 60; }
.phase__body p {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--dark-text-70);
  max-width: 44ch;
}
.phase__bar {
  margin-top: var(--sp-3);
  position: relative;
  height: 2px;
  background: var(--dark-hair-strong);
  border-radius: 9999px;
  overflow: hidden;
}
.phase__bar i {
  position: absolute; top: 0; left: 0;
  height: 100%;
  background: var(--paper);
  border-radius: inherit;
  transition: width 1.2s var(--e-out);
}
.phase.is-done .phase__bar i { background: var(--paper); }
.phase.is-active .phase__bar i { background: linear-gradient(90deg, var(--sage), var(--paper)); }
.phase__pct {
  align-self: flex-end;
  color: var(--dark-text-70);
}

.progress-rail__controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  padding: clamp(28px, 4vw, 56px) var(--gutter) 0;
}
.progress-rail__progress {
  flex: 1;
  height: 1px;
  background: var(--dark-hair-strong);
  position: relative;
  overflow: hidden;
}
.progress-rail__progress > i {
  position: absolute; top: 0; left: 0;
  height: 100%;
  width: 25%;
  background: var(--paper);
  transition: transform 0.5s var(--e-out), width 0.5s var(--e-out);
}
.progress-rail__buttons { display: flex; gap: 10px; }
.progress-rail__buttons .plans__btn { border-color: var(--dark-hair-strong); color: var(--paper); }
.progress-rail__buttons .plans__btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ─── Contact ────────────────────────────────────────────────────── */
.contact {
  padding: clamp(56px, 7vw, 120px) 0 clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.contact__hero-img {
  position: absolute; inset: 0;
  background-image: url("assets/generated/contact-entrance.jpg");
  background-size: cover;
  background-position: center 60%;
  opacity: 0.18;
  filter: saturate(0.85) contrast(0.95);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
}
.contact__lead { display: flex; flex-direction: column; gap: var(--sp-7); }
.contact__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.contact__title em { font-style: italic; color: var(--moss); }

.contact__meta {
  display: flex; flex-direction: column; gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--cream-hair-strong);
}
.contact__meta .row { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-5); align-items: baseline; }
.contact__meta .label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-text-55); }
.contact__meta .val { font-family: var(--f-display); font-weight: 300; font-size: var(--t-lg); color: var(--cream-text); letter-spacing: -0.01em; }
.contact__meta a.val { transition: color 0.4s var(--e-out); }
.contact__meta a.val:hover { color: var(--moss); }

.contact__form {
  display: flex; flex-direction: column; gap: 0;
  padding-top: 60px;
}
.field {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: var(--sp-5);
  padding: 22px 0;
  border-top: 1px solid var(--cream-hair-strong);
}
.field:last-of-type { border-bottom: 1px solid var(--cream-hair-strong); }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-text-55);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--cream-text);
  padding: 2px 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--cream-text-35); font-style: italic; }
.field textarea { resize: none; min-height: 28px; }

.contact__submit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding-top: var(--sp-7);
}
.contact__legal { font-size: 11px; color: var(--cream-text-55); line-height: 1.5; max-width: 36ch; }

/* ── Field-level errors ───────────────────────────────────────── */
.field {
  position: relative;
}
.field__err {
  grid-column: 2;
  font-family: var(--f-sans);
  font-size: 12px;
  color: oklch(0.55 0.12 25);  /* warm clay-red — readable on cream */
  letter-spacing: 0;
  text-transform: none;
  min-height: 0;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--e-out), transform 0.3s var(--e-out);
}
.field__err:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}
.field:has(.field__err:not(:empty)) input,
.field:has(.field__err:not(:empty)) textarea {
  color: oklch(0.40 0.14 25);
}
.field:has(.field__err:not(:empty)) {
  border-color: oklch(0.55 0.12 25 / 0.45);
}

/* ── Honeypot — visually & accessibly hidden ───────────────────── */
.botcheck {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Form state machine: loading / ok / error ──────────────────── */
.contact__status {
  display: block;
  grid-column: 1 / -1;
  margin-top: var(--sp-5);
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.5;
  min-height: 18px;
  color: var(--cream-text-70);
  transition: color 0.4s var(--e-out);
}
.contact__status[data-state="ok"]    { color: var(--moss); }
.contact__status[data-state="error"] { color: oklch(0.50 0.14 25); }

/* Submit-button bubble icon-swap: arrow ↔ spinner ↔ tick.
   All three SVGs are absolutely positioned inside the bubble, occupying
   the same center spot. Only opacity toggles between states so the button
   doesn't reflow or jump when state changes. */
#contactSubmit .cta-bubble {
  position: relative;
  overflow: hidden;
  flex: 0 0 30px;
}
#contactSubmit .cta-bubble > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s var(--e-out);
}
#contactSubmit .bubble-spin,
#contactSubmit .bubble-tick { opacity: 0; }
#contactSubmit .bubble-arrow { opacity: 1; }

/* Reserve label width so the button does not jump when text changes */
#contactSubmit .btn__label {
  display: inline-block;
  min-width: 14ch;
  text-align: left;
  transition: color 0.35s var(--e-out);
}

/* loading: arrow hides, spinner appears and spins from its own pivot */
#contactForm[data-state="loading"] button[type="submit"] { cursor: wait; }
#contactForm[data-state="loading"] button[type="submit"] .bubble-arrow { opacity: 0; }
#contactForm[data-state="loading"] button[type="submit"] .bubble-spin {
  opacity: 1;
  animation: bubbleSpin 0.9s linear infinite;
}
@keyframes bubbleSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* success: only tick is visible */
#contactForm[data-state="ok"] button[type="submit"] {
  background: var(--moss);
  color: var(--paper);
}
#contactForm[data-state="ok"] button[type="submit"] .cta-bubble {
  background: var(--paper);
  color: var(--moss);
}
#contactForm[data-state="ok"] button[type="submit"] .bubble-arrow,
#contactForm[data-state="ok"] button[type="submit"] .bubble-spin { opacity: 0; }
#contactForm[data-state="ok"] button[type="submit"] .bubble-tick { opacity: 1; }

/* error: tinted button, only arrow stays */
#contactForm[data-state="error"] { box-shadow: 0 0 0 1px oklch(0.55 0.12 25 / 0.30) inset; }
#contactForm[data-state="error"] button[type="submit"] {
  background: oklch(0.50 0.14 25);
  color: var(--paper);
}
#contactForm[data-state="error"] button[type="submit"] .cta-bubble {
  background: var(--paper);
  color: oklch(0.50 0.14 25);
}
#contactForm[data-state="error"] button[type="submit"] .bubble-arrow { opacity: 1; }
#contactForm[data-state="error"] button[type="submit"] .bubble-spin,
#contactForm[data-state="error"] button[type="submit"] .bubble-tick { opacity: 0; }

#contactSubmit[disabled] { pointer-events: none; }

/* ─── Section heads in glass-cards ───────────────────────────────── */
/* All major section heads get a tinted panel so the heading sits IN a
   container instead of floating on the empty background. iOS Liquid-Glass
   spirit: hairline edge highlight, soft drop-shadow, gentle backdrop blur. */
.concept__head,
.architecture__head,
.infra__head,
.progress__head,
.location__head,
.plans__head {
  padding: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 52px);
  border-radius: clamp(20px, 2vw, 28px);
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

/* Dark sections — translucent ink with paper hairline */
.concept__head,
.architecture__head,
.infra__head,
.progress__head {
  background: linear-gradient(135deg,
    oklch(0.265 0.022 162 / 0.65) 0%,
    oklch(0.205 0.020 165 / 0.40) 100%);
  border: 1px solid oklch(0.952 0.012 80 / 0.14);
  box-shadow:
    0 1px 0 oklch(0.952 0.012 80 / 0.10) inset,
    0 1px 0 oklch(0 0 0 / 0.18),
    0 40px 60px -36px oklch(0 0 0 / 0.45);
}

/* Cream sections — translucent paper with ink hairline */
.location__head,
.plans__head {
  background: linear-gradient(135deg,
    oklch(0.928 0.018 82 / 0.65) 0%,
    oklch(0.952 0.012 80 / 0.40) 100%);
  border: 1px solid oklch(0.205 0.020 165 / 0.14);
  box-shadow:
    0 1px 0 oklch(0.952 0.012 80 / 0.40) inset,
    0 1px 0 oklch(0.205 0.020 165 / 0.10),
    0 30px 50px -30px oklch(0.205 0.020 165 / 0.18);
}

/* Concept head is inside a grid wrapper — give it max-width so it doesn't
   span both columns */
.concept__inner > .concept__head { align-self: start; }

/* Pull section heads up slightly so they overlap their containers' top edge */
.concept__head,
.architecture__head,
.infra__head,
.progress__head,
.location__head,
.plans__head { margin-bottom: var(--sp-7); }

/* On mobile, ease the padding so cards don't feel tight */
@media (max-width: 768px) {
  .concept__head,
  .architecture__head,
  .infra__head,
  .progress__head,
  .location__head,
  .plans__head {
    padding: 24px 22px;
    border-radius: 18px;
  }
}

/* ─── Head-features — 3-col mini grid замість абзаца в section heads ── */
.head-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  width: 100%;
  align-self: end;
}
.feat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-hair);
  min-width: 0;
}
.feat__icon {
  width: 22px;
  height: 22px;
  color: var(--sage-2);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-text-55);
  margin-top: 2px;
}
.feat__value {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.32;
  color: var(--paper);
  letter-spacing: -0.005em;
}

/* On cream-themed heads (plans), invert colors */
.theme-cream .feat,
.plans__head .feat,
.location__head .feat { border-top-color: var(--cream-hair); }
.theme-cream .feat__icon,
.plans__head .feat__icon,
.location__head .feat__icon { color: var(--moss); }
.theme-cream .feat__label,
.plans__head .feat__label,
.location__head .feat__label { color: var(--cream-text-55); }
.theme-cream .feat__value,
.plans__head .feat__value,
.location__head .feat__value { color: var(--cream-text); }

/* On phones, collapse to single column */
@media (max-width: 768px) {
  .head-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feat { padding-top: 12px; }
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-9) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}
.footer__big {
  font-family: var(--f-display);
  font-size: var(--t-6xl);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-align: left;
  padding-block: var(--sp-7) var(--sp-8);
  border-bottom: 1px solid var(--dark-hair);
  font-weight: 300;
  font-variation-settings: "wght" 400, "opsz" 60;
}
/* Sweep-mode: each split-char animates wght / SOFT driven by scroll progress */
.footer__big[data-sweep] {
  /* override the global split-char tracking jump so the chars are normal at rest */
}
.footer__big[data-sweep] .split-char {
  font-variation-settings:
    "wght" var(--w, 400),
    "opsz" 60;
  letter-spacing: -0.02em;
  /* NO transition on font-variation-settings — keeps Playwright/font-loading happy
     and the sweep is already perceptually smooth from scroll-driven updates */
  transition:
    opacity 0.95s var(--e-out),
    transform 1.05s var(--e-out),
    filter 0.9s var(--e-out);
}
.footer__big[data-sweep].is-in .split-char { letter-spacing: -0.04em; }
.footer__big[data-sweep] .split-space { width: 0.32em; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-7);
  padding-block: var(--sp-7);
}
.footer__col h6 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark-text-55); margin-bottom: var(--sp-5); }
.footer__col p, .footer__col a { font-size: var(--t-sm); color: var(--dark-text-70); line-height: 1.6; display: block; margin-bottom: 6px; transition: color 0.3s var(--e-out); }
.footer__col a:hover { color: var(--paper); }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--dark-hair); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-text-55); flex-wrap: wrap; }
.footer__base a { color: var(--dark-text-55); }
.footer__base a:hover { color: var(--paper); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu-toggle { display: block; }
  .nav { padding: 8px 8px 8px 18px; }
  .nav__cta span:not(.cta-bubble) { display: none; }
  .nav__cta { padding: 6px; }
  .nav__cta .cta-bubble { width: 36px; height: 36px; }

  .concept__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .concept__body { padding-top: var(--sp-5); }
  .location__head, .architecture__head, .plans__head, .infra__head, .progress__head { grid-template-columns: 1fr; }
  /* Infra bento — collapse to 2-col + smart full width */
  .infra-tile.t-lobby { grid-column: span 12; grid-row: auto; min-height: 360px; }
  .infra-tile.t-park,  .infra-tile.t-kids,
  .infra-tile.t-river, .infra-tile.t-gym, .infra-tile.t-safe { grid-column: span 6; grid-row: auto; min-height: 260px; }
  .infra-tile.t-smart { grid-column: span 12; }
  .infra-tile__smart-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .infra-tile__smart-grid .smart-cols { grid-template-columns: repeat(3, 1fr); }
  /* Progress overall */
  .progress__overall-meta { grid-template-columns: 1fr auto 1fr; }
  .progress__overall-num { font-size: clamp(56px, 13vw, 100px); }
  .contact__inner { grid-template-columns: 1fr; }
  .arch-cell.a-text { grid-template-columns: repeat(2, 1fr); }
  .bento .c-aerial { grid-column: span 12; min-height: 360px; }
  .bento .c-coord { grid-column: span 6; }
  .bento .c-distance { grid-column: span 6; }
  .bento .c-river { grid-column: span 12; min-height: 280px; }
  .bento .c-territory { grid-column: span 12; }
  .arch-cell.a-main { grid-column: span 12; min-height: 340px; }
  .arch-cell.a-detail { grid-column: span 6; min-height: 200px; }
  .arch-cell.a-front { grid-column: span 6; min-height: 200px; }
  .g-1 { grid-column: span 12; min-height: 320px; }
  .g-2, .g-4 { grid-column: span 6; min-height: 220px; }
  .g-5 { grid-column: span 12; min-height: 220px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  body { font-size: 14px; }
  .nav { top: 12px; padding: 6px 6px 6px 16px; gap: var(--sp-4); }
  .nav__brand small { display: none; }

  .hero__top { grid-template-columns: 1fr; gap: var(--sp-3); }
  .hero__top .meta:nth-child(2), .hero__top .meta:nth-child(3) { justify-self: start; text-align: left; }
  .hero__title { font-size: clamp(56px, 18vw, 92px); }
  .hero__title .indent { padding-left: 1.5ch; }
  .hero__sub { font-size: var(--t-base); }
  .hero__bottom { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .scroll-cue { display: none; }

  .concept__title { font-size: clamp(40px, 11vw, 60px); }
  .concept__title .pad, .concept__title .indent-1, .concept__title .indent-2 { padding-left: 0; }

  .location__addr { text-align: left; }
  .arch-cell.a-text { grid-template-columns: 1fr; gap: var(--sp-5); }
  .arch-cell.a-detail, .arch-cell.a-front { grid-column: span 12; }

  .plans__head { grid-template-columns: 1fr; gap: var(--sp-5); }
  .plan { width: 78vw; padding: 14px; }
  .plan__head .badge { font-size: 9px; }
  .plans__controls { padding-inline: 20px; }

  /* Infra bento — full single column on phones */
  .infra-tile.t-lobby,
  .infra-tile.t-park,  .infra-tile.t-kids,
  .infra-tile.t-river, .infra-tile.t-gym, .infra-tile.t-safe,
  .infra-tile.t-smart { grid-column: span 12; min-height: 280px; }
  .infra-tile__title { font-size: clamp(28px, 8vw, 42px); }

  /* Progress phase carousel — narrower cards */
  .phase { width: 84vw; }
  .progress-rail__controls { padding-inline: 20px; }
  .progress__overall { padding: 24px; border-radius: 22px; }
  .progress__overall-meta { grid-template-columns: 1fr; gap: var(--sp-3); }
  .progress__overall-meta .ledger:last-child { text-align: left; }
  .progress__overall-num { font-size: clamp(64px, 18vw, 96px); }

  .g-1, .g-2, .g-4, .g-5 { grid-column: span 12; min-height: 220px; }

  .field { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .field input, .field textarea, .field select { font-size: 18px; }
  .contact__submit { grid-template-columns: 1fr; gap: var(--sp-4); }
  .contact__meta .row { grid-template-columns: 1fr; gap: 2px; }
  .contact__meta .val { font-size: 18px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .footer__big { font-size: clamp(72px, 22vw, 160px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .reveal-line > span { transform: none; }
}

/* ─── Liquid Glass mode overrides ──────────────────────────────────── */
/* Active only after JS injects html.glass-on. The wrapped #nav becomes a
   real-time WebGL refraction surface, so we drop our own backdrop-filter
   and tinted background. Inner children stay laid out the same way. */
html.glass-on #nav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid oklch(0.952 0.012 80 / 0.18) !important;
  box-shadow:
    0 1px 0 oklch(0.952 0.012 80 / 0.10) inset,
    0 30px 70px -30px oklch(0 0 0 / 0.45) !important;
  /* Container.element adds display:flex; align-items:center; padding:10px; gap:20px
     — let our gutter/padding stay authoritative */
  padding: 10px 14px 10px 22px !important;
  gap: var(--sp-7) !important;
  justify-content: flex-start !important;
}
html.glass-on #nav > *:not(canvas) { position: relative; z-index: 2; }
html.glass-on .nav__cta {
  background: transparent !important;
  color: var(--paper) !important;
  border: 1px solid oklch(0.952 0.012 80 / 0.22) !important;
  padding: 10px 10px 10px 20px !important;
  box-shadow:
    0 1px 0 oklch(0.952 0.012 80 / 0.10) inset,
    0 14px 30px -18px oklch(0 0 0 / 0.5) !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}
html.glass-on .nav__cta:hover { background: oklch(0.952 0.012 80 / 0.08) !important; }
html.glass-on .nav__cta > *:not(canvas) { position: relative; z-index: 2; }
html.glass-on .nav__cta .cta-bubble {
  background: oklch(0.952 0.012 80 / 0.92) !important;
  color: var(--ink) !important;
}

/* Glass submit button in contact form (cream theme — readable dark text) */
html.glass-on #contactSubmit.btn--primary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid oklch(0.205 0.020 165 / 0.32) !important;
  padding: 14px 14px 14px 24px !important;
  box-shadow:
    0 1px 0 oklch(0.205 0.020 165 / 0.08) inset,
    0 16px 36px -20px oklch(0.205 0.020 165 / 0.50) !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}
html.glass-on #contactSubmit > *:not(canvas) { position: relative; z-index: 2; }
html.glass-on #contactSubmit .cta-bubble {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* Override the glass.css defaults that conflict with our flex layout */
html.glass-on .glass-container {
  padding: inherit;
  gap: inherit;
  justify-content: inherit;
}

/* ─── Nav-over-cream inversion ─────────────────────────────────────── */
/* When a .theme-cream section is currently under the floating nav, flip
   nav text, brand, links, CTA and hairlines into ink-dark tones for
   contrast against the cream/sage WebGL refraction below. Smooth fade. */
html.glass-on #nav,
html.glass-on .nav__brand,
html.glass-on .nav__links a,
html.glass-on .nav__cta,
html.glass-on .nav__cta .cta-bubble,
html.glass-on .nav__menu-toggle span {
  transition:
    color 0.6s var(--e-out),
    background-color 0.6s var(--e-out),
    border-color 0.6s var(--e-out),
    box-shadow 0.6s var(--e-out);
}
html.glass-on.nav-over-cream #nav {
  border-color: oklch(0.205 0.020 165 / 0.16) !important;
  box-shadow:
    0 1px 0 oklch(0.205 0.020 165 / 0.06) inset,
    0 26px 60px -28px oklch(0.205 0.020 165 / 0.32) !important;
}
html.glass-on.nav-over-cream .nav__brand        { color: var(--ink) !important; }
html.glass-on.nav-over-cream .nav__brand small  { color: oklch(0.205 0.020 165 / 0.55) !important; }
html.glass-on.nav-over-cream .nav__links a      { color: oklch(0.205 0.020 165 / 0.72) !important; }
html.glass-on.nav-over-cream .nav__links a:hover { color: var(--ink) !important; }
html.glass-on.nav-over-cream .nav__links a::after { background: var(--ink) !important; }

html.glass-on.nav-over-cream .nav__cta {
  color: var(--ink) !important;
  border-color: oklch(0.205 0.020 165 / 0.28) !important;
  box-shadow:
    0 1px 0 oklch(0.205 0.020 165 / 0.06) inset,
    0 14px 30px -18px oklch(0.205 0.020 165 / 0.35) !important;
}
html.glass-on.nav-over-cream .nav__cta:hover {
  background: oklch(0.205 0.020 165 / 0.06) !important;
}
html.glass-on.nav-over-cream .nav__cta .cta-bubble {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

html.glass-on.nav-over-cream .nav__menu-toggle span { background: var(--ink) !important; }
