:root {
  --paper: #f2efdf;
  --ink: #151515;
  --red: #c43024;
  --blue: #2765ff;
  --yellow: #ffd73a;
  --muted: #6e6b61;
  --line: 2px solid var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: light; background: var(--paper); }

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 21, 21, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { color: inherit; }

.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;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: var(--line);
  background: var(--paper);
}

.wordmark {
  text-decoration: none;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.wordmark-dot { color: var(--red); font-size: 0.5em; margin-left: 0.18em; vertical-align: top; }
.issue, .section-kicker { font: 700 12px/1.2 "Courier New", monospace; letter-spacing: 0.12em; }

main { width: min(1440px, 100%); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.3fr);
  min-height: 540px;
  border-bottom: var(--line);
}

.hero-copy { padding: clamp(44px, 7vw, 104px) clamp(20px, 5vw, 76px) 56px; }
.eyebrow { display: flex; gap: 28px; margin: 0 0 30px; font: 700 12px/1 "Courier New", monospace; text-transform: uppercase; }
.eyebrow span:first-child { padding-bottom: 5px; border-bottom: 5px solid var(--red); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 34px;
  max-width: 950px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8.8vw, 132px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

h1 em { color: var(--red); font-weight: 400; }

.lede { max-width: 720px; margin-bottom: 0; font-size: clamp(18px, 2.1vw, 27px); line-height: 1.35; }
.lede a { font-weight: 700; }

.hero-note {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-left: var(--line);
  background: var(--yellow);
}

.hero-note::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 50%;
  width: 118px;
  height: 118px;
  border: var(--line);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 18px 18px 0 var(--red);
}

.note-number { position: absolute; top: 20px; right: 22px; font: 700 14px "Courier New", monospace; }
.hero-note p { margin: 0; font: 700 clamp(18px, 2vw, 24px)/1.4 "Courier New", monospace; }

.desk { padding: clamp(52px, 7vw, 90px) clamp(20px, 5vw, 76px); border-bottom: var(--line); }
.desk-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.desk h2, .handoff h2 { margin: 5px 0 0; font: 400 clamp(40px, 6vw, 76px)/0.95 Georgia, serif; letter-spacing: -0.045em; }
.section-kicker { margin-bottom: 0; }
.privacy-chip { margin: 0; padding: 9px 13px; border: var(--line); background: white; font: 700 12px "Courier New", monospace; text-transform: uppercase; }
.privacy-chip span { color: var(--blue); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr); border: var(--line); background: white; }
.preview-column { min-width: 0; padding: clamp(16px, 3vw, 36px); border-right: var(--line); }
.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 690px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 2px dashed var(--ink);
  background: #e8e4d3;
  transition: background 150ms ease, outline 150ms ease;
}
.drop-zone.is-dragging { background: #fff1a6; outline: 6px solid var(--yellow); outline-offset: -8px; }
.drop-zone.has-image { border-style: solid; background: var(--ink); }
.empty-state { max-width: 380px; padding: 24px; text-align: center; }
.empty-state h3 { margin-bottom: 8px; font: 400 clamp(30px, 4vw, 48px) Georgia, serif; }
.empty-state p { color: var(--muted); }
.upload-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; border: var(--line); border-radius: 50%; background: var(--yellow); font-size: 32px; font-weight: 800; }
canvas { display: block; width: 100%; height: 100%; }
.status { width: min(100%, 690px); margin: 12px auto 0; color: var(--muted); font: 700 12px/1.4 "Courier New", monospace; overflow-wrap: anywhere; }

.controls { padding: clamp(24px, 4vw, 44px); background: var(--yellow); }
.controls[aria-disabled="true"] { background: #d8d5c8; }
.control-head { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: var(--line); }
.control-head h3 { margin: 0; font: 400 35px Georgia, serif; }
.step { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: white; font: 700 13px "Courier New", monospace; }

.image-facts { margin: 0 0 34px; }
.image-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--ink); }
.image-facts dt { font: 700 11px "Courier New", monospace; text-transform: uppercase; }
.image-facts dd { margin: 0; text-align: right; font-weight: 700; }
.range-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; font-weight: 700; }
.range-row output { font: 700 12px "Courier New", monospace; }
input[type="range"] { width: 100%; min-height: 44px; margin: -8px 0; accent-color: var(--red); cursor: pointer; }
input[type="range"]:disabled { cursor: not-allowed; }
.button-stack { display: grid; gap: 10px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: var(--line);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.button:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: none; }
.button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.button-ink { background: var(--ink); color: white; }
.button-red { background: var(--red); color: white; }
.button-paper { background: var(--paper); }
.button-blue { background: var(--blue); color: white; }

