/* =========================================================
   CSAHELL PRODUCTIONS® — VIDEO EDITOR CAREERS PAGE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-light: #e3e3e0;
  --bg-dark: #090909;
  --ink: #0a0a0a;
  --cream: #fafaf5;
  --red: #f33524;
  --red-dark: #b52a1c;
  --muted-light: #575754;
  --muted-dark: #ababa5;
  --line-light: #b6b6b2;
  --line-dark: #2c2c2a;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: 64px;
  --max-w: 1440px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  background-color: var(--bg-light);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

fieldset {
  border: 0;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
   SHARED LAYOUT & TYPOGRAPHY
========================================================= */
.section-light {
  background-color: var(--bg-light);
  color: var(--ink);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--cream);
}

.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hairline {
  width: 100%;
  height: 1px;
}

.hairline--light { background-color: var(--line-light); }
.hairline--dark { background-color: #575754; }

.chapter-tag {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--red-dark);
  letter-spacing: 0.04em;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.94;
  text-transform: uppercase;
}

.display-xl > span {
  display: block;
}

.text-ink { color: var(--ink); }
.text-red { color: var(--red); }
.text-cream { color: var(--cream); }

.slash-mark {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  background-color: rgba(227, 227, 224, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.scroll-laser-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(10, 10, 10, 0.08);
  z-index: 5;
}

.scroll-laser-fill {
  width: 0%;
  height: 100%;
  background-color: var(--red);
  box-shadow: 0 0 10px rgba(243, 53, 36, 0.65);
  transition: width 0.08s linear;
}

.nav-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.96;
  color: var(--ink);
}

.brand-sub {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.main-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--red);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 46px;
  background-color: var(--red);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: #ff4534;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-light);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--ink);
}

.mobile-drawer {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--line-light);
  padding: 20px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer[hidden] { display: none; }

.mobile-drawer a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.mobile-drawer-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background-color: var(--red);
  color: var(--bg-dark) !important;
  font-weight: 700 !important;
}

