/* SCHMORDL — unsolicited transportation proposal */

:root {
  --asphalt: #10100e;
  --asphalt-2: #191814;
  --paper: #f1e6cf;
  --paper-2: #e4d6b8;
  --mist: #f6f2ea;
  --ink: #14120f;
  --muted: #6d675c;
  --yellow: #ffcc00;
  --yellow-deep: #e0b000;
  --green: #0f3d2e;
  --green-2: #165a43;
  --cone: #ff4d12;
  --stamp: #c23a22;
  --amber: #ffb000;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(20, 18, 15, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Overpass", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1180px;
  --header: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
  color-scheme: dark;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--mist);
  background: var(--asphalt);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

.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;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--asphalt);
}

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

.skip:focus {
  top: 1rem;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.65rem 1.1rem;
  background: #10100e;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--mist);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--asphalt);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 0.28rem;
  box-shadow: inset 0 0 0 1.5px #11100c;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -5px;
}

.nav-toggle-bar::after {
  top: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.78);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--yellow);
}

.seeking {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 204, 0, 0.55);
  background: rgba(255, 204, 0, 0.08);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.seeking-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cone);
  box-shadow: 0 0 0 0 rgba(255, 77, 18, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 77, 18, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 18, 0);
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 16, 14, 0.28), rgba(16, 16, 14, 0.78) 70%, var(--asphalt)),
    var(--hero-image) center / cover no-repeat;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 480px at 20% 80%, rgba(16, 16, 14, 0.55), transparent 55%),
    linear-gradient(90deg, rgba(16, 16, 14, 0.72), rgba(16, 16, 14, 0.2) 58%);
}

.hero-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.kicker span + span::before {
  content: "·";
  margin-right: 1rem;
  color: rgba(255, 204, 0, 0.55);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5.4rem, 18vw, 13.5rem);
  line-height: 0.78;
  letter-spacing: 0.03em;
  color: var(--mist);
  text-wrap: balance;
}

.hero-lede {
  max-width: 38rem;
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  font-weight: 500;
}

.hero-lede strong {
  color: var(--yellow);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--asphalt);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffe066;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(16, 16, 14, 0.35);
  color: var(--mist);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.dms {
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
  padding: 0.7rem 0.85rem 0.8rem;
  background: #070706;
  border: 7px solid #2b2a26;
  box-shadow: inset 0 0 0 2px #111, 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dms-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8478;
}

.dms-message {
  min-height: 1.4em;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 176, 0, 0.45);
  opacity: 0.35;
  transition: opacity 0.16s linear;
}

.dms-message.is-on {
  opacity: 1;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid var(--yellow);
  outline: 3px solid #11100c;
  box-shadow: var(--shadow);
}

.portrait-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 0.55rem 0.7rem;
  background: rgba(16, 16, 14, 0.82);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-caption b {
  color: var(--yellow);
  font-weight: 600;
}

/* Hazard + marquee */

.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    #11100c 0 14px,
    var(--yellow) 14px 28px
  );
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--asphalt-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.2rem;
  padding: 0.7rem 0;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--yellow);
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.section-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: 0.04em;
}

.lede {
  max-width: 42rem;
  font-size: 1.15rem;
}

/* Proposal */

.proposal {
  background: var(--paper);
  color: var(--ink);
}

.proposal .section-label {
  color: var(--green);
}

.proposal-sheet {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, #f7eedc, var(--paper));
  border: 1px solid #cbb992;
  box-shadow:
    0 1px 0 #fff8e8 inset,
    0 24px 50px rgba(60, 40, 10, 0.12);
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stamp {
  position: absolute;
  top: 46%;
  right: 1.4rem;
  rotate: -11deg;
  padding: 0.35rem 0.55rem;
  border: 3px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  opacity: 0.88;
  pointer-events: none;
}

.proposal h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
}

.proposal p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.title-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.6rem;
  border: 1.5px solid var(--ink);
}

