/* ============================================================
   CLT Houses — Premium Scandi Redesign
   ============================================================ */

:root {
  /* Palette — Scandi Premium (default) */
  --bg: #F5F1EB;
  --surface: #FFFFFF;
  --surface-warm: #EFE9DD;
  --ink: #1B1A17;
  --ink-2: #2B2925;
  --muted: #736D62;
  --muted-2: #A39B8C;
  --hairline: #E2DBCE;
  --hairline-strong: #CFC6B4;
  --oak: #B58A63;
  --oak-deep: #8E6948;
  --forest: #3B4A3F;
  --accent: var(--oak);

  /* Type */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Geist", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Density */
  --pad-section: clamp(80px, 9vw, 140px);
  --pad-x: clamp(20px, 5vw, 64px);
  --gap-lg: clamp(48px, 6vw, 96px);
  --gap-md: clamp(24px, 3vw, 48px);
  --maxw: 1440px;

  /* Type scale */
  --t-display: clamp(56px, 8.5vw, 144px);
  --t-h1: clamp(44px, 6vw, 96px);
  --t-h2: clamp(36px, 4.4vw, 72px);
  --t-h3: clamp(24px, 2.2vw, 36px);
  --t-h4: clamp(18px, 1.4vw, 22px);
  --t-lead: clamp(18px, 1.4vw, 22px);
  --t-body: 16px;
  --t-small: 13px;
  --t-eyebrow: 11px;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg: #14130F;
  --surface: #1C1B17;
  --surface-warm: #22201B;
  --ink: #F2EDE2;
  --ink-2: #DDD7C9;
  --muted: #9C9483;
  --muted-2: #66614F;
  --hairline: #2D2B25;
  --hairline-strong: #44413A;
  --oak: #C9A07F;
  --oak-deep: #B58A63;
  --forest: #6B8A72;
}

/* Density tweaks */
[data-density="compact"] {
  --pad-section: clamp(56px, 6vw, 96px);
  --gap-lg: clamp(32px, 4vw, 64px);
  --gap-md: clamp(20px, 2.4vw, 36px);
}
[data-density="airy"] {
  --pad-section: clamp(100px, 12vw, 180px);
  --gap-lg: clamp(64px, 8vw, 128px);
  --gap-md: clamp(36px, 4.4vw, 64px);
}

/* Font theme tweaks */
[data-font-set="all-sans"] {
  --font-display: var(--font-sans);
}
[data-font-set="editorial"] {
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Geist", system-ui, sans-serif;
}
[data-font-set="mono-accent"] {
  --font-display: "Geist Mono", ui-monospace, monospace;
  --font-sans: "Geist", system-ui, sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

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

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-section) 0; }
.section--first { padding-top: calc(var(--pad-section) - 24px); }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.018em; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; }
.h4 { font-family: var(--font-sans); font-weight: 500; font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.005em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.italic { font-style: italic; }

/* When all-sans is active, italic on display elements should still look distinct */
[data-font-set="all-sans"] .italic { font-style: normal; color: var(--oak-deep); }

/* ============================================================
   Buttons & links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--oak-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--text { padding: 0; background: transparent; border: 0; color: var(--ink); border-bottom: 1px solid currentColor; border-radius: 0; padding-bottom: 2px; }
.btn--text:hover { color: var(--oak-deep); }
.btn--lg { padding: 18px 30px; font-size: 15px; }

.btn .arr { transition: transform .25s ease; display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }

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

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--hairline) 60%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display);
  font-size: 18px;
  border-radius: 3px;
}
.nav__name { font-weight: 500; font-size: 15px; letter-spacing: -0.005em; }
.nav__name span { color: var(--muted); font-weight: 400; }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav__link:hover { color: var(--oak-deep); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__lang {
  display: flex; gap: 0; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 3px; font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.nav__lang button {
  background: transparent; border: 0; padding: 4px 10px; border-radius: 999px; color: var(--muted); transition: all .2s;
}
.nav__lang button.active { background: var(--ink); color: var(--bg); }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

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

.hero { padding: clamp(48px, 6vw, 80px) 0 var(--pad-section); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
.hero__head { display: flex; flex-direction: column; gap: 32px; }
.hero__eyebrow-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__eyebrow-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oak); }

.hero__title { max-width: 17ch; }
.hero__meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: var(--gap-md);
  border-top: 1px solid var(--hairline);
}
.hero__meta { display: flex; flex-direction: column; gap: 6px; }
.hero__meta .v { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.hero__meta .l { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .hero__meta-row { grid-template-columns: repeat(2, 1fr); } }

.hero__visual {
  margin-top: var(--gap-md);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-warm);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
[data-hero="split"] .hero__visual { aspect-ratio: auto; height: 100%; min-height: 480px; margin-top: 0; }
[data-hero="split"] .hero__grid {
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}
[data-hero="split"] .hero__head { padding-right: clamp(0px, 2vw, 32px); }
@media (max-width: 980px) {
  [data-hero="split"] .hero__grid { grid-template-columns: 1fr; }
  [data-hero="split"] .hero__visual { min-height: 360px; aspect-ratio: 16/10; margin-top: var(--gap-md); }
}

/* Centered hero variant */
[data-hero="centered"] .hero__head { align-items: center; text-align: center; }
[data-hero="centered"] .hero__title { max-width: 22ch; }
[data-hero="centered"] .hero__lead { max-width: 60ch; }
[data-hero="centered"] .hero__meta-row { width: 100%; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Floating calculator preview chip on hero visual */
.hero__chip {
  position: absolute;
  left: 24px; bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.25);
}
.hero__chip .price { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.hero__chip .arrow { width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 50%; font-size: 11px; }

/* ============================================================
   Section header
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
  align-items: end;
}
.sec-head__title { max-width: 14ch; }
.sec-head__lead { max-width: 52ch; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ============================================================
   Calculator
   ============================================================ */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }

.calc__form { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.calc__result { background: var(--ink); color: var(--bg); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px; }

.calc__field { display: flex; flex-direction: column; gap: 12px; }
.calc__field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.calc__slider-row { display: flex; align-items: baseline; gap: 16px; }
.calc__slider-row .val { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); line-height: 1; }
.calc__slider-row .unit { color: var(--muted); }

.calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--hairline);
  border-radius: 999px;
  outline: none;
  margin-top: 4px;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: grab;
}
.calc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: grab;
}

