:root {
  color-scheme: light;
  --bg: #f6f5f1; --ink: #15161b; --ink-2: #5a5d6b; --line: #e4e2dc;
  --paper: #fdfcfa; --paper-hi: #ffffff; --paper-2: #f1efea; --paper-line: #dedbd3;
  --on-paper: #15161b; --on-paper-2: #5a5d6b;
  --blue: #2547ee; --blue-press: #1f3bd6; --blue-wash: #eceffd;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, .8, .26, 1);
  font: 400 100%/1.6 var(--display);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg) radial-gradient(circle, rgb(21 22 27 / .2) 0 .7px, transparent 1.15px) 0 0 / 10px 10px; -webkit-font-smoothing: antialiased; }
/* arriving from the landing page's tunnel flight: the page comes up out of the same paper colour and dots */
@media (prefers-reduced-motion: no-preference) { body > * { animation: arrive .6s cubic-bezier(.22,.8,.26,1) both; } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { text-wrap: pretty; }

/* header */
.top {
  min-height: 76px; padding: 0 max(20px, calc((100vw - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem; text-decoration: none; white-space: nowrap; }
.wordmark img { border-radius: 7px; }
.back { color: var(--ink-2); font-size: .95rem; text-decoration: none; transition: color .3s var(--ease); }
.back:hover { color: var(--ink); }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); max-width: 1200px; margin: clamp(40px, 7vw, 96px) auto clamp(80px, 10vw, 140px); padding: 0 20px; align-items: start; }
.intro { position: sticky; top: 40px; padding-top: 8px; }
.intro h1 { margin: 0 0 28px; font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.intro h1 span { color: var(--blue); }
.intro > p { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 1.1rem; }
.next { list-style: none; margin: 48px 0 0; padding: 0; }
.next li { padding: 16px 0; box-shadow: 0 -1px 0 var(--line); color: var(--ink-2); font-size: .98rem; }
.next b { color: var(--ink); font-weight: 550; }
.intro > .followup { margin: 28px 0 0; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }

/* form panel */
.panel { padding: clamp(28px, 4.4vw, 56px); background: var(--paper); color: var(--on-paper); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -60px rgb(21 22 27 / .3); }
.form-heading { margin-bottom: 1.6rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 550; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .4rem; }
.form-heading p, .receipt p { margin: 0; color: var(--on-paper-2); }
fieldset { border: none; margin: 0 0 1.45rem; padding: 0 0 1.35rem; min-width: 0; border-bottom: 1px solid var(--paper-line); }
legend { padding: 0; margin-bottom: .52rem; font-size: 1.1rem; font-weight: 700; }
label { display: block; margin: 1.1rem 0 0; font-size: .9rem; font-weight: 500; min-width: 0; }
input, textarea, select {
  font: inherit; font-size: 1rem; color: var(--on-paper); display: block; width: 100%; padding: .68rem .8rem;
  border: 1px solid var(--paper-line); background: var(--paper-hi); border-radius: 10px; margin-top: .38rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:hover, textarea:hover, select:hover { border-color: #b3aea1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(37 71 238 / .18); }
input::placeholder, textarea::placeholder { color: #6e7182; opacity: 1; }
select { appearance: none; padding-right: 2.2rem; background: linear-gradient(45deg, transparent 50%, var(--on-paper-2) 50%) right 18px center / 5px 5px no-repeat, linear-gradient(135deg, var(--on-paper-2) 50%, transparent 50%) right 13px center / 5px 5px no-repeat, var(--paper-hi); }
textarea { resize: vertical; min-height: 84px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project { grid-template-columns: 1.4fr 1fr; }
details { margin-top: 1.1rem; padding: .8rem 0; border-block: 1px solid var(--paper-line); }
details[open] { padding-bottom: 1.1rem; }
summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
summary span, .wizard-step h4 span { font-family: var(--mono); color: var(--on-paper-2); font-weight: 400; font-size: .74rem; margin-left: .4rem; }

/* uploads */
.drop, .upload { position: relative; margin-top: 1rem; padding: .85rem .95rem; border: 1.5px dashed #b3aea1; border-radius: 10px; }
.drop { text-align: center; }
.drop.over, .upload.over { border-color: var(--blue); background: var(--blue-wash); }
input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; clip-path: inset(50%); }
.choose { display: inline-block; padding: .38rem .72rem; margin: 0; color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; cursor: pointer; }
.drop:focus-within .choose, .upload:focus-within label { outline: 2px solid var(--blue); outline-offset: 3px; }
.drop-text, .drop p, .privacy, .upload p { color: var(--on-paper-2); font-size: .875rem; }
.drop-text { margin-left: .35rem; }
.drop p, .privacy { margin: .5rem 0 0; }
.upload label { display: inline-block; margin: 0; color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.upload p { margin: .32rem 0 0; }
.drop ul, .upload ul { list-style: none; margin: .55rem 0 0; padding: 0; text-align: left; }
.drop li, .upload li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.drop li button, .upload li button, .remove-scene { font: inherit; font-size: .85rem; color: var(--blue); background: transparent; border: 0; padding: .3rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* buttons */
.submit { min-height: 48px; border: none; border-radius: 999px; padding: .75rem 1.5rem; background: var(--blue); color: var(--paper); font: inherit; font-weight: 550; cursor: pointer; transition: background-color .3s var(--ease); }
.submit:hover { background: var(--blue-press); }
.submit:disabled { opacity: .7; cursor: wait; }
.secondary { min-height: 44px; color: var(--on-paper); background: transparent; border: 1px solid var(--paper-line); border-radius: 999px; padding: .55rem 1.2rem; font: inherit; font-weight: 500; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.secondary:hover { background: var(--paper-2); border-color: var(--on-paper-2); }
.secondary:disabled { opacity: .55; }
.error { padding: .6rem .8rem; border-radius: 10px; margin: 0 0 1rem; color: #8a1631; background: #fde6ec; }
#form-error { margin-top: .95rem; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* steps */
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 1.1rem 0 0; padding: 0; }
.progress li { padding: .3rem .15rem .6rem; border-bottom: 2px solid var(--paper-line); color: var(--on-paper-2); font-size: .86rem; text-align: center; }
.progress li[aria-current] { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.wizard-step h3 { font-size: 1.4rem; font-weight: 550; letter-spacing: -.02em; margin: 0 0 .4rem; }
.wizard-step h4 { font-size: .98rem; margin: 0 0 .55rem; }
.actions, .check-choices { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.actions { justify-content: flex-end; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--paper-line); }
.actions #back { margin-right: auto; }
.scene-builder { margin-top: 1.2rem; }
.scene { margin-bottom: 1rem; padding: .1rem 0 .2rem 1rem; border-left: 2px solid var(--blue); }
.scene .scene-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.scene textarea { min-height: 56px; }
.check-choices { align-items: start; margin-top: .4rem; }
.check-choices label { display: inline-flex; align-items: center; gap: .45rem; }
.check-choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
#review { margin: 1.1rem 0 .5rem; border-top: 1px solid var(--paper-line); }
#review div { display: grid; grid-template-columns: minmax(88px, 1fr) minmax(0, 2fr); gap: .65rem; padding: .55rem .1rem; border-bottom: 1px solid var(--paper-line); font-size: .9rem; }
#review dt { color: var(--on-paper-2); }
#review dd { margin: 0; overflow-wrap: anywhere; }

/* receipt */
.receipt h2 { margin-bottom: .6rem; }
.reference { display: grid; gap: .25rem; padding: .9rem 1rem; border-radius: 10px; margin: 1.4rem 0; background: var(--blue-wash); }
.reference span { font-size: .85rem; color: var(--on-paper-2); }
.reference strong { font-family: var(--mono); font-weight: 500; color: var(--blue); font-size: 1.35rem; letter-spacing: .02em; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; max-width: 720px; gap: 24px; }
  .intro { position: static; }
  .next { display: none; }
}
@media (max-width: 520px) {
  .top { min-height: 60px; padding: 0 16px; }
  .layout { padding: 0 12px; margin-top: 24px; }
  .intro { padding: 0 4px; }
  .pair, .project { grid-template-columns: 1fr; gap: 0; }
  .progress li { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* operator hand-off page (served by the intake host) */
.operator-panel { max-width: 780px; margin: 24px auto; }
.operator-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.operator-heading h1 { font-size: 1.8rem; letter-spacing: -.04em; }
.operator-panel a { color: var(--blue); }
.operator-panel h2, .operator-panel h3 { margin: 1.2rem 0 .45rem; }
.handoff-summary { margin: 1rem 0; }
.handoff-summary div { display: grid; gap: .4rem; grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr); padding: .45rem 0; border-bottom: 1px solid var(--paper-line); }
.handoff-summary dt, .file-links span, .handoff-list span { color: var(--on-paper-2); }
.handoff-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.handoff-list { list-style: none; padding: 0; }
.handoff-list a { display: grid; gap: .15rem; padding: .55rem .1rem; border-bottom: 1px solid var(--paper-line); }
.file-links { padding-left: 1.25rem; }
.file-links span { margin-left: .35rem; }
