/* ==========================================================================
   Aleš Tvaroh – landing pages
   Brand: RE/MAX blue + red on warm paper. Montserrat (headings and text, free alternative to Gotham used by RE/MAX).
   Spacing: 4px base scale. Type: fluid with clamp(), body ≥ 16px.
   ========================================================================== */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy-950: #06122a;
  --navy-900: #0b1b3a;
  --navy-800: #13295a;
  --blue: #003da5;
  --blue-500: #2a62c9;
  --blue-50: #eef3fc;
  --red: #d6202f;
  --red-700: #b31a26;
  --coral: #ff9a9f;
  --paper: #faf7f2;
  --sand: #f2ece2;
  --line: #e3dccf;
  --line-strong: #cfc6b6;
  --ink: #14203a;
  --muted: #5b6478;
  --white: #fff;
  --success: #1f7a4d;

  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --radius-sm: 10px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgb(11 27 58 / .06), 0 2px 8px rgb(11 27 58 / .05);
  --shadow: 0 2px 4px rgb(11 27 58 / .05), 0 12px 32px rgb(11 27 58 / .10);
  --shadow-lg: 0 4px 8px rgb(6 18 42 / .08), 0 28px 64px rgb(6 18 42 / .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-synthesis-weight: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-4); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; padding: var(--s-3) var(--s-4); background: var(--white); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--s-4); }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: var(--s-10); }

