:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #16202e;
  --muted: #5b6676;
  --line: #e3e7ed;
  --accent: #2d5a8c;
  --accent-soft: #e8eef6;
  --hero-from: #1e3350;
  --hero-to: #3a5a80;
  --hero-fg: #f4f7fb;
  --hero-muted: #c7d3e2;
  --ok: #1f8a4c;
  --err: #b42318;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #161d27;
    --fg: #e6ebf2;
    --muted: #98a3b3;
    --line: #253041;
    --accent: #7fa8d6;
    --accent-soft: #1c2938;
    --hero-from: #142235;
    --hero-to: #26405f;
    --ok: #5fd38d;
    --err: #f97066;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }

/* Top band: nav + hero share the gradient */
.band {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-fg);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.nav .brand {
  color: var(--hero-fg);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
}
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--hero-muted);
  font-size: .95rem;
  text-decoration: none;
}
.nav ul a:hover { color: var(--hero-fg); background: rgba(255, 255, 255, .08); }
.nav ul a[aria-current="page"] { color: var(--hero-fg); background: rgba(255, 255, 255, .12); }

/* Home hero */
.hero { padding: 40px 0 80px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
h1 {
  margin: 16px 0;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.lede {
  margin: 0;
  max-width: 30em;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--hero-muted);
}
.lede strong { color: var(--hero-fg); font-weight: 600; }
.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
  border: 4px solid rgba(255, 255, 255, .12);
}

/* Inner page header */
.page-head { padding: 32px 0 56px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 3rem); }
.page-head p { margin: 0; color: var(--hero-muted); font-size: 1.15rem; max-width: 32em; }

/* Sections */
section { padding: 72px 0 0; }
h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

/* Timeline */
.story { margin: 0; padding: 0; list-style: none; }
.story li { position: relative; padding: 0 0 36px 36px; }
.story li::before {
  content: "";
  position: absolute;
  left: 6px; top: 10px; bottom: -6px;
  width: 2px;
  background: var(--line);
}
.story li:last-child { padding-bottom: 0; }
.story li:last-child::before { display: none; }
.story li::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.story h3 { margin: 0; font-size: 1.15rem; }
.story .when { display: block; margin-bottom: 8px; color: var(--accent); font-size: .875rem; font-weight: 600; }
.story p { color: var(--muted); }
.story p:last-child { margin-bottom: 0; }

/* Principles */
.principles { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.principles li {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.principles strong { display: block; margin-bottom: 2px; }
.principles span { color: var(--muted); font-size: .97rem; }

/* Call to action */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); }
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button[disabled] { opacity: .6; cursor: progress; }

/* Form */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 400;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

footer {
  margin-top: 88px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 820px) {
  .hero { padding: 24px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .photo-col { order: -1; max-width: 220px; }
  .grid, .form .row { grid-template-columns: 1fr; }
  section { padding-top: 56px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .card { padding: 22px; }
  .nav .brand { font-size: .95rem; }
  .nav ul a { padding: 6px 8px; }
}
