/* Mission TOES — Earth & Olive */
:root {
  --umber: #493C32;
  --cream: #FAF3E7;
  --warm-white: #FFFCF7;
  --white: #FFFFFF;
  --terracotta: #A44832;
  --terracotta-dark: #8C3B28;
  --pale-olive: #E6E8D8;
  --deep-olive: #4F5A2E;
  --muted: #685B50;
  --stone: #D6CDBF;
  --field: #8A7B6C;
  --sand: #E9DFCF;
  --parchment: #F1EBDF;
  --error: #8E1F1F;
  --error-tint: #FBEDEA;
  --disabled-bg: #EDE6DA;
  --disabled-text: #8A7F74;
  --spark: #8A5A00;
  --trek: #4E6B2B;
  --apex: #2E5573;
  --rise: #6B3A5E;
  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: clamp(20px, 3.5vw, 48px);
  --section: clamp(48px, 7vw, 96px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--umber);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
@media (max-width: 600px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--umber); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--umber); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--cream); }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--umber); }
h1 em, h2 em { font-weight: 500; }
h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.14; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.12; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--umber); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--cream); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.measure { max-width: 38em; }
.lead { font-size: 20px; }
@media (max-width: 600px) { .lead { font-size: 18px; } }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.kicker { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--stone); }
.utility { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; font-size: 15px; }
.utility a { text-decoration: none; padding: 6px 0; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 8px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--umber); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: 0.08em; }
.brand-sub { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; font-size: 16px; font-weight: 600; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a[aria-current="page"] { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: none; align-items: center; gap: 6px; }
.menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--umber); }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }

@media (max-width: 1000px) {
  .utility, .main-nav { display: none; }
  .nav-actions { display: flex; }
  .masthead { padding-top: 10px; padding-bottom: 10px; padding-right: 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
}
@media (max-width: 380px) { .brand-name { font-size: 15px; letter-spacing: 0.06em; } }

/* Mobile menu panel */
.menu-panel { position: fixed; inset: 0; z-index: 50; background: var(--cream); display: flex; flex-direction: column; overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 10px var(--pad); border-bottom: 1px solid var(--stone); }
.menu-close { width: 48px; height: 48px; background: transparent; border: 0; font-size: 32px; line-height: 1; color: var(--umber); cursor: pointer; border-radius: var(--radius); }
.menu-links { padding: 8px var(--pad) 0; }
.menu-links a { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid var(--stone); font-family: var(--serif); font-weight: 600; font-size: 22px; text-decoration: none; }
.menu-utility { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px var(--pad) 24px; font-size: 17px; }
.menu-utility a { padding: 10px 0; }
.menu-foot { margin-top: auto; padding: 20px var(--pad); border-top: 1px solid var(--stone); background: var(--warm-white); text-align: center; }
.menu-foot .btn { width: 100%; }
.menu-foot p { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--umber); border-color: var(--umber); }
.btn-secondary:hover { background: var(--pale-olive); color: var(--umber); }
.btn-light { background: var(--cream); color: var(--umber); }
.btn-light:hover { background: var(--white); color: var(--umber); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-text); border-color: transparent; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }
.text-link { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.bg-warm { background: var(--warm-white); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.bg-olive { background: var(--pale-olive); }
.bg-umber { background: var(--umber); color: var(--cream); }
.bg-umber h2, .bg-umber h3 { color: var(--white); }
.bg-umber a:not(.btn) { color: var(--cream); }
.bg-umber .kicker { color: var(--sand); }
.on-sand { color: var(--sand); }
.section-head { margin-bottom: 0; }
.section-head h2::before, h2.accent::before { content: ""; display: block; width: 48px; height: 3px; background: var(--terracotta); margin-bottom: 18px; }
.bg-umber .section-head h2::before { background: var(--sand); }
.section-head > p, .section-intro { margin-top: 18px; max-width: 38em; }
.section + .section.bg-cream-continue { padding-top: 0; }
.more-link { margin-top: 32px; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--stone); }
.page-hero .lead { margin-top: 20px; max-width: 34em; }
.breadcrumb { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Home hero */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-text .lead { margin-top: 28px; max-width: 32em; }
.hero-text .definition { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 38em; }
.hero-text .definition strong { color: var(--umber); }
.arch { flex: 1 1 380px; min-width: 0; max-width: 480px; min-height: 460px; margin-inline: auto; border-radius: 240px 240px 10px 10px; background: var(--pale-olive); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 72px 40px 44px; text-align: center; }
.arch img { width: min(300px, 100%); }
.arch p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; }
@media (max-width: 600px) { .arch { min-height: 0; border-radius: 175px 175px 10px 10px; padding: 56px 28px 32px; } .arch img { width: 220px; } }

/* Columns */
.cols { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 44px; }
.cols > * { flex: 1 1 280px; min-width: 0; }
.cols-4 > * { flex-basis: 240px; }
.col-rule { border-top: 2px solid var(--terracotta); padding-top: 20px; }
.col-line { border-top: 1px solid var(--stone); padding-top: 20px; }
.cols h3 + p, .cols h3 + .muted { margin-top: 10px; }
.col-rule p, .col-line p { font-size: 17px; }

/* Framework list */
.def-grid { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 40px; }
.def-grid > div { flex: 1 1 320px; min-width: 0; }
.def-grid h3 { font-size: 22px; }
.def-grid p { margin-top: 8px; font-size: 17px; }

/* Phases */
.phase-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.phase-card { flex: 1 1 230px; min-width: 0; background: var(--warm-white); border-radius: 8px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.phase-card .ages { white-space: nowrap; }
.phase-tag { display: inline-block; padding: 4px 14px; border-radius: var(--radius); color: var(--white); font-weight: 600; font-size: 17px; }
.phase-tag.spark { background: var(--spark); }
.phase-tag.trek { background: var(--trek); }
.phase-tag.apex { background: var(--apex); }
.phase-tag.rise { background: var(--rise); }
.phase-card .ages { font-size: 16px; color: var(--muted); }
@media (max-width: 600px) {
  .phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .phase-card { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; }
  .phase-tag { font-size: 16px; padding: 3px 12px; }
  .phase-card .ages { font-size: 15px; }
}
.phase-detail { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--stone); align-items: baseline; }
.phase-detail:last-child { border-bottom: 1px solid var(--stone); }
.phase-detail .phase-tag { min-width: 96px; text-align: center; }

/* Labels */
.label { display: inline-block; padding: 3px 12px; border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.label-current { background: var(--pale-olive); color: var(--deep-olive); }
.label-concept { background: var(--parchment); color: var(--muted); }

/* Boxes */
.concept-box { margin-top: 48px; border: 1.5px dashed var(--field); border-radius: 8px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.concept-box > div { flex: 1 1 420px; min-width: 0; }
.concept-box h3 { font-size: 22px; }
.concept-box p { margin-top: 6px; font-size: 17px; }
@media (max-width: 600px) { .concept-box { padding: 20px; } }
.notice { background: var(--pale-olive); border-radius: 8px; padding: 20px 24px; margin-top: 28px; max-width: 46em; }
.notice p { font-size: 17px; }
.card { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 8px; padding: 26px; }
.card-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.card-grid > .card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card-grid > .card .btn, .card-grid > .card .text-link { margin-top: auto; align-self: flex-start; }

/* Labs */
.labs-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.labs-grid > div { flex: 1 1 460px; min-width: 0; }
.labs-grid .on-sand { margin-top: 12px; }
.fact-panel { flex: 1 1 360px; border: 1px solid #6E5F53; border-radius: 10px; padding: 32px; }
.fact-panel dl { margin: 0; display: grid; gap: 18px; }
.fact-panel dt { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sand); }
.fact-panel dd { margin: 2px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--white); line-height: 1.3; }

/* Timeline */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; max-width: 860px; }
.timeline li { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--stone); }
.timeline li:last-child { border-bottom: 1px solid var(--stone); }
.timeline .date { flex: 0 0 180px; font-family: var(--serif); font-weight: 600; }
.timeline .what { flex: 1 1 320px; }

