/* PEAK VR — built around PEAK's own key art: Darumadrop One (the game's font) for display type,
   Inter for UI text, sunset violet and peach from the key art, rounded glass panels. */

@font-face {
  font-family: 'Darumadrop One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/darumadrop-one.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/inter-variable.woff2) format('woff2');
}

:root {
  --screen-h: 100svh;
  --night: #140d27;
  --night-2: #1d1338;
  --ivory: #fff7ee;
  --peach: #ffb38c;
  --sunset: #ff8448;
  --lilac: #c9b8ff;
  --mint: #9be3c4;
  --text: rgba(255, 247, 238, 0.92);
  --dim: rgba(232, 224, 255, 0.68);
  --faint: rgba(232, 224, 255, 0.3);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --ok: #9be3a8;
  --error: #ff9d88;
  --display: 'Darumadrop One', 'Trebuchet MS', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--peach); color: var(--night); }

/* ---------- artwork ---------- */

.art-layer { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #3d2a7a; }
.art { display: block; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; }

/* ---------- shell ---------- */

.site { position: relative; isolation: isolate; min-height: var(--screen-h); display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
}
.topbar .right { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px); }
.topbar .eyebrow { margin: 0; color: rgba(255, 247, 238, 0.82); }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { display: block; width: 100px; height: auto; }
.brand .vr { font-size: 15px; }

.vr {
  display: inline-block;
  padding: 0.24em 0.38em 0.14em;
  border-radius: 0.3em;
  background: var(--sunset);
  color: var(--night);
  font: 400 1em/1 var(--display);
  letter-spacing: 0.03em;
  transform: rotate(-7deg);
  box-shadow: 0 0.09em 0 #b9471c, 0 0.4em 1em rgba(20, 10, 40, 0.35);
}

.eyebrow, .label {
  font: 600 11.5px/1.25 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
}
.eyebrow { margin: 0 0 18px; }
.label { color: var(--dim); }

.navlink { font: 500 14.5px/1 var(--sans); color: rgba(255, 247, 238, 0.82); text-decoration: none; transition: color 0.2s; }
.navlink:hover { color: var(--ivory); }

.footer {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 34px var(--gutter) 40px;
  /* A rule that lines up with the content, not the padded box. */
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { font-size: 14px; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ivory); }
.legal { margin: 0; max-width: 96ch; font-size: 12.5px; line-height: 1.7; color: rgba(232, 224, 255, 0.5); }

/* ---------- type ---------- */

