:root {
  --bg: #050505;
  --bg-soft: #0b0d0e;
  --panel: #111314;
  --panel-strong: #171a1b;
  --text: #f4f1eb;
  --muted: #b9b2aa;
  --dim: #7d7770;
  --line: rgba(244, 241, 235, 0.16);
  --line-strong: rgba(244, 241, 235, 0.28);
  --cyan: #03e4f0;
  --cyan-deep: #0099a8;
  --cyan-soft: #79f4f7;
  --alien: #9df45b;
  --gold: #c89d66;
  --radius: 6px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body:not(.intro-cleared) {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.is-hidden {
  display: none !important;
}

.intro-game {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #000;
  color: white;
  cursor: crosshair;
  image-rendering: pixelated;
  touch-action: none;
}

.intro-game.is-loading {
  cursor: wait;
}

.intro-game::before,
.intro-game::after {
  position: absolute;
  inset: 1rem;
  z-index: 2;
  content: "";
  border: 2px solid rgba(3, 228, 240, 0.42);
  clip-path: polygon(0 0, 38% 0, 39% 8px, 48% 8px, 49% 0, 100% 0, 100% 100%, 72% 100%, 71% calc(100% - 8px), 57% calc(100% - 8px), 56% 100%, 0 100%);
  pointer-events: none;
}

.intro-game::after {
  inset: 1.35rem;
  border-color: rgba(242, 48, 170, 0.25);
  transform: translate(4px, -4px);
}

.intro-game.is-playing .intro-game-canvas {
  cursor: crosshair;
}

.intro-game.is-loading .intro-game-hud,
.intro-game.is-loading .intro-radar,
.intro-game.is-loading .intro-game-menu,
.intro-game.is-loading .intro-exit-button,
.intro-game.is-loading .intro-touch-hint,
.intro-game.is-loading .intro-fail-message {
  opacity: 0;
  pointer-events: none;
}

.intro-game.is-exiting {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 500ms ease, transform 500ms ease;
}

.intro-game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-game-hud,
.intro-radar,
.intro-game-menu,
.intro-exit-button,
.intro-touch-hint,
.intro-fail-message {
  position: absolute;
  z-index: 4;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}

.intro-game-hud,
.intro-radar {
  border: 3px solid #7d2cf0;
  background: rgba(0, 0, 0, 0.72);
  box-shadow:
    0 0 0 2px rgba(242, 48, 170, 0.32),
    inset 0 0 0 2px rgba(3, 228, 240, 0.14),
    0 0 28px rgba(125, 44, 240, 0.34);
}

.intro-exit-button {
  top: 10.7rem;
  right: 1.8rem;
  display: none;
  min-height: 2.65rem;
  padding: 0 1rem;
  border: 2px solid #03e4f0;
  background: rgba(0, 0, 0, 0.78);
  color: #03e4f0;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 0 2px rgba(3, 228, 240, 0.12),
    0 0 18px rgba(3, 228, 240, 0.28);
}

.intro-exit-button:hover,
.intro-exit-button:focus-visible {
  background: rgba(3, 228, 240, 0.16);
  transform: translateY(-1px);
}

.intro-game-hud {
  display: grid;
  gap: 0.25rem;
  min-width: 14rem;
  padding: 1rem 1.2rem;
  color: #03e4f0;
}

.intro-game-hud span,
.intro-radar span {
  color: #03e4f0;
  font-size: clamp(0.78rem, 1.35vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.intro-score {
  top: 1.8rem;
  left: 1.8rem;
}

.intro-score strong {
  color: white;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.intro-score small {
  color: #f230aa;
  font-size: clamp(0.78rem, 1.3vw, 1.2rem);
  font-weight: 900;
  line-height: 1.4;
}

.intro-score small b {
  color: white;
  font-weight: 950;
}

.intro-status {
  top: 1.8rem;
  right: 1.8rem;
  min-width: 15rem;
}

.intro-lives,
.intro-shield {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.intro-lives span {
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  background: url("assets/intro-game/ship-player-ufo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(3, 228, 240, 0.8));
}

.intro-shield span {
  width: 1.15rem;
  height: 1rem;
  background: linear-gradient(180deg, #03e4f0, #1978ff);
}

.intro-shield span.is-empty {
  opacity: 0.16;
}

.intro-game-menu {
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(44rem, calc(100vw - 2rem));
  padding: clamp(1rem, 3vw, 1.7rem);
  text-align: center;
  transform: translate(-50%, -48%);
}

.intro-game.is-ready .intro-game-hud,
.intro-game.is-ready .intro-radar,
.intro-game.is-ready .intro-game-menu {
  animation: introFadeIn 420ms ease both;
}

@keyframes introFadeIn {
  from {
    opacity: 0;
    filter: blur(2px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

.intro-game-menu p {
  width: min(100%, 39rem);
  margin: 1.1rem 0 1rem;
  padding: 0.7rem 1rem;
  border: 2px solid #03e4f0;
  box-shadow:
    0 0 0 2px rgba(125, 44, 240, 0.5),
    0 0 22px rgba(3, 228, 240, 0.24);
  color: white;
  background: rgba(0, 0, 0, 0.76);
  font-size: clamp(0.9rem, 1.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.intro-button {
  min-height: 4rem;
  padding: 0 1.4rem;
  border: 3px solid currentColor;
  color: white;
  background: transparent;
  font-size: clamp(1rem, 2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 20px currentColor;
}

.intro-button-primary {
  color: #f230aa;
  background: rgba(242, 48, 170, 0.24);
}

.intro-button-secondary {
  color: #03e4f0;
  background: rgba(3, 228, 240, 0.14);
}

.intro-button span {
  color: white;
}

.intro-button:hover,
.intro-button:focus-visible {
  transform: translateY(-2px);
}

.intro-game.is-playing .intro-exit-button {
  top: auto;
  right: 50%;
  bottom: 1.8rem;
  display: inline-grid;
  place-items: center;
  transform: translateX(50%);
}

.intro-game.is-playing .intro-exit-button:hover,
.intro-game.is-playing .intro-exit-button:focus-visible {
  transform: translateX(50%) translateY(-1px);
}

.intro-button.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.intro-touch-hint {
  right: 50%;
  bottom: 5.1rem;
  display: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(3, 228, 240, 0.56);
  background: rgba(0, 0, 0, 0.54);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
  transform: translateX(50%);
}

.intro-game.is-playing .intro-touch-hint {
  display: block;
}

.intro-fail-message {
  top: 50%;
  left: 50%;
  display: none;
  width: min(46rem, calc(100vw - 2rem));
  padding: 1rem 1.2rem;
  border: 3px solid #f230aa;
  background: rgba(0, 0, 0, 0.84);
  color: white;
  font-size: clamp(1rem, 2.3vw, 2rem);
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 0 14px rgba(242, 48, 170, 0.74);
  box-shadow:
    inset 0 0 0 2px rgba(3, 228, 240, 0.2),
    0 0 28px rgba(242, 48, 170, 0.45);
  transform: translate(-50%, -50%);
}

.intro-game.is-failed .intro-fail-message {
  display: block;
  animation: introFailPulse 600ms ease both;
}

.intro-game.is-failed .intro-game-hud,
.intro-game.is-failed .intro-radar,
.intro-game.is-failed .intro-exit-button,
.intro-game.is-failed .intro-touch-hint {
  opacity: 0;
  pointer-events: none;
}

@keyframes introFailPulse {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.intro-radar {
  right: 1.8rem;
  bottom: 1.8rem;
  display: grid;
  gap: 0.55rem;
  width: min(25rem, 28vw);
  padding: 0.8rem;
  text-align: center;
}

.intro-radar-grid {
  position: relative;
  height: 5.2rem;
  overflow: hidden;
  border: 2px solid rgba(3, 228, 240, 0.45);
  background:
    linear-gradient(rgba(3, 228, 240, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 228, 240, 0.18) 1px, transparent 1px);
  background-size: 1.2rem 1.2rem;
}

.intro-radar-grid::before {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  width: 0;
  height: 0;
  content: "";
  border-right: 0.9rem solid transparent;
  border-bottom: 2.4rem solid #03e4f0;
  border-left: 0.9rem solid transparent;
  transform: translateX(-50%);
}

.intro-radar-grid i {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  background: #f230aa;
  box-shadow: 0 0 12px #f230aa;
}

.intro-radar-grid i:nth-child(1) { top: 18%; left: 12%; }
.intro-radar-grid i:nth-child(2) { top: 54%; left: 22%; }
.intro-radar-grid i:nth-child(3) { top: 25%; left: 62%; }
.intro-radar-grid i:nth-child(4) { top: 62%; left: 70%; }
.intro-radar-grid i:nth-child(5) { top: 18%; left: 86%; }
.intro-radar-grid i:nth-child(6) { top: 48%; left: 92%; background: #1978ff; }

.intro-radar strong {
  color: #03e4f0;
  font-size: clamp(0.75rem, 1.2vw, 1.1rem);
}

.intro-radar strong span {
  color: #f230aa;
}

.construction-banner {
  width: 100%;
  padding: 0.65rem 1rem;
  color: #050505;
  background: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 178px 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(1.2rem, 5vw, 6.8rem);
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  width: 150px;
}

.brand-mark {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav [data-custom-nav] {
  display: contents;
}

.site-nav a {
  position: relative;
  padding: 1.6rem 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 1.25rem;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0 1.45rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta,
.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #001113;
  box-shadow: 0 18px 42px rgba(3, 228, 240, 0.2);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button svg,
.header-cta svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link.turquoise {
  color: var(--cyan-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  transform: none;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.28));
  mix-blend-mode: screen;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.18) 22%, transparent 48%, rgba(0, 0, 0, 0.16) 76%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 56%, rgba(5, 5, 5, 0.86) 100%);
}

.hero-lower {
  position: absolute;
  left: clamp(1.25rem, 6vw, 7.2rem);
  right: clamp(1.25rem, 6vw, 7.2rem);
  bottom: clamp(2rem, 6vw, 5rem);
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

.hero-lower p {
  max-width: 42rem;
  margin: 0;
  color: rgba(244, 241, 235, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}

.overview-band,
.about-contact-band,
.library-band,
.site-footer {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 6vw, 7.2rem);
}

.overview-band {
  display: grid;
  grid-template-columns: minmax(18rem, 1.32fr) minmax(17rem, 0.72fr) minmax(17rem, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  padding-top: 2.25rem;
  padding-bottom: 2.8rem;
  background: linear-gradient(180deg, rgba(13, 17, 18, 0.98), rgba(7, 9, 10, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--line);
}

.overview-column + .overview-column {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}

.overview-column.first-visible,
.about-contact-band.single-panel .contact-panel {
  border-left: 0;
  padding-left: 0;
}

.section-kicker {
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.work-item {
  position: relative;
  display: flex;
  min-height: 8.95rem;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.48rem;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid rgba(244, 241, 235, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 241, 235, 0.045), transparent 42%),
    rgba(8, 11, 12, 0.94);
  box-shadow: inset 0 1px 0 rgba(244, 241, 235, 0.04);
  color: white;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.work-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--card-accent, var(--cyan));
  opacity: 0.9;
}

.work-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 34%);
  pointer-events: none;
}

.work-taxonomy .work-item {
  min-height: 7.6rem;
}

.work-taxonomy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-item:hover {
  border-color: rgba(3, 228, 240, 0.42);
  background:
    linear-gradient(180deg, rgba(244, 241, 235, 0.06), transparent 42%),
    rgba(11, 15, 16, 0.98);
  transform: translateY(-2px);
}

.work-icon {
  position: relative;
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--card-accent, var(--cyan));
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.work-item span,
.work-item small {
  position: relative;
  z-index: 1;
}

.work-item span {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.05;
}

.work-item small {
  max-width: 12rem;
  color: rgba(244, 241, 235, 0.72);
  font-size: 0.68rem;
  line-height: 1.25;
}

.shot-1 {
  --card-accent: var(--cyan);
}

.shot-2 {
  --card-accent: #d6a560;
}

.shot-3 {
  --card-accent: #8df260;
}

.shot-4 {
  --card-accent: #66d7ff;
}

.shot-5 {
  --card-accent: #a9f15f;
}

.shot-6 {
  --card-accent: #35e0d2;
}

.shot-7 {
  --card-accent: #caa268;
}

.shot-8 {
  --card-accent: #68d7d0;
}

.service-stack {
  display: grid;
  gap: 1.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-stack li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.service-stack svg,
.contact-list svg {
  width: 23px;
  height: 23px;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-stack span {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.service-stack small {
  grid-column: 2;
  margin-top: -0.72rem;
  font-size: 0.76rem;
}

.service-stack small,
.process-list p,
.about-panel p,
.contact-list,
.library-empty,
.site-footer span {
  color: var(--muted);
  line-height: 1.45;
}

.process-list {
  display: grid;
  gap: 1.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 1rem;
}

.process-list span {
  grid-row: span 2;
  color: var(--cyan);
  font-weight: 900;
}

.process-list strong {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-list p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
}

.about-contact-band {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(20rem, 0.84fr);
  min-height: 18rem;
  padding-top: clamp(2.5rem, 5vw, 4.2rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.2rem);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.8) 46%, rgba(5, 5, 5, 0.9) 100%),
    url("Piton BG with Drone.png") center 58% / cover;
  border-bottom: 1px solid var(--line);
}

.about-panel {
  max-width: 43rem;
}

.about-panel h2,
.contact-panel h2,
.library-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 3.2vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.about-panel p {
  max-width: 38rem;
  margin: 0 0 0.85rem;
}

.contact-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 1.4rem;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid var(--line);
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.library-band {
  padding-top: clamp(2.3rem, 5vw, 4.2rem);
  padding-bottom: clamp(2.3rem, 5vw, 4.2rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.admin-link {
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-empty {
  display: grid;
  min-height: 8rem;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.library-empty.hidden {
  display: none;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.library-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.library-card iframe,
.library-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: black;
}

.library-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
}

.library-card-body h3 {
  margin: 0;
  font-size: 0.96rem;
}

.library-card-body span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.media-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  padding: 0 0.9rem 0.9rem;
}

.media-assignment label {
  color: var(--muted);
  font-size: 0.72rem;
}

.media-assignment select {
  min-height: 38px;
  font-size: 0.8rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.work-page-hero,
.work-page-body {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 6vw, 7.2rem);
}

.work-page-hero {
  display: grid;
  gap: 1rem;
  min-height: 34rem;
  align-content: end;
  padding-top: clamp(6rem, 12vw, 11rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.62) 48%, rgba(5, 5, 5, 0.92) 100%),
    radial-gradient(circle at 72% 34%, rgba(3, 228, 240, 0.24), transparent 26%),
    linear-gradient(145deg, #050505, #101314);
  border-bottom: 1px solid var(--line);
}

.work-page-hero h1 {
  max-width: 56rem;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.work-page-hero p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.45;
}

.work-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2.4rem, 5vw, 4rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.work-page-body h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1;
}

.work-page-body p {
  max-width: 54rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.custom-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.rich-text {
  display: grid;
  gap: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.rich-text p {
  margin: 0;
}

.work-page-body aside {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 17, 18, 0.82);
}

.work-page-body aside span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-page-body aside strong {
  color: var(--cyan);
  font-size: 1.25rem;
}

.work-page-library {
  background: var(--bg);
}

.footer-logo {
  width: 150px;
}

.social-row {
  display: flex;
  gap: 0.8rem;
}

.social-row a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.social-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 4vw;
}

.modal.active {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.modal-stage {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal-stage iframe,
.modal-stage video {
  width: 100%;
  height: 100%;
  border: 0;
  background: black;
}

.modal-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18)),
    url("assets/hero-production-camera.png") center / cover;
  color: white;
  text-align: center;
}

.modal-placeholder strong {
  font-size: clamp(1.8rem, 4vw, 4rem);
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(3, 228, 240, 0.12), transparent 38rem),
    var(--bg);
}

.admin-shell {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 4rem);
}

.admin-heading {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.admin-heading p,
.studio-copy span,
.drop-zone span {
  color: var(--muted);
  line-height: 1.5;
}

.admin-studio,
.manager,
.library-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-studio {
  display: grid;
  grid-template-columns: minmax(17rem, 0.45fr) minmax(20rem, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--panel);
}

.studio-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

.studio-copy p {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-field {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 800;
}

.manager {
  overflow: hidden;
  background: var(--bg-soft);
}

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

.tab {
  min-height: 52px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.tab.active {
  border-bottom-color: var(--cyan);
  color: white;
}

.manager-panel {
  display: none;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(15rem, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.manager-panel.active {
  display: grid;
}

.youtube-panel.active {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 0.45rem;
  color: white;
  font-size: 0.84rem;
  font-weight: 850;
}

.drop-zone {
  place-items: center;
  min-height: 13rem;
  padding: 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.drop-zone.dragging {
  border-color: var(--cyan);
  background: rgba(3, 228, 240, 0.12);
}

.drop-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-zone svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-stack {
  display: grid;
  gap: 1rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 6.4rem;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  line-height: 1.45;
}

select option {
  background: #070909;
  color: var(--text);
}

select option:checked {
  background: var(--cyan);
  color: #001113;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(3, 228, 240, 0.18);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: default;
  opacity: 0.86;
}

.input-with-icon {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.input-with-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 0.7rem;
  fill: var(--cyan);
}

.input-with-icon input {
  border: 0;
  background: transparent;
}

.button.full {
  width: 100%;
}

.button.ghost,
.text-button {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.text-button {
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 850;
}

code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.backend-heading {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.backend-heading p {
  margin: 0 0 0.75rem;
}

.backend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.backend-studio {
  grid-template-columns: minmax(15rem, 0.24fr) minmax(0, 1fr);
}

.backend-manager {
  min-width: 0;
}

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

.backend-panel.active {
  display: block;
}

.site-config-form {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
}

.backend-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0 0.6rem;
}

.backend-form-head h2,
.media-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.backend-form-head p {
  margin: 0;
  color: var(--muted);
}

.cms-grid,
.media-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cms-card,
.media-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(244, 241, 235, 0.13);
  border-top: 3px solid rgba(3, 228, 240, 0.68);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(3, 228, 240, 0.055), transparent 18rem),
    rgba(0, 0, 0, 0.22);
}

.cms-grid > .cms-card:nth-child(2),
.cms-grid > .cms-card:nth-child(5n) {
  border-top-color: rgba(157, 244, 91, 0.62);
}

.cms-grid > .cms-card:nth-child(3),
.cms-pages-card {
  border-top-color: rgba(200, 157, 102, 0.72);
}

.cms-grid > .cms-card:nth-child(4) {
  border-top-color: rgba(244, 241, 235, 0.5);
}

.cms-card input,
.cms-card textarea,
.media-card input,
.media-card textarea,
.media-card select {
  font-size: 0.86rem;
  font-weight: 650;
}

.cms-card legend {
  padding: 0 0.45rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cms-wide {
  grid-column: 1 / -1;
}

.cms-card-head,
.custom-page-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.cms-card-head h3,
.custom-page-editor-head h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-card-head p,
.cms-empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cms-row-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.8rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cms-row-editor.has-slug {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.cms-row-editor.has-visibility:not(.has-slug) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.cms-row-editor + .cms-row-editor {
  margin-top: 0.65rem;
}

.cms-row-editor > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cms-row-editor label {
  min-width: 0;
}

.cms-row-editor textarea {
  min-height: 4.8rem;
}

.visibility-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0;
}

.visibility-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--cyan);
}

.cms-page-editor {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.cms-page-editor:first-child {
  padding-top: 0;
  border-top: 0;
}

.cms-page-editor + .cms-page-editor {
  margin-top: 1rem;
}

.cms-page-editor h3 {
  margin: 0 0 0.9rem;
  color: var(--cyan-soft);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.custom-page-editor {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.28);
}

.custom-page-editor + .custom-page-editor {
  margin-top: 0.8rem;
}

.custom-page-editor textarea[data-custom-page-key="body"] {
  min-height: 10rem;
}

.page-link-list {
  display: grid;
  gap: 0.65rem;
}

.page-link-row {
  display: grid;
  grid-template-columns: 5rem minmax(10rem, 0.35fr) minmax(14rem, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-link-row > span {
  padding-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-button.danger {
  border-color: rgba(255, 104, 104, 0.36);
  color: #ff9b9b;
}

.cms-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.backend-library {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border-bottom: 0;
}

.upload-progress {
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.upload-progress[aria-hidden="true"] {
  display: none;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-deep));
  transition: width 160ms ease;
}

.upload-status {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.binder-body,
.binder-login-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(3, 228, 240, 0.1), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(157, 244, 91, 0.08), transparent 22rem),
    #050505;
}

.binder-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 148px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(18px);
}

.binder-brand img {
  width: 132px;
}

.binder-nav {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.binder-nav a:hover,
.binder-nav a:focus-visible {
  color: var(--cyan);
}

.binder-token {
  display: grid;
  gap: 0.25rem;
}

.binder-token label {
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.binder-token input {
  min-height: 38px;
}

.binder-save {
  min-height: 42px;
  white-space: nowrap;
}

.binder-logout {
  min-height: 42px;
  white-space: nowrap;
}

.binder-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.binder-login-panel {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 28rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 17, 18, 0.9);
  box-shadow: var(--shadow);
}

.binder-login-logo {
  width: 150px;
}

.binder-login-panel h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 5rem);
  line-height: 0.9;
}

.binder-login-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.binder-login-form {
  display: grid;
  gap: 0.8rem;
}

.binder-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) 1fr;
  width: min(100%, 1800px);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
}

.binder-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(9, 11, 12, 0.82);
}

.binder-sidebar-head,
.binder-panel-head,
.shot-card-top,
.shot-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.binder-sidebar-head {
  min-height: 62px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.icon-button.danger:hover,
.icon-button.danger:focus-visible {
  border-color: rgba(255, 104, 104, 0.65);
  color: #ff6868;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.binder-project-list {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
}

.binder-project-button {
  display: grid;
  gap: 0.35rem;
  min-height: 78px;
  padding: 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.binder-project-button:hover,
.binder-project-button.active {
  border-color: rgba(3, 228, 240, 0.34);
  background: rgba(3, 228, 240, 0.08);
}

.binder-project-button span {
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.12;
}

.binder-project-button small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.binder-main {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.binder-hero {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 34rem);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  margin-bottom: 1rem;
}

.binder-title-block,
.binder-meta-grid,
.binder-command,
.binder-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 17, 18, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.binder-title-block {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.binder-title-input {
  min-height: 10.8rem;
  padding: 0;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--text);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.86;
  outline: none;
}

.binder-logline {
  min-height: 5rem;
  resize: vertical;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 235, 0.84);
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
}

.binder-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.binder-meta-grid label {
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.binder-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
}

.binder-command div {
  display: grid;
  gap: 0.15rem;
  min-height: 96px;
  align-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.binder-command div:last-child {
  border-right: 0;
}

.binder-command span {
  color: var(--cyan);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 950;
  line-height: 0.9;
}

.binder-command small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.binder-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.binder-board-panel,
.binder-notes-panel {
  grid-column: 1 / -1;
}

.binder-panel {
  overflow: hidden;
}

.binder-panel-head {
  min-height: 76px;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.binder-panel-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.binder-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.shot-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.shot-card {
  display: grid;
  gap: 0.75rem;
  min-height: 16rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(3, 228, 240, 0.08), transparent 45%),
    rgba(5, 5, 5, 0.42);
}

.shot-card input,
.shot-card select,
.shot-card textarea,
.binder-row input {
  min-height: 38px;
  font-size: 0.82rem;
}

.shot-card-top {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
}

.shot-card-bottom {
  display: grid;
  grid-template-columns: 1fr 36px;
}

.shot-title {
  color: var(--text);
  font-weight: 900;
}

.shot-card textarea {
  min-height: 6.5rem;
  resize: vertical;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  line-height: 1.45;
  outline: none;
}

.binder-table {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
}

.binder-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.2fr) minmax(7rem, 0.8fr) minmax(7rem, 0.7fr) 36px;
  gap: 0.55rem;
  align-items: center;
}

.binder-notes {
  width: 100%;
  min-height: 14rem;
  resize: vertical;
  padding: 1rem;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  line-height: 1.5;
  outline: none;
}

@media (max-width: 1120px) {
  .intro-score,
  .intro-status {
    min-width: 10.5rem;
    padding: 0.7rem 0.8rem;
  }

  .intro-exit-button {
    top: 8.6rem;
    right: 1.8rem;
  }

  .intro-radar {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.open {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0.8rem clamp(1.25rem, 6vw, 7.2rem) 1rem;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open a {
    min-height: 48px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .overview-band,
  .about-contact-band,
  .admin-studio,
  .binder-shell,
  .binder-hero,
  .binder-workspace {
    grid-template-columns: 1fr;
  }

  .binder-sidebar {
    position: relative;
    top: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .binder-project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-column + .overview-column,
  .contact-panel {
    padding-left: 0;
    border-left: 0;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .intro-game::before,
  .intro-game::after {
    inset: 0.55rem;
  }

  .intro-score,
  .intro-status {
    top: 0.75rem;
    min-width: 8.2rem;
    border-width: 2px;
    padding: 0.55rem 0.6rem;
  }

  .intro-score {
    left: 0.75rem;
  }

  .intro-status {
    right: 0.75rem;
  }

  .intro-score strong {
    font-size: 1.1rem;
  }

  .intro-score small,
  .intro-game-hud span {
    font-size: 0.66rem;
  }

  .intro-lives span {
    width: 1rem;
    height: 1rem;
  }

  .intro-shield span {
    width: 0.62rem;
    height: 0.7rem;
  }

  .intro-exit-button,
  .intro-game.is-playing .intro-exit-button {
    top: 8.25rem;
    right: 50%;
    bottom: auto;
    min-height: 2.35rem;
    padding: 0 0.8rem;
    font-size: 0.68rem;
    transform: translateX(50%);
  }

  .intro-touch-hint {
    bottom: 1.25rem;
    font-size: 0.66rem;
  }

  .intro-exit-button:hover,
  .intro-exit-button:focus-visible,
  .intro-game.is-playing .intro-exit-button:hover,
  .intro-game.is-playing .intro-exit-button:focus-visible {
    transform: translateX(50%) translateY(-1px);
  }

  .intro-game-menu {
    top: 48%;
    width: calc(100vw - 1.4rem);
    border-width: 2px;
  }

  .intro-game-menu p {
    font-size: 0.9rem;
  }

  .intro-actions {
    width: 100%;
  }

  .intro-button {
    width: min(100%, 18rem);
    min-height: 3.25rem;
    background: rgba(0, 0, 0, 0.88);
    font-size: 1rem;
  }

  .intro-button-primary {
    background: linear-gradient(rgba(242, 48, 170, 0.24), rgba(242, 48, 170, 0.24)), rgba(0, 0, 0, 0.88);
  }

  .intro-button-secondary {
    background: linear-gradient(rgba(3, 228, 240, 0.18), rgba(3, 228, 240, 0.18)), rgba(0, 0, 0, 0.88);
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: end;
    min-height: 68px;
    padding-inline: 1rem;
  }

  .brand {
    display: none;
  }

  .site-nav.open {
    top: 68px;
    padding-inline: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-lower {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    gap: 1rem;
    justify-items: center;
    width: auto;
    max-width: none;
    margin: 0 auto;
    padding: 1.2rem 1rem 2.2rem;
    text-align: center;
  }

  .hero-lower p {
    max-width: 33rem;
    font-size: var(--hero-mobile-text-size, 20px);
  }

  .hero-media {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    background: #050505;
    height: clamp(20rem, 52svh, 30rem);
  }

  .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #050505;
  }

  .hero-shade {
    display: none;
  }

  .hero-inner {
    padding: 4.6rem 1rem 5rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 5.8rem);
  }

  .hero-actions,
  .button.primary {
    justify-content: center;
  }

  .hero-actions {
    width: min(100%, 23rem);
  }

  .button.primary {
    width: auto;
    min-width: min(100%, 13rem);
  }

  .overview-band,
  .about-contact-band,
  .library-band,
  .site-footer,
  .work-page-hero,
  .work-page-body {
    padding-inline: 1rem;
  }

  .work-grid,
  .library-grid,
  .media-assignment,
  .work-page-body,
  .manager-panel.active,
  .site-footer,
  .shot-board,
  .binder-meta-grid,
  .binder-command,
  .binder-row,
  .binder-project-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    justify-items: center;
    gap: 1.1rem;
    text-align: center;
  }

  .social-row {
    justify-content: center;
  }

  .binder-topbar {
    grid-template-columns: 128px 1fr;
    align-items: start;
    padding-block: 0.9rem;
  }

  .binder-nav {
    justify-content: end;
  }

  .binder-save,
  .binder-logout {
    grid-column: span 1;
    width: 100%;
  }

  .binder-main {
    padding: 1rem;
  }

  .binder-title-input {
    min-height: 6rem;
    font-size: 2.35rem;
    line-height: 0.95;
  }

  .binder-command div {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .binder-command div:last-child {
    border-bottom: 0;
  }

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

  .backend-heading,
  .backend-form-head {
    align-items: stretch;
    flex-direction: column;
  }

  .backend-actions {
    justify-content: flex-start;
  }

  .cms-card input,
  .cms-card textarea,
  .media-card input,
  .media-card textarea,
  .media-card select {
    font-size: 0.78rem;
    font-weight: 650;
  }

  .cms-grid,
  .media-manager-grid,
  .cms-grid.compact,
  .cms-row-editor,
  .cms-row-editor.has-slug,
  .cms-row-editor.has-visibility:not(.has-slug),
  .page-link-row {
    grid-template-columns: 1fr;
  }

  .work-page-hero {
    min-height: 26rem;
    padding-top: 5rem;
    padding-bottom: 2.2rem;
  }

  .work-page-body aside {
    min-height: 7rem;
  }

  .section-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