/* People */
.person { display: flex; gap: 20px; align-items: flex-start; }
.avatar { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; background: var(--warm-white); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--muted); border: 1px solid var(--stone); }
.person .role { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }

/* Projects (Our Work page) */
.project { padding-block: 48px; border-top: 1px solid var(--stone); display: flex; flex-wrap: wrap; gap: 20px 56px; scroll-margin-top: 24px; }
.project:last-of-type { border-bottom: 1px solid var(--stone); }
.project-head { flex: 1 1 320px; min-width: 0; }
.project-head h2 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 32px); }
.project-body { flex: 2 1 480px; min-width: 0; }
.project-body h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; margin: 22px 0 6px; }
.project-body h3:first-child { margin-top: 0; }
.stages { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stages li { padding: 4px 12px; border-radius: var(--radius); border: 1px solid var(--stone); font-size: 15px; color: var(--muted); }
.stages li.is-current { background: var(--umber); border-color: var(--umber); color: var(--cream); font-weight: 600; }

/* Prose (policies) */
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.draft-note { background: var(--parchment); border-radius: 8px; padding: 14px 18px; font-size: 16px; margin-bottom: 32px; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; max-width: 44em; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: baseline; }
.steps li::before { content: counter(step); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--pale-olive); color: var(--umber); font-family: var(--serif); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tick-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.tick-list li { padding-left: 28px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 2px; background: var(--terracotta); }

/* Two-column page body with form */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > .split-main { flex: 1 1 380px; min-width: 0; }
.split > .split-form { flex: 1 1 480px; min-width: 0; max-width: 640px; }

/* ---------- Forms ---------- */
.form { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 8px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.form h2 { font-size: 26px; }
.form .req-note { margin: 0; font-size: 15px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label-text { font-size: 16px; font-weight: 600; }
.field .hint { font-size: 15px; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field); border-radius: var(--radius); background: var(--white); font: inherit; font-size: 17px; color: var(--umber); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23493C32' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--umber); outline-offset: 2px; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.error-msg { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; font-weight: 600; color: var(--error); }
.error-msg[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--umber); flex: 0 0 24px; }
.check label { font-size: 16px; font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--radius); padding: 14px 16px; font-size: 16px; }
.form-alert[hidden] { display: none; }
.form-alert.is-error { background: var(--error-tint); color: var(--error); font-weight: 600; }
.form-alert.is-info { background: var(--pale-olive); color: var(--umber); }
.form .btn { align-self: flex-start; }
.form .helper { margin: 0; font-size: 15px; color: var(--muted); }

/* Thank you */
.confirm { background: var(--pale-olive); border-radius: 8px; padding: 32px; max-width: 40em; }
.confirm .kicker { color: var(--deep-olive); }

/* ---------- Footer ---------- */
.site-footer { background: var(--umber); color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; }
.footer-brand { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; gap: 14px; align-self: flex-start; }
.footer-brand img { width: 76px; height: 76px; }
.footer-brand .brand-name { color: var(--white); font-size: 20px; }
.footer-brand .brand-sub { color: var(--sand); font-size: 14px; }
.footer-col { flex: 1 1 160px; min-width: 0; }
.footer-col h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--white); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.footer-col li { padding: 6px 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; color: var(--sand); }
.footer-bottom p { margin: 0; }
.footer-bottom .legal { flex: 1 1 520px; }
