/* HIRISE website. Colours from the game: safety amber, platform hi-vis
   yellow, arcade cyan, Fear mode red, on a night-sky navy. Type: Barlow (OFL),
   the game's own typeface. */

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

:root {
  --bg: #0b1017;
  --bg-2: #111923;
  --panel: #16202c;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #eef1f4;
  --ink-dim: #a9b4c0;
  --ink-mute: #6f7c89;
  --amber: #f5a83d;
  --hivis: #ffcf1a;
  --cyan: #3fd4ea;
  --danger: #ff4b3e;
  --sky: #7cc4ff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--amber); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.02; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(40px, 6vw, 84px); text-transform: uppercase; }
h3 { font-size: 30px; text-transform: uppercase; }
h4 { font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); }
p { margin: 0 0 1em; color: var(--ink-dim); }
.hl { color: var(--hivis); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hivis); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.kicker::before { content: ""; display: inline-block; width: 28px; height: 3px; background: currentColor; vertical-align: middle; margin-right: 12px; transform: translateY(-2px); }
.kicker-danger { color: var(--danger); }
.kicker-cyan { color: var(--cyan); }

/* Buttons */
.btn {
  --c: var(--hivis);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 600 17px/1 "Barlow", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  background: var(--c);
  border: 2px solid var(--c);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 30px -12px rgba(255, 207, 26, 0.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(255, 207, 26, 0.8); }
.btn .ico { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--ink); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.btn-store.is-soon { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: var(--ink); box-shadow: none; cursor: default; }
.btn-store.is-soon:hover { transform: none; }
.btn-store .soon { font-size: 0.72em; opacity: 0.7; letter-spacing: 0.12em; margin-left: 2px; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 16, 23, 0.86); backdrop-filter: blur(12px); padding-top: 10px; padding-bottom: 10px; border-color: var(--line); }
.nav-logo img { width: 120px; height: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--hivis); }
.nav-cta { display: flex; gap: 8px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }

/* Altimeter */
.alti { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.alti.is-on { opacity: 1; }
.alti-track { width: 4px; height: 42vh; background: rgba(255, 255, 255, 0.12); border-radius: 4px; position: relative; overflow: hidden; }
.alti-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(to top, var(--amber), var(--hivis)); border-radius: 4px; }
.alti-read { display: flex; align-items: baseline; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.1em; }
.alti-label { font-size: 11px; color: var(--ink-mute); }
.alti-num { font-size: 20px; color: var(--hivis); }
.alti-unit { font-size: 12px; color: var(--ink-dim); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; background: #0b1017 url("../media/hero.jpg") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(11, 16, 23, 0.05) 0%, rgba(11, 16, 23, 0.55) 70%, rgba(11, 16, 23, 0.9) 100%),
    linear-gradient(to bottom, rgba(11, 16, 23, 0.55) 0%, rgba(11, 16, 23, 0) 25%, rgba(11, 16, 23, 0) 60%, var(--bg) 100%);
}
.hero-inner { text-align: center; padding: 120px var(--gutter) 90px; max-width: 1100px; }
.hero-logo { margin: 0 auto 10px; width: min(880px, 88vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }
.hero-logo img { width: 100%; height: auto; }
.hero-tag { font-size: clamp(28px, 4.2vw, 56px); font-weight: 600; text-transform: uppercase; color: var(--ink); letter-spacing: 0.02em; line-height: 1.05; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: #d9e1ea; max-width: 720px; margin: 0 auto 34px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 16px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; background: var(--hivis); border-radius: 2px; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Ticker */
.ticker { background: var(--hivis); color: #111; overflow: hidden; transform: rotate(-1.6deg); margin: -26px -20px 0; position: relative; z-index: 3; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }
.ticker-row { display: flex; align-items: center; gap: 26px; width: max-content; padding: 14px 0; animation: tick 38s linear infinite; }
.ticker span { font-weight: 600; font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 10px; height: 10px; background: #111; transform: rotate(45deg); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Stats */
.stats { max-width: var(--max); margin: 90px auto 40px; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat { border-left: 3px solid var(--amber); padding: 6px 0 6px 20px; }
.stat b { display: block; font-size: clamp(48px, 6vw, 86px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 0%, #c8d6e5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; }

/* Feature rows */
.feature { max-width: var(--max); margin: 0 auto; padding: 90px var(--gutter); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature-rev { grid-template-columns: 1fr 1.15fr; }
.feature-rev .feature-media { order: 2; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line); aspect-ratio: 16 / 9; background: var(--panel); }
.feature-media video, .feature-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.5); padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(4px); }
.tag-danger { background: rgba(160, 20, 12, 0.7); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--hivis); border-bottom: 3px solid var(--hivis); transform: rotate(-45deg); }

/* City */
.city { position: relative; padding: 130px var(--gutter); overflow: hidden; isolation: isolate; margin-top: 40px; }
.city-bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; z-index: -2; opacity: 0.35; transform: translateY(var(--para, 0px)); }
.city::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 16, 23, 0.7) 20%, rgba(11, 16, 23, 0.75) 80%, var(--bg) 100%); }
.city-inner { max-width: var(--max); margin: 0 auto; }
.city-inner > p { max-width: 720px; font-size: 20px; color: #cbd5df; }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.city-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line); }
.city-grid video, .city-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }
.city-grid video { cursor: default; }
.city-grid figcaption { padding: 14px 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; color: var(--ink); }

