/* ============================================================
   F&F LEHRSTELLEN — LANDINGPAGE
   Papierweiss · Tiefblau · Gold · Playfair Display / Inter
   ============================================================ */

:root {
  --paper: #f4f1eb;
  --paper-2: #ece7de;
  --paper-3: #e2dcd0;
  --card: #fbf8f1;
  --ink: #15171a;
  --ink-2: #3e4144;
  --muted: #73736c;
  --line: rgba(21, 23, 26, 0.13);
  --line-strong: rgba(21, 23, 26, 0.26);
  --navy: #111c3a;
  --navy-2: #1a2a52;
  --navy-3: #0a1124;
  --gold: #a98239;
  --gold-2: #c9a24d;
  --gold-soft: #e8d7b2;
  --cream: #f7f3ea;
  --danger: #b5473b;
  --shadow: 0 18px 55px rgba(17, 28, 58, 0.09);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 11vw, 150px);
  --header-h: 76px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f172b;
  --paper-2: #141f38;
  --paper-3: #1b2844;
  --card: #141f38;
  --ink: #f4f1eb;
  --ink-2: #d6d1c5;
  --muted: #a5a195;
  --line: rgba(244, 241, 235, 0.14);
  --line-strong: rgba(244, 241, 235, 0.28);
  --navy: #0a1124;
  --navy-2: #111c3a;
  --navy-3: #070c19;
  --gold: #d4ae5f;
  --gold-2: #e0c078;
  --gold-soft: #5c4b2a;
  --cream: #f7f3ea;
  --danger: #ff9a8c;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body,
.site-header,
.learn-card,
.quiz-card,
.apply__form-wrap,
.choice,
.field input,
.field select,
.field textarea,
.btn,
.theme-toggle {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--gold-2);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

/* ---------- Typography ---------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.025em;
}

.display em {
  font-style: italic;
  color: var(--gold);
}

.display--light {
  color: var(--cream);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--light {
  color: rgba(247, 243, 234, 0.82);
}

.eyebrow--gold {
  color: var(--gold-2);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  flex-shrink: 0;
}

.script {
  margin: 18px 0;
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
}

p {
  margin: 0 0 1em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex-shrink: 0;
}

.btn--gold {
  background: var(--gold-2);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-soft);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--navy-2);
  color: var(--cream);
}

[data-theme="dark"] .btn--ink:hover {
  background: var(--gold-2);
  color: var(--navy);
}

.btn--ghost {
  border-color: rgba(247, 243, 234, 0.42);
  background: rgba(247, 243, 234, 0.06);
  color: var(--cream);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(247, 243, 234, 0.14);
}

.btn--small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 12px;
}

.btn--wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.btn__loading[hidden],
.btn__label[hidden] {
  display: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  width: 152px;
  flex-shrink: 0;
  line-height: 0;
}

.brand__logo {
  width: 100%;
  height: auto;
}

.brand__logo--dark {
  display: none;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 235, 0.94);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(15, 23, 43, 0.94);
}

.site-header.is-scrolled .brand__logo--light {
  display: none;
}

.site-header.is-scrolled .brand__logo--dark {
  display: block;
}

[data-theme="dark"] .site-header.is-scrolled .brand__logo--light {
  display: block;
}

[data-theme="dark"] .site-header.is-scrolled .brand__logo--dark {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-2);
  transition: right 0.25s var(--ease);
}

.site-nav a:hover::after {
  right: 0;
}

.site-header.is-scrolled .site-nav a {
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 243, 234, 0.32);
  border-radius: 50%;
  background: rgba(247, 243, 234, 0.04);
  color: var(--cream);
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(247, 243, 234, 0.12);
}

.site-header.is-scrolled .theme-toggle {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

.site-header:not(.is-scrolled) .site-header__cta {
  background: var(--cream);
  color: var(--navy);
}

.site-header:not(.is-scrolled) .site-header__cta:hover {
  background: var(--gold-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 32%;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(8, 14, 32, 0.58) 0%, rgba(8, 14, 32, 0.08) 30%, rgba(8, 14, 32, 0.16) 52%, rgba(8, 14, 32, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 14, 32, 0.62) 0%, rgba(8, 14, 32, 0.12) 62%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 128px;
}

.hero__content {
  max-width: 920px;
}

.hero__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 11.8vw, 7.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.032em;
  color: var(--cream);
}

.hero__title em {
  font-style: italic;
  color: var(--gold-2);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.hero__line > span {
  display: block;
  transform: translateY(112%);
  animation: hero-line 1.05s var(--ease) forwards;
}

.hero__line:nth-child(2) > span {
  animation-delay: 0.11s;
}

.hero__line:nth-child(3) > span {
  animation-delay: 0.22s;
}

@keyframes hero-line {
  to {
    transform: translateY(0);
  }
}

.hero__lead {
  max-width: 530px;
  margin-bottom: 28px;
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: rgba(247, 243, 234, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__micro {
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.6);
}

.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  border-top: 1px solid rgba(247, 243, 234, 0.16);
  background: rgba(8, 14, 32, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.35vw, 17px);
  letter-spacing: 0.02em;
  color: rgba(247, 243, 234, 0.78);
  animation: marquee 40s linear infinite;
}

.marquee__dot {
  color: var(--gold-2);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: rgba(247, 243, 234, 0.62);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue svg {
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Manifesto ---------- */

