/* Randall Architectural Ironworks — "Drawing sheet & wrought railing" */
:root {
  --c-steel: #1E2B33;
  --c-steel-deep: #172127;
  --c-steel-2: #26363F;
  --c-galv: #E3E6E3;
  --c-galv-light: #F2F3F1;
  --c-primer: #A8392B;
  --c-primer-dark: #8C2E22;
  --c-primer-light: #E88A78;
  --c-patina: #3E7A6B;
  --c-patina-light: #8CC0B0;
  --c-graphite: #4A5357;
  --c-mist: #C3CCCC;
  --c-white: #FFFFFF;
  --c-error-light: #F3A596;
  --c-line-dark: rgba(30, 43, 51, 0.16);
  --c-line-dark-strong: rgba(30, 43, 51, 0.45);
  --c-line-light: rgba(227, 230, 227, 0.16);
  --c-line-light-strong: rgba(227, 230, 227, 0.38);
  --c-grid: rgba(30, 43, 51, 0.055);

  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3.5rem; --s-16: 5rem;
  --gutter: 1.125rem;
  --container: 74rem;
  --header-h: 4.25rem;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 10px;

  --shadow-plate: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 -2px 0 rgba(0, 0, 0, 0.25) inset, 0 24px 40px -24px rgba(23, 33, 39, 0.65);
  --shadow-form: 0 18px 40px -28px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--c-steel);
  background: var(--c-galv);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.98; margin: 0; letter-spacing: 0.002em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-2); z-index: 100;
  background: var(--c-steel); color: var(--c-galv); padding: var(--s-2) var(--s-4);
  transform: translateY(-160%); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--c-primer); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible, .form-wrap :focus-visible { outline-color: var(--c-primer-light); }

/* ---------- Brand mark ---------- */
.mark { width: 34px; height: 34px; flex: none; }
.mark__frame { fill: none; stroke: currentColor; stroke-width: 2.2; }
.mark__bar { stroke: currentColor; stroke-width: 2.2; }
.mark__ring { fill: none; stroke: var(--c-primer); stroke-width: 2.6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-galv);
  border-bottom: 1px solid var(--c-line-dark);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--c-steel); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; }
.brand__sub { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: var(--c-graphite); margin-top: 2px; }
.brand--light { color: var(--c-galv); }
.brand--light .brand__sub { color: var(--c-mist); }

.burger {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: transparent; color: var(--c-steel);
  border: 1px solid var(--c-line-dark-strong); border-radius: var(--r-sm); cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; top: 0; }
.burger__bars::before { transform: translateY(-7px); }
.burger__bars::after { transform: translateY(7px); }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: rotate(45deg); background: var(--c-steel); }
.burger[aria-expanded="true"] .burger__bars::after { transform: rotate(-45deg); background: var(--c-steel); }

.nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  background: var(--c-galv);
  padding: var(--s-6) var(--gutter) var(--s-10);
  overflow-y: auto;
  opacity: 0; transform: translateY(-12px); visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s; }
.nav__list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.nav__list a {
  display: block; padding: var(--s-4) 0;
  font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.1;
  text-decoration: none; color: var(--c-steel);
  border-bottom: 1px solid var(--c-line-dark);
}
.nav__list a.nav__cta { color: var(--c-primer); }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.75rem 1.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-primer); color: var(--c-white); }
.btn--ghost { border-color: var(--c-steel); color: var(--c-steel); background: transparent; }
.btn--ghost-light { border-color: var(--c-galv); color: var(--c-galv); background: transparent; }

