:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #10161d;
  --ink-dim: #4c5661;
  --grid: rgba(16, 22, 29, 0.07);
  --blue: #2f6fb0;
  --hazard-a: #ff8a00;
  --hazard-b: #14181c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1116;
    --surface: #141b22;
    --ink: #e9edf1;
    --ink-dim: #98a3ad;
    --grid: rgba(255, 255, 255, 0.06);
    --blue: #5b9bd9;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
}

/* hazard stripes */
.hazard {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--hazard-a) 0 16px,
    var(--hazard-b) 16px 32px
  );
}

main {
  position: relative;
  min-height: calc(100vh - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.content {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.text {
  flex: 1 1 340px;
  max-width: 460px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

h1 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 20px;
}

.lede {
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 38ch;
  margin-bottom: 32px;
}

/* progress gauge */
.gauge {
  position: relative;
  height: 10px;
  border: 1px solid var(--ink-dim);
  border-radius: 2px;
  overflow: hidden;
  max-width: 260px;
  background:
    repeating-linear-gradient(90deg, var(--ink-dim) 0 1px, transparent 1px 12px);
  background-size: 12px 100%;
  background-repeat: repeat-x;
  background-position: left center;
  opacity: 0.9;
}

.gauge-fill {
  position: absolute;
  inset: 0;
  width: 30%;
  background: var(--hazard-a);
  animation: build 3.2s ease-in-out infinite;
}

@keyframes build {
  0% { width: 6%; }
  50% { width: 78%; }
  100% { width: 6%; }
}

/* crane illustration */
.crane {
  flex: 1 1 280px;
  max-width: 320px;
  width: 100%;
  height: auto;
  overflow: visible;
}

.crane .ground,
.crane .mast line,
.crane .hook-rig line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.crane .mast rect {
  fill: var(--ink-dim);
}

.crane .flag {
  fill: var(--hazard-a);
  transform-origin: 96px 44px;
  animation: wave 2.4s ease-in-out infinite;
}

.crane .built rect {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 2;
}

.crane .hook-rig rect {
  fill: var(--hazard-a);
  stroke: var(--ink);
  stroke-width: 2;
}

.crane .hook-rig {
  animation: hoist 3.2s ease-in-out infinite;
  transform-box: fill-box;
}

@keyframes hoist {
  0% { transform: translateY(0); }
  50% { transform: translateY(-46px); }
  100% { transform: translateY(0); }
}

@keyframes wave {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-14deg); }
}

/* permit stamp */
.stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 72px;
  opacity: 0.55;
  animation: spin-slow 40s linear infinite;
}

.stamp svg {
  width: 100%;
  height: 100%;
}

.stamp circle {
  fill: none;
  stroke: var(--hazard-a);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

.stamp text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
  fill: var(--hazard-a);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gauge-fill,
  .crane .flag,
  .crane .hook-rig,
  .stamp {
    animation: none;
  }
  .gauge-fill { width: 40%; }
}

@media (max-width: 640px) {
  .content {
    justify-content: center;
    text-align: center;
  }
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .gauge {
    margin-left: auto;
    margin-right: auto;
  }
  .stamp {
    display: none;
  }
}