/* ---------- typography ---------- */
.display, .h1, .h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.display { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); line-height: 1.1; }
.h1 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.15; margin-bottom: var(--s-4); }
.h2 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem); line-height: 1.18; }
.h3 { font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.display em, .h2 em { font-style: normal; font-weight: 700; color: var(--red); }
.h2__sub { display: block; margin-top: var(--s-2); font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ''; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--coral); }
.hint { margin: calc(-1 * var(--s-1)) 0 var(--s-3); font-size: .875rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--white); --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6); border: 1.5px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--red); --fg: var(--white); box-shadow: 0 6px 18px rgb(214 32 47 / .28); }
.btn--primary:hover { --bg: var(--red-700); box-shadow: 0 10px 24px rgb(214 32 47 / .34); }
.btn--navy { --bg: var(--navy-900); --fg: var(--white); }
.btn--navy:hover { --bg: var(--navy-800); }
.btn--outline { --bg: transparent; --bd: var(--line-strong); }
.btn--outline:hover { --bd: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: var(--white); --bd: rgb(255 255 255 / .35); }
.btn--outline-light:hover { --bd: var(--white); --bg: rgb(255 255 255 / .06); }
.btn--ghost { --bg: transparent; --bd: var(--line); --fg: var(--muted); padding: 0 var(--s-4); }
.btn--ghost:hover { --fg: var(--ink); --bd: var(--line-strong); }
.btn--icon { --bg: var(--navy-900); --fg: var(--white); width: 52px; padding: 0; }
.btn--lg { min-height: 56px; font-size: 1.0625rem; padding: 0 var(--s-8); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn[aria-busy='true'] { pointer-events: none; opacity: .8; }
.btn[aria-busy='true'] span::after { content: ''; display: inline-block; width: 1em; height: 1em; margin-left: .6em; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.linklike { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 3; background: var(--navy-900); color: var(--white); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__mark { width: 26px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.brand__text span { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .62); }
.topbar__phone { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1.5px solid rgb(255 255 255 / .22); border-radius: 999px; color: var(--white); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: background-color .2s, border-color .2s; }
.topbar__phone:hover { color: var(--white); border-color: var(--white); background: rgb(255 255 255 / .06); }
.topbar__phone-label { display: none; color: rgb(255 255 255 / .7); font-weight: 600; }
@media (max-width: 420px) { .topbar__phone-number { display: none; } .topbar__phone { width: 44px; padding: 0; justify-content: center; } }
@media (min-width: 900px) { .topbar__phone-label { display: inline; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: var(--s-6) 0 var(--s-12); }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 85% -10%, rgb(0 61 165 / .55), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(214 32 47 / .16), transparent 60%);
}
.hero__bg::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid { position: relative; display: grid; gap: var(--s-8); }
.hero__copy .lead { margin-top: var(--s-5); color: rgb(255 255 255 / .82); max-width: 36rem; }
.hero .display em { color: var(--coral); }
.ticks { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.ticks li { display: flex; align-items: flex-start; gap: var(--s-3); font-weight: 600; }
.ticks .icon { color: var(--coral); margin-top: 2px; }
@media (max-width: 899px) {
  .hero .ticks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
  .hero .ticks li { align-items: center; gap: var(--s-2); padding: 6px 12px 6px 8px; border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; background: rgb(255 255 255 / .05); font-size: .875rem; }
  .hero .ticks .icon { width: 18px; height: 18px; margin: 0; }
}
.ticks--dark { margin: var(--s-6) 0 var(--s-8); }
.ticks--dark .icon { color: var(--blue); }
/* agent card: personal face in the first screen */
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.agent-card { display: flex; align-items: center; gap: var(--s-4); margin: 0; }
.agent-card__photo { position: relative; flex: none; }
.agent-card__photo::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border: 3px solid var(--navy-900); border-radius: 50%; background: #3ccf7a; }
.portrait--hero { width: 64px; height: 64px; border-radius: 50%; object-position: 50% 18%; background: #eef1f6; box-shadow: 0 0 0 3px rgb(255 255 255 / .14); }
.agent-card blockquote { display: none; margin: 0; }
.agent-card strong { display: block; font-size: 1rem; line-height: 1.3; }
.agent-card p span { display: block; font-size: .8125rem; color: rgb(255 255 255 / .66); }
@media (max-width: 899px) {
  .agent-card { order: -1; margin-bottom: var(--s-6); }
}
@media (min-width: 900px) {
  .agent-card { align-items: flex-start; gap: var(--s-5); margin-top: var(--s-10); padding: var(--s-5); max-width: 36rem; border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-lg); background: rgb(255 255 255 / .05); }
  .portrait--hero { width: 112px; height: 136px; border-radius: var(--radius); box-shadow: none; }
  .agent-card__photo::after { right: -5px; bottom: -5px; }
  .agent-card blockquote { display: block; margin-bottom: var(--s-3); font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 1.0625rem; line-height: 1.5; color: rgb(255 255 255 / .92); }
}
@media (min-width: 900px) {
  .hero { padding: var(--s-12) 0 var(--s-24); }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-16); align-items: start; }
  .hero__copy { padding-top: var(--s-8); }
}

/* ---------- portrait ---------- */
.portrait { object-fit: cover; background: var(--navy-800); }
.portrait--placeholder { display: grid; place-items: center; color: var(--white); background: linear-gradient(145deg, var(--blue) 0%, var(--navy-900) 75%); }
.portrait--placeholder span { font-family: var(--font-display); font-style: normal; font-weight: 700; letter-spacing: -0.02em; }
.portrait--xs { width: 40px; height: 40px; border-radius: 50%; object-position: 50% 15%; background: #eef1f6; }
.portrait--xs span { font-size: .9375rem; }
.portrait--thanks { width: 112px; height: 112px; border-radius: 50%; object-position: 50% 15%; background: #eef1f6; box-shadow: 0 0 0 8px rgb(255 255 255 / .06); }
.portrait--thanks span { font-size: 2.25rem; }
.portrait--large { object-position: 50% 20%; background: #eef1f6; }
.portrait--large { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); }
.portrait--large span { font-size: clamp(4rem, 10vw, 7rem); }

/* ---------- form ---------- */
.lead-form { position: relative; padding: var(--s-6) var(--s-5); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); }
@media (min-width: 480px) { .lead-form { padding: var(--s-8); } }
@media (min-width: 900px) { .lead-form { max-width: 500px; margin-left: auto; } }
.lead-form__head { margin-bottom: var(--s-6); }
.lead-form__progress { display: none; height: 4px; margin-bottom: var(--s-4); border-radius: 4px; background: var(--sand); overflow: hidden; }
.lead-form__progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--red); transition: width .4s var(--ease); }
.lead-form[data-step='2'] .lead-form__progress span { width: 100%; }
.lead-form__step-label { display: none; margin-bottom: var(--s-2); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.js .lead-form__progress, .js .lead-form__step-label { display: block; }
.lead-form__title { font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + .7vw, 1.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.lead-form__sub { margin-top: var(--s-1); color: var(--muted); font-size: .9375rem; }
.form-agent { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-3); border-radius: var(--radius); background: var(--paper); font-size: .875rem; line-height: 1.4; }
.form-agent span { display: block; color: var(--muted); font-size: .8125rem; }

.form-step { display: grid; gap: var(--s-5); }
.js .form-step:not(.is-active) { display: none; }
.js .form-step.is-active { animation: stepIn .35s var(--ease); }
html:not(.js) [data-next], html:not(.js) [data-prev] { display: none; }
html:not(.js) .form-step + .form-step { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.label { display: block; margin-bottom: var(--s-3); padding: 0; font-weight: 700; font-size: .9375rem; color: var(--ink); }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.input {
  width: 100%; min-height: 52px; padding: 0 var(--s-4); border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #9aa1af; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 61 165 / .12); }
.input::-webkit-calendar-picker-indicator { opacity: 0; }

.chips { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 359px) { .chips--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 480px) { .chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); height: 100%; min-height: 48px;
  padding: var(--s-2) var(--s-3); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.chip--icon span { flex-direction: column; gap: var(--s-1); min-height: 76px; padding-inline: var(--s-1); font-size: .875rem; }
.lead-form__step-label:focus { outline: none; }
.chip--icon .icon { width: 26px; height: 26px; color: var(--muted); transition: color .15s; }
.chip:hover span { border-color: var(--line-strong); }
.chip input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); color: var(--navy-900); }
.chip input:checked + span .icon { color: var(--blue); }
.chip:active span { transform: scale(.98); }

.check { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-3) var(--s-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: .9375rem; font-weight: 600; transition: border-color .15s, background-color .15s; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.check span { display: inline-flex; align-items: center; gap: var(--s-2); }
.check .icon { color: var(--blue); }
.check:has(input:checked) { border-style: solid; border-color: var(--blue); background: var(--blue-50); }

.field__error { display: none; margin-top: var(--s-2); font-size: .875rem; font-weight: 600; color: var(--red-700); }
.field.has-error .field__error { display: block; }
.field.has-error .input, .field.has-error .chip span { border-color: var(--red); }
.form-actions { display: flex; gap: var(--s-3); }
.form-error { padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: #fdecee; color: var(--red-700); font-size: .9375rem; font-weight: 600; }
.form-note { display: flex; gap: var(--s-2); font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.form-note .icon { width: 16px; height: 16px; margin-top: 2px; }
.form-note a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 379px) { .sr-only-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- proof strip ---------- */
.proof { position: relative; z-index: 2; }
.proof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: var(--s-8); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.proof__item { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5) var(--s-4); background: var(--white); }
.proof__item strong { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.15; color: var(--navy-900); letter-spacing: -0.015em; }
.proof__item span { font-size: .875rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 900px) {
  .proof__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: calc(-1 * var(--s-12)); box-shadow: var(--shadow); }
  .proof__item { padding: var(--s-6) var(--s-8); }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--navy { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.section--navy::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50rem 30rem at 100% 0%, rgb(0 61 165 / .45), transparent 60%); pointer-events: none; }
.section--navy .container { position: relative; }
.section--navy .h2 em { color: var(--coral); }
.section__head { max-width: 46rem; margin-bottom: var(--s-10); }
.section__lead { margin-top: var(--s-4); font-size: 1.0625rem; color: rgb(255 255 255 / .78); }
.container--narrow .section__head { margin-inline: auto; text-align: center; }
.container--narrow .section__head .eyebrow::before { display: none; }

/* cards */
.cards { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-8) var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-2); border-radius: var(--radius); background: var(--blue-50); color: var(--blue); }
.card__icon .icon { width: 28px; height: 28px; }

