/* ==========================================================================
   DOMINION — Recruiting Site
   Brand law: BRAND_GUIDELINES.md (project root)
   60% black/ink · 30% bone/white · 10% red (max). One red hit per view.
   Hard edges (0–2px). No gradients. No shadows on marks. No emoji.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Alternate Gothic No3 D';
  src: url('../assets/brand/AlternateGothicNo3D.otf') format('opentype');
  /* Range declaration: headings request 600 with font-synthesis off — serve
     this single file for every weight instead of relying on closest-match. */
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Self-hosted variable fonts (latin subset) — no third-party requests, CSP stays 'self'. */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../assets/fonts/oswald-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-franklin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --dom-black: #0F0F0F;
  --dom-ink: #1D1D29;
  --dom-red: #EC2424;
  /* Contrast-driven red shades for SMALL text only (buttons and large hits
     stay --dom-red per brand): darkened for light backgrounds (4.5:1 on
     bone/white), brightened for black. */
  --dom-red-text: #C51212;
  --dom-red-text-dark: #F04040;
  --dom-bone: #F8EEE2;
  --dom-white: #FFFFFF;

  --hairline-light: #e5ded2;   /* on bone */
  --hairline-white: #e8e6e1;   /* on white */
  --hairline-dark: #2c2c38;    /* on black */

  --font-head: 'Alternate Gothic No3 D', 'Oswald', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;

  /* Strict type scale — display / h2 / body / label (+ numeral anchor size) */
  --fs-display: clamp(3.25rem, 9vw, 7.25rem);
  --fs-giant: clamp(2.5rem, 5.5vw, 4.5rem);
  --fs-h2: clamp(1.625rem, 3vw, 2rem);
  --fs-body: 1rem;
  --fs-label: 0.75rem;

  --space-section: clamp(3rem, 6vw, 5rem);
  --container: 72rem;
  --nav-h: 4rem;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--dom-ink);
  background: var(--dom-white);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--dom-red);
  color: var(--dom-white);
}

:focus-visible {
  outline: 2px solid var(--dom-red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--dom-black);
  color: var(--dom-white);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding-block: var(--space-section);
}

.section--black {
  background: var(--dom-black);
  color: var(--dom-bone);
}

.section--bone {
  background: var(--dom-bone);
  color: var(--dom-ink);
}

.section--white {
  background: var(--dom-white);
  color: var(--dom-ink);
}

/* Section header pattern: 3px rule + eyebrow + H2 */
.section-head {
  border-top: 3px solid var(--dom-black);
  padding-top: 1.25rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 44rem;
}

.section--black .section-head {
  border-top-color: var(--dom-bone);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.eyebrow--red {
  color: var(--dom-red-text);
}

/* Small red text on BLACK needs the brighter shade (4.5:1 on #0F0F0F). */
.section--black .eyebrow--red {
  color: var(--dom-red-text-dark);
}

.h2 {
  font-size: var(--fs-h2);
  color: var(--dom-black);
}

.section--black .h2 {
  color: var(--dom-white);
}

.section-lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: inherit;
}

.u-red {
  color: var(--dom-red);
}

/* --------------------------------------------------------------------------
   Buttons — square corners, imperative, uppercase
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  /* 24px = WCAG large text at ANY weight, so white on --dom-red passes at 3:1
     regardless of the single-weight AG face's rendered boldness. */
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 1.05em 2.4em;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--red {
  background: var(--dom-red);
  color: var(--dom-white);
}

.btn--red:hover,
.btn--red:focus-visible {
  background: var(--dom-white);
  color: var(--dom-black);
  border-color: var(--dom-black);
}

.section--black .btn--red:hover,
.section--black .btn--red:focus-visible {
  border-color: var(--dom-white);
}

.btn--ghost {
  background: transparent;
  color: var(--dom-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--dom-white);
  background: var(--dom-white);
  color: var(--dom-black);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dom-black);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--hairline-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  width: 150px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(248, 238, 226, 0.75);
  transition: color 0.15s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--dom-white);
}

.nav__cta {
  /* Stays at .btn's 24px (large text); tighter padding keeps the nav slim. */
  padding: 0.45em 1.2em;
}

