:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --ink: #173c39;
  --green: #086c69;
  --accent: #0e9e9e;
  --muted: #526b63;
  --line: #c9d6cf;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.5vw, 4rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.03em; }
a { color: var(--green); text-underline-offset: .22em; }
button, textarea, input, select { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #c26b13; outline-offset: 4px; }
.shell { width: min(78rem, 90%); margin-inline: auto; }
.skip { position: absolute; top: -8rem; background: white; padding: 1rem; z-index: 10; }
.skip:focus { top: .5rem; }
.mast, .mast nav, .wordmark, figcaption, .action-row { display: flex; align-items: center; }
.mast { gap: 2rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.mast nav { margin-left: auto; gap: clamp(.85rem, 2.5vw, 2.5rem); }
.mast a { color: var(--ink); text-decoration: none; font-weight: 600; }
.mast nav a:hover { text-decoration: underline; }
.wordmark { gap: .55rem; font-size: 1.85rem; font-weight: 750 !important; letter-spacing: -.075em; }
.wordmark img { border-radius: 30%; }
.shop-link { padding: .56rem 1.25rem; border: 1px solid #97aaa2; border-radius: 4rem; }
.mast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.mast .install-link { padding: .6rem 1.15rem; border-radius: 4rem; background: var(--ink); color: white; }
.mast .install-link:hover { background: var(--green); }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(1.5rem, 4vw, 5rem); padding-block: clamp(2.25rem, 5vw, 5rem); }
.kicker { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.kicker span { padding: 0 .35rem; opacity: .65; }
h1 { font-size: clamp(3.3rem, 6.7vw, 6.5rem); line-height: .98; letter-spacing: -.074em; margin: .28em 0; }
h1 span { color: var(--accent); }
.intro { max-width: 31rem; color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.25rem); }
.button, .text-button { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: white; border: 0; border-radius: 3rem; padding: .85rem 1.45rem; text-decoration: none; font-weight: 650; }
.button:hover, .text-button:hover { background: var(--green); }
.button:disabled { opacity: .6; cursor: wait; }
.hero-copy .button { margin-top: 1.6rem; }
.model, .format-photo { overflow: hidden; border-radius: 1.5rem; background: #e1e6dd; }
.model img { width: 100%; aspect-ratio: 1.35; height: auto; object-fit: cover; }
figcaption { gap: 1rem; justify-content: space-between; padding: .65rem .15rem 0; font-size: .875rem; }
figcaption span, .muted { color: var(--muted); }
.mission { color: white; background: #174d48; }
.mission-inner, .history { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.75rem, 6vw, 7rem); padding-block: clamp(3.25rem, 7vw, 7rem); }
.mission .kicker { color: #a0ded2; }
.mission p:not(.kicker) { max-width: 42rem; margin-top: 1.4rem; font-size: 1.1rem; }
.mission .motto { color: #bfe7dd; font-style: italic; }
.section-head > * + * { margin-top: .7rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: minmax(6rem,.43fr) 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 1.35rem 0; }
.year { font-size: 1.15rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.timeline p, .project-card p, details p { margin-top: .65rem; color: var(--muted); }
.formats { background: #e8efe8; padding-block: clamp(3rem, 6vw, 6rem); }
.format-grid, .project-grid, .metric-grid { display: grid; gap: 1.1rem; }
.format-grid { margin-top: 2rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,22rem),1fr)); }
.format-card { background: var(--paper); border-radius: 1.4rem; overflow: hidden; }
.format-photo { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 0; }
.format-copy { padding: clamp(1.2rem, 2.8vw, 2.25rem); }
.format-copy p { margin-top: .75rem; color: var(--muted); }
.format-copy dl { margin: 1rem 0 0; }
.format-copy dl div { display: flex; gap: 1rem; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); }
.format-copy dd { margin: 0; font-weight: 650; text-align: right; }
.project-block { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.project-block h2 { margin-bottom: 1.4rem; }
.project-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,15.5rem),1fr)); }
.project-card { border-top: 2px solid #86b3a9; padding: 1.3rem 0; }
.project-card a, .project-card button { display: inline-flex; margin-top: 1rem; margin-right: .7rem; }
.metric-grid { grid-template-columns: repeat(4,1fr); margin-bottom: 1rem; }
.metric { display: grid; gap: .25rem; border-top: 1px solid var(--line); }
.metric strong { color: var(--green); font-size: 2.6rem; }
.action-row { flex-wrap: wrap; gap: 1rem; }
.filters { margin: 1rem 0 2rem; }
#location-map { width: 100%; height: 20rem; border: 0; margin-bottom: 1rem; }
.map-toggle { border: 1px solid var(--line); border-radius: 2rem; padding: .65rem 1.15rem; margin-bottom: 1.25rem; color: var(--green); background: white; }
.location-pin { border-radius: 50%; background: var(--green); border: 3px solid white; box-shadow: 0 0 0 2px var(--ink); }
#location-map .leaflet-popup-content p { margin: .35rem 0; }
details { border-top: 1px solid var(--line); padding: .9rem 0; max-width: 54rem; }
summary { font-size: 1.15rem; font-weight: 650; }
.project-form { display: grid; max-width: 50rem; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.3rem; }
.project-form label { display: grid; gap: .3rem; font-weight: 600; }
.project-form .full, .project-form .swon-select-field { grid-column: 1/-1; }
input, textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #90aa9e; border-radius: .7rem; background: white; color: var(--ink); }
textarea { resize: vertical; }
.footer { background: #173c39; color: #e7f3ee; padding: 3.5rem 0; }
.footer-inner { display: grid; align-items: start; grid-template-columns: 1.4fr 1fr .7fr; gap: 2rem; }
.footer-name { font-size: 2.2rem; font-weight: 750; }
.footer h2 { margin: .65rem 0; font-size: 1.1rem; letter-spacing: 0; }
.footer nav, .fund { display: grid; justify-items: start; gap: .5rem; }
.footer a { color: #e7f3ee; }
.fund img { height: auto; }
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-ready:not(:focus-within) { opacity: 0; }
  .reveal-in { animation: company-reveal .58s cubic-bezier(.22,.65,.27,1) both; }
  .reveal-in:has(a, button, input, select, textarea, summary) { animation-name: company-fade; }
  @keyframes company-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes company-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 64rem) {
  .mast { flex-wrap: wrap; }
  .mast-actions { margin-left: auto; }
}
@media (max-width: 740px) {
  .mast { flex-wrap: wrap; gap: .55rem; padding: .8rem 0; }
  .mast nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: .25rem 1.05rem; }
  .mast nav a { padding: .3rem 0; }
  .mast-actions { margin-left: 0; }
  .hero, .history, .mission-inner, .footer-inner { grid-template-columns: 1fr; }
  .model img { aspect-ratio: 1.4; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .timeline li { grid-template-columns: 6.1rem 1fr; }
  .project-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
