/* Quantum Productions — site styles
   Tokens match the "Quantum Productions" design system captured from the
   Squarespace site on 2026-11-04. */

/* Self-hosted fonts (SIL Open Font License) — no Google Fonts call needed. */
@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400 700; /* one weight, used for the 600 headings without faux bold */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --charcoal: #383838;
  --paper: #f4f4f3;
  --white: #ffffff;
  --gold: #ffc700;
  --gray-rule: #808080;
  --gray-panel: #7a7a7a;
  --field: rgba(244, 244, 243, 0.8);

  /* Rama Gothic E comes from Adobe Fonts. If you add an Adobe Fonts kit in
     the <head>, it takes over automatically; until then Bebas Neue stands in. */
  --font-display: rama-gothic-e, "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Courier New", monospace;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1440px;
  --section-pad: clamp(72px, 10vw, 160px);
  --radius-pill: 300px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 0.875rem/1.4 var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--black); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

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

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

/* ---------- Section themes ---------- */
.theme-black { background: var(--black); color: var(--white); }
.theme-dark  { background: var(--charcoal); color: var(--white); }
.theme-light { background: var(--paper); color: var(--black); }

.section { padding: var(--section-pad) 0; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0;
}
h2.section-title { font-size: clamp(56px, 6.4vw, 96.64px); line-height: 0.81; margin-bottom: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(32px, 2.85vw, 42.88px); line-height: 0.92; letter-spacing: -0.01em; }
.lede { max-width: 34em; }
.muted { color: var(--gray-rule); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 400 0.875rem/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 1rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .7; }
.btn--sm { padding: .8rem 1.2rem; }
.btn--accent { color: var(--gold); text-transform: uppercase; }
.btn[disabled] { opacity: .5; cursor: progress; }

