/* ATC Flooring LLC — site styles
   Layout: board-run courses. Content sits in long horizontal bands with staggered
   joints, like a floor laid in random lengths. Blue painter's-tape strips label each course. */

:root {
  /* color */
  --plaster: #F1F3F6;      /* page ground: cool wall-plaster grey */
  --paper: #FFFFFF;
  --ink: #141A25;
  --ink-soft: #4A5464;
  --line: #D6DBE3;
  --tape: #1E55D6;         /* painter's tape blue: the one accent */
  --tape-deep: #153E9E;
  --tape-tint: #E4ECFD;
  --night: #111722;
  --night-2: #1C2433;
  --on-night: #EEF1F6;
  --on-night-soft: #A8B2C3;
  --oak: #D3AB78;          /* raw red oak */
  --oak-deep: #86592F;     /* walnut-stained oak */
  --ok: #17663A;
  --warn: #8A4B00;

  /* type */
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(2rem, 4.2vw, 2.875rem);
  --t-3xl: clamp(2.6rem, 6.6vw, 4.6rem);

  /* space */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --course: clamp(3.25rem, 7vw, 5.5rem);
  --radius: 4px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: var(--tape-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--tape); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.course { padding-block: var(--course); }
.course--paper { background: var(--paper); }
.course--night { background: var(--night); color: var(--on-night); }
.course--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack--lg { gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; }
.course--night .lede { color: var(--on-night-soft); }
.measure { max-width: 66ch; }

/* tape strip label */
.tape {
  align-self: flex-start;
  display: inline-block;
  background: var(--tape);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 16px 6px;
  transform: rotate(-1.4deg);
  clip-path: polygon(0 12%, 3px 0, 6px 14%, 9px 0, 100% 0, calc(100% - 3px) 22%, 100% 46%, calc(100% - 4px) 70%, 100% 100%, 8px 100%, 5px 84%, 2px 100%, 0 78%, 3px 52%);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--body); font-weight: 600; font-size: var(--t-base); line-height: 1.15;
  padding: 0.85em 1.25em; border-radius: var(--radius); border: 2px solid var(--tape);
  background: var(--tape); color: #FFFFFF; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--tape-deep); border-color: var(--tape-deep); color: #FFFFFF; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.course--night .btn--ghost { color: var(--on-night); border-color: var(--on-night-soft); }
.course--night .btn--ghost:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.brand__sub { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.625rem; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.6rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.6rem); list-style: none; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-sm); padding-block: 0.4rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--tape); color: var(--ink); }
.nav__call { padding: 0.6em 0.95em; font-size: var(--t-sm); }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.5rem 0.75rem; font: 600 var(--t-sm)/1 var(--body); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; font-size: var(--t-lg); padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
  .nav__call { margin-top: 1rem; font-size: var(--t-base); }
}

