/* ==========================================================
   Machine Cut Cleveland — sister site to Bent Rim Cleveland
   Brand colors pulled from bentrimcleveland.com:
   lime #BADA55, charcoal #2F2E2E, black, white
   ========================================================== */

:root {
  /* palette */
  --lime: #bada55;
  --lime-strong: #a6c93c;
  --lime-soft: rgba(186, 218, 85, 0.14);
  --ink: #0e0f0f;
  --ink-2: #161717;
  --ink-3: #1f2020;
  --charcoal: #2f2e2e;
  --steel: #c9ced1;
  --white: #ffffff;
  --paper: #f4f5f2;

  /* semantic tokens */
  --bg: var(--ink);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --text: #f2f3ef;
  --text-muted: #a9aea8;      /* 7.9:1 on --bg */
  --border: #2d2f2f;
  --accent: var(--lime);
  --on-accent: #111;
  --error: #ff8a7a;
  --focus: var(--lime);

  /* type */
  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-body: "Figtree", "Avenir Next", Avenir, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* space (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 6px;
  --radius-lg: 12px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur: 200ms;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 2 * var(--s5)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--accent); color: var(--on-accent); padding: var(--s3) var(--s4);
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--s4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1rem;
  letter-spacing: .01em; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #cbe66f; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { border-color: #4a4d4d; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Sister bar ---------- */
.sister-bar { background: var(--accent); color: var(--on-accent); font-size: .875rem; font-weight: 600; }
.sister-bar__inner { padding: var(--s2) 0; text-align: center; }
.sister-bar a { font-weight: 800; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 15, 15, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--white); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: .9; }
.logo__name {
  font-family: var(--font-display); font-weight: 900; font-style: italic; font-stretch: 112%;
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap;
}
.logo__city {
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-stretch: 125%;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .32em; color: var(--accent);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--s1); }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-muted); white-space: nowrap;
  border-radius: var(--radius); transition: color var(--dur);
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--white); }
.main-nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  font-family: var(--font-mono); font-size: .9rem; text-decoration: none; color: var(--white); white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; }
.header-phone__text { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone__text small { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.header-phone:hover .header-phone__text { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); }
  .header-phone svg { width: 20px; height: 20px; }
  .logo__name { font-size: 1.05rem; }
  .logo__city { letter-spacing: .22em; }
  .btn--sm { padding: 0 var(--s3); }
  .logo__mark { width: 34px; height: 34px; }
  .site-header__inner { gap: var(--s3); }
  .header-actions { gap: var(--s2); }
}
@media (max-width: 420px) {
  .logo { gap: var(--s2); }
  .logo__mark { width: 28px; height: 28px; }
  .logo__name { font-size: .92rem; }
  .logo__city { font-size: .62rem; letter-spacing: .16em; }
  .btn--sm { font-size: .8rem; padding: 0 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: var(--s8); padding: var(--s9) 0 var(--s9);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s5);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--lime-soft); }