.textlink { text-decoration: underline; text-underline-offset: 3px; }
.textlink:hover { opacity: .7; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding-top: 28px; padding-bottom: 28px;
}
.nav { display: flex; gap: 28px; flex-wrap: wrap; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 2px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.logo { display: block; width: 132px; }
.logo img { width: 100%; }
.header-actions { display: flex; gap: 22px; align-items: center; justify-content: flex-end; }
.icon-link { display: inline-flex; width: 20px; height: 20px; opacity: 1; }
.icon-link:hover { opacity: .7; }
.icon-link svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; row-gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .logo { width: 104px; grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 16px; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 20px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 0; }
.hero-intro { text-align: center; max-width: 34em; margin: clamp(48px, 7vw, 96px) auto clamp(48px, 7vw, 104px); padding: 0 var(--gutter); }
.hero-stage { position: relative; }

/* "Mount SMPTE": color bars shaped like a mountain range, in front of the marquee */
.mountain { position: relative; z-index: 1; width: 100%; height: auto; }

.marquee {
  position: absolute; left: 0; right: 0; top: 4%; z-index: 0;
  overflow: hidden; white-space: nowrap;
  color: var(--white);
  pointer-events: none;
}
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee__item {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(160px, 34.6vw, 523px); line-height: .86; letter-spacing: -0.03em;
  padding-right: .25em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Small marquee used for DOWNLOADS */
.marquee--inline { position: relative; margin-bottom: clamp(32px, 4vw, 56px); }
.marquee--inline .marquee__item { font-size: clamp(88px, 14vw, 220px); }
.marquee--inline .marquee__track { animation-duration: 30s; }

/* ---------- On Location ---------- */
.location-head { display: grid; grid-template-columns: minmax(0, 22em) 1fr; align-items: center; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.location-head p { margin: 0; }
.rule { height: 1px; background: var(--gray-rule); }
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.collage figure { margin: 0; position: relative; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.collage .c2 { grid-column: 8 / span 5; aspect-ratio: 20 / 21; }
.collage .c3 { grid-column: 1 / span 4; aspect-ratio: 8 / 9; }
.collage .c4 { grid-column: 5 / span 8; aspect-ratio: 16 / 9; }
.collage .c5 { grid-column: 1 / span 6; aspect-ratio: 4 / 3; }
.collage .c6 { grid-column: 7 / span 6; aspect-ratio: 4 / 3; }
.collage figcaption {
  position: absolute; left: 0; bottom: 0; padding: 6px 10px;
  background: rgba(0,0,0,.72); color: var(--white); font-size: 12px;
}
@media (max-width: 760px) {
  .location-head { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage figure { grid-column: auto / span 2 !important; aspect-ratio: 4 / 3 !important; }
  .collage .c3, .collage .c2 { grid-column: auto / span 1 !important; aspect-ratio: 3 / 4 !important; }
}

/* ---------- Positions ---------- */
.positions { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--black); }
.position { padding: clamp(24px, 2.4vw, 36px); border-right: 1px solid var(--black); display: flex; flex-direction: column; min-height: 420px; }
.position:last-child { border-right: 0; }
.position h3 { margin-bottom: 20px; }
.position ul { margin: 0 0 24px; padding-left: 20px; }
.position li { margin-bottom: 4px; }
.position .price { font-size: 17.68px; margin: auto 0 16px; }
.position .price small { font-size: 14px; }
.position .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .positions { grid-template-columns: repeat(2, 1fr); }
  .position:nth-child(2) { border-right: 0; }
  .position:nth-child(-n+2) { border-bottom: 1px solid var(--black); }
}
@media (max-width: 600px) {
  .positions { grid-template-columns: 1fr; }
  .position { border-right: 0; border-bottom: 1px solid var(--black); min-height: 0; }
  .position:last-child { border-bottom: 0; }
}
.terms-note { margin-top: 20px; }
.position .actions:not(:has(a)) { display: none; }
.positions-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Lists (downloads, apps) ---------- */
.list { border-top: 1px solid var(--gray-rule); }
.list-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto auto; gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--gray-rule);
}
.list-row .name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 28px; line-height: .95; letter-spacing: -0.01em; }
.list-row .meta { color: var(--gray-rule); white-space: nowrap; }
.empty { padding: 24px 0; color: var(--gray-rule); }
@media (max-width: 760px) {
  .list-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .list-row > * { min-width: 0; }
  .list-row .meta { white-space: normal; }
  .list-row .btn { justify-self: start; margin-top: 6px; }
}

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; padding: 1px 0 0 1px; }
.app {
  display: flex; flex-direction: column; gap: 12px; min-height: 240px;
  padding: 28px; border: 1px solid var(--gray-rule);
  text-decoration: none; margin: -1px 0 0 -1px;
}
a.app:hover { background: rgba(255,255,255,.04); }
.app .tag { align-self: flex-start; font-size: 12px; text-transform: uppercase; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 4px 10px; }
.app .tag--live { color: var(--gold); }
.app .tag--soon { color: var(--gray-rule); }
.app h3 { margin-top: auto; }
.app p { margin: 0; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .section-title { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info p { margin-bottom: 12px; }
.form-panel { background: var(--gray-panel); color: var(--black); padding: clamp(16px, 2vw, 28px); }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-panel .group { font-size: 14px; margin-bottom: 4px; }
.form-panel label { display: block; font-size: 12px; margin-bottom: 4px; }
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%; border: 0; border-radius: 0; background: var(--field); color: var(--black);
  font: 400 14px/1.4 var(--font-mono); padding: 8px 10px; min-height: 36px;
  transition: background .2s ease;
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { background: var(--paper); outline: 2px solid var(--black); outline-offset: 0; }
.form-panel textarea { min-height: 120px; resize: vertical; }
.form-panel .btn { margin-top: 6px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.4em; }
.form-status.ok { color: var(--black); font-weight: 700; }
.form-status.err { color: #3d0000; font-weight: 700; }
.cf-turnstile { margin: 6px 0 4px; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--charcoal); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Simple pages (apps directory, 404) ---------- */
.page-title { font-size: clamp(88px, 14vw, 220px); line-height: .82; margin: clamp(32px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }

/* ---------- Downloads: image cards ---------- */
.dl-head { font-size: 28px; line-height: .95; letter-spacing: -0.01em; margin: 0 0 20px; }
.dl-head:not(:first-child) { margin-top: 56px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.dl-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--gray-rule); padding: 0 20px 20px; min-width: 0; }
.dl-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--gray-rule); margin: 0 -20px 6px; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-card .name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 32px; line-height: .95; letter-spacing: -0.01em; margin: 4px 0 0; }
.dl-card .desc { margin: 0; }
.dl-card .meta { margin: 0; color: var(--gray-rule); }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.app-meta { color: var(--gray-rule); font-size: 12px; }

/* ---------- App download page ---------- */
.crumbs { margin: clamp(24px, 4vw, 48px) 0 clamp(24px, 4vw, 40px); color: var(--gray-rule); }
.app-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.app-icon { width: clamp(96px, 12vw, 160px); height: auto; border-radius: 22%; }
.app-title { font-size: clamp(56px, 7vw, 110px); line-height: .85; margin-bottom: 20px; }
.app-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.app-shot { margin: clamp(40px, 6vw, 72px) 0; }
.app-shot img { width: 100%; height: auto; }
.app-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.app-h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: .9; margin: 0 0 20px; }
.app-cols .app-h2:not(:first-child) { margin-top: 40px; }
.steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 12px; }
.steps strong { font-weight: 700; }
.facts { margin: 0; border-top: 1px solid var(--charcoal); }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--charcoal); }
.facts dt { color: var(--gray-rule); }
.facts dd { margin: 0; }
.app-help { margin-top: clamp(40px, 6vw, 72px); }
.app .app-icon-sm { width: 48px; height: 48px; border-radius: 22%; }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
@media (max-width: 760px) {
  .app-hero { grid-template-columns: 1fr; }
  .app-cols { grid-template-columns: 1fr; }
}
.app-dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.app-dl-note { margin: 14px 0 0; max-width: 44em; }
.features { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 12px; }
.app-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; margin: clamp(48px, 6vw, 80px) 0; }
.app-panels figure { margin: 0; }
.app-panels img { width: 100%; height: auto; }
.app-panels figcaption { margin-top: 10px; color: var(--gray-rule); }
.app-h3 { font-size: 28px; line-height: .95; margin: 0 0 16px; }
.cmd { display: block; margin-top: 8px; padding: 10px 12px; background: var(--charcoal); font: 400 13px/1.4 var(--font-mono); overflow-x: auto; white-space: nowrap; user-select: all; }
#install + .app-cols { margin-bottom: 0; }
@media (max-width: 760px) { .app-panels { grid-template-columns: 1fr; } }
.app-cols > * { min-width: 0; }
