/* =============================================================
   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 — las 8 casitas
   ============================================================= */
.model-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.6rem;
}
.model-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.model-hint { font-size: .8rem; color: var(--ink-mute); font-style: italic; }

.model-grid { display: grid; gap: 1.3rem; }
@media (min-width: 700px)  { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .model-grid { grid-template-columns: repeat(4, 1fr); } }

.model {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; will-change: transform;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.model:hover { box-shadow: var(--shadow); border-color: rgba(31,92,70,.3); }
.model.is-hidden { display: none; }

/* cabecera: el número del modelo y los pies cuadrados, en grande */
.model-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  padding: 1.1rem clamp(1.1rem, 2.4vw, 1.5rem) .5rem;
  border-bottom: 1px solid var(--line);
}
.model-num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
  color: var(--clay);
}
.model-sqft {
  font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--ink);
}
.model-sqft i { font-style: normal; font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); }

.model-body {
  padding: clamp(1.1rem, 2.4vw, 1.5rem); display: flex; flex-direction: column;
  gap: .7rem; flex: 1;
}
.model-body h3 { font-family: var(--serif); font-size: 1.42rem; line-height: 1.12; }
.model-tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.model-blurb { font-size: .9rem; color: var(--ink-mute); }

.model-feats { list-style: none; display: grid; gap: .32rem; }
.model-feats li {
  position: relative; padding-left: 1.05rem; font-size: .85rem; color: var(--ink-soft);
}
.model-feats li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* Ficha de datos. La usan tambien las tarjetas de proyecto y de financiacion. */
.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 .spec { margin-top: .2rem; }
.model .spec dd { text-align: right; max-width: 60%; }

/* el precio */
.model-price {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  display: grid; gap: .1rem;
}
.model-price-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.model-price-big { font-family: var(--serif); font-size: 1.95rem; line-height: 1.05; color: var(--clay); }
.model-price-mo { font-size: .8rem; color: var(--ink-mute); }

.model-cta-btn { margin-top: .9rem; width: 100%; }


/* =============================================================
   13b. Built work — project tabs + photo gallery
   ============================================================= */
.project { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg-2) 100%); }

