:root {
  --black: #09090b;
  --coal: #111115;
  --steel: #25252c;
  --white: #f4f0e8;
  --paper: #f4f0e8;
  --muted: #aaa5a0;
  --pink: #ff145b;
  --red: #d90035;
  --violet: #8e32ff;
  --yellow: #ffd437;
  --green: #44e085;
  --grid: rgba(244, 240, 232, 0.11);
  --max: 1360px;
  --edge: clamp(1rem, 3vw, 3rem);
  --shift-x: 0px;
  --shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 5rem 5rem;
  opacity: 0.18;
}

body::after {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 4px);
  mix-blend-mode: overlay;
}

body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  color: var(--black);
  background: var(--yellow);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(430px, 1.5fr) minmax(220px, 0.8fr);
  align-items: center;
  width: min(calc(100% - 2 * var(--edge)), var(--max));
  min-height: 102px;
  margin: 0 auto;
  border-right: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
}

.header-brand {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 1.25rem;
  border-right: 1px solid var(--grid);
}

.header-brand > p {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-brand > p i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.25rem;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wordmark img {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  object-fit: cover;
}

.wordmark > span > span {
  color: var(--pink);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  align-self: stretch;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav a,
.site-header summary,
.channel-link,
.legal-links a,
.legal-links button {
  transition: color 140ms ease;
}

.site-header nav a:hover,
.site-header summary:hover,
.channel-link:hover,
.legal-links a:hover,
.legal-links button:hover {
  color: var(--pink);
}

.nav-dropdown {
  position: relative;
  height: 100%;
}

.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 100%;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-caret {
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown[open] .nav-caret,
.mobile-nav[open] .nav-caret {
  transform: rotate(225deg);
}

.nav-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% - 1px);
  left: -1.2rem;
  display: grid;
  min-width: 310px;
  color: var(--paper);
  background: #111114;
  border: 1px solid #34343a;
  box-shadow: 9px 9px 0 var(--pink);
}

.nav-panel-right {
  right: -1.2rem;
  left: auto;
}

.nav-panel a {
  display: grid;
  gap: 0.28rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #34343a;
  letter-spacing: 0.07em;
}

.nav-panel a:last-child {
  border-bottom: 0;
}

.nav-panel small {
  color: #88868d;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.header-actions {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 1.25rem;
  border-left: 1px solid var(--grid);
}

.channel-link {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--paper);
  box-shadow: 4px 4px 0 var(--pink);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The header has room for either the channel link or the balance on
   mid-width screens; the signed-in balance wins. */
@media (max-width: 1320px) {
  .header-actions:has(.balance-chip) .channel-link {
    display: none;
  }
}

.balance-chip:hover {
  color: var(--black);
  background: var(--yellow);
}

.account-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--pink);
}

.mobile-nav {
  display: none;
}

.signal-rail {
  width: 100%;
  overflow: hidden;
  color: var(--black);
  background: var(--pink);
  border-top: 1px solid var(--pink);
  border-bottom: 1px solid var(--pink);
}

.signal-track {
  display: flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  animation: signal-crawl 22s linear infinite;
}

.signal-track span,
.signal-track i {
  display: inline-grid;
  min-width: 9rem;
  min-height: 32px;
  place-items: center;
  border-right: 1px solid rgba(9, 9, 11, 0.5);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.18em;
}

.signal-track i {
  min-width: 3rem;
  color: var(--pink);
  background: var(--black);
}

@keyframes signal-crawl {
  to { transform: translateX(-50%); }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  width: min(calc(100% - 2 * var(--edge)), var(--max));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
}

.hero::before {
  position: absolute;
  top: 15%;
  left: -6rem;
  width: 20rem;
  height: 3rem;
  content: "";
  background: var(--red);
  clip-path: polygon(0 20%, 100% 0, 90% 55%, 100% 100%, 0 78%);
  transform: rotate(-8deg);
  opacity: 0.46;
}

.issue,
.section-label,
.dialog-index {
  margin: 0 0 2rem;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.issue span,
.section-label span {
  margin-right: 0.6rem;
  color: var(--black);
  background: var(--yellow);
  box-shadow: 5px 4px 0 var(--pink);
  padding: 0.32rem 0.5rem;
}

.hero h1,
.studio-copy h2,
.method h2,
.archive h2,
.release-note h2,
.script-desk h2,
.legal-dialog h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(4rem, 7.4vw, 7.5rem);
}

.hero h1 em {
  position: relative;
  color: var(--pink);
  font-style: italic;
  text-shadow: 4px 4px 0 rgba(142, 50, 255, 0.65);
}

.hero h1 em::after {
  position: absolute;
  right: -0.1em;
  bottom: -0.08em;
  left: 0;
  height: 0.12em;
  content: "";
  background: var(--white);
  clip-path: polygon(0 40%, 100% 0, 96% 100%, 3% 74%);
}

