:root {
  color-scheme: light;
  /* Valley Christian Schools palette: PMS 540 navy, PMS 2905 Columbia, Cool Gray 8. */
  --navy: #003360;
  --columbia: #8cd2f4;
  --gray: #a7a9ac;
  --accent: var(--navy);
  --ink: var(--navy);
  --board: var(--columbia);
  --paper: #ffffff;
  --surface: #eef7fc;
  --muted: var(--navy);
  --on-dark: var(--columbia);
  --gutter: clamp(20px, 4.5vw, 72px);
  --gap: clamp(56px, 7vw, 112px);
  --step-small: .875rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --step-head: clamp(2.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Montserrat stands in for Gotham/Proxima Nova, Libre Bodoni for Filosofia; Arial and Times are the brand's own fallbacks. */
  --sans: "Montserrat", Arial, sans-serif;
  --serif: "Libre Bodoni", "Times New Roman", serif;
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: var(--step-body); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; transition: text-underline-offset .2s var(--ease); }
a:hover { text-underline-offset: .32em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

h1, h2, h3 { font-weight: 300; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--step-head); }

.wrap { width: 100%; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--paper); padding: 10px 14px; }
.lede { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -.012em; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }

/* The name, as wide as the page. site.js trims it to the exact content width. */

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; gap: 24px; background: var(--accent); color: #ffffff; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.button:hover { background: var(--columbia); color: var(--navy); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button:focus-visible { outline-color: var(--ink); }
.button.secondary { background: var(--paper); color: var(--ink); }
.button.secondary:hover { background: var(--surface); }