/* steps */
.steps { display: grid; gap: var(--s-8); counter-reset: s; }
.steps__item { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-4); row-gap: var(--s-1); }
.steps__item .h3, .steps__item p { grid-column: 2; }
.steps__item p { color: var(--muted); }
.steps__num { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.steps__item:not(:last-child)::after { content: ''; position: absolute; left: 23px; top: 56px; bottom: calc(-1 * var(--s-8) + 8px); width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
@media (min-width: 760px) {
  .steps:not(.steps--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); }
  .steps:not(.steps--compact) .steps__item { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .steps:not(.steps--compact) .steps__item .h3, .steps:not(.steps--compact) .steps__item p { grid-column: 1; }
  .steps:not(.steps--compact) .steps__num { grid-row: auto; margin-bottom: var(--s-2); }
  .steps:not(.steps--compact) .steps__item:not(:last-child)::after { left: 64px; right: calc(-1 * var(--s-8) + 16px); top: 23px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
}

/* split: sell + buy */
.split { display: grid; gap: var(--s-10); align-items: center; }
.split__copy > p:not(.eyebrow) { margin-top: var(--s-4); color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-16); } }
.swap-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--s-4); padding: clamp(40px, 7vw, 72px) var(--s-6); border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--sand), #e9e0d1); overflow: hidden; }
.swap-visual::before { content: ''; position: absolute; inset: 18px; border: 1px dashed var(--line-strong); border-radius: calc(var(--radius-xl) - 10px); }
.swap-visual__tile { position: relative; display: grid; place-items: center; gap: var(--s-2); width: clamp(104px, 22vw, 150px); aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--white); color: var(--navy-900); box-shadow: var(--shadow); }
.swap-visual__tile .icon { width: 44%; height: auto; aspect-ratio: 1; }
.swap-visual__tile small { font-weight: 700; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.swap-visual__tile--accent { background: var(--navy-900); color: var(--white); transform: translateY(18px); }
.swap-visual__tile--accent small { color: rgb(255 255 255 / .7); }
.swap-visual__arrow { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 6px 16px rgb(214 32 47 / .35); }
@media (prefers-reduced-motion: no-preference) { .swap-visual__arrow .icon { animation: swap 3.2s var(--ease) infinite; } }
@keyframes swap { 0%, 60% { transform: rotate(0); } 80%, 100% { transform: rotate(180deg); } }

/* projects */
.projects { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
.project { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-8) var(--s-6); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-lg); background: rgb(255 255 255 / .04); transition: background-color .3s, border-color .3s; }
@media (min-width: 900px) { .project { padding: var(--s-10); } }
.project:hover { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .2); }
.project p { color: rgb(255 255 255 / .75); }
.project__stat { display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-2); }
.project__stat strong { font-family: var(--font-display); font-size: clamp(2.75rem, 2.2rem + 2.4vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--white); }
.project__stat span { font-weight: 700; color: var(--coral); }
.project__place { display: flex; align-items: center; gap: var(--s-2); font-size: .875rem; font-weight: 600; }
.project__place .icon { width: 18px; height: 18px; }