/* =========================================================
   HERO / HIRING POST
========================================================= */
.hero-inner {
  padding-top: 22px;
  padding-bottom: 56px;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta-right {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

.hero-masthead {
  margin-top: 10px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.hero-wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(42px, 8.8vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.char-space {
  display: inline-block;
  width: 0.24em;
}

.char-in {
  display: inline-block;
  animation: charRiseUp 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--ci, 0) * 32ms);
  transition: transform 0.28s cubic-bezier(0.22, 1.32, 0.36, 1), color 0.2s ease;
}

.hero-wordmark:hover .char-in {
  transform: translateY(-4px);
}

.hero-wordmark .char-in:hover {
  color: var(--red);
  transform: translateY(-10px) scaleY(1.06);
}

@keyframes charRiseUp {
  from {
    opacity: 0;
    transform: translateY(112%) skewY(6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

.hiring-intro-text p {
  animation: fadeSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hiring-intro-text p:nth-child(1) { animation-delay: 0.30s; }
.hiring-intro-text p:nth-child(2) { animation-delay: 0.40s; }
.hiring-intro-text p:nth-child(3) { animation-delay: 0.50s; }
.hiring-intro-text p:nth-child(4) { animation-delay: 0.60s; }

.highlight-box {
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.highlight-box:nth-child(1) { animation-delay: 0.68s; }
.highlight-box:nth-child(2) { animation-delay: 0.78s; }

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-masthead-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hero-role-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 0.96;
  color: var(--red);
}

.hiring-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background-color: var(--bg-dark);
  color: var(--cream);
  overflow: hidden;
}

.hiring-stage-details {
  padding: clamp(28px, 3.6vw, 48px);
  border-left: 1px solid #222220;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.line-mask {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
  animation: lineClipUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-inner--1 { animation-delay: 0.08s; }
.line-inner--2 { animation-delay: 0.18s; }
.line-inner--3 { animation-delay: 0.28s; }

@keyframes lineClipUp {
  from {
    transform: translateY(108%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hiring-stage-copy {
  padding: clamp(28px, 3.6vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.hero-rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red);
  box-shadow: 0 0 10px rgba(243, 53, 36, 0.9);
  animation: recPulse 1.6s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(0.82); }
}

.hero-anim {
  animation: heroRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-anim--1 { animation-delay: 0.04s; }
.hero-anim--2 { animation-delay: 0.14s; }
.hero-anim--3 { animation-delay: 0.22s; }

@keyframes heroRevealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hiring-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 0.93;
  text-transform: uppercase;
}

.hiring-headline span {
  display: block;
}

.hiring-intro-text {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--muted-dark);
  max-width: 600px;
}

.hiring-intro-text strong {
  color: var(--cream);
  font-weight: 700;
}

.hiring-highlights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.highlight-box {
  border-top: 1px solid #353532;
  padding-top: 12px;
}

.highlight-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 6px;
}

.highlight-box p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream);
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-rect-cta {
  height: 52px;
  padding: 0 26px;
  background-color: var(--red);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-rect-cta:hover {
  background-color: #ff4534;
  transform: translateY(-2px);
}

.hero-duration-note {
  font-size: 11px;
  color: var(--muted-dark);
}

/* =========================================================
   KINETIC MARQUEE BAND
========================================================= */
.marquee-band {
  background-color: var(--bg-dark);
  color: var(--cream);
  border-top: 1px solid #242422;
  border-bottom: 1px solid #242422;
  overflow: hidden;
  padding: 14px 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.marquee-sep {
  color: var(--muted-dark);
  font-size: 16px;
}

.marquee-red {
  color: var(--red);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   FORM HEADER & TIMELINE PROGRESS
========================================================= */
.red-chapter-marker {
  width: 100%;
  height: 8px;
  background-color: var(--red);
}

.form-header-inner {
  padding-top: 56px;
  padding-bottom: 36px;
}

.form-top-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.form-main-title {
  margin-top: 14px;
}

@media (min-width: 601px) {
  .form-main-title > span {
    white-space: nowrap;
  }
}

.progress-panel {
  width: 340px;
  flex-shrink: 0;
  background-color: var(--bg-dark);
  color: var(--cream);
  padding: 18px 20px;
  border: 1px solid #262624;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  margin-bottom: 10px;
}

.progress-meta strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream);
}

.progress-track {
  width: 100%;
  height: 4px;
  background-color: #2a2a28;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--red);
  box-shadow: 0 0 12px rgba(243, 53, 36, 0.7);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-hint {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted-dark);
}

/* =========================================================
   QUESTION PANELS
========================================================= */
.application-form {
  padding-bottom: 84px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.question-panel {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px);
  transform: translateY(18px);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  overflow: hidden;
}

.question-panel.is-revealed {
  transform: translateY(0);
}

.question-panel .q-field {
  opacity: 0.25;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.question-panel.is-revealed .q-field {
  opacity: 1;
  transform: translateY(0);
}

.question-panel.is-revealed .q-field:nth-child(1) { transition-delay: 0.06s; }
.question-panel.is-revealed .q-field:nth-child(2) { transition-delay: 0.13s; }
.question-panel.is-revealed .q-field:nth-child(3) { transition-delay: 0.20s; }
.question-panel.is-revealed .q-field:nth-child(4) { transition-delay: 0.27s; }

.question-panel.is-complete {
  border-color: var(--red);
}

.question-panel.is-complete .panel-num::after {
  content: ' ✓';
  font-size: 20px;
  vertical-align: top;
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.question-panel--light {
  background-color: #ecece9;
  color: var(--ink);
  border: 1px solid var(--line-light);
}

.question-panel--dark {
  background-color: var(--bg-dark);
  color: var(--cream);
  border: 1px solid #262624;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-light);
}

.question-panel--dark .panel-head {
  border-bottom-color: #2b2b28;
}

.panel-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 46px;
  line-height: 0.85;
  color: var(--red);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.22, 1.32, 0.36, 1);
}

.question-panel.is-revealed .panel-num {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.panel-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 0.96;
  text-transform: uppercase;
  overflow: hidden;
}

.title-clip-in {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, opacity 0.55s ease 0.08s;
}

.is-revealed .title-clip-in {
  transform: translateY(0);
  opacity: 1;
}

.word-rise {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  transition-delay: calc(var(--wi, 0) * 42ms);
}

.is-revealed .word-rise {
  transform: translateY(0);
  opacity: 1;
}

.btn-roll-mask {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.25;
}

.btn-roll-track {
  display: block;
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-roll-clone {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  display: block;
}

.magnetic-btn:hover .btn-roll-track {
  transform: translateY(-100%);
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 28px;
}

/* Questions & Inputs */
.q-field {
  display: flex;
  flex-direction: column;
}

.q-field > label,
.q-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.q-field:focus-within > label,
.q-field:hover > label,
.q-field:hover .q-label {
  transform: translateX(4px);
}

.q-subhint {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted-light);
}

.question-panel--dark .q-subhint {
  color: var(--muted-dark);
}

.q-note {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-light);
}

.question-panel--dark .q-note {
  color: var(--muted-dark);
}

.q-field input[type="text"],
.q-field input[type="tel"],
.q-field input[type="email"],
.q-field input[type="url"],
.q-field input[type="number"],
.q-field textarea {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 0 10px;
  resize: vertical;
}

.question-panel--light .q-field input,
.question-panel--light .q-field textarea {
  color: var(--ink);
}

.question-panel--dark .q-field input[type="text"],
.question-panel--dark .q-field input[type="tel"],
.question-panel--dark .q-field input[type="email"],
.question-panel--dark .q-field input[type="url"],
.question-panel--dark .q-field input[type="number"],
.question-panel--dark .q-field textarea {
  color: var(--cream);
  background: transparent !important;
}

/* Chrome/Safari Autofill fix to prevent stark white boxes & borders */
.question-panel--light input:-webkit-autofill,
.question-panel--light input:-webkit-autofill:hover, 
.question-panel--light input:-webkit-autofill:focus,
.question-panel--light input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ecece9 inset !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.question-panel--dark input:-webkit-autofill,
.question-panel--dark input:-webkit-autofill:hover,
.question-panel--dark input:-webkit-autofill:focus,
.question-panel--dark input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0d0d0d inset !important;
  -webkit-text-fill-color: #fafaf5 !important;
  caret-color: #fafaf5 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.question-panel--light input::placeholder,
.question-panel--light textarea::placeholder {
  color: var(--muted-light);
  opacity: 0.8;
}

.question-panel--dark input::placeholder,
.question-panel--dark textarea::placeholder {
  color: var(--muted-dark);
  opacity: 0.65;
}

.field-line {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: var(--line-light);
}

.field-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.question-panel--dark .field-line {
  background-color: #3a3a37;
}

.q-field:focus-within .field-line::after {
  transform: scaleX(1);
}

/* Interactive Option Cards (Radio & Checkbox) */
.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option-grid--auto { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); }

.choice-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-ui {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-light);
  background-color: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.question-panel--dark .choice-ui {
  border-color: #343431;
  background-color: #121211;
  color: var(--cream);
}

.choice-card:hover .choice-ui {
  border-color: var(--red);
  transform: translateY(-2px);
}

.choice-card input:focus-visible + .choice-ui {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.choice-card input:checked + .choice-ui {
  border-color: var(--red);
  background-color: var(--red);
  color: var(--bg-dark);
  font-weight: 700;
  animation: choicePop 0.28s cubic-bezier(0.22, 1.32, 0.36, 1);
}

@keyframes choicePop {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* Magnetic & Ripple Buttons */
.magnetic-btn {
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1.32, 0.36, 1), box-shadow 0.22s ease;
}

.btn-ripple-ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: rippleExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleExpand {
  to {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

.choice-dot,
.choice-check {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  flex-shrink: 0;
  position: relative;
}

.choice-dot {
  border-radius: 50%;
}

.choice-card input:checked + .choice-ui .choice-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background-color: var(--bg-dark);
}

.choice-card input:checked + .choice-ui .choice-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.other-input-wrap {
  margin-top: 12px;
  max-width: 480px;
}

.other-input-wrap[hidden] {
  display: none;
}

.q-error {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  min-height: 0;
}

.q-field.is-error .field-line {
  background-color: var(--red);
  height: 2px;
}

.q-field.is-error .q-label,
.q-field.is-error > label {
  color: var(--red);
}

/* =========================================================
   SUBMIT PANEL
========================================================= */
.submit-panel {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--cream);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-top: 4px solid var(--red);
}

.submit-heading {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  max-width: 640px;
}

.gdpr-consent-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #2b2b28;
  max-width: 660px;
}

.gdpr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.gdpr-checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gdpr-box {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid #575754;
  background-color: #141413;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.2s cubic-bezier(0.22, 1.32, 0.36, 1);
}

.gdpr-checkbox-label:hover .gdpr-box {
  border-color: var(--red);
}

.gdpr-checkbox-label input:focus-visible + .gdpr-box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.gdpr-checkbox-label input:checked + .gdpr-box {
  background-color: var(--red);
  border-color: var(--red);
  transform: scale(1.06);
}

.gdpr-checkbox-label input:checked + .gdpr-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gdpr-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-dark);
}

.inline-legal-btn {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  font-weight: 700;
  transition: color 0.18s ease;
}

.inline-legal-btn:hover {
  color: var(--red);
}

.gdpr-consent-wrap.is-error .gdpr-box {
  border-color: var(--red);
}

.gdpr-consent-wrap.is-error .gdpr-text {
  color: #ffb8b0;
}

.form-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted-dark);
}

