/* Arix Labs site kit v1: the page's look. Colours and fonts come from config.js; never edit per lead.
   The stage itself is styled by stage.css. */

:root {
  /* Defaults. site.js replaces --bg, --text, --accent, --accent-ink and the fonts from config.js. */
  --bg: #0d1413;
  --text: #edf1ee;
  --accent: #79c9c3;
  --accent-ink: #0b2826;
  --bg-2: color-mix(in srgb, var(--bg) 95%, var(--text));
  --bg-3: color-mix(in srgb, var(--bg) 91%, var(--text));
  --scrim: color-mix(in srgb, var(--bg) 55%, #000);
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 26%, transparent);
  --muted: color-mix(in srgb, var(--text) 66%, var(--bg));
  --accent-hover: color-mix(in srgb, var(--accent) 82%, #fff);
  --danger: #f0a39a;
  --f-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 400;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-sm: 10px;
  --r-md: 14px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --stage-bg: var(--bg);
  --stage-accent: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: var(--w-display); }
h2 { font-family: var(--f-display); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
.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; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; margin-top: 14px; }
.price { font-family: var(--f-display); font-size: 30px; line-height: 1; white-space: nowrap; }
.price small { font: 500 14px/1 var(--f-body); color: var(--muted); }
textarea { font: 500 15px/1.4 var(--f-body); color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); }
.field.is-bad textarea { border-color: var(--danger); }
.no-stage .stage, .no-stage .stage-hint { display: none; }
section[id] { scroll-margin-top: 96px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font: 600 15px/1 var(--f-body); letter-spacing: .005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .25s ease, box-shadow .35s var(--ease), border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-glow:hover { box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--bg) 28%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--text) 38%, transparent); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 70%, transparent); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 10; }
.preview-bar {
  height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: color-mix(in srgb, var(--text) 82%, transparent); background: color-mix(in srgb, var(--scrim) 86%, transparent);
  border-bottom: 1px solid var(--line); padding: 0 var(--gutter); text-align: center;
}
.site-header {
  height: 70px; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--text) 55%, transparent); font: italic 400 16px/1 var(--f-display); letter-spacing: -.02em;
}
.brand-name { display: inline-flex; flex-direction: column; font: 400 23px/1 var(--f-display); }
.brand-name small { font: 600 9.5px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: color-mix(in srgb, var(--text) 82%, transparent); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--text); cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-lines { top: 21px; }
.menu-lines::before { content: ""; left: 0; right: 0; top: -6px; }
.menu-lines::after { content: ""; left: 0; right: 0; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  margin: 0 var(--gutter); padding: 18px; border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 97%, transparent);
  border: 1px solid var(--line); display: grid; gap: 4px; backdrop-filter: blur(12px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { text-decoration: none; font-size: 17px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; height: 100vh; height: 100svh; min-height: 560px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--scrim) 80%, transparent) 0%, color-mix(in srgb, var(--scrim) 50%, transparent) 34%, color-mix(in srgb, var(--scrim) 0%, transparent) 60%),
    linear-gradient(0deg, color-mix(in srgb, var(--scrim) 60%, transparent) 0%, color-mix(in srgb, var(--scrim) 0%, transparent) 42%);
}
.hero-inner {
  position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  padding: 100px var(--gutter) clamp(48px, 9vh, 96px);
}
.hero-copy { align-self: end; max-width: 660px; }
.hero h1 {
  font-family: var(--f-display); font-size: clamp(46px, 6.1vw, 94px); line-height: .98; letter-spacing: -.012em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-lede { margin-top: 22px; font-size: clamp(16px, 1.35vw, 19px); color: color-mix(in srgb, var(--text) 88%, transparent); max-width: 50ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-slot { position: relative; }
.hero-slot .stage-hint { position: absolute; right: 0; bottom: 6px; }
.hint-line { width: 34px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hint-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: hint-sweep 2.6s var(--ease) infinite; }
@keyframes hint-sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- chapters (shared) ---------- */
.chapter-pin { padding: 108px var(--gutter) 52px; display: grid; }
.chapter-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.side { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.slot { position: relative; min-height: 0; }

/* Featured home */
.chapter-feature { height: 260vh; }
.chapter-feature .chapter-pin { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr) minmax(250px, 330px); gap: 24px; }
.chapter-feature .chapter-pin::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--scrim) 88%, transparent) 0, color-mix(in srgb, var(--scrim) 66%, transparent) 21%, color-mix(in srgb, var(--scrim) 0%, transparent) 35%, color-mix(in srgb, var(--scrim) 0%, transparent) 63%, color-mix(in srgb, var(--scrim) 68%, transparent) 77%, color-mix(in srgb, var(--scrim) 90%, transparent) 100%);
}
.feature-head h2 { font-size: clamp(38px, 3.6vw, 54px); }
.feature-sub { color: color-mix(in srgb, var(--text) 80%, transparent); margin-top: 10px; font-size: 15.5px; max-width: 30ch; }
.feature-head .price { margin-top: 18px; color: var(--accent); }
.callout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.callout-list li { display: grid; gap: 3px; max-width: 30ch; }
.callout-list strong { font-weight: 600; font-size: 16.5px; }
.callout-list span { color: color-mix(in srgb, var(--text) 72%, transparent); font-size: 14.5px; line-height: 1.5; }
.side-left .callout-list { margin-top: auto; padding-bottom: 7vh; gap: 16vh; }
.side-left .callout-list li:first-child { margin-top: 0; }
.side-right { align-items: flex-end; text-align: right; }
.side-right .callout-list { margin-top: 9vh; gap: 23vh; justify-items: end; }
.side-right .callout-list li { text-align: left; }
.feature-foot { margin-top: auto; display: grid; gap: 18px; justify-items: end; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 13.5px; color: color-mix(in srgb, var(--text) 86%, transparent); background: color-mix(in srgb, var(--scrim) 35%, transparent); }
.facts b { font-weight: 700; color: var(--text); }
.feature-foot .facts { justify-content: flex-end; max-width: 320px; }

