/* Direction: "Black Studio" — a luxury camera launch film. Graphite blacks, cool
   silver type, one electric blue beam. Geometric display, mono timecodes. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #050608;
  --surface: #0c0f14;
  --surface-2: #141a22;
  --border: #212832;
  --border-strong: #505152;
  --ink: #eef1f6;
  --muted: #949eac;
  --accent: #2563ff;
  --accent-hover: #467aff;
  --accent-ink: #ffffff;
  --accent-text: #93b3ff;
  --accent-strong: #bed0ff;
  --accent-soft: #0e1830;
  --accent-border: #133077;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #092114;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2c1708;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2d0b0c;
  --danger-strong: #cd5c5c;
  --chart-1: #2563ff;
  --chart-2: #d24ae1;
  --chart-3: #ee0930;
  --chart-4: #ad8219;
  --chart-5: #189b25;
  --chart-6: #1d9faa;

  --font-display: "Sora", "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: -0.035em;
  --radius-card: 14px;
  --radius-btn: 999px;
  --radius-input: 10px;
  --card-pad: 1.5rem;
  --x-on-photo: #ffffff;
  --x-grade-black: #05070a;
  --x-grade-graphite: #2b313a;
  --x-grade-silver: #c7ced8;
  --x-grade-blue: #2f6dff;
  --x-grade-skin: #d8a782;
  --gradient-beam: linear-gradient(180deg, rgba(37, 99, 255, 0.55) 0%, rgba(37, 99, 255, 0) 72%);
  --gradient-scrim: linear-gradient(180deg, rgba(5, 6, 8, 0) 0%, rgba(5, 6, 8, 0.4) 48%, rgba(5, 6, 8, 0.95) 100%);
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dcdcdc;
  --border-strong: #b4b4b5;
  --ink: #050608;
  --muted: #696a6b;
  --accent: #2563ff;
  --accent-hover: #1f54d9;
  --accent-ink: #ffffff;
  --accent-text: #225beb;
  --accent-strong: #225beb;
  --accent-soft: #e0e9ff;
  --accent-border: #9db9ff;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #2563ff;
  --chart-2: #d24ae1;
  --chart-3: #b01124;
  --chart-4: #ad8219;
  --chart-5: #116f1a;
  --chart-6: #1d9faa;
}

/* The film's own surfaces: grain, a studio beam, letterbox framing, a light sweep. */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
}

.beam {
  position: absolute;
  top: -14%;
  width: 36%;
  height: 130%;
  pointer-events: none;
  background: var(--gradient-beam);
  filter: blur(28px);
  opacity: 0.55;
  transform: rotate(13deg);
}

.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--gradient-scrim);
}

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5.5%;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 2;
}
.frame::before { top: 0; }
.frame::after { bottom: 0; }

.sweep::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0) 100%);
  animation: studio-sweep 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes studio-sweep {
  0% { left: -60%; }
  55% { left: 118%; }
  100% { left: 118%; }
}

.tc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent-text);
}

.swatch {
  height: 5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.progress-line {
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 120ms linear;
}

html.reduced-motion .sweep::before { animation: none; }