.form-feedback {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.submit-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-outline-clear {
  height: 54px;
  padding: 0 22px;
  border: 1px solid #454542;
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline-clear:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-red-submit {
  height: 54px;
  padding: 0 28px;
  background-color: var(--red);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-red-submit:hover {
  background-color: #ff4534;
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER
========================================================= */
.footer-inner {
  padding-top: 36px;
  padding-bottom: 28px;
}

.footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.footer-submark {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--red);
}

.footer-top-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--cream);
}

.footer-top-link:hover {
  color: var(--red);
}

.footer-legal-row {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--muted-dark);
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-legal-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: #4a4a46;
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer-legal-btn:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

.footer-anpc-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-anpc-badges a {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-anpc-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer-anpc-badges img {
  height: 44px;
  width: auto;
  display: block;
}

.legal-modal-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.legal-modal-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =========================================================
   SUMMARY MODAL
========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.84);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

.modal-panel {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg-light);
  color: var(--ink);
  padding: 28px;
  border: 1px solid var(--line-light);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-close {
  width: 34px;
  height: 34px;
  font-size: 16px;
  border: 1px solid var(--line-light);
}

.modal-close:hover {
  background-color: var(--ink);
  color: var(--cream);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 0.96;
  margin-bottom: 10px;
}

.modal-lead {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-light);
  margin-bottom: 16px;
}