/* ---------- Railing rule (signature divider) ---------- */
.rail-rule {
  height: 44px;
  background:
    linear-gradient(var(--c-line-dark-strong), var(--c-line-dark-strong)) left top / 100% 5px no-repeat,
    linear-gradient(var(--c-line-dark-strong), var(--c-line-dark-strong)) left bottom / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--c-line-dark-strong) 0 3px, transparent 3px 24px) left 5px / 100% calc(100% - 8px) no-repeat;
}
.rail-rule--dark {
  background:
    linear-gradient(var(--c-line-light-strong), var(--c-line-light-strong)) left top / 100% 5px no-repeat,
    linear-gradient(var(--c-line-light-strong), var(--c-line-light-strong)) left bottom / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--c-line-light-strong) 0 3px, transparent 3px 24px) left 5px / 100% calc(100% - 8px) no-repeat;
}
.rail-rule--broken {
  -webkit-mask-image: linear-gradient(90deg, #000 0 42%, transparent 42% 58%, #000 58%);
  mask-image: linear-gradient(90deg, #000 0 42%, transparent 42% 58%, #000 58%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--s-10);
  background-color: var(--c-galv);
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero__grid { display: grid; gap: var(--s-8); align-items: end; padding-bottom: var(--s-6); }
.hero__kicker { font-style: italic; color: var(--c-graphite); margin-bottom: var(--s-4); }
.hero__title { font-size: clamp(3rem, 13vw, 7rem); line-height: 0.9; max-width: 11ch; }
.hero__lead { max-width: 36rem; margin-top: var(--s-6); color: var(--c-graphite); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__art { max-width: 34rem; width: 100%; justify-self: center; }

.railing { width: 100%; height: auto; overflow: visible; }
.r-dims line { stroke: var(--c-graphite); stroke-width: 1; opacity: 0.55; }
.r-ground { stroke: var(--c-line-dark-strong); stroke-width: 2; stroke-dasharray: 6 8; }
.r-bals line { stroke: var(--c-steel); stroke-width: 7; }
.r-post { fill: var(--c-steel); }
.r-finial { fill: var(--c-steel); }
.r-rail { fill: var(--c-steel); }
.r-frame { stroke: var(--c-steel); stroke-width: 9; }
.r-ring { fill: none; stroke: var(--c-primer); stroke-width: 8; }
.r-ring--inner { stroke: var(--c-patina); stroke-width: 5; }
.r-tie { stroke: var(--c-steel); stroke-width: 6; }
.r-dot { fill: var(--c-steel); }

@media (prefers-reduced-motion: no-preference) {
  .r-bals line { transform-box: fill-box; transform-origin: 50% 100%; animation: rise 0.75s var(--ease) both; }
  .r-bals line:nth-of-type(1) { animation-delay: 0.10s; }
  .r-bals line:nth-of-type(2) { animation-delay: 0.16s; }
  .r-bals line:nth-of-type(3) { animation-delay: 0.22s; }
  .r-bals line:nth-of-type(4) { animation-delay: 0.28s; }
  .r-bals line:nth-of-type(5) { animation-delay: 0.34s; }
  .r-bals line:nth-of-type(6) { animation-delay: 0.34s; }
  .r-bals line:nth-of-type(7) { animation-delay: 0.28s; }
  .r-bals line:nth-of-type(8) { animation-delay: 0.22s; }
  .r-bals line:nth-of-type(9) { animation-delay: 0.16s; }
  .r-bals line:nth-of-type(10) { animation-delay: 0.10s; }
  .r-medallion { transform-box: fill-box; transform-origin: 50% 50%; animation: set 0.9s var(--ease) 0.6s both; }
}
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes set { from { opacity: 0; transform: scale(0.7) rotate(-40deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-12); }
.section--light { background: var(--c-galv-light); color: var(--c-steel); }
.section--galv { background: var(--c-galv); color: var(--c-steel); }
.section--dark { background: var(--c-steel); color: var(--c-galv); }
.section__head { max-width: 46rem; margin-bottom: var(--s-10); }
.section__head h2, .company__text h2, .contact__intro h2 { font-size: clamp(2.25rem, 8vw, 4.25rem); margin-bottom: var(--s-5); }
.section__head p { color: var(--c-graphite); }
.section--dark .section__head p { color: var(--c-mist); }

/* Services */
.services { list-style: none; padding: 0; display: grid; gap: var(--s-6); }
.service { display: flex; flex-direction: column; border-top: 5px solid var(--c-steel); }
.service__plate { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background-color: var(--c-steel); }
.service__plate::before { content: ""; position: absolute; inset: -6%; transition: transform 0.6s var(--ease); }
.service:hover .service__plate::before { transform: scale(1.05); }
.service__body { padding: var(--s-5) 0 0; }
.service h3 { font-size: 2rem; margin-bottom: var(--s-3); }
.service p { color: var(--c-graphite); margin: 0; font-size: 1rem; }

.service__plate--structures::before {
  background:
    linear-gradient(135deg, transparent calc(50% - 1.5px), rgba(232, 138, 120, 0.7) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) 0 0 / 84px 72px,
    linear-gradient(transparent 44%, var(--c-galv) 44% 52%, transparent 52%) 0 0 / 100% 72px,
    linear-gradient(90deg, transparent 45%, var(--c-mist) 45% 55%, transparent 55%) 0 0 / 84px 100%,
    var(--c-steel);
}
.service__plate--railings::before {
  background:
    linear-gradient(var(--c-galv), var(--c-galv)) 0 24% / 100% 8px no-repeat,
    linear-gradient(var(--c-galv), var(--c-galv)) 0 80% / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 20px, var(--c-mist) 20px 25px) 0 26% / 100% 55% no-repeat,
    radial-gradient(circle at 50% 52%, transparent 0 26px, var(--c-primer-light) 26px 31px, transparent 31px) 0 0 / 100% 100% no-repeat,
    var(--c-steel);
}
.service__plate--fences::before {
  background:
    radial-gradient(circle at 7px 50%, var(--c-primer-light) 0 5px, transparent 5.5px) 12px 30% / 34px 14px repeat-x,
    linear-gradient(var(--c-galv), var(--c-galv)) 0 44% / 100% 6px no-repeat,
    linear-gradient(var(--c-galv), var(--c-galv)) 0 84% / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, var(--c-patina-light) 14px 24px, transparent 24px 34px) 0 34% / 100% 66% no-repeat,
    var(--c-steel);
}
.service__plate--decorative::before {
  background:
    radial-gradient(circle, transparent 0 13px, var(--c-primer-light) 13px 17px, transparent 17px) 0 0 / 52px 52px,
    radial-gradient(circle, transparent 0 33px, var(--c-mist) 33px 35px, transparent 35px) 26px 26px / 52px 52px,
    var(--c-steel);
}

/* Process */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; }
.step { position: relative; padding: var(--s-6) 0 var(--s-6) 4.25rem; border-top: 1px solid var(--c-line-light-strong); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: var(--s-5);
  font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 1;
  color: var(--c-primer-light);
}
.step h3 { font-size: 1.875rem; margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--c-mist); }

/* Company */
.company { display: grid; gap: var(--s-10); align-items: center; }
.company__text > p { color: var(--c-graphite); max-width: 38rem; }
.facts { margin: var(--s-6) 0 0; border-top: 2px solid var(--c-steel); }
.facts div { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line-dark); }
.facts dt { font-size: 0.9375rem; font-style: italic; color: var(--c-graphite); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.plate {
  position: relative; justify-self: center; width: 100%; max-width: 26rem;
  padding: var(--s-8) var(--s-6);
  background: linear-gradient(150deg, var(--c-steel-2), var(--c-steel-deep));
  color: var(--c-galv); border-radius: var(--r-lg); box-shadow: var(--shadow-plate);
}
.plate::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background:
    radial-gradient(circle, var(--c-mist) 0 3.5px, rgba(0, 0, 0, 0.35) 4px 5px, transparent 5.5px) left top / 14px 14px no-repeat,
    radial-gradient(circle, var(--c-mist) 0 3.5px, rgba(0, 0, 0, 0.35) 4px 5px, transparent 5.5px) right top / 14px 14px no-repeat,
    radial-gradient(circle, var(--c-mist) 0 3.5px, rgba(0, 0, 0, 0.35) 4px 5px, transparent 5.5px) left bottom / 14px 14px no-repeat,
    radial-gradient(circle, var(--c-mist) 0 3.5px, rgba(0, 0, 0, 0.35) 4px 5px, transparent 5.5px) right bottom / 14px 14px no-repeat;
}
.plate__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--c-line-light-strong); padding: var(--s-8) var(--s-4);
}
.plate__inner .mark { width: 56px; height: 56px; margin-bottom: var(--s-4); }
.plate__inner .mark__ring { stroke: var(--c-primer-light); }
.plate__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 14vw, 4.5rem); line-height: 0.9; margin: 0; letter-spacing: 0.04em; }
.plate__line { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; margin: var(--s-2) 0 0; }
.plate__line--small { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--c-mist); }
.plate__status { display: inline-flex; align-items: center; gap: var(--s-2); margin: var(--s-6) 0 0; padding: var(--s-1) var(--s-3); border: 1px solid var(--c-line-light-strong); border-radius: 999px; font-size: 0.9375rem; }
.plate__led { width: 9px; height: 9px; border-radius: 50%; background: var(--c-patina-light); }

