/* barNORTH Phase 1 preview. Throwaway review mock; tokens mirror the Figma brand file (blueprint names). */
/* Jost, self-hosted: one Latin variable file covering weights 400–700. SIL OFL 1.1, see ../fonts/OFL.txt. */
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --color-brand-primary: #FC0D05;        /* logo red: large type and graphics only */
  --color-brand-primary-hover: #D40A04;  /* text-safe red */
  --color-brand-dark: #000000;
  --color-brand-white: #FFFFFF;
  --color-brand-slate: #4A4A4A;
  --font-heading: "Jost", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --font-sans: "Jost", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--color-brand-dark); color: var(--color-brand-white); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--color-brand-white); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-brand-white); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Preview badge */
.preview-badge { position: fixed; left: 16px; top: 16px; z-index: 50; background: var(--color-brand-white); color: var(--color-brand-dark); font: 600 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-radius: 3px; }

/* Full-screen stage */
.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.stage__media { position: absolute; inset: 0; z-index: 0; }
.stage__media video, .stage__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage__content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 24px 32px; }

.logo { display: block; height: auto; }
.teaser { font-family: var(--font-heading); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 28px 0 0; font-size: clamp(32px, 4.6vw, 64px); max-width: 16ch; }
.subline { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 20px); max-width: 34ch; }

/* Footer */
.site-footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; padding: 20px 56px 32px; font-size: 14px; }
.site-footer a { text-underline-offset: 3px; }
.signup-toggle { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.signup { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.signup[hidden] { display: none; }
.signup label { flex-basis: 100%; font-size: 13px; }
.signup input { font: inherit; padding: 8px 10px; width: 240px; max-width: 100%; border: 1px solid #8a8a8a; background: #1c1c1c; color: #bdbdbd; border-radius: 2px; }
.signup button { font: 600 13px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 9px 14px; border: 1px solid #8a8a8a; background: #1c1c1c; color: #bdbdbd; border-radius: 2px; }
.signup input:disabled, .signup button:disabled { cursor: not-allowed; }

/* Pause control */
.pause-btn { position: absolute; right: 24px; top: 16px; z-index: 3; display: inline-flex; gap: 8px; align-items: center; background: rgba(0,0,0,.55); color: var(--color-brand-white); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; padding: 7px 14px; font: 600 13px var(--font-sans); cursor: pointer; }
.pause-btn[hidden] { display: none; }

/* Direction 1: First Crow, Last Call */
.d1 .stage__scrim { background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0,0,0,.55), rgba(0,0,0,.35) 70%, rgba(0,0,0,.3)), linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.8)); }
.d1 .logo { width: clamp(220px, 30vw, 420px); }
.d1 .teaser { max-width: 22ch; }

/* Direction 3: 150 Years in the Making */
.d3 .stage { flex-direction: row; flex-wrap: wrap; }
.d3 .photo { position: relative; flex: 0 0 58%; min-height: 100vh; }
.d3 .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.d3 .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0) 55%, #000 100%); }
.d3 .panel { position: relative; flex: 1 1 42%; display: flex; flex-direction: column; background: #000; min-height: 100vh; }
.d3 .stage__content { align-items: flex-start; text-align: left; padding: 96px 56px 32px; }
.d3 .logo { width: clamp(240px, 26vw, 400px); }
.d3 .rule { width: 80px; height: 4px; background: var(--color-brand-primary); margin-top: 32px; }
.d3 .teaser { max-width: 12ch; }
.d3 .site-footer { padding: 20px 56px 32px; flex-direction: column; align-items: flex-start; }
.d3 .pause-btn { right: 24px; }

/* Chooser */
.chooser { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 96px 24px 48px; text-align: center; }
.chooser .logo { width: clamp(200px, 24vw, 320px); }
.chooser h1 { font: 600 14px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; margin: 36px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 32px; width: 100%; justify-content: center; }
.card { display: block; text-decoration: none; text-align: left; border: 1px solid #333; background: #0d0d0d; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__eyebrow { font: 600 12px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #bdbdbd; }
.card__title { font: 700 26px/1.15 var(--font-heading); margin: 8px 0 8px; }
.card__text { font-size: 15px; color: #d6d6d6; margin: 0; }
.card:hover .card__title, .card:focus-visible .card__title { text-decoration: underline; text-decoration-color: var(--color-brand-primary); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.chooser .note { margin-top: 40px; font-size: 13px; color: #bdbdbd; max-width: 60ch; }

@media (max-width: 767px) {
  .site-footer { flex-direction: column; align-items: center; text-align: center; padding: 16px 24px 28px; gap: 12px; }
  .d1 .stage__content { justify-content: flex-start; padding-top: 18vh; }
  /* QA 5d: phone subline needed a darker scrim (AA 4.5:1) during the sunrise beat. */
  .d1 .stage__scrim { background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0,0,0,.7), rgba(0,0,0,.5) 70%, rgba(0,0,0,.45)), linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.8)); }
  .d3 .stage { flex-direction: column; }
  .d3 .photo { flex: 0 0 auto; min-height: 0; height: 45vh; }
  .d3 .photo::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, #000 100%); }
  .d3 .panel { min-height: 55vh; }
  .d3 .stage__content { align-items: center; text-align: center; padding: 8px 24px 24px; }
  .d3 .rule { margin-left: auto; margin-right: auto; }
  .d3 .site-footer { align-items: center; }
  .cards { grid-template-columns: 1fr; }
  .preview-badge { top: 12px; left: 12px; }
  .pause-btn, .d3 .pause-btn { position: fixed; top: 10px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pause-btn { display: none; }
}