/* Header */
.site-header { background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.route-name, .brand { font-weight: 700; letter-spacing: -.015em; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav .button { min-height: 44px; padding: 8px 18px; }

/* Open white ground: the brand's expansive, airy look. */
.hero { background: var(--paper); padding-block: 24px 64px; }
.hero-layout { display: grid; gap: 36px; }
.hero-copy { align-self: center; }
.hero h1 { font-size: clamp(52px, 7vw, 104px); font-weight: 300; letter-spacing: -.045em; line-height: 1; }
.hero-copy .lede { margin-top: 30px; max-width: 28em; font-size: var(--step-body); line-height: 1.55; font-weight: 400; letter-spacing: 0; }
.hero-action { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }
.hero-live { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.panorama { min-width: 0; }
.panorama figcaption { padding-top: 12px; color: var(--muted); font-size: var(--step-small); }
.hero .crop--campus { --x: 360; --y: 150; --w: 780; --h: 480; }

/* Real captures, cropped past the app's controls with no image editing. */
.crop { position: relative; overflow: hidden; aspect-ratio: var(--w) / var(--h); background: var(--surface); }
.crop img { position: absolute; max-width: none; height: auto; width: calc(var(--iw) / var(--w) * 100%); left: calc(var(--x) / var(--w) * -100%); top: calc(var(--y) / var(--h) * -100%); }
.crop--campus { --iw: 1440; --x: 0; --y: 170; --w: 1180; --h: 480; }
.crop--buildings { --iw: 1440; --x: 0; --y: 150; --w: 1340; --h: 500; }
.crop--stadium { --iw: 1440; --x: 0; --y: 150; --w: 650; --h: 500; }
.crop--fehren { --iw: 1440; --x: 400; --y: 150; --w: 650; --h: 500; }
.crop--route { --iw: 1206; --x: 393; --y: 563; --w: 524; --h: 786; background: none; }

/* The sighting, set like a departure board */
.board { background: var(--board); color: var(--ink); isolation: isolate; }
.board-grid { display: grid; gap: 40px; }
.board-copy { padding-block: var(--gap); }
.board h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.015em; }
/* The serif of the division wordmarks, set as the departure board. */
.board-time { margin-top: 20px; font-family: var(--serif); font-size: 10vw; font-weight: 400; line-height: .95; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.board-copy .lede { margin-top: 20px; }
.facts { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; letter-spacing: -.01em; }
.board-note { margin-top: clamp(28px, 3vw, 40px); max-width: 38em; color: var(--muted); }
.board-note a { color: var(--ink); white-space: nowrap; }
/* The capture's dark ground drops out, so the route stands directly on the field. */
.route { align-self: end; width: 72%; margin-left: auto; mix-blend-mode: multiply; }
.route figcaption { margin-bottom: 8px; font-size: var(--step-small); color: var(--muted); }

/* The five camera views */
.views-body { padding-block: var(--gap); }
.views { background: var(--paper); }
.views-head { display: grid; gap: 24px; }
.plate { margin-top: clamp(40px, 5vw, 72px); }
.plates { display: grid; gap: 40px; margin-top: 40px; }
.views figcaption { margin-top: 10px; font-size: var(--step-small); font-weight: 500; }

/* The close: the pilot waitlist */
.pilot { background: var(--surface); }
.pilot-body { display: grid; gap: 32px; padding-block: var(--gap); }
.pilot-head p { margin-top: 20px; max-width: 30em; }
.pilot-form { max-width: 36em; }
.pilot-form label { display: block; font-size: var(--step-small); font-weight: 600; }
.pilot-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pilot-row input { flex: 1 1 16em; min-width: 0; min-height: 52px; padding: 12px 16px; border: 2px solid var(--navy); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.pilot-row .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.pilot-row .button:disabled { opacity: .6; cursor: progress; transform: none; }
.pilot-status { min-height: 1.5em; margin-top: 16px; font-weight: 600; }
.pilot-note { margin-top: 8px; font-size: var(--step-small); }
.signin-form { margin-top: clamp(32px, 4vw, 48px); }
/* The honeypot: off-screen for people, still filled in by form bots. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: #ffffff; padding-block: clamp(24px, 4vw, 56px) 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 40px); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; }
.credits { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* Support and privacy */
.doc-head { padding-top: 32px; padding-bottom: clamp(40px, 6vw, 88px); background: var(--paper); }
.doc-head h1 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; letter-spacing: -.045em; }
.doc-head .lede { max-width: 34em; margin-top: clamp(24px, 3vw, 40px); }
.doc-head .small { margin-top: 12px; }
.doc-head .muted { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.doc { padding-block: clamp(32px, 5vw, 72px) var(--gap); }
.doc section { padding-block: clamp(28px, 3.4vw, 48px); scroll-margin-top: 16px; }
.doc h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.08; }
.doc section > :not(h2) { max-width: 40em; }
.doc section > h2 + *, .doc p + p, .doc p + ul, .doc ul + p, .doc p + table, .doc table + p { margin-top: 14px; }
.doc section > h3 { margin-top: 24px; font-size: var(--step-body); letter-spacing: -.01em; line-height: 1.3; }
.doc section > h3 + * { margin-top: 4px; }
.doc ul { padding-left: 1.1em; list-style: disc; }
.doc li { margin-top: 6px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; background: var(--surface); padding: 1px 5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.doc th, .doc td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; }
.doc tbody tr:nth-child(odd) { background: var(--surface); }
.doc tbody th, .doc thead th { padding-left: 12px; }
.doc tbody th { width: 34%; font-weight: 700; }
.doc thead th { font-size: var(--step-small); font-weight: 700; }

@media (min-width: 900px) {
  .hero-layout { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); }
  .hero { padding-block: 36px 80px; }

  .board-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
  .board-copy { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; column-gap: 72px; }
  .board-copy h2, .board-time, .board-copy .lede, .board-note { grid-column: 1; }
  .board-copy .facts { grid-column: 2; grid-row: 1 / span 4; align-content: center; margin-top: 0; }
  .board-time { font-size: min(7vw, 8.5rem); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .route { grid-column: 8 / -1; width: 100%; padding-top: var(--gutter); }

  .views-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .views-head h2 { grid-column: 1 / span 7; }
  .views-head p { grid-column: 8 / -1; }
  .plates { grid-template-columns: 7fr 5fr; gap: 24px; }
  .pilot-body { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; column-gap: 24px; }
  .pilot-head { grid-column: 1 / span 6; }
  .pilot-form { grid-column: 7 / -1; }


  .doc section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .doc section > h2 { grid-column: 1 / span 5; grid-row: 1 / span 40; align-self: start; }
  .doc section > :not(h2) { grid-column: 6 / -1; }
  .doc section > h2 + * { margin-top: 0; }
}

@media (max-width: 680px) {
  .crop--campus { --x: 440; --y: 150; --w: 500; --h: 500; }
  .crop--buildings { --x: 400; --y: 150; --w: 600; --h: 500; }
  .hero-action .button { width: auto; }
  .hero .crop--campus { --x: 440; --y: 150; --w: 500; --h: 400; }
  .site-header .wrap { min-height: 76px; }
  .site-nav a { font-size: 14px; }
  .site-nav { gap: 16px; }
  .site-nav { gap: 12px; }
  .doc tbody th { width: 38%; }
}

/* Motion: transform and opacity only, and none of it hides anything without site.js. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy, .panorama { animation: rise .9s var(--ease) both; }
  .hero-copy { animation-delay: .08s; }
  .panorama { animation-delay: .16s; }
  .panorama img { animation: settle 2.4s var(--ease) both; transform-origin: 62% 60%; }
  .rises [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms); }
  .rises [data-rise].risen { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .plate img { animation: drift-in linear both; animation-timeline: view(); transform-origin: 50% 50%; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { transform: scale(1.07); } }
@keyframes drift-in { from { transform: scale(1.1); } to { transform: scale(1); } }

.footer-name { font-size: 24px; font-weight: 700; margin: 0 0 24px; }

/* BEI endorsement. The lockup slot takes approved Marketing Portal artwork only (reverse/white version on navy). */
.endorse { margin-top: clamp(32px, 4vw, 56px); max-width: 40em; }
.endorse img { display: block; height: 56px; width: auto; margin-bottom: 16px; }
.endorse p { font-size: var(--step-body); }
.endorse strong { font-weight: 600; }

.site-footer .credits { color: var(--on-dark); }