.manifesto {
  background: var(--paper);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
}

.manifesto__text .display {
  max-width: 12ch;
}

.manifesto__text .lead {
  max-width: 520px;
  margin-top: 26px;
}

.manifesto__text > p:not(.lead):not(.script) {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
}

.manifesto__quote {
  margin: 28px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat dt {
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.manifesto__media {
  margin: 0;
}

.manifesto__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.manifesto__media figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.manifesto__media .script {
  margin: 3px 0 0;
  font-size: 1.65rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Office ---------- */

.office {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.office::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 76% at 86% 16%, rgba(201, 162, 77, 0.14), transparent 62%);
  pointer-events: none;
}

.office__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.office__media {
  position: relative;
}

.office__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.office__badge {
  position: absolute;
  right: -16px;
  bottom: 28px;
  width: 104px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-2);
  color: var(--navy);
  text-align: center;
  transform: rotate(6deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.office__badge strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 0.9;
}

.office__badge span {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.office__lead {
  max-width: 470px;
  margin-bottom: 34px;
  color: rgba(247, 243, 234, 0.7);
  font-size: 15px;
}

.benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(247, 243, 234, 0.16);
}

.benefit {
  display: flex;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(247, 243, 234, 0.16);
}

.benefit__num {
  min-width: 26px;
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-2);
}

.benefit h3 {
  margin: 0 0 3px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cream);
}

.benefit p {
  margin: 0;
  font-size: 13px;
  color: rgba(247, 243, 234, 0.6);
}

/* ---------- Learn ---------- */

.learn {
  overflow: hidden;
  background: var(--paper-2);
}

.learn__head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
}

.learn__intro {
  justify-self: end;
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.learn__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.learn-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.learn-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.learn-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.learn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.learn-card:hover .learn-card__media img {
  transform: scale(1.05);
}

.learn-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(8, 14, 32, 0.42);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 11px;
  backdrop-filter: blur(6px);
}

.learn-card__body {
  padding: 20px 20px 24px;
}

.learn-card__label {
  margin: 0 0 6px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.learn-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1;
}

.learn-card p:last-child {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.learn__hint {
  display: none;
}

/* ---------- Quiz ---------- */

.quiz {
  position: relative;
  background: var(--paper);
}

.quiz::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 58% at 12% 18%, rgba(201, 162, 77, 0.09), transparent 62%);
  pointer-events: none;
}

.quiz__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.quiz__intro {
  position: sticky;
  top: calc(var(--header-h) + 38px);
}

.quiz__intro .display {
  margin-bottom: 6px;
}

.quiz__intro > p:not(.eyebrow):not(.script):not(.quiz__aside) {
  max-width: 420px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.quiz__facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.quiz__facts li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.quiz__facts span {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
}

.quiz__aside {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.quiz__aside a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.quiz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quiz-card__top {
  margin-bottom: 28px;
}

.progress {
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}

.quiz-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-card__stage {
  flex: 1;
}

.quiz-step {
  animation: quiz-in 0.4s var(--ease);
}

@keyframes quiz-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.quiz-question:focus {
  outline: none;
}

.quiz-hint {
  margin: 0 0 20px;
  font-size: 11.5px;
  color: var(--muted);
}

.quiz-hint strong {
  font-weight: 600;
  color: var(--ink-2);
}

.choices {
  display: grid;
  gap: 9px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}

.choice.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

[data-theme="dark"] .choice.is-selected {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--navy);
}

.choice__key {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  opacity: 0.55;
}

.choice.is-selected .choice__key {
  border-color: var(--gold-2);
  background: var(--gold-2);
  color: var(--navy);
  opacity: 1;
}

.choice__text {
  font-size: 13.5px;
  line-height: 1.35;
}

.choice--image {
  min-height: 154px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--cream);
}

