/* Project Utah — public site.
   Palette pulled from the cruiser livery: navy body, decal white, badge gold. */
:root {
  --navy: #0b1326;
  --navy-2: #132042;
  --paper: #f1eee7;
  --gold: #d9a937;
  --slate: #9aa4bd;
  --line: #22305a;
  --display: Anton, "Arial Narrow", Impact, sans-serif;
  --body: Barlow, "Segoe UI", system-ui, sans-serif;
  --measure: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--paper); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: .005em; margin: 0; }
h2 { font-size: clamp(38px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0 0 1em; max-width: var(--measure); }
.muted { color: var(--slate); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 6px; font: 600 17px/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e6b844; }
.btn-ghost { border-color: rgba(241,238,231,.55); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(241,238,231,.08); }

/* nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 18px 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--display); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: rgba(241,238,231,.85); }
.nav nav a:hover { color: #fff; }
.nav-staff { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; grid-template-rows: 1fr auto auto; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,19,38,.75) 0%, rgba(11,19,38,.05) 30%, rgba(11,19,38,.1) 55%, rgba(11,19,38,.96) 100%); }

/* the livery band — the one bold move on the page */
.livery { align-self: end; margin-bottom: 26px; }
.livery-band { position: relative; background: var(--paper); color: var(--navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%);
  width: min(980px, 94vw); padding: 22px 120px 22px 0; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  animation: decal .9s cubic-bezier(.2,.8,.2,1) .15s both; }
.livery-band::after { content: ""; position: absolute; left: 0; right: 70px; bottom: -0px; height: 7px; background: var(--gold); }
.livery-inner { display: flex; align-items: center; gap: 22px; padding-left: max(28px, calc((100vw - 1160px) / 2)); }
.livery-badge { width: 88px; height: 88px; flex: none; }
.hero h1 { font-size: clamp(56px, 9.5vw, 132px); line-height: .88; text-transform: uppercase; }
.hero h1 .small { display: block; font: 600 clamp(15px, 1.6vw, 20px)/1 "Barlow Condensed", var(--body); letter-spacing: .04em; color: #3b4766; margin-bottom: 8px; text-transform: none; }
.speed { position: absolute; right: 90px; top: 50%; transform: translateY(-50%); display: grid; gap: 7px; width: 26%; }
.speed i { height: 5px; background: linear-gradient(90deg, rgba(11,19,38,0), rgba(11,19,38,.22)); }
@keyframes decal { from { transform: translateX(-104%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .livery-band { animation: none; } }

.hero-copy { width: min(1160px, 100% - 48px); margin: 0 auto; padding-bottom: 56px; }
.lede { text-shadow: 0 1px 12px rgba(11,19,38,.8); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; max-width: 46ch; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.live { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-weight: 600; color: rgba(241,238,231,.9); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #4cc77a; box-shadow: 0 0 0 4px rgba(76,199,122,.2); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 110px 0 100px; }
.about h2 { margin-bottom: 22px; max-width: 12ch; }
.mosaic { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }

/* departments */
.departments { padding: 30px 0 110px; background: linear-gradient(var(--navy), var(--navy-2)); }
.departments > .wrap:first-child { margin-bottom: 40px; }
.section-lede { color: var(--slate); margin-top: 12px; }
.dept-photo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 48px; width: min(1240px, 100% - 48px); margin: 0 auto 64px; }
.dept-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }
.dept-photo.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.dept-photo.flip img { order: 2; }
.dept-photo h3 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 14px; }
.dept-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--line); padding-top: 40px; }
.dept-text h3 { margin-bottom: 10px; }
.dept-text p { color: rgba(241,238,231,.82); }

/* join */
.join { padding: 110px 0; }
.join h2 { margin-bottom: 40px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--gold); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 400 44px/1 var(--display); color: var(--gold); margin-bottom: 12px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { color: rgba(241,238,231,.82); font-size: 17px; }

/* rules */
.rules { background: var(--paper); color: var(--navy); padding: 100px 0; }
.rules-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px 56px; }
.rules h2 { grid-row: span 2; max-width: 11ch; }
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li { padding: 14px 0; border-bottom: 1px solid rgba(11,19,38,.14); font-size: 19px; font-weight: 500; }
.rules li:first-child { padding-top: 0; }
.rules .muted { color: #56607a; margin-top: 4px; }

/* footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { font-weight: 600; text-decoration: none; color: rgba(241,238,231,.85); }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.fine { flex-basis: 100%; color: var(--slate); font-size: 14px; margin: 0; }

/* responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-staff { margin-left: auto; }
  .about, .rules-grid { grid-template-columns: 1fr; }
  .about { padding: 80px 0; gap: 36px; }
  .dept-photo, .dept-photo.flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 52px; }
  .dept-photo.flip img { order: 0; }
  .dept-pair { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .rules h2 { grid-row: auto; }
  .livery-band { padding-right: 90px; }
  .speed { display: none; }
}
@media (max-width: 560px) {
  .hero-shade { background: linear-gradient(180deg, rgba(11,19,38,.7) 0%, rgba(11,19,38,.15) 25%, rgba(11,19,38,.55) 52%, rgba(11,19,38,.97) 72%); }
  body { font-size: 17px; }
  .nav { padding: 14px 16px; }
  .brand span { display: none; }
  .livery-badge { width: 56px; height: 56px; }
  .livery-inner { gap: 14px; padding-left: 18px; }
  .livery-band { padding: 16px 60px 16px 0; clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); }
  .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}
