/* ===================================================================
   ETC Markets — light, premium, architectural
   =================================================================== */

:root {
  /* Warm neutral palette */
  --bg:          #F7F5F0;   /* warm off-white page */
  --bg-alt:      #FFFFFF;   /* surface */
  --bg-deep:     #EFEBE2;   /* alt section tint */
  --ink:         #1A1814;   /* near-black text */
  --ink-soft:    #4A453D;   /* secondary text */
  --muted:       #8A8278;   /* tertiary text */
  --line:        #E4DED2;   /* hairline borders */
  --line-strong: #D7CFBF;
  --sand:        #B9986A;   /* warm accent */
  --sand-deep:   #97774A;
  --wood:        #CDB88F;

  --radius:      22px;
  --radius-sm:   16px;
  --radius-btn:  50px;
  --shadow-sm:   0 1px 2px rgba(38,30,18,.04), 0 2px 8px rgba(38,30,18,.04);
  --shadow-md:   0 10px 30px rgba(38,30,18,.07);
  --shadow-lg:   0 24px 60px rgba(38,30,18,.10);

  --maxw:        1240px;
  --ease:        cubic-bezier(.22,.61,.36,1);
  --expo:        cubic-bezier(.16,1,.3,1);   /* premium ease-out */

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand-deep); margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--sand-deep); opacity: .5;
}
.section__title, .strip__title, .cta__title, .hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.section__title { font-size: clamp(2rem, 4.2vw, 3rem); }
.section__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 20px 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: var(--radius-btn); border: 1px solid transparent;
  cursor: pointer; min-height: 50px;
  transition: transform .22s var(--expo), background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 4px 16px rgba(26,24,20,.16); }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26,24,20,.26); }
.btn--primary:active { transform: translateY(0) scale(.98); box-shadow: 0 3px 10px rgba(26,24,20,.2); }
.btn--ghost { background: rgba(255,255,255,.5); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(.98); }
.btn--lg { padding: 18px 34px; font-size: 16px; min-height: 58px; }

/* ---------- Brand logo ---------- */
.brand__logo { height: 19px; width: auto; display: block; }
.brand__logo--footer { height: 18px; filter: invert(1); }

/* ===================================================================
   Nav
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--sand-deep); display: inline-flex; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .04em; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 15px; color: var(--ink-soft); font-weight: 500; position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--sand-deep);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 10px 20px; }

/* ===================================================================
   Section 1 · Hero
   =================================================================== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 92% 30%, rgba(205,184,143,.16), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 76px) clamp(48px, 6vw, 84px);
}
.hero__copy { max-width: 560px; }
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  font-weight: 600;
  margin: 4px 0 0;
}
.hero__lede {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-soft);
  margin: 24px 0 0; max-width: 44ch; line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__media { position: relative; }
.render--hero {
  margin: 0; margin-inline: auto 0;
  max-width: 470px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1199 / 1600;
}
.render--hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: translateY(var(--py, 0)) scale(var(--hz, 1.03));
  transition: transform .5s var(--expo);
}
.render--hero:hover img { --hz: 1.2; }

/* ===================================================================
   Generic sections
   =================================================================== */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--alt { background: var(--bg-deep); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: 56px; }

/* ---------- Section 2 · Resident benefits ---------- */
.benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.benefit {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.benefit__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--ink); margin-bottom: 24px;
}
.benefit__icon svg { width: 23px; height: 23px; }
.benefit__title { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; margin: 0 0 9px; letter-spacing: -.02em; }
.benefit__text { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- Section 3 · Property benefits ---------- */
.property__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 92px); align-items: center; }
.property__cta { margin-top: 36px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.checklist__item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  font-size: 1.06rem; color: var(--ink-soft);
}
.checklist__item:first-child { padding-top: 0; }
.checklist__item:last-child { border-bottom: none; }
.checklist__item strong { color: var(--ink); font-weight: 600; }
.checklist__check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checklist__check svg { width: 17px; height: 17px; }

/* ===================================================================
   Section 3a · Deployment strip (compact, horizontal)
   =================================================================== */
.strip { padding-block: clamp(48px, 6vw, 72px); background: var(--ink); color: #F4EFE6; }
.strip__head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 38px; }
.strip .eyebrow { color: var(--wood); margin: 0; }
.strip__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.step {
  padding: 6px 28px; position: relative;
  border-left: 1px solid rgba(255,255,255,.13);
}
.step:first-child { padding-left: 0; border-left: none; }
.step__num { font-family: var(--font-display); font-size: 14px; color: var(--wood); letter-spacing: .1em; }
.step__icon { display: block; color: var(--wood); margin: 14px 0 16px; }
.step__icon svg { width: 30px; height: 30px; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; margin: 0 0 8px; color: #fff; }
.step__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(244,239,230,.72); }

