:root {
  color-scheme: dark;
  --black: #080907;
  --surface: #11140f;
  --surface-raised: #171b13;
  --surface-soft: #1d2415;
  --line: #303a24;
  --line-bright: #536335;
  --ink: #f3f6e9;
  --muted: #9ca58e;
  --muted-bright: #c8d0b9;
  --acid: #e2ff4f;
  --acid-dim: #bbd72b;
  --danger: #ff9b82;
  --focus: #f4ffb3;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { background: var(--black); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 84% 2%, rgba(91, 111, 43, .12), transparent 30rem),
    var(--black);
  color: var(--ink);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }

.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.9px;
}

.brand span {
  margin-left: 6px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  vertical-align: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted-bright);
  font-size: 11px;
}

.site-nav a { transition: color .18s ease; }
.site-nav a:hover { color: var(--acid); }

.preview-chip {
  padding: 6px 9px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.4px;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 5vw, 72px) 80px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: Impact, "Arial Narrow", Haettenschweiler, sans-serif;
  font-size: clamp(56px, 7.2vw, 104px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .84;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.hero-copy {
  max-width: 250px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  text-align: right;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 24px;
}

.controls-column {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 20, 15, .88);
}

.panel {
  padding: 25px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

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

.section-heading {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  margin-bottom: 23px;
}

.section-number {
  margin: 2px 0 0;
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.35px;
}

.section-heading p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photo-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 8, .58);
  transition: border-color .2s ease, background .2s ease;
}

.photo-card.has-photo {
  border-color: var(--line-bright);
  background: rgba(30, 38, 20, .48);
}

.photo-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 11px;
}

.photo-number {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #182008;
  font-size: 11px;
  font-weight: 900;
}

.photo-card-heading strong,
.photo-card-heading small { display: block; }
.photo-card-heading strong { font-size: 10px; letter-spacing: 1.1px; }
.photo-card-heading small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.photo-state {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .9px;
  text-align: right;
}

.photo-card.has-photo .photo-state { color: var(--acid); }

.photo-drop {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 194px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  padding: 12px;
  border: 1px dashed var(--line-bright);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(226, 255, 79, .05) 25%, transparent 25%) 0 0 / 12px 12px,
    #0d100b;
  color: var(--ink);
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}

.photo-drop:hover,
.photo-drop.drag-over {
  border-color: var(--acid);
  background-color: #18200e;
}

.photo-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-mark {
  color: var(--acid);
  font-size: 30px;
  font-weight: 250;
  line-height: 1;
}

.drop-title { font-size: 12px; font-weight: 750; }
.drop-meta { color: var(--muted); font-size: 9px; }

.photo-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.button:hover:not(:disabled) { border-color: var(--line-bright); background: #26311a; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-small { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.photo-actions .button { flex: 1; }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted-bright); }
.button-quiet:hover:not(:disabled) { border-color: var(--line); background: rgba(83, 99, 53, .18); color: var(--ink); }
.button-primary { width: 100%; min-height: 48px; margin-top: 18px; border-color: var(--acid); background: var(--acid); color: #172006; font-size: 12px; }
.button-primary:hover:not(:disabled) { border-color: #f2ff9a; background: #ecff70; color: #101700; }
.button-secondary { width: 100%; margin-top: 16px; border-color: var(--line-bright); background: transparent; color: var(--acid); }

.privacy-note,
.quality-note,
.service-note,
.task-help {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.privacy-note { margin: 15px 0 0; }
.privacy-note span { margin-right: 4px; color: var(--acid); }

.field-label {
  display: block;
  margin: 16px 0 7px;
  color: var(--muted-bright);
  font-size: 11px;
  font-weight: 650;
}

.optional {
  margin-left: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .9px;
}

textarea,
input[type="password"],
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0b0e09;
  color: var(--ink);
  padding: 11px 12px;
  line-height: 1.45;
}

textarea { min-height: 88px; resize: vertical; }
textarea::placeholder,
input::placeholder { color: #68725e; }
select { appearance: auto; }
textarea:hover, input[type="password"]:hover, select:hover { border-color: var(--line-bright); }
textarea:disabled, input:disabled, select:disabled { color: var(--muted); }

.field-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid .field-label { margin-top: 0; }

.quality-note { margin: 16px 0 0; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted-bright);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
}

.consent-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--acid);
}

.service-note {
  min-height: 18px;
  margin: 15px 0 0;
}

.service-note.is-ready { color: var(--acid); }
.service-note.is-unavailable { color: #d3a990; }

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.form-status.is-error,
.field-error { color: var(--danger); }

.field-error {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.invalid { border-color: var(--danger) !important; }

.monitor {
  position: sticky;
  top: 20px;
  min-width: 0;
  padding: clamp(17px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.monitor-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

.monitor-bar span:last-child { color: var(--acid); text-align: right; }

.video-shell {
  position: relative;
  display: grid;
  min-height: clamp(360px, 45vw, 620px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(rgba(226, 255, 79, .03) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(226, 255, 79, .03) 1px, transparent 1px) 0 0 / 34px 34px,
    #090b08;
}

.video-empty {
  max-width: 255px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.empty-glyph {
  display: block;
  margin-bottom: 16px;
  color: var(--acid);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -7px;
  line-height: 1;
}

.video-empty strong { display: block; color: var(--ink); font-size: 14px; }
.video-empty p { margin: 9px 0 0; font-size: 10px; line-height: 1.65; }

video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  background: #000;
  object-fit: contain;
}

.task-panel {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.task-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.task-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

#task-status {
  display: block;
  color: var(--acid);
  font-size: 12px;
  line-height: 1.5;
}

#task-status[data-state="FAILED"],
#task-status[data-state="UNKNOWN"] { color: var(--danger); }

.task-id {
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-area { margin-top: 15px; }
.progress-label { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; }
.progress-label span:last-child { color: var(--acid); text-align: right; }
progress { display: block; width: 100%; height: 6px; margin-top: 9px; accent-color: var(--acid); }

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.task-actions .button { flex: 0 0 auto; }
.task-help { margin: 12px 0 0; }
.monitor-note { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }

.new-request { margin-top: 15px; }

footer {
  padding: 22px clamp(20px, 5vw, 72px) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .studio-layout { grid-template-columns: 1fr; }
  .monitor { position: static; grid-row: 2; }
  .controls-column { grid-row: 1; }
  .video-shell { min-height: min(66vw, 570px); }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; padding: 16px 18px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 10px; }
  .preview-chip { display: none; }
  main { padding: 34px 14px 58px; }
  .hero { display: block; margin-bottom: 28px; }
  .hero-copy { max-width: none; margin-top: 22px; text-align: left; }
  h1 { font-size: clamp(55px, 19vw, 88px); }
  .panel { padding: 22px 17px; }
  .photo-grid, .field-grid { grid-template-columns: 1fr; }
  .photo-drop { min-height: 185px; }
  .video-shell { min-height: 112vw; }
  .task-id { max-width: 125px; }
}

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