/* hero */
.hero { padding-block: clamp(2.25rem, 5vw, 4.25rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 1.35rem; min-width: 0; }
.hero__note { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-soft); letter-spacing: 0.02em; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* drawn floor + stain picker */
.floor { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.floor__frame { position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--oak-deep); box-shadow: 0 18px 40px -22px rgba(20, 26, 37, 0.55); }
.floor__frame canvas, .shot__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.floor__label { position: absolute; left: 12px; bottom: 12px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 0.75rem; padding: 6px 10px; border-radius: 2px; }
.stains { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stain { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem 0.3rem 0.35rem; font: 500 var(--t-xs)/1.2 var(--body); color: var(--ink); cursor: pointer; }
.stain:hover { border-color: var(--ink-soft); }
.stain[aria-pressed="true"] { border-color: var(--tape); box-shadow: 0 0 0 2px var(--tape-tint); }
.stain__dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(20, 26, 37, 0.25); flex: none; }
.floor__caption { font-size: var(--t-xs); color: var(--ink-soft); }

/* facts laid as boards with staggered joints */
.boards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; background: #5B3A22; border: 3px solid #5B3A22; border-radius: var(--radius); overflow: hidden; }
.board {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(60, 30, 10, 0.07)),
    repeating-linear-gradient(1deg, rgba(110, 62, 24, 0.10) 0 1px, transparent 1px 8px),
    var(--oak);
  color: #2A1B0E; padding: 1.1rem 1.25rem; min-width: 0;
  display: flex; flex-direction: column; gap: 0.15rem; justify-content: center;
}
.board strong { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.board span { font-size: var(--t-sm); line-height: 1.35; }
.board:nth-child(1) { grid-column: span 7; }
.board:nth-child(2) { grid-column: span 5; }
.board:nth-child(3) { grid-column: span 4; }
.board:nth-child(4) { grid-column: span 8; }
@media (max-width: 640px) { .board:nth-child(n) { grid-column: span 12; } }

/* section heading */
.head { display: flex; flex-direction: column; gap: 0.9rem; }
.head--split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: end; }
@media (max-width: 720px) { .head--split { grid-template-columns: minmax(0, 1fr); } }
.more { font-weight: 600; white-space: nowrap; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.card { grid-column: span 2; display: flex; flex-direction: column; gap: 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.25rem; color: var(--ink); text-decoration: none; min-width: 0; transition: border-color 0.15s ease, transform 0.15s ease; }
.cards--five .card:nth-child(-n+2) { grid-column: span 3; }
.course--paper .card { background: var(--plaster); }
a.card:hover { border-color: var(--tape); color: var(--ink); transform: translateY(-2px); }
.card__spec { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.card p { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; }
.card__go { margin-top: auto; padding-top: 0.4rem; font-weight: 600; font-size: var(--t-sm); color: var(--tape-deep); }
@media (max-width: 860px) { .cards .card:nth-child(n) { grid-column: span 3; } }
@media (max-width: 560px) { .cards .card:nth-child(n) { grid-column: span 6; } }

/* photo slots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.shot__frame { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--oak-deep); }
.shot__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot__tag { position: absolute; left: 10px; top: 10px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; }
.shot figcaption { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.4; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.course--night .shot figcaption { color: var(--on-night-soft); }
.course--night .shot figcaption b { color: var(--on-night); }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; font: 500 var(--t-sm)/1.2 var(--body); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* steps (a real sequence, so numbered) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.9rem; border-top: 3px solid var(--ink); min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-sm); color: var(--tape-deep); }
.steps h3 { font-size: 1.45rem; }
.steps p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.review { margin: 0; display: flex; flex-direction: column; gap: 1rem; background: var(--night-2); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.review:nth-child(1) { grid-column: span 4; }
.review:nth-child(2) { grid-column: span 5; }
.review:nth-child(3) { grid-column: span 3; }
.review blockquote { margin: 0; font-size: var(--t-lg); line-height: 1.45; color: var(--on-night); }
.review figcaption { margin-top: auto; font-size: var(--t-sm); color: var(--on-night-soft); }
.review figcaption b { color: var(--on-night); font-weight: 600; }
.review a { color: var(--on-night-soft); }
.review a:hover { color: var(--on-night); }
@media (max-width: 900px) { .review:nth-child(n) { grid-column: span 12; } }

/* call band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; }
.band h2 { font-size: clamp(2rem, 8.6vw, 4.2rem); }
.band h2 a { color: inherit; text-decoration: none; }
.band p { color: var(--on-night-soft); max-width: 46ch; margin-top: 0.9rem; }
@media (max-width: 820px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* inner pages */
.pagehead { padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.75rem, 3.5vw, 2.5rem); }
.pagehead .stack { gap: 1.1rem; }
.pagehead h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); max-width: 20ch; }
.crumbs { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; max-width: 66ch; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-top: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.4rem; margin-top: 0.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose li::marker { color: var(--tape-deep); }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; flex-direction: column; gap: 1rem; background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 1.5rem; }
.aside h2 { font-size: 1.75rem; }
.aside p { font-size: var(--t-sm); color: var(--on-night-soft); }
.aside .phone { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--on-night); text-decoration: none; }
.aside .btn { width: 100%; }
@media (max-width: 900px) { .aside { position: static; } }

.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 3px solid var(--ink); margin: 0; }
.glance div { padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.glance dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.glance dd { margin: 0.2rem 0 0; font-weight: 500; }

/* faq */
.faq { display: flex; flex-direction: column; max-width: 76ch; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-block: 1.05rem; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--tape-deep); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; color: var(--ink-soft); max-width: 66ch; }