/* ===================================================================
   Section 4 · Designed around your building
   =================================================================== */
.design__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.design__copy { max-width: 480px; }

.design__swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.swatch {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 11px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--bg-alt); cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.swatch::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.swatch:hover { transform: translateY(-1px); border-color: var(--ink); color: var(--ink); }
.swatch.is-active { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.design__finish-note {
  margin: 20px 0 0; max-width: 46ch;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--bg-alt); box-shadow: var(--shadow-sm);
  font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--ink-soft);
}
.design__finish-note svg { flex: none; width: 20px; height: 20px; color: var(--sand-deep); }
.design__finish-note strong { color: var(--ink); font-weight: 600; }

.design__media { position: relative; }
.design__media { position: relative; z-index: 2; }
.render--design {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  transition: box-shadow .55s var(--ease), transform .55s var(--expo);
  transform-origin: center;
}
/* hover: frame lifts ~5%, image zooms ~25% inside the frame, callouts hide */
.render--design:hover { transform: scale(1.05); box-shadow: 0 34px 80px rgba(26,24,20,.24); }
.render--design:hover img { transform: scale(1.5); }
.render--design:hover .callout { opacity: 0 !important; transform: scale(.9) !important; transition: opacity .12s var(--ease) 0s, transform .12s var(--ease) 0s !important; }
.render--design img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--expo);
}
.render--design .render__next { opacity: 0; transition: opacity .55s var(--ease), transform .6s var(--expo); }
.render--design.is-swapping .render__next { opacity: 1; }

/* per-finish hue glow (the "background" concept) */
.render--design.v-white-oak { box-shadow: 0 28px 80px rgba(214,196,158,.55), var(--shadow-md); }
.render--design.v-warm-oak  { box-shadow: 0 28px 80px rgba(194,162,113,.55), var(--shadow-md); }
.render--design.v-walnut    { box-shadow: 0 28px 80px rgba(122,74,51,.45),  var(--shadow-md); }
.render--design.v-charcoal  { box-shadow: 0 28px 80px rgba(59,54,49,.45),   var(--shadow-md); }

/* pop-out callouts over the rendering */
.callout {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px;
  opacity: 0; transform: scale(.7) translateY(6px);
  transition: opacity .5s var(--expo), transform .5s var(--expo);
}
.design__media.is-in .callout { opacity: 1; transform: none; }
.design__media.is-in .callout--logo { transition-delay: .55s; }
.design__media.is-in .callout--finish { transition-delay: .72s; }
.callout--logo { top: 24%; left: 49%; }
.callout--finish { top: 53%; left: 61%; }
.callout__dot { position: relative; flex: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--sand-deep), 0 2px 8px rgba(0,0,0,.35); }
.callout__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--sand); animation: calloutPulse 2.4s var(--ease) infinite; }
@keyframes calloutPulse { from { transform: scale(1); opacity: .75; } to { transform: scale(2.6); opacity: 0; } }
.callout__label { padding: 7px 13px; border-radius: 50px; background: rgba(255,255,255,.93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow-sm); }

/* Note */
.note {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 26px 30px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.note__icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.note__icon svg { width: 24px; height: 24px; }
.note p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 80ch; }
.note strong { color: var(--ink); }
.note em { font-style: italic; color: var(--sand-deep); font-weight: 500; }

/* ===================================================================
   Section 5 · Case studies (coming soon)
   =================================================================== */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.case {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case__media {
  aspect-ratio: 4 / 3; position: relative; background: #EDE8DE;
  /* own rounded clip on its own layer — prevents corner flicker during card tilt/scale */
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  isolation: isolate;
}
.case__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .6s var(--ease); transform: translateZ(0);
}
.case:hover .case__img { transform: scale(1.04) translateZ(0); }
.case__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,16,10,0) 55%, rgba(20,16,10,.28));
}
.case__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.case__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.case__body { padding: 26px 28px 28px; }
.case__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0 0 18px; letter-spacing: -.01em; }
.case__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 0 0 20px; }
.case__meta dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case__meta dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.case__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: var(--sand-deep);
}
.case__link svg { width: 15px; height: 15px; transition: transform .25s var(--expo); }
.case:hover .case__link { color: var(--ink); }
.case:hover .case__link svg { transform: translate(2px, -2px); }

