/* ==========================================================================
   WAM — Multitude Talent Registration Form
   Editorial redesign — black / white / red
   ========================================================================== */

:root {
  --black:       #0c0c0c;
  --white:       #ffffff;
  --red:         #e63329;
  --red-dark:    #c0281f;
  --gray-50:     #f7f6f4;
  --gray-100:    #f0efed;
  --gray-200:    #e2dfdb;
  --gray-400:    #9a9490;
  --gray-600:    #6b6560;
  --bg:          #ffffff;
  --border:      var(--gray-200);
  --text:        var(--black);
  --text-muted:  var(--gray-600);
  --radius:      3px;
  --font-disp:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:   600px;
  --ease:        0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Thin red brand bar at very top */
body::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--red);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* ==========================================================================
   Screen system
   ========================================================================== */
.screen { display: none; }
.screen.is-active { display: block; }

/* ==========================================================================
   Layout
   ========================================================================== */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ==========================================================================
   Brand header (white screens)
   ========================================================================== */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand__name {
  font-family: var(--font-disp);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-toggle button {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--ease);
}
.lang-toggle button:last-child { border-right: none; }
.lang-toggle button.is-active,
.lang-toggle button:hover {
  background: var(--black);
  color: var(--white);
}

/* ==========================================================================
   Cinematic landing — full black, tap anywhere to enter
   ========================================================================== */
#screen-landing {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: var(--black);
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#screen-landing.is-active { display: flex; }
#screen-landing:focus { outline: none; }

/* Atmosphere — drifting glows + grain + vignette */
.landing__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing__glow {
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  will-change: transform, opacity;
}

.landing__glow--red {
  background: radial-gradient(circle, rgba(230,51,41,0.55) 0%, rgba(230,51,41,0) 60%);
  top: -25vmax;
  left: -25vmax;
  animation:
    landing-glow-fade 1.4s ease-out 0.1s forwards,
    landing-glow-drift-a 18s ease-in-out 1.4s infinite alternate;
}

.landing__glow--white {
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  bottom: -30vmax;
  right: -25vmax;
  animation:
    landing-glow-fade 1.4s ease-out 0.4s forwards,
    landing-glow-drift-b 22s ease-in-out 1.6s infinite alternate;
}

.landing__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.landing__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.85) 100%);
}

/* Content stack */
.landing__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 460px;
}

.landing__we-are {
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  animation: landing-fade-in 0.6s ease-out 0.9s forwards;
}

.landing__line {
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.25);
  animation: landing-line-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.landing__line--top    { animation-delay: 1.1s; }
.landing__line--bottom { animation-delay: 2.7s; }

.landing__title {
  font-family: var(--font-disp);
  font-size: clamp(3.5rem, 16vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  display: inline-flex;
  text-shadow: 0 0 40px rgba(230,51,41,0.18);
}
.landing__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: landing-letter-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.landing__title span:nth-child(1) { animation-delay: 1.35s; }
.landing__title span:nth-child(2) { animation-delay: 1.42s; }
.landing__title span:nth-child(3) { animation-delay: 1.49s; }
.landing__title span:nth-child(4) { animation-delay: 1.56s; }
.landing__title span:nth-child(5) { animation-delay: 1.63s; }
.landing__title span:nth-child(6) { animation-delay: 1.70s; }
.landing__title span:nth-child(7) { animation-delay: 1.77s; }
.landing__title span:nth-child(8) { animation-delay: 1.84s; }
.landing__title span:nth-child(9) { animation-delay: 1.91s; }

.landing__cta {
  margin-top: 1.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  animation:
    landing-fade-in 0.6s ease-out 3.0s forwards,
    landing-cta-pulse 2.4s ease-in-out 3.6s infinite;
}

@keyframes landing-glow-fade {
  to { opacity: 1; }
}

@keyframes landing-glow-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(15vmax, 8vmax) scale(1.1); }
}

@keyframes landing-glow-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-12vmax, -10vmax) scale(1.15); }
}

@keyframes landing-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes landing-line-grow {
  from { width: 0; }
  to   { width: 80px; }
}

@keyframes landing-letter-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-cta-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .landing__glow,
  .landing__we-are,
  .landing__line,
  .landing__title span,
  .landing__cta {
    animation: none;
    opacity: 1;
    transform: none;
    width: 80px;
  }
  .landing__glow { opacity: 0.6; }
}

