/* ==========================================================
   WONS — site stylesheet
   One-page layout rendered by assets/js/wons.js from site_data.js.
   ========================================================== */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f6f9f7;
  --bg-alt: #edf4f0;
  --surface: #ffffff;
  --surface-2: #f2f7f4;
  --ink: #07130d;
  --ink-2: #0d1f15;
  --text: #0f1d16;
  --text-2: #3e5046;
  --text-3: #6c7d73;
  --line: rgba(7, 40, 22, 0.1);
  --line-strong: rgba(7, 40, 22, 0.18);
  --green: #006d43;
  --green-2: #00a86b;
  --mint: #78fbb6;
  --mint-soft: #e3f5ea;
  --wash: rgba(0, 109, 67, 0.07);
  --grad: linear-gradient(120deg, #006d43 0%, #00a86b 100%);
  --grad-bright: linear-gradient(120deg, #00a86b 0%, #78fbb6 100%);
  --shadow-1: 0 1px 2px rgba(7, 40, 22, 0.05), 0 8px 24px rgba(7, 40, 22, 0.05);
  --shadow-2: 0 2px 6px rgba(7, 40, 22, 0.06), 0 24px 56px rgba(0, 109, 67, 0.14);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark {
  color-scheme: dark;
  --bg: #060c09;
  --bg-alt: #0a140f;
  --surface: #0e1913;
  --surface-2: #122019;
  --ink: #0e1913;
  --ink-2: #13241a;
  --text: #ecf6f0;
  --text-2: #a9bdb1;
  --text-3: #6f867a;
  --line: rgba(170, 240, 200, 0.09);
  --line-strong: rgba(170, 240, 200, 0.16);
  --green: #3fbf7f;
  --green-2: #5fd89a;
  --mint-soft: #11251a;
  --wash: rgba(63, 191, 127, 0.09);
  --grad: linear-gradient(120deg, #1f9a5e 0%, #5fd89a 100%);
  --shadow-1: none;
  --shadow-2: 0 0 0 1px rgba(95, 216, 154, 0.25), 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }

/* Scrollbar */
html { scrollbar-color: var(--green) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad); border: 3px solid var(--bg); border-radius: 12px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9999;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus-visible { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* ── Type ───────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-2); box-shadow: 0 0 0 4px var(--wash);
}
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em;
  max-width: 18ch;
}
.accent { color: var(--green); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-2); max-width: 60ch; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { max-width: 46ch; }
.mono { font-family: var(--font-mono); }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--green);
  background: var(--wash); padding: 5px 10px; border-radius: 999px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(0, 109, 67, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 109, 67, 0.35); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { transform: translateY(-2px); }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a {
  font-weight: 600; font-size: 14.5px; color: var(--text-2);
  padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--green); background: var(--wash); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.menu-btn { display: none; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99; background: var(--bg);
  padding: 24px clamp(16px, 4vw, 40px) 40px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -20%; right: -15%;
  width: 75vw; height: 75vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle at 55% 45%, rgba(0, 168, 107, 0.18), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 168, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0); } }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.95; letter-spacing: -0.045em; margin-bottom: 26px;
}
.hero h1 span.line { display: block; }
.hero .lead { margin-bottom: 36px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--text-3); }

/* Hero live panel */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: 22px; position: relative;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.panel-dots i:first-child { background: var(--green-2); }
.panel-url { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.panel-title { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 10px; }
.live-list { display: grid; gap: 6px; margin-bottom: 20px; }
.live-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  background: var(--surface-2); transition: background 0.2s, transform 0.2s var(--ease);
}
.live-row:hover { background: var(--wash); transform: translateX(3px); }
.live-row b { font-weight: 700; font-size: 14.5px; }
.live-row small { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.live-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--green-2); display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0.1em; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mini-grid { display: grid; grid-template-columns: repeat(21, 1fr); gap: 4px; }
.mini-grid i { aspect-ratio: 1; border-radius: 3px; background: var(--grad); opacity: 0; transform: scale(0.4); animation: pop 0.5s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.panel-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.panel-foot strong { font-family: var(--font-display); font-size: 26px; color: var(--text); letter-spacing: -0.03em; }

/* ── Marquee ───────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); background: var(--surface); padding: 18px 0; overflow: hidden; position: relative; }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee-track a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-2); }
.marquee-track a:hover { color: var(--green); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ── Cards (shared) ─────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1); transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--green) 35%, transparent); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--wash); color: var(--green); margin-bottom: 18px; transition: background 0.3s, color 0.3s;
}
.service-icon svg { width: 24px; height: 24px; }
.service:hover .service-icon { background: var(--grad); color: #fff; }
.service h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.025em; }
.service p { color: var(--text-2); font-size: 15px; flex: 1; }
.service-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.service { position: relative; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { padding: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; min-height: 270px; }
.product-domain { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.product h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.025em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--green); flex: none; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.product .arrow svg { width: 15px; height: 15px; }
.product:hover .arrow { background: var(--green); color: #fff; transform: rotate(-45deg); }
.product p { color: var(--text-2); font-size: 15px; flex: 1; }
.product p a { position: relative; z-index: 1; color: var(--green); }

.product.feature {
  grid-column: 1 / -1; min-height: 0; padding: clamp(28px, 5vw, 56px);
  background: var(--ink); border-color: transparent; color: #eaf6ef; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
}
.product.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 40%, rgba(0, 168, 107, 0.38), transparent 55%);
}
.product.feature > * { position: relative; }
.product.feature .product-domain { color: var(--mint); }
.product.feature h3 { font-size: clamp(2.4rem, 5vw, 4rem); justify-content: flex-start; }
.product.feature p { color: rgba(234, 246, 239, 0.75); font-size: 16.5px; max-width: 52ch; }
.product.feature .tag { background: rgba(255, 255, 255, 0.08); color: var(--mint); }
.product.feature .arrow { background: var(--mint); color: var(--ink); width: 48px; height: 48px; }
.feature-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--mint); padding: 5px 10px; border-radius: 999px; width: fit-content; }
/* DEGOR art: a stone pitched along an arc onto the target peg */
.feature-art { width: 100%; }
.feature-art svg { display: block; width: 100%; height: auto; overflow: visible; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.why-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 12px 0 6px; letter-spacing: -0.01em; }
.why-item p { font-size: 14.5px; color: var(--text-2); }
.why-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--green); }
.why-check svg { width: 15px; height: 15px; }