/* ---- project switcher ---- */
.proj-tabs {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.proj-tab {
  display: grid; gap: .18rem; text-align: left;
  padding: .85rem 1.3rem; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--paper);
  transition: border-color .35s, background .35s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.proj-tab:hover { border-color: var(--accent); transform: translateY(-2px); }
.proj-tab.is-active {
  background: var(--accent); border-color: var(--accent); color: #F6F2E8;
  box-shadow: 0 14px 30px -18px rgba(31,92,70,.9);
}
.proj-tab-name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.1; color: inherit; }
.proj-tab.is-active .proj-tab-name { color: #F6F2E8; }
.proj-tab-meta {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.proj-tab.is-active .proj-tab-meta { color: rgba(246,242,232,.78); }

/* ---- one project panel ---- */
.proj-panel[hidden] { display: none; }
.proj-panel { animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.proj-title { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .5rem; }
.proj-title em { font-style: italic; color: var(--accent); }
.proj-lede { font-size: 1rem; color: var(--ink-mute); max-width: 60ch; margin-bottom: 1.8rem; }

.proj { display: grid; gap: 1.4rem; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }

.proj-hero {
  position: relative; overflow: hidden; border-radius: var(--rad);
  border: 1px solid var(--line); background: var(--bg-3);
  cursor: pointer; box-shadow: var(--shadow);
}
.proj-hero img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.proj-hero:hover img, .proj-hero:focus-visible img { transform: scale(1.04); }
.proj-hero figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem; padding: 3.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(22,33,28,.86), rgba(22,33,28,0));
  color: #F6F2E8;
}
.proj-hero-cap { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.proj-hero-open {
  font-size: .82rem; font-weight: 500;
  border: 1px solid rgba(246,242,232,.5); border-radius: 999px; padding: .38rem .9rem;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.proj-hero:hover .proj-hero-open { background: rgba(246,242,232,.16); border-color: rgba(246,242,232,.85); }

.proj-facts {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.proj-facts h4 { font-family: var(--serif); font-size: 1.55rem; }
.proj-facts .spec dd a { color: var(--accent); border-bottom: 1px solid rgba(31,92,70,.35); }
.proj-note { font-size: .9rem; color: var(--ink-mute); }
.proj-facts .btn { align-self: flex-start; }
.proj-link { font-size: .86rem; color: var(--accent); font-weight: 500; }
.proj-link:hover { color: var(--accent-d); }

/* ---- filter bar ---- */
.gal-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.2rem;
}
.gal-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gal-chip {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-mute);
  transition: border-color .3s, color .3s, background .3s;
}
.gal-chip span { opacity: .55; margin-left: .35rem; }
.gal-chip:hover { border-color: var(--accent); color: var(--accent); }
.gal-chip.is-active { background: var(--accent); border-color: var(--accent); color: #F6F2E8; }
.gal-chip.is-active span { opacity: .7; }
.gal-hint { font-size: .8rem; color: var(--ink-mute); font-style: italic; }

/* ---- grid ---- */
.gal-grid {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}
.gal-cell {
  position: relative; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-3);
  padding: 0; display: block; text-align: left;
  transition: box-shadow .5s var(--ease-out), border-color .4s, transform .5s var(--ease-out), opacity .4s;
}
.gal-cell img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.gal-cell--tall img { aspect-ratio: 3 / 4; }
.gal-cell:hover { box-shadow: var(--shadow); border-color: rgba(31,92,70,.35); transform: translateY(-3px); }
.gal-cell:hover img { transform: scale(1.06); }
.gal-cell.is-hidden { display: none; }
.gal-tag {
  position: absolute; inset: auto 0 0 0;
  padding: 2rem .8rem .65rem;
  background: linear-gradient(to top, rgba(22,33,28,.82), rgba(22,33,28,0));
  color: #F6F2E8; font-family: var(--mono);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.gal-cell:hover .gal-tag, .gal-cell:focus-visible .gal-tag { opacity: 1; transform: none; }
@media (hover: none) { .gal-tag { opacity: 1; transform: none; } }

@media (min-width: 700px) {
  .gal-grid { grid-template-columns: repeat(4, 1fr); gap: .85rem; }
  .gal-cell--wide { grid-column: span 2; }
  .gal-cell--tall { grid-row: span 2; }
  .gal-cell--tall img { aspect-ratio: auto; height: 100%; }
  .gal-tag { opacity: 1; transform: none; }
}
@media (min-width: 1080px) {
  .proj { grid-template-columns: minmax(0, 1.62fr) minmax(320px, 1fr); align-items: stretch; }
  .proj-hero img { aspect-ratio: auto; height: 100%; }
}

/* ---- lightbox ---- */
.lb {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(.4rem, 2vw, 1.4rem); padding: clamp(.8rem, 3vw, 2.2rem);
  background: rgba(12,19,16,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: lbIn .32s var(--ease-out);
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 11rem);
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
}
.lb-stage figcaption {
  max-width: 62ch; text-align: center; color: #E7E1D4;
  display: grid; gap: .35rem;
}
.lb-count { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }
.lb-cap { font-size: .95rem; line-height: 1.5; }

.lb-nav, .lb-close {
  color: #F6F2E8; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(246,242,232,.1); border: 1px solid rgba(246,242,232,.22);
  transition: background .3s, transform .35s var(--ease-out);
}
.lb-nav { width: 52px; height: 52px; }
.lb-nav:hover, .lb-close:hover { background: rgba(246,242,232,.24); transform: scale(1.07); }
.lb-close {
  position: absolute; top: clamp(.8rem, 3vw, 1.6rem); right: clamp(.8rem, 3vw, 1.6rem);
  width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; z-index: 2;
}
@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-stage { grid-row: 1; }
  /* Both arrows share the one cell under the photo, pinned to opposite edges. */
  .lb-nav { position: relative; grid-column: 1; grid-row: 2; width: 46px; height: 46px; }
  .lb-prev { justify-self: start; }
  .lb-next { justify-self: end; }
  .lb-stage img { max-height: calc(100vh - 15rem); }
}
/* =============================================================
   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. Financing card + yard reader
   ============================================================= */
.finance { background: var(--bg-2); }
.finance-wrap { display: grid; gap: clamp(2rem, 5vw, 3.4rem); align-items: start; }
@media (min-width: 1000px) { .finance-wrap { grid-template-columns: 1fr minmax(400px, 470px); } }

.finance-points { list-style: none; display: grid; gap: .9rem; margin-top: .4rem; }
.finance-points li {
  position: relative; padding-left: 1.6rem; font-size: .96rem; color: var(--ink-mute);
}
.finance-points li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.finance-points b { color: var(--ink); font-weight: 600; }

/* ---- the card ---- */
.finance-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--rad); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.3rem);
  display: grid; gap: 1.1rem;
}
.fin-kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--clay);
}
.fin-title { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4vw, 2.5rem); }

.fin-field { display: grid; gap: .45rem; min-width: 0; }
.fin-row { display: grid; gap: 1.1rem; }
@media (min-width: 460px) { .fin-row { grid-template-columns: 1fr 1fr; } }

.fin-label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-mute);
}
.fin-label b { color: var(--ink); }

.fin-select {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: .6rem 2rem .6rem 0; border: 0; border-bottom: 1px solid var(--line-2);
  background: transparent; border-radius: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C7A72' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .1rem center; background-size: 18px;
}
.fin-select:focus { outline: none; border-bottom-color: var(--accent); }

.fin-range { width: 100%; accent-color: var(--clay); cursor: pointer; }
.fin-hint { font-size: .88rem; color: var(--ink-mute); }
.fin-hint b { color: var(--ink); font-weight: 600; }