/* How we sell */
.chapter-steps { height: 480vh; }
.chapter-steps .chapter-pin { grid-template-columns: minmax(300px, 470px) minmax(0, 1fr); }
.chapter-steps .chapter-pin::before { background: linear-gradient(90deg, color-mix(in srgb, var(--scrim) 88%, transparent) 0, color-mix(in srgb, var(--scrim) 62%, transparent) 28%, color-mix(in srgb, var(--scrim) 0%, transparent) 52%); }
.steps-panel { justify-content: center; gap: 36px; }
.steps { display: grid; }
.step { grid-area: 1 / 1; }
.step-num { font-family: var(--f-display); font-size: clamp(76px, 8vw, 120px); line-height: .9; color: var(--accent); }
.step-num span { font-family: var(--f-body); font-size: 14px; color: var(--muted); margin-left: 10px; letter-spacing: .04em; vertical-align: top; }
.step h3 { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; margin-top: 18px; text-wrap: balance; }
.step p:last-child { color: color-mix(in srgb, var(--text) 80%, transparent); margin-top: 12px; max-width: 40ch; font-size: 16.5px; }
.step-progress { display: flex; gap: 8px; }
.step-progress span { width: 44px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background-color .4s ease; }
.steps-panel:has(.step:nth-child(1).is-active) .step-progress span:nth-child(-n+1),
.steps-panel:has(.step:nth-child(2).is-active) .step-progress span:nth-child(-n+2),
.steps-panel:has(.step:nth-child(3).is-active) .step-progress span:nth-child(-n+3),
.steps-panel:has(.step:nth-child(4).is-active) .step-progress span:nth-child(-n+4),
.steps-panel:has(.step:nth-child(5).is-active) .step-progress span:nth-child(-n+5) { background: var(--accent); }

