/* Layout: a dark room. The hero sets the headline beside the aftermovie of a real
   night; the photos from that night follow, then a live corner-pin demo. Everything
   after is one quiet, left-aligned column on a 1080px measure, split by hairlines
   and captioned like labels on stage gear.
   One look on purpose: projected light only reads on a dark wall. */
:root {
  --room: #0c0d13;      /* the ground: a darkened venue, biased blue */
  --pit: #07080c;       /* the stage behind the planes */
  --wall: #151722;      /* raised surfaces */
  --edge: #2a2e40;      /* hairlines and borders */
  --lamp: #f1ede4;      /* text: warm lamp white */
  --dim: #a2a4b8;       /* secondary text */
  --beam: #ffb648;      /* reserved for buying: the buy buttons and the price card, nothing else */
  --beam-ink: #1a1204;  /* text on the accent */
  --cyan: #62d6e8;      /* demo light and focus rings */
  --pink: #ff6aa9;      /* demo light */

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  --step-3: clamp(2.9rem, 1.6rem + 6.4vw, 5.75rem);

  color-scheme: dark;
  background: var(--room);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--room);
  color: var(--lamp);
  font: 400 var(--step-0)/1.6 var(--body);
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

a { color: var(--lamp); text-decoration-color: var(--dim); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--cyan); }

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

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font: 600 var(--step-1)/1.25 var(--body); }
p { margin: 0; }

.tag {
  font: 400 var(--step--1)/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34em; color: var(--lamp); }
.note { color: var(--dim); font-size: 0.95rem; max-width: 62ch; }
.prose { max-width: 65ch; display: grid; gap: 1em; }

kbd {
  font: 400 var(--step--1)/1 var(--mono);
  display: inline-block;
  padding: 0.35em 0.55em;
  border: 1px solid var(--edge);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--wall);
  color: var(--lamp);
  white-space: nowrap;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--room) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lamp);
}
.mark svg { width: 26px; height: 26px; flex: none; }
.mark svg path { stroke: var(--cyan); }
.mark svg circle { fill: var(--lamp); }

.top nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.top nav a { font-size: 0.95rem; text-decoration: none; color: var(--dim); }
.top nav a:hover { color: var(--lamp); }

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

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.8em 1.25em;
  border-radius: 4px;
  background: var(--beam);
  color: var(--beam-ink);
  font: 600 1.05rem/1.2 var(--body);
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease;
}
.buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.buy:active { transform: translateY(0); }
.top nav a.buy { padding: 0.55em 0.95em; font-size: 0.95rem; color: var(--beam-ink); }

.quiet {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 0.2em;
  color: var(--lamp);
  font-weight: 600;
}

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

.hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 88px); display: grid; gap: clamp(28px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; column-gap: clamp(32px, 5vw, 72px); }
}
.hero-copy { display: grid; gap: 20px; }
.hero h1 { max-width: 13ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.cta .tag { flex-basis: 100%; }

.stage-block { display: grid; gap: 12px; }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--pit);
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.pin {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.pin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--lamp);
  background: var(--pit);
}
.pin:hover::after, .pin:focus-visible::after { border-color: var(--cyan); background: var(--cyan); }
.pin:active { cursor: grabbing; }
.pin:focus-visible { outline-offset: -4px; }

.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.stage-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5em 0.8em;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: var(--wall);
  color: var(--lamp);
  font: 400 0.95rem/1.2 var(--body);
  cursor: pointer;
}
.stage-bar button:hover { border-color: var(--dim); }
.stage-bar button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); }
.stage-bar kbd { border-bottom-width: 1px; padding: 0.25em 0.45em; }
.stage-status { margin-left: auto; }

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

.band { border-top: 1px solid var(--edge); padding-block: clamp(48px, 8vw, 96px); scroll-margin-top: 56px; }
.band > .wrap { display: grid; gap: clamp(28px, 4vw, 44px); }
.head { display: grid; gap: 12px; }
.head p:not(.tag) { max-width: 60ch; color: var(--dim); }