/* Fear */
.fear { background: radial-gradient(90% 70% at 70% 50%, #3a0c0a 0%, #150607 60%, #0b0507 100%); position: relative; overflow: hidden; }
.hazard { height: 22px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 22px, #111 22px 44px); opacity: 0.95; }
.fear-inner { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.fear h2 { font-size: clamp(56px, 9vw, 130px); color: #fff; text-shadow: 0 0 40px rgba(255, 60, 40, 0.45); animation: shake 5s ease-in-out infinite; }
@keyframes shake { 0%, 86%, 100% { transform: none; } 88% { transform: translate(-3px, 1px) rotate(-0.6deg); } 90% { transform: translate(3px, -1px) rotate(0.6deg); } 92% { transform: translate(-2px, 2px) rotate(-0.3deg); } 94% { transform: translate(2px, 0) rotate(0.2deg); } }
.fear-lead { font-size: 24px; color: #fff; }
.fear-lead em { color: var(--hivis); font-style: normal; font-weight: 600; }
.fear .fine { font-size: 15px; color: #b99a98; }
.fear-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px rgba(255, 75, 62, 0.35), 0 40px 90px -30px rgba(255, 30, 20, 0.45); animation: sway 7s ease-in-out infinite; }
.fear-media video { width: 100%; height: 100%; object-fit: cover; }
@keyframes sway { 0%, 100% { transform: rotate(-0.8deg); } 50% { transform: rotate(0.8deg); } }

/* Arcade */
.arcade { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 70px; }
.arcade-head { max-width: 760px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: linear-gradient(180deg, #141f2b, #0f1720); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(63, 212, 234, 0.18), 0 30px 60px -30px rgba(0, 0, 0, 0.8); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(63, 212, 234, 0.5), 0 30px 70px -26px rgba(63, 212, 234, 0.35); }
.card-media { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card h3 { font-size: 32px; margin-bottom: 12px; }
.card h3 span { color: var(--cyan); }
.card p { font-size: 17px; }
.card-meta { margin: 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hivis); font-weight: 600; }

/* Drop */
.drop { position: relative; min-height: 88vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; margin: 60px 0; background: #0b1017 url("../media/loop_drop.jpg") center / cover no-repeat; }
.drop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.drop-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 16, 23, 0.92) 0%, rgba(11, 16, 23, 0.55) 45%, rgba(11, 16, 23, 0.05) 100%), linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.drop-inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.drop-inner h2 { font-size: clamp(52px, 8vw, 118px); }
.drop-inner p { max-width: 560px; font-size: 20px; color: #d3dbe4; }

/* Media */
.media { max-width: var(--max); margin: 0 auto; padding: 90px var(--gutter); }
.trailer-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.trailer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: brightness(0.75); }
.trailer-card:hover img { transform: scale(1.03); filter: brightness(0.9); }
.play { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: var(--hivis); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255, 207, 26, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5); transition: transform 0.25s ease; }
.play svg { width: 44px; height: 44px; fill: #111; margin-left: 6px; }
.trailer-card:hover .play { transform: scale(1.08); }
.trailer-label { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-weight: 600; font-size: 20px; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.shot { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--panel); aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.06); }

/* Comfort */
.comfort { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comfort-inner { max-width: var(--max); margin: 0 auto; padding: 90px var(--gutter); }
.comfort h2 { font-size: clamp(36px, 5vw, 64px); }
.comfort-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
.comfort-grid p { font-size: 16px; }

/* Platforms */
.platforms { position: relative; text-align: center; padding: 140px var(--gutter); overflow: hidden; background: radial-gradient(60% 70% at 50% 100%, rgba(245, 168, 61, 0.22) 0%, transparent 70%), linear-gradient(180deg, var(--bg) 0%, #121c29 100%); }
.platforms-logo { width: min(560px, 80vw); height: auto; margin: 0 auto 26px; filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.6)); }
.platforms h2 { font-size: clamp(30px, 4vw, 52px); }
.platforms p { margin-bottom: 30px; font-size: 19px; }
.platforms .studio { margin: 46px 0 0; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.platforms .studio b { color: var(--ink); font-weight: 600; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 50px var(--gutter) 60px; }
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot img { width: 110px; height: auto; margin-bottom: 16px; opacity: 0.9; }
.foot p { font-size: 14px; color: var(--ink-mute); margin: 0 0 6px; }
.foot .foot-studio { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 10px; }
.foot .foot-studio b { color: var(--ink); font-weight: 600; }
.foot .foot-links a { color: var(--ink-dim); }
.foot .foot-links a:hover { color: var(--ink); }

/* Viewer */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(4, 7, 11, 0.94); display: grid; place-items: center; padding: 60px 20px 20px; animation: fade 0.25s ease; }
.modal[hidden] { display: none; }
.modal-body { width: min(1400px, 100%); }
.modal-body video, .modal-body img, .modal-body iframe { width: 100%; max-height: calc(100vh - 100px); aspect-ratio: 16 / 9; object-fit: contain; border: 0; border-radius: 10px; background: #000; }
.modal-close { position: absolute; top: 12px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes fade { from { opacity: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-row, .fear h2, .fear-media, .hero-scroll span { animation: none; }
}

/* Tablet and phone */
@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.is-open { background: rgba(11, 16, 23, 0.97); flex-wrap: wrap; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; width: 100%; gap: 0; margin: 10px 0 0; order: 3; }
  .nav.is-open .nav-links a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .nav.is-open .nav-cta { display: flex; width: 100%; order: 4; padding: 12px 0 6px; }
  .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature, .fear-inner { grid-template-columns: 1fr; }
  .feature-rev { grid-template-columns: 1fr; }
  .feature-rev .feature-media { order: 0; }
  .cards { grid-template-columns: 1fr; max-width: 620px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .comfort-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .alti { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .city-grid, .comfort-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .ticker span { font-size: 16px; }
  .feature { padding-top: 60px; padding-bottom: 60px; }
  .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .play svg { width: 34px; height: 34px; }
  .trailer-label { font-size: 15px; bottom: 14px; }
}