/* Contact */
.contact { display: grid; gap: var(--s-10); }
.contact__intro > p { color: var(--c-mist); }
.checklist { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-8); display: grid; gap: var(--s-2); }
.checklist li { position: relative; padding-left: 1.75rem; color: var(--c-galv); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 4px; height: 1.05em; background: var(--c-primer-light); box-shadow: 8px 0 0 var(--c-line-light-strong); }
.direct { list-style: none; padding: 0; }
.direct li { display: grid; gap: 2px; padding: var(--s-3) 0; border-top: 1px solid var(--c-line-light); }
.direct__label { font-size: 0.9375rem; font-style: italic; color: var(--c-mist); }
.direct a { color: var(--c-galv); font-weight: 600; text-decoration-color: var(--c-line-light-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
.direct a:hover { text-decoration-color: var(--c-primer-light); }

.form-wrap { background: var(--c-steel-deep); border-top: 5px solid var(--c-primer); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-form); align-self: start; }
.form__grid { display: grid; gap: var(--s-2) var(--s-5); }
.field { display: grid; gap: var(--s-1); min-width: 0; }
.field label { font-weight: 600; font-size: 1rem; color: var(--c-galv); }
.field__opt { font-weight: 400; font-style: italic; color: var(--c-mist); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--c-galv);
  background: var(--c-steel); border: 1px solid var(--c-line-light-strong); border-radius: var(--r-sm);
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-galv) 50%), linear-gradient(135deg, var(--c-galv) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field select option { color: var(--c-steel); background: var(--c-galv-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primer-light); box-shadow: 0 0 0 3px rgba(232, 138, 120, 0.3); }
.field [aria-invalid="true"] { border-color: var(--c-error-light); }
.field__error { min-height: 1.4em; margin: 0; font-size: 0.875rem; color: var(--c-error-light); }
.form__foot { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.form__foot .btn { width: 100%; }
.form__note { margin: 0; font-size: 0.875rem; color: var(--c-mist); }
.form-success h3 { font-size: 2.25rem; margin-bottom: var(--s-4); color: var(--c-galv); }
.form-success p { color: var(--c-mist); }
.form-success a { color: var(--c-galv); overflow-wrap: anywhere; }
.form-success:not([hidden]) { animation: appear 0.4s var(--ease) both; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-steel-deep); color: var(--c-mist); }
.footer__grid { display: grid; gap: var(--s-8); padding-block: var(--s-10); }
.footer__brand p { margin: var(--s-4) 0 0; max-width: 24rem; }
.footer__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--c-galv); margin-bottom: var(--s-3); }
.footer__links { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.footer__links a { color: var(--c-galv); text-decoration-color: var(--c-line-light-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer__links a:hover { text-decoration-color: var(--c-primer-light); }
.legal { border-top: 1px solid var(--c-line-light); padding-block: var(--s-6) var(--s-8); font-family: var(--font-body); font-size: 0.8125rem; line-height: 1.7; color: #C9D1D1; }
.legal p { margin: 0 0 var(--s-2); }
.legal a { color: #E3E6E3; overflow-wrap: anywhere; text-underline-offset: 3px; }
.legal__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* ---------- Legal pages ---------- */
.page-hero {
  padding-top: var(--s-12);
  background-color: var(--c-galv);
  background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero .container { padding-bottom: var(--s-8); }
.page-hero h1 { font-size: clamp(3rem, 12vw, 6rem); line-height: 0.9; }
.page-hero__meta { margin: var(--s-4) 0 0; font-style: italic; color: var(--c-graphite); }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.75rem, 5vw, 2.375rem); margin: var(--s-10) 0 var(--s-3); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose a { color: var(--c-primer-dark); overflow-wrap: anywhere; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: var(--s-12);
  background-color: var(--c-galv);
  background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.notfound__inner { padding-bottom: var(--s-12); }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 34vw, 15rem); line-height: 0.8; margin: 0 0 var(--s-6); color: transparent; -webkit-text-stroke: 3px var(--c-primer); }
.notfound h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); max-width: 14ch; margin-bottom: var(--s-4); }
.notfound p { color: var(--c-graphite); max-width: 34rem; }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  :root { --gutter: 1.5rem; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .facts div { grid-template-columns: 11.5rem 1fr; gap: var(--s-4); align-items: baseline; }
  .form-wrap { padding: var(--s-8); }
  .form__foot .btn { width: auto; justify-self: start; }
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }
  .burger { display: none; }
  .nav { position: static; opacity: 1; transform: none; visibility: visible; padding: 0; background: none; overflow: visible; transition: none; }
  .nav__list { flex-direction: row; align-items: center; gap: var(--s-6); }
  .nav__list a { font-size: 1.25rem; font-weight: 600; border-bottom: 0; padding: var(--s-2) 0; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--c-primer); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__list a.nav__cta { border: 2px solid var(--c-primer); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); }
  .nav__list a.nav__cta::after { display: none; }
  body.nav-open { overflow: auto; }
  .section { padding-block: var(--s-16); }
  .services { grid-template-columns: 1fr 1fr; gap: var(--s-10) var(--s-8); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .rail-rule { height: 56px; }
}

@media (min-width: 1024px) {
  .hero { padding-top: var(--s-16); }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-12); padding-bottom: var(--s-8); }
  .hero__art { justify-self: end; }
  .services { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .service h3 { font-size: 1.875rem; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-8); }
  .step { padding: var(--s-6) 0 0; border-top: 5px solid var(--c-galv); }
  .step::before { position: static; display: block; margin-bottom: var(--s-4); }
  .company { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-16); }
  .contact { grid-template-columns: 0.95fr 1.05fr; gap: var(--s-16); }
}

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