:root {
  --brand: #083263;
  --brand-deep: #041e43;
  --brand-foreground: #f9fafc;
  --surface: #f1f4f7;
  --background: #f9fafc;
  --foreground: #121b28;
  --card: #ffffff;
  --secondary: #e7ecf0;
  --muted-foreground: #586475;
  --accent: #c61b1c;
  --destructive: #c61b1c;
  --border: #d8dfe6;
  --input: #d1d8e1;
  --radius-sm: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.015em;
  margin: 0;
}

p,
dl,
dd,
dt,
ul,
ol {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* ---------- layout ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.75rem 1.25rem;
}

.header__brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.header__wordmark {
  font-family: "Archivo", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__tag {
  display: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__org {
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
  text-align: right;
}

.header__logo {
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: screen;
}

.rule {
  height: 4px;
  flex-shrink: 0;
  background: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1 1 auto;
  min-height: 0;
}

.col--story {
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
}

.col--apply {
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
  padding: 1.5rem 1.25rem;
}

/* ---------- story column ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.headline {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-deep);
}

.video {
  margin-top: 1rem;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--brand-deep);
}

.video__inner {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(249, 250, 252, 0.7);
}

.video__circle {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 252, 0.4);
}

.video__play {
  display: block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.video__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.facts {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.facts dt,
.label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.facts dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.program {
  margin-top: 1.5rem;
}

.program__list {
  margin-top: 0.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--border);
}

.program__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--card);
  padding: 0.625rem 0.75rem;
}

.program__n {
  font-family: "Archivo", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

.program__text {
  font-size: 0.875rem;
  line-height: 1.35;
}

.program__kind {
  margin-left: 0.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

/* ---------- apply column ---------- */

.apply__title {
  font-family: "Archivo", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.apply__intro {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 1rem;
}

.stats {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.stat {
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.5rem 0;
}

.stat__value {
  font-family: "Archivo", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.stat__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.progress {
  margin-top: 0.75rem;
  height: 6px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: var(--secondary);
}

.progress__bar {
  height: 100%;
  background: var(--brand);
  transition: width 0.3s ease;
}

.eligibility {
  margin-top: 1rem;
}

.chips {
  margin-top: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  color: var(--muted-foreground);
}

.eligibility__note {
  margin-top: 0.5rem;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted-foreground);
}

.form {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.field {
  display: block;
}

.field__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

.field input {
  margin-top: 0.25rem;
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: inherit;
  outline: none;
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(8, 50, 99, 0.2);
}

.field__error,
.form__error {
  display: block;
  margin-top: 0.25rem;
  font-size: 11px;
  color: var(--destructive);
}

.button {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.625rem 1rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.9;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.panel {
  margin-top: 1rem;
  border: 1px solid rgba(8, 50, 99, 0.3);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 1rem;
}

.panel--full {
  border-color: rgba(198, 27, 28, 0.4);
}

.panel__title {
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.panel__body {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--muted-foreground);
}

.is-hidden {
  display: none !important;
}

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .header__tag {
    display: inline;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .program__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page {
    height: 100dvh;
    overflow: hidden;
  }

  .header {
    padding: 0.75rem 2rem;
  }

  .grid {
    grid-template-columns: 1.35fr 1fr;
  }

  .col--story {
    border-right: 1px solid var(--border);
    padding: 2rem 2.5rem;
  }

  .col--apply {
    padding: 2rem;
  }

  .headline {
    font-size: 2rem;
  }

  .video {
    height: 28vh;
    width: auto;
    aspect-ratio: 16 / 9;
  }
}