.display {
  margin: 0 0 20px;
  font: 400 clamp(44px, 5.8vw, 84px)/0.98 var(--display);
  font-synthesis: none;
  color: var(--ivory);
  text-wrap: balance;
}
h2.display { font-size: clamp(38px, 4.6vw, 66px); }
.display em, .display b { font-style: normal; font-weight: 400; color: var(--peach); }
.lede { margin: 0; max-width: 40ch; font-size: 17px; color: var(--dim); }
.lede em { font-style: normal; color: var(--ivory); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ivory);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ivory); color: #1b1035; box-shadow: 0 14px 34px -14px rgba(255, 150, 100, 0.7); }
.btn-solid:hover { background: #ffe2cf; }
.btn-glass {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.18); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arrow { font-weight: 400; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- glass panels ---------- */

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(40, 27, 78, 0.74), rgba(22, 14, 44, 0.78));
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(8, 4, 20, 0.75);
}
.panel-section { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.panel-section:last-child { border-bottom: 0; }
.panel-actions { display: grid; gap: 14px; padding: 24px 28px 28px; }

.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .label { grid-column: 1; }
.row .value { grid-column: 1; font: 400 27px/1.08 var(--display); color: var(--ivory); }
.row .value.code { font: 600 24px/1.2 var(--sans); letter-spacing: 0.14em; }
.row .note { grid-column: 1; font-size: 14px; color: var(--dim); }
.row .icon {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 179, 140, 0.12);
  stroke: var(--peach);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fine { margin: 0; font-size: 13px; color: var(--dim); }
.fine a { color: var(--ivory); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.alert { margin: 0 0 14px; font-size: 14px; color: var(--error); }

/* ---------- link flow ---------- */

/* The art is only scenery here, so it's shaded harder on the headline side. */
.shade-link {
  background:
    linear-gradient(90deg, rgba(20, 13, 39, 0.92) 0%, rgba(20, 13, 39, 0.68) 46%, rgba(20, 13, 39, 0.42) 100%),
    linear-gradient(0deg, rgba(20, 13, 39, 0.92) 0%, rgba(20, 13, 39, 0) 38%);
}

.split {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 104px);
}
.split-text .display { max-width: 11ch; }

.code-label { display: block; margin-bottom: 12px; }
.code-input {
  width: 100%;
  height: 74px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  background: rgba(10, 6, 24, 0.5);
  color: var(--ivory);
  font: 600 30px/1 var(--sans);
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-input:focus { border-color: var(--peach); box-shadow: 0 0 0 4px rgba(255, 179, 140, 0.18); }
.code-input::placeholder { color: var(--faint); }

.account { display: flex; align-items: center; gap: 16px; }
.account img, .account .avatar { flex: none; width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.account .avatar { display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font: 400 28px/1 var(--display); color: var(--ivory); }
.account .name { font: 400 28px/1.05 var(--display); color: var(--ivory); }
.status { margin-top: 7px; font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.status.ok { color: var(--ok); }
.status.bad { color: var(--error); }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.steps .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 179, 140, 0.14); font: 400 18px/1 var(--display); color: var(--peach); }
.steps a { color: var(--ivory); text-underline-offset: 3px; }
.steps strong { font-weight: 600; color: var(--ivory); }

.device { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; }
.device .name { font: 400 24px/1.1 var(--display); color: var(--ivory); }
.device .meta { margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.device form { margin: 0; }

.done-mark { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 14px; background: rgba(155, 227, 168, 0.14); color: var(--ok); font: 600 26px/1 var(--sans); }

/* ---------- landing: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: var(--screen-h);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media .art-layer { z-index: 0; }
.hero-media .art { object-position: 50% 0%; }
.shade-hero {
  background:
    linear-gradient(180deg, rgba(20, 13, 39, 0.5) 0%, rgba(20, 13, 39, 0) 20%),
    linear-gradient(270deg, rgba(20, 13, 39, 0.6) 0%, rgba(20, 13, 39, 0) 40%),
    linear-gradient(0deg, var(--night) 0%, rgba(20, 13, 39, 0.72) 15%, rgba(20, 13, 39, 0) 44%);
}

.hero-title { justify-self: end; align-self: start; padding: clamp(8px, 2.4vh, 32px) var(--gutter) 0; text-align: center; }
.hero-logo { position: relative; width: clamp(240px, 27vw, 460px); margin: 0 0 22px; line-height: 0; }
.hero-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 28px rgba(36, 14, 84, 0.45)); }
.hero-logo .vr { position: absolute; right: -5%; bottom: -16%; font-size: clamp(20px, 2.3vw, 38px); }
.hero-title .eyebrow { margin: 0; color: var(--ivory); text-shadow: 0 1px 12px rgba(20, 10, 40, 0.6); }

.hero-foot { justify-self: end; max-width: calc(470px + 2 * var(--gutter)); padding: 0 var(--gutter) clamp(36px, 7vh, 76px); }
.tagline {
  margin: 0 0 14px;
  font: 400 clamp(34px, 3.3vw, 50px)/1 var(--display);
  font-synthesis: none;
  color: var(--ivory);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(20, 10, 40, 0.5);
}
.hero-lede { margin: 0 0 26px; max-width: 42ch; font-size: 16.5px; color: rgba(255, 247, 238, 0.82); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- landing: sections ---------- */

.landing {
  background:
    radial-gradient(55% 32% at 85% 12%, rgba(125, 92, 255, 0.14), transparent 70%),
    radial-gradient(45% 26% at 8% 52%, rgba(255, 132, 72, 0.07), transparent 70%);
}

.section { position: relative; width: min(1240px, 100%); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head .display { max-width: 14ch; margin: 0; }
.section-head .lede { max-width: 36ch; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(125, 92, 255, 0.2), rgba(255, 255, 255, 0.03) 62%);
}
.card-step { display: flex; flex-direction: column; min-height: 320px; padding: 30px; }
.card-step .num { margin-bottom: auto; font: 400 clamp(64px, 6.2vw, 92px)/0.9 var(--display); color: var(--peach); }
.card-step:nth-child(2) .num { color: var(--lilac); }
.card-step:nth-child(3) .num { color: var(--mint); }
.card-step h3 { margin: 44px 0 10px; font: 400 30px/1.05 var(--display); color: var(--ivory); }
.card-step p { min-height: 4.8em; margin: 0; max-width: 32ch; font-size: 15px; color: var(--dim); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 232px); gap: 14px; }
.shot { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--night-2); }
.shot-lg { grid-column: span 2; grid-row: span 2; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot:hover img { transform: scale(1.045); }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(14, 8, 30, 0.72), rgba(14, 8, 30, 0) 46%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.shot figcaption { position: absolute; z-index: 1; left: 20px; bottom: 16px; display: flex; align-items: baseline; gap: 10px; font: 400 26px/1 var(--display); color: var(--ivory); }
.shot-lg figcaption { left: 28px; bottom: 24px; font-size: 40px; }
.shot .num { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; color: var(--peach); }

/* The scouts stand in the lower middle of this art, so the line sits in the sky above-left of them. */
.statement { position: relative; isolation: isolate; display: flex; align-items: flex-start; min-height: clamp(560px, 86vh, 860px); overflow: hidden; }
.statement .art { object-position: 50% 45%; }
.shade-statement {
  background:
    linear-gradient(90deg, rgba(20, 13, 39, 0.82) 0%, rgba(20, 13, 39, 0.5) 32%, rgba(20, 13, 39, 0) 58%),
    linear-gradient(180deg, var(--night) 0%, rgba(20, 13, 39, 0) 22%, rgba(20, 13, 39, 0) 80%, var(--night) 100%);
}
.statement-inner { width: min(1240px, 100%); margin: 0 auto; padding: clamp(96px, 14vh, 150px) var(--gutter) 96px; }
.statement .display { max-width: 15ch; margin: 0; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.06; }

.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: center; gap: clamp(36px, 7vw, 100px); }
.section.details { padding-top: clamp(72px, 10vw, 136px); }
.details .display { max-width: 13ch; }
.details .lede { margin-bottom: 30px; }

/* ---------- motion ---------- */

.reveal { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.delay-1 { animation-delay: 0.14s; }
.delay-2 { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .shot img, .btn, .btn .arrow { transition: none; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 880px) {
  .split, .details { grid-template-columns: 1fr; align-items: start; }
  .cards { grid-template-columns: 1fr; }
  .card-step { min-height: 0; }
  .card-step h3 { margin-top: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 32vw; }
  .shot:last-child { grid-column: span 2; }
  .shot figcaption { left: 14px; bottom: 12px; font-size: 22px; }
  .shot-lg figcaption { left: 18px; bottom: 16px; font-size: 30px; }
  .statement { align-items: flex-end; }
  .shade-statement { background: linear-gradient(0deg, var(--night) 0%, rgba(20, 13, 39, 0.75) 40%, rgba(20, 13, 39, 0) 70%), linear-gradient(180deg, var(--night) 0%, rgba(20, 13, 39, 0) 20%); }
}

/* Phones and portrait tablets: art on top, text below it. */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .hero { grid-template-rows: auto auto minmax(0, 1fr) auto; min-height: 0; }
  .hero-media { position: relative; grid-row: 1 / 4; grid-column: 1; height: min(122vw, 76svh); }
  .hero-media .art { object-position: 42% 50%; }
  .shade-hero {
    background:
      linear-gradient(180deg, rgba(20, 13, 39, 0.55) 0%, rgba(20, 13, 39, 0) 26%),
      linear-gradient(0deg, var(--night) 0%, rgba(20, 13, 39, 0.6) 16%, rgba(20, 13, 39, 0) 40%);
  }
  .hero > .topbar { grid-row: 1; grid-column: 1; }
  .hero-title { grid-row: 2; grid-column: 1; justify-self: center; padding-top: 4vw; }
  .hero-logo { width: min(68vw, 420px); }
  .hero-foot { grid-row: 4; grid-column: 1; justify-self: center; max-width: 560px; margin-top: -10vw; text-align: center; }
  .hero-foot .actions { justify-content: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
  .hide-sm { display: none; }
  .topbar { padding-top: 16px; padding-bottom: 16px; }
  .topbar .eyebrow { font-size: 10.5px; }
  .brand img { width: 84px; }
  .panel-section, .panel-actions, .row, .device, .steps li { padding-left: 22px; padding-right: 22px; }
  .actions .btn { flex: 1 1 100%; }
  .gallery { gap: 10px; }
}
