/* =========================================================
   PATCHFRAME – brutalist site stylesheet
   white on black, FYI typeface, cyan accent
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "FYI";
  src: url("../fonts/fyi-Light.woff") format("woff"),
       url("../fonts/fyi-Light.otf")  format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FYI";
  src: url("../fonts/fyi-Regular.woff") format("woff"),
       url("../fonts/fyi-Regular.otf")  format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "FYI";
  src: url("../fonts/fyi-Bold.woff") format("woff"),
       url("../fonts/fyi-Bold.otf")  format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* ---------- Tokens ---------- */
:root {
  --bg:      #000000;
  --fg:      #ffffff;
  --mute:    #7a7a7a;
  --rule:    #1a1a1a;
  --rule-2:  #2a2a2a;
  --accent:  #00eaff;
  --accent-dim: #00a8cc;

  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-y: clamp(2rem,  6vw, 5rem);
  --max:   1440px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: "FYI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.horizontal-scroll {
  min-height: var(--horizontal-body-height, 100vh);
}
img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}
hr { border: 0; border-top: 1px solid var(--rule); }

::selection { background: var(--accent); color: #000; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.heading-glyph {
  display: inline;
}
.glyph-alt-salt { font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "salt" 1; }
.glyph-alt-ss01 { font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "ss01" 1; }
.glyph-alt-ss02 { font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "ss02" 1; }
.glyph-alt-ss03 { font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "ss03" 1; }
.glyph-alt-ss04 { font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "ss04" 1; }
.glyph-alt-ss05 { font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "ss05" 1; }
.h-hero {
  --hero-font-size: clamp(3.5rem, 12vw, 12rem);
  font-size: var(--hero-font-size);
  line-height: 0.82;
  letter-spacing: -0.035em;
}
.h-xl { font-size: clamp(2.5rem, 7vw, 6rem); }
.h-l  { font-size: clamp(2rem, 5vw, 4rem); }
.h-m  { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.h-s  { font-size: 1.1rem; letter-spacing: 0.04em; }

.eyebrow {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.45;
  max-width: 56ch;
  color: #dcdcdc;
}
.body-lg { font-size: 1.125rem; line-height: 1.55; color: #cfcfcf; }

/* Beta changelog: ## lines render as larger captions than body copy */
.changelog-body {
  font-size: 1.125rem;
  line-height: 1.55;
  color: #cfcfcf;
}
.changelog-body .changelog-copy {
  margin: 0 0 0.75rem;
}
.changelog-body .changelog-copy:last-child,
.changelog-body .changelog-caption:last-child,
.changelog-body .changelog-list:last-child {
  margin-bottom: 0;
}
.changelog-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.changelog-list li {
  position: relative;
  padding-left: 1.5em;
}
.changelog-list li + li {
  margin-top: 0.25rem;
}
.changelog-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #f0f0f0;
}
.changelog-caption {
  margin: 1rem 0 0.4rem;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
  color: #f0f0f0;
}
.muted   { color: var(--mute); }
.mono    { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }

p + p { margin-top: 1em; }

/* ---------- Background / Horizontal Stage ---------- */
.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
.bg-strip {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.bg-strip img {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.4;
}
.site-header,
.horizontal-stage {
  position: relative;
  z-index: 1;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left:  var(--pad-x);
  padding-right: var(--pad-x);
}
.section {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.grid-3 > * {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 260px;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  html.horizontal-scroll,
  body.horizontal-scroll {
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  body.horizontal-scroll .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
  }

  body.horizontal-scroll .horizontal-stage {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 74px);
    bottom: 0;
    overflow: hidden;
  }

  body.horizontal-scroll .horizontal-track {
    display: flex;
    width: max-content;
    height: 100%;
    will-change: transform;
  }

  body.horizontal-scroll .site-main {
    display: flex;
    flex: 0 0 auto;
    height: 100%;
  }

  body.horizontal-scroll .site-main > .hero,
  body.horizontal-scroll .site-main > .section {
    flex: 0 0 auto;
    min-width: 100vw;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    padding-top: clamp(1.25rem, 4vh, 3rem);
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
  }

  /* Hero: same top anchor as all sections, overflow visible for video */
  body.horizontal-scroll .site-main > .hero {
    overflow: hidden;
  }
  body.horizontal-scroll .site-main > .hero .wrap,
  body.horizontal-scroll .site-main > #about .wrap {
    padding-left: clamp(1rem, 2.5vw, 2.5rem);
    padding-right: 15%;
  }
  body.horizontal-scroll .site-main > .hero .h-hero {
    --hero-font-size: clamp(3.5rem, min(10.5vw, 19vh), 14rem);
  }

  body.horizontal-scroll .site-main > .marquee {
    flex: 0 0 52vw;
    width: 52vw;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
  }

  body.horizontal-scroll .site-main > .hero .wrap,
  body.horizontal-scroll .site-main > .section .wrap {
    width: max-content;
    max-width: none;
    min-width: min(100vw, var(--max));
  }

  body.horizontal-scroll .site-footer {
    flex: 0 0 min(92vw, 1200px);
    width: min(92vw, 1200px);
    height: 100%;
    overflow: visible;
    border-left: 1px solid var(--rule);
    background: rgba(0, 0, 0, 0.42);
  }

  body.horizontal-scroll .hero .lead,
  body.horizontal-scroll .body-lg {
    max-width: 48ch;
  }

  body.horizontal-scroll .grid-2 {
    grid-template-columns: repeat(2, minmax(360px, 44vw));
    align-items: start;
  }

  body.horizontal-scroll .grid-3 {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-template-columns: none;
    grid-auto-columns: minmax(290px, 28vw);
    width: max-content;
    max-height: calc(100vh - var(--header-height, 74px) - 6rem);
  }

  /* Single-row grid-3 override: about section only */
  body.horizontal-scroll .grid-3--about {
    grid-template-rows: minmax(0, 1fr) !important;
    max-height: none !important;
    height: calc(100vh - var(--header-height, 74px) - 6rem);
  }

  /* Download demo scope: section must not be flex + wrap must not be max-content or CSS Grid 1fr columns collapse to one track */
  body.horizontal-scroll.page-download .site-main > .section--demo-scope {
    display: block !important;
  }
  body.horizontal-scroll.page-download .site-main > .section--demo-scope .wrap.demo-scope-wrap {
    width: 100% !important;
    max-width: min(var(--max), calc(100vw - 2 * var(--pad-x))) !important;
    min-width: 0 !important;
  }
  body.horizontal-scroll.page-download .demo-scope-3col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.horizontal-scroll.page-download .demo-scope-3col > .pillar {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  body.horizontal-scroll .grid-3 > * {
    min-height: 0;
    padding: clamp(1rem, 2vw, 1.75rem);
  }

  body.horizontal-scroll .pillar h3 {
    font-size: clamp(1.15rem, 2vw, 1.8rem);
  }

  body.horizontal-scroll .pillar p {
    font-size: clamp(0.82rem, 1.1vw, 1rem);
    line-height: 1.35;
  }

  body.horizontal-scroll .hero-download {
    grid-template-columns: minmax(300px, min(48vw, 520px)) minmax(300px, min(44vw, 500px));
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    align-items: start;
  }
  body.horizontal-scroll .hero-download__main {
    max-width: min(36rem, 48vw);
  }
  body.horizontal-scroll .download-steps-grid {
    max-height: calc(100vh - var(--header-height, 74px) - 4rem);
    overflow: auto;
    padding: clamp(0.75rem, 1.5vw, 1.2rem) clamp(0.9rem, 2vw, 1.5rem);
    min-height: 0;
  }
  body.horizontal-scroll .download-steps-grid .pillar p {
    font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  }

  /*
    Download: first horizontal panel narrower than 100vw so users see a “peek”
    of Demo scope → hints that scrolling sideways reveals more content.
  */
  body.horizontal-scroll.page-download .site-main > .hero {
    flex: 0 0 90vw !important;
    width: 90vw !important;
    max-width: 90vw !important;
    min-width: 0 !important;
  }
  body.horizontal-scroll.page-download .site-main > .hero .wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-right: clamp(1rem, 3vw, 2.5rem) !important;
    box-sizing: border-box !important;
  }
  body.horizontal-scroll.page-download .hero-download {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
    gap: clamp(1rem, 2vw, 2rem) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.horizontal-scroll.page-download .hero-download__main {
    max-width: none !important;
  }

  body.horizontal-scroll .foot-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.site-header--minimal .nav--minimal {
  justify-content: flex-start;
}

body.no-site-header {
  --header-height: 0px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover {
  color: var(--fg);
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-logo--footer {
  height: clamp(22px, 4vw, 32px);
}
.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}
.nav a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfcfcf;
  text-decoration: none;
  transition: color .15s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a.active { color: var(--fg); border-bottom-color: var(--accent); }
.nav a.btn--primary { color: #000; }
.nav a.btn--primary:hover { color: #000; }
.nav-instagram {
  display: inline-flex;
  align-items: center;
  color: #cfcfcf;
  transition: color .15s ease;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.nav-instagram:hover { color: var(--fg); }

.nav .hamburger { display: none; }
@media (max-width: 820px) {
  .nav ul { display: none; }
  .nav ul.open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    padding: 1.25rem var(--pad-x);
    background: #000;
    border-bottom: 1px solid var(--rule);
    gap: 1rem;
    align-items: flex-start;
  }
  .nav .hamburger {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    cursor: pointer;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover {
  background: var(--fg);
  color: #000;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: #000;
}
.btn--ghost {
  border-color: var(--rule-2);
  color: #cfcfcf;
}
.btn--ghost:hover {
  border-color: var(--fg);
  color: var(--fg);
  background: transparent;
}
.btn--sm { padding: 0.6rem 1rem; font-size: 0.8rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero video ---------- */
.hero-video-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: clamp(280px, 38vw, 560px);
  align-self: start;
}
.hero-video {
  width: 100%;
  aspect-ratio: 1610 / 1080;
  overflow: hidden;
  background: transparent;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: screen;
}
.hero-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--rule-2);
  color: var(--rule-2);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  gap: 0.5rem;
}
.hero-video-placeholder span {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.1em;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 9rem) 0 clamp(3rem, 8vw, 7rem);
  position: relative;
}
.hero .eyebrow { margin-bottom: 2rem; }
.hero h1 { margin-bottom: 2rem; }
.hero .lead { margin-bottom: 2.5rem; }

/* Download page: headline + form beside compact step grid */
.hero-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  width: 100%;
}
.hero-download__main {
  min-width: 0;
  max-width: min(36rem, 100%);
}
.hero-download__main > .eyebrow { margin-bottom: 0.5rem; }
.hero-download__main > .h-hero {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.hero-download__main > .lead {
  margin-top: 0;
  margin-bottom: 0.75rem;
  max-width: 52ch;
}
.hero-download__form {
  margin-top: 0.75rem;
  max-width: min(36rem, 100%);
}
.page-download .hero {
  padding-top: clamp(2.25rem, 6vw, 5.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.page-download .newsletter-inline {
  max-width: min(36rem, 100%);
}
.hero-download-start {
  min-height: min(720px, calc(100vh - 5rem));
  display: flex;
  align-items: center;
}
.download-start {
  max-width: 760px;
}
.download-start .h-hero {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
.download-start .btn {
  min-width: min(100%, 240px);
  justify-content: center;
}

/* Download: demo scope – three equal columns (flex: avoids 1fr collapse under width:max-content parents) */
.section--demo-scope {
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.section--demo-scope .demo-scope-wrap {
  width: 100%;
  max-width: var(--max);
  box-sizing: border-box;
}
.demo-scope-head {
  width: 100%;
  text-align: left;
  margin-bottom: clamp(0.65rem, 1.5vw, 1rem);
}
.page-download .site-main > .section--demo-scope {
  display: block;
  padding-top: clamp(0.35rem, 1.2vw, 0.85rem);
}
.page-download .demo-scope-3col {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.demo-scope-3col {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.demo-scope-3col > .pillar {
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  min-height: 0;
}
/* Narrow columns: default .h-m is too large (clamp 1.5–2.25rem) – one readable line */
.section--demo-scope .demo-scope-3col > .pillar > .h-m {
  font-size: clamp(0.95rem, 1.35vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .demo-scope-3col,
  .page-download .demo-scope-3col {
    flex-direction: column !important;
  }
  .demo-scope-3col > .pillar {
    flex: none !important;
    width: 100% !important;
  }
}

.download-steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  row-gap: clamp(0.65rem, 1.5vw, 1.1rem);
  align-items: start;
  border: 1px solid var(--rule);
  padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1rem, 2.5vw, 1.75rem);
  align-self: stretch;
}
@media (min-width: 901px) {
  .download-steps-grid {
    min-height: min(58vh, 32rem);
  }
}
.download-steps-grid .pillar {
  min-height: 0;
  padding: 0.35rem 0;
  border: 0;
}
.download-steps-grid .pillar .num {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.download-steps-grid .pillar h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
}
.download-steps-grid .pillar p {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.45;
  margin: 0;
  color: var(--fg);
}
.download-steps-grid .pillar:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.download-steps-grid .pillar:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.download-steps-grid .pillar:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: clamp(0.25rem, 1vw, 0.75rem);
  border-left: 1px solid var(--rule);
  margin-left: -1px;
}
@media (max-width: 900px) {
  .hero-download {
    grid-template-columns: 1fr;
  }
  .hero-download__main {
    max-width: none;
  }
  .hero-download__main > .lead {
    max-width: none;
  }
  .download-steps-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 0.5rem;
    padding: 0.85rem 1rem;
    min-height: 0;
  }
  .download-steps-grid .pillar:nth-child(1),
  .download-steps-grid .pillar:nth-child(2),
  .download-steps-grid .pillar:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    display: block;
    padding-left: 0;
    border-left: 0;
    margin-left: 0;
  }
}
.hero-lockup {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}
.hero-lockup__text {
  min-width: 0;
}
.hero-statement {
  font-size: clamp(1.05rem, 1.45vw, 1.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: lowercase;
  padding-left: 10px;
  padding-right: 10px;
}
@media (max-width: 900px) {
  .hero-lockup {
    grid-template-columns: 1fr;
  }
  .hero-video-col {
    min-width: 0;
  }
}

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.9rem 0;
  color: var(--mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}
.marquee span { display: inline-block; padding-right: 3rem; }

/* ---------- Media placeholder ---------- */
.media {
  position: relative;
  border: 1px solid var(--rule-2);
  background:
    repeating-linear-gradient(
      45deg,
      #0a0a0a 0 12px,
      #050505 12px 24px
    );
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.8rem;
}
.media::before, .media::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent);
}
.media::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.media::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.media--square  { aspect-ratio: 1/1; }
.media--tall    { aspect-ratio: 3/4; }

/* ---------- Pillars / Cards ---------- */
.about-pillar--thumb {
  overflow: hidden;
}
.about-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--rule);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
}
.about-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.about-shot:hover img {
  opacity: 0.7;
}
.about-shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  color: var(--rule-2);
  letter-spacing: 0.1em;
  border: 1px dashed var(--rule-2);
}
.about-shot::after {
  content: "↗";
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.about-shot:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  padding: 1rem;
  line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }


.pillar--muted { opacity: 0.35; pointer-events: none; }
.pillar-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.pillar-link:hover { color: var(--fg); border-bottom-color: var(--fg); text-decoration: none; }

.pillar .num {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.pillar h3 { margin-bottom: 1rem; }
.pillar p  { color: var(--fg); }

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-row label {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--fg);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s ease;
  border-radius: 0;
}
/* Checkboxes/radios must not inherit the full-width text-field chrome. */
.form-row input[type="checkbox"],
.form-row input[type="radio"],
.form-row .admin-check input[type="checkbox"],
.form-row .admin-check input[type="radio"] {
  width: auto;
  min-width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form-row input[type="file"] {
  padding: 0.55rem 0.75rem;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent);
}
.form-row input[type="checkbox"]:focus,
.form-row input[type="radio"]:focus {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row.hp { position: absolute; left: -9999px; }

.form-note { font-size: 0.85rem; color: var(--mute); }
.form-status {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule-2);
  font-size: 0.9rem;
}
.form-status.ok  { border-color: var(--accent); color: var(--accent); }
.form-status.err { border-color: #ff4a4a; color: #ff4a4a; }
.form-status.info { border-color: var(--mute); color: var(--fg); }



.newsletter-inline {
  display: flex;
  gap: 0;
  border: 1px solid var(--fg);
  max-width: 520px;
}
.newsletter-inline input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 1rem;
  outline: none;
}
.newsletter-inline button {
  background: var(--fg);
  color: #000;
  border: 0;
  padding: 0 1.25rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background .15s ease;
}
.newsletter-inline button:hover { background: var(--accent); }
.newsletter-inline--primary button { background: var(--accent); color: #000; }
.newsletter-inline--primary button:hover { background: var(--fg); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  color: var(--mute);
}
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--fg);
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a {
  font-weight: 400;
  color: var(--mute);
  text-decoration: none;
}
.site-footer a:hover { color: var(--fg); text-decoration: none; }
.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Admin ---------- */
body.page-admin {
  font-size: 15px;
  line-height: 1.45;
}
body.page-admin .bg-parallax {
  display: none;
}
body.page-admin h1,
body.page-admin h2,
body.page-admin h3,
body.page-admin h4,
body.page-admin h5 {
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
body.page-admin .site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}
body.page-admin .nav {
  min-height: 52px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
body.page-admin .brand-logo {
  width: 128px;
}
body.page-admin #mainnav {
  gap: 0.75rem;
}
body.page-admin #mainnav a {
  font-size: 0.72rem;
}
body.page-admin .hero {
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}
body.page-admin .hero .eyebrow {
  margin-bottom: 0;
}
body.page-admin .hero h1,
body.page-admin .hero .lead {
  margin-bottom: 0.75rem;
}
body.page-admin .h-hero {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}
body.page-admin .h-xl {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
body.page-admin .h-l {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
body.page-admin .h-m {
  font-size: 1.05rem;
}
body.page-admin .lead {
  max-width: 72ch;
  font-size: 1rem;
}
body.page-admin .section {
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}
body.page-admin .wrap {
  max-width: 1180px;
}
body.page-admin .admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
  line-height: 1.4 !important;
}
body.page-admin .admin-nav a {
  color: #cfcfcf;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 0.1rem;
}
body.page-admin .admin-nav a:hover {
  color: var(--fg);
  text-decoration: none;
}
body.page-admin .pillar,
body.page-admin .auth-box {
  border: 1px solid var(--rule);
  padding: 1rem;
}
body.page-admin .auth-box {
  max-width: 760px;
}
body.page-admin .admin-table-wrap {
  margin-top: 1rem !important;
}
body.page-admin .form-row {
  margin-bottom: 0.9rem;
}
body.page-admin .btn {
  min-height: 0;
}
body.page-admin .beta-testers-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 920px;
}
body.page-admin .beta-testers-search .form-row {
  margin-bottom: 0;
  flex: 1 1 16rem;
}
body.page-admin .beta-testers-search select,
body.page-admin .beta-testers-search input[type="search"] {
  width: 100%;
}
body.page-admin .admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
body.page-admin .beta-dl {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
body.page-admin .beta-dl--yes { color: var(--accent); }
body.page-admin .beta-dl--no { color: var(--mute); }

/* ---------- Forum ---------- */
body.page-forum,
body.page-beta {
  font-size: 16px;
  line-height: 1.55;
}
body.page-forum .site-main,
body.page-beta .site-main {
  position: relative;
  z-index: 1;
}
body.page-forum .bg-strip img,
body.page-beta .bg-strip img {
  opacity: 0.24;
  filter: grayscale(1) contrast(1.12);
}
body.page-forum .horizontal-stage,
body.page-forum .horizontal-track,
body.page-beta .horizontal-stage,
body.page-beta .horizontal-track {
  position: relative;
  z-index: 1;
}
body.page-forum .horizontal-track,
body.page-beta .horizontal-track {
  display: block;
}
.site-header--forum {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.88);
}
.nav--forum {
  max-width: 1180px;
  min-height: 62px;
}
.forum-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
}
.forum-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8d8d8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.forum-nav a:hover,
.forum-nav__primary {
  color: var(--accent);
  text-decoration: none;
}
.forum-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.beta-shell {
  max-width: 1180px;
}
.beta-board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.beta-board th,
.beta-board td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.beta-board th {
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.beta-report-list {
  border-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.beta-report {
  padding: 1.1rem 1.15rem 1.2rem;
}
.beta-report-block {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.025);
}
.beta-report-block--cyan {
  --report-color: #00eaff;
  --report-fill: rgba(0, 234, 255, 0.14);
}
.beta-report-block--red {
  --report-color: #ff4d4d;
  --report-fill: rgba(255, 77, 77, 0.14);
}
.beta-report-block--amber {
  --report-color: #ffb020;
  --report-fill: rgba(255, 176, 32, 0.16);
}
.beta-report-block--lime {
  --report-color: #9dff4a;
  --report-fill: rgba(157, 255, 74, 0.12);
}
.beta-report-block--violet {
  --report-color: #c084fc;
  --report-fill: rgba(192, 132, 252, 0.16);
}
.beta-report-block--pink {
  --report-color: #ff6bb5;
  --report-fill: rgba(255, 107, 181, 0.14);
}
.beta-report-block--cyan,
.beta-report-block--red,
.beta-report-block--amber,
.beta-report-block--lime,
.beta-report-block--violet,
.beta-report-block--pink {
  background: var(--report-fill);
  border-color: color-mix(in srgb, var(--report-color) 45%, transparent);
}
.beta-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.beta-color-dot {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--rule-2);
  background: #111;
  cursor: pointer;
}
.beta-color-dot input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.beta-color-dot__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.beta-color-dot--none { background: transparent; }
.beta-color-dot--cyan { background: #00eaff; }
.beta-color-dot--red { background: #ff4d4d; }
.beta-color-dot--amber { background: #ffb020; }
.beta-color-dot--lime { background: #9dff4a; }
.beta-color-dot--violet { background: #c084fc; }
.beta-color-dot--pink { background: #ff6bb5; }
.beta-color-dot.is-on,
.beta-color-dot:has(input:checked) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.beta-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 2rem;
}
.beta-name-row input[type="text"] {
  flex: 1 1 12rem;
  max-width: 22rem;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--fg);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  outline: none;
}
.beta-name-row input[type="text"]:focus {
  border-color: var(--accent);
}
.beta-slots {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
}
.beta-slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.15rem 1.2rem 1.3rem;
}
.beta-slot .eyebrow {
  margin-bottom: 0;
}
.beta-slot__blurb {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.7rem;
}
.beta-slot form {
  margin-top: 1rem;
}
.beta-shell .beta-slot .btn {
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.beta-slot__meta {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: #cfcfcf;
}
.beta-slot__notes {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: #bdbdbd;
  line-height: 1.45;
}
@media (min-width: 900px) {
  .beta-slots,
  .beta-slots--admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.beta-report__meta {
  color: var(--mute);
  font-size: 0.82rem;
}
.beta-report__body {
  white-space: pre-wrap;
}
.beta-comments {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule-2);
}
.beta-comment {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.beta-comment:last-of-type {
  border-bottom: 0;
}
.beta-comment__who {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.beta-comment--admin .beta-comment__who {
  color: var(--accent);
}
.beta-reply .form-row textarea {
  min-height: 88px;
}
.beta-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
}
.beta-search .form-row {
  margin-bottom: 0;
  flex: 1 1 12rem;
}
.beta-search select,
.beta-search input[type="search"] {
  width: 100%;
}
.beta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.beta-tag {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.18rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.beta-tag:hover,
.beta-tag.is-on {
  background: var(--accent);
  color: #000;
  text-decoration: none;
}
body.page-beta .admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.forum-shell--hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.forum-hero {
  padding: clamp(1.5rem, 5vw, 4rem) 0 1rem;
}
.forum-section {
  padding-top: 1rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-top: 0;
}
.forum-title {
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  max-width: 9ch;
}
body.page-forum .h-l {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}
body.page-forum .lead {
  max-width: 48rem;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}
.forum-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.forum-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.forum-category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.025);
}
.forum-category-card {
  font-weight: 400;
  color: var(--fg);
  text-decoration: none;
}
.forum-category-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.forum-category-card:hover .thread-title {
  color: var(--accent);
}
.forum-subhead {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.forum-empty {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.forum-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 0.45rem;
  padding: 0.2rem 0.42rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.forum-badge--muted {
  border-color: var(--rule-2);
  color: var(--mute);
}
.thread-list { list-style: none; border-top: 1px solid var(--rule); }
.thread-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.thread-list__item--pinned {
  padding-left: 1rem !important;
  border-left: 2px solid var(--accent);
  background: rgba(0, 234, 255, 0.035);
}
.thread-list > li > a {
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}
.thread-list > li > a:hover {
  color: inherit;
  text-decoration: none;
}
.thread-list li:hover .thread-title { color: var(--accent); }
.thread-title { font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; }
.thread-meta { color: var(--mute); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.thread-count { font-weight: 700; color: var(--accent); font-size: 0.9rem; }

.post {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.post-head strong { color: var(--fg); }
.post-body { white-space: pre-wrap; word-wrap: break-word; color: #e4e4e4; }
.post--official {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  background: rgba(0, 234, 255, 0.04);
}
.post--official .post-head strong {
  color: var(--accent);
}
.post--hidden,
.is-muted {
  opacity: 0.55;
}
.forum-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-box {
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--rule-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
body.page-forum .auth-box {
  max-width: 560px;
  margin: 0;
  border: 0;
  padding: 0;
}
@media (max-width: 720px) {
  .nav--forum {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }
  .forum-nav {
    flex-wrap: wrap;
  }
  .thread-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .forum-category-grid {
    grid-template-columns: 1fr;
  }
}

.admin-forum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.admin-category-fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--rule);
}
.admin-category-fieldset legend,
.admin-category-fieldset label,
.admin-check {
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-category-fieldset input,
.admin-category-fieldset textarea,
.admin-forum-grid select,
.admin-forum-grid textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--fg);
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.player-library-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.45rem 1rem;
}
.player-library-tag {
  margin: 0;
  min-width: 0;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--fg);
}
.player-library-tag .mono {
  font-weight: 500;
  font-size: 0.85em;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.btn--xs {
  min-height: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
}
@media (max-width: 900px) {
  .admin-forum-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Links ---------- */
.links-columns {
  display: grid;
  grid-template-columns: 700px minmax(240px, 0.72fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.links-support {
  border-top: 1px solid var(--rule);
  max-width: 32ch;
  padding-top: 1.5rem;
  margin-left: auto;
}
.links-support__title {
  font-size: 1.125rem;
  line-height: 1.45;
  color: #dcdcdc;
}
.links-support__list {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.links-support__list li {
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--fg);
  font-weight: 700;
}
.links-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}
.links-item:hover {
  color: var(--accent);
  text-decoration: none;
}
.links-item__label {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.links-item__desc {
  font-size: 1.125rem;
  color: var(--fg);
  line-height: 1.4;
}
.links-item:hover .links-item__desc {
  color: var(--fg);
}
.links-item__url {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .links-columns {
    grid-template-columns: 1fr;
  }
  .links-list,
  .links-support {
    max-width: none;
    margin-left: 0;
  }
}

/* ---------- Video grid (Examples) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  width: 100%;
}
.video-cell {
  position: relative;
  min-width: 0;
  /* padding-bottom trick locks the frame – immune to video intrinsic size */
  height: 0;
  padding-bottom: 56.25%; /* 9/16 = 56.25% */
  background: #080808;
  overflow: hidden;
}
.video-cell video,
.video-cell .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--rule-2);
  letter-spacing: -0.02em;
}
@media (max-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Docs ---------- */
html:has(body.page-docs-livecode),
body.page-docs-livecode {
  height: auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: auto;
}
body.page-docs-livecode .site-main,
body.page-docs-livecode .site-footer {
  position: relative;
  z-index: 1;
}
body.page-docs-livecode .site-main {
  display: block;
}
body.page-docs-livecode .hero .wrap,
body.page-docs-livecode .section .wrap {
  max-width: 52rem;
}
body.page-docs-livecode .hero {
  padding-top: clamp(2.5rem, 8vh, 5rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
body.page-docs-livecode .section {
  background: rgba(0, 0, 0, 0.72);
}
body.page-docs-livecode .ref-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.docs-steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  font-size: 1.05rem;
  line-height: 1.45;
}
.docs-step-num {
  flex: 0 0 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding-top: 0.2em;
}

.module-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.module-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.module-list li strong {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.module-list li span {
  color: #b8b8b8;
  line-height: 1.4;
}
.module-group-label {
  display: block !important;
  grid-template-columns: unset !important;
  padding: 1.5rem 0 0.4rem !important;
  border-bottom: 0 !important;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 640px) {
  .module-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.docs-patch-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 760px;
}
.docs-patch-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.docs-patch-num {
  flex: 0 0 3rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.docs-patch-step p { color: #b8b8b8; }

/* ---------- Utilities ---------- */
.center    { text-align: center; }
.contact-middle {
  margin-top: clamp(2rem, 5vh, 4rem);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}
.mt-1      { margin-top: 0.5rem; }
.mt-2      { margin-top: 1rem; }
.mt-3      { margin-top: 1.5rem; }
.mt-4      { margin-top: 2rem; }
.mt-5      { margin-top: 3rem; }
.mb-3      { margin-bottom: 1.5rem; }
.mb-4      { margin-bottom: 2rem; }
.sticker {
  display: inline-block;
  border: 1px solid var(--rule-2);
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.big-letter {
  font-size: clamp(6rem, 18vw, 18rem);
  line-height: 0.8;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.05em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Node reference rack ---------- */
body.page-reference {
  --ref-jack-tex: #63b3ed;
  --ref-jack-cv: #68d391;
  --ref-jack-audio: #f6ad55;
  font-size: 16px;
  line-height: 1.5;
}
body.page-reference .bg-strip img {
  opacity: 0.18;
  filter: grayscale(1) contrast(1.15);
}
body.page-reference .site-main {
  position: relative;
  z-index: 1;
}
.ref-app {
  display: grid;
  grid-template-columns: minmax(15.5rem, 17.5rem) minmax(0, 1fr);
  min-height: calc(100dvh - 4.6rem);
  border-top: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.72);
}
.ref-rack {
  border-right: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.55);
  overflow: auto;
  max-height: calc(100dvh - 4.6rem);
}
.ref-rack__head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1.1rem 1rem 0.85rem;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--rule);
}
.ref-search input {
  width: 100%;
  margin-top: 0.7rem;
  background: #050505;
  border: 1px solid var(--rule-2);
  padding: 0.55rem 0.7rem;
  color: var(--fg);
  font-size: 0.92rem;
}
.ref-search input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.ref-chip {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--mute);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
}
.ref-chip:hover,
.ref-chip.is-active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.ref-rack__meta {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-nav {
  padding: 0.4rem 0 2rem;
}
.ref-nav__label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.1rem 1rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.ref-nav__label a {
  color: inherit;
  text-decoration: none;
}
.ref-nav__label a:hover,
.ref-nav__label a.is-active {
  text-decoration: underline;
}
.ref-nav__label span {
  color: var(--mute);
  letter-spacing: 0.08em;
}
.ref-nav__list {
  list-style: none;
}
.ref-nav__list a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: #d8d8d8;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.ref-nav__list a:hover,
.ref-nav__list a.is-active {
  color: var(--fg);
  background: rgba(0, 234, 255, 0.06);
  border-left-color: var(--accent);
  text-decoration: none;
}
.ref-nav__list em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.ref-rack-toggle {
  display: none;
}
.ref-stage {
  overflow: auto;
  max-height: calc(100dvh - 4.6rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.ref-panel {
  display: none;
}
.ref-panel.is-active,
.ref-panel:target {
  display: block;
}
.ref-stage:not(:has(.ref-panel:target)):not(:has(.ref-panel.is-active)) #ref-home {
  display: block;
}
.ref-panel .h-l {
  max-width: 16ch;
}
.ref-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
}
.ref-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ref-signal::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #050505;
  border: 2px solid #e6e6e6;
}
.ref-signal--video,
.ref-signal--texture { color: var(--ref-jack-tex); }
.ref-signal--video::before,
.ref-signal--texture::before { border-color: var(--ref-jack-tex); }
.ref-signal--cv { color: var(--ref-jack-cv); }
.ref-signal--cv::before { border-color: var(--ref-jack-cv); }
.ref-signal--audio { color: var(--ref-jack-audio); }
.ref-signal--audio::before { border-color: var(--ref-jack-audio); }
.ref-case {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.ref-case__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.ref-case__head h2 {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ref-case__head a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ref-case__rail {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0 0.9rem;
  scroll-snap-type: x proximity;
}
.ref-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 0.75rem;
}
.ref-module {
  flex: 0 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #d0d0d0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  scroll-snap-align: start;
}
.ref-module:hover {
  color: var(--accent);
  text-decoration: none;
}
.ref-module.is-wip {
  opacity: 0.72;
}
body.page-reference .ref-faceplate {
  max-width: none;
  width: auto;
  /* 420px = Layout Editor rack height. 2x PNG crops stay 1:1 on Retina. */
  height: 26.25rem;
  object-fit: contain;
  object-position: top center;
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.ref-faceplate--empty {
  width: 5.5rem;
  height: 26.25rem;
  background: #111;
  border: 1px solid #333;
}
.ref-faceplate--detail {
  height: 26.25rem;
  position: sticky;
  top: 0;
}
.ref-node {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
}
.ref-h {
  margin: 1.6rem 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.ref-wip {
  border: 1px solid var(--rule-2);
  padding: 0.8rem 0.95rem;
  color: #cfcfcf;
  font-size: 0.92rem;
  max-width: 58ch;
}
.ref-prose {
  max-width: 62ch;
  color: #d4d4d4;
}
.ref-prose h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ref-prose ul {
  margin: 0.8rem 0 0 1.1rem;
}
.ref-prose li + li { margin-top: 0.45rem; }
.ref-figure {
  margin: 1rem 0 1.5rem;
  max-width: 24rem;
}
.ref-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #111;
  border: 1px solid #333;
}
.ref-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #b5b5b5;
  line-height: 1.4;
}
.ref-callout {
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
  color: #e8e8e8;
}
.ref-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.35rem;
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ref-table th,
.ref-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.ref-table th {
  color: var(--mute);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ref-table code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.84em;
  color: var(--accent);
}
@media (max-width: 900px) {
  .ref-app {
    display: block;
    min-height: 0;
  }
  .ref-rack {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(20rem, 88vw);
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    border-right: 1px solid var(--rule-2);
    background: #000;
  }
  .ref-rack.is-open {
    transform: none;
  }
  .ref-stage {
    max-height: none;
    padding-bottom: 5rem;
  }
  .ref-rack-toggle {
    display: block;
    position: fixed;
    z-index: 25;
    right: 1rem;
    bottom: 1rem;
    background: var(--accent);
    color: #000;
    border: 0;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.7rem 0.95rem;
  }
  .ref-node {
    grid-template-columns: 1fr;
  }
  .ref-faceplate--detail {
    height: 26.25rem;
    position: static;
  }
}
@media (min-width: 901px) {
  body.page-reference {
    overflow: hidden;
    height: 100dvh;
  }
}

/* ---------- LiveCode manual code blocks ---------- */
pre.code {
  background: var(--surface, #111);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
pre.code code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--fg, #ddd);
  white-space: pre;
}