.choice--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.choice--image:hover img {
  transform: scale(1.04);
}

.choice--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 32, 0.04) 20%, rgba(8, 14, 32, 0.88) 100%);
}

.choice--image .choice__key {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  color: var(--cream);
}

.choice--image .choice__label {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.05;
}

.choice--image.is-selected {
  outline: 3px solid var(--gold-2);
  outline-offset: -3px;
}

.choice--image.is-selected .choice__key {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--navy);
  opacity: 1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.choice-message {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--gold);
  min-height: 16px;
}

.skills {
  display: grid;
  gap: 2px;
}

.skill {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.skill:last-child {
  border-bottom: 0;
}

.skill__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 9px;
}

.skill__name {
  font-size: 13.5px;
  font-weight: 600;
}

.skill__value {
  font-size: 10px;
  color: var(--muted);
}

.skill__scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.skill__btn {
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.skill__btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.skill__btn.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

[data-theme="dark"] .skill__btn.is-selected {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--navy);
}

.skill__legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 8.5px;
  color: var(--muted);
}

.quiz-text {
  width: 100%;
  min-height: 150px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.quiz-text:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.16);
}

.quiz-text::placeholder {
  color: var(--muted);
}

.quiz-count {
  margin: 6px 0 0;
  text-align: right;
  font-size: 9px;
  color: var(--muted);
}

.quiz-card__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quiz-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}

.quiz-back:hover {
  color: var(--ink);
}

.quiz-next {
  margin-left: auto;
}

.quiz-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.quiz-card__note {
  margin: 18px 0 0;
  font-size: 9.5px;
  color: var(--muted);
}

.quiz-noscript {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.quiz-noscript p {
  font-size: 13px;
}

html:not(.js) .quiz-card__top,
html:not(.js) .quiz-card__stage,
html:not(.js) .quiz-card__nav,
html:not(.js) .quiz-card__note {
  display: none;
}

/* Result */

.result {
  animation: quiz-in 0.5s var(--ease);
}

.result__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result__tagline {
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--gold);
}

.result__desc {
  max-width: 540px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.skillbars {
  display: grid;
  gap: 11px;
  margin: 24px 0;
}

.skillbar__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--muted);
}

.skillbar__track {
  height: 6px;
  background: var(--line);
}

.skillbar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.8s var(--ease);
}

.result__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.chip {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link:hover {
  color: var(--ink);
}

/* ---------- Apply ---------- */

.apply {
  background: var(--paper-2);
}

.apply__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.apply__intro {
  position: sticky;
  top: calc(var(--header-h) + 38px);
}

.apply__intro .display {
  margin-bottom: 16px;
}

.apply__intro .lead {
  max-width: 440px;
}

.ticks {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.apply__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.apply__contact-label {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.apply__contact a {
  width: fit-content;
  font-size: 13.5px;
  text-decoration: none;
}

.apply__contact a:hover {
  color: var(--gold);
}

.apply__script {
  margin-top: 18px;
}

.apply__form-wrap {
  padding: clamp(22px, 4vw, 42px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 22px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--cream);
  font-size: 10px;
}

.form-context[hidden] {
  display: none;
}

.form-context__label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.form-context strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.form-context > span:last-child {
  color: rgba(247, 243, 234, 0.65);
}

.form-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.form-head p {
  margin: 0 0 24px;
  font-size: 11.5px;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field label > span[aria-hidden] {
  color: var(--gold);
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-size: 13.5px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: var(--danger);
}

.field__error[hidden] {
  display: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  cursor: pointer;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check__box {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  color: transparent;
}

.check input:checked + .check__box {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-2);
}

[data-theme="dark"] .check input:checked + .check__box {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--navy);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.check__text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.check__text a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.check__hint {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.form-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 9.5px;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 30px 8px;
  text-align: center;
}

.form-status[hidden] {
  display: none;
}

.form-status__mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
}

[data-theme="dark"] .form-status__mark {
  background: var(--gold-2);
  color: var(--navy);
}

.form-status h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.05;
}

.form-status p {
  max-width: 410px;
  margin: 0 auto 10px;
  font-size: 13px;
  color: var(--muted);
}

.form-status .script {
  margin: 16px auto;
  font-size: 1.8rem;
  text-align: center;
  transform: rotate(-1deg);
}

.form-status__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.form-status--error h3 {
  color: var(--danger);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper);
}

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--header-h) + 38px);
}