.summary-preview {
  background-color: var(--bg-dark);
  color: var(--cream);
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 18px;
}

.modal-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-dark-outline {
  height: 54px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-dark-outline:hover {
  background-color: var(--ink);
  color: var(--cream);
}

.copy-status {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1b6e35;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1120px) {
  :root {
    --gutter: 32px;
  }

  .hiring-stage {
    grid-template-columns: 1fr;
  }

  .hiring-stage-details {
    border-left: 0;
    border-top: 1px solid #222220;
  }
}

@media (max-width: 980px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-masthead,
  .form-top-split,
  .submit-panel,
  .footer-brand-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-masthead-aside {
    align-items: flex-start;
  }

  .hero-masthead-slash {
    display: none;
  }

  .progress-panel {
    width: 100%;
  }

  .panel-grid-2,
  .hiring-highlights,
  .option-grid--4,
  .option-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
  }

  .panel-grid-2,
  .hiring-highlights,
  .option-grid--4,
  .option-grid--3,
  .option-grid--2,
  .option-grid--auto {
    grid-template-columns: 1fr;
  }

  .submit-panel-actions,
  .btn-outline-clear,
  .btn-red-submit,
  .hero-rect-cta,
  .btn-dark-outline {
    width: 100%;
  }

  .panel-head {
    gap: 14px;
  }

  .panel-num {
    font-size: 36px;
  }
}

