/* Alpenglide - game page. Brand: Montserrat, ink on frost, logo blues. */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #171a20;
  --ink-soft: #4a5262;
  --paper: #f4f7fb;
  --frost: #e3ebf5;
  --rule: #cfd9e6;
  --blue-light: #51d5ff;
  --blue-mid: #45b3ff;
  --blue-deep: #3878ff;
  --night: #0d1830;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

/* Tracked caps, the in-game menu voice */
.caps {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ top bar --- */

.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: #fff;
}
.bar .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.bar .mark img { width: 44px; height: auto; }
.bar .mark span { font-weight: 700; letter-spacing: 0.14em; font-size: 0.95rem; }
.bar nav { display: flex; gap: 28px; }
.bar nav a { text-decoration: none; opacity: 0.85; }
.bar nav a:hover { opacity: 1; }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--night) url("img/hero.jpg") center 38% / cover no-repeat;
}
@media (max-width: 900px) { .hero { background-image: url("img/hero-1920.jpg"); background-position: 50% 30%; } }
/* The snowfield melts into the page: ink type sits on snow, not on a dark scrim */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,247,251,0) 40%, rgba(244,247,251,0.55) 60%, rgba(244,247,251,0.86) 80%, var(--paper) 100%);
}

.hero-copy {
  position: relative; z-index: 1;
  width: 100%;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
}

.wordmark {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.6rem, 8.4vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
  margin-right: -0.12em;
}
.wordmark .b { color: var(--blue-deep); }

.tagline { margin: 18px 0 0; color: var(--ink-soft); letter-spacing: 0.48em; }
.hero-lede { max-width: 30rem; margin: 22px 0 0; color: var(--ink); font-size: 1.05rem; }

.cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 26px;
  background: var(--ink); color: #fff;
  text-decoration: none;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.26em; text-transform: uppercase;
  border: 0; border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--blue-light); }

.quiet-link { color: var(--ink-soft); text-decoration: none; }
.quiet-link:hover { color: var(--blue-deep); }

/* Portrait (after the base hero rules so it wins): the shot is a fixed band at
   the top with the wordmark pinned to its foot, so the drop gets the whole
   screen; the lede and CTA follow on the snow below instead of pushing the
   title up into the sky. */
@media (max-aspect-ratio: 4/5) {
  .hero {
    --band: 84svh;
    display: block; min-height: 0;
    background-color: var(--paper); background-size: auto var(--band); background-position: 50% 0;
    padding-top: calc(var(--band) - 112px);
  }
  .hero::after { background: linear-gradient(180deg, rgba(244,247,251,0) calc(var(--band) - 330px), rgba(244,247,251,0.75) calc(var(--band) - 150px), var(--paper) calc(var(--band) - 16px)); }
  .hero-lede { margin-top: 36px; }
  .hero-copy { padding-bottom: 0; }  /* the next .section's top padding is the gap */
}

@media (max-width: 760px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .cta { align-items: flex-start; }
  .bar nav a.hide-sm { display: none; }
}

/* ------------------------------------------------------- the altimeter --- */
/* The page is a descent: a thin rail on the right reads altitude as you scroll */

.alt {
  position: fixed; right: 22px; top: 50%; z-index: 4;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
  mix-blend-mode: difference; color: #fff;
}
.alt .track { position: relative; width: 1px; height: 180px; background: currentColor; opacity: 0.5; }
.alt .track::before, .alt .track::after { content: ""; position: absolute; right: 0; width: 9px; height: 1px; background: currentColor; }
.alt .track::before { top: 0; } .alt .track::after { bottom: 0; }
.alt .pip { position: absolute; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; top: 0; }
.alt .read { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 900px) { .alt { display: none; } }

/* ------------------------------------------------------------ sections --- */

.section { padding: clamp(72px, 12vw, 150px) var(--gutter); }

.eyebrow { display: flex; align-items: center; gap: 16px; color: var(--blue-deep); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, rgba(81,213,255,0), var(--blue-light) 40%, var(--blue-mid)); }

h2 {
  margin: 0 0 30px;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 16ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }

.copy { max-width: var(--measure); }
.copy em { color: var(--ink-soft); }

