/* Shared look for the casting-call forms (talent.html, creators.html): a velvet header over a
   cream program, one scene per group of questions. */
:root {
  --paper: #f2eee6;
  --ink: #141110;
  --velvet: #5c1a17;
  --velvet-deep: #3d0f0d;
  --brass: #c9a46a;
  --muted: #8b8178;
  --rule: #ddd6ca;
  --serif: "Faculty Glyphic", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 760px; margin: 0 auto; padding-left: calc(var(--gutter-l) + 8px); padding-right: calc(var(--gutter-r) + 8px); }

/* ── Header ── */
.top {
  background: var(--velvet); color: var(--paper); position: relative; overflow: hidden;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 0 clamp(56px, 8vw, 96px);
}
.top::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 80% 0%, #c9a46a2e, transparent 70%);
}
.bar { display: flex; justify-content: space-between; align-items: center; position: relative; }
.bar img { height: 30px; width: auto; display: block; mix-blend-mode: screen; }
.bar a { text-decoration: none; }
.top .label { color: #f2eee6a6; }
.top h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 104px);
  line-height: .98; letter-spacing: -.01em; margin: clamp(48px, 7vw, 80px) 0 18px; position: relative;
}
.top p { font-size: clamp(17px, 1.6vw, 20px); max-width: 34ch; margin: 0; color: #f2eee6e0; position: relative; }

/* ── Form ── */
form { padding-block: clamp(40px, 6vw, 72px) 40px; }
.scene { border-top: 1px solid var(--ink); padding-top: 18px; margin-top: 48px; }
.scene:first-of-type { margin-top: 0; }
.scene-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.scene-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; margin: 0; }
.scene.reveal { animation: rise .5s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.field > span i { font-style: normal; color: var(--velvet); }
.field small { color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #14111066; border-radius: 0;
  padding: 8px 0 10px; transition: border-color .2s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--velvet); box-shadow: 0 1px 0 var(--velvet); }
input::placeholder, textarea::placeholder { color: #8b8178aa; }
.field.bad input, .field.bad textarea { border-bottom-color: #b3261e; }
.err { color: #b3261e; font-size: 13px; min-height: 0; }

/* Toggle chips for roles, genres and turnaround */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.chips legend i { font-style: normal; color: var(--velvet); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border: 1px solid #14111055; border-radius: 999px;
  font-size: 15px; transition: background .2s, color .2s, border-color .2s; user-select: none;
}
.chip span::before { content: "+"; font-family: var(--mono); font-size: 13px; color: var(--muted); transition: transform .2s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { content: "✓"; color: var(--brass); }
.chip input[type=radio] + span::before { content: "○"; }
.chip input[type=radio]:checked + span::before { content: "●"; }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.chips.big .chip span { font-family: var(--serif); font-size: 20px; padding: 12px 20px; }

.chips + .err, fieldset + .err { margin-top: 10px; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.hint { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: none; }

/* Single consent checkboxes */
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 16px; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--ink); border-radius: 3px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: "✓"; color: var(--brass); font-size: 14px; line-height: 1; }
.check + .check { margin-top: 16px; }
.check i { font-style: normal; color: var(--velvet); }

.send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink); }
.send p { margin: 0; color: var(--muted); font-size: 14px; max-width: 38ch; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 22px 16px 26px; border-radius: 4px; border: 0; cursor: pointer;
  /* ticket notches on both ends, like the main site */
  --notch: 6px;
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px)),
                radial-gradient(circle at 100% 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px));
          mask: radial-gradient(circle at 0 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px)),
                radial-gradient(circle at 100% 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px));
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.btn i { display: grid; place-items: center; height: 22px; padding-left: 14px; border-left: 1.5px dashed #f2eee673; font-style: normal; transition: transform .25s; }
/* On a successful send the stub tears off */
.btn.torn i { animation: tear .5s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes tear { 40% { transform: rotate(14deg) translate(2px, 2px); } to { transform: rotate(28deg) translate(10px, 26px); opacity: 0; } }
.btn:hover i { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Thank-you ── */
.done { padding-block: clamp(56px, 9vw, 110px); text-align: left; }
.done h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 80px); line-height: 1; margin: 12px 0 18px; }
.done p { font-size: 18px; max-width: 36ch; margin: 0 0 32px; }

footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .scene-head { flex-direction: column; gap: 6px; }
  .send .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.reveal { animation: none; }
  .btn i, .chip span { transition: none; }
  .btn.torn i { animation: none; }
}