/* ==========================================================================
   Router screen
   ========================================================================== */
#screen-router {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
}
#screen-router.is-active { display: flex; }

.router__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 2.5rem;
}

.router__question {
  font-family: var(--font-disp);
  font-size: clamp(1.875rem, 5.5vw, 2.625rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 380px;
  letter-spacing: -0.01em;
}

.router__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.9375rem 1.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  text-decoration: none;
  line-height: 1;
}

/* Dark bg (lang screen) */
.btn--light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--light:hover { background: var(--gray-100); border-color: var(--gray-100); }

.btn--light-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--light-outline:hover { border-color: var(--white); }

/* Light bg */
.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--primary:hover { background: var(--red); border-color: var(--red); }

.btn--secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--secondary:hover { background: var(--black); color: var(--white); }

.btn--ghost {
  background: none;
  border-color: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  font-size: 0.625rem;
}
.btn--ghost:hover { color: var(--text); }

.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.38; cursor: not-allowed; }

/* ==========================================================================
   Screen header
   ========================================================================== */
.screen-header {
  padding: 2rem 1.25rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.screen-header__eyebrow {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.screen-header__title {
  font-family: var(--font-disp);
  font-size: clamp(1.875rem, 5vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.screen-header__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.65;
}

/* ==========================================================================
   Form sections
   ========================================================================== */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
  padding-top: 2rem;
}

.field-section-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.required {
  color: var(--red);
  margin-left: 3px;
}

.field__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Bottom-border only inputs — editorial style */
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--ease);
  outline: none;
}

.field__input::placeholder { color: var(--gray-400); }
.field__input:focus,
.field__select:focus,
.field__textarea:focus { border-bottom-color: var(--black); }

.field__input.is-invalid,
.field__select.is-invalid,
.field__textarea.is-invalid { border-bottom-color: var(--red); }

.field__error {
  font-size: 0.6875rem;
  color: var(--red);
  letter-spacing: 0.03em;
  display: none;
}
.field__error.is-visible { display: block; }

/* Select chevron */
.field__select-wrap { position: relative; }
.field__select-wrap::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gray-400);
  pointer-events: none;
}

/* Checkbox grid (Idiomas) */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  font-size: 0.8125rem;
  font-weight: 500;
}

.checkbox-option:has(input:checked) {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.checkbox-option input {
  accent-color: var(--black);
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* Boolean toggles */
.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--ease);
}

.toggle-option input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--black);
  cursor: pointer;
}

.toggle-option__text { flex: 1; }
.toggle-option__label { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.toggle-option__hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.55; }

/* File upload zones */
.file-upload {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  background: var(--gray-50);
}

.file-upload:hover { border-color: var(--black); background: var(--white); }
.file-upload.has-file { border-color: var(--black); background: var(--white); }

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--gray-400);
  transition: color var(--ease);
}
.file-upload.has-file .file-upload__icon { color: var(--black); }