/* ===================================================================
   CTA + Footer
   =================================================================== */
.cta { padding-block: clamp(80px, 11vw, 140px); text-align: center; }
.cta__inner { max-width: 720px; }
.cta__title { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.cta__lede { color: var(--ink-soft); font-size: 1.15rem; margin: 22px auto 38px; max-width: 52ch; }

.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 56px 26px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; padding-bottom: 34px;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__brand .brand__logo--footer { margin-bottom: 14px; }
.footer__tag { margin: 0 0 14px; color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer__email { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer__email:hover { color: var(--ink); border-color: var(--ink); }
.footer__links { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 4px; }
.footer__links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line);
}
.footer__copy { color: var(--muted); font-size: 13.5px; margin: 0; }
.footer__powered { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer__powered a { color: var(--ink-soft); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer__powered a:hover { color: var(--sand-deep); border-color: var(--sand-deep); }

@media (max-width: 560px) {
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .callout__label { display: none; }
}

/* ===================================================================
   Reveal-on-scroll
   =================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .benefit, .case, .swatch { transition: none; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .step:nth-child(3) { border-left: none; padding-left: 0; }
  .step { padding-inline: 24px; }
  .step:nth-child(odd) { border-left: none; padding-left: 0; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-bottom: 48px; }
  .hero__media { justify-content: center; margin-top: 8px; }
  .render--hero { width: min(100%, 460px); margin-right: 0; transform: none; }
  .render--hero { max-width: min(100%, 440px); margin-inline: auto; }
  .property__grid, .design__grid { grid-template-columns: 1fr; gap: 44px; }
  .design__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .cases { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__copy { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none !important; padding-left: 0 !important; }
  .case__meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero__actions .btn, .property__cta { width: 100%; }
  .strip__head { margin-bottom: 28px; }
}

/* ===================================================================
   ✦ 2026 creative + motion layer
   =================================================================== */

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sand), var(--sand-deep)); }

/* Nav hide on scroll-down */
.nav { transition: transform .45s var(--expo), border-color .3s var(--ease), background .3s var(--ease); will-change: transform; }
.nav.is-hidden { transform: translateY(-101%); }

/* Button arrow + magnetic */
.btn { position: relative; }
.btn__arrow { width: 17px; height: 17px; transition: transform .3s var(--expo); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.magnetic { transition: transform .3s var(--expo), background .18s var(--ease); }

/* Reveal system (data-reveal) */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--expo), transform .8s var(--expo); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Tilt */
[data-tilt] { transition: transform .5s var(--expo), box-shadow .3s var(--ease), border-color .3s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* ---- Hero kinetic ---- */
.hero__aurora {
  position: absolute; top: -14%; right: -8%; width: min(62vw, 780px); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(205,184,143,.5), rgba(185,152,106,.18) 42%, transparent 70%);
  filter: blur(36px); border-radius: 50%; z-index: 0; pointer-events: none;
  animation: floatBlob 17s var(--ease) infinite alternate;
}
@keyframes floatBlob {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-5%,4%) scale(1.1); }
  100% { transform: translate(4%,-3%) scale(.95); }
}
.hero__grid { position: relative; z-index: 1; }

/* line-mask reveal */
.kinetic__line { display: block; overflow: hidden; padding-bottom: .04em; }
.kinetic__line > span { display: inline-block; transform: translateY(115%); transition: transform 1s var(--expo); }
.kinetic.is-in .kinetic__line > span { transform: none; }
.kinetic.is-in .kinetic__line:nth-child(1) > span { transition-delay: .05s; }
.kinetic.is-in .kinetic__line:nth-child(2) > span { transition-delay: .15s; }
.kinetic.is-in .kinetic__line:nth-child(3) > span { transition-delay: .25s; }

/* hero copy elements rise in on load */
.hero__eyebrow, .hero__lede, .hero__actions, .render--hero, .hero__chip {
  opacity: 0; transform: translateY(22px); transition: opacity .8s var(--expo), transform .8s var(--expo);
}
.hero.is-in .hero__eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.hero.is-in .hero__lede    { opacity: 1; transform: none; transition-delay: .35s; }
.hero.is-in .hero__actions { opacity: 1; transform: none; transition-delay: .45s; }
.hero.is-in .render--hero  { opacity: 1; transform: none; transition-delay: .2s; }
.hero.is-in .hero__chip    { opacity: 1; transform: none; transition-delay: .7s; }