.calc__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.calc__chip {
  padding: 10px 16px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  transition: all .2s;
}
.calc__chip:hover { border-color: var(--ink); }
.calc__chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.calc__price-label { color: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.calc__price { font-family: var(--font-display); font-size: clamp(56px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.02em; }
.calc__price-range { color: rgba(255,255,255,.55); font-size: 14px; }
.calc__breakdown { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.calc__breakdown-row { display: flex; justify-content: space-between; font-size: 14px; }
.calc__breakdown-row span:first-child { color: rgba(255,255,255,.65); }
.calc__cta { display: flex; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.calc__cta .btn--primary { background: var(--bg); color: var(--ink); }
.calc__cta .btn--primary:hover { background: var(--oak); color: var(--bg); }
.calc__cta .btn--ghost { color: var(--bg); border-color: rgba(255,255,255,.3); }
.calc__cta .btn--ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ============================================================
   Models
   ============================================================ */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.model {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 24px;
  transition: background .25s;
  cursor: pointer;
}
.model:hover { background: var(--surface-warm); }
.model__visual {
  aspect-ratio: 4/3;
  background: var(--surface-warm);
  border: 1px solid var(--hairline);
  overflow: hidden;
  position: relative;
}
.model__meta { display: flex; justify-content: space-between; align-items: baseline; }
.model__name { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 40px); line-height: 1; }
.model__price { color: var(--muted); font-size: 14px; font-family: var(--font-mono); }
.model__specs { display: flex; gap: 18px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--hairline); }
.model__specs span strong { color: var(--ink); font-weight: 500; }

@media (max-width: 980px) { .models { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .models { grid-template-columns: 1fr; } }

/* ============================================================
   Process timeline
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.step {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 24px;
  min-height: 280px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.step__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.05; }
.step__desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.step__time { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--oak-deep); letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 1100px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

/* ============================================================
   Materials
   ============================================================ */
.materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}
@media (max-width: 880px) { .materials { grid-template-columns: 1fr; } }

.materials__visual {
  aspect-ratio: 4/5;
  background: var(--surface-warm);
  border: 1px solid var(--hairline);
}
.materials__list { display: flex; flex-direction: column; }
.material-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.material-row:last-child { border-bottom: 0; }
.material-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 6px; }
.material-row__body h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.15; }
.material-row__body p { margin: 0; font-size: 14px; color: var(--muted); }
.material-row__icon { width: 32px; height: 32px; border: 1px solid var(--hairline-strong); border-radius: 50%; display: grid; place-items: center; color: var(--oak-deep); font-size: 12px; font-family: var(--font-mono); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.testi {
  background: var(--bg);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 24px;
}
.testi__quote { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.testi__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-warm); border: 1px solid var(--hairline); }
.testi__name { font-size: 14px; font-weight: 500; }
.testi__loc { font-size: 12px; color: var(--muted); }