.file-upload__text { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.file-upload__sub  { font-size: 0.6875rem; color: var(--gray-400); margin-top: 0.25rem; }
.file-upload__name { font-size: 0.8125rem; font-weight: 700; color: var(--black); margin-top: 0.375rem; display: none; }
.file-upload.has-file .file-upload__name { display: block; }
.file-upload.has-file .file-upload__text { display: none; }
.file-upload.has-file .file-upload__sub  { display: none; }

/* Conditional field */
.field--conditional { display: none; }
.field--conditional.is-visible { display: flex; }

/* Update sections (expandable via toggle) */
.update-section { display: none; }
.update-section.is-visible { display: flex; flex-direction: column; gap: 1.25rem; }

/* ==========================================================================
   Form actions
   ========================================================================== */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.form-actions__back {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Lookup screen
   ========================================================================== */
.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
}

.lookup-result {
  border-left: 3px solid;
  border-radius: var(--radius);
  padding: 1.375rem;
  margin-top: 0.5rem;
  display: none;
}
.lookup-result.is-visible { display: block; }

.lookup-result--found     { background: #f0fdf4; border-left-color: #22c55e; }
.lookup-result--not-found { background: #fff7ed; border-left-color: #f59e0b; }

.lookup-result__title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.lookup-result__name  { font-size: 1rem; font-weight: 700; margin-top: 0.25rem; }
.lookup-result__email { font-size: 0.875rem; color: var(--text-muted); }

/* ==========================================================================
   Thanks screen — full black
   ========================================================================== */
#screen-thanks {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--black);
  gap: 0;
}
#screen-thanks.is-active { display: flex; }

.thanks__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 2rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.thanks__icon-circle {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
}

.thanks__icon-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

#screen-thanks.is-active .thanks__icon-circle {
  animation: thanks-draw 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

#screen-thanks.is-active .thanks__icon-check {
  animation: thanks-draw 0.45s ease-out 0.85s forwards;
}

@keyframes thanks-draw {
  to { stroke-dashoffset: 0; }
}

.thanks__we-are {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  opacity: 0;
}

.thanks__title {
  font-family: var(--font-disp);
  font-size: clamp(2.75rem, 12vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
}

.thanks__body {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-top: 1.375rem;
  max-width: 380px;
  opacity: 0;
}

#screen-thanks.is-active .thanks__we-are {
  animation: thanks-fade-up 0.5s ease-out 1.35s forwards;
}
#screen-thanks.is-active .thanks__title {
  animation: thanks-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}
#screen-thanks.is-active .thanks__body {
  animation: thanks-fade-up 0.5s ease-out 1.85s forwards;
}

@keyframes thanks-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .thanks__icon-circle,
  .thanks__icon-check {
    stroke-dashoffset: 0;
    animation: none;
  }
  #screen-thanks.is-active .thanks__we-are,
  #screen-thanks.is-active .thanks__title,
  #screen-thanks.is-active .thanks__body {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================================
   Spinner
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Casting selection screen
   ========================================================================== */
.castings-state             { display: none; }
.castings-state.is-visible  { display: block; }
.castings-list              { display: none; }
.castings-list.is-visible   { display: flex; flex-direction: column; gap: 0.75rem; }

.casting-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.casting-card input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  accent-color: var(--black);
}

.casting-card__body { flex: 1; }
.casting-card__name { font-weight: 600; font-size: 0.9375rem; }
.casting-card__date { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.casting-card:has(input:checked) {
  border-color: var(--black);
  background: var(--gray-50);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 480px) {
  .page         { padding: 2rem 2rem 4.5rem; }
  .brand        { padding: 1.375rem 2rem; }
  .screen-header { padding: 2.5rem 2rem 0; }
  .checkbox-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ==========================================================================
   V2 — Enhanced animations, micro-interactions, custom cursor
   ========================================================================== */

/* --- Landing: white background, black ink, red as accent --------------- */

#screen-landing {
  background: var(--white);
}

/* Glows: very subtle on white — red as a distant warmth, no white glow */
.landing__glow--red {
  background: radial-gradient(circle, rgba(230, 51, 41, 0.09) 0%, rgba(230, 51, 41, 0) 65%);
}

.landing__glow--white {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Grain: multiply blends grain onto white — very subtle texture */
.landing__grain {
  mix-blend-mode: multiply;
  opacity: 0.035;
}

/* Vignette: barely-there edge darkening to frame the logo */
.landing__vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.06) 100%);
}

/* "We Are" stays red — it's the accent */
.landing__we-are {
  color: var(--red);
}

/* Decorative lines become black at low opacity */
.landing__line {
  background: rgba(0, 0, 0, 0.12);
}

/* CTA in dark ink */
.landing__cta {
  color: rgba(0, 0, 0, 0.35);
}

/* CTA pulse: dark ink fading rather than white */
@keyframes landing-cta-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.7; }
}

/* Logo replacing the letter-by-letter title */
.landing__logo {
  width: clamp(200px, 58vw, 320px);
  color: var(--black);
  opacity: 0;
  animation: landing-fade-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
}

.landing__logo svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Update line timing to suit the logo (no 9-letter stagger to wait for) */
.landing__line--bottom { animation-delay: 1.7s; }
.landing__cta          { animation-delay: 2.1s; }

/* Reduced motion: keep logo visible */
@media (prefers-reduced-motion: reduce) {
  .landing__logo { opacity: 1; animation: none; }
}