.faq__intro > p:last-child {
  max-width: 380px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion details p {
  max-width: 610px;
  margin: 0 0 20px;
  padding-right: 40px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(48px, 8vw, 90px) 0 24px;
  background: var(--navy-3);
  color: var(--cream);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 243, 234, 0.16);
}

.footer__brand img {
  width: 170px;
  height: auto;
}

.footer__tagline {
  margin: 16px 0 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.5);
}

.footer__brand .script {
  margin: 0;
  font-size: 1.7rem;
  color: var(--gold-2);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__col h3 {
  margin: 0 0 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.45);
}

.footer__col p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(247, 243, 234, 0.75);
}

.footer__col a {
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--gold-2);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 234, 0.4);
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: 18px;
}

.footer__legal a {
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--cream);
}

/* ---------- Mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid rgba(247, 243, 234, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(150%);
  visibility: hidden;
  transition: transform 0.35s var(--ease);
}

.mobile-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.mobile-cta__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mobile-cta__copy span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.mobile-cta__copy strong {
  font-size: 11.5px;
  font-weight: 500;
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Confetti ---------- */

.confetti {
  position: fixed;
  top: -20px;
  z-index: 250;
  width: 7px;
  height: 11px;
  background: var(--gold-2);
  pointer-events: none;
  animation: confetti-fall 2.4s var(--ease) forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift, 20px), 105vh, 0) rotate(540deg);
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .learn__rail {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }

  .learn__head {
    grid-template-columns: 1fr 0.8fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --section-y: clamp(64px, 12vw, 96px);
  }

  body {
    padding-bottom: 82px;
  }

  .site-nav {
    display: none;
  }

  .site-header__cta {
    display: none;
  }

  .brand {
    width: 132px;
  }

  .hero__inner {
    padding-bottom: 118px;
  }

  .hero__title {
    font-size: clamp(2.7rem, 12.4vw, 5.2rem);
  }

  .hero__bottom {
    padding-block: 12px;
  }

  .scroll-cue span {
    display: none;
  }

  .manifesto__grid,
  .office__grid,
  .quiz__grid,
  .apply__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .manifesto__text .display {
    max-width: 14ch;
  }

  .manifesto__media {
    max-width: 520px;
  }

  .office__media {
    max-width: 460px;
  }

  .office__badge {
    right: 10px;
  }

  .learn__head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  .learn__intro {
    justify-self: start;
    max-width: 560px;
  }

  .learn__rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .learn__rail::-webkit-scrollbar {
    display: none;
  }

  .learn-card {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
  }

  .learn__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px auto 0;
    padding-inline: var(--gutter);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .quiz__intro,
  .apply__intro,
  .faq__intro {
    position: static;
  }

  .quiz__intro > p:not(.eyebrow):not(.script):not(.quiz__aside) {
    max-width: 560px;
  }

  .quiz__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 0;
  }

  .quiz__facts li {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    font-size: 11px;
  }

  .quiz__facts span {
    display: block;
    margin-bottom: 3px;
  }

  .quiz-card {
    min-height: 500px;
  }

  .apply__intro .lead {
    max-width: 560px;
  }

  .mobile-cta {
    display: flex;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__cols {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero__inner {
    padding-bottom: 108px;
  }

  .hero__title {
    margin-bottom: 22px;
  }

  .hero__lead {
    max-width: 360px;
    margin-bottom: 22px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 330px;
  }

  .hero__micro {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .marquee__track {
    gap: 12px;
    font-size: 12.5px;
  }

  .stats {
    gap: 10px;
  }

  .stat dt {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .stat dd {
    font-size: 10px;
  }

  .stat strong {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .office__badge {
    width: 88px;
    height: 88px;
  }

  .office__badge strong {
    font-size: 29px;
  }

  .office__badge span {
    font-size: 7.5px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice--image {
    min-height: 132px;
  }

  .quiz-card {
    padding: 18px 16px;
    min-height: 480px;
  }

  .quiz-card__nav {
    margin-top: 22px;
    padding-top: 16px;
  }

  .quiz-next {
    padding-inline: 18px;
  }

  .quiz__facts {
    grid-template-columns: 1fr;
  }

  .quiz__facts li {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .quiz__facts span {
    margin: 0;
  }

  .skill__scale {
    gap: 5px;
  }

  .skill__btn {
    height: 40px;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mobile-cta__copy strong {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .brand {
    width: 112px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .hero__title {
    font-size: 2.55rem;
  }

  .btn {
    padding-inline: 18px;
    font-size: 12.5px;
  }

  .quiz-card {
    padding: 16px 13px;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__line > span {
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
