/* ==========================================================================
   MGP PAINTING LLC
   Trade-contractor system: ruled blueprint grid, hard corners, heavy navy
   bands, red used as a cut line — never as a tinted blob.
   Oswald (condensed display) + Work Sans (body).
   ========================================================================== */

:root {
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --navy: #1b2a4a;
  --navy-deep: #121d33;
  --navy-soft: #2a3b60;
  --red: #d92b2b;
  --red-dark: #b32020;

  --bone: #f4f2ed;
  --bone-dim: #eae7df;
  --paper: #ffffff;

  --ink: #14192a;
  --steel: #5f6779;
  --line: #d7d3c9;
  --line-dark: #2f3f63;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
}

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- structure ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.band { padding-block: 64px; }
@media (min-width: 768px) { .band { padding-block: 88px; } }
@media (min-width: 1100px) { .band { padding-block: 104px; } }

.band--navy { background: var(--navy); color: #fff; }
.band--deep { background: var(--navy-deep); color: #fff; }
.band--dim { background: var(--bone-dim); }
.band--paper { background: var(--paper); }

/* section label: index + rule. Numbers encode real page order. */
.slug {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.slug::after { content: ""; height: 2px; flex: 1; max-width: 72px; background: var(--red); }
.band--navy .slug, .band--deep .slug { color: #ff6a6a; }
.band--navy .slug::after, .band--deep .slug::after { background: #ff6a6a; }

.head { max-width: 46ch; }
.head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--steel);
  max-width: 62ch;
  text-wrap: pretty;
}
.band--navy .head p, .band--deep .head p { color: rgba(255, 255, 255, 0.72); }
.head--wide { max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--line { border: 2px solid var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--ghost { border: 2px solid rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-block: 9px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: var(--red); }
.topbar .lic { font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; color: rgba(255,255,255,.55); }

.masthead { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead.stuck { box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(0,0,0,.45); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
@media (min-width: 1024px) { .masthead .wrap { height: 92px; } }

.brand img { height: 52px; width: auto; object-fit: contain; }
@media (min-width: 1024px) { .brand img { height: 64px; } }

.nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  position: relative;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.masthead-cta { display: none; }
@media (min-width: 1024px) { .masthead-cta { display: flex; } }

.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--navy); }
@media (min-width: 1024px) { .burger { display: none; } }
.burger svg { width: 24px; height: 24px; }

.drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.drawer.open { display: block; }
@media (min-width: 1024px) { .drawer { display: none !important; } }
.drawer nav { display: flex; flex-direction: column; padding-block: 8px; }
.drawer a {
  padding: 13px 2px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.drawer a[aria-current="page"] { color: var(--red); }
.drawer .btn { margin-top: 16px; margin-bottom: 8px; width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,29,51,.96) 0%, rgba(18,29,51,.88) 46%, rgba(18,29,51,.42) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: 76px 0; }
@media (min-width: 900px) { .hero__inner { padding-block: 108px 0; } }
.hero h1 {
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 700;
  max-width: 15ch;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: normal; color: #ff6a6a; }
.hero__lede { margin-top: 22px; max-width: 56ch; font-size: 18px; color: rgba(255,255,255,.82); text-wrap: pretty; }
.hero .btn-row { margin-top: 32px; }

/* hero stat strip — hard-ruled, no cards */
.hero__facts {
  position: relative; z-index: 1;
  margin-top: 64px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 860px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } }
.hero__facts li {
  padding: 22px 18px 26px 0;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 860px) { .hero__facts li { border-bottom: 0; border-right: 1px solid var(--line-dark); padding-left: 22px; } }
@media (min-width: 860px) { .hero__facts li:first-child { padding-left: 0; } }
@media (min-width: 860px) { .hero__facts li:last-child { border-right: 0; } }
.hero__facts .k { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: #fff; line-height: 1; }
.hero__facts .v { margin-top: 7px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* sub-page hero */
.phero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,29,51,.96), rgba(18,29,51,.82) 52%, rgba(18,29,51,.5)); }
.phero__inner { position: relative; z-index: 1; padding-block: 64px; }
@media (min-width: 900px) { .phero__inner { padding-block: 92px; } }
.phero h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 700; max-width: 18ch; }
.phero p { margin-top: 20px; max-width: 58ch; font-size: 17.5px; color: rgba(255,255,255,.82); text-wrap: pretty; }
.phero p + p { margin-top: 12px; font-size: 16px; color: rgba(255,255,255,.66); }
.phero .btn-row { margin-top: 30px; }

/* ---------- ruled grid blocks (replaces floating cards) ---------- */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells--2 { grid-template-columns: 1fr; }
.cells--3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .cells--2, .cells--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cells--3 { grid-template-columns: repeat(3, 1fr); } }
.cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 26px 32px;
  background: var(--paper);
}
.cell__n { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--red); }
.cell h3 { margin-top: 14px; font-size: 21px; }
.cell p { margin-top: 12px; font-size: 15px; color: var(--steel); text-wrap: pretty; }
.cells--onnavy { border-color: var(--line-dark); }
.cells--onnavy .cell { background: transparent; border-color: var(--line-dark); color: #fff; }
.cells--onnavy .cell p { color: rgba(255,255,255,.7); }

/* service index — a ruled list, not a tile farm */
.svc-index { border-top: 2px solid var(--navy); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a, .svc-index .row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 18px;
  align-items: start;
  padding: 22px 4px;
  transition: background-color .15s, padding-left .15s;
}
@media (min-width: 780px) { .svc-index a, .svc-index .row { grid-template-columns: 44px minmax(230px, 300px) 1fr auto; align-items: center; } }
.svc-index a:hover { background: var(--paper); padding-left: 12px; }
.svc-index .idx { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: 0.12em; padding-top: 3px; }
.svc-index h3 { font-size: 20px; }
.svc-index p { font-size: 14.5px; color: var(--steel); grid-column: 2 / -1; }
@media (min-width: 780px) { .svc-index p { grid-column: auto; margin: 0; } }
.svc-index .go { display: none; color: var(--red); }
@media (min-width: 780px) { .svc-index .go { display: block; } }
.svc-index .go svg { width: 20px; height: 20px; }

/* ---------- split sections (asymmetric) ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
@media (min-width: 980px) { .split--flip .split__media { order: -1; } }
/* height:auto is required — a width/height attribute pair on the <img> would
   otherwise win over aspect-ratio and render the photo at its full height. */
.split__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media { position: relative; }
.split__media--tag::after {
  content: attr(data-tag);
  position: absolute; left: 0; bottom: 0;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 16px;
}

.ticks { margin-top: 26px; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 620px) { .ticks--2 { grid-template-columns: 1fr 1fr; } }
.ticks li { background: var(--bone); display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px 13px 0; font-size: 15px; }
.band--paper .ticks li { background: var(--paper); }
.ticks svg { width: 16px; height: 16px; color: var(--red); flex: none; margin-top: 5px; }
.band--navy .ticks, .band--deep .ticks { background: var(--line-dark); border-color: var(--line-dark); }
.band--navy .ticks li, .band--deep .ticks li { background: var(--navy); color: rgba(255,255,255,.86); }
.band--deep .ticks li { background: var(--navy-deep); }

/* ---------- process: horizontal ruled steps ---------- */
.steps { border-top: 2px solid var(--red); display: grid; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 26px 22px 30px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 760px) { .steps li { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 28px 24px 10px; } }
@media (min-width: 760px) { .steps li:first-child { padding-left: 0; } }
@media (min-width: 760px) { .steps li:last-child { border-right: 0; } }
.steps .n { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: rgba(255,255,255,.16); line-height: 1; }
.steps h3 { margin-top: 12px; font-size: 17px; color: #fff; }
.steps p { margin-top: 9px; font-size: 14.5px; color: rgba(255,255,255,.66); }

/* ---------- gallery ---------- */
.shots { display: grid; gap: 2px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { position: relative; overflow: hidden; background: var(--navy); }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .3s; }
.shot:hover img { transform: scale(1.045); opacity: .82; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(18,29,51,.92), transparent);
  color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.35;
}
.shot figcaption span { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #ff8080; margin-bottom: 3px; }
.shots--tall .shot img { aspect-ratio: 3 / 4; }

/* ---------- service area accordion ---------- */
.counties { border-top: 2px solid var(--navy); }
.counties details { border-bottom: 1px solid var(--line); }
.counties summary {
  display: flex; align-items: center; gap: 14px;
  padding: 19px 4px; cursor: pointer; list-style: none;
}
.counties summary::-webkit-details-marker { display: none; }
.counties summary:hover .cname { color: var(--red); }
.counties .cname { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; letter-spacing: 0.01em; flex: 1; transition: color .15s; }
.counties .ccount { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); font-family: var(--font-display); }
.counties .chev { width: 22px; height: 22px; color: var(--red); flex: none; transition: transform .2s ease; }
.counties details[open] .chev { transform: rotate(180deg); }
.counties .towns { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 4px 24px; }
.counties .towns li { border: 1px solid var(--line); background: var(--paper); padding: 6px 12px; font-size: 13.5px; }
.counties .note { padding: 0 4px 22px; font-size: 13px; color: var(--steel); font-style: italic; }

/* ---------- reviews ---------- */
.quotes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--paper); padding: 30px 26px 28px; display: flex; flex-direction: column; }
.quote .stars { display: flex; gap: 3px; margin-bottom: 16px; }
.quote .stars svg { width: 15px; height: 15px; color: var(--red); }
.quote blockquote { flex: 1; font-size: 15.5px; line-height: 1.62; text-wrap: pretty; }
.quote figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.quote .who { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.quote .what { color: var(--red); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- closing CTA ---------- */
.closer { background: var(--red); color: #fff; }
.closer .wrap { padding-block: 56px; display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .closer .wrap { grid-template-columns: 1fr auto; padding-block: 66px; } }
.closer h2 { font-size: clamp(28px, 4vw, 44px); max-width: 20ch; }
.closer p { margin-top: 12px; max-width: 52ch; color: rgba(255,255,255,.9); }
.closer .btn--ghost { border-color: rgba(255,255,255,.7); }
.closer .btn--white { background: #fff; color: var(--red); }
.closer .btn--white:hover { background: var(--navy-deep); color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.foot .wrap { padding-block: 56px 28px; }
.foot__grid { display: grid; gap: 38px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 48px; } }
/* logo sits on a white plate so the real brand colors read on navy */
.foot__plate { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 2px; }
.foot__plate img { height: 62px; width: auto; object-fit: contain; }
.foot__brand p { margin-top: 18px; font-size: 14.5px; max-width: 38ch; }
.foot__lic { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.22); padding: 7px 12px; font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; font-family: var(--font-display); color: rgba(255,255,255,.82); }
.foot__lic svg { width: 14px; height: 14px; color: var(--red); }
.foot h2 { font-size: 12px; letter-spacing: 0.2em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.foot ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot__svc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.foot a:hover { color: #fff; }
.foot li.row { display: flex; align-items: center; gap: 10px; }
.foot li.row svg, .foot li a svg { width: 15px; height: 15px; color: var(--red); flex: none; }
.foot li a { display: flex; align-items: center; gap: 10px; }
.foot__base { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (min-width: 700px) { .foot__base { flex-direction: row; align-items: center; justify-content: space-between; } }
.foot__base nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__veil { position: absolute; inset: 0; background: rgba(10,16,30,.72); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; z-index: 1;
  width: min(660px, 100%);
  margin: 0 auto;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--bone);
  border-top: 5px solid var(--red);
}
@media (min-width: 700px) { .modal__panel { margin: 4vh auto; max-height: 92dvh; } }
.modal__head { position: sticky; top: 0; background: var(--navy-deep); color: #fff; padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__head h2 { font-size: 22px; }
.modal__head p { font-size: 13.5px; color: rgba(255,255,255,.66); margin-top: 4px; }
.modal__x { color: #fff; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex: none; }
.modal__x:hover { color: #ff6a6a; }
.modal__x svg { width: 22px; height: 22px; }
.modal__body { padding: 22px; }

/* ---------- forms ---------- */
.fgrid { display: grid; gap: 16px; }
@media (min-width: 600px) { .fgrid--2 { grid-template-columns: 1fr 1fr; } }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.f input, .f select, .f textarea {
  border: 1px solid var(--line); background: var(--paper);
  padding: 11px 13px; font-size: 15px; border-radius: 2px; width: 100%;
}
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.f textarea { resize: vertical; min-height: 118px; }
.f--full { grid-column: 1 / -1; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  border: 1px solid var(--line); background: var(--paper); padding: 9px 14px; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; border-radius: 2px;
}
.radios input { accent-color: var(--red); }
.radios label:has(input:checked) { border-color: var(--red); background: #fff; box-shadow: inset 0 0 0 1px var(--red); }
.fnote { margin-top: 12px; font-size: 12.5px; color: var(--steel); }
.fmsg { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--red); background: #fff; font-size: 14px; display: none; }
.fmsg.show { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.done { text-align: center; padding: 34px 22px 40px; }
.done__mark { width: 56px; height: 56px; margin: 0 auto; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.done__mark svg { width: 28px; height: 28px; }
.done h3 { margin-top: 20px; font-size: 25px; }
.done p { margin-top: 12px; color: var(--steel); max-width: 40ch; margin-inline: auto; }
.done a { color: var(--red); font-weight: 600; }

/* ---------- contact page rails ---------- */
.rails { border-top: 2px solid var(--navy); margin-top: 28px; }
.rails li { border-bottom: 1px solid var(--line); }
.rails a, .rails .row { display: flex; align-items: center; gap: 14px; padding: 16px 4px; }
.rails a:hover { color: var(--red); }
.rails svg { width: 19px; height: 19px; color: var(--red); flex: none; }
.rails .lab { display: block; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); font-family: var(--font-display); }
.rails .val { font-size: 16.5px; font-weight: 600; }

/* ---------- legal ---------- */
.legal h1 { font-size: clamp(30px, 5vw, 48px); }
.legal .doc { margin-top: 28px; max-width: 68ch; }
.legal .doc h2 { font-size: 19px; margin-top: 34px; color: var(--navy); }
.legal .doc p { margin-top: 14px; color: var(--steel); }
.legal .doc ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.legal .doc li { padding-left: 18px; position: relative; color: var(--steel); }
.legal .doc li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 2px; background: var(--red); }
.legal .doc a { color: var(--red); text-decoration: underline; }

/* ---------- 404 ---------- */
.nf { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.nf .code { font-family: var(--font-display); font-size: 104px; font-weight: 700; color: var(--red); line-height: 1; }
.nf h1 { margin-top: 8px; font-size: 30px; }
.nf p { margin-top: 12px; color: var(--steel); }
.nf .btn { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
