/* =============================================================
   Prime Builders AZ — 1. Tokens
   ============================================================= */
:root {
  --bg:        #F4F0E8;
  --bg-2:      #E9E2D5;
  --bg-3:      #DED5C4;
  --paper:     #FFFDF9;
  --ink:       #16211C;
  --ink-soft:  #243B31;
  --ink-mute:  #6C7A72;
  --accent:    #1F5C46;
  --accent-d:  #123A2C;
  --clay:      #B4633A;
  --sun:       #D8A24A;
  --line:      rgba(22,33,28,.12);
  --line-2:    rgba(22,33,28,.22);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gut: clamp(1.2rem, 5vw, 4rem);
  --rad: 18px;
  --shadow: 0 24px 60px -32px rgba(22,33,28,.42);
  --shadow-lg: 0 40px 90px -40px rgba(22,33,28,.5);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); font-weight: 400; }
::selection { background: var(--accent); color: #F4F0E8; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: min(1280px, 100% - var(--gut) * 2); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - var(--gut) * 2); }
.mono { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; }
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }

.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem;
}
.kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-mute);
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6.2vw, 4.4rem);
  max-width: 16ch; margin-bottom: 1.6rem;
}
.h2--wide { max-width: 22ch; }
.h2 em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--ink-mute);
  max-width: 58ch; margin-bottom: 2.6rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              background .35s var(--ease-out), color .35s var(--ease-out);
  will-change: transform;
}
.btn-lg { padding: 1.02rem 1.9rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #F6F2E8; box-shadow: 0 10px 24px -14px rgba(31,92,70,.9); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-3px); box-shadow: 0 20px 34px -16px rgba(31,92,70,.85); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

.chip {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  padding: .48rem .9rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--paper); transition: border-color .3s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink); display: grid; place-items: center;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: grid; justify-items: center; gap: .9rem; }
.splash-mark {
  font-family: var(--mono); font-size: 1rem; letter-spacing: .28em;
  color: var(--sun); border: 1px solid rgba(216,162,74,.5);
  padding: .5rem .7rem .5rem .95rem; border-radius: 10px;
}
.splash-word { font-family: var(--serif); font-size: 1.5rem; color: #EFE9DC; letter-spacing: .01em; }
.splash-line { width: 120px; height: 1px; background: rgba(239,233,220,.28); position: relative; overflow: hidden; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; background: var(--sun);
  transform: translateX(-100%); animation: splashBar 2.2s var(--ease-soft) infinite;
}
@keyframes splashBar { to { transform: translateX(100%); } }

/* =============================================================
   6. Cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none; display: none; opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--accent); border-radius: 50%; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px; border: 1px solid rgba(31,92,70,.5); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s;
}
.cursor.is-interactive .cursor-ring { width: 52px; height: 52px; margin: -26px; background: rgba(31,92,70,.08); }

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1rem var(--gut);
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out), padding .5s var(--ease-out);
}
.nav.is-solid {
  background: rgba(244,240,232,.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .7rem;
}
.nav-brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.nav-mark {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; font-weight: 500;
  color: var(--paper); background: var(--accent);
  padding: .42rem .5rem .42rem .62rem; border-radius: 8px;
}
.nav-name { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); }
.nav-name em { font-style: italic; color: var(--accent); }
.nav-links { display: none; gap: 1.7rem; }
.nav-links a { font-size: .88rem; color: var(--ink-soft); position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .45s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
.nav-burger {
  display: grid; gap: 5px; padding: .6rem; margin-right: -.6rem;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; }
.nav-burger.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--bg); display: grid; align-content: center; gap: .4rem;
  padding: var(--gut); opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.6rem); color: var(--ink); padding-block: .35rem; }
.mobile-menu a:last-child { color: var(--accent); }

@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger, .mobile-menu { display: none; }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gut) 2rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 62%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(244,240,232,.72) 0%, rgba(244,240,232,.22) 34%, rgba(244,240,232,0) 55%),
    linear-gradient(96deg, rgba(244,240,232,.9) 0%, rgba(244,240,232,.55) 38%, rgba(244,240,232,0) 68%),
    linear-gradient(0deg, rgba(30,38,30,.34) 0%, rgba(30,38,30,0) 30%);
}
.hero-inner { max-width: 40rem; margin-bottom: auto; margin-top: 2rem; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 9.4vw, 6.2rem);
  line-height: .96; margin: 1.1rem 0 1.4rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.24rem); color: var(--ink-soft); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.stat { background: rgba(244,240,232,.72); backdrop-filter: blur(6px); padding: 1rem 1.1rem; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 4.4vw, 2.1rem); color: var(--ink); }
.stat-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.hero-scroll {
  position: absolute; right: var(--gut); bottom: 1.6rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-mute); writing-mode: vertical-rl; display: none;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 42px; margin: .6rem auto 0;
  background: linear-gradient(var(--ink-mute), transparent);
}
@media (min-width: 720px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-scroll { display: block; }
}

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--bg-2); padding-block: .9rem;
}
.marquee-track {
  display: flex; gap: 1.6rem; width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.marquee-track i { color: var(--clay); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   10. Law
   ============================================================= */
.law { background: var(--bg); }
.law-head { max-width: 42rem; margin-bottom: 3rem; }
.law-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.law-card {
  background: var(--paper); padding: clamp(1.6rem, 3.6vw, 2.4rem);
  transition: background .4s var(--ease-out);
}
.law-card:hover { background: #FFFFFF; }
.law-card--warn { background: #F6EFE4; }
.law-card--warn:hover { background: #F9F3EA; }
.law-tag {
  display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(31,92,70,.28); border-radius: 999px; padding: .26rem .68rem; margin-bottom: 1rem;
}
.law-card--warn .law-tag { color: var(--clay); border-color: rgba(180,99,58,.34); }
.law-card h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .7rem; }
.law-card p { font-size: .95rem; color: var(--ink-mute); }
.law-note { font-size: .84rem; color: var(--ink-mute); margin-top: 1.6rem; max-width: 60ch; font-style: italic; }
@media (min-width: 720px) { .law-grid { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   11. Bento benefits
   ============================================================= */
.bento { display: grid; gap: 1rem; }
.bento-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: clamp(1.5rem, 3.4vw, 2.2rem);
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
  will-change: transform;
}
.bento-card:hover { box-shadow: var(--shadow); border-color: rgba(31,92,70,.3); }
.bento-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--clay); }
.bento-card h3 { font-family: var(--serif); font-size: 1.7rem; }
.bento-card p { font-size: .95rem; color: var(--ink-mute); }
.bento-foot {
  margin-top: auto; padding-top: 1rem; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
  border-top: 1px solid var(--line);
}
.bento-card--accent { background: var(--accent); border-color: var(--accent); }
.bento-card--accent h3, .bento-card--accent p, .bento-card--accent .bento-foot { color: #EAF0EA; }
.bento-card--accent h3 { color: #FFFDF9; }
.bento-card--accent .bento-num { color: var(--sun); }
.bento-card--accent .bento-foot { border-color: rgba(255,255,255,.2); }
.bento-card--image { position: relative; padding: 0; overflow: hidden; min-height: 320px; }
.bento-card--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.bento-card--image:hover img { transform: scale(1.06); }
.bento-overlay {
  position: relative; margin-top: auto; padding: clamp(1.4rem, 3.4vw, 2rem);
  background: linear-gradient(0deg, rgba(12,20,16,.88) 0%, rgba(12,20,16,.55) 55%, transparent 100%);
}
.bento-overlay h3 { color: #FFFDF9; font-family: var(--serif); font-size: 1.65rem; margin-bottom: .35rem; }
.bento-overlay p { color: rgba(255,253,249,.82); font-size: .93rem; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); }
  .bento-card--tall { grid-row: span 2; }
  .bento-card--wide { grid-column: span 2; }
}

/* =============================================================
   12. Before / after
   ============================================================= */
.ba-stage {
  position: relative; border-radius: var(--rad); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: var(--bg-2);
  touch-action: pan-y;
}
.ba-img { width: 100%; height: 100%; object-fit: cover; }
.ba-clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-clip .ba-img { width: 100vw; max-width: none; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: rgba(255,253,249,.9); transform: translateX(-1px); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--paper); box-shadow: 0 8px 22px -8px rgba(0,0,0,.5);
  display: grid; place-items: center;
}
.ba-handle span::after {
  content: "‹ ›"; font-size: .95rem; color: var(--accent); letter-spacing: .1em;
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-tag {
  position: absolute; top: 1rem; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .18em; text-transform: uppercase;
  background: rgba(22,33,28,.62); color: #FFFDF9; padding: .34rem .7rem; border-radius: 999px;
  pointer-events: none;
}
.ba-tag--l { left: 1rem; }
.ba-tag--r { right: 1rem; }
.ba-note { font-size: .8rem; color: var(--ink-mute); margin-top: 1rem; font-style: italic; }

/* =============================================================
   13. Models
   ============================================================= */
.model-grid { display: grid; gap: 1.4rem; }
.model {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--rad); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
  will-change: transform;
}
.model:hover { box-shadow: var(--shadow); border-color: rgba(31,92,70,.3); }
.model--featured { border-color: rgba(31,92,70,.4); box-shadow: var(--shadow); }
.model-flag {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #F6F2E8; padding: .32rem .66rem; border-radius: 999px;
}
.model-img { background: var(--bg-2); overflow: hidden; }
.model-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease-out); }
.model:hover .model-img img { transform: scale(1.05); }
.model-body { padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.model-body h3 { font-family: var(--serif); font-size: 1.8rem; }
.model-body > p { font-size: .93rem; color: var(--ink-mute); }
.spec { display: grid; gap: .1rem; margin-top: .4rem; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: 1rem; padding: .52rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.spec dd { font-family: var(--mono); font-size: .78rem; color: var(--ink); }
.model-cta { margin-top: auto; padding-top: 1rem; font-size: .9rem; color: var(--accent); font-weight: 500; }
.model-cta:hover { color: var(--accent-d); }
@media (min-width: 960px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   14. Build quality + wall assembly
   ============================================================= */
.build { background: var(--bg-2); }
.build-wrap { display: grid; gap: 3rem; }
.build-list { list-style: none; display: grid; gap: 1rem; }
.build-list li {
  padding-left: 1.5rem; position: relative; font-size: .96rem; color: var(--ink-mute);
}
.build-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.build-list strong { color: var(--ink); font-weight: 500; }

.wall {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.wall figcaption {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem;
}
.wall-stack { display: grid; gap: 3px; }
.wall-layer {
  height: calc(var(--f) * 34px); min-height: 16px;
  border-radius: 5px; position: relative;
  display: flex; align-items: center; padding-left: .8rem;
  background: linear-gradient(90deg, var(--bg-3), var(--bg-2));
  transition: transform .5s var(--ease-out), filter .5s;
}
.wall-layer:nth-child(1) { background: linear-gradient(90deg, #B27C48, #C48F58); }
.wall-layer:nth-child(3) { background: linear-gradient(90deg, #8FA98F, #A2B9A2); }
.wall-layer:nth-child(4) { background: linear-gradient(90deg, #C9A46E, #D8B681); }
.wall-layer--ins { background: linear-gradient(90deg, #4E7A65, #6E9C86) !important; }
.wall-layer:nth-child(7) { background: linear-gradient(90deg, #F0EADB, #FBF7EE); }
.wall-layer:hover { transform: translateX(9px); filter: brightness(1.05); }
.wall-name {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em;
  color: rgba(22,33,28,.78); white-space: nowrap;
}
.wall-layer--ins .wall-name, .wall-layer:nth-child(1) .wall-name { color: rgba(255,253,249,.92); }
.wall-note { font-size: .76rem; color: var(--ink-mute); margin-top: 1.1rem; font-style: italic; }
@media (min-width: 960px) { .build-wrap { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: start; } }

/* =============================================================
   15. Process
   ============================================================= */
.steps { list-style: none; counter-reset: s; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
  background: var(--bg); padding: clamp(1.5rem, 3.4vw, 2.2rem);
  display: grid; gap: .5rem;
  transition: background .45s var(--ease-out);
}
.step:hover { background: var(--paper); }
.step-n { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; color: var(--clay); }
.step h3 { font-family: var(--serif); font-size: 1.55rem; }
.step p { font-size: .93rem; color: var(--ink-mute); }
.step-time {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-top: .4rem;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* =============================================================
   16. Estimator
   ============================================================= */
.estimator { background: var(--bg-2); }
.calc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
}
.calc-rail {
  list-style: none; display: flex; overflow-x: auto; gap: 0;
  border-bottom: 1px solid var(--line); background: var(--bg);
  scrollbar-width: none;
}
.calc-rail::-webkit-scrollbar { display: none; }
.calc-rail li {
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .9rem 1.1rem; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
  border-right: 1px solid var(--line);
}
.calc-rail li span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: .66rem;
}
.calc-rail li.is-active { color: var(--accent); background: var(--paper); }
.calc-rail li.is-active span { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.calc-rail li.is-done span { background: var(--bg-3); }

.calc-step { display: none; padding: clamp(1.5rem, 4vw, 2.8rem); }
.calc-step.is-active { display: block; animation: stepIn .55s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.calc-h { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: .5rem; }
.calc-p { font-size: .95rem; color: var(--ink-mute); max-width: 56ch; margin-bottom: 1.6rem; }
.calc-p--small { font-size: .86rem; margin-top: 1rem; margin-bottom: 0; }
.calc-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.drop {
  display: grid; justify-items: center; gap: .35rem; text-align: center;
  padding: 2.6rem 1.4rem; border: 1.5px dashed var(--line-2); border-radius: 16px;
  background: var(--bg); cursor: pointer;
  transition: border-color .35s, background .35s, transform .5s var(--ease-out);
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #F7F4EC; transform: translateY(-2px); }
.drop-icon { color: var(--accent); }
.drop-title { font-size: 1rem; color: var(--ink); font-weight: 500; }
.drop-sub { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-mute); }
.drop-status {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px;
  font-size: .88rem; background: var(--bg); border: 1px solid var(--line);
}
.drop-status.is-error { background: #F8EFE7; border-color: rgba(180,99,58,.35); color: #8A4726; }
.drop-status.is-ok { background: #EFF4EF; border-color: rgba(31,92,70,.3); color: var(--accent-d); }

.read-out { margin-top: 1.2rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.read-out > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .95rem; background: var(--bg); }
.read-out dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.read-out dd { font-family: var(--mono); font-size: .8rem; color: var(--ink); text-align: right; }

.field { display: grid; gap: .45rem; margin-bottom: 1.3rem; }
.field label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.field .opt { text-transform: none; letter-spacing: 0; opacity: .7; }
.input {
  width: 100%; padding: .82rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,92,70,.13); }
textarea.input { resize: vertical; }

.slider-row { display: flex; align-items: center; gap: 1rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1;
  height: 4px; border-radius: 4px; background: var(--bg-3); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper);
  box-shadow: 0 3px 10px -3px rgba(31,92,70,.8); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--paper); cursor: grab;
}
.slider-out { font-family: var(--mono); font-size: .84rem; color: var(--ink-mute); white-space: nowrap; }
.slider-out b { font-size: 1.15rem; color: var(--ink); }

.cap-note {
  font-size: .88rem; padding: .8rem 1rem; border-radius: 12px;
  background: #F6EFE4; border: 1px solid rgba(180,99,58,.3); color: #8A4726;
}
.cap-note.is-ok { background: #EFF4EF; border-color: rgba(31,92,70,.3); color: var(--accent-d); }

.autocomplete { position: relative; }
.ac-list {
  list-style: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px;
  margin-top: .35rem; overflow: hidden; box-shadow: var(--shadow);
  max-height: 260px; overflow-y: auto;
}
.ac-list li { padding: .7rem .9rem; font-size: .88rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-list li:last-child { border-bottom: 0; }
.ac-list li:hover, .ac-list li.is-sel { background: var(--bg-2); }

.map-wrap { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.map { height: 380px; background: var(--bg-2); }
.map-tools {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .8rem; background: var(--bg); border-top: 1px solid var(--line);
}
.map-area { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--ink-mute); }
.map-area b { color: var(--ink); font-size: .95rem; }
.leaflet-container { font: inherit; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-mute); margin-bottom: 1.3rem; }
.check input { margin-top: .25rem; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.gate-error, .form-msg {
  font-size: .88rem; padding: .8rem 1rem; border-radius: 12px; margin-top: .6rem;
  background: #F8EFE7; border: 1px solid rgba(180,99,58,.35); color: #8A4726;
}
.form-msg.is-ok { background: #EFF4EF; border-color: rgba(31,92,70,.3); color: var(--accent-d); }

/* result */
.result-kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--clay); margin-bottom: .7rem;
}
.result-title { font-family: var(--serif); font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin-bottom: 1.6rem; }
.result-hero {
  display: grid; gap: .3rem; padding: clamp(1.4rem, 3.4vw, 2rem);
  background: var(--accent); border-radius: 18px; color: #EAF0EA; margin-bottom: 1rem;
}
.result-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.result-big { font-family: var(--serif); font-size: clamp(2rem, 6.6vw, 3.4rem); color: #FFFDF9; line-height: 1.05; }
.result-sub { font-size: .86rem; opacity: .82; }
.result-sub b { font-family: var(--mono); }

.result-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.rcard { background: var(--bg); padding: 1.1rem 1.2rem; display: grid; gap: .18rem; }
.rcard--accent { background: #EFF4EF; }
.rlabel { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.rval { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2rem); color: var(--ink); }
.rcard--accent .rval { color: var(--accent); }
.rnote { font-size: .76rem; color: var(--ink-mute); }
@media (min-width: 720px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }

.assump { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.assump summary { padding: .85rem 1.1rem; cursor: pointer; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--accent); }
.assump ul { list-style: none; padding: 0 1.1rem 1.1rem; display: grid; gap: .45rem; }
.assump li { font-size: .84rem; color: var(--ink-mute); display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .45rem; }
.assump li b { font-family: var(--mono); color: var(--ink); font-weight: 400; white-space: nowrap; }
.result-disc { font-size: .82rem; color: var(--ink-mute); margin: 1.4rem 0 1.8rem; font-style: italic; max-width: 62ch; }

/* =============================================================
   17. Quotes
   ============================================================= */
.quotes-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.demo-flag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); border: 1px dashed rgba(180,99,58,.5); border-radius: 999px;
  padding: .28rem .7rem; margin-bottom: 1.4rem;
}
.quote-grid { display: grid; gap: 1.2rem; }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: clamp(1.5rem, 3.4vw, 2.2rem); position: relative;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  will-change: transform;
}
.quote:hover { box-shadow: var(--shadow); }
.quote::before {
  content: "“"; font-family: var(--serif); font-size: 4.5rem; line-height: 1;
  color: var(--bg-3); position: absolute; top: .6rem; right: 1.2rem;
}
.quote blockquote { font-family: var(--serif); font-size: 1.24rem; line-height: 1.35; color: var(--ink); position: relative; }
.quote figcaption { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .15rem; }
.q-name { font-size: .9rem; color: var(--ink); font-weight: 500; }
.q-meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
@media (min-width: 960px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   18. FAQ
   ============================================================= */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.6rem 1.25rem 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.8vw, 1.42rem); color: var(--ink);
  position: relative; transition: color .3s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent); }
.acc-item summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%;
  width: 13px; height: 13px; margin-top: -7px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .4s var(--ease-out);
}
.acc-item[open] summary::after { transform: rotate(-135deg); }
.acc-body { padding-bottom: 1.4rem; }
.acc-body p { font-size: .96rem; color: var(--ink-mute); max-width: 66ch; }

/* =============================================================
   19. Contact
   ============================================================= */
.contact { background: var(--bg-2); }
.contact-wrap { display: grid; gap: 3rem; }
.contact-list { list-style: none; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.contact-list li { background: var(--bg-2); display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.contact-list span:first-child { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.contact-list a { color: var(--ink); font-size: .95rem; border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-list a:hover { border-color: var(--accent); }

.cta-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; gap: 0;
  box-shadow: var(--shadow);
}
.field--full { grid-column: 1 / -1; }
.cta-form.is-sending { opacity: .7; pointer-events: none; }
@media (min-width: 620px) { .cta-form { grid-template-columns: 1fr 1fr; column-gap: 1.1rem; } }
@media (min-width: 960px) { .contact-wrap { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }

/* =============================================================
   20. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(244,240,232,.7); padding-block: 3.4rem 2.4rem; }
.footer-wrap { display: grid; gap: 2.4rem; }
.footer-brand { display: grid; gap: .9rem; justify-items: start; max-width: 34ch; }
.footer-brand p { font-size: .9rem; }
.footer-brand .mono { color: var(--sun); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-content: start; }
.footer-nav a { font-size: .88rem; transition: color .3s; }
.footer-nav a:hover { color: var(--sun); }
.footer-fine { display: grid; gap: .6rem; font-size: .76rem; color: rgba(244,240,232,.45); max-width: 42ch; }
@media (min-width: 960px) { .footer-wrap { grid-template-columns: 1.2fr .6fr 1fr; } }

/* =============================================================
   21. Chat
   ============================================================= */
.chat-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 950;
  display: flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: 999px;
  background: var(--accent); color: #F6F2E8;
  box-shadow: 0 16px 34px -14px rgba(31,92,70,.9);
  transition: transform .5s var(--ease-out), background .35s;
}
.chat-fab:hover { transform: translateY(-3px); background: var(--accent-d); }
.chat-fab span { font-size: .9rem; font-weight: 500; }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

.chat {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 960;
  width: min(392px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 2rem));
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: chatIn .45s var(--ease-out);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 1.1rem; background: var(--accent); color: #F6F2E8;
}
.chat-name { display: block; font-family: var(--serif); font-size: 1.2rem; color: #FFFDF9; }
.chat-role { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.chat-x { font-size: 1.5rem; line-height: 1; opacity: .85; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: grid; gap: .7rem; align-content: start; }
.msg { max-width: 88%; padding: .7rem .95rem; border-radius: 14px; font-size: .92rem; }
.msg-bot { background: var(--bg-2); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.msg-me { background: var(--accent); color: #F6F2E8; justify-self: end; border-bottom-right-radius: 4px; }
.msg-typing { display: flex; gap: 4px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: dot 1.1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .7rem; }
.chat-chips button {
  font-size: .76rem; padding: .38rem .7rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-mute); transition: border-color .3s, color .3s;
}
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: .5rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.chat-input {
  flex: 1; border: 1px solid var(--line-2); border-radius: 999px;
  padding: .6rem .95rem; font: inherit; font-size: .9rem; background: var(--bg);
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  color: #F6F2E8; display: grid; place-items: center; flex-shrink: 0;
  transition: background .3s, transform .4s var(--ease-out);
}
.chat-send:hover { background: var(--accent-d); transform: scale(1.06); }
.chat-fine { font-size: .68rem; color: var(--ink-mute); text-align: center; padding: 0 1.1rem .8rem; }

/* =============================================================
   22. Reduced motion — only the intrusive stuff
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .splash-line::after { animation: none; }
  .msg-typing i { animation: none; }
}
