/* Boyd Moving Co. v3 */

:root {
  --bg: #0d0e0b;
  --surface: #181a15;
  --surface-2: #24271f;
  --line: #43473a;
  --ink: #e9e9e4;
  --muted: #c2c0b3;
  --accent: #43b02a;
  --accent-ink: #0d0e0b;
  --field-green: #43b02a;
  --field-green-ink: #0d0e0b;
  --field-bone: #e9e9e4;
  --field-bone-ink: #0d0e0b;
  --field-moss: #1d3416;
  --field-moss-ink: #e9e9e4;
  --error: #ff9b85;
  --focus: var(--accent);

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.125rem;
  --step-lead: 1.375rem;
  --step-head: clamp(2.25rem, 1rem + 4.2vw, 5.5rem);
  --step-display: clamp(4.25rem, 12.5vw, 13rem);
  --step-sub: var(--step-lead);
  --step-story: clamp(1.375rem, 2.5vw, 2.25rem);

  --margin: 28px;
  --gutter: 20px;
  --section: clamp(6rem, 11.5vw, 12rem);
  --radius-media: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}
@media (max-width: 640px) {
  :root { --margin: 16px; --gutter: 12px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: var(--step-body); line-height: 1.45;
  font-kerning: normal; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
video { background: #000; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
a, button, label, summary { touch-action: manipulation; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); line-height: 1.45; }
.only-phone { display: none; }
.br-sm { display: none; }
@media (max-width: 640px) {
  .only-wide { display: none; }
  .only-phone { display: inline; }
  .br-sm { display: inline; }
}

h1, h2, h3 { font-weight: 500; text-wrap: balance; hyphens: none; }
.head { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.7rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: var(--step-body); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; -webkit-user-select: none; user-select: none;
  transition: transform 100ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--dark { background: var(--bg); color: var(--ink); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #57c53c; }
  .btn--ghost:hover { background: #31352a; }
  .btn--dark:hover { background: #1c1e17; }
  .link:hover { text-decoration-color: currentColor; }
  .nav a:not(.btn):hover, .contact a:hover, .foot a:hover, }

/* ---------- logo (transparent wordmark, made for dark grounds) ---------- */
.mark { display: block; flex: none; width: auto; max-width: none; }
.mark--nav { height: 62px; }
.mark-plate { display: block; flex: none; background: var(--bg); border-radius: 14px; padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.6vw, 22px); }
.mark--foot { width: clamp(200px, 22vw, 320px); height: auto; }

/* ---------- nav ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--margin); min-height: 68px; }
.nav a:not(.btn) { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand { gap: 12px; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.btn--nav { min-height: 48px; padding: 0 1.3rem; }
@media (max-width: 900px) {
  .nav a.nav__sec { display: none; }
}
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .nav__brand { gap: 10px; min-width: 0; }
  .mark--nav { height: 50px; }
  .nav__links { gap: 12px; }
  .btn--nav { padding: 0 1.2rem; }
}

/* ---------- reveal motion (text only; media is never hidden) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 450ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 0; transition: opacity 250ms ease; transition-delay: 0ms; }
  .js [data-reveal].is-in { opacity: 1; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 1. hero ---------- */
.hero {
  padding: 0 var(--margin) clamp(32px, 5vh, 56px);
  min-height: calc(100svh - 68px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy media";
  grid-template-rows: auto; align-content: center; column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(28px, 5vh, 48px); align-items: start;
}
.hero__copy { grid-area: copy; align-self: center; display: grid; gap: 28px; justify-items: start; }
.hero__h { font-size: clamp(2.1rem, 4.4vw, 5rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 14em; }
.hero__sub { font-size: var(--step-lead); line-height: 1.35; max-width: 32em; letter-spacing: -0.01em; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { grid-area: media; align-self: center; width: min(42vw, calc((100svh - 140px) * 0.8)); }
.hero__frame { aspect-ratio: 4 / 5; border-radius: var(--radius-media); overflow: hidden; background: #000; position: relative; }
.hero__video { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media"; grid-template-rows: auto; row-gap: 32px; padding-top: 8px; }
  .hero__copy { align-self: start; gap: 22px; }
  .hero__h { font-size: clamp(2rem, 7vw, 3.75rem); }
  .hero__media { grid-row: auto; width: 100%; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero__h { font-size: 8.6vw; }
  .hero__sub { font-size: 1.125rem; }
  .hero__act .btn { flex: 1 1 100%; }
  .hero__media { max-width: none; }
}

/* ---------- 2. story ---------- */
.story { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; align-items: center; }
.story__text { grid-column: 1 / 6; display: grid; gap: 28px; justify-items: start; }
.story__p { font-size: var(--step-lead); line-height: 1.4; max-width: 32em; }
.story__media { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-bottom: 6%; }
.pcard { background: var(--field-bone); padding: clamp(8px, 0.9vw, 14px); border-radius: 4px; }
.pcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); border-radius: 1px; }
.pcard--a { position: relative; z-index: 1; }
.pcard--b { margin: 14% 0 0 -9%; transform: rotate(1.8deg); transform-origin: 50% 0; }
.pcard--a img { object-position: 50% 40%; }
@media (max-width: 900px) {
  .story__text, .story__media { grid-column: 1 / -1; }
  .story__media { max-width: 520px; }
}

/* ---------- 3. work ---------- */
.work { margin-top: var(--section); padding: 0 var(--margin); }
.work__head { margin-bottom: clamp(32px, 4vw, 64px); }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.job {
  --b-bg: var(--field-green); --b-ink: var(--field-green-ink);
  background: var(--b-bg); color: var(--b-ink); border-radius: var(--radius-media);
  padding: clamp(22px, 2.6vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 17vw, 250px); gap: clamp(16px, 2vw, 28px); align-items: end;
}
.job--green { --b-bg: var(--field-green); --b-ink: var(--field-green-ink); }
.job--bone { --b-bg: var(--field-bone); --b-ink: var(--field-bone-ink); }
.job--moss { --b-bg: var(--field-moss); --b-ink: var(--field-moss-ink); }
.job--black { --b-bg: var(--surface); --b-ink: var(--ink); }
.job__text { display: grid; gap: 16px; align-self: stretch; align-content: space-between; }
.job h3 { font-size: clamp(1.9rem, 2.9vw, 3rem); line-height: 1; letter-spacing: -0.035em; }
.job p { font-size: var(--step-body); line-height: 1.4; }
.loop { aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; position: relative; }
.loop video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.loop-play { position: absolute; left: 10px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.loop-play.is-playing { opacity: 0; }
.job--green .loop-play { background: var(--field-green-ink); color: var(--field-green); }
@media (max-width: 900px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .job { grid-template-columns: minmax(0, 1fr) clamp(180px, 30vw, 240px); }
}
@media (max-width: 640px) {
  .job { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .job__text { gap: 12px; }
  .job .loop { aspect-ratio: 4 / 5; }
}
.truck { margin-top: clamp(32px, 4vw, 64px); display: grid; gap: 20px; }
.truck__frame { aspect-ratio: 21 / 9; border-radius: var(--radius-media); overflow: hidden; background: var(--surface); }
.truck__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.truck__cap { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; max-width: 34em; }
@media (max-width: 640px) { .truck__frame { aspect-ratio: 4 / 3; } }

/* ---------- 4. pricing ---------- */
.pricing {
  --focus: var(--accent-ink);
  margin-top: var(--section); background: var(--field-green); color: var(--field-green-ink);
  padding: clamp(48px, 6vw, 96px) var(--margin);
  display: grid; gap: clamp(36px, 5vw, 72px);
}
.pricing__h { max-width: 16ch; }
.pricing__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: end; }
.pricing__main { grid-column: 1 / 8; display: grid; gap: 28px; }
.pricing__text { font-size: var(--step-lead); line-height: 1.4; max-width: 34em; }
.pricing__how { display: grid; gap: 8px; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.pricing__act { grid-column: 9 / 13; justify-self: end; }
@media (max-width: 900px) {
  .pricing__main, .pricing__act { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- 5. quote ---------- */
/* ---------- 7. quote ---------- */
.quote { margin-top: var(--section); padding: 0 var(--margin); scroll-margin-top: 0; }
.quote__head { display: grid; gap: 24px; }
.quote__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.quote__main { grid-column: 1 / 8; min-width: 0; }
.qsum { grid-column: 9 / 13; position: sticky; top: 24px; background: var(--surface); border-radius: var(--radius-media); padding: 28px; }
@media (max-width: 900px) {
  .quote__main, .qsum { grid-column: 1 / -1; }
  .qsum { position: static; }
}
@media (max-width: 640px) { .qsum { padding: 22px; } }

.progress { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 36px; }
.progress__item { display: grid; gap: 10px; color: var(--muted); }
.progress__bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); transition: background-color 240ms ease; }
.progress__name { font-size: var(--step-body); font-weight: 500; transition: color 240ms ease; }
.progress__item.is-active, .progress__item.is-done { color: var(--ink); }
.progress__item.is-active .progress__bar, .progress__item.is-done .progress__bar { background: var(--accent); }

.step { display: grid; gap: 32px; }
.step[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .step.is-entering { animation: step-in 320ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .step.is-entering { animation: step-fade 240ms ease both; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes step-fade { from { opacity: 0; } to { opacity: 1; } }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-weight: 500; font-size: var(--step-body); }
.grp[hidden], .fld[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile span {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px;
  border-radius: 14px; background: var(--surface); font-weight: 500; line-height: 1.25; font-size: var(--step-body);
  transition: transform 100ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.tile span::after { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); transition: background-color 160ms ease; }
.tile input[type="checkbox"] + span::after { border-radius: 6px; }
.tile input:checked + span { background: var(--accent); color: var(--accent-ink); }
.tile input:checked + span::after { background: var(--accent-ink); }
.tile:active span { transform: scale(0.97); }
.tile input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover input:not(:checked) + span { background: var(--surface-2); }
  .tile:hover input:not(:checked) + span::after { background: var(--line); }
}
.tile--sm span { min-height: 56px; }
.tiles--yn { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
.tiles--num { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
.tiles--yn .tile span, .tiles--num .tile span { min-height: 64px; font-size: var(--step-lead); }
.qpair { display: grid; gap: 24px; }
.qpair[hidden] { display: none; }
@media (max-width: 640px) {
  .tiles, .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--num { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--yn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--yn, .tiles--num { max-width: none; }
  .tile span { padding: 12px 14px; }
}
.hint { color: var(--muted); }

.fld { display: grid; gap: 8px; align-content: start; }
.fld label { font-weight: 500; font-size: var(--step-body); }
.fld input:not([type="checkbox"]):not([type="radio"]), .fld select, .fld textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; font-size: var(--step-body); line-height: 1.3;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 14px;
  -webkit-appearance: none; appearance: none; transition: border-color 160ms ease;
}
.fld select { background-image: none; padding-right: 16px; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:not([type="checkbox"]):not([type="radio"]):focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 1px; }
.fld [aria-invalid="true"] { border-color: var(--error); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fld--check { padding-top: 33px; }
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .fld--check { padding-top: 0; }
}
.err { color: var(--error); font-size: var(--step-body); line-height: 1.35; }
.err:empty { display: none; }
.err--form { margin-top: 20px; }
.grp .err { margin-top: 10px; }
.qform__ns { margin-bottom: 20px; }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.qnav [data-next], .qnav [type="submit"] { margin-left: auto; }
.qnav [hidden] { display: none; }
html:not(.js) .qnav [data-next], html:not(.js) .qnav [data-back] { display: none; }
html:not(.js) .qnav [hidden] { display: inline-flex; }
@media (max-width: 640px) {
  .qnav .btn { flex: 1 1 0; padding: 0 1rem; white-space: normal; text-align: center; }
}
.area { margin-top: 56px; font-size: var(--step-body); line-height: 1.5; max-width: 52ch; color: var(--ink); }

.qdone { display: grid; gap: 22px; padding: 8px 0 0; }
.qdone[hidden] { display: none; }
.qdone__h { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.qdone__p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.qdone__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.qdone__act .link { display: inline-flex; align-items: center; min-height: 44px; }

.qsum__h { font-size: var(--step-body); font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.qsum__empty { color: var(--muted); }
.qsum__empty[hidden] { display: none; }
.qsum__list { display: grid; gap: 14px; margin-bottom: 26px; }
.qsum__list > div { display: grid; gap: 2px; }
.qsum__list > div[hidden] { display: none; }
.qsum__list dt { color: var(--muted); font-size: var(--step-body); }
.qsum__list dd { font-size: var(--step-body); font-weight: 500; overflow-wrap: anywhere; }
.qsum__est { margin-top: 24px; background: var(--bg); border-radius: 14px; padding: 20px; }
.qsum__lbl { color: var(--muted); font-size: var(--step-body); }
.qsum__fig { margin-top: 6px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.qsum__sub { margin-top: 6px; font-size: var(--step-body); color: var(--ink); }
.qsum__sub:empty { display: none; }
.qsum__note { margin-top: 14px; color: var(--muted); }
.more { margin-top: -4px; }
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; border-radius: 14px; background: var(--surface); font-weight: 500; cursor: pointer; transition: transform 100ms var(--ease-out), background-color 160ms ease; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more summary:active { transform: scale(0.99); }
.more__body { display: grid; gap: 32px; margin-top: 32px; }
@media (hover: hover) and (pointer: fine) { .more summary:hover { background: var(--surface-2); } }
@media (prefers-reduced-motion: reduce) { .more summary::after { transition: none; } }

/* ---------- 6. contact ---------- */
.contact { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: center; }
.contact__main { grid-column: 1 / -1; display: grid; gap: 28px; justify-items: start; }
.contact__list { display: grid; gap: 4px; }
.contact__list a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-size: var(--step-lead); overflow-wrap: anywhere; }
.contact__n { display: inline-block; min-width: 4.4em; font-weight: 500; }
.contact__meta { font-size: var(--step-body); }
@media (max-width: 640px) { .contact__list a { font-size: var(--step-body); } }

/* ---------- footer ---------- */
.foot {
  --focus: var(--accent-ink);
  margin-top: var(--section); background: var(--field-green); color: var(--field-green-ink);
  padding: clamp(32px, 4vw, 56px) var(--margin) 28px; display: grid; gap: clamp(28px, 4vw, 56px);
}
.foot__top { display: flex; align-items: center; gap: 24px; font-size: var(--step-body); }
.foot__info { display: grid; gap: 2px; line-height: 1.4; }
.foot__info p:first-child { font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot__brand { min-height: 0 !important; }
.foot__phone { font-size: 15.6vw; line-height: 0.9; letter-spacing: -0.05em; font-weight: 500; white-space: nowrap; margin-left: -0.04em; min-height: 0 !important; }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font-size: var(--step-body); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (max-width: 640px) {
  .foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .foot__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- mobile action bar ---------- */
.bar { display: none; }
@media (max-width: 640px) {
  :root { --bar-h: calc(68px + env(safe-area-inset-bottom)); }
  main { padding-bottom: var(--bar-h); }
  .bar {
    display: flex; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom)); background: var(--surface);
    transform: translateY(100%); visibility: hidden;
    transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
  }
  .bar.is-shown { transform: none; visibility: visible; transition: transform 280ms var(--ease-out), visibility 0s; }
  .bar .btn { flex: 1 1 0; min-height: 48px; }
  .bar .btn--ghost { background: var(--surface-2); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .bar { transform: none; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .bar.is-shown { opacity: 1; transition: opacity 200ms ease, visibility 0s; }
}

/* v2 check: tighter section rhythm on phones */
@media (max-width: 640px) {
  :root { --section: 4.5rem; }
}

/* ---------- quote dialog ---------- */
html.qopen, html.qopen body { overflow: hidden; }
html.qopen .bar { display: none; }
.qdlg { border: 0; padding: 0; margin: auto; background: var(--bg); color: var(--ink); width: min(880px, calc(100vw - 48px)); max-width: none; max-height: min(92svh, 980px); border-radius: var(--radius-media); overflow: hidden; }
.qdlg[open] { display: flex; flex-direction: column; animation: dlg-in 240ms var(--ease-out); }
.qdlg::backdrop { background: rgba(0, 0, 0, 0.8); }
.qdlg[open]::backdrop { animation: dlg-fade 240ms ease; }
.qdlg__bar { flex: none; display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.qdlg__close { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; transition: transform 100ms var(--ease-out), background-color 160ms ease; }
.qdlg__close:active { transform: scale(0.94); }
.qdlg__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.qdlg .head { font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem); }
.qdlg .qdone__h { font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem); }
.qdlg .quote__head { gap: 12px; }
.qdlg .quote__grid { margin-top: 32px; }
.qdlg .qsum { top: 0; }
.qdlg .area { margin-top: 40px; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 640px) {
  .qdlg { width: 100%; height: 100%; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .qdlg[open] { animation: sheet-up 280ms var(--ease-out); }
  .qdlg__body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .qdlg[open], .qdlg[open]::backdrop { animation: dlg-fade 200ms ease; }
  .qdlg__close { transition: none; }
}
@media (hover: hover) and (pointer: fine) { .qdlg__close:hover { background: #31352a; } }
.pcard--b img { aspect-ratio: 1 / 1; object-position: 50% 30%; }

/* v8: wordmark panel sits above the footer text on phones */
@media (max-width: 640px) {
  .foot__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mark--foot { width: min(260px, 70vw); }
}

/* ---------- service choice ---------- */
.tile[hidden] { display: none; }
.tiles--service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile--big span { min-height: 72px; font-size: var(--step-lead); font-weight: 500; }

/* ---------- facebook reviews ---------- */
.reviews { margin-top: var(--section); padding: 0 var(--margin); display: grid; gap: clamp(28px, 4vw, 48px); }
.reviews__head { display: grid; gap: 14px; justify-items: start; }
.reviews__src { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-body); color: var(--muted); }
.reviews__src .fb { width: 26px; height: 26px; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.rev.rev--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: clamp(24px, 4vw, 64px); background: var(--field-green); color: var(--field-green-ink); }
.rev--lead .rev__q { font-size: clamp(1.25rem, 2vw, 1.875rem); max-width: 34em; line-height: 1.35; letter-spacing: -0.01em; }
.rev--lead .rev__meta { color: inherit; }
.rev__foot { display: grid; gap: 12px; }
.rev { background: var(--surface); border-radius: var(--radius-media); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 18px; align-content: start; }
.rev__q { margin: 0; font-size: var(--step-lead); line-height: 1.4; }
.rev__who { display: grid; gap: 6px; font-size: var(--step-body); }
.rev__name { font-weight: 500; }
.rev__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.rev__meta .fb { width: 18px; height: 18px; flex: none; }
.fb { display: block; }
@media (max-width: 900px) { .reviews__list { grid-template-columns: minmax(0, 1fr); } .rev.rev--lead { grid-template-columns: minmax(0, 1fr); } }

/* five stars: each glows in turn, then the row pops in when the card arrives */
.stars { display: flex; gap: 4px; }
.star { width: 26px; height: 26px; overflow: visible; }
.star__core { fill: #f7c948; }
.star__glow { fill: #ffd966; filter: url(#star-blur); opacity: 0; transform-origin: 12px 12px; }
@media (prefers-reduced-motion: no-preference) {
  .star__glow { animation: star-glow 2.8s ease-in-out infinite; animation-delay: calc(var(--s) * 180ms); }
  .js .rev[data-reveal] .star { transform: scale(0.4); opacity: 0; transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1), opacity 240ms ease; transition-delay: calc(var(--s) * 70ms + 200ms); }
  .js .rev[data-reveal].is-in .star { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .star__glow { opacity: 0.45; } }
@keyframes star-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  45% { opacity: 0.95; transform: scale(1.35); }
}