@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-md);
}
@media (max-width: 880px) { .faq { grid-template-columns: 1fr; } }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; color: var(--ink);
}
.faq__q:hover { color: var(--oak-deep); }
.faq__icon { font-family: var(--font-mono); font-size: 18px; color: var(--muted); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--oak-deep); }
.faq__a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  font-size: 15px; color: var(--muted); line-height: 1.65;
}
.faq__item[open] .faq__a { max-height: 400px; padding: 0 0 24px; }

/* ============================================================
   Blog teaser
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; gap: 20px; cursor: pointer; group: card; }
.blog-card__visual {
  aspect-ratio: 4/3;
  background: var(--surface-warm);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card__visual { transform: scale(1.005); }
.blog-card__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oak-deep); }
.blog-card__title { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.1; max-width: 20ch; text-wrap: balance; }
.blog-card__meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }

/* ============================================================
   Lead form
   ============================================================ */
.lead-form {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(56px, 7vw, 120px) clamp(32px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}
@media (max-width: 880px) { .lead-form { grid-template-columns: 1fr; } }
.lead-form .h2 { color: var(--bg); }
.lead-form .lead { color: rgba(255,255,255,.65); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding: 10px 0;
  color: var(--bg);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--oak); }

.form-submit-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.form-submit-row .legal { font-size: 12px; color: rgba(255,255,255,.45); max-width: 32ch; }
.lead-form .btn--primary { background: var(--bg); color: var(--ink); }
.lead-form .btn--primary:hover { background: var(--oak); color: var(--bg); }

.success {
  padding: 48px;
  background: var(--forest);
  color: var(--bg);
  display: flex; flex-direction: column; gap: 12px;
  grid-column: 1 / -1;
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg); padding: var(--pad-section) 0 32px; border-top: 1px solid var(--hairline); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 36ch; }
.footer__big { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.footer__col a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer__col a:hover { color: var(--oak-deep); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 16px; }

/* ============================================================
   Sticky calculator pill
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 12px 12px 24px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 10px 50px -20px rgba(0,0,0,.5);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 40;
}
.sticky-cta.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.sticky-cta button {
  background: var(--bg); color: var(--ink); border: 0; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
}
.sticky-cta button:hover { background: var(--oak); color: var(--bg); }

/* ============================================================
   Image-slot integration
   ============================================================ */
image-slot { width: 100%; height: 100%; }

/* ============================================================
   Sub-page (blog) styles
   ============================================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--pad-section) var(--pad-x);
}
.article__meta { display: flex; gap: 16px; align-items: center; margin-bottom: 32px; color: var(--muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.article__title { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance; }
.article__lead { font-size: 20px; color: var(--muted); line-height: 1.55; margin-bottom: 48px; text-wrap: pretty; }
.article__hero { aspect-ratio: 16/9; background: var(--surface-warm); border: 1px solid var(--hairline); margin-bottom: 56px; }
.article p { font-size: 17px; line-height: 1.7; margin: 0 0 22px; color: var(--ink-2); }
.article h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); margin: 56px 0 20px; line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; }
.article h3 { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); margin: 40px 0 16px; line-height: 1.15; font-weight: 400; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 22px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.article li { margin-bottom: 8px; }
.article blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--oak);
  background: var(--surface-warm);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--ink);
}
.article__cta-box {
  margin: 56px 0;
  padding: 40px;
  background: var(--ink);
  color: var(--bg);
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start;
}
.article__cta-box h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); margin: 0; color: var(--bg); }
.article__cta-box p { margin: 0; color: rgba(255,255,255,.65); }
.article__cta-box .btn--primary { background: var(--bg); color: var(--ink); }
.article__cta-box .btn--primary:hover { background: var(--oak); color: var(--bg); }
.article__nav {
  display: flex; justify-content: space-between; gap: 32px;
  padding: 56px 0 0;
  border-top: 1px solid var(--hairline);
  margin-top: 56px;
  font-size: 14px;
}
.article__nav a { color: var(--muted); }
.article__nav a:hover { color: var(--ink); }

/* ============================================================
   Decorative wood texture (subtle SVG pattern)
   ============================================================ */
.wood-pattern {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 12px,
      rgba(181,138,99,0.08) 12px,
      rgba(181,138,99,0.08) 13px
    ),
    linear-gradient(135deg, #E5D5BF 0%, #D4BFA0 100%);
}
[data-theme="dark"] .wood-pattern {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 12px,
      rgba(201,160,127,0.12) 12px,
      rgba(201,160,127,0.12) 13px
    ),
    linear-gradient(135deg, #3A3128 0%, #261F18 100%);
}

.stripe-pattern {
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface-warm) 0,
      var(--surface-warm) 14px,
      var(--hairline) 14px,
      var(--hairline) 15px
    );
}

.placeholder-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