.hero-intro {
  max-width: 37rem;
  margin: 4.5rem 0 2rem;
  color: #d5d0ca;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.65;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  min-width: min(100%, 22rem);
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 2px solid var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jump-link span {
  color: var(--pink);
  font-size: 1.4rem;
  transition: transform 160ms ease;
}

.jump-link:hover span {
  transform: translateY(5px);
}

.cover-machine {
  position: relative;
  min-height: min(72vh, 710px);
  isolation: isolate;
  transform: translate(var(--shift-x), var(--shift-y));
  transition: transform 220ms ease-out;
}

.cover-machine::before {
  position: absolute;
  z-index: -2;
  inset: 8% 3% 3% 12%;
  content: "";
  background: var(--pink);
  clip-path: polygon(3% 5%, 96% 0, 100% 86%, 85% 100%, 0 91%);
  transform: rotate(2deg);
}

.cover-machine::after {
  position: absolute;
  z-index: -1;
  inset: 2% 8% 8% 5%;
  content: "";
  background: var(--violet);
  clip-path: polygon(5% 0, 100% 10%, 92% 95%, 0 100%, 8% 48%);
  transform: rotate(-3deg);
}

.production-frame {
  position: absolute;
  z-index: 2;
  top: 7%;
  right: 2%;
  width: 88%;
  height: 58%;
  margin: 0;
  background: var(--coal);
  border: 7px solid var(--white);
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.75);
  transform: rotate(1.7deg);
}

.production-frame::before {
  position: absolute;
  z-index: 1;
  inset: 7%;
  content: "";
  border: 1px solid rgba(244, 240, 232, 0.55);
  pointer-events: none;
}

.production-frame::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  content: "+";
  color: var(--yellow);
  font: 800 18px/15px "JetBrains Mono", Consolas, monospace;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.production-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.12);
  transition: filter 220ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.production-frame:hover img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.018);
}

.production-frame figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  background: rgba(9, 9, 11, 0.88);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.production-frame figcaption b {
  color: var(--pink);
  font-weight: 900;
}

.edit-track {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 6%;
  width: 82%;
  min-height: 27%;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  border: 3px solid var(--white);
  box-shadow: 10px 10px 0 var(--pink);
  transform: rotate(-1.2deg);
}

.edit-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--steel);
  font: 800 0.58rem/1 "JetBrains Mono", Consolas, monospace;
  letter-spacing: 0.1em;
}

.edit-track-head b {
  color: var(--yellow);
}

.edit-track-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1.8fr 1fr 2.2fr 0.8fr;
  gap: 3px;
  min-height: 42px;
  padding: 4px;
  border-bottom: 1px solid var(--steel);
}

.edit-track-row i {
  display: grid;
  place-items: center;
  color: var(--muted);
  font: 800 0.58rem/1 "JetBrains Mono", Consolas, monospace;
}

.edit-track-row span {
  background: var(--violet);
  border-left: 5px solid var(--pink);
}

.edit-track-row span:nth-of-type(2n) {
  background: #43206d;
  border-left-color: var(--yellow);
}

.edit-track-audio {
  grid-template-columns: 28px 1.2fr 2.5fr 1.6fr;
  min-height: 35px;
}

.edit-track-audio span {
  background: #17543a;
  border-left-color: var(--green);
}

.edit-playhead {
  position: absolute;
  z-index: 2;
  top: 25px;
  bottom: 0;
  left: 32%;
  width: 2px;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(9, 9, 11, 0.45);
  animation: edit-playhead 5.5s cubic-bezier(0.55, 0, 0.45, 1) infinite alternate;
}