/* the aftermovie: upright, as it was filmed */
.reel { margin: 0; display: grid; gap: 10px; width: min(100%, 340px); justify-self: center; }
.reel-frame { position: relative; }
.reel video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--pit);
  border: 1px solid var(--edge);
  border-radius: 6px;
}
.reel-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 0.45em 0.75em;
  font: 400 var(--step--1)/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lamp);
  background: color-mix(in srgb, var(--pit) 72%, transparent);
  border: 1px solid var(--edge);
  border-radius: 4px;
  cursor: pointer;
}
.reel-toggle:hover { border-color: var(--dim); }
.reel figcaption, .shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--dim); font-size: 0.95rem; }
.reel figcaption strong, .shot figcaption strong { color: var(--lamp); font-weight: 600; }
@media (max-width: 859px) { .reel { justify-self: start; width: min(100%, 300px); } }

/* the night: real photos in their own proportions, never cropped */
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--pit);
}
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; align-items: start; }
.gallery .shot.tall { grid-column: span 2; }          /* three upright photos to a row */
.gallery .shot.wide { grid-column: span 3; }          /* two wide ones to a row */
.gallery .shot.tall img { aspect-ratio: 2 / 3; object-fit: cover; }
.gallery .shot.wide img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 859px) {
  .gallery .shot.tall { grid-column: span 3; }
  .gallery .shot.wide { grid-column: span 6; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .shot.tall, .gallery .shot.wide { grid-column: auto; }
}

/* six steps: a real sequence, so it is numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px clamp(24px, 4vw, 48px);
}
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 8px; min-width: 0; align-content: start; }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font: 800 2rem/1 var(--display);
  color: var(--cyan);
}
.steps h3, .steps p { grid-column: 2; }
.steps p { color: var(--dim); }

/* the pieces */
.pieces {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
}
.pieces > div { padding-block: 22px; border-top: 1px solid var(--edge); display: grid; gap: 8px; align-content: start; min-width: 0; }
.pieces dt { font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.pieces dd { margin: 0; color: var(--dim); }

.shapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.shapes li { display: grid; gap: 8px; justify-items: start; min-width: 0; align-content: start; }
.shapes svg { width: 72px; height: 54px; color: var(--cyan); }
.shapes strong { font-weight: 600; }
.shapes span { color: var(--dim); font-size: 0.95rem; }

.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px 32px; }
.keys li { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.keys span { color: var(--dim); }
.keys .k { flex: none; min-width: 4.6rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 36px clamp(24px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; display: grid; gap: 14px; align-content: start; }

.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plain li { padding-left: 1.4em; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6em; height: 2px; background: var(--cyan); }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { font: 400 var(--step--1)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
td:first-child { width: 58%; }
td.yes { color: var(--cyan); }
td.no { color: var(--dim); }

/* price: the one element drawn as an object */
.price-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px clamp(24px, 5vw, 64px);
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--beam);
  border-radius: 6px;
  background: var(--wall);
}
.price-card > * { min-width: 0; display: grid; gap: 16px; align-content: start; justify-items: start; }
.amount { font: 800 clamp(3.4rem, 2rem + 6vw, 5.5rem)/0.9 var(--display); font-variant-numeric: tabular-nums; }
.amount small { font: 400 var(--step--1)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-left: 0.6em; }
.pending { border: 1px dashed var(--dim); border-radius: 4px; padding: 10px 12px; color: var(--dim); font-size: 0.95rem; }

.faq { display: grid; max-width: 760px; }
.faq details { border-top: 1px solid var(--edge); }
.faq details:last-child { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.5rem/1 var(--mono); color: var(--cyan); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--dim); max-width: 65ch; }
.faq details p + p { margin-top: -8px; }

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

.foot { border-top: 1px solid var(--edge); padding-block: 36px 48px; color: var(--dim); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--lamp); }
.addr { user-select: all; font-family: var(--mono); font-size: var(--step--1); color: var(--lamp); }

/* ---------- text pages ---------- */

.page { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); display: grid; gap: 40px; }
.page h1 { font-size: var(--step-2); }
.page section { display: grid; gap: 14px; max-width: 65ch; scroll-margin-top: 24px; }
.page section h2 { font-size: 1.7rem; padding-top: 28px; border-top: 1px solid var(--edge); }
.page ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.draft { border: 1px dashed var(--pink); border-radius: 4px; padding: 14px 16px; color: var(--pink); max-width: 65ch; }

@media (max-width: 620px) {
  .top nav a:not(.buy) { display: none; }
  .stage { aspect-ratio: 4 / 3; }
  .stage-status { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buy { transition: none; }
}