/* about */
.about { display: grid; gap: var(--s-10); align-items: center; }
.about__media { position: relative; max-width: 420px; }
.about__media::after { content: ''; position: absolute; inset: 20px -20px -20px 20px; z-index: -1; border: 2px solid var(--red); border-radius: var(--radius-xl); opacity: .5; }
.about__copy > p:not(.eyebrow) { margin-top: var(--s-4); color: var(--muted); font-size: 1.0625rem; }
.about__copy .h2 { margin-bottom: var(--s-2); }
.facts { display: grid; gap: var(--s-3); margin-top: var(--s-8); }
.facts li { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.facts .icon { width: 22px; height: 22px; color: var(--blue); }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-20); } }
@media (max-width: 899px) { .about__media { width: 78%; margin-inline: auto; } }

/* faq */
.faq { display: grid; gap: var(--s-3); }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .3s; }
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px; padding: var(--s-4) var(--s-5); font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--muted); transition: transform .3s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.faq__item[open] .faq__a { animation: fadeDown .3s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* final cta */
.final { position: relative; overflow: hidden; padding: var(--section) 0; background: var(--navy-900); color: var(--white); text-align: center; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40rem 24rem at 50% 120%, rgb(214 32 47 / .28), transparent 70%), radial-gradient(40rem 24rem at 50% -20%, rgb(0 61 165 / .5), transparent 70%); }
.final__inner { position: relative; max-width: 760px; }
.final .h2 em { color: var(--coral); }
.final p { margin-top: var(--s-4); color: rgb(255 255 255 / .78); font-size: 1.0625rem; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-8); }

