/* 180climate — Direction A "Canopy & Resin". Self-hosted fonts (SIL OFL). */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --forest: #10372B;
  --forest-deep: #0C2A21;
  --ink: #1B2620;
  --muted: #4E6157;
  --body2: #3F5248;
  --paper: #F6F8F5;
  --mist: #E9EEEA;
  --line: #D7DED8;
  --resin: #B8913B;
  --resin-light: #C9A552;
  --on-dark: #EEF2EE;
  --on-dark-2: #D3DDD6;
  --on-dark-3: #C5D1C9;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 4px; text-decoration-color: var(--resin); }
a:hover { color: #1E4A3B; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--resin-light); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--paper); color: var(--forest); padding: 10px 16px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.serif { font-family: var(--serif); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 24px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 36px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.nav-links a { text-decoration: none; color: inherit; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--resin-light); }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--resin-light); text-decoration: none; font-size: 15px; font-weight: 500; color: inherit; }
.nav-menu { display: none; }
.on-dark { color: var(--on-dark); }
.on-dark .brand img { filter: brightness(0) invert(1); }
.on-dark .nav-cta { color: #F3E7C8; }
.on-light .site-nav { color: var(--forest); border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav-links, .nav-cta.desk { display: none; }
  .nav-menu { display: block; }
  .nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--resin-light); font-size: 15px; font-weight: 500; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 24px; background: var(--forest-deep); color: var(--on-dark); z-index: 5; }
  .menu-panel a { color: var(--on-dark); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(201,165,82,0.3); font-size: 17px; }
}

/* Home hero */
.hero { position: relative; min-height: min(860px, 100svh); display: flex; flex-direction: column; background: var(--forest); overflow: hidden; }
.hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,55,43,0.6) 0%, rgba(16,55,43,0.08) 30%, rgba(16,55,43,0.38) 60%, rgba(12,42,33,0.93) 100%); }
.hero-body { position: relative; z-index: 1; margin-top: auto; padding: 0 var(--gutter) 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: end; }
.hero-kicker { margin: 0 0 18px; font-size: 16px; color: #D9E3DC; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 7.2vw, 112px); line-height: 0.96; letter-spacing: -0.01em; color: var(--paper); }
.hero-lede { margin: 28px 0 0; max-width: 560px; font-size: 19px; color: #E3EAE5; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; text-decoration: none; font-weight: 500; font-family: var(--sans); font-size: 16px; border: 0; cursor: pointer; }
.btn-light { background: var(--paper); color: var(--forest); }
.btn-resin { background: var(--resin-light); color: var(--forest); }
.btn-forest { background: var(--forest); color: var(--paper); }
.btn-forest:hover { background: #1E4A3B; color: var(--paper); }
.link-quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: inherit; text-decoration: underline; text-decoration-color: var(--resin-light); text-underline-offset: 6px; font-weight: 500; }
.router { justify-self: end; width: 100%; max-width: 460px; background: rgba(12,42,33,0.74); border-top: 1px solid var(--resin-light); padding: 24px 28px 8px; color: var(--paper); }
.router h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.router a { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid rgba(201,165,82,0.35); text-decoration: none; color: var(--paper); }
.router a:last-child { border-bottom: 0; }
.router a span:first-child { font-weight: 500; }
.router a span + span { font-size: 14px; color: #CFDAD3; }

/* Inner page hero */
.page-head { background: var(--forest); color: var(--on-dark); }
.page-head .site-nav { border-bottom: 1px solid rgba(201,165,82,0.25); }
.page-hero { padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(56px, 7vw, 88px); max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 72px; align-items: end; }
.page-hero .crumb { margin: 0 0 18px; font-size: 15px; color: var(--on-dark-2); }
.page-hero .crumb a { color: var(--on-dark); }
.page-hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6vw, 88px); line-height: 1; color: var(--paper); }
.page-hero .lede { margin: 0; max-width: 520px; font-size: 19px; color: var(--on-dark-2); }
.page-hero.with-image { align-items: center; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--on-dark-3); }

/* Sections */
section { scroll-margin-top: 24px; }
.sec { padding: clamp(72px, 9vw, 112px) 0; }
.sec-tight { padding: clamp(48px, 6vw, 72px) 0; }
.sec-mist { background: var(--mist); }
.sec-forest { background: var(--forest); color: var(--on-dark); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.03; color: var(--forest); }
.sec-forest .h2 { color: var(--paper); }
.h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; color: var(--forest); }
.sec-intro { margin: 0; max-width: 460px; color: var(--body2); }
.sec-forest .sec-intro { color: var(--on-dark-2); max-width: 500px; font-size: 18px; }
.rule { width: 56px; height: 1px; background: var(--resin); margin-top: 18px; }