.hero h1 {
  font-weight: 900; font-style: italic; font-stretch: 108%;
  font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -.02em; text-transform: uppercase;
}
.hl { color: var(--accent); }
.hero__lede { margin-top: var(--s5); max-width: 54ch; color: var(--text-muted); font-size: 1.15rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.hero__specs { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.hero__specs li { display: flex; flex-direction: column; }
.spec__val { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.spec__label { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* Hero photo: full-bleed on the right, fading into the background toward the text */
.hero__visual { position: absolute; top: 50%; right: max(0px, calc((100vw - 1440px) / 2)); transform: translateY(-50%); height: min(100%, 780px); aspect-ratio: 3 / 4; max-width: 54vw; pointer-events: none; }
.hero__photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%),
                      linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%),
                      linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
@media (min-width: 901px) {
  .hero__inner { position: static; }          /* let the photo position against the full-width hero */
  .hero__copy { position: relative; z-index: 1; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding: 0 0 var(--s8); }
  .hero__visual { position: relative; order: -1; top: auto; right: auto; transform: none; aspect-ratio: auto; max-width: none; width: auto; margin: 0 calc(-1 * var(--s5)); height: min(110vw, 520px); }
  .hero__photo {
    object-position: 45% 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero__copy { margin-top: calc(-1 * var(--s8)); position: relative; z-index: 1; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s10) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: var(--s8); }
.kicker { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.section h2 { font-weight: 900; font-style: italic; font-stretch: 105%; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.015em; }
.section-head__sub { margin-top: var(--s4); color: var(--text-muted); font-size: 1.1rem; max-width: 65ch; }
@media (max-width: 700px) { .section { padding: var(--s9) 0; } .section-head { margin-bottom: var(--s7); } }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s5); transition: border-color var(--dur);
}
.feature:hover { border-color: #4a4d4d; }
.feature__icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--lime-soft); margin-bottom: var(--s4);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: var(--s2); }
.feature p { color: var(--text-muted); font-size: .98rem; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* fit check */
.fit-check { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s7); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.fit-check__col { padding: var(--s6); }
.fit-check__col--yes { background: linear-gradient(180deg, rgba(186,218,85,.08), transparent 70%); border-right: 1px solid var(--border); }
.fit-check h3 { display: flex; align-items: center; gap: var(--s3); font-size: 1.2rem; font-weight: 800; margin-bottom: var(--s4); }
.fit-check h3 svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fit-check__col--yes h3 svg { background: var(--accent); stroke: var(--on-accent); }
.fit-check__col--no h3 svg { background: #3a3c3c; stroke: var(--text); }
.fit-check li { position: relative; padding: var(--s2) 0 var(--s2) var(--s5); border-top: 1px solid var(--border); }
.fit-check li:first-child { border-top: 0; }
.fit-check li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 2px; background: var(--text-muted); }
.fit-check__col--yes li::before { background: var(--accent); }
@media (max-width: 760px) {
  .fit-check { grid-template-columns: 1fr; }
  .fit-check__col--yes { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.step { position: relative; padding: var(--s6) var(--s5) var(--s7); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background-color var(--dur); }
.step:hover { background: var(--surface-2); }
.step__num {
  display: block; font-family: var(--font-display); font-weight: 900; font-style: italic; font-stretch: 115%;
  font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: var(--s4);
}
.step h3 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; font-style: italic; margin-bottom: var(--s2); }
.step p { color: var(--text-muted); }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .step { padding: var(--s5); } }

/* ---------- Before / after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: var(--s6) var(--s7); }
#results .section-head { margin-inline: auto; text-align: center; }
#results .section-head__sub { margin-inline: auto; }
@media (max-width: 560px) { .ba-grid { grid-template-columns: minmax(0, 480px); } }
.ba { margin: 0; }
.ba__frame {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface); user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; z-index: 1;
  background: var(--accent); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.5);
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 18px rgba(0,0,0,.5); pointer-events: none; transition: transform 150ms var(--ease-out);
}
.ba__handle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; }
.ba__range::-moz-range-thumb { width: 48px; height: 100%; border: 0; }
.ba__range:focus-visible ~ .ba__handle { outline: 3px solid var(--white); outline-offset: 3px; transform: scale(1.08); }
.ba__frame:hover .ba__handle { transform: scale(1.08); }
.ba__label {
  position: absolute; top: var(--s3); z-index: 1; padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  background: rgba(14,15,15,.85); color: var(--white); pointer-events: none;
}
.ba__label--before { left: var(--s3); }
.ba__label--after { right: var(--s3); background: var(--accent); color: var(--on-accent); }
.ba figcaption { margin-top: var(--s3); color: var(--text-muted); font-size: .95rem; }
.ba figcaption strong { color: var(--text); font-weight: 700; }

/* ---------- Quote ---------- */
.section--quote { background: var(--paper); color: var(--ink); }
.section--quote .kicker { color: #4f6a00; }
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s8); align-items: start; }
.quote__intro p { color: #3d403d; font-size: 1.1rem; margin-top: var(--s4); max-width: 46ch; }
.quote__intro .quote__text-alt { font-size: 1rem; font-weight: 600; color: var(--ink); }
.quote__text-alt a { white-space: nowrap; color: var(--ink); text-decoration-color: #7a9a1a; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.quote__tips { margin-top: var(--s6); display: grid; gap: var(--s3); }
.quote__tips li { display: flex; align-items: center; gap: var(--s3); font-weight: 600; }
.quote__tip-num {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--accent); font-family: var(--font-mono); font-size: .85rem;
}
.contact-card { margin-top: var(--s7); padding: var(--s5); background: var(--ink); color: var(--text); border-radius: var(--radius-lg); display: grid; gap: var(--s1); }
.contact-card__row { display: flex; align-items: center; gap: var(--s3); min-height: 44px; text-decoration: none; font-weight: 600; }
.contact-card__row span { min-width: 0; overflow-wrap: anywhere; }
.contact-card__row svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.contact-card__row:hover span { text-decoration: underline; text-underline-offset: 4px; }

.quote-form {
  position: relative; background: var(--white); border: 1px solid #dcdfd8; border-radius: var(--radius-lg);
  padding: var(--s6); box-shadow: 0 24px 60px -30px rgba(0,0,0,.35);
}
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 var(--s6); }
.quote-form legend {
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.1rem; margin-bottom: var(--s4); padding: 0;
}
.field { margin-bottom: var(--s4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label, .field__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: var(--s2); color: var(--ink); }
.req { color: #b3261e; }
.hint { font-weight: 400; color: #5b5f5b; font-size: .88rem; margin-left: var(--s1); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  background: #fafbf8; color: var(--ink); border: 1.5px solid #c4c8c1; border-radius: var(--radius);
  font-size: 1rem; transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input::placeholder, .field textarea::placeholder { color: #737873; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.field.has-error input, .field.has-error select { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .88rem; font-weight: 600; margin-top: var(--s1); min-height: 0; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: 999px;
  border: 1.5px solid #c4c8c1; background: #fafbf8; font-weight: 600; font-size: .92rem;
  transition: background-color var(--dur), border-color var(--dur);
}
.chip span::before {
  content: ""; width: 0; height: 10px; margin-right: 0; border: solid var(--ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-2px); opacity: 0; transition: width var(--dur), margin var(--dur), opacity var(--dur);
}
.chip:hover span { border-color: #8d918c; }
.chip input:checked + span { background: var(--lime); border-color: var(--ink); }
.chip input:checked + span::before { width: 5px; margin-right: 10px; opacity: 1; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.dropzone {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  padding: var(--s6) var(--s4); text-align: center; cursor: pointer;
  border: 2px dashed #b4b8b1; border-radius: var(--radius-lg); background: #fafbf8;
  transition: border-color var(--dur), background-color var(--dur);
}
.dropzone svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s2); }
.dropzone__text { font-weight: 500; }
.dropzone__text strong { text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { font-size: .85rem; color: #5b5f5b; font-weight: 400; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--ink); background: #f1f7dc; }
#photos:focus-visible + .file-list, .dropzone:has(+ #photos:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.file-list { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.file-list li { width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; border: 1px solid #c4c8c1; }
.file-list img { width: 100%; height: 100%; object-fit: cover; }

.form-error-summary { border: 2px solid #b3261e; background: #fdf1ef; border-radius: var(--radius); padding: var(--s4); margin-bottom: var(--s5); }
.form-error-summary h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: #8c1d18; margin-bottom: var(--s2); }
.form-error-summary ul { list-style: disc; padding-left: var(--s5); }
.form-error-summary a { color: #8c1d18; font-weight: 600; }

.quote-form .btn--primary { background: var(--ink); color: var(--accent); min-height: 56px; font-size: 1.05rem; }
.quote-form .btn--primary:hover { background: #262828; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
.form-foot { margin-top: var(--s3); font-size: .85rem; color: #5b5f5b; text-align: center; }

.form-success {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: var(--s3); padding: var(--s7); background: var(--white); border-radius: var(--radius-lg);
  animation: fadeUp 300ms var(--ease-out);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 64px; height: 64px; fill: var(--lime); stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.75rem; }
.form-success p { color: #3d403d; max-width: 40ch; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) { .quote { grid-template-columns: 1fr; gap: var(--s7); } }
@media (max-width: 480px) { .quote-form { padding: var(--s5) var(--s4); } }

/* ---------- Footer ---------- */
.site-footer { background: #080808; border-top: 4px solid var(--accent); padding-top: var(--s8); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr; gap: var(--s6); padding-bottom: var(--s7); }
.footer-contact { display: grid; gap: var(--s3); }
.footer-contact a { display: inline-block; overflow-wrap: anywhere; line-height: 1.45; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact__note { display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer__tag { margin-top: var(--s3); color: var(--text-muted); font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-h { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.site-footer p { color: var(--text-muted); }
.site-footer a { color: var(--text); text-underline-offset: 3px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; }
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