/* areas */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem 2rem; }
.areas h3 { font-size: 1.35rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--ink); margin-bottom: 0.6rem; }
.areas ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; color: var(--ink-soft); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.bigphone { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; color: var(--ink); text-decoration: none; }
.hours { width: 100%; max-width: 320px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .field { grid-column: 1 / -1; } }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: 400 var(--t-base)/1.4 var(--body); color: var(--ink); background: var(--plaster); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tape); box-shadow: 0 0 0 3px var(--tape-tint); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form__status--ok { background: #E3F4EA; color: var(--ok); }
.form__status--warn { background: #FFF1DC; color: var(--warn); }

/* footer */
.site-footer { background: var(--night); color: var(--on-night-soft); padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem; font-size: var(--t-sm); border-top: 1px solid var(--night-2); }
.site-footer a { color: var(--on-night-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__grid h2 { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night); margin-bottom: 0.8rem; }
.footer__grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__brand .brand, .footer__brand .brand:hover { color: var(--on-night); text-decoration: none; }
.footer__brand .brand__sub { color: var(--on-night-soft); }
.footer__phone { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--on-night) !important; }
.footer__base { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--night-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: var(--t-xs); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* phone call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.35fr 1fr; background: var(--night); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 0.5rem; font-weight: 600; font-size: var(--t-sm); text-decoration: none; color: var(--on-night); white-space: nowrap; }
  .callbar a:first-child { background: var(--tape); color: #FFFFFF; }
  .callbar svg { width: 1.05em; height: 1.05em; }
  .site-footer { padding-bottom: calc(1.75rem + 58px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- photos ---------- */
.hero__media { position: relative; margin: 0; padding-bottom: 2.5rem; min-width: 0; }
.hero__main { display: block; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--oak-deep); box-shadow: 0 22px 44px -26px rgba(20, 26, 37, 0.6); cursor: zoom-in; }
.hero__main img, .hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset { position: absolute; left: 0.75rem; bottom: 0; width: 34%; aspect-ratio: 3 / 4; border: 5px solid var(--plaster); border-radius: var(--radius); overflow: hidden; background: var(--oak-deep); box-shadow: 0 16px 30px -18px rgba(20, 26, 37, 0.6); cursor: zoom-in; }
.hero__cap { position: absolute; right: 0; bottom: 0.25rem; width: 58%; text-align: right; font-family: var(--mono); font-size: 0.75rem; line-height: 1.4; color: var(--ink-soft); }
@media (min-width: 1240px) { .hero__inset { left: -1.75rem; } }

.card { padding: 0; gap: 0; overflow: hidden; }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--oak-deep); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
a.card:hover .card__img img { transform: scale(1.035); }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem 1.35rem 1.25rem; flex: 1; }

.shot__frame { display: block; cursor: zoom-in; }
.shot__frame img { transition: transform 0.35s ease; }
.shot__frame:hover img { transform: scale(1.03); }

.pair { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.pair__imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pair__img { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--oak-deep); cursor: zoom-in; }
.pair__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair__tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #FFFFFF; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; }
.pair__tag--done { background: var(--tape); }
.pair figcaption { font-size: var(--t-sm); color: var(--ink-soft); }
.pair figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .pair__imgs { grid-template-columns: minmax(0, 1fr); } }

/* photo viewer */
.lightbox { padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: transparent; color: var(--on-night); }
.lightbox::backdrop { background: rgba(10, 13, 19, 0.93); }
.lightbox__inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 4rem 1rem 1.5rem; }
.lightbox__inner img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { font-size: var(--t-sm); color: var(--on-night); text-align: center; max-width: 60ch; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } .lightbox__inner { padding-bottom: 5rem; } }

/* ---------- logo ---------- */
.brand__logo { display: block; height: 58px; width: auto; }
.brand__logo--footer { display: block; width: 190px; height: auto; }
@media (max-width: 420px) { .brand__logo { height: 46px; } }

/* ---------- estimate form states ---------- */
#estimate { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 90px); }
.form--thanks { display: flex; flex-direction: column; gap: 0.75rem; border: 2px solid var(--ok); background: #E3F4EA; color: var(--ink); }
.form--thanks:focus { outline: 3px solid var(--tape); outline-offset: 3px; }
.form--thanks a { font-weight: 600; }
.btn:disabled { opacity: 0.7; cursor: wait; }