.camera-lab {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  border-bottom: var(--line);
  background: white;
}

.camera-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 76px);
  border-right: var(--line);
}

.camera-copy h2 {
  margin: 8px 0 28px;
  font: 400 clamp(44px, 6vw, 78px)/0.92 Georgia, serif;
  letter-spacing: -0.05em;
}

.camera-copy h2 em { color: var(--blue); font-weight: 400; }
.camera-copy > p:not(.section-kicker):not(.camera-status) { max-width: 520px; font-size: 18px; }
.camera-actions { display: grid; gap: 10px; margin-top: 18px; }
.camera-status { margin: 18px 0 0; color: var(--muted); font: 700 12px/1.4 "Courier New", monospace; overflow-wrap: anywhere; }

.camera-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  overflow: hidden;
  background: var(--blue);
}

.camera-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0;
  transition: opacity 180ms ease;
}

.camera-stage.is-live video { opacity: 1; }
.camera-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 20px; color: white; text-align: center; }
.camera-placeholder span { display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto; border: 3px solid white; border-radius: 50%; font-size: 38px; box-shadow: 16px 16px 0 var(--yellow); }
.camera-placeholder p { margin: 0; font: 700 clamp(22px, 3vw, 34px)/1.25 "Courier New", monospace; }
.camera-label { position: absolute; right: 18px; bottom: 18px; padding: 8px 10px; border: 2px solid white; background: var(--ink); color: white; font: 700 10px "Courier New", monospace; letter-spacing: 0.06em; }

.handoff { padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 76px); background: var(--red); color: white; border-bottom: var(--line); }
.handoff-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); align-items: end; gap: clamp(40px, 7vw, 100px); }
.handoff h2 { font-size: clamp(54px, 8vw, 112px); }
.handoff-action { max-width: 520px; font-size: 19px; }
.handoff-action .button { width: 100%; margin-top: 12px; border-color: var(--ink); }

.fine-print { display: grid; grid-template-columns: 1fr 1fr; }
.fine-print p { margin: 0; padding: 28px clamp(20px, 5vw, 76px); font: 14px/1.5 "Courier New", monospace; }
.fine-print p + p { border-left: var(--line); }
.fine-print strong { display: block; margin-bottom: 5px; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 20px clamp(20px, 4vw, 64px); background: var(--ink); color: white; font: 700 11px "Courier New", monospace; letter-spacing: 0.08em; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

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

@media (max-width: 760px) {
  .issue { font-size: 10px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 500px; }
  .hero-note { min-height: 260px; border-left: 0; border-top: var(--line); }
  .hero-note::before { top: 38px; left: auto; right: 46px; transform: none; width: 92px; height: 92px; }
  .desk-heading { align-items: start; flex-direction: column; }
  .workspace { grid-template-columns: 1fr; }
  .preview-column { border-right: 0; border-bottom: var(--line); }
  .camera-lab { grid-template-columns: 1fr; }
  .camera-copy { border-right: 0; border-bottom: var(--line); }
  .camera-stage, .camera-stage video { min-height: 480px; }
  .handoff-row { grid-template-columns: 1fr; }
  .fine-print { grid-template-columns: 1fr; }
  .fine-print p + p { border-left: 0; border-top: var(--line); }
}

@media (max-width: 420px) {
  .masthead { min-height: 62px; }
  .issue { max-width: 100px; text-align: right; }
  h1 { font-size: 50px; }
  .hero-copy { min-height: 400px; }
  .lede { font-size: 18px; }
  .privacy-chip { width: 100%; }
  .controls { padding: 22px 18px 28px; }
  .camera-stage, .camera-stage video { min-height: 390px; }
  footer { align-items: start; flex-direction: column; }
  footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