.fin-apr { display: flex; align-items: center; gap: .4rem; }
.fin-apr label { font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.fin-apr-input {
  width: 4.2rem; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .2rem .3rem; border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
}
.fin-apr-input:focus { outline: none; border-bottom-color: var(--accent); }

/* ---- the number ---- */
.fin-out { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; gap: .35rem; }
.fin-out-label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-mute);
}
.fin-big { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; color: var(--clay); }
.fin-big em { font-style: normal; font-family: var(--sans); font-size: 1rem; color: var(--ink-mute); }
.fin-break { font-size: .9rem; color: var(--ink-mute); }
.fin-break b { color: var(--ink); font-weight: 600; }
.fin-disc { font-size: .78rem; color: var(--ink-mute); font-style: italic; }

/* ---- form ---- */
.fin-form { border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: 1rem; }
.fin-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--ink-mute); }
.fin-consent input { margin-top: .25rem; accent-color: var(--accent); flex: 0 0 auto; }
.fin-submit { width: 100%; }
.fin-status { font-size: .9rem; padding: .6rem .8rem; border-radius: 10px; }
.fin-status.is-ok  { background: rgba(31,92,70,.1); color: var(--accent-d); }
.fin-status.is-bad { background: rgba(180,99,58,.12); color: var(--clay); }
.fin-fine { font-size: .76rem; color: var(--ink-mute); line-height: 1.5; }

/* =============================================================
   16b. Yard reader
   ============================================================= */
.yard-box {
  max-width: 760px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--rad); padding: clamp(1.4rem, 3.5vw, 2.2rem); display: grid; gap: 1.1rem;
}
.drop {
  display: grid; justify-items: center; gap: .4rem; cursor: pointer; text-align: center;
  padding: clamp(1.8rem, 5vw, 3rem) 1.2rem;
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg);
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(31,92,70,.05); }
.drop.is-over { transform: scale(1.01); }
.drop-icon { color: var(--accent); }
.drop-title { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.drop-sub { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

.drop-status { font-size: .92rem; padding: .7rem .95rem; border-radius: 10px; }
.drop-status.is-info { background: var(--bg-2); color: var(--ink-soft); }
.drop-status.is-ok   { background: rgba(31,92,70,.1); color: var(--accent-d); }
.drop-status.is-bad  { background: rgba(180,99,58,.12); color: var(--clay); }

.read-out { display: grid; gap: .1rem; border-top: 1px solid var(--line); }
.read-out > div {
  display: flex; justify-content: space-between; gap: 1.2rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.read-out dt {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute); flex: 0 0 auto;
}
.read-out dd { font-size: .92rem; color: var(--ink); text-align: right; }
.yard-disc { font-size: .82rem; color: var(--ink-mute); font-style: italic; }
.yard-cta { justify-self: start; }


/* =============================================================
   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);
}
.chat[hidden] { display: none; }
@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; }
}

/* =============================================================
   13c. Tabla comparativa de modelos
   ============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cmp { margin-top: clamp(3rem, 7vw, 5rem); }
.cmp-head {
  display: grid; gap: 1rem; align-items: start;
  margin-bottom: 1.6rem;
}
@media (min-width: 900px) { .cmp-head { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.cmp-title { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.cmp-intro { font-size: .95rem; color: var(--ink-mute); max-width: 52ch; }

/* La tabla tiene 8 columnas: en movil se desplaza sola dentro de su caja,
   sin arrastrar el resto de la pagina. */
.cmp-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--rad); background: var(--paper);
}
.cmp-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.cmp-table thead th {
  text-align: left; white-space: nowrap;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
  padding: 1rem 1.1rem; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.cmp-table tbody tr { transition: background .25s; }
.cmp-table tbody tr:hover { background: var(--bg); }
.cmp-table tbody tr + tr th, .cmp-table tbody tr + tr td { border-top: 1px solid var(--line); }
.cmp-table th[scope="row"] {
  text-align: left; font-weight: 500; color: var(--ink); font-size: .96rem;
  padding: .95rem 1.1rem; white-space: nowrap;
}
.cmp-table td {
  padding: .95rem 1.1rem; font-size: .92rem; color: var(--ink-soft); white-space: nowrap;
}
.cmp-price { font-family: var(--mono); font-size: .88rem; color: var(--clay); }
.cmp-go a { color: var(--clay); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.cmp-go a:hover { color: var(--accent); }
.cmp-foot { margin-top: 1rem; font-size: .78rem; color: var(--ink-mute); line-height: 1.55; }

/* ---- foto del modelo y ficha descargable (13. Models) ---- */
.model-img { background: var(--bg-2); overflow: hidden; }
.model-img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  transition: transform 1s var(--ease-out);
}
.model:hover .model-img img { transform: scale(1.04); }

.model-pdf {
  display: inline-flex; align-items: center; gap: .42rem;
  margin-top: .7rem; align-self: start;
  font-size: .82rem; font-weight: 500; color: var(--ink-mute);
  transition: color .3s;
}
.model-pdf:hover { color: var(--accent); }
.model-pdf svg { flex: 0 0 auto; }