@media (max-width: 767px) {
  .nav__link {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* Short laptop viewports (e.g. 1366x625 effective): keep the primary CTA above the fold. */
@media (max-height: 760px) and (min-width: 768px) {
  .hero {
    padding-block: 1rem 2.25rem;
  }

  .hero__title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.25rem;
  }

  .hero__sub,
  .hero__proof {
    margin-bottom: 1rem;
  }

  .hero__ctas .btn {
    padding-block: 0.8em;
  }
}

.hero__crown {
  position: absolute;
  top: 50%;
  /* Fully inside the frame with breathing room — the whole mark reads. */
  right: clamp(1.5rem, 4vw, 4rem);
  transform: translateY(-50%);
  width: clamp(16rem, 34vw, 30rem);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  color: var(--dom-bone);
  opacity: 0.85;
}

.hero__title {
  font-size: var(--fs-display);
  color: var(--dom-white);
  line-height: 1.0;
  max-width: 12ch;
  margin-bottom: 1.75rem;
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.125rem;
  color: rgba(248, 238, 226, 0.9);
  margin-bottom: 1.5rem;
}

.hero__proof {
  font-weight: 700;
  color: var(--dom-white);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 238, 226, 0.6);
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--hairline-light);
}

.stat {
  border-right: 1px solid var(--hairline-light);
  padding: 1.5rem clamp(1rem, 2.5vw, 2rem);
}

.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-giant);
  line-height: 1;
  color: var(--dom-black);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.stat__label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(29, 29, 41, 0.65);
}

@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--hairline-light);
  }

  .stat {
    border-bottom: 1px solid var(--hairline-light);
    padding: 1.25rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   The Pay (income tiers)
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tier {
  border-top: 3px solid var(--dom-black);
  padding-top: 1.25rem;
}

.tier__label {
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tier__range {
  font-family: var(--font-head);
  font-weight: 600;
  /* Fitted below --fs-giant so the longest range ($150K-$250K+) holds one line in its column */
  font-size: clamp(2.5rem, 3.9vw, 3.625rem);
  line-height: 1;
  color: var(--dom-black);
  margin-bottom: 1rem;
  white-space: nowrap;
}

.tier__desc {
  max-width: 26rem;
}

@media (max-width: 767px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   The Climb (ladder)
   -------------------------------------------------------------------------- */
.rungs {
  border-top: 1px solid var(--hairline-white);
}

.rung {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline-white);
}

.rung__num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-giant);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--dom-ink);
  paint-order: stroke;
  user-select: none;
}

@supports not (-webkit-text-stroke: 2px black) {
  .rung__num {
    color: var(--dom-ink);
  }
}

.rung__title {
  font-size: var(--fs-h2);
  color: var(--dom-black);
  margin-bottom: 0.5rem;
}

.rung__desc {
  max-width: 38rem;
}

.climb-proof {
  margin-top: 2rem;
  font-weight: 700;
  max-width: 38rem;
}

@media (max-width: 599px) {
  .rung {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Why Dominion (pillars)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--hairline-white);
}

.pillar {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-right: 1px solid var(--hairline-white);
  border-bottom: 1px solid var(--hairline-white);
}

.pillar:nth-child(2n) {
  border-right: none;
}

.pillar:nth-last-child(-n+2) {
  border-bottom: none;
}

.pillar__index {
  display: block;
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: rgba(29, 29, 41, 0.72);
  margin-bottom: 1.25rem;
}

.pillar__title {
  font-size: var(--fs-h2);
  color: var(--dom-black);
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
  }

  .pillar:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--hairline-white);
  }

  .pillar:last-child {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   Manifesto + The Standard
   -------------------------------------------------------------------------- */
.manifesto {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--dom-white);
  max-width: 14ch;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}

.value {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 1.25rem;
}

/* With an odd count, the final value spans the row instead of leaving a hole. */
.values .value:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.value__title {
  font-size: var(--fs-h2);
  color: var(--dom-white);
  margin-bottom: 0.625rem;
}

.value__quote {
  color: rgba(248, 238, 226, 0.85);
}

.standard-close {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dom-white);
  max-width: 36rem;
}

@media (max-width: 699px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Who thrives here
   -------------------------------------------------------------------------- */
.fit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 5vw, 4rem);
}