/* floating "always open" chip */
.render--hero { position: relative; }
.hero__chip {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 100px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
}
.hero.is-in .hero__chip { animation: floatChip 4s var(--ease) .9s infinite alternate; }
@keyframes floatChip { to { transform: translateY(-8px); } }
.hero__chip-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2FAA5E; }
.hero__chip-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2FAA5E; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.6); opacity: 0; } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-alt); padding: 20px 0; }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 30s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.3vw, 1.85rem); letter-spacing: -.025em; color: var(--ink); padding-inline: 26px; }
.marquee__sep { color: var(--sand-deep) !important; font-size: .9em !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Bento (resident benefits) ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-rows: 1fr; }
.bento__cell { position: relative; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; overflow: hidden; }
.bento--wide { grid-column: span 2; }
.bento__cell:not(.bento__intro):not(.bento--accent):not(.bento--link):hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.bento__intro { background: transparent; border: none; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; }
.bento__intro .section__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.bento__intro .section__lede { margin-top: 16px; }

/* accent dark tile */
.bento--accent { background: linear-gradient(165deg, #1A1611, #2A241A); border-color: transparent; color: #F4EFE6; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.bento--accent .benefit__title { color: #fff; }
.bento--accent .benefit__text { color: rgba(244,239,230,.74); max-width: 40ch; }
.bento__big { position: absolute; top: 14px; right: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.05em; color: rgba(255,255,255,.10); }
.bento__slash { color: var(--wood); }
.benefit__pulse { position: absolute; top: 28px; left: 28px; width: 12px; height: 12px; }
.benefit__pulse > span { position: absolute; inset: 0; border-radius: 50%; background: var(--wood); }
.benefit__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wood); animation: pulse 2.4s var(--ease) infinite; }

/* dark CTA link tile */
.bento--link { background: var(--ink); border-color: transparent; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; }
.bento__link-label { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.bento__link-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: transform .4s var(--expo), background .3s var(--ease); }
.bento__link-arrow svg { width: 22px; height: 22px; }
.bento--link:hover .bento__link-arrow { transform: translateX(6px); background: var(--sand-deep); }

/* count-up tabular */
.count { font-variant-numeric: tabular-nums; }


/* ---- CTA outline-text marquee ---- */
.cta { position: relative; overflow: hidden; }
.cta__marquee { margin-top: clamp(48px, 7vw, 84px); overflow: hidden; }
.cta__marquee-track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 26s linear infinite; }
.cta__marquee-track > span { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 8vw, 6rem); letter-spacing: -.04em; padding-inline: 26px; color: transparent; -webkit-text-stroke: 1.3px var(--line-strong); }
.cta__marquee-track .marquee__sep { -webkit-text-stroke: 0; color: var(--sand) !important; }

/* ---- Bento responsive ---- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento--wide { grid-column: span 1; }
  .bento--accent { min-height: 200px; }
}

/* ---- Contact section ---- */
.cta { text-align: left; }
.contact__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.contact__copy .cta__title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.contact__copy .cta__lede { margin: 20px 0 28px; }
.contact__email {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 12px 20px 12px 12px; border: 1px solid var(--line-strong); border-radius: 50px;
  background: var(--bg-alt); transition: border-color .2s var(--ease), transform .2s var(--expo), box-shadow .2s var(--ease);
}
.contact__email:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact__email-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--sand-deep); }
.contact__email-icon svg { width: 20px; height: 20px; }

.contact__card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-md);
}

