/* Let's Paint - demo v5 ("the dark room").
   Direction: one blue-black field top to bottom; Yan's real photographs are the lit things in it.
   One accent (marigold) reserved for the single primary action. One typeface (Archivo), regular weights.
   Motion: Emil Kowalski rules (custom ease-out, UI under 300ms, press feedback, no scale(0), reduced motion). */

:root {
  /* palette: taste "blue-black-cornflower" proportions, brand accent kept */
  --ground: #0b0e14;
  --surface: #121722;
  --surface-2: #1a2130;
  --ink: #eceff4;
  --ink-2: #b3bcc9;            /* 9.9:1 on ground */
  --link: #8cb8ee;
  --accent: #ffc02e;           /* the one action color */
  --accent-press: #f2ac00;
  --on-accent: #12161d;
  --paper: #f3f5f8;            /* panels that hold forms */
  --paper-ink: #12161d;
  --paper-ink-2: #3d4655;
  --paper-line: #c3ccd8;
  --tape: #2f74c0;
  --ok: #1d7a4f;
  --err: #b42318;
  --err-dark: #ff9b8f;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* five sizes */
  --t-display: clamp(2.6rem, 1.15rem + 5.2vw, 5.75rem);
  --t-h2: clamp(1.9rem, 1.25rem + 2.3vw, 3.2rem);
  --t-h3: 1.3rem;
  --t-body: 1.125rem;
  --t-small: .9375rem;

  --gap-section: 64px;
  --margin: 20px;
  --header-h: 64px;
  --r: 3px;                    /* square-ish, decided once */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (min-width: 720px) { :root { --margin: 32px; } }
@media (min-width: 1024px) { :root { --gap-section: 96px; --margin: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; font: 400 var(--t-body)/1.6 var(--font); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
html { scrollbar-color: #2b3445 var(--ground); }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--margin); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--paper-ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* uniform section rhythm */
main > section { padding-block: var(--gap-section); }
.sec-h { font-size: var(--t-h2); margin-bottom: 24px; }
.sec-h span { background: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em; border-radius: var(--r);
  font: 600 1rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 .9em; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 1.8em; font-size: 1.05rem; }
.btn-cta { background: var(--accent); color: var(--on-accent); }
.btn-cta:hover { background: var(--accent-press); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-line, .btn-ghost-light, .btn-line-light { background: transparent; color: var(--ink); border-color: #3a4558; }
.btn-line:hover, .btn-ghost-light:hover, .btn-line-light:hover { border-color: var(--ink); }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.text-link { display: inline-block; color: var(--link); font-weight: 500; padding: 10px 0; }
.link-btn { background: none; border: 0; color: var(--tape); font: 500 .95rem var(--font); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 44px; padding: 0 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ground); transition: background-color 200ms ease; }
.site-header.is-scrolled { background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin: 0; white-space: nowrap; }
.wm-tape { display: inline-block; width: .85em; height: .38em; background: var(--tape); transform: rotate(-12deg); }
.main-nav { display: none; margin-left: auto; gap: 2px; }
.main-nav a { color: var(--ink-2); text-decoration: none; padding: 10px 12px; font-size: .97rem; transition: color 150ms ease; }
.main-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang { min-width: 44px; min-height: 44px; border-radius: var(--r); border: 0; background: var(--surface-2); font: 600 .85rem var(--font); color: var(--ink); cursor: pointer; transition: transform 160ms var(--ease-out); }
.lang:active { transform: scale(0.97); }
@media (max-width: 420px) { .hide-xs { display: none; } }
@media (min-width: 1100px) { .main-nav { display: flex; } .header-actions { margin-left: 16px; } }

/* ---------- Hero ---------- */
main > section.hero { padding-block: 40px var(--gap-section); }
.hero-grid { display: grid; gap: 28px; }
.hero-h { font-size: var(--t-display); line-height: .98; letter-spacing: -0.035em; }
.hero-h .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h .line > span { display: inline-block; }
.hero-sub { font-size: var(--t-body); color: var(--ink-2); max-width: 44ch; margin: 24px 0 32px; }
.hero-visual { min-width: 0; }
@media (max-width: 1023px) {
  .hero-copy { display: contents; }
  .hero-h { order: 1; }
  .hero-visual { order: 2; }
  .hero-sub { order: 3; margin: 0; }
  .hero .btn-cta { order: 4; justify-self: stretch; }
}
@media (min-width: 1024px) {
  main > section.hero { padding-block: 72px var(--gap-section); }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; min-height: calc(100svh - var(--header-h) - 72px - 96px); }
  .hero-copy { padding-bottom: 8px; }
}

/* Before/after (hero) */
.ba { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ba-handle span::before, .ba-handle span::after { content: ''; position: absolute; top: 50%; border: 6px solid transparent; transform: translateY(-50%); }
.ba-handle span::before { left: 7px; border-right-color: var(--paper-ink); }
.ba-handle span::after { right: 7px; border-left-color: var(--paper-ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-ba + * { margin-top: 0; }
.hero-visual figcaption, .ba figcaption { position: static; }
.hero-ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; font-size: var(--t-small); color: #fff; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; } /* neutral scrim under text on a photo */
.tag-b, .tag-a { position: absolute; top: 12px; padding: 4px 10px; font-size: .85rem; font-weight: 600; pointer-events: none; }
.tag-b { left: 12px; background: var(--paper-ink); color: #fff; }
.tag-a { right: 12px; background: #fff; color: var(--paper-ink); }

/* one grade for every photograph so the set reads as one shoot */
.svc-lead img, .svc-list img, .g-btn img, .ba-pair img, .pin-img, .ba img { filter: saturate(.9) contrast(1.04) brightness(.96); }

/* ---------- Services ---------- */
.svc-lead { display: grid; gap: 24px; }
.svc-lead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-lead-copy h3 { font-size: var(--t-h2); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; }
.svc-lead-copy p { max-width: 46ch; }
.svc-also { color: var(--ink-2); }
@media (min-width: 1024px) { .svc-lead { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }
.svc-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .svc-list { grid-template-columns: 1fr 1fr; gap: 8px; } }
.svc-list li { display: flex; gap: 20px; align-items: center; padding: 16px; background: var(--surface); }
.svc-list img { width: 112px; height: 84px; object-fit: cover; flex: none; }
.svc-list h3 { margin-bottom: 4px; }
.svc-list p { margin: 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.svc-plain { min-height: 116px; }

/* ---------- Color visualizer ---------- */
.colors-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .colors-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.colors-copy > p { color: var(--ink-2); max-width: 46ch; }
.col-scope { display: inline-flex; background: var(--surface); padding: 4px; margin: 8px 0 20px; }
.seg { min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--ink-2); font: 500 .95rem var(--font); cursor: pointer; border-radius: var(--r); transition: background-color 150ms ease, color 150ms ease; }
.seg.is-on { background: var(--surface-2); color: var(--ink); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.swatch { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px 6px 6px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  font: 400 .92rem/1.25 var(--font); transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.swatch:hover { background: var(--surface-2); }
.swatch:active { transform: scale(0.98); }
.swatch[aria-checked="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--ink); }
.swatch i { width: 40px; height: 40px; flex: none; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.swatch b { display: block; font-weight: 500; }
.swatch small { color: var(--ink-2); font-size: .8rem; }
.col-note { font-size: var(--t-small); color: var(--ink-2); margin-top: 16px; }
.col-stage { margin: 0; }
.col-stage svg { width: 100%; height: auto; display: block; }
.col-stage .cab { fill: var(--cab, #edeae0); transition: fill 240ms var(--ease-out); }
.col-stage .cab-lo { fill: var(--cab-lo, var(--cab, #edeae0)); }
.col-stage .ln-u { stroke: var(--cab-line, rgba(0,0,0,.18)); transition: stroke 240ms var(--ease-out); }
.col-stage .ln-l { stroke: var(--cab-line-lo, var(--cab-line, rgba(0,0,0,.18))); transition: stroke 240ms var(--ease-out); }
.col-stage figcaption { margin-top: 14px; color: var(--ink-2); }
.col-stage figcaption strong { color: var(--ink); font-weight: 500; }

/* ---------- Estimator ---------- */
main > section.estimator { background: var(--surface); }
.est-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .est-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.est-intro p { color: var(--ink-2); max-width: 40ch; }
.est-progress { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 6px; }
.est-progress li { flex: 1; font-size: .85rem; color: var(--ink-2); padding-top: 10px; border-top: 3px solid #2b3445; transition: border-color 200ms ease, color 200ms ease; }
.est-progress li.is-on { border-color: var(--accent); color: var(--ink); }
.est-card { background: var(--paper); color: var(--paper-ink); border-radius: var(--r); padding: 22px; min-height: 360px; display: flex; flex-direction: column; }
@media (min-width: 600px) { .est-card { padding: 32px; } }
.est-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: stepIn 220ms var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.est-step legend { font-weight: 500; font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 16px; padding: 0; }
.hint { font-weight: 500; margin: 16px 0 8px; color: var(--paper-ink-2); font-size: .95rem; }
.est-step legend + .hint, .sz > .hint:first-child { margin-top: 0; }
.hint-err { color: var(--err) !important; font-weight: 600; }
.choices { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.choices-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .choices-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice > span { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--paper-line); border-radius: var(--r); background: #fff; transition: border-color 150ms ease, background-color 150ms ease; }
.choice strong { font-weight: 600; line-height: 1.25; }
.choice small { color: var(--paper-ink-2); font-size: .85rem; }
.choice:hover > span { border-color: #8d9aab; }
.choice input:checked + span { border-color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--tape); outline-offset: 2px; }
.steppers { display: grid; gap: 4px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.stepper > span { display: flex; flex-direction: column; }
.stepper small { color: var(--paper-ink-2); font-size: .85rem; }
.stp { display: flex; align-items: center; border: 1.5px solid var(--paper-line); border-radius: var(--r); overflow: hidden; flex: none; background: #fff; }
.stp button { width: 44px; height: 44px; border: 0; background: #eef1f5; font: 600 1.3rem var(--font); color: var(--paper-ink); cursor: pointer; transition: background-color 150ms ease; }
.stp button:hover { background: #e1e6ed; }
.stp button:active { background: #d4dbe4; }
.stp input { width: 52px; height: 44px; border: 0; text-align: center; font: 600 1.1rem var(--font); color: var(--paper-ink); -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.stp input::-webkit-outer-spin-button, .stp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--paper-ink); margin: 0; }
.est-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 24px; }
.est-nav #estNext { margin-left: auto; min-width: 140px; }
.est-card .btn-ghost-light, .est-card .btn-line, .lead-form .btn-line { color: var(--paper-ink); border-color: var(--paper-line); }
.est-card .btn-line:hover, .est-card .btn-ghost-light:hover { border-color: var(--paper-ink); }
.res-label { font-weight: 500; color: var(--paper-ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.demo-tag { background: #fff3cd; color: #6b4900; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r); }
.res-range { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.res-summary { color: var(--paper-ink-2); }
.res-note { font-size: .95rem; padding: 12px 14px; background: #e8edf3; border-radius: var(--r); }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.res-actions .btn { flex: 1 1 220px; }
.res-high { margin-top: 14px; padding: 14px; border-radius: var(--r); background: #fff6dd; color: var(--paper-ink); }
.res-high p { margin-bottom: 10px; }

/* ---------- Work ---------- */
.work-head { display: grid; gap: 8px; }
.work-head p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 1024px) { .work-head { grid-template-columns: 1fr 1fr; align-items: end; } .work-head p { justify-self: end; } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 0; background: var(--surface); color: var(--ink-2); font: 500 .95rem var(--font); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip.is-active { background: var(--ink); color: var(--ground); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.g-wide { grid-column: 1 / -1; }
.g-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--surface); }
.g-btn img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 400ms var(--ease-out); }
@media (hover: hover) { .g-btn:hover img { transform: scale(1.03); } }
.g-cat { display: none; }
.ba-pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: relative; }
.ba-pair > div { position: relative; overflow: hidden; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-pair .tag-a { right: auto; left: 12px; }
.ba-pair figcaption { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--t-small); padding-top: 4px; }
@media (min-width: 760px) { .ba-pair img { aspect-ratio: 16 / 10; } }

/* ---------- How it works ---------- */
main > section.steps-sec { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 32px; }
@media (min-width: 760px) and (max-width: 1023px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }
.steps-pin { display: none; }
@media (min-width: 1024px) {
  .steps-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; margin-top: 8px; }
  .steps-pin { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .pin-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground); }
  .pin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease-in-out); }
  .pin-img.is-on { opacity: 1; }
  .pin-tape { top: 12px; left: 12px; }
  .pin-meta { margin-top: 16px; }
  .pin-bar { display: block; height: 3px; background: #2b3445; overflow: hidden; }
  .pin-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
  .steps { gap: 0; margin: 0; }
  .steps li { min-height: 44vh; display: flex; flex-direction: column; justify-content: center; opacity: .4; transition: opacity 300ms ease; }
  .steps li.is-active { opacity: 1; }
  .steps h3 { font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
  .steps p { font-size: var(--t-body); max-width: 34ch; }
}

/* ---------- Reviews ---------- */
.rev-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .rev-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.rev-num { font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 400; letter-spacing: -0.05em; line-height: .85; margin: 0; font-variant-numeric: tabular-nums; }
.rev-stars { color: var(--accent); font-size: 1.4rem; letter-spacing: 4px; margin: 12px 0 0; }
.rev-src { color: var(--ink-2); margin: 0; }
.rev-copy p { max-width: 52ch; color: var(--ink-2); }
.rev-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.rev-ctas .btn-cta { background: transparent; color: var(--ink); border-color: #3a4558; }
.rev-ctas .btn-cta:hover { border-color: var(--ink); background: transparent; }
.review-cards { grid-column: 1 / -1; display: grid; gap: 8px; }
@media (min-width: 800px) { .review-cards { grid-template-columns: repeat(3, 1fr); } }
.review-card { margin: 0; background: var(--surface); padding: 20px; }
.todo-review { display: none; }
.review-cards:not(:has(.review-card:not(.todo-review))) { display: none; }

/* ---------- Contact / lead form / calendar ---------- */
main > section.contact { background: var(--surface); }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact-copy > p { color: var(--ink-2); max-width: 44ch; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
.area h3 { margin-bottom: 6px; }
.area p { color: var(--ink-2); font-size: var(--t-small); }
.lead-form, .lead-done { background: var(--paper); color: var(--paper-ink); border-radius: var(--r); padding: 22px; }
.lead-stage { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lead-form, .lead-done { padding: 30px; } .lead-stage[data-stage="details"] { grid-template-columns: 1fr 1fr; } }
.field-full, .est-carry { grid-column: 1 / -1; }
.lead-stage[data-stage="details"] > .field:has(#f-email), .field-zip { grid-column: 1 / -1; }
.field label, .mini-radios legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--paper-ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #9aa7b8; border-radius: var(--r); font: 400 1rem var(--font); color: var(--paper-ink); background: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input::placeholder, .field textarea::placeholder { color: #66717f; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--paper-ink); box-shadow: 0 0 0 3px rgba(47,116,192,.28); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field input[type="checkbox"], .field input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--paper-ink); }
.field-zip { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; }
.mini-radios { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.mini-radios legend { padding: 0; width: 100%; }
.mini-radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--paper-line); border-radius: var(--r); background: #fff; cursor: pointer; font-weight: 500; font-size: .95rem; margin: 0; }
.mini-radios label:has(input:checked) { border-color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-ink); }
.est-carry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #e8edf3; border-radius: var(--r); padding: 8px 12px; font-size: .95rem; }
.form-error { color: var(--err); font-weight: 600; margin: 0; }
.form-note { margin: 0; font-size: .9rem; color: var(--paper-ink-2); }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; }
.stage-h { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.stage-p { color: var(--paper-ink-2); margin: 0; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.lead-done { animation: stepIn 240ms var(--ease-out); }
.done-ref { display: inline-block; font-weight: 600; font-size: 1.3rem; background: var(--accent); color: var(--on-accent); padding: 2px 10px; border-radius: var(--r); margin-bottom: 14px; }
.lead-done h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.done-tips { margin: 0; padding-left: 1.2em; color: var(--paper-ink-2); }

.cal { background: #fff; border-radius: var(--r); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-month { margin: 0; font-weight: 600; font-size: 1.1rem; }
.cal-nav { width: 44px; height: 44px; border-radius: var(--r); border: 0; background: #eef1f5; font: 600 1.4rem var(--font); color: var(--paper-ink); cursor: pointer; transition: transform 160ms var(--ease-out); }
.cal-nav:active { transform: scale(0.95); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .8rem; font-weight: 600; color: var(--paper-ink-2); padding: 4px 0; }
.cal-day { aspect-ratio: 1 / 1; min-height: 40px; border-radius: var(--r); border: 0; font: 600 .95rem var(--font); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.cal-day.is-open { background: #dfeaf8; color: var(--paper-ink); }
.cal-day.is-open:hover { background: #c9dcf3; }
.cal-day.is-open:active { transform: scale(0.95); }
.cal-day.is-off { background: transparent; color: #8e98a6; cursor: default; text-decoration: line-through; }
.cal-day.is-picked { background: var(--paper-ink) !important; color: #fff !important; }
.cal-blank { aspect-ratio: 1 / 1; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .85rem; color: var(--paper-ink-2); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 2px; }
.lg-open { background: #dfeaf8; }
.lg-off { background: #fff; box-shadow: inset 0 0 0 1.5px var(--paper-line); margin-left: 10px; }
.cal-times { animation: stepIn 220ms var(--ease-out); }
.cal-times-h { font-weight: 600; margin: 4px 0 8px; }
.cal-time-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-time { min-height: 46px; min-width: 104px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--paper-line); background: #fff; font: 600 .98rem var(--font); color: var(--paper-ink); cursor: pointer; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.cal-time:hover { border-color: var(--paper-ink); }
.cal-time:active { transform: scale(0.97); }
.cal-time.is-picked { background: var(--paper-ink); color: #fff; border-color: var(--paper-ink); }
.cal-pick { margin: 0; font-weight: 600; background: #fff6dd; padding: 10px 12px; border-radius: var(--r); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 16px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 5fr 7fr; gap: 64px; } }
.faq details { background: var(--surface); margin-bottom: 6px; border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 500; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--ink-2); padding: 0 20px 18px; margin: 0; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ground); color: var(--ink-2); padding-block: 64px calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 32px; } }
.site-footer a { color: var(--ink); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.wordmark-foot { font-size: clamp(2rem, 1rem + 4vw, 4.5rem); font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.foot-h { font-size: 1rem; font-weight: 500; color: var(--ink); margin-bottom: .6em; letter-spacing: 0; }
.site-footer p { margin: 0 0 .5em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 40px; font-size: .9rem; }
.foot-bottom p { margin: 0; }
.foot-bottom a { display: inline-block; padding: 10px 0; }

/* ---------- Mobile action bar (floats: may carry a shadow) ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -8px 24px rgba(0,0,0,.35); transform: translateY(110%); transition: transform 260ms var(--ease-drawer); }
.mobile-bar.show { transform: none; }
.mobile-bar .btn-cta { flex: 1; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(5,7,10,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lbIn 200ms var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lightbox figure { margin: 0; max-width: min(1200px, 100vw); padding: 0 8px; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #e6eaed; margin-top: 12px; font-size: .95rem; padding: 0 56px; }
.lb-close, .lb-nav { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close:active { transform: scale(0.95); }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; } }

/* ---------- Motion: one page-load moment + entrances (content is visible without JS) ---------- */
.js-motion .hero-h .line > span { transform: translateY(105%); }
.js-motion.loaded .hero-h .line > span { transform: none; transition: transform 800ms var(--ease-out); }
.js-motion.loaded .hero-h .line:nth-child(2) > span { transition-delay: 80ms; }
.js-motion .hero-sub, .js-motion .hero .btn-cta { opacity: 0; transform: translateY(16px); }
.js-motion.loaded .hero-sub, .js-motion.loaded .hero .btn-cta { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) 240ms, transform 600ms var(--ease-out) 240ms; }
.js-motion.loaded .hero .btn-cta { transition-delay: 320ms, 320ms; }
.js-motion.loaded .hero .btn-cta:active { transform: scale(0.97); transition: transform 160ms var(--ease-out); }
.js-motion [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js-motion [data-rise].in { opacity: 1; transform: none; }
.js-motion .g-item { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js-motion .g-item.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .hero-h .line > span, .js-motion .hero-sub, .js-motion .hero .btn-cta, .js-motion [data-rise], .js-motion .g-item { opacity: 1 !important; transform: none !important; }
}

/* ---- critique round 1 fixes ---- */
/* light panels must render native controls in light scheme (radios/checkboxes were drawing dark) */
.est-card, .lead-form, .lead-done, .cal { color-scheme: light; }
/* two-line headline rule at every desktop width */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 56px; }
  .hero-h { font-size: clamp(3rem, .9rem + 4.1vw, 5.75rem); }
}
@media (min-width: 1024px) {
  .hero-copy { container-type: inline-size; }
  .hero-h { font-size: min(5.75rem, 9.2cqi); }
  .hero-h .line > span { white-space: nowrap; }
}
@media (min-width: 1024px) {
  .hero-h { font-size: min(5.75rem, 13.2cqi); }
  html:lang(es) .hero-h { font-size: min(5.25rem, 11.8cqi); }
}

/* ---- critique round 2 fixes ---- */
@media (min-width: 1024px) { .hero-grid { min-height: 0; } main > section.hero { padding-block: 96px; } }
@media (min-width: 1600px) { .wrap { max-width: 1680px; } .hero-h { font-size: min(7rem, 13.2cqi); } html:lang(es) .hero-h { font-size: min(6.25rem, 11.8cqi); } .hero-sub { font-size: 1.25rem; } }
@media (max-width: 759px) { .gallery .g-item:last-child:nth-child(even) { display: none; } }
.checks-tight label { align-items: flex-start; line-height: 1.4; }
.checks-tight input { margin-top: 1px; }