/* Stats band */
.stats { background: linear-gradient(180deg, var(--mint-soft), color-mix(in srgb, var(--mint-soft) 70%, var(--bg))); border-block: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; color: var(--green); }
.stat span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.project.big { grid-column: span 2; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.project-client { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; text-align: right; }
.project h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.project.big h3 { font-size: 30px; }
.project p { color: var(--text-2); font-size: 15px; flex: 1; }
.project .more {
  margin-top: 6px; align-self: flex-start; font-weight: 700; font-size: 14px; color: var(--green);
  display: inline-flex; align-items: center; gap: 8px;
}
.project .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.project .more svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.project:hover .more svg { transform: translateX(4px); }

/* Government explorer */
.gov-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 36px; }
.gov-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.gov-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; min-width: 128px; }
.gov-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; color: var(--green); line-height: 1.1; }
.gov-stat span { font-size: 12.5px; color: var(--text-3); }
.gov-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); transition: all 0.2s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip small { opacity: 0.65; margin-left: 4px; font-weight: 500; }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); min-width: 240px;
}
.search svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--text); width: 100%; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--wash); }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.site {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.site:hover { border-color: var(--green); transform: translateY(-2px); }
.site b { font-weight: 700; font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.site b em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.site span { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.sites-empty { color: var(--text-3); padding: 24px 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy p { color: var(--text-2); font-size: 17px; margin-bottom: 18px; }
.place {
  margin-top: 28px; display: flex; gap: 16px; align-items: center; padding: 18px 20px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.place svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.place b { display: block; }
.place span { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.principles { display: grid; gap: 12px; }
.principle { padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.principle .n { grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--green); line-height: 1; }
.principle h4 { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.principle p { font-size: 14.5px; color: var(--text-2); }
/* Timeline: endless carousel with prev/next arrows (see initTimeline) */
.timeline { margin-top: clamp(56px, 7vw, 88px); --tl-n: 4; }
.tl-viewport { overflow: hidden; }
.tl-track { display: flex; gap: 16px; touch-action: pan-y; will-change: transform; }
.tl { flex: 0 0 calc((100% - 16px * (var(--tl-n) - 1)) / var(--tl-n)); padding: 22px; border-top: 3px solid var(--line-strong); background: var(--surface); border-radius: 0 0 var(--r) var(--r); user-select: none; }
.tl-now { border-top-color: var(--green-2); }
.tl-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.tl-prev svg { transform: rotate(180deg); }
@media (max-width: 1000px) { .timeline { --tl-n: 2; } }
@media (max-width: 560px) { .timeline { --tl-n: 1; } }
.tl b { font-family: var(--font-display); font-weight: 800; font-size: 26px; display: block; margin-bottom: 6px; letter-spacing: -0.02em; }
.tl p { font-size: 14px; color: var(--text-2); }

/* News */
.news-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 40px); }
.news-feature { padding: clamp(28px, 4vw, 40px); text-align: left; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.news-feature h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.news-feature h3, .news-feature p { max-width: 62ch; }
.news-feature p { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 12px; align-items: center; }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.news-list { display: grid; }
.news-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; text-align: left; width: 100%;
  padding: 20px 6px; border-bottom: 1px solid var(--line); transition: padding 0.25s var(--ease), color 0.2s;
}
.news-row:first-child { border-top: 1px solid var(--line); }
.news-row:hover { padding-left: 14px; color: var(--green); }
.news-row b { font-weight: 700; font-size: 16px; }
.news-row svg { width: 16px; height: 16px; color: var(--text-3); }
.chip-tag { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 999px; background: var(--wash); color: var(--green); }
.chip-tag.hiring { background: rgba(234, 170, 40, 0.14); color: #a86a00; }
html.dark .chip-tag.hiring { color: #f0c060; }
.chip-tag.update { background: var(--surface-2); color: var(--text-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.form:hover { transform: none; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--wash); outline: none; }
.field [aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.contact-side { display: grid; gap: 12px; }
.contact-item { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; flex: none; }
.contact-item small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.contact-item a, .contact-item b { font-weight: 700; font-size: 16px; }
.contact-item a:hover { color: var(--green); }
.status { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: var(--r); background: var(--wash); color: var(--green); font-weight: 600; font-size: 14px; }

/* ── CTA + Footer ───────────────────────────────────────── */
.cta { padding: 0 0 clamp(56px, 7vw, 88px); }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(0, 168, 107, 0.45), transparent 55%); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
.cta-box p { color: rgba(255, 255, 255, 0.7); margin-top: 14px; }
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--text-2); font-size: 14.5px; max-width: 36ch; margin-top: 14px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 14.5px; color: var(--text-2); }
.footer li a:hover { color: var(--green); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ── Views (single page, shown as separate pages) ───────── */
.view[hidden] { display: none; }
.view { min-height: 70vh; }
.view > section:first-child:not(.hero) { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); }
.view.enter { animation: view-in 0.55s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.enter { animation: none; } }

/* ── Intro loader (ported from the previous site) ───────── */
#loader { display: none; }
.intro #loader {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: var(--bg); transition: opacity 0.6s ease, visibility 0.6s;
}
.intro body { overflow: hidden; }
#loader.closing { opacity: 0; visibility: hidden; }
.loader-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.loader-particles i {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; background: var(--green-2); opacity: 0;
  transform: translate(var(--fx), var(--fy));
  animation: particle-in var(--pdur, 1.4s) cubic-bezier(0.05, 0.7, 0.2, 1) var(--pd) forwards;
}
@keyframes particle-in { to { opacity: 0.9; transform: translate(var(--tx), var(--ty)); } }
.loader-logo { position: relative; width: 100px; height: 100px; opacity: 0; transform: scale(0.7); animation: logo-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards; }
@keyframes logo-in { to { opacity: 1; transform: none; } }
.loader-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; animation: bar-in 1.8s var(--ease) 0.1s forwards; }
@keyframes bar-in { to { transform: none; } }

/* ── Page-change curtain ────────────────────────────────── */
/* Same particle rings + logo as the intro, shortened. */
#curtain {
  position: fixed; inset: 0; z-index: 98; display: flex; align-items: center; justify-content: center;
  background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.35s ease-out;
}
#curtain.on { opacity: 1; pointer-events: auto; transition: opacity 0.2s ease-in; }
#curtain .loader-logo { width: 72px; height: 72px; animation-duration: 0.45s; animation-delay: 0.12s; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(4, 12, 8, 0.45); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal {
  position: fixed; z-index: 201; top: 50%; left: 50%; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  padding: clamp(28px, 4vw, 44px); opacity: 0; pointer-events: none; transform: translate(-50%, -47%) scale(0.98);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.modal::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-open .modal-backdrop { opacity: 1; pointer-events: auto; }
.modal-open .modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.modal-close:hover { background: var(--wash); color: var(--green); }
.modal-close svg { width: 18px; height: 18px; }
.modal h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 14px; padding-right: 32px; }
.modal .m-lead { font-size: 17px; color: var(--text); margin-bottom: 14px; }
.modal .m-text { color: var(--text-2); margin-bottom: 14px; white-space: pre-line; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.facts div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.facts dd { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.facts a { color: var(--green); }

/* ── Reveal on scroll ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .mini-grid i { animation: none; opacity: 1; transform: none; } }

/* Grid children may shrink below their content width (prevents sideways overflow on phones). */
.hero-grid > *, .about-grid > *, .contact-grid > *, .news-grid > *, .gov-head > *, .services > *, .products > *, .projects > * { min-width: 0; }
.live-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live-row b { white-space: nowrap; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .services, .products, .why { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: grid; }
  .nav-right { margin-left: auto; }
  .hero-grid, .about-grid, .contact-grid, .news-grid, .gov-head { grid-template-columns: 1fr; }
  .product.feature { grid-template-columns: 1fr; }
  .feature-art { max-width: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .search { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .services, .products, .why, .projects { grid-template-columns: 1fr; }
  .project.big { grid-column: auto; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee::before, .marquee::after { width: 40px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .mini-grid { grid-template-columns: repeat(14, 1fr); }
}

/* The footer CTA duplicates the Contact page. */
body[data-page="contact"] .cta { display: none; }
body[data-page="contact"] .footer { margin-top: 24px; }
