/* Beamhall site. Identity comes from the product: near-black with a teal cast, cyan line
   work, a little amber, and pure white kept for the beam and for what needs you. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #03080a;
  --deck: #07141a;
  --line: rgba(60, 240, 255, 0.2);
  --line-strong: rgba(60, 240, 255, 0.45);
  --cyan: #3cf0ff;
  --cobalt: #4a7dff;
  --amber: #ff8a1f;
  --beam: #ffffff;
  --text: #d6eff5;
  --mute: #93adb7;

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --measure: 58ch;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(0.9375rem, 0.9rem + 0.12vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.note { color: var(--mute); font-size: 0.8125rem; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 50;
  background: var(--beam); color: var(--ink);
  padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- actions */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

/* the primary action is the one white thing on the page besides the beam: it is what needs you */
.btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 22px;
  background: var(--beam); color: #02161b;
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background-color 0.15s;
}
.btn:hover { background: #c9fbff; }
.btn:focus-visible { outline-offset: 4px; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); font-size: 0.875rem;
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-color: var(--cyan); color: #fff; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding-inline: var(--gutter);
  background: rgba(3, 8, 10, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav-mark { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.nav-mark svg { height: 22px; width: auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(60, 110, 255, 0.55)); }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); font-size: 0.8125rem; text-decoration: none;
}
.nav-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }
.nav-menu { display: none; }

.lang { display: flex; border: 1px solid var(--line-strong); }
.lang button, .nav-menu {
  font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text); background: transparent; border: 0; cursor: pointer;
  min-width: 44px; min-height: 36px; padding: 0 10px;
}
.lang button[aria-pressed="true"] { background: var(--cyan); color: #02161b; }
.lang button:not([aria-pressed="true"]):hover { background: rgba(60, 240, 255, 0.12); }

@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav { gap: 10px; }
  .nav-mark svg { height: 18px; }
  .nav-menu { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 14px;
    background: rgba(3, 8, 10, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { min-height: 48px; font-size: 0.9375rem; border-top: 1px solid var(--line); }
}

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

.hero { position: relative; height: 440vh; }
.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.9s ease;
}
.hero-live .hero-canvas { opacity: 1; }

.hero-fallback { display: none; position: absolute; inset: 0; }
/* the still is rendered with the beam on the same axis as the wordmark, so anchor the crop there */
.hero-fallback img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
@media (max-width: 760px) { .hero-fallback img { object-position: 50% 50%; } }
.no-webgl .hero-fallback { display: block; }
.no-webgl .hero-canvas { display: none; }

/* legibility: darken only where the words sit, and close the stage into the page below */
.hero-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 64% 62% at 0% 100%, rgba(3, 8, 10, 0.95) 25%, rgba(3, 8, 10, 0) 72%),
    linear-gradient(to top, var(--ink), rgba(3, 8, 10, 0) 22%);
}

/* The big wordmark is drawn by the beam at the end of the scroll. Its own beam sits at
   49.573% of its width, so that point is what gets centred on the stage. */
