:root {
  --paper: #f4f1ea;
  --ink: #1a1814;
  --muted: #4e4942;
  --navy: #1a2430;
  --navy-deep: #101820;
  --line: #d9d3c7;
  --card: #fffcf8;
  --brass: #8a7040;
  --danger: #7a261e;
  --ok-bg: #e7f3ec;
  --ok-ink: #0f3d24;
  --err-bg: #f8e9e6;
  --err-ink: #6d221b;
  --sans: "Liberation Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Liberation Serif", Georgia, "Times New Roman", Times, serif;
  --header: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--paper);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.stripe {
  height: 4px;
  background: var(--brass);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: var(--header);
  padding: 0.7rem 0;
}

.wordmark {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.wordmark span {
  font-weight: 500;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

nav a {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  color: var(--paper);
  background: var(--navy-deep);
  overflow: hidden;
}

.hero figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 48%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 24, 32, 0.18) 0%,
    rgba(16, 24, 32, 0.12) 36%,
    rgba(16, 24, 32, 0.55) 68%,
    rgba(16, 24, 32, 0.92) 100%
  );
  pointer-events: none;
}

.hero figcaption {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  margin: 0;
  max-width: min(18rem, calc(100% - 1.5rem));
  padding: 0.3rem 0.5rem;
  background: rgba(16, 24, 32, 0.88);
  color: var(--paper);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}

.hero figcaption a {
  color: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5.5rem 0 3.25rem;
}

.hero-copy h1,
.hero-copy .tagline,
.hero-copy .hero-actions {
  max-width: 38rem;
}

.hero-copy h1,
.hero-copy .tagline {
  text-shadow: 0 2px 16px rgba(16, 24, 32, 0.65);
}

h1,
h2,
legend {
  font-family: var(--sans);
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tagline {
  margin: 0.15rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-light,
button {
  background: var(--paper);
  color: var(--navy);
}

.btn-light:hover,
button:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.75);
}

.btn-ghost:hover {
  background: rgba(244, 241, 234, 0.12);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.band {
  padding: 4.5rem 0;
  scroll-margin-top: 5.5rem;
}

.about-grid,
.drivers-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.eyebrow,
.phone-label {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.prose p,
.drivers-grid p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.prose p:last-child,
.drivers-grid p:last-child {
  margin-bottom: 0;
}

.band-iron {
  background: var(--navy);
  color: var(--paper);
}

.band-iron h2,
.band-iron p {
  color: var(--paper);
}

.drivers-action {
  margin: 0.5rem 0 0;
}

.contact-grid .prose {
  color: var(--muted);
  max-width: 36rem;
}

.placeholder-tag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.08em;
  vertical-align: 0.1em;
}

.phone {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 3px solid var(--brass);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem 1.2rem 1.5rem;
  box-shadow: 0 18px 40px rgba(16, 24, 32, 0.06);
  scroll-margin-top: 5.5rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

legend {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.form-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.field {
  margin-bottom: 0.35rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #c9c2b4;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.25rem;
  margin: 0.3rem 0 0.45rem;
  color: var(--danger);
  font-size: 0.92rem;
}

.field-error:empty {
  margin-top: 0.15rem;
}

.form-status {
  margin: 0 0 1rem;
}

.form-status:not([data-state]) ,
.form-status[data-state=""] {
  display: none;
}

.form-status[data-state="success"],
.form-status[data-state="error"] {
  padding: 0.75rem 0.9rem;
  border-left: 4px solid transparent;
}

.form-status[data-state="success"] {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-left-color: var(--ok-ink);
}

.form-status[data-state="error"] {
  background: var(--err-bg);
  color: var(--err-ink);
  border-left-color: var(--err-ink);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-card {
  position: relative;
}

.form-card button {
  margin-top: 0.4rem;
  width: 100%;
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.form-card button:hover {
  background: var(--navy-deep);
}

.form-card button:focus-visible {
  outline-color: var(--paper);
}

noscript p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 1.6rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-credit {
  color: #d5dbe3;
  max-width: 36rem;
}

.site-footer a {
  color: #d5dbe3;
}

@media (min-width: 800px) {
  .wrap {
    width: min(68rem, calc(100% - 4rem));
  }

  .hero {
    min-height: 88vh;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }

  .drivers-grid {
    grid-template-columns: 1.4fr auto;
    gap: 2rem;
    align-items: center;
  }

  .drivers-action {
    margin: 0;
  }

  .contact-grid {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 3.5rem;
    align-items: start;
  }

  .form-card {
    padding: 1.8rem 1.7rem 1.7rem;
  }

  .form-card button {
    width: auto;
    min-width: 11rem;
  }
}

@media (max-width: 700px) {
  .hero figcaption {
    top: auto;
    right: auto;
    bottom: 0.65rem;
    left: 0.65rem;
    text-align: left;
  }

  .hero-copy {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.7rem;
  }

  .hero-copy {
    padding-top: 5rem;
  }
}

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