.edit-playhead::before {
  position: absolute;
  top: -2px;
  left: -5px;
  width: 12px;
  height: 7px;
  content: "";
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@keyframes edit-playhead {
  0% { left: 18%; }
  35% { left: 46%; }
  62% { left: 58%; }
  100% { left: 88%; }
}

.cover-index {
  position: absolute;
  z-index: 5;
  top: 2%;
  left: 1%;
  color: var(--yellow);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.7;
  text-shadow: 5px 5px 0 var(--red);
  transform: rotate(-8deg);
}

.cover-index span {
  display: block;
  padding-left: 0.3em;
  color: var(--white);
  font-size: 0.24em;
  letter-spacing: 0.3em;
}

.cut-note {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0.5rem 0.7rem;
  color: var(--black);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--black);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cut-note-one {
  right: -1%;
  top: 17%;
  transform: rotate(6deg);
}

.cut-note-two {
  left: 1%;
  bottom: 2%;
  transform: rotate(-4deg);
}

.studio-section,
.method,
.archive {
  width: min(calc(100% - 2 * var(--edge)), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 2vw, 2rem);
  border-top: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
}

.section-label {
  display: flex;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-label::after {
  flex: 1;
  height: 1px;
  margin-left: 1.5rem;
  content: "";
  background: var(--grid);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(500px, 1.3fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.studio-copy {
  position: sticky;
  top: 2rem;
}

.studio-copy h2,
.method h2,
.archive h2 {
  font-size: clamp(3.2rem, 6.4vw, 6.7rem);
}

.studio-copy > p,
.method-heading > p {
  max-width: 32rem;
  margin: 2rem 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.machine-spec {
  margin: 3rem 0 0;
  border-top: 1px solid var(--grid);
}

.machine-spec div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--grid);
}

.machine-spec dt,
.machine-spec dd {
  margin: 0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
}

.machine-spec dt {
  color: var(--muted);
}

.machine-spec dd {
  text-align: right;
}

.workbench {
  position: relative;
  overflow: hidden;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  box-shadow: 13px 13px 0 var(--pink), 25px 25px 0 rgba(142, 50, 255, 0.52);
}

.workbench::after {
  position: absolute;
  top: -15px;
  right: 14%;
  width: 100px;
  height: 35px;
  content: "";
  background: rgba(255, 212, 55, 0.82);
  transform: rotate(3deg);
}

.workbench-topline {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  color: var(--white);
  background: var(--black);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
}

.workbench-topline p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.live-lamp {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.workbench[data-api-state="ready"] .live-lamp {
  color: var(--green);
  background: var(--green);
}

.workbench[data-api-state="offline"] .live-lamp {
  color: var(--pink);
  background: var(--pink);
}

#draft-form {
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.field-label,
.style-switcher legend,
.scene-switcher legend,
.profile-selectors legend,
.script-meta-grid label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.topic-field {
  display: grid;
  overflow: hidden;
  background: #fffdf7;
  border: 2px solid var(--black);
}

textarea,
input {
  width: 100%;
  color: var(--black);
  background: #fffdf7;
  border: 2px solid var(--black);
  border-radius: 0;
}

textarea {
  resize: vertical;
}

.topic-field textarea {
  min-height: 122px;
  min-width: 0;
  padding: 1rem;
  border: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.topic-field textarea::placeholder {
  color: #79746e;
}

.dice-button {
  position: static;
  justify-self: start;
  padding: 0.72rem 0.9rem;
  color: var(--black);
  background: var(--yellow);
  border: 0;
  border-top: 2px solid var(--black);
  border-right: 2px solid var(--black);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dice-button span {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 1rem;
  transition: transform 220ms ease;
}

.dice-button:hover span {
  transform: rotate(180deg);
}

.style-switcher,
.scene-switcher,
.profile-selectors {
  display: grid;
  gap: 0.5rem;
  margin: 1.7rem 0 0;
  padding: 0;
  border: 0;
}

.style-switcher {
  grid-template-columns: repeat(4, 1fr);
}

.style-switcher legend,
.scene-switcher legend,
.profile-selectors legend {
  grid-column: 1 / -1;
}

/* Same light paper look as the rest of the studio form. */
.profile-selectors {
  gap: 0.45rem;
  margin-top: 1.7rem;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 0;
}

.profile-selectors label {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-selectors select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  color: var(--black);
  background: #fffdf7;
  border: 2px solid var(--black);
  border-radius: 0;
  color-scheme: light;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-selectors select:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.profile-selectors p,
.profile-selectors a {
  margin: 0.2rem 0;
  color: #5f5a54;
  font-size: 0.8rem;
  line-height: 1.45;
}

.profile-selectors a {
  justify-self: start;
  color: var(--black);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.style-switcher input,
.scene-switcher input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.style-switcher label span {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.style-switcher label span:hover {
  transform: translateY(-3px);
}

.style-switcher b {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.style-switcher small {
  line-height: 1.15;
}

.style-switcher input:checked + span {
  color: var(--white);
  background: var(--black);
  box-shadow: inset 0 -5px 0 var(--pink);
}

.style-switcher input:focus-visible + span,
.scene-switcher input:focus-visible + span {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.scene-switcher {
  grid-template-columns: repeat(3, 64px);
  align-items: center;
}

.scene-switcher label span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 2px solid var(--black);
  cursor: pointer;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 900;
}

.scene-switcher input:checked + span {
  color: var(--black);
  background: var(--pink);
}

.make-button,
.approve-button,
#accept-legal,
.login-action {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.8rem;
  padding: 0 1.2rem;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--black);
  border-radius: 0;
  cursor: pointer;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 120ms ease, background 120ms ease;
}

.make-button i {
  color: var(--pink);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-style: normal;
  transition: transform 150ms ease;
}

.make-button:hover,
.approve-button:hover,
#accept-legal:hover,
.login-action:hover:not(:disabled) {
  color: var(--black);
  background: var(--pink);
}

.make-button:hover i {
  color: var(--black);
  transform: translateX(8px);
}

.make-button:disabled,
.approve-button:disabled,
.dice-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-note {
  margin: 0.8rem 0 0;
  color: #5f5a55;
  font-size: 0.72rem;
}

.machine-status {
  padding: 2rem clamp(1.2rem, 3vw, 2.4rem) 2.5rem;
  color: var(--white);
  background: var(--coal);
  border-top: 8px solid var(--pink);
}

.status-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-transform: uppercase;
}

.status-head strong {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.status-head span {
  color: var(--yellow);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.status-bar {
  display: block;
  width: 100%;
  height: 8px;
  margin: 1rem 0;
  overflow: hidden;
  appearance: none;
  background: var(--steel);
  border: 0;
  border-radius: 0;
}

.status-bar::-webkit-progress-bar {
  background: var(--steel);
}

.status-bar::-webkit-progress-value {
  background: var(--pink);
  transition: width 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.status-bar::-moz-progress-bar {
  background: var(--pink);
}

.machine-status > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-pulse {
  display: flex;
  height: 30px;
  align-items: end;
  gap: 5px;
  margin-top: 1.2rem;
}

.status-pulse i {
  width: 4px;
  height: 30%;
  background: var(--yellow);
  animation: pulse-bars 700ms ease-in-out infinite alternate;
}

.status-pulse i:nth-child(2n) { animation-delay: -200ms; height: 70%; }
.status-pulse i:nth-child(3n) { animation-delay: -400ms; height: 100%; }

@keyframes pulse-bars {
  to { height: 100%; }
}

.script-desk {
  margin-top: clamp(6rem, 10vw, 10rem);
  color: var(--black);
  background: #ddd7cb;
  border: 2px solid var(--white);
  box-shadow: 18px 18px 0 var(--pink);
}

.script-desk-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border-bottom: 2px solid var(--black);
}

.script-desk-head p {
  margin: 0 0 0.6rem;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.script-desk h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.duration-seal {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: var(--white);
  background: var(--pink);
  border-radius: 50%;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 0.7;
  transform: rotate(8deg);
}

.duration-seal span {
  display: block;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

#approve-form {
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.script-meta-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

.script-meta-grid input,
.script-meta-grid textarea {
  display: block;
  min-height: 58px;
  margin-top: 0.45rem;
  padding: 0.85rem;
  font-weight: 700;
}

.scene-list {
  margin-top: 2.5rem;
  border-top: 2px solid var(--black);
}

.scene-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(180px, 0.58fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(9, 9, 11, 0.32);
}

.scene-time {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.scene-time span {
  display: block;
  margin-top: 0.35rem;
  color: #5f5a55;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.6rem;
}

.scene-row label {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 900;
}

.scene-row textarea {
  min-height: 94px;
  margin-top: 0.4rem;
  padding: 0.8rem;
  line-height: 1.35;
}

.visual-note {
  margin: 1.15rem 0 0;
  color: #5f5a55;
  font-size: 0.78rem;
}

.visual-note b {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--black);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.62rem;
}

.approve-row {
  display: grid;
  grid-template-columns: 1fr minmax(270px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-top: 2rem;
}

.approve-row > p {
  margin: 0;
  color: #5f5a55;
  font-size: 0.8rem;
}

.approve-button {
  margin: 0;
  font-size: 1.05rem;
}

/* The button is busy, not broken: keep it bright and animate it. */
.approve-button.is-working:disabled {
  cursor: progress;
  opacity: 1;
  background-image: repeating-linear-gradient(
    -45deg,
    rgb(255 255 255 / 0.22) 0 14px,
    transparent 14px 28px
  );
  background-size: 40px 40px;
  animation: approve-stripes 900ms linear infinite;
}

@keyframes approve-stripes {
  to { background-position: 40px 0; }
}

/* Profile page: a busy button stays readable, striped and moving. */
button.is-busy,
button.is-busy:disabled {
  cursor: progress;
  opacity: 1;
  background-image: repeating-linear-gradient(
    -45deg,
    rgb(255 255 255 / 0.28) 0 14px,
    transparent 14px 28px
  );
  background-size: 40px 40px;
  animation: approve-stripes 900ms linear infinite;
}

.busy-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: var(--grid);
}

.busy-bar::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: var(--pink);
  animation: busy-bar-slide 1.2s ease-in-out infinite;
  content: "";
}

@keyframes busy-bar-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  button.is-busy,
  .busy-bar::after {
    animation: none;
  }
}

.desk-status {
  border-top-width: 6px;
}

.approved-ticket {
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
  background: var(--black);
  border-top: 10px solid var(--green);
}

.approved-ticket span {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  color: var(--black);
  background: var(--green);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.7rem;
}

.approved-ticket strong {
  display: block;
  margin: 1rem 0 0.4rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  text-transform: uppercase;
}

.approved-ticket p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
}

.method {
  position: relative;
  color: var(--black);
  background: var(--pink);
  border-color: var(--pink);
}

.method .section-label {
  color: rgba(9, 9, 11, 0.65);
}

.method .section-label span {
  color: var(--white);
  background: var(--black);
  box-shadow: 5px 4px 0 var(--yellow);
}

.method .section-label::after {
  background: rgba(9, 9, 11, 0.3);
}

.method-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: end;
}

.method-heading > p {
  color: rgba(9, 9, 11, 0.78);
  font-size: 1.15rem;
  font-weight: 700;
}

.cut-list {
  margin: clamp(4rem, 8vw, 8rem) 0 0;
  padding: 0;
  border-top: 3px solid var(--black);
  list-style: none;
}

.cut-list li {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--black);
}

.cut-list > li > span {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 900;
}

.cut-list b {
  display: block;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 0.9;
  text-transform: uppercase;
}

.cut-list p {
  max-width: 41rem;
  margin: 0.6rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.archive-head a {
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--pink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.film-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  align-items: end;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: 12px;
  background: var(--white);
}

.film-cell {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.76;
  color: var(--white);
  background: var(--coal);
  border: 1px solid var(--black);
}

.film-cell::before,
.film-cell::after {
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  height: 16px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--black) 0 12px, transparent 12px 20px);
}

.film-cell::before { top: 0; }
.film-cell::after { bottom: 0; }

.film-cell > span,
.film-cell > b {
  position: absolute;
  z-index: 3;
  left: 1rem;
  padding: 0.28rem 0.4rem;
  color: var(--black);
  background: var(--yellow);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.62rem;
}

.film-cell > span { top: 2rem; }
.film-cell > b { bottom: 2rem; background: var(--pink); }

.film-cell > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms ease;
}

.film-cell:hover > img {
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.045);
}

.film-cell-tall {
  aspect-ratio: 0.68;
}

.film-cell-wide > img {
  object-position: 48% 50%;
}

.film-cell-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.film-cell-logo > img {
  width: 72%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}

.film-cell-logo p {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.release-note {
  display: grid;
  grid-template-columns: 0.6fr 1.7fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(calc(100% - 2 * var(--edge)), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 2vw, 2rem);
  border: 1px solid var(--grid);
}

.release-note > p {
  margin: 0;
  color: var(--yellow);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.release-note h2 {
  font-size: clamp(2.8rem, 5.4vw, 5.7rem);
}

.release-note h2 span {
  color: var(--pink);
}

.release-note > div p {
  margin-top: 0;
  color: var(--muted);
}

.release-note > div a {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--pink);
}

.site-footer {
  display: grid;
  grid-template-columns: 0.6fr 1.7fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  width: min(calc(100% - 2 * var(--edge)), var(--max));
  margin: 0 auto;
  padding: 3rem clamp(1rem, 2vw, 2rem) 4rem;
  border-right: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.3rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-links button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.site-footer > p {
  margin: 0;
  color: #716d69;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.65rem;
  text-align: right;
}

.legal-dialog {
  width: min(calc(100% - 2rem), 720px);
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: var(--black);
  background: var(--white);
  border: 0;
  box-shadow: 18px 18px 0 var(--pink);
}

.legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}

.legal-dialog-inner {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 2px solid var(--black);
}

.dialog-index {
  color: #5f5a55;
}

.legal-dialog h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.legal-dialog p:not(.dialog-index) {
  max-width: 34rem;
}

.legal-dialog ul {
  margin: 1.5rem 0;
  padding: 0;
  border-top: 2px solid var(--black);
  list-style: none;
}

.legal-dialog li {
  border-bottom: 1px solid rgba(9, 9, 11, 0.35);
}

.legal-dialog li a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 800;
}

#accept-legal,
.login-action {
  font-size: 1rem;
}

.login-action {
  text-decoration: none;
}

.login-action:disabled {
  cursor: progress;
  opacity: 0.6;
}

.dialog-cancel {
  display: block;
  margin: 1rem auto 0;
  padding: 0.3rem;
  color: #5f5a55;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 7px 7px 0 var(--pink);
  font-size: 0.85rem;
  font-weight: 800;
}

.subpage {
  width: min(calc(100% - 2 * var(--edge)), var(--max));
  min-height: 70vh;
  margin: 0 auto;
  border-right: 1px solid var(--grid);
  border-left: 1px solid var(--grid);
}

.page-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 5vw, 5.5rem);
  border-bottom: 1px solid var(--grid);
}

.page-intro::after {
  position: absolute;
  right: -5vw;
  bottom: -9vw;
  width: clamp(180px, 29vw, 440px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid #2c2c31;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5vw #111114, 0 0 0 calc(2.5vw + 1px) #2c2c31;
}

.page-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 1.2rem 0 1.5rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.page-intro h1 em {
  color: var(--pink);
  font-style: normal;
}

.page-intro > p:last-of-type {
  position: relative;
  z-index: 1;
  max-width: 690px;
  color: #aaa8ae;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

.account-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--grid);
}

.payment-panel {
  border-bottom: 1px solid var(--grid);
}

.payment-panel-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--grid);
}