/* =========================================================
   COMPACT ROW LAYOUT (PANEL 03) — ULTRA-CLEAN 01. 02. 03.
========================================================= */
.q-field--compact-works {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.compact-works-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-work-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.compact-row-num {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  color: var(--red, #f33524);
  letter-spacing: 0.05em;
  width: 26px;
  flex-shrink: 0;
  text-align: left;
}

.compact-row-field {
  position: relative;
}

.compact-row-link {
  flex: 45;
  min-width: 0;
}

.compact-row-note {
  flex: 55;
  min-width: 0;
}

.compact-row-del {
  flex-shrink: 0;
}

.btn-del-row {
  background: transparent;
  border: 0;
  color: #8c8b82;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s;
}

.btn-del-row:hover {
  color: var(--red, #f33524);
}

.compact-works-actions {
  margin-top: 4px;
}

.btn-compact-add-work {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-compact-add-work:hover {
  color: var(--red-hover, #ff4838);
}

.works-serialized-output {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .compact-work-row {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-light, #dcdbd3);
  }

  .compact-row-num {
    width: 100%;
    margin-bottom: 2px;
  }

  .compact-row-link,
  .compact-row-note {
    flex: 1 1 100%;
    width: 100%;
  }

  .compact-row-del {
    position: absolute;
    top: 0;
    right: 0;
  }
}


/* =========================================================
   COMPACT ROW LAYOUT (PANEL 03) — ULTRA-CLEAN 01. 02. 03.
========================================================= */
.q-field--compact-works {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.compact-works-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-work-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.compact-row-num {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  color: var(--red, #f33524);
  letter-spacing: 0.05em;
  width: 26px;
  flex-shrink: 0;
  text-align: left;
}

.compact-row-field {
  position: relative;
}

.compact-row-link {
  flex: 45;
  min-width: 0;
}

.compact-row-note {
  flex: 55;
  min-width: 0;
}

.compact-row-del {
  flex-shrink: 0;
}

.btn-del-row {
  background: transparent;
  border: 0;
  color: #8c8b82;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s;
}

.btn-del-row:hover {
  color: var(--red, #f33524);
}

.compact-works-actions {
  margin-top: 4px;
}

.btn-compact-add-work {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-compact-add-work:hover {
  color: var(--red-hover, #ff4838);
}

.works-serialized-output {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .compact-work-row {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-light, #dcdbd3);
  }

  .compact-row-num {
    width: 100%;
    margin-bottom: 2px;
  }

  .compact-row-link,
  .compact-row-note {
    flex: 1 1 100%;
    width: 100%;
  }

  .compact-row-del {
    position: absolute;
    top: 0;
    right: 0;
  }
}


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

  .question-panel,
  .question-panel .q-field,
  .reveal-item,
  .panel-num,
  .title-clip-in,
  .word-rise {
    opacity: 1 !important;
    transform: none !important;
  }
}
