/* Visual identity: forest night, earth tones (sand, ochre, terracotta), soft motion. */
[hidden] { display: none !important; }
:root {
  --night: #16241c; --night-2: #1f3328; --ink: #1d2a22; --muted: #5e6b61; --line: #e6e0d4; --bg: #f7f3ec;
  --card: #fffdf9; --mint: #8fbf73; --cyan: #c8873a; --violet: #b5532f; --leaf: #3f7d4e; --sand: #efe6d6;
  --grad: linear-gradient(120deg, #e3b05c, var(--cyan) 50%, var(--violet));
  --red: #b23a2e; --amber: #c8873a; --green: #3f7d4e; --radius: 16px;
  --shadow: 0 10px 30px rgba(29, 42, 34, .08); --shadow-lg: 0 24px 60px rgba(29, 42, 34, .16);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15.5px; }
a { color: var(--cyan); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- header --- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(22, 36, 28, .72); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s; }
.topbar.scrolled { background: rgba(22, 36, 28, .92); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a, nav button.link { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14.5px; }
nav a:hover, nav button.link:hover { color: #fff; }
nav a.active { color: #fff; }

/* --- buttons --- */
.button, button { display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: #fffdf9; border: 0;
  border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  margin: 4px 8px 4px 0; box-shadow: 0 8px 24px rgba(200, 135, 58, .35); transition: transform .18s, box-shadow .18s; }
.button:hover, button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(181, 83, 47, .35); }
.button.secondary { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .22); }
.button.secondary:hover { background: rgba(255, 255, 255, .14); }
.card .button.secondary, main.wrap .button.secondary { color: var(--ink); background: #efe6d6; border-color: transparent; }
.button.small { padding: 8px 16px; font-size: 14px; margin: 0; }
button:disabled { background: #c3cad8; box-shadow: none; cursor: not-allowed; transform: none; }
button.link { background: none; box-shadow: none; padding: 0; font-weight: 400; margin: 0; border-radius: 0; }
button.link:hover { transform: none; box-shadow: none; }
form.inline { display: inline; }

/* --- hero (home) --- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 96px 0 110px; margin-top: -66px; padding-top: 162px; }
.hero::before { content: ""; position: absolute; inset: -40%; background:
  radial-gradient(40% 40% at 20% 30%, rgba(143, 191, 115, .28), transparent 60%),
  radial-gradient(35% 35% at 80% 20%, rgba(181, 83, 47, .35), transparent 60%),
  radial-gradient(30% 30% at 60% 80%, rgba(200, 135, 58, .28), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate(-3%, -2%) rotate(0deg); } to { transform: translate(3%, 2%) rotate(8deg); } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mint); background: rgba(143, 191, 115, .1); border: 1px solid rgba(143, 191, 115, .25); padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(143, 191, 115, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 191, 115, .6); } 70% { box-shadow: 0 0 0 10px rgba(143, 191, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 191, 115, 0); } }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 18px; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 600px; }
.stats { display: flex; gap: 34px; margin-top: 34px; }
.stat strong { display: block; font-size: 30px; letter-spacing: -.02em; }
.stat > span { color: rgba(255, 255, 255, .6); font-size: 13px; }


/* --- sections --- */
main.wrap { padding-top: 40px; padding-bottom: 64px; min-height: 70vh; }
main.home { padding: 0; max-width: none; }
.section { padding: 88px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .kicker { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 12px; }
h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 14px; } h2 { font-size: 21px; margin: 34px 0 14px; letter-spacing: -.01em; } h3 { font-size: 17px; margin: 8px 0 6px; }
.lead { font-size: 17px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.empty { text-align: center; padding: 48px; }
.narrow { max-width: 460px; margin: 0 auto; }
.grid { display: grid; gap: 20px; } .grid.two { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } .grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fffdf9; background: var(--grad); margin-bottom: 10px; }
.principle { border-top: 3px solid transparent; border-image: var(--grad) 1; border-radius: 0; box-shadow: none; background: transparent; padding-left: 0; padding-right: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.preview { background: var(--night); color: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.preview .row-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.preview .row-item:last-child { border-bottom: 0; }
.sources { display: flex; flex-wrap: wrap; gap: 10px; }
.sources span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cta { background: var(--night); color: #fff; border-radius: 26px; padding: 56px; position: relative; overflow: hidden; text-align: center; }
.cta::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(35% 35% at 30% 40%, rgba(143, 191, 115, .25), transparent 60%),
  radial-gradient(35% 35% at 70% 60%, rgba(181, 83, 47, .3), transparent 60%); animation: drift 16s ease-in-out infinite alternate; }
.cta > * { position: relative; }
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.avatar { width: 200px; height: 200px; border-radius: 28px; background: var(--grad); display: grid; place-items: center; font-size: 64px; font-weight: 800; color: #fffdf9; box-shadow: var(--shadow-lg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { background: #efe6d6; color: #5a3b22; border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* --- forms --- */
label { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; }
label.radio { font-weight: 500; display: inline-flex; align-items: center; margin-right: 22px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #d3d9e6; border-radius: 10px;
  font: inherit; font-weight: 400; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(200, 135, 58, .15); }
input[type=radio] { display: inline; width: auto; margin: 0 8px 0 0; accent-color: var(--cyan); }
textarea { resize: vertical; font-family: inherit; font-size: inherit; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
legend { font-weight: 700; padding: 0 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr 150px; gap: 14px; }
#map { height: 420px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; cursor: crosshair; }
#map .maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
.map-pin { width: 26px; height: 29px; }
.map-pin span { display: block; width: 22px; height: 22px; margin: 2px; background: var(--grad); border: 2px solid #fffdf9;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(29, 42, 34, .3); }
.maplibregl-ctrl-attrib { font-size: 11px; }
.alert { background: #fff6e8; border: 1px solid #ffd08a; color: #7a3e00; padding: 12px 16px; border-radius: 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* --- client area --- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
table.list tr:hover td { background: #fbf7f0; }
.status { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.status.ready { background: #e7f8ee; color: var(--green); } .status.pending { background: #fff3e0; color: var(--amber); }
.badge { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge.yes, .badge.sev-high { background: #fdecec; color: var(--red); }
.badge.not_assessed, .badge.sev-medium { background: #fff3e0; color: var(--amber); }
.badge.not_detected, .badge.sev-low { background: #eef1f6; color: var(--muted); }
.issue { border-left: 4px solid var(--line); transition: transform .2s, box-shadow .2s; } .issue:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.issue.yes { border-left-color: var(--red); } .issue.not_assessed { border-left-color: var(--amber); }
.issue-head { display: flex; justify-content: space-between; align-items: center; }

/* --- footer --- */
.footer { background: var(--night); color: rgba(255, 255, 255, .62); font-size: 13.5px; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; margin-left: 18px; }

@media (max-width: 860px) {
  .hero .wrap, .founder { grid-template-columns: 1fr; } .model-stage { max-width: 420px; }
  .row { grid-template-columns: 1fr; } nav { gap: 14px; } nav .hide-sm { display: none; }
  .cta { padding: 36px 22px; } .stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.on-dark { color: rgba(255, 255, 255, .75); }
.kicker { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.page .topbar { background: var(--night); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
section.reveal + section.reveal, section.card { margin-top: 28px; }

/* people and nature section */
.nature { align-items: center; }
.themes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.themes li { display: flex; gap: 12px; align-items: baseline; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; }
.themes strong { flex: 0 0 auto; font-size: 12px; letter-spacing: .05em; color: var(--card); background: var(--leaf);
  border-radius: 8px; padding: 3px 8px; }

/* people and nature visual: the topographic model image with thematic tags */

/* 3D model (home hero): three.js canvas, still image as fallback */
.model-stage { margin: 0; justify-self: center; width: 100%; max-width: 560px; }
.model { position: relative; aspect-ratio: 1 / .92; border-radius: 26px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(227, 176, 92, .16), transparent 65%); }
.model canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.model-fallback { position: absolute; inset: 12% 10%; width: 80%; height: 76%; object-fit: cover; border-radius: 20px;
  transform: perspective(1200px) rotateX(48deg) rotateZ(-28deg); box-shadow: 0 50px 80px rgba(0, 0, 0, .45); }
.model.webgl .model-fallback { display: none; }
.hud { position: absolute; left: 12px; z-index: 2; font-size: 12.5px; font-weight: 600; color: #fffdf9;
  background: rgba(22, 36, 28, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
.hud-top { top: 12px; display: flex; align-items: center; gap: 8px; } .hud-bottom { bottom: 12px; }
.hud strong { color: #e3b05c; font-variant-numeric: tabular-nums; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #8fbf73; animation: pulse 2s infinite; }
.model-stage figcaption { margin-top: 18px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .42); text-align: center; }

/* --- language switch --- */
.lang-switch { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border: 1px solid rgba(255, 253, 249, .35);
  border-radius: 999px; text-decoration: none; }
.lang-switch:hover { border-color: currentColor; }

/* --- place search on the map --- */
.place-search { position: relative; display: flex; gap: 8px; margin: 6px 0 8px; }
.place-search input { margin-top: 0; }
.place-search button { flex: none; }
.place-results { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.place-results li { padding: 2px 4px; }
.place-results button { width: 100%; justify-content: flex-start; text-align: left; background: none; color: var(--ink);
  padding: 8px 10px; border-radius: 8px; font-weight: 500; box-shadow: none; }
.place-results button:hover { background: var(--sand); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- approach, people and nature, custom quote --- */
.delay-note { font-size: 12.5px; color: rgba(255, 253, 249, .62); max-width: 560px; margin-top: 14px; }
.themes.grid { gap: 14px; }
.themes.grid li { flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px 20px; }
.quote { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.quote h2 { margin: 0 0 6px; font-size: 1.35rem; }
.quote p { margin: 0; }
.quote .button { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .quote { flex-direction: column; align-items: flex-start; } }
.positioning { color: rgba(255, 253, 249, .7); font-size: 14px; max-width: 600px; margin-top: -4px; }

/* --- team --- */
.member { display: flex; gap: 16px; align-items: flex-start; }
.member h3 { margin: 4px 0 2px; }
.avatar.small { flex: none; width: 64px; height: 64px; border-radius: 18px; font-size: 22px; box-shadow: var(--shadow); }
.team-line { color: var(--muted); }

/* --- drawing tools --- */
.draw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.alert-text { color: var(--red); font-weight: 600; }