@media (max-width: 699px) {
  .fit {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.fit__title {
  font-size: var(--fs-h2);
  color: var(--dom-black);
  margin-bottom: 1.25rem;
}

.fit__list li {
  position: relative;
  padding: 0.875rem 0 0.875rem 1.75rem;
  border-top: 1px solid var(--hairline-white);
}

.fit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  background: var(--dom-ink);
}

.fit-close {
  margin-top: 2rem;
  font-weight: 700;
  max-width: 38rem;
}

/* --------------------------------------------------------------------------
   FAQ (details/summary — works without JS)
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--hairline-white);
  max-width: 52rem;
}

.faq__item {
  border-bottom: 1px solid var(--hairline-white);
}

.faq__q {
  /* display:list-item keeps the summary's implicit disclosure semantics
     (flex/block strip the role in Chromium); the flex layout lives on the
     inner span instead. */
  display: list-item;
  padding: 1.375rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--dom-black);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.faq__q-inner::after {
  /* Plain declaration first: engines without alt-text syntax support keep the
     visible "+". Modern engines take the second declaration, whose alt text ""
     keeps the "+" out of the accessible name. */
  content: "+";
  content: "+" / "";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q-inner::after {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq__q-inner::after {
    transition: none;
  }
}

.faq__a {
  padding: 0 2.5rem 1.5rem 0;
  max-width: 44rem;
}

/* --------------------------------------------------------------------------
   Application form
   -------------------------------------------------------------------------- */
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.apply-side .section-head {
  margin-bottom: 1.5rem;
}

.apply-side__promise {
  font-weight: 700;
  margin-top: 1rem;
}

.apply-side__phone {
  margin-top: 0.75rem;
}

.apply-side__phone a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apply-side__phone a:hover,
.apply-side__phone a:focus-visible {
  color: var(--dom-red-text);
}

@media (max-width: 899px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.field__optional {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(29, 29, 41, 0.75);
  text-transform: none;
}

.field__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dom-ink);
  background: var(--dom-white);
  /* 3:1+ non-text contrast on bone and white (WCAG 1.4.11) */
  border: 1px solid #8A7E6B;
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.field__input:focus {
  outline: 2px solid var(--dom-ink);
  outline-offset: -1px;
}

.field__input[aria-invalid="true"] {
  border-color: var(--dom-red);
}

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D1D29' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

textarea.field__input {
  min-height: 8rem;
  resize: vertical;
}

input[type="file"].field__input {
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
}

input[type="file"].field__input::file-selector-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dom-white);
  background: var(--dom-black);
  border: 0;
  border-radius: 0;
  padding: 0.55em 1.2em;
  margin-right: 1rem;
  cursor: pointer;
}

.field__hint {
  font-size: 0.8125rem;
  color: rgba(29, 29, 41, 0.75);
  margin-top: 0.375rem;
}

.field__error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dom-red-text);
  margin-top: 0.375rem;
}

.field__error[hidden] {
  display: none;
}

.form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  /* Inherits .btn's 24px — large text at any rendered weight. */
  padding: 1em 3em;
}

.form__fineprint {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: rgba(29, 29, 41, 0.75);
}

.form__privacy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(29, 29, 41, 0.78);
  border-top: 1px solid var(--hairline-white, #e8e6e1);
  padding-top: 0.875rem;
}

@media (max-width: 599px) {
  .form {
    grid-template-columns: 1fr;
  }

  .field {
    grid-column: auto;
  }

  .form__submit {
    justify-self: stretch;
    text-align: center;
  }
}

/* Honeypot — visually removed, invisible to humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dom-black);
  color: rgba(248, 238, 226, 0.7);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline-dark);
}

.footer__logo img {
  width: 180px;
  height: auto;
}

.footer__tagline {
  margin-top: 1rem;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 238, 226, 0.6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__link {
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(248, 238, 226, 0.7);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--dom-white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
}

.footer__phone {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Utility pages (thanks / 404)
   -------------------------------------------------------------------------- */
.page-solo {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: var(--space-section);
}

/* Flex parent shrink-wraps the container; force it back onto the site grid. */
.page-solo .container {
  width: 100%;
}

@media print {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.page-solo__crown {
  width: 3rem;
  height: auto;
  margin-bottom: 2rem;
}

.page-solo__title {
  font-size: var(--fs-display);
  line-height: 1.0;
  color: var(--dom-white);
  max-width: 14ch;
  margin-bottom: 1.75rem;
}

.page-solo__body {
  max-width: 34rem;
  color: rgba(248, 238, 226, 0.9);
  margin-bottom: 2.5rem;
}

.steps {
  counter-reset: step;
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-block: 1.25rem;
  border-top: 1px solid var(--hairline-dark);
}

.steps li:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}

.step__num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--dom-bone);
}

@supports not (-webkit-text-stroke: 1.5px black) {
  .step__num {
    color: var(--dom-bone);
  }
}

.step__title {
  font-size: 1.25rem;
  color: var(--dom-white);
  margin-bottom: 0.25rem;
}

.step__desc {
  color: rgba(248, 238, 226, 0.8);
}

.page-solo__standard {
  font-weight: 700;
  color: var(--dom-white);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.err-code {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--dom-bone);
  user-select: none;
  margin-bottom: 1rem;
}

@supports not (-webkit-text-stroke: 3px black) {
  .err-code {
    color: var(--dom-bone);
  }
}

/* --------------------------------------------------------------------------
   Motion — progressive enhancement only.
   Elements are fully visible without JS; html.js gates the hidden state.
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav {
    transition: none;
  }
}
