/* RAP Resources website: dark asphalt, hi-vis orange, line white. Archivo (expanded) headings, Inter body. */
@font-face { font-family: "Archivo"; src: url("/vendor/fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/vendor/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #0E1012; --bg-2: #15181B; --card: #1B1E22; --line: #2C3035; --ink: #F4F4F1; --muted: #A3A9AE; --orange: #F26A1B; --orange-2: #FF8F4D;
  --head: "Archivo", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #141619; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--head); font-stretch: 118%; font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 20px; font-stretch: 110%; font-weight: 800; line-height: 1.2; }
.eyebrow { margin: 0 0 14px; font: 600 13px/1 var(--body); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--orange); }
.lead { color: #D3D6D9; font-size: clamp(17px, 2vw, 20px); max-width: 640px; }
.small { font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 700 16px/1 var(--body);
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #141619; }
.btn-orange:hover { background: var(--orange-2); }
.btn-line { border-color: #4A4F55; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14, 16, 18, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-logo img { height: 30px; width: auto; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--orange-2); }
.nav .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
@media (max-width: 720px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; min-height: min(86vh, 760px);
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px) 0; overflow: hidden; }
.hero-text { padding-bottom: clamp(40px, 8vw, 96px); }
.hero h1 { margin-bottom: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-road { align-self: stretch; position: relative; min-height: 420px; overflow: hidden; }
.hero-road canvas { position: absolute; inset: 0; display: block; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero-road { height: 240px; min-height: 240px; margin: 0 -16px; } .hero-text { padding-bottom: 8px; } }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip div { padding: 22px clamp(16px, 4vw, 48px); display: grid; gap: 2px; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; }
.strip b { font-family: var(--head); font-stretch: 115%; font-weight: 850; font-size: 20px; }
.strip span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr; } .strip div { border-left: 0; border-top: 1px solid var(--line); } .strip div:first-child { border-top: 0; } }

.block { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.block-alt { max-width: none; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-alt > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.block-head { margin-bottom: 40px; display: grid; gap: 16px; }
.block-head .lead { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.card p { margin: 0; color: #C9CDD1; }
.steps { list-style: none; padding: 0; margin: 0 auto 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { display: grid; gap: 6px; padding: 22px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.steps b { font-family: var(--head); font-stretch: 118%; font-weight: 900; font-size: 24px; }
.steps span:last-child { color: #C9CDD1; }
.step-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #141619; font-weight: 800; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.block-form { max-width: 880px; }
.form-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.form-tabs button { font: 600 15px/1 var(--body); padding: 12px 16px; border-radius: 99px; border: 1px solid #4A4F55; background: transparent; color: var(--ink); cursor: pointer; }
.form-tabs button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: #141619; }
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 32px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.grid[hidden] { display: none; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #D3D6D9; }
input, select, textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: #0E1012; border: 1px solid #3A3F45; border-radius: 8px; padding: 11px 12px; min-height: 46px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: var(--orange); }
.wide { grid-column: 1 / -1; }
.trucks { border: 1px dashed #3A3F45; border-radius: 8px; padding: 12px; display: grid; gap: 10px; margin: 0; }
.trucks legend { font-size: 14px; font-weight: 600; padding: 0 6px; color: #D3D6D9; }
.truck-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.link { font: 600 14px/1 var(--body); color: var(--orange-2); background: none; border: 0; padding: 4px 0; cursor: pointer; justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-msg { margin: 0; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: #47CD89; }
.form-msg.bad { color: #F97066; }
.form .btn { justify-self: start; min-width: 160px; }

.foot { border-top: 1px solid var(--line); padding: 48px clamp(16px, 4vw, 48px); display: grid; gap: 20px; justify-items: start; }
.foot img { width: 240px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--orange-2); }

.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 20px; }
.page h2 { font-size: 22px; margin: 28px 0 8px; }
.page p, .page li { color: #D3D6D9; }

/* the RAP section: the pitch on the left, the three steps as a route on the right */
.rap-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rap-text { display: grid; gap: 18px; align-content: start; }
.rap-text .lead { margin: 0; }
.rap h2 { font-size: clamp(40px, 6vw, 72px); }
.hl { color: var(--orange); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #D3D6D9; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 4px; border-radius: 2px; background: var(--orange); }
.ticks b { color: var(--ink); }
.rap .cta { margin-top: 8px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.route li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 0 0 34px; position: relative; }
.route li:last-child { padding-bottom: 0; }
/* the lane line joining the steps */
.route li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 6px; width: 4px;
  background: repeating-linear-gradient(to bottom, var(--orange) 0 14px, transparent 14px 26px); opacity: .85; }
.route .step-n { width: 56px; height: 56px; font-size: 22px; font-family: var(--head); font-stretch: 118%; font-weight: 900; box-shadow: 0 0 0 6px rgba(242,106,27,.14); }
.route div { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.route b { font-family: var(--head); font-stretch: 118%; font-weight: 900; font-size: 24px; }
.route div span { color: #C9CDD1; }
@media (max-width: 900px) { .rap-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .route li { grid-template-columns: 44px 1fr; gap: 12px; } .route .step-n { width: 44px; height: 44px; font-size: 18px; } .route li:not(:last-child)::after { left: 21px; top: 48px; } }

/* the hero film: full width behind the text, darkened on the left so the words read */
.hero { position: relative; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.hero--video .hero-video { opacity: 1; }
.hero--video::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,16,18,.92) 0%, rgba(14,16,18,.75) 38%, rgba(14,16,18,.15) 70%, rgba(14,16,18,0) 100%), linear-gradient(0deg, rgba(14,16,18,.9) 0%, rgba(14,16,18,0) 30%); }
.hero--video .hero-text { position: relative; z-index: 2; }
.hero--video .hero-road { display: none; }
@media (max-width: 820px) { .hero--video { min-height: 78vh; align-items: end; } .hero-video { object-position: 62% 50%; }
  .hero--video::before { background: linear-gradient(0deg, rgba(14,16,18,.95) 0%, rgba(14,16,18,.7) 45%, rgba(14,16,18,.1) 80%); } }