/* Footage: real game captures at native size, framed like a viewfinder */
figure { margin: 0; }
.clip { position: relative; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--frost); }
.clip::before, .clip::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--ink); pointer-events: none; }
.clip::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.clip::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
figcaption { margin-top: 18px; color: var(--ink-soft); }

/* Feature rows: term + line, hairline-ruled, no icon cards */
.rows { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rows b { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; padding-top: 3px; }
@media (max-width: 520px) { .rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Full-bleed photo bands */
.band { height: clamp(320px, 62vh, 720px); background: center / cover no-repeat; }
.band.vista { background-image: url("img/vista.jpg"); background-position: center 30%; }

/* ---------------------------------------------------------- the daily --- */

.daily { background: var(--night); color: #e8f0fb; }
.daily .eyebrow { color: var(--blue-light); }
.daily h2 { color: #fff; }
.daily .rows { border-color: rgba(255,255,255,0.14); }
.daily .rows li { border-color: rgba(255,255,255,0.14); }

.clock { border-left: 2px solid var(--blue-light); padding: 6px 0 6px 26px; }
.clock .label { color: #9fb3cf; }
.clock .time { font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 10px 0 6px; color: #fff; }
.clock .day { color: #9fb3cf; }

.achievements { max-width: 1232px; margin: clamp(56px, 8vw, 96px) auto 0; }
.achievements img { width: 100%; height: auto; }
.achievements p { margin-top: 14px; color: #9fb3cf; text-align: center; }

/* ------------------------------------------------------------ the calm --- */

.calm {
  position: relative;
  /* Right-anchored: as the window narrows the shot crops from the left, so
     Mote (49% across the shot) slides left with the copy's edge, never under it */
  background: #dfe7ee url("img/mist.jpg") 100% 50% / cover no-repeat;
  padding: clamp(96px, 16vw, 220px) var(--gutter);
}
/* Copy sits on the right; the veil fades in from that side so Mote stays clear */
.calm::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(244,247,251,0.86) 0%, rgba(244,247,251,0.6) 46%, rgba(244,247,251,0) 75%); }
/* Copy starts 60% across: Mote's right wingtip sits ~56% across the shot, so
   this clears her at any width without pinning the copy to the far edge */
/* ...and eases further right as the screen widens (60% at 1240px toward 66%
   on 2K+), continuously - no breakpoint, so it never jumps while resizing */
.calm .copy { position: relative; margin-left: clamp(60%, calc(60% + (100vw - 1240px) * 0.11), 66%); }
/* Too narrow for Mote and the copy side by side: the shot runs full width
   on top at its own 16:9, Mote in clear air, and the copy sits beneath it */
@media (max-width: 1200px) {
  .calm {
    background-color: var(--paper);
    background-size: 100% auto;
    background-position: 50% 0;
    padding-top: calc(56.25vw + clamp(48px, 7vw, 80px));
    padding-bottom: clamp(72px, 12vw, 120px);
  }
  .calm::before { inset: auto 0 0 0; height: calc(100% - 56.25vw + 2px); background: var(--paper); }
  /* The same white haze stays on the shot when the copy drops below it */
  .calm::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 56.25vw; pointer-events: none;
    background: linear-gradient(270deg, rgba(244,247,251,0.86) 0%, rgba(244,247,251,0.6) 46%, rgba(244,247,251,0) 75%); }
  .calm .copy { margin-left: 0; }
}

/* ------------------------------------------------------------ farewell --- */

.farewell {
  min-height: 92svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 0 var(--gutter) clamp(56px, 10vh, 110px);
  background: var(--night) url("img/canyon.jpg") center 42% / cover no-repeat;
  position: relative; color: #fff;
}
.farewell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,32,84,0) 45%, rgba(10,32,84,0.6) 78%, rgba(10,32,84,0.8) 100%); }
.farewell > * { position: relative; }
.farewell h2 { max-width: none; font-size: clamp(1.4rem, 3.4vw, 2.4rem); letter-spacing: 0.22em; margin-bottom: 34px; }

/* -------------------------------------------------------------- footer --- */

footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px;
  padding: 36px var(--gutter);
  color: var(--ink-soft); font-size: 0.85rem;
}
footer .by { display: flex; align-items: center; gap: 12px; text-decoration: none; }
footer .by img { width: 26px; height: auto; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--blue-deep); }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