/* --- Screen enter animation -------------------------------------------- */

@keyframes v2-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

#screen-router.is-active,
#screen-castings.is-active,
#screen-form.is-active,
#screen-lookup.is-active {
  animation: v2-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Thanks keeps its own staggered reveals — just add a fast fade-in */
#screen-thanks.is-active {
  animation: v2-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Element stagger animation ----------------------------------------- */

@keyframes v2-stagger-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.v2-stagger {
  animation: v2-stagger-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Button fill from left --------------------------------------------- */

/* Override primary button with gradient trick */
.btn--primary {
  background: linear-gradient(to right, var(--red) 50%, var(--black) 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              color var(--ease),
              opacity 0.2s ease;
}

.btn--primary:hover:not([disabled]) {
  background: linear-gradient(to right, var(--red) 50%, var(--black) 50%);
  background-size: 200% 100%;
  background-position: left center;
  border-color: var(--red);
}

/* Secondary: fill from left with black */
.btn--secondary {
  background: linear-gradient(to right, var(--black) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              color 0.25s ease;
}

.btn--secondary:hover:not([disabled]) {
  background: linear-gradient(to right, var(--black) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: left center;
  color: var(--white);
  border-color: var(--black);
}

/* Ghost button: simple underline effect */
.btn--ghost {
  position: relative;
}
.btn--ghost::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--text);
  transition: left 0.3s ease, right 0.3s ease;
}
.btn--ghost:hover::after {
  left: 0.75rem;
  right: 0.75rem;
}

/* --- Input focus label animation --------------------------------------- */

.field__label {
  transition: letter-spacing 0.35s ease, color 0.2s ease;
}

.field:focus-within .field__label {
  letter-spacing: 0.18em;
  color: var(--black);
}

.field__input,
.field__select {
  transition: border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.field__input:focus {
  border-bottom-width: 2px;
}

/* --- File upload: lift on hover ---------------------------------------- */

.file-upload {
  transition: border-color 0.25s ease,
              background 0.2s ease,
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}

.file-upload:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

/* --- Casting card hover ------------------------------------------------ */

.casting-card {
  transition: border-color 0.25s ease,
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background 0.2s ease;
}

.casting-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-600);
}

/* --- Checkbox option press feel ---------------------------------------- */

.checkbox-option {
  transition: background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              transform 0.15s ease;
}

.checkbox-option:active {
  transform: scale(0.97);
}

/* --- Toggle option hover ----------------------------------------------- */

.toggle-option {
  transition: padding-left 0.25s ease;
}

.toggle-option:hover {
  padding-left: 4px;
}

/* --- Typography scale (more editorial) --------------------------------- */

.screen-header__eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
}

.screen-header__title {
  font-size: clamp(2.125rem, 5.5vw, 2.75rem);
  letter-spacing: -0.02em;
}

.router__question {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

/* --- Subtle global grain overlay --------------------------------------- */

.v2-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* --- Custom cursor (pointer devices only) ------------------------------ */

@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }

  a, button, label, select,
  input[type="file"], [role="button"],
  .checkbox-option, .toggle-option, .casting-card {
    cursor: none;
  }

  #v2-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
  }

  #v2-cursor-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: background 0.2s ease;
  }

  #v2-cursor-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(12, 12, 12, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.35s ease, height 0.35s ease,
                border-color 0.25s ease, opacity 0.2s ease;
  }

  /* Ring expands on interactive elements */
  body.v2-hover #v2-cursor-ring {
    width: 46px;
    height: 46px;
    border-color: var(--red);
  }

  /* Invert for dark screens */
  body.v2-dark #v2-cursor-dot { background: var(--white); }
  body.v2-dark #v2-cursor-ring { border-color: rgba(255, 255, 255, 0.35); }
}

/* --- Reduced motion overrides ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  #screen-router.is-active,
  #screen-castings.is-active,
  #screen-form.is-active,
  #screen-lookup.is-active,
  #screen-thanks.is-active,
  .v2-stagger {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn--primary,
  .btn--secondary {
    background: var(--black);
    transition: none;
  }

  .btn--secondary {
    background: transparent;
  }

  .file-upload:hover,
  .casting-card:hover {
    transform: none;
    box-shadow: none;
  }
}