/* In short (GEO) */
.in-short { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 72px; }
.in-short h2 { margin: 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.in-short .answer { grid-column: span 2; min-width: 0; }
.in-short .answer > p { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; font-weight: 500; color: var(--forest); }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 22px 40px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
@media (max-width: 700px) { .in-short .answer { grid-column: auto; } }

/* Index list */
.index { border-top: 1px solid var(--resin); }
.index a, .index .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.index a:hover .name { text-decoration: underline; text-decoration-color: var(--resin); text-underline-offset: 6px; }
.index .name { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; color: var(--forest); line-height: 1.1; }
.index .who { font-size: 15px; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 40px 32px; counter-reset: step; }
.steps li { border-top: 1px solid rgba(201,165,82,0.6); padding-top: 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--resin-light); }
.steps h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 500; color: var(--paper); }
.steps p { margin: 0; font-size: 15px; color: var(--on-dark-3); }
.steps.five { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.steps.light li { border-top-color: var(--resin); }
.steps.light li::before { color: var(--resin); }
.steps.light h3 { color: var(--forest); }
.steps.light p { color: var(--body2); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px; align-items: start; }
.feature { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; color: var(--muted); }
.feature .title { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--forest); }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--resin); }
.list a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list .title { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--forest); line-height: 1.1; }
.list a:hover .title, .feature:hover .title { text-decoration: underline; text-decoration-color: var(--resin); text-underline-offset: 6px; }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* Register table */
.register { width: 100%; border-collapse: collapse; font-size: 16px; }
.register th { text-align: left; font-weight: 500; color: var(--muted); font-size: 14px; padding: 0 16px 12px 0; border-bottom: 1px solid var(--resin); }
.register td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.register td:first-child a { font-family: var(--serif); font-size: 24px; font-weight: 600; text-decoration: none; }
@media (max-width: 700px) {
  .register thead { display: none; }
  .register tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .register td { display: block; padding: 2px 0; border: 0; }
  .register td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* Notes */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; }
.notes a { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--resin); text-decoration: none; color: var(--ink); }
.notes .title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--forest); }

/* Doors for agents */
.doors { display: flex; flex-direction: column; border-top: 1px solid var(--resin); }
.doors a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--forest); font-weight: 500; }
.doors a span + span { font-weight: 400; color: var(--muted); text-align: right; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px 72px; align-items: start; }

/* Close */
.close { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.close h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 5vw, 76px); line-height: 1; color: var(--paper); }
.close p { margin: 18px 0 0; max-width: 520px; color: var(--on-dark-2); }

/* Prose & content blocks */
.prose { max-width: 720px; }
.prose h2 { margin: 48px 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--forest); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 56px; }
.cols h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; color: var(--forest); }
.cols p, .cols li { color: var(--body2); }
.cols ul { margin: 0; padding-left: 18px; }
.cols li { margin-bottom: 8px; }
.box { border-top: 1px solid var(--resin); padding-top: 20px; }
.aside { background: var(--mist); padding: 28px; }
.aside h2, .aside h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; color: var(--forest); font-family: var(--sans); }
.aside p { margin: 0 0 10px; font-size: 15px; color: var(--body2); }
.datum { margin: 0; display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 0; border-top: 1px solid var(--resin); }
.datum dt, .datum dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.datum dt { color: var(--muted); font-size: 15px; padding-right: 24px; }
.datum dd { font-weight: 500; }
.datum dd small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 600px) { .datum { grid-template-columns: 1fr; } .datum dt { border-bottom: 0; padding-bottom: 0; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); margin: 0; padding: 0; list-style: none; }

/* Straight answers */
.qa { margin: 0; border-top: 1px solid var(--resin); }
.qa div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-weight: 500; font-size: 19px; color: var(--forest); }
.qa dd { margin: 6px 0 0; max-width: 760px; color: var(--body2); }

/* Fieldwork */
.video-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px 56px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--forest-deep); color: var(--paper); }
.player button { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 28px; background: linear-gradient(180deg, rgba(12,42,33,0.2), rgba(12,42,33,0.92)), url("/images/forest-1000.webp") center 40% / cover no-repeat; color: var(--paper); border: 0; cursor: pointer; text-align: left; font-family: var(--sans); }
.player .play { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; }
.player .play::before { content: ""; width: 0; height: 0; border-left: 14px solid var(--resin-light); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.player .vt { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.1; }
.player small { font-size: 13px; color: var(--on-dark-3); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: flex; flex-direction: column; border-top: 1px solid var(--resin); }
.videos a { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--forest); font-weight: 500; }
.videos a span + span { font-weight: 400; font-size: 14px; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.principles div { border-top: 1px solid var(--resin); padding-top: 18px; }
.principles h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; color: var(--forest); }
.principles p { margin: 0; font-size: 15px; color: var(--body2); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 32px; font-size: 15px; }
.specs dt { color: var(--on-dark-3); }
.specs dd { margin: 4px 0 0; font-weight: 500; color: var(--paper); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--resin-light); }

/* Code */
pre { margin: 0; padding: 20px; background: var(--forest-deep); color: #DCE6DF; font-size: 14px; line-height: 1.55; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }

/* Forms */
.form { display: grid; gap: 20px; max-width: 720px; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #AEBBB2; background: #FFFFFF; font: inherit; color: var(--ink); border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #A1361F; }
.field-error { color: #A1361F; font-size: 14px; margin-top: 4px; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field .choice { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font-weight: 400; }
.filter button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--forest); font: inherit; font-size: 15px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
[hidden] { display: none !important; }
.field .choice input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--forest); }
.form-status { font-size: 15px; color: var(--body2); }
.hp { position: absolute; left: -9999px; }
.draft { margin-top: 32px; padding: 24px; background: var(--mist); max-width: 720px; }
.draft pre { background: #FFFFFF; color: var(--ink); white-space: pre-wrap; border: 1px solid var(--line); margin: 12px 0; }

/* Footer */
.site-foot { background: var(--forest-deep); color: var(--on-dark-3); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.site-foot a { color: var(--on-dark); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lede, .hero .actions, .router { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-lede { animation-delay: 120ms; }
  .hero .actions { animation-delay: 220ms; }
  .router { animation-delay: 360ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media print { .site-nav, .site-foot, .close, .router { display: none; } body { background: #fff; } }
