/* 830 Productions — guest uploads.
   Tokens and component rules follow the 830 Productions Design System:
   six blues, square corners, flat surfaces, Futura for display, Minion for text. */

:root {
  color-scheme: dark;

  /* Palette */
  --midnight: #031F33; --harbor: #123852; --studio: #315D7D;
  --steel: #5D89A7; --haze: #98BAD2; --ice: #E7F4FD; --white: #FFFFFF;
  --midnight-70: rgba(3, 31, 51, .70);
  --midnight-90: rgba(3, 31, 51, .90);
  --ice-06: rgba(231, 244, 253, .06);
  --border-on-dark: rgba(231, 244, 253, .18);
  --border-field: rgba(231, 244, 253, .25);
  --border-subtle: rgba(3, 31, 51, .12);

  /* Type */
  --font-display: "Futura PT", Futura, Jost, "Century Gothic", Arial, sans-serif;
  --font-text: "Minion Pro", "Crimson Pro", Minion, Georgia, serif;
  --tracking-label: .32em;
  --tracking-button: .22em;

  /* Space */
  --gutter: clamp(20px, 5vw, 64px);
  --content-max: 1200px;

  /* Motion: calm, cinematic. Fades and cuts, no bounce. */
  --ease-cut: cubic-bezier(.2, 0, 0, 1);
  --ease-fade: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 600ms; --dur-reel: 8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--midnight); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--midnight); color: var(--ice);
  font: 400 19px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--haze); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--white); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header: Midnight bar with the four-step stripe bar on its top edge ---------- */
.stripe-bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; }
.stripe-bar span:nth-child(1) { background: var(--harbor); }
.stripe-bar span:nth-child(2) { background: var(--studio); }
.stripe-bar span:nth-child(3) { background: var(--steel); }
.stripe-bar span:nth-child(4) { background: var(--haze); }

.site-header { background: var(--midnight); border-bottom: 1px solid var(--border-on-dark); z-index: 20; position: relative; }
.site-header .bar {
  max-width: var(--content-max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header .brand img { width: 120px; height: auto; } /* 120px is the minimum lockup size */
.site-nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 36px); }
.site-nav a, .site-nav span {
  font: 600 12px/1 var(--font-display); letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: var(--haze); padding: 8px 0 6px; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-fade);
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--ice); }
@media (min-width: 760px) { .site-header { position: sticky; top: 0; } }
@media (max-width: 420px) { .site-nav a, .site-nav span { font-size: 11px; letter-spacing: .2em; } }

/* ---------- Type roles ---------- */
.eyebrow {
  font: 600 13px/1.2 var(--font-display); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--haze); margin: 0 0 18px;
}
.title {
  font: 300 clamp(40px, 9vw, 72px)/1.04 var(--font-display); letter-spacing: -.01em;
  margin: 0; color: var(--white); text-wrap: balance;
}
.title.sm { font-size: clamp(34px, 6vw, 48px); }
.heading { font: 500 clamp(24px, 4vw, 32px)/1.15 var(--font-display); margin: 0; color: var(--white); }
.title-meta {
  font: 600 13px/1.2 var(--font-display); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--haze); margin: 18px 0 0;
}
.lede {
  font: italic 400 clamp(19px, 2.4vw, 21px)/1.45 var(--font-text);
  color: var(--haze); margin: 18px 0 0; max-width: 36ch; text-wrap: pretty;
}
.note { font: italic 400 16px/1.4 var(--font-text); color: var(--haze); margin: 0; }

.hero { padding: clamp(36px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.rise { animation: rise-in var(--dur-slow) var(--ease-cut) both; }
.rise.d1 { animation-delay: 80ms; } .rise.d2 { animation-delay: 160ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reel-spin { to { transform: rotate(360deg); } }

/* ---------- Buttons: square, tracked Futura Demi caps, 1px nudge on press ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border: 1px solid var(--ice); border-radius: 0;
  font: 600 12px/1 var(--font-display); letter-spacing: var(--tracking-button);
  text-transform: uppercase; white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--ice); color: var(--midnight);
  transition: background var(--dur-fast) var(--ease-fade), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { background: var(--white); border-color: var(--white); color: var(--midnight); }
.btn:active { transform: translateY(1px); }
.btn.lg { height: 60px; padding: 0 32px; font-size: 13px; }
.btn.outline { background: transparent; color: var(--white); border-color: rgba(231, 244, 253, .5); }
.btn.outline:hover { background: var(--ice); color: var(--midnight); border-color: var(--ice); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .btn-row.stack > .btn { flex: 1 1 100%; } }

svg.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label {
  font: 600 11px/1.2 var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--haze);
}
.field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 2px;
  border: 1px solid var(--border-field); background: var(--ice-06); color: var(--white);
  font: 400 18px/1.3 var(--font-text);
  transition: border-color var(--dur-fast);
}
.field input::placeholder { color: var(--haze); opacity: .75; font-style: italic; }
.field input:focus { border-color: var(--haze); outline: 2px solid rgba(152, 186, 210, .35); outline-offset: 0; }

/* ---------- Panels: flat, no shadow, no border ---------- */
.panel-harbor { background: var(--harbor); color: var(--white); }
.panel-ice { background: var(--ice); color: var(--midnight); }
.panel-ice .heading { color: var(--midnight); }
.panel-ice .btn { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.panel-ice .btn:hover { background: var(--harbor); border-color: var(--harbor); color: var(--white); }
.panel-ice .btn.outline { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.panel-ice .btn.outline:hover { background: var(--midnight); color: var(--white); }
.panel-ice :focus-visible { outline-color: var(--studio); }

/* ---------- Reel watermark: oversized, cropped off the edge, one step lighter than the ground ---------- */
.reel-watermark {
  position: fixed; right: -18vmin; bottom: -18vmin; width: 62vmin; opacity: .06;
  pointer-events: none; z-index: 0;
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-on-dark); margin-top: clamp(56px, 9vw, 96px);
  padding: 26px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  font: 600 11px/1.4 var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--steel);
}
.site-footer a { color: var(--haze); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .tagline {
  font: italic 400 17px/1.3 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--haze);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