/* Form */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form__row .field { margin-bottom: 0; }
.form__row + .field, .form__row + .form__row { margin-top: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }
.field__opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 15.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 13px 16px; min-height: 50px; width: 100%; resize: vertical;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field textarea { min-height: 92px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #B3ABA0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--bg-alt); box-shadow: 0 0 0 4px rgba(185,152,106,.16); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--destructive); box-shadow: 0 0 0 4px rgba(220,38,38,.10); }
.field__error { font-size: 12.5px; color: var(--destructive); margin-top: 6px; min-height: 0; opacity: 0; transform: translateY(-2px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.field.is-invalid .field__error { opacity: 1; transform: none; }

.form__footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }
.form__submit.is-loading { pointer-events: none; opacity: .75; }

/* honeypot — visually hidden, still fillable by bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* form error alert */
.form__alert {
  margin: 16px 0 0; padding: 13px 16px; border-radius: 13px;
  background: #FBECEC; border: 1px solid #F0CACA; color: #9B2C2C;
  font-size: 14px; font-weight: 500; line-height: 1.5;
}

.form__success {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  padding: 18px 20px; border-radius: 16px; background: #EAF3EC; border: 1px solid #CDE5D3;
}
.form__success-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #2FAA5E; color: #fff; display: grid; place-items: center; }
.form__success-icon svg { width: 20px; height: 20px; }
.form__success strong { display: block; color: #1C5733; font-size: 15px; }
.form__success span { color: #2E6B45; font-size: 13.5px; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; gap: 18px; }
  .form__row .field + .field { margin-top: 18px; }
}

/* ---- Legal pages (privacy / terms) ---- */
.legal-nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.legal-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.legal-back svg { width: 18px; height: 18px; transition: transform .25s var(--expo); }
.legal-back:hover { color: var(--ink); }
.legal-back:hover svg { transform: translateX(-3px); }

.legal { padding-block: clamp(56px, 8vw, 110px); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal__eyebrow { margin-bottom: 18px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.04; margin: 0 0 14px; }
.legal__updated { color: var(--muted); font-size: 14.5px; margin: 0 0 44px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 1.4rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--sand-deep); border-bottom: 1px solid var(--line-strong); }
.legal a:hover { border-color: var(--sand-deep); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__divider { height: 1px; background: var(--line); border: none; margin: 48px 0; }

/* ===================================================================
   State pages (404 / success)
   =================================================================== */
.state { position: relative; min-height: 100dvh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 96px 0 72px; }

/* Fit-to-viewport state pages (no scroll on desktop) */
.state-page { display: flex; flex-direction: column; min-height: 100dvh; }
.state-page .state { min-height: 0; flex: 1 1 auto; padding-block: clamp(24px, 4vh, 52px); }
.state-page .marquee { flex: none; }
.state__aurora {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  width: min(84vw, 720px); aspect-ratio: 1; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(205,184,143,.40), rgba(185,152,106,.12) 45%, transparent 68%);
  filter: blur(48px); border-radius: 50%;
  animation: floatBlob 18s var(--ease) infinite alternate;
}
.state__inner { position: relative; z-index: 1; max-width: 640px; padding-inline: 26px; }
.state__inner > * { animation: stateIn .85s var(--expo) both; }
.state__inner > *:nth-child(1) { animation-delay: .04s; }
.state__inner > *:nth-child(2) { animation-delay: .12s; }
.state__inner > *:nth-child(3) { animation-delay: .20s; }
.state__inner > *:nth-child(4) { animation-delay: .28s; }
.state__inner > *:nth-child(5) { animation-delay: .36s; }
@keyframes stateIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.state__big {
  font-family: var(--font-display); font-weight: 700; line-height: .86; letter-spacing: -.06em;
  font-size: clamp(7rem, 26vw, 17rem); margin: 0 0 6px;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.state__big .state__zero { -webkit-text-stroke: 2px var(--sand-deep); color: rgba(185,152,106,.14); }
.state__eyebrow { justify-content: center; }
.state__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 4px 0 14px; }
.state__text { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; margin: 0 auto 34px; max-width: 44ch; }
.state__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* success checkmark */
.state__check {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 30px;
  background: #2FAA5E; display: grid; place-items: center;
  box-shadow: 0 16px 44px rgba(47,170,94,.32);
  animation: pop .55s var(--expo) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
.state__check svg { width: 48px; height: 48px; color: #fff; }
.state__check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .6s var(--expo) .35s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.state__detail { margin-top: 30px; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 50px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.state__detail strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .state__inner > *, .state__check, .state__check svg path, .state__aurora { animation: none !important; }
  .state__check svg path { stroke-dashoffset: 0; }
}

/* ---- Film grain overlay ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---- Hero image: clip-path mask reveal ---- */
.render--hero { clip-path: inset(0 0 100% 0 round var(--radius)); transform: none !important;
  transition: opacity .9s var(--expo), clip-path 1.1s var(--expo); }
.hero.is-in .render--hero { opacity: 1; clip-path: inset(0 0 0% 0 round var(--radius)); transition-delay: .15s; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .cta__marquee-track, .hero__aurora, .hero__chip,
  .hero__chip-dot::after, .benefit__pulse::after, .callout__dot::after { animation: none !important; }
  .kinetic__line > span { transform: none !important; }
  .callout { opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
  .render--hero { clip-path: none !important; }
  [data-reveal], [data-tilt],
  .hero__eyebrow, .hero__lede, .hero__actions, .render--hero, .hero__chip { opacity: 1 !important; transform: none !important; }
}