.title-block div {
  padding: 0.7rem 0.85rem;
  border-right: 1.5px solid var(--ink);
}

.title-block div:last-child {
  border-right: 0;
}

.title-block dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.title-block dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.plea {
  margin: 1.4rem 0 0;
  padding: 1rem 1.1rem;
  background: #11100c;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.92);
}

.about-photo figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b7b1a4;
}

.about-copy p {
  margin: 0 0 1rem;
  max-width: 54ch;
}

.callout {
  margin: 1.3rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 204, 0, 0.06);
}

.callout strong {
  color: var(--yellow);
}

/* Corridor / capabilities */

.corridor {
  position: relative;
  isolation: isolate;
  background: #0c0c0a;
}

.corridor-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 10, 0.7), rgba(12, 12, 10, 0.78)),
    var(--bridge-image) center / cover no-repeat;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.8rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 28%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--yellow);
}

.spec-table td {
  color: #d8d2c6;
}

.spec-note {
  margin: 1.2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c9588;
}

/* Readiness */

.readiness {
  background: var(--asphalt-2);
}

.meters {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.meter {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1.4fr) auto;
  gap: 0.8rem 1rem;
  align-items: center;
}

.meter span:first-child {
  font-weight: 600;
}

.meter-bar {
  height: 0.7rem;
  background: #2a2823;
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.meter-bar.low i {
  background: var(--cone);
}

.meter b {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
}

.unknown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.4rem;
}

.unknown h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}

.unknown ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.unknown li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.unknown li::before {
  content: "▸ ";
  color: var(--yellow);
}

/* Award path */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
  counter-reset: step;
}

.step {
  padding: 1rem 0.95rem 1.15rem;
  background: var(--asphalt-2);
  border-top: 3px solid var(--yellow);
  min-height: 100%;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.08em;
  min-height: 2.5em;
  line-height: 1.15;
}

.step p {
  margin: 0;
  color: #cfc8ba;
  font-size: 0.95rem;
}

/* Bid */

.bid {
  background:
    linear-gradient(180deg, rgba(15, 61, 46, 0.92), rgba(10, 36, 28, 0.96)),
    var(--green);
}

.bid-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.bid .section-title {
  color: var(--yellow);
}

.bid-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  background: rgba(7, 16, 13, 0.55);
  border: 1px solid rgba(255, 204, 0, 0.28);
}

.bid-form label {
  display: grid;
  gap: 0.35rem;
}

.bid-form span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.bid-form input,
.bid-form textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 16, 14, 0.55);
  color: var(--mist);
  border-radius: 0;
}

.bid-form input:focus,
.bid-form textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

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

.form-note {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--yellow);
}

.contact-line {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.contact-line a {
  color: var(--yellow);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: #070706;
  border-top: 1px solid var(--line);
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 12rem);
  line-height: 0.78;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9c9588;
}

.footer-row a {
  color: var(--mist);
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--yellow);
}

/* 404 */

.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.lost h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.8;
  letter-spacing: 0.04em;
}

/* Focus */

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

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .bid-grid,
  .unknown {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 320px);
  }

  .stamp {
    position: static;
    rotate: 0deg;
    display: inline-block;
    margin-bottom: 0.8rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    padding: 0.85rem 1.1rem 1.1rem;
    background: #10100e;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .title-block,
  .steps,
  .meter {
    grid-template-columns: 1fr;
  }

  .title-block div {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }

  .title-block div:last-child {
    border-bottom: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .step h3 {
    min-height: 0;
  }

  .seeking {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }

  .hero-title {
    font-size: clamp(4.4rem, 22vw, 6.5rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding-bottom: 0.15rem;
    border-bottom: 0;
  }

  .spec-table td {
    padding-top: 0.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .hero-bg,
  .corridor-bg,
  .dms,
  .marquee,
  .hazard,
  .bid-form,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .proposal,
  .bid,
  .readiness,
  .corridor,
  .site-footer {
    background: white;
    color: black;
  }
}