.hero-mark {
  position: absolute; z-index: 2;
  top: clamp(76px, 13svh, 150px);
  left: 65%;
  width: min(58vw, 800px, 105svh); height: auto; /* the svh cap keeps it clear of the room on short, wide windows */
  transform: translateX(-49.573%);
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(46, 220, 230, 0.7)) drop-shadow(0 0 22px rgba(60, 110, 255, 0.6));
  pointer-events: none;
}
.hm-letters path { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
html:not(.js) .hm-letters path { stroke-dashoffset: 0; opacity: 1; }

.hero-copy, .hero-cap {
  position: absolute; z-index: 3;
  left: var(--gutter);
  bottom: clamp(36px, 9svh, 92px);
}
.hero-copy { width: min(600px, 46vw); }
.hero-copy h1, .hero-lede, .hero-cap { text-shadow: 0 0 6px var(--ink), 0 0 22px var(--ink), 0 0 44px var(--ink); }
.hero-copy h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.hero-lede { margin-top: 18px; max-width: 46ch; color: var(--text); }

.hero-cap {
  margin: 0; max-width: 15ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 0.98;
  opacity: 0; visibility: hidden;
  text-wrap: balance;
}

.hero-hint {
  position: absolute; z-index: 3;
  right: var(--gutter); bottom: clamp(36px, 9svh, 92px);
  margin: 0; color: var(--mute); font-size: 0.75rem;
  display: flex; align-items: center; gap: 12px;
}
.hero-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  animation: hint 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint { 0%, 100% { transform: scaleY(0.35); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 760px) {
  .hero { height: 400vh; }
  .hero-mark { left: 50%; width: 86vw; top: clamp(76px, 13svh, 120px); }
  .hero-copy, .hero-cap { left: var(--gutter); right: var(--gutter); bottom: 28px; width: auto; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11.5vw, 3.5rem); }
  .hero-lede { font-size: 0.875rem; line-height: 1.6; margin-top: 12px; }
  .hero-copy .actions { margin-top: 18px; }
  .hero-cap { max-width: 13ch; font-size: clamp(2.25rem, 10.5vw, 3rem); }
  .hero-hint { display: none; }
  .hero-stage::after {
    background: linear-gradient(to top, var(--ink) 6%, rgba(3, 8, 10, 0.86) 30%, rgba(3, 8, 10, 0) 50%);
  }
}

/* Reduced motion, no WebGL, no JavaScript: one composed frame, no long scroll, nothing moving. */
.still .hero, .no-webgl .hero { height: auto; }
.still .hero-stage, .no-webgl .hero-stage { position: relative; }
.still .hero-cap, .no-webgl .hero-cap,
.still .hero-hint, .no-webgl .hero-hint { display: none; }
.still .hero-canvas { transition: none; }
html:not(.js) .hero-cap, html:not(.js) .hero-hint { display: none; }
html:not(.js) .hero-stage { position: relative; }

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

.band { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.band:focus { outline: none; }

/* media frames share the chamfered corner of the app's own panels */
.frame {
  position: relative; margin: 0;
  background: var(--line-strong);
  padding: 1px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.frame > img, .frame > video, .frame > noscript > video {
  width: 100%; background: #000;
  clip-path: polygon(0 0, calc(100% - 17.5px) 0, 100% 17.5px, 100% 100%, 17.5px 100%, 0 calc(100% - 17.5px));
}

/* trailer */
.trailer-head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px clamp(24px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.trailer-frame video { aspect-ratio: 16 / 9; object-fit: contain; }
.trailer-frame.is-vertical { max-width: 420px; margin-inline: auto; }
.trailer-frame.is-vertical video { aspect-ratio: 9 / 16; }
@media (max-width: 760px) { .trailer-head { grid-template-columns: 1fr; } }

/* how it works: four beats hanging off one vertical line, the beam turned into a timeline */
.how-head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 900px; }
.lede { margin-top: 20px; font-size: 1.125em; line-height: 1.6; color: var(--text); max-width: 52ch; }
.beats { list-style: none; margin: 0; padding: 0; position: relative; }
.beats::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line-strong) 92%, rgba(60, 240, 255, 0));
}
.beat {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(28px, 5vw, 72px); align-items: center;
  padding-left: clamp(28px, 4vw, 56px);
}
.beat + .beat { margin-top: clamp(56px, 8vw, 112px); }
.beat::before {
  content: ""; position: absolute; left: -5px; top: 50%; width: 11px; height: 1px;
  background: var(--cyan);
}
.beat-text p { margin-top: 16px; color: var(--text); }
/* the beat about the beam is the one place the line turns white */
.beat-beam::before { background: var(--beam); width: 17px; left: -8px; box-shadow: 0 0 10px #fff; }
.beat-beam::after {
  content: ""; position: absolute; left: -1px; top: -40px; bottom: 50%; width: 3px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}
@media (max-width: 860px) {
  .beat { grid-template-columns: 1fr; align-items: start; }
  .beat::before { top: 0.9em; }
  .beat-beam::after { bottom: auto; height: 56px; top: calc(0.9em - 56px); }
}

/* under the office: what the server reads, as a plain two-column list */
.inside-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(28px, 5vw, 72px); align-items: start;
}
.shot-phone { max-width: 260px; margin-top: 36px; }
.caps { margin: 0; }
.caps > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 20px; padding-block: 16px; border-top: 1px solid var(--line); }
.caps > div:last-child { border-bottom: 1px solid var(--line); }
.caps dt { color: var(--cyan); font-size: 0.8125rem; padding-top: 0.15em; }
.caps dd { margin: 0; }
.inside-note { grid-column: 2; }
@media (max-width: 860px) {
  .inside-grid { grid-template-columns: 1fr; }
  .inside-note { grid-column: 1; }
  .shot-phone { max-width: 220px; }
}
@media (max-width: 520px) { .caps > div { grid-template-columns: 1fr; } }

/* status */
.status { background: var(--deck); border-block: 1px solid var(--line); }
.status-grid, .start-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(28px, 6vw, 96px); align-items: start;
}
.status h2, .start h2 { margin-bottom: 24px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--amber); font-size: 0.8125rem; padding-top: 0.1em; }
.facts dd { margin: 0; }
@media (max-width: 860px) { .status-grid, .start-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .facts > div { grid-template-columns: 1fr; } }

/* get started */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 3.2rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 10px;
  font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.2; color: var(--cyan);
}
pre {
  margin: 10px 0 0; padding: 12px 14px;
  background: #020507; border-left: 2px solid var(--cyan);
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5;
  overflow-x: auto; white-space: pre;
}
code { font-family: var(--mono); }

.placeholder {
  margin-top: 24px; padding: 14px 16px; max-width: var(--measure);
  border: 1px dashed rgba(255, 138, 31, 0.7);
  display: grid; gap: 4px;
}
.placeholder strong { color: var(--amber); font-weight: 700; }

/* footer */
.foot { padding-block: 48px 64px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 16px; }
.foot-mark { height: 26px; width: auto; overflow: visible; }
.foot a { text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.foot a:hover { text-decoration-color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .hero-hint::after { animation: none; }
  .btn { transition: none; }
}
