:root {
  --paper: #f5f6f4;
  --white: #ffffff;
  --ink: #182233;
  --slate: #5d6b7a;
  --line: #d9dfe3;
  --teal: #1f6b78;
  --teal-ink: #164f59;
  --sky: #e3ecf3;
  --sage: #e6eee7;
  --gutter: clamp(20px, 5vw, 72px);
  --band: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1, h2 { font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: clamp(38px, 6vw, 80px); max-width: 16ch; }
h2 { font-size: clamp(28px, 3.4vw, 48px); max-width: 22ch; }
h3 { font-size: 19px; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; max-width: 66ch; }
p + p, h2 + p, h1 + p, p + .actions, .lede + .principles, .lede + .facts, .lede + .form { margin-top: 20px; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--slate); max-width: 60ch; }
.muted { color: var(--slate); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--white); padding: 10px 14px; z-index: 10; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 880px; }
.band { padding-block: var(--band); }
.band.white { background: var(--white); }
.band.ink { background: var(--ink); color: var(--paper); }
.band.hero { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.band.hero h1 + .lede { margin-top: 28px; }

.top-row { display: flex; align-items: center; gap: 28px; padding-block: 24px; }
.mark { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.14em; color: var(--ink); text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-left: auto; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.lang { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-ink); color: var(--paper); }
.ghost { font-weight: 500; }

.photo-band { position: relative; }
.photo-band > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.overlap { margin: clamp(-64px, -9vw, -160px) 0 0; position: relative; }
.overlap img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.overlap figcaption { margin-top: 12px; font-size: 14px; color: var(--slate); }
.page-home .photo-band { padding-bottom: 8px; }

.mission p { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -0.015em; max-width: 30ch; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; margin-top: 40px; }
.principles > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.principles h3 + p { margin-top: 8px; color: var(--slate); font-size: 16px; }
.principles + p { margin-top: 36px; }

.facts { display: flex; flex-wrap: wrap; gap: 24px 56px; margin: 40px 0 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 14px; color: var(--slate); }
.facts dd { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.facts + p { margin-top: 32px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.duo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.duo.flip > img { order: 2; }
.duo.text { align-items: start; }
.duo h2 { font-size: clamp(26px, 2.8vw, 40px); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio figure { margin: 0; }
.trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.trio figcaption { margin-top: 10px; font-size: 14px; color: var(--slate); }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: clamp(28px, 4vw, 56px); border-radius: 14px; }
.panel.sky { background: var(--sky); }
.panel.sage { background: var(--sage); }
.panel h2 { font-size: clamp(24px, 2.4vw, 34px); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 40px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px 24px; align-items: baseline; }
.steps li::before { content: counter(step); font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 40px; color: var(--teal); line-height: 1; }
.steps h2 { font-size: clamp(24px, 2.4vw, 34px); }
.steps p { grid-column: 2; margin-top: 8px; color: var(--slate); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; margin: 0 0 40px; }
.contact dt { font-size: 14px; color: var(--slate); }
.contact dd { margin: 6px 0 0; font-size: 19px; line-height: 1.5; }

.code { margin: 16px 0 0; padding: 20px 22px; background: var(--ink); color: var(--paper); border-radius: 6px; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 40px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide, .wide { grid-column: 1 / -1; }
.field label, .choices legend { font-weight: 500; font-size: 15px; }
.form input[type="text"], .form input[type="email"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font: inherit; color: var(--ink); }
.form input:focus { border-color: var(--teal); }
.choices { border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; min-height: 32px; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--teal); }
.choices .check { display: inline-flex; margin: 0 24px 8px 0; }
.consent { color: var(--slate); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 40px; font-size: 15px; color: var(--slate); }

.foot { background: var(--ink); color: var(--paper); padding-block: 56px; font-size: 15px; line-height: 1.7; }
.foot a { color: var(--paper); }
.foot .muted { opacity: 0.72; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-mark { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: 0.12em; }

@media (max-width: 900px) {
  .duo, .panels, .form, .foot-grid, .trio { grid-template-columns: 1fr; }
  .duo.flip > img { order: 0; }
  .photo-band > img { aspect-ratio: 4 / 3; }
  .top-row { flex-wrap: wrap; }
  .menu { margin-left: 0; width: 100%; order: 3; }
  .lang { margin-left: auto; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps li::before { font-size: 28px; }
}

@media print {
  .top, .foot, .actions, .form { display: none; }
  body { background: #fff; }
}