.payment-panel-head h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.payment-panel-head h2 em {
  color: var(--pink);
  font-style: normal;
}

.payment-panel-head > p:last-child,
.payment-channel-note p:last-child {
  max-width: 440px;
  margin: 0;
  color: #aaa8ae;
  line-height: 1.6;
}

.payment-balance {
  margin: 0;
  padding: 1rem clamp(1.5rem, 3vw, 3rem);
  border-bottom: 1px solid var(--grid);
  color: var(--paper);
  font-weight: 700;
}

.payment-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-bottom: 1px solid var(--grid);
}

.payment-product {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--grid);
}

.payment-product:last-child {
  border-right: 0;
}

.payment-product-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.payment-product-link:hover,
.payment-product-link:focus-visible {
  background: #16161a;
}

.payment-product-action {
  align-self: flex-start;
  padding: 0.6rem 0.8rem;
  color: var(--black);
  background: var(--yellow);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--pink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.payment-product-link:hover .payment-product-action {
  box-shadow: 1px 1px 0 var(--pink);
  transform: translate(2px, 2px);
}

.mobile-balance {
  color: var(--yellow) !important;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.payment-product h3 {
  margin: 0;
  color: var(--paper);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.payment-product-description {
  flex: 1;
  margin: 0;
  color: #aaa8ae;
  line-height: 1.5;
}

.payment-product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--yellow);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-product-price span:last-child {
  color: #aaa8ae;
  font-size: 0.65rem;
}

.payment-product .panel-button {
  align-self: flex-start;
  margin-top: 0;
}

.payment-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: #aaa8ae;
  line-height: 1.6;
}

.payment-channel-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.payment-channel-note .connection-index {
  margin: 0 0 0.75rem;
}

.payment-channel-note p:last-child {
  margin: 0;
}

.payment-channel-link {
  flex: none;
  margin-top: 0;
  color: var(--yellow);
}

.connection-card {
  min-height: 360px;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid var(--grid);
}

.connection-card:last-child {
  border-right: 0;
}

.connection-index {
  color: var(--pink);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.connection-card h2,
.danger-zone h2,
.release-banner h2 {
  margin: 1rem 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.connection-card > p:not(.connection-index),
.danger-zone p,
.release-banner p {
  max-width: 560px;
  color: #aaa8ae;
  line-height: 1.6;
}

.panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.4rem;
  padding: 0.95rem 1.1rem;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--paper);
  box-shadow: 6px 6px 0 var(--pink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.panel-button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--pink);
}

.panel-button-red:hover:not(:disabled) {
  box-shadow: 4px 4px 0 var(--yellow);
}

.panel-button-red {
  color: var(--paper);
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--yellow);
}

