@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --forest: #1d5c41;
  --forest-deep: #123f2c;
  --sage: #8fae96;
  --amber: #fab445;
  --cream: #fefcf4;
  --ink: #1e2a24;
  --muted: #5c6b62;
  --line: #dde3da;
  --asphalt: #3b3e38;
  --steel: #4a4f4a;

  --horizon: 52%;
  --sign-w: min(calc(100vw - 40px), 620px);
  /* Where the gantry stands: 1 is the bottom of the screen, 0 the horizon. */
  --depth: 0.3;
  --road-half: calc((var(--sign-w) / 2 + 34px) / var(--depth));
}

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

html,
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Public Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

.view {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, 660px);
  overflow: hidden;
}

/* The road ahead, seen from the cab */

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0 0 calc(100% - var(--horizon)) 0;
  background: linear-gradient(to bottom, #6f9c8c 0%, #a9c1a4 38%, #e6d9a2 72%, #fbc667 100%);
}

.sun {
  position: absolute;
  top: var(--horizon);
  left: 74%;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -56%);
  background: radial-gradient(circle, #fff6d8 0 6.5%, rgba(255, 226, 150, 0.85) 7.2%, rgba(250, 180, 69, 0.38) 26%, rgba(250, 180, 69, 0) 66%);
}

.hills {
  position: absolute;
  left: 0;
  width: 100%;
  height: 16%;
  top: calc(var(--horizon) - 15.8%);
}

.hill-far {
  fill: #93b198;
}

.hill-near {
  fill: #6f9379;
}

.ground {
  position: absolute;
  inset: var(--horizon) 0 0 0;
  background: linear-gradient(to bottom, #7f9c6f 0%, #4d7a59 42%, #2f5f46 100%);
}

.road {
  position: absolute;
  top: var(--horizon);
  left: calc(50% - var(--road-half));
  width: calc(var(--road-half) * 2);
  height: calc(100% - var(--horizon));
}

.haze {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--horizon) - 7%);
  height: 15%;
  background: linear-gradient(to bottom, rgba(251, 198, 103, 0) 0%, rgba(251, 214, 140, 0.62) 46%, rgba(251, 198, 103, 0) 100%);
}

/* The overhead sign fades in once, then everything holds still */

.gantry {
  position: absolute;
  inset: 0;
  animation: arrive 0.8s ease-out both;
}

@keyframes arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sign {
  position: absolute;
  left: 50%;
  bottom: calc(100% - var(--horizon) + 14px);
  width: var(--sign-w);
  transform: translateX(-50%);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 6px;
  border-radius: 16px;
  background: var(--forest);
  box-shadow: 0 18px 34px -18px rgba(18, 63, 44, 0.75);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 3px solid #fff;
  border-radius: 11px;
  pointer-events: none;
  z-index: 2;
}

/* Reflective sheeting catches the headlights once, as you pull up */
.panel::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  animation: sheen 1.4s ease-out 0.5s both;
  z-index: 3;
}

@keyframes sheen {
  to {
    left: 120%;
  }
}

.sign-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3.6vw, 30px) clamp(22px, 4vw, 38px) clamp(14px, 2.4vw, 20px);
}

h1,
.destinations,
.exit-tab,
.soon {
  font-family: "Overpass", "Highway Gothic", "Arial Narrow", sans-serif;
}

h1 {
  color: #fff;
  font-size: clamp(50px, 12.4vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.destinations {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(16px, 3.7vw, 26px);
  font-weight: 600;
  white-space: nowrap;
}

.arrow {
  flex: none;
  width: clamp(54px, 13vw, 104px);
  height: auto;
  fill: #fff;
}

.soon {
  position: relative;
  margin: 0 3px 3px;
  padding: clamp(9px, 1.8vw, 13px) 16px clamp(6px, 1.4vw, 10px);
  border-radius: 0 0 9px 9px;
  background: var(--amber);
  color: #141a16;
  font-size: clamp(22px, 5.2vw, 36px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.exit-tab {
  position: absolute;
  right: 34px;
  bottom: calc(100% - 3px);
  padding: 7px 16px 5px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: var(--forest);
  box-shadow: 0 0 0 4px var(--forest);
  color: #fff;
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  clip-path: inset(-6px -6px 0 -6px);
}

.truss {
  position: absolute;
  left: calc(50% - var(--sign-w) / 2 - 34px);
  width: calc(var(--sign-w) + 68px);
  bottom: calc(100% - var(--horizon) + 74px);
  height: 40px;
  border-top: 5px solid var(--steel);
  border-bottom: 5px solid var(--steel);
  background: repeating-linear-gradient(60deg, transparent 0 13px, var(--steel) 13px 16px, transparent 16px 29px);
}

.post {
  position: absolute;
  width: 11px;
  top: calc(var(--horizon) - 130px);
  bottom: calc((100% - var(--horizon)) * (1 - var(--depth)));
  background: linear-gradient(to right, #6a6f68, var(--steel) 45%, #2f332f);
  border-radius: 2px 2px 0 0;
}

.post-left {
  left: calc(50% - var(--sign-w) / 2 - 39px);
}

.post-right {
  right: calc(50% - var(--sign-w) / 2 - 39px);
}

/* The dashboard */

.dash {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 3.6vw, 40px) clamp(20px, 5vw, 64px) 18px;
  border-radius: 28px 28px 0 0;
  background: var(--cream);
  box-shadow: 0 -1px 0 var(--line);
}

.dash-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  max-width: 1140px;
  margin: 0 auto;
}

h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--forest-deep);
  text-wrap: balance;
}

.dash-copy {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
}

.opens {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 600;
}

footer {
  max-width: 1140px;
  margin: clamp(18px, 2.4vw, 26px) auto 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  :root {
    --horizon: 44%;
  }

  .dash-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .truss {
    bottom: calc(100% - var(--horizon) + 48px);
    height: 30px;
  }

  .post {
    top: calc(var(--horizon) - 96px);
    width: 8px;
  }

  .post-left {
    left: calc(50% - var(--sign-w) / 2 - 18px);
  }

  .post-right {
    right: calc(50% - var(--sign-w) / 2 - 18px);
  }

  .exit-tab {
    right: 22px;
    padding: 6px 12px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gantry,
  .panel::after {
    animation: none;
  }
}
