:root {
  --green: #1f4638;
  --green-dark: #15352a;
  --green-light: #e9f0ec;
  --accent: var(--green);
  --gold: #9d7c4f;
  --cream: #f7f7f4;
  --ink: #183329;
  --muted: #637169;
  --line: #dce3de;
  --display: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { background: #33493c; }

body {
  margin: 0;
  min-width: 320px;
  background: #33493c;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  --ink: #f7f7f4;
  --muted: #d4ded7;
  --line: rgba(247, 247, 244, 0.25);
  --accent: #dfc493;
  --gold: #dfc493;
  display: grid;
  grid-template-columns: 33.333% 66.667%;
  min-height: 100svh;
}

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 33.333%;
  padding: 2.5rem clamp(1.5rem, 3.5vw, 4rem);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 2.5rem; height: auto; display: block; }
.brand span { display: block; font: 600 0.7rem/1.1 var(--display); letter-spacing: -0.03em; }

.site-nav { display: grid; gap: 1rem; }

.side-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.slider { position: relative; grid-column: 2; min-height: 100svh; }
.slides { position: relative; min-height: 100svh; }

.slide {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 100svh;
  visibility: hidden;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms;
  pointer-events: none;
}

.slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide.is-leaving { transform: translateY(-1rem); }

.slide-content {
  width: min(100% - 6rem, 56rem);
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 8rem) 0 9rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.35rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before { width: 2.75rem; height: 1px; background: currentColor; content: ""; }

h1, h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 { max-width: 57rem; font-size: clamp(3.2rem, 6.1vw, 6.4rem); line-height: 0.94; }
h2 { max-width: 54rem; font-size: clamp(3rem, 5.5vw, 5.8rem); line-height: 0.95; }
h1 span, h2 span { color: var(--accent); }

.intro {
  max-width: 42rem;
  margin: 2rem 0 1.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.partner-list { display: grid; max-width: 46rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }

.partner-list a {
  display: grid;
  grid-template-columns: 1fr 2rem;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.partner-list a:hover, .partner-list a:focus-visible {
  padding-left: 0.85rem;
  color: var(--accent);
  outline: none;
}

.partner-list span { font-family: var(--display); font-weight: 500; }
.partner-list svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.partner-list a:hover svg { transform: translate(0.15rem, -0.15rem); }

.story-content > p:not(.eyebrow), .application-content > p:not(.eyebrow) {
  max-width: 48rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.story-content .story-lead { margin-top: 2rem; color: var(--ink); font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.35; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms, transform 180ms;
}

.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.button--primary {
  margin-top: 2rem;
  padding: 0.95rem 1.25rem;
  background: var(--accent);
  color: #183329;
}

.button--primary:hover { background: #f4e3c0; }
.button--full { width: 100%; justify-content: space-between; margin-top: 0; }

.button--icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  place-items: center;
  border-color: #b9c5bd;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
}

.button--icon:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.05); }

.application-content h2 { font-size: clamp(2.8rem, 5.2vw, 5.8rem); }

form { max-width: 48rem; margin-top: 1.6rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input, textarea {
  width: 100%;
  border: 1px solid #b9c5bd;
  border-radius: 0.2rem;
  background: white;
  color: #183329;
  outline: none;
  padding: 0.9rem 1rem;
  resize: vertical;
  transition: border 180ms, background 180ms;
}

input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(223, 196, 147, 0.3); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #db9c87; }

.button--full { font-weight: 600; }
.button--full:disabled { opacity: 0.65; cursor: wait; }
.form-message { min-height: 1.3rem; margin: 0.65rem 0 0; color: var(--gold); font-size: 0.85rem; }

.progress-dot {
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 500 0.82rem/1 var(--body);
  cursor: pointer;
  transition: color 180ms, border-color 180ms;
}

.progress-dot.is-active { border-color: var(--accent); color: var(--accent); }

footer {
  grid-column: 2;
  width: min(100% - 6rem, 56rem);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

footer p { margin: 0; }
footer a { color: inherit; text-decoration: none; pointer-events: auto; }
footer a:hover, footer a:focus-visible { color: var(--accent); outline: none; }

.info-dialog {
  width: min(65rem, calc(100% - 3rem));
  max-height: calc(100svh - 3rem);
  padding: 0;
  border: 1px solid rgba(167, 138, 96, 0.8);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.45);
}

.info-dialog::backdrop { background: rgba(21, 53, 42, 0.5); backdrop-filter: blur(4px); }
.dialog-inner { position: relative; padding: clamp(2rem, 5vw, 4.5rem); }
.dialog-inner h2 { max-width: 50rem; font-size: clamp(2.5rem, 5vw, 5rem); }

.close-button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.6rem;
}

/* Prevent mobile browsers from rendering arrows as emojis */
span[aria-hidden="true"] {
  font-family: sans-serif !important;
}


.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 44rem;
  margin-top: 2.25rem;
  border: 1px solid var(--gold);
  border-radius: 0.2rem;
  overflow: hidden;
}

.tabs button { padding: 0.85rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--green); color: white; }
.tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }

.tab-panel { max-width: 50rem; margin-top: 2rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; }
.tab-panel p { color: var(--ink); }
.tab-panel ul { margin: 0; padding-left: 1.2rem; }
.tab-panel li { margin-bottom: 0.55rem; padding-left: 0.5rem; }
.tab-panel li::marker { color: var(--gold); }
.dialog-closing { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--gold); }

@media (max-width: 920px) {
  .site-shell { display: block; }
  .site-header {
    position: relative;
    inset: auto;
    flex-direction: row;
    align-items: center;
    width: min(100% - 2.5rem, 76rem);
    height: auto;
    margin: 0 auto;
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav { display: flex; gap: 1rem; }
  .side-note { display: none; }
  .slider { min-height: calc(100svh - 4.5rem); }
  .slides, .slide { min-height: calc(100svh - 4.5rem); }
  .slide-content { width: min(100% - 2.5rem, 76rem); padding: 4.5rem 0 7rem; }
  h1 { font-size: clamp(3rem, 11vw, 5.7rem); }
  h2 { font-size: clamp(2.8rem, 9.8vw, 5rem); }
  footer { width: min(100% - 2.5rem, 76rem); }
}

@media (max-width: 560px) {
  .site-header { width: min(100% - 2rem, 76rem); padding: 1rem 0; }
  .brand img { width: 2rem; }
  .brand span { font-size: 0.6rem; }
  .site-nav { gap: 0.7rem; }
  .progress-dot { font-size: 0.72rem; }
  .slide-content { width: min(100% - 2rem, 76rem); padding-top: 3.5rem; }
  .eyebrow { margin-bottom: 1rem; }
  .eyebrow::before { width: 1.7rem; }
  .intro { margin-top: 1.4rem; }
  .partner-list a { grid-template-columns: 1fr 1.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .story-content .story-lead { margin-top: 1.5rem; }
  .info-dialog { width: calc(100% - 1rem); max-height: calc(100svh - 1rem); }
  .dialog-inner { padding: 3.5rem 1.3rem 2rem; }
  .dialog-inner h2 { font-size: 2.35rem; }
  .tabs { margin-top: 1.5rem; }
  .tabs button { padding-inline: 0.4rem; font-size: 0.88rem; }
  .tab-panel { margin-top: 1.4rem; }
  footer { width: min(100% - 2rem, 76rem); }
  footer a { display: none; }
}

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