.panel-button:disabled {
  color: #69676c;
  background: #25252a;
  border-color: #3a393f;
  box-shadow: none;
  cursor: not-allowed;
}

/* Busy is not unavailable: keep the yellow button and its text readable. */
.panel-button.is-busy:disabled {
  color: var(--black);
  background-color: var(--yellow);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--pink);
  cursor: progress;
}

.text-button {
  display: block;
  margin-top: 1.3rem;
  padding: 0;
  color: #aaa8ae;
  background: none;
  border: 0;
  border-bottom: 1px solid currentcolor;
  cursor: pointer;
}

.account-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--grid);
}

.account-notes article {
  padding: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--grid);
}

.account-notes article:last-child {
  border-right: 0;
}

.account-notes b {
  color: var(--yellow);
  text-transform: uppercase;
}

.account-notes p {
  color: #918f95;
  line-height: 1.55;
}

.danger-zone,
.release-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--grid);
}

.release-banner .panel-button {
  flex: none;
  white-space: nowrap;
}

.danger-button {
  flex: none;
  color: var(--pink);
}

.project-board {
  min-height: 360px;
}

.project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 130px;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--grid);
}

.project-number {
  color: var(--pink);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.project-row h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.project-row p {
  margin: 0;
  color: #85838a;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
}

.project-download {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--pink);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-download:hover {
  color: var(--yellow);
}

.project-row strong {
  padding: 0.55rem 0.7rem;
  color: var(--black);
  background: var(--yellow);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.empty-projects {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 3rem;
  text-align: center;
}

.empty-projects b {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  text-transform: uppercase;
}

.empty-projects p {
  color: #85838a;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.editorial-card {
  min-height: 430px;
  padding: clamp(2rem, 5vw, 5rem);
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.editorial-card:nth-child(2n) {
  border-right: 0;
}

.editorial-card > span {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.editorial-card h2 {
  max-width: 500px;
  margin: 3rem 0 1rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.editorial-card p {
  max-width: 500px;
  color: #aaa8ae;
  line-height: 1.6;
}

.pink-card {
  color: var(--black);
  background: var(--pink);
}

.pink-card p,
.yellow-card p {
  color: #18171a;
}

.yellow-card {
  color: var(--black);
  background: var(--yellow);
}

.image-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(0.7) contrast(1.12);
}

.image-card span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.55rem;
  color: var(--black);
  background: var(--yellow);
}

.voice-rack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--grid);
}

.voice-rack article {
  position: relative;
  min-height: 390px;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  border-right: 1px solid var(--grid);
}

.voice-rack article:last-child {
  border-right: 0;
}

.voice-rack span {
  color: var(--pink);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.voice-rack h2 {
  margin-top: 3rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.voice-rack p {
  position: relative;
  z-index: 1;
  color: #aaa8ae;
  line-height: 1.55;
}

.voice-rack i {
  position: absolute;
  right: -20%;
  bottom: -32%;
  width: 80%;
  aspect-ratio: 1;
  border: 14px solid var(--pink);
  border-radius: 50%;
  opacity: 0.18;
}

.process-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-timeline li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 190px;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--grid);
}

.process-timeline li > span {
  color: var(--pink);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 3.2rem;
}

.process-timeline b {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  text-transform: uppercase;
}

.process-timeline p {
  max-width: 670px;
  color: #918f95;
  line-height: 1.55;
}

.process-timeline strong {
  color: var(--yellow);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(0.25deg);
  transition: opacity 450ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: minmax(190px, 0.8fr) minmax(360px, 1.4fr) minmax(180px, 0.7fr);
  }

  .channel-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
  }

  .production-frame {
    right: 1%;
    width: 94%;
    height: 56%;
  }

  .cut-note-two {
    display: none;
  }

  .edit-track {
    right: 4%;
    width: 91%;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-copy {
    position: static;
  }

  .machine-spec {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
  }

  .release-note,
  .site-footer {
    grid-template-columns: 1fr 2fr;
  }

  .release-note > div,
  .site-footer > p {
    grid-column: 2;
  }

  .film-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  :root {
    --edge: 0.75rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .primary-nav,
  .header-actions {
    display: none;
  }

  .header-brand {
    padding: 0.65rem 0.75rem;
    border-right: 0;
  }

  .header-brand > p {
    display: none;
  }

  .mobile-nav {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border-left: 1px solid var(--grid);
  }

  .mobile-nav summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav > div {
    position: fixed;
    z-index: 100;
    top: 72px;
    right: var(--edge);
    left: var(--edge);
    display: grid;
    color: var(--paper);
    background: #111114;
    border: 1px solid #34343a;
    box-shadow: 7px 7px 0 var(--pink);
  }

  .mobile-nav > div a {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #34343a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .signal-track {
    animation-duration: 16s;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
  }

  .page-intro {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .page-intro h1 {
    font-size: clamp(3.3rem, 16vw, 5.5rem);
  }

  .account-board,
  .account-notes,
  .payment-panel-head,
  .editorial-grid,
  .voice-rack {
    grid-template-columns: 1fr;
  }

  .connection-card,
  .account-notes article,
  .payment-product,
  .editorial-card,
  .voice-rack article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--grid);
  }

  .payment-product:last-child {
    border-bottom: 0;
  }

  .payment-channel-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .danger-zone,
  .release-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-row,
  .process-timeline li {
    grid-template-columns: 54px 1fr;
    align-items: start;
    gap: 1rem;
  }

  .project-row strong,
  .process-timeline strong {
    grid-column: 2;
    width: max-content;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16vw, 5.5rem);
  }

  .cover-machine {
    min-height: 560px;
    margin-top: 1rem;
  }

  .production-frame {
    top: 8%;
    right: 3%;
    width: 92%;
    height: 54%;
  }

  .edit-track {
    right: 6%;
    bottom: 7%;
    width: 88%;
    min-height: 29%;
  }

  .cover-index {
    left: 2%;
  }

  .cut-note-one {
    top: 34%;
  }

  .studio-section,
  .method,
  .archive {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .studio-copy h2,
  .method h2,
  .archive h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .machine-spec {
    display: block;
  }

  .workbench {
    margin-right: 12px;
    box-shadow: 8px 8px 0 var(--pink), 14px 14px 0 rgba(142, 50, 255, 0.52);
  }

  .workbench-topline > span:last-child {
    display: none;
  }

  .style-switcher {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-switcher {
    grid-template-columns: repeat(3, 1fr);
  }

  .scene-switcher legend {
    grid-column: 1 / -1;
    margin-bottom: 0.2rem;
  }

  .script-desk {
    margin-right: 12px;
    box-shadow: 9px 9px 0 var(--pink);
  }

  .script-desk-head {
    align-items: center;
  }

  .duration-seal {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .script-meta-grid,
  .approve-row,
  .method-heading {
    grid-template-columns: 1fr;
  }

  .scene-row {
    grid-template-columns: 64px 1fr;
  }

  .visual-note {
    grid-column: 2;
    margin-top: 0;
  }

  .cut-list li {
    grid-template-columns: 78px 1fr;
    gap: 1rem;
  }

  .archive-head {
    display: block;
  }

  .archive-head a {
    display: inline-block;
    margin-top: 2rem;
  }

  .film-strip {
    grid-template-columns: 1fr 1fr;
    padding: 7px;
  }

  .film-cell {
    aspect-ratio: 0.68;
  }

  .release-note,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .release-note > div,
  .site-footer > p {
    grid-column: auto;
  }

  .site-footer > p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .wordmark {
    font-size: 1rem;
  }

  .wordmark img {
    width: 39px;
    height: 39px;
  }

  .hero {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  .cover-machine {
    min-height: 470px;
  }

  .production-frame {
    right: 1%;
    width: 96%;
    height: 52%;
    border-width: 5px;
  }

  .production-frame figcaption span {
    display: none;
  }

  .edit-track {
    right: 3%;
    width: 94%;
  }

  .cut-note-one {
    right: -2%;
  }

  .film-strip {
    grid-template-columns: 1fr;
  }

  .film-cell {
    aspect-ratio: 0.78;
  }

  .scene-row {
    grid-template-columns: 1fr;
  }

  .visual-note {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cover-machine {
    transform: none;
  }
}

.profile-manager .page-intro > p:last-child {
  max-width: 760px;
}

.profile-session-note,
.profile-session-panel {
  margin: 1.5rem 0;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  color: var(--white);
  background: #17171d;
  border-left: 5px solid var(--yellow);
}

.profile-session-panel h2,
.profile-session-panel p {
  margin-top: 0;
}

.profile-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  padding-left: 1.2rem;
}

.profile-legal-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.profile-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.6rem;
  color: var(--white);
  font-size: 0.88rem;
}

.profile-check input {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--pink);
}

.profile-status {
  min-height: 1.8rem;
  margin: 1.2rem 0;
  color: var(--green);
}

.profile-status[data-state="error"] {
  color: var(--yellow);
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.profile-panel {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  color: var(--white);
  background: var(--coal);
  border: 1px solid var(--grid);
  border-top: 6px solid var(--pink);
}

.profile-panel:nth-child(2) {
  border-top-color: var(--violet);
}

.profile-panel-heading h2 {
  margin: 0.25rem 0 0.6rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.profile-panel-heading > p:last-child {
  color: #aaa8ae;
}

.profile-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.profile-form > label:not(.profile-check) {
  margin-top: 0.55rem;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-form input:not([type="hidden"]),
.profile-form textarea,
.profile-form select {
  min-width: 0;
  padding: 0.8rem;
  color: var(--black);
  background: #fffdf7;
  border: 2px solid var(--black);
  border-radius: 0;
}

.profile-form input:focus-visible,
.profile-form textarea:focus-visible,
.profile-form select:focus-visible {
  outline-color: var(--pink);
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.profile-form-actions .panel-button {
  margin-top: 0;
}

.profile-secondary-button,
.profile-danger-button {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: #292931;
  border: 1px solid #686570;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-secondary-button:hover:not(:disabled) {
  background: #393943;
}

.profile-danger-button {
  color: var(--white);
  background: #60152b;
  border-color: #a33a58;
}

.profile-draft-note {
  margin: 0.2rem 0;
  color: var(--yellow);
  font-size: 0.84rem;
}

.profile-list-heading {
  margin: 2rem 0 0.7rem;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-list {
  display: grid;
  gap: 0.75rem;
}

.profile-entry {
  min-width: 0;
  padding: 1rem;
  color: var(--black);
  background: var(--paper);
  overflow-wrap: anywhere;
}

.profile-entry h4 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.profile-entry p {
  margin: 0.45rem 0;
  color: #45424a;
  font-size: 0.88rem;
}

.profile-entry .connection-index {
  color: #65616a;
}

.profile-empty {
  color: #aaa8ae;
}

@media (max-width: 850px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }
}

/* Channel growth */
.youtube-terms {
  max-width: 560px;
  margin-top: 1.4rem;
  color: #77747c;
  font-size: 0.82rem;
  line-height: 1.55;
}

.youtube-terms a {
  color: #aaa8ae;
  border-bottom: 1px solid currentcolor;
}

.channel-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  border-bottom: 1px solid var(--grid);
}

.channel-stats-head {
  grid-row: span 2;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.channel-stats-head h2 {
  margin: 1rem 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.channel-stats-head h2 em {
  color: var(--pink);
  font-style: normal;
}

.channel-stats-head > p:last-child {
  max-width: 440px;
  color: #aaa8ae;
  line-height: 1.6;
}

.stats-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: end;
  border-bottom: 1px solid var(--grid);
}

.stats-figures article {
  display: grid;
  gap: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--grid);
}

.stats-figures article:last-child {
  border-right: 0;
}

.stats-figures span {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-figures b {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stats-figures i {
  min-height: 1.2em;
  color: var(--green);
  font-style: normal;
  font-size: 0.85rem;
}

.stats-chart-wrap {
  grid-column: 2;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--grid);
}

.stats-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stats-tab {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.stats-tab:hover,
.stats-tab:focus-visible {
  color: var(--white);
  border-color: var(--pink);
}

.stats-tab.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--black);
  font-weight: 800;
}

.stats-chart {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 260px);
}

.stats-grid {
  stroke: var(--grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.stats-line {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.stats-dot {
  fill: var(--yellow);
  stroke: var(--black);
  stroke-width: 2;
}

.stats-empty {
  color: var(--muted);
}

.stats-top-wrap {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4.5rem);
}

.stats-top {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding-left: 1.4rem;
}

.stats-top li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--grid);
}

.stats-top a {
  color: var(--white);
  border-bottom: 1px solid var(--pink);
}

.stats-top span,
.stats-top-empty {
  color: var(--muted);
}

@media (max-width: 860px) {
  .channel-stats {
    grid-template-columns: 1fr;
  }

  .channel-stats-head {
    grid-row: auto;
    border-right: 0;
  }

  .stats-chart-wrap {
    grid-column: 1;
  }

  .stats-top-wrap {
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 560px) {
  .stats-figures {
    grid-template-columns: 1fr;
  }

  .stats-figures article {
    border-right: 0;
    border-bottom: 1px solid var(--grid);
  }

  .stats-figures article:last-child {
    border-bottom: 0;
  }
}
