/* I Need Snow Mow — coming soon
   Tokens come from the brand book (v1.0, Sept 2026). Frost and Turf are equals:
   they appear only on the season chip, and only one at a time. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1E2A;
  --ivory: #F5F2EB;
  --frost: #1C6DAE;
  --ice: #CBE3F6;
  --turf: #27793F;
  --sod: #D3E9CF;

  --ivory-85: rgba(245, 242, 235, 0.85);
  --ivory-70: rgba(245, 242, 235, 0.70);
  --ivory-14: rgba(245, 242, 235, 0.14);

  --font-display: "Bricolage Grotesque", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(20px, 4vw, 56px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ivory);
  background: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--ice); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
  border-radius: 6px;
}

img, svg, video { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* JS on, intro not yet started: keep the entrance elements hidden so a late GSAP load cannot flash them. */
.has-js:not(.is-ready) .hero__logo,
.has-js:not(.is-ready) .hero__title,
.has-js:not(.is-ready) .hero__sub,
.has-js:not(.is-ready) .season,
.has-js:not(.is-ready) .credits { visibility: hidden; }

/* ---------- Stage ---------- */

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}

.stage__media {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
}

.stage__poster,
.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stage__video {
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.video-live .stage__video { opacity: 1; }

/* Quiet, dark area behind the lockup (brand rule for photo grounds), plus a foot for the credits. */
.stage__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, rgba(14, 30, 42, 0.62) 0%, rgba(14, 30, 42, 0.30) 55%, rgba(14, 30, 42, 0) 100%),
    linear-gradient(to bottom, rgba(14, 30, 42, 0.42) 0%, rgba(14, 30, 42, 0.10) 28%, rgba(14, 30, 42, 0.12) 62%, rgba(14, 30, 42, 0.78) 100%);
}

/* ---------- Top: season chip ---------- */

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(var(--gutter) * 0.6 + var(--safe-top)) calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
}

.season {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 15px 0 9px;
  border-radius: 999px;
  background: var(--turf);
  color: #fff;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(14, 30, 42, 0.7);
  transition: background-color 700ms var(--ease-in-out);
  user-select: none;
  -webkit-user-select: none;
}
.is-winter .season { background: var(--frost); }

.season__icons {
  position: relative;
  width: 22px;
  height: 22px;
}
.season__icon {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
}
.season__icon--snow { opacity: 0; transform: scale(0.85) rotate(-20deg); }
.is-winter .season__icon--snow { opacity: 1; transform: none; }
.is-winter .season__icon--mow { opacity: 0; transform: scale(0.85); }

.season__label {
  position: relative;
  display: inline-block;
  width: 5.9em;
  height: 1em;
  overflow: hidden;
}
.season__word {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out);
}
.season__word--winter { transform: translateY(120%); opacity: 0; }
.is-winter .season__word--winter { transform: none; opacity: 1; }
.is-winter .season__word--summer { transform: translateY(-120%); opacity: 0; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: clamp(24px, 5vh, 56px) var(--gutter);
}

.hero__logo {
  --logo-w: clamp(230px, 44vw, 540px);
  width: var(--logo-w);
  /* Brand clear space: half a badge width (badge = 120/476 of the lockup). */
  margin: 0 0 calc(var(--logo-w) * 0.126);
}
.hero__logo img {
  width: 100%;
  height: auto;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ivory);
}

.hero__sub {
  margin: clamp(14px, 2vh, 20px) 0 0;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.375rem);
  line-height: 1.45;
  color: var(--ivory-85);
  text-wrap: balance;
}

/* ---------- Credits ---------- */

.credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  padding: 18px calc(var(--gutter) + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
  border-top: 1px solid var(--ivory-14);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ivory-85);
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.credit:active { transform: scale(0.97); }

.credit__text { font-weight: 500; }

.credit__name {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  transition: text-decoration-color 200ms ease, text-underline-offset 200ms var(--ease-out);
}

.credit__logo { width: auto; flex: none; }
.credit__logo--716 { height: 40px; }
.credit__logo--calibre { height: 24px; }

.credit__heart {
  display: inline-block;
  vertical-align: -1px;
  color: #ff6b6b;
}

@media (hover: hover) and (pointer: fine) {
  .credit:hover { color: var(--ivory); }
  .credit:hover .credit__name {
    text-decoration-color: var(--ivory);
    text-underline-offset: 0.3em;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .hero__logo { --logo-w: clamp(220px, 68vw, 340px); }
  .credits {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 12.5px;
    padding-top: 12px;
  }
  .credit { min-height: 40px; }
  .credit__logo--716 { height: 34px; }
  .credit__logo--calibre { height: 20px; }
}

@media (max-width: 420px) {
  .credit { white-space: normal; justify-content: center; text-align: center; }
  .credit__text { max-width: 30ch; }
}

@media (max-width: 360px) {
  .credits { font-size: 11.5px; }
  .credit__logo--716 { height: 30px; }
  .credit__logo--calibre { height: 18px; }
}

/* Short landscape phones: keep the lockup and title inside the viewport. */
@media (max-height: 460px) {
  .hero__logo { --logo-w: clamp(180px, 30vw, 300px); }
  .hero__title { font-size: clamp(1.9rem, 5vh, 3rem); }
  .hero__sub { margin-top: 8px; font-size: 0.95rem; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .stage__video { display: none; }
  .season, .season__icon, .season__word, .credit, .credit__name { transition: none; }
}
