:root {
  color-scheme: dark;
  --black: #080808;
  --white: #f4f4f0;
  --grey: #c3c3bf;
  --line: rgba(244, 244, 240, 0.25);
}

* { box-sizing: border-box; }
html { background: var(--black); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100vw, calc(100dvh * 16 / 9));
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
}

.hero-image, .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background: url("assets/type2-original-truck-hero.png") center / cover no-repeat;
  transform: scale(1.008);
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,4,4,.91) 0%, rgba(4,4,4,.62) 38%, rgba(4,4,4,.08) 72%),
    linear-gradient(0deg, rgba(4,4,4,.76) 0%, transparent 42%);
}

.site-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header, .hero, .site-footer {
  width: min(100% - 64px, 1520px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; width: 182px; }
.brand img { display: block; width: 100%; height: auto; }

.status, .eyebrow, .site-footer {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(244,244,240,.78);
}

.status span { width: 6px; height: 6px; border-radius: 50%; background: var(--white); }

.hero {
  display: flex;
  align-items: flex-end;
  padding-block: clamp(74px, 12vh, 138px) 62px;
}

.hero-copy { max-width: 800px; }
.eyebrow { margin: 0 0 26px; color: var(--grey); }

h1 {
  max-width: 8.2ch;
  margin: 0;
  font-size: clamp(4rem, 7.3vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .84;
}

.intro {
  max-width: 510px;
  margin: 34px 0 0;
  color: rgba(244,244,240,.84);
  font-size: clamp(.98rem, 1.3vw, 1.14rem);
  line-height: 1.55;
}

.apply-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 13px 18px;
  border: 1px solid rgba(244,244,240,.62);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.apply-link:hover, .apply-link:focus-visible { background: var(--white); color: var(--black); }
.apply-link:active { transform: translateY(1px); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding-block: 21px;
  border-top: 1px solid var(--line);
  color: rgba(244,244,240,.72);
}

.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer p:last-child { text-align: right; }

.application {
  background: #eeeeea;
  color: #101010;
  padding: clamp(72px, 10vw, 150px) max(32px, calc((100vw - 1400px) / 2));
}

.application-inner {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  gap: clamp(70px, 10vw, 170px);
  max-width: 1400px;
  margin-inline: auto;
}

.section-label {
  margin: 0 0 28px;
  color: #555552;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h2 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.3rem, 6.2vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .88;
}

.application-heading > p:last-child {
  max-width: 440px;
  margin: 36px 0 0;
  color: #484846;
  font-size: 1rem;
  line-height: 1.6;
}

.application-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 22px;
  align-content: start;
}

.field { display: grid; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field label {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #777773;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #101010;
  font: inherit;
  font-size: 1rem;
}

input, select { min-height: 48px; }
textarea { resize: vertical; padding-block: 13px; }
input::placeholder, textarea::placeholder { color: #686864; opacity: 1; }
input:focus, select:focus, textarea:focus { border-bottom-color: #101010; box-shadow: 0 2px 0 #101010; }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: #3d3d3a;
  font-size: .82rem;
  line-height: 1.5;
}

.consent input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: #101010; }

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}

button {
  min-width: 210px;
  min-height: 52px;
  border: 1px solid #101010;
  border-radius: 0;
  background: #101010;
  color: #fff;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

button:hover, button:focus-visible { background: transparent; color: #101010; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .6; }
.submit-row p, .form-status { margin: 0; color: #555552; font-size: .74rem; line-height: 1.5; }
.form-status { padding: 14px 16px; border: 1px solid #777773; }

.privacy-notice {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  justify-content: space-between;
  gap: 48px;
  max-width: 1400px;
  margin: clamp(72px, 9vw, 130px) auto 0;
  padding-top: 22px;
  border-top: 1px solid #777773;
  color: #555552;
  font-size: .72rem;
  line-height: 1.65;
}

.privacy-notice p { margin: 0; }
.privacy-notice p:last-child { text-align: right; text-transform: uppercase; letter-spacing: .12em; }

@media (prefers-reduced-motion: no-preference) {
  .site-header, .hero-copy, .site-footer { animation: enter 760ms cubic-bezier(.16,1,.3,1) both; }
  .hero-copy { animation-delay: 90ms; }
  .site-footer { animation-delay: 160ms; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    min-height: 100dvh;
    aspect-ratio: auto;
  }

  .site-header, .hero, .site-footer { width: min(100% - 36px, 680px); }
  .site-header { min-height: 68px; }
  .brand { width: 150px; }
  .hero-image { background-position: 62% center; }
  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(4,4,4,.94) 0%, rgba(4,4,4,.49) 70%, rgba(4,4,4,.2) 100%),
      linear-gradient(90deg, rgba(4,4,4,.7), transparent);
  }
  .hero { padding-block: 72px 44px; }
  h1 { font-size: clamp(3.7rem, 16vw, 5.8rem); }
  .intro { max-width: 390px; margin-top: 28px; }
  .application-inner { grid-template-columns: 1fr; gap: 64px; }
  .privacy-notice { grid-template-columns: 1fr; gap: 24px; }
  .privacy-notice p:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .status { font-size: .56rem; }
  .site-footer { grid-template-columns: 1fr auto; gap: 16px; line-height: 1.45; }
  .site-footer p:nth-child(2) { display: none; }
  .site-footer p:last-child { max-width: 20ch; line-height: 1.45; }
  .application { padding-inline: 20px; }
  .application-form { grid-template-columns: 1fr; }
  .field, .field-wide { grid-column: 1; }
  .submit-row { display: grid; }
  button { width: 100%; }
}
