:root {
  --ink: #111318;
  --muted: #596273;
  --line: #dfe3e8;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --purple: #5f259f;
  --purple-dark: #441b72;
  --blue: #1686e6;
  --focus: #0b67c2;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(18, 25, 38, 0.08);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); }
a { color: var(--purple); }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand img { display: block; width: 112px; height: 64px; object-fit: contain; object-position: left center; }
.back-link { color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.back-link:hover { color: var(--purple); }

main, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: clamp(72px, 10vw, 132px) 0 86px; max-width: 980px; }
.eyebrow, .section-label {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, legend { letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(46px, 8vw, 88px); line-height: .98; font-weight: 720; max-width: 1000px; }
h1 span { color: var(--purple); }
.hero-copy { max-width: 760px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .submit-button:hover { transform: translateY(-1px); }
.button.primary, .submit-button { border: 1px solid var(--purple); background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(95, 37, 159, .18); }
.button.primary:hover, .submit-button:hover { background: var(--purple-dark); }
.button.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }

.principles {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 100px);
  padding: clamp(48px, 7vw, 84px);
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}
.principles .section-label { color: #bda0dc; }
h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; font-weight: 700; }
.principles-copy { display: grid; gap: 20px; align-content: center; }
.principles-copy p { margin: 0; color: #cfd3db; font-size: 18px; line-height: 1.65; }
.principles-copy strong { color: #fff; }

.focus { padding: 92px 0; }
.focus h2 { max-width: 700px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 34px 0 0; list-style: none; }
.pill-list li { padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-weight: 650; }
.note { max-width: 770px; margin: 30px 0 0; color: var(--muted); line-height: 1.65; }

.application-shell {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: clamp(34px, 6vw, 70px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.application-intro { position: sticky; top: 28px; }
.application-intro h2 { font-size: clamp(34px, 4vw, 48px); }
.application-intro > p:not(.section-label) { color: var(--muted); line-height: 1.65; }
.time-card { display: grid; gap: 5px; margin: 28px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.time-card strong { font-size: 17px; }
.time-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.privacy-note { padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

.application-form { display: grid; gap: 24px; }
fieldset { min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
legend { padding: 0 8px; font-size: 24px; font-weight: 720; }
.field-grid { display: grid; gap: 18px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; margin-top: 20px; }
label, .group-label { font-size: 14px; line-height: 1.4; font-weight: 680; }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid #b7bec8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
  line-height: 1.4;
}
textarea { resize: vertical; min-height: 96px; }
input[type="file"] { background: var(--soft); }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid rgba(11, 103, 194, .25); outline-offset: 2px; border-color: var(--focus); }
.field-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-grid label, .attestation label { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-weight: 550; }
.check-grid input, .attestation input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--purple); }
.attestation { padding: 4px; }
.attestation label { background: #fff; }
.submit-button { min-height: 56px; border: 0; cursor: pointer; font-size: 16px; }
.submit-note { margin: -8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

footer { display: grid; grid-template-columns: auto 1fr minmax(220px, 440px); align-items: center; gap: 18px; padding: 60px 0; }
footer img { width: 64px; height: 52px; object-fit: contain; }
footer p { margin: 0; font-size: 14px; line-height: 1.5; }
.footer-standard { color: var(--muted); text-align: right; }

@media (max-width: 820px) {
  .principles, .application-shell { grid-template-columns: 1fr; }
  .application-intro { position: static; }
  .two-column { grid-template-columns: 1fr; }
  footer { grid-template-columns: auto 1fr; }
  .footer-standard { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .hero { padding: 54px 0 64px; }
  h1 { font-size: clamp(42px, 13vw, 60px); }
  .principles, .application-shell { padding: 28px 20px; border-radius: 14px; }
  .focus { padding: 66px 0; }
  fieldset { padding: 22px 16px; }
  .check-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .submit-button { transition: none; }
}