/* Numbers */
.chapter-numbers { height: 200vh; }
.chapter-numbers .chapter-pin { grid-template-rows: minmax(0, 1fr) auto; }
.chapter-numbers .chapter-pin::before { background: linear-gradient(0deg, color-mix(in srgb, var(--scrim) 90%, transparent) 0, color-mix(in srgb, var(--scrim) 62%, transparent) 34%, color-mix(in srgb, var(--scrim) 0%, transparent) 62%); }
.numbers-panel { position: relative; z-index: 1; max-width: 1140px; width: 100%; margin: 0 auto; }
.stats { margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.stats div { padding: 22px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { color: color-mix(in srgb, var(--text) 76%, transparent); font-size: 14.5px; }
.stats dd { margin: 0; font-family: var(--f-display); font-size: clamp(54px, 6vw, 88px); line-height: .95; }
.stats dd small { font-size: .42em; margin-left: 6px; color: var(--muted); font-family: var(--f-body); }
.fineprint { margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.chapter-numbers .numbers-panel { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chapter-numbers.is-parked .numbers-panel { opacity: 1; transform: none; }

/* ---------- listings ---------- */
.items, .action, .site-footer { position: relative; z-index: 4; background: var(--bg); }
.items { padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 120px); }
.items-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.items-tools { display: grid; gap: 14px; justify-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chips button {
  height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: transparent; color: color-mix(in srgb, var(--text) 84%, transparent); font: 500 14px/1 var(--f-body); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chips button:hover { border-color: color-mix(in srgb, var(--text) 60%, transparent); color: var(--text); }
.chips button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--text); }
.chips button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.selects { display: flex; gap: 14px; }
.selects label { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
select, input {
  font: 500 15px/1.2 var(--f-body); color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); height: 46px; padding: 0 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.selects select { height: 38px; padding: 0 34px 0 12px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select option { color: var(--bg); }
input::placeholder { color: color-mix(in srgb, var(--text) 36%, transparent); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.result-count { margin: 30px 0 18px; color: var(--muted); font-size: 14px; }
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.item {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0;
  transition: transform .45s var(--ease), border-color .3s ease, box-shadow .45s var(--ease);
}
.item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .8); }
.item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.item-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.item:hover .item-img img { transform: scale(1.04); }
.item-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.item-body .price { font-size: 27px; }
.item-title { font-weight: 600; font-size: 16px; }
.item-meta { color: var(--muted); font-size: 14px; }
.item-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: color-mix(in srgb, var(--text) 82%, transparent); }
.item-facts span + span { padding-left: 16px; border-left: 1px solid var(--line-strong); }
.item.is-lead { grid-column: span 2; grid-row: span 2; }
.item.is-lead .item-img { aspect-ratio: auto; flex: 1; min-height: 340px; }
.item.is-lead .item-body .price { font-size: 34px; }
.item.is-lead .item-title { font-size: 18px; }
.empty { padding: 40px 0; display: grid; gap: 16px; justify-items: start; color: var(--muted); }

/* ---------- valuation ---------- */
.action { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.action-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.action-photo { margin: 0 0 34px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-3); }
.action-photo img { width: 100%; height: 100%; object-fit: cover; }
.promises { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.promises li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.promises li::before { content: ""; width: 14px; height: 1px; background: var(--accent); flex: none; transform: translateY(-4px); }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.form { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--text) 80%, transparent); padding: 0; }
.field input, .field select { width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.is-bad input, .field.is-bad select { border-color: var(--danger); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; cursor: pointer; color: color-mix(in srgb, var(--text) 84%, transparent);
  transition: background-color .2s ease, border-color .2s ease;
}
.seg input:checked + span { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { color: var(--danger); font-size: 14px; }
.form-done { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: var(--r-sm); padding: 16px 18px; font-size: 15px; line-height: 1.55; }
.form-done strong { display: block; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 64px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand { margin-bottom: 14px; }
.footer-grid p { font-size: 14px; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; font-size: 14.5px; color: color-mix(in srgb, var(--text) 84%, transparent); }
.footer-links a:hover { color: var(--text); }
.footer-small { display: grid; gap: 6px; align-content: start; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--scrim) 72%, transparent); backdrop-filter: blur(6px); animation: fade .3s ease both; }
.modal-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  animation: rise .45s var(--ease) both;
}
.modal-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal-body { padding: 30px 30px 26px; display: grid; gap: 12px; align-content: start; }
.modal-body h3 { font-family: var(--f-display); font-size: 38px; line-height: 1.02; }
.modal-body .eyebrow { margin-bottom: 0; }
.modal-blurb { color: color-mix(in srgb, var(--text) 82%, transparent); font-size: 15.5px; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.request { padding: 18px 0 0; border-top: 1px solid var(--line); margin-top: 6px; gap: 14px; }
.form-title { font-weight: 600; font-size: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
  .chapter-feature .chapter-pin { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px); }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .preview-bar { height: auto; min-height: 30px; padding: 6px var(--gutter); font-size: 11.5px; line-height: 1.35; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-block; }
  .site-header { height: 64px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; font-size: 14px; }
  .brand-name { font-size: 21px; }

  .hero::before { background: linear-gradient(0deg, color-mix(in srgb, var(--scrim) 92%, transparent) 0%, color-mix(in srgb, var(--scrim) 70%, transparent) 34%, color-mix(in srgb, var(--scrim) 0%, transparent) 62%); }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 96px var(--gutter) 34px; }
  .hero-slot { grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-lede { font-size: 15.5px; margin-top: 14px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-slot .stage-hint { right: auto; left: 0; bottom: 12px; }

  .chapter-pin { padding: 96px var(--gutter) 26px; }

  .chapter-feature .chapter-pin {
    grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto auto auto auto; gap: 10px 14px;
  }
  .chapter-feature .chapter-pin::before { background: linear-gradient(0deg, color-mix(in srgb, var(--scrim) 95%, transparent) 0%, color-mix(in srgb, var(--scrim) 82%, transparent) 42%, color-mix(in srgb, var(--scrim) 0%, transparent) 66%); }
  .chapter-feature .side, .chapter-feature .callout-list { display: contents; }
  .chapter-feature .slot { grid-column: 1 / -1; grid-row: 1; }
  .feature-head { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; }
  .feature-head h2 { font-size: 36px; }
  .feature-sub { display: none; }
  .feature-head .price { margin-top: 8px; font-size: 26px; }
  .chapter-feature [data-callout] { position: relative; z-index: 1; max-width: none; padding-left: 28px; margin: 0; text-align: left; }
  .chapter-feature [data-callout]::before {
    content: attr(data-n); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--stage-accent); color: var(--accent-ink); font: 700 11px/20px var(--f-body); text-align: center;
  }
  .chapter-feature [data-callout] span { display: none; }
  .chapter-feature [data-callout] strong { font-size: 14.5px; line-height: 1.35; }
  .chapter-feature .side-right .callout-list li:nth-child(1) { grid-row: 3; grid-column: 2; }
  .chapter-feature .side-left .callout-list li:nth-child(1) { grid-row: 3; grid-column: 1; }
  .chapter-feature .side-left .callout-list li:nth-child(2) { grid-row: 4; grid-column: 1; }
  .chapter-feature .side-right .callout-list li:nth-child(2) { grid-row: 4; grid-column: 2; }
  .feature-foot { grid-column: 1 / -1; grid-row: 5; justify-items: stretch; margin-top: 8px; position: relative; z-index: 1; }
  .feature-foot .facts { display: none; }

  .chapter-steps .chapter-pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .chapter-steps .chapter-pin::before { background: linear-gradient(0deg, color-mix(in srgb, var(--scrim) 94%, transparent) 0%, color-mix(in srgb, var(--scrim) 75%, transparent) 40%, color-mix(in srgb, var(--scrim) 0%, transparent) 64%); }
  .chapter-steps .slot { grid-row: 1; }
  .steps-panel { grid-row: 2; gap: 18px; }
  .steps-panel h2 { font-size: 30px; }
  .step-num { font-size: 64px; }
  .step h3 { font-size: 26px; margin-top: 10px; }
  .step p:last-child { font-size: 15px; }

  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats div { padding: 16px 10px 0 0; }
  .stats div + div { padding-left: 12px; }
  .stats dt { font-size: 12.5px; line-height: 1.35; }
  .stats dd { font-size: 42px; }
  .numbers-panel h2 { font-size: 34px; }

  .items-head { align-items: flex-start; }
  .items-tools { justify-items: start; width: 100%; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter)); padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .selects { width: 100%; }
  .selects label { flex: 1; flex-direction: column; align-items: stretch; gap: 6px; }
  .action-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { grid-template-columns: 1fr; max-height: 92vh; border-radius: var(--r-md) var(--r-md) 0 0; }
  .modal-img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .modal-body { padding: 22px 20px 26px; }
  .modal-body h3 { font-size: 32px; }
}
@media (max-width: 640px) {
  .item-grid { grid-template-columns: 1fr; }
  .item.is-lead { grid-column: auto; grid-row: auto; }
  .item.is-lead .item-img { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .item, .item-img img { transition: none; }
}
/* items.plain: text-only cards (added 29 Nov 2026). */
.item.is-plain .item-body { padding: 26px 26px 28px; gap: 8px; }
.item.is-plain .item-title { font-family: var(--f-display); font-size: 21px; line-height: 1.2; }
.item.is-plain .item-facts { margin-top: 14px; }
.modal-img[hidden] { display: none; }
/* steps.glass: each step sits on a frosted glass card so long text reads over the stage. */
.chapter-steps.is-glass .step {
  padding: 26px 28px 28px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg) 46%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
}
.chapter-steps.is-glass .step p:last-child { color: var(--text); }
@media (min-width: 821px) {
  .chapter-steps.is-glass .chapter-pin { grid-template-columns: minmax(300px, 640px) minmax(0, 1fr); }
  .chapter-steps.is-glass .steps-panel { gap: 22px; }
  .chapter-steps.is-glass .step-num { font-size: clamp(52px, 4.6vw, 76px); }
  .chapter-steps.is-glass .step h3 { margin-top: 10px; }
  .chapter-steps.is-glass .step p:last-child { max-width: 60ch; font-size: 16px; line-height: 1.55; }
}
@media (max-width: 820px) { .chapter-steps.is-glass .step { padding: 18px 18px 20px; } .chapter-steps.is-glass .step-num { font-size: 48px; } }
/* S.contact: the lead's own email, WhatsApp and social links (added 29 Nov 2026). */
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.footer-contact a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.footer-contact a:hover { color: var(--accent); }
/* kit end v1 */