/* footer */
.footer { padding: var(--s-12) 0 calc(var(--s-8) + 88px); background: var(--navy-950); color: rgb(255 255 255 / .62); font-size: .875rem; }
@media (min-width: 900px) { .footer { padding-bottom: var(--s-8); } }
.footer a, .footer .linklike { color: rgb(255 255 255 / .85); }
.footer p + p { margin-top: var(--s-3); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr; } }
.footer__name { color: var(--white); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__legal { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid rgb(255 255 255 / .1); font-size: .8125rem; }

/* sticky mobile CTA */
.sticky-cta { position: fixed; inset: auto 0 0; z-index: 40; display: flex; gap: var(--s-2); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: rgb(250 247 242 / .92); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* consent */
.consent { position: fixed; inset: auto var(--s-3) var(--s-3); z-index: 60; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__inner { width: 100%; max-width: 640px; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); font-size: .875rem; line-height: 1.5; animation: rise .4s var(--ease); }
.consent__title { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-1); font-weight: 700; font-size: .9375rem; }
.consent__title .icon { color: var(--red); }
.consent__text { color: var(--muted); }
.consent__text a { color: inherit; }
.consent__prefs { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.switch { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.switch small { display: block; font-weight: 500; color: var(--muted); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-4); }
.consent__actions [hidden] { display: none; }
.consent__actions [data-consent-accept] { grid-column: 1 / -1; order: -1; }
@media (min-width: 560px) { .consent__actions { display: flex; justify-content: flex-end; } .consent__actions [data-consent-accept] { order: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* thank-you + legal */
.hero--thanks { padding: var(--s-16) 0 var(--s-20); text-align: center; }
.thanks__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.thanks__agent { position: relative; margin-bottom: var(--s-6); }
.thanks__check { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--navy-900); border-radius: 50%; background: #3ccf7a; color: var(--white); }
.thanks__check .icon { width: 22px; height: 22px; }
.thanks__badge { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: var(--s-6); border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--coral); box-shadow: 0 0 0 10px rgb(255 255 255 / .04); }
.thanks__badge .icon { width: 36px; height: 36px; }
.thanks .lead { margin-top: var(--s-5); max-width: 36rem; color: rgb(255 255 255 / .82); }
.thanks .lead a { color: var(--white); font-weight: 700; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-8); }
.thanks__hint { margin-top: var(--s-4); font-size: .875rem; color: rgb(255 255 255 / .6); }
.thanks .footer { padding-bottom: var(--s-8); }
body[data-page='thanks'] .footer, body[data-page='legal'] .footer { padding-bottom: var(--s-8); }
.legal { padding: var(--s-12) 0 var(--section); }
.legal .h3 { margin: var(--s-10) 0 var(--s-3); }
.legal p, .legal li { color: #3b455a; }
.legal p + p { margin-top: var(--s-3); }
.legal ul { display: grid; gap: var(--s-2); padding-left: var(--s-5); list-style: disc; }
.legal__meta { color: var(--muted); font-size: .875rem; }

/* ---------- reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* project photos */
.project { overflow: hidden; }
.project__media { position: relative; margin: calc(-1 * var(--s-8)) calc(-1 * var(--s-6)) var(--s-4); aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
@media (min-width: 900px) { .project__media { margin: calc(-1 * var(--s-10)) calc(-1 * var(--s-10)) var(--s-4); } }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__media figcaption { position: absolute; right: var(--s-2); bottom: var(--s-2); padding: 2px 8px; border-radius: 6px; background: rgb(6 18 42 / .6); color: rgb(255 255 255 / .8); font-size: .6875rem; }
.turnstile:empty { display: none; }
