:root {
  --ice: #F1F6F7;
  --shelf: #DFECEE;
  --teal: #1B6B73;
  --fjord: #12404A;
  --deep: #0D2A33;
  --abyss: #081C22;
  --ink: #10262E;
  --tusk: #E9E2CF;
  --sun: #F0B429;
  --muted: #4A6369;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--ice); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 3px;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-block; font: 600 1rem/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--fjord); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ice); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #F6C95A; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero: above the waterline */
.hero { padding: 56px 0 0; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; margin: 0; max-width: 13ch; }
.hero p { font-size: 1.2rem; max-width: 46ch; color: var(--muted); margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.waterline { position: relative; margin-top: 40px; height: 230px; }
.waterline .whale { position: absolute; left: 50%; bottom: 70px; width: min(460px, 78vw); --x:-30%; transform: translateX(var(--x)); animation: surface 1.4s cubic-bezier(.2,.8,.2,1) both; }
.waterline .sea { position: absolute; inset: auto 0 0 0; height: 120px; width: 100%; }
@keyframes surface { from { transform: translate(var(--x), 60px); opacity: 0; } to { transform: translate(var(--x), 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .waterline .whale { animation: none; } }
@media (max-width: 640px) { .waterline { height: 170px; } .waterline .whale { bottom: 60px; --x:-55%; width: 72vw; } }

/* Sections get deeper as you scroll */
section { padding: 88px 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 16px; }
.lede { max-width: 56ch; margin: 0 0 48px; }

.steps { background: var(--teal); color: #fff; padding-top: 24px; }
.steps .lede { color: #D3E7E9; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid rgba(255,255,255,.35); padding-top: 20px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--tusk); display: block; margin-bottom: 12px; }
.steps h3, .who h3 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: #E3F0F1; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; gap: 32px; } }

.who { background: var(--fjord); color: #fff; }
.who .lede { color: #C9DDE0; }
.who ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.who li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.who li p { margin: 0; color: #C9DDE0; }
@media (max-width: 760px) { .who ul { grid-template-columns: 1fr; } }

.faq { background: var(--deep); color: #fff; }
.faq details { border-bottom: 1px solid rgba(255,255,255,.18); max-width: 760px; }
.faq summary { cursor: pointer; padding: 22px 0; font-family: var(--display); font-size: 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: #C9DDE0; max-width: 64ch; }

/* Apply */
.apply { background: var(--abyss); color: #fff; }
.apply-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.apply .lede { color: #C9DDE0; }
.apply-contact p { margin: 0 0 6px; color: #C9DDE0; }
.apply-contact a { color: #fff; }
form { background: var(--ice); color: var(--ink); border-radius: 20px; padding: 32px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, select, textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid #B8CDD1; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: var(--muted); background: #fff; border: 1.5px solid #B8CDD1; border-radius: 10px; padding: 14px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--teal); }
.consent a { color: var(--teal); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; color: var(--teal); margin: 0; }
@media (max-width: 860px) { .apply-grid { grid-template-columns: 1fr; gap: 40px; } .row { grid-template-columns: 1fr; } form { padding: 22px; } }

/* Footer */
.site-footer { background: var(--abyss); color: #9FB8BD; border-top: 1px solid rgba(255,255,255,.12); padding: 40px 0 56px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.site-footer a { color: #E3F0F1; }
.site-footer p { margin: 0; max-width: 90ch; }

/* Legal pages */
.legal { padding: 40px 0 96px; }
.legal article { max-width: 72ch; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 12px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal li { margin-bottom: 6px; }
.legal .callout { background: #fff; border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 0 10px 10px 0; }
.legal + .site-footer { background: var(--ink); }
