:root {
  --primary: #2D5A27;
  --primary-deep: #1E3E1A;
  --sage-light: #B8D4A8;
  --paper: #FAFAF6;
  --paper-deep: #F2F1E9;
  --ink: #14140F;
  --ink-muted: #5C5E58;
  --rain: #8A8D86;
  --silver: #C9CDD8;
  --border: #E4E3DB;
  --bg: var(--paper);
  --bg-alt: #F4F3EC;
  --font-display: 'Archivo Black', sans-serif;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'Fragment Mono', monospace;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; }

.mono { font-family: var(--font-mono); }
em { font-style: normal; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--paper); box-shadow: 0 2px 12px rgba(20,20,15,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: .03em; color: var(--ink); }
.brand-name i { color: var(--primary); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-cta { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: .02em; padding: 10px 20px; color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; text-decoration: none;
  font-family: var(--font-body); transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--primary); color: #fff; padding: 14px 30px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45,90,39,.25); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); padding: 12px 28px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh;
  background: var(--paper); padding: 160px 0 120px; width: 100%; max-width: 100vw; overflow: hidden; }
.hero-field { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 85% 18%, rgba(184,212,168,.18), transparent 32%); }
.storm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; max-width: 100%; }
.hero-text { max-width: 720px; overflow-wrap: break-word; }
.hero-tag { font-size: 12px; color: var(--ink-muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 7.5vw, 92px);
  line-height: .98; letter-spacing: .005em; color: var(--ink); margin-bottom: 26px; overflow-wrap: break-word; }
.hero h1 .sage { color: var(--primary); }
.hero-sub { font-size: 17px; color: var(--ink-muted); max-width: 560px; margin-bottom: 30px; overflow-wrap: break-word; }
.hero-rate { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 34px;
  font-family: var(--font-display); font-size: 26px; color: var(--primary); transition: opacity .6s; }
.hero-rate .mono { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: .12em; }
.hero-rate.flash { animation: settle-flash 1.1s ease; }
@keyframes settle-flash {
  0% { filter: drop-shadow(0 0 0 transparent); }
  35% { filter: drop-shadow(0 0 14px var(--silver)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.storm-headline { position: relative; }
html.js.storming .storm-headline { opacity: 0; }
html.js.storm-done .storm-headline { animation: type-in .5s ease forwards; }
@keyframes type-in { to { opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; max-width: 100%; }
.section-tag { display: inline-block; font-size: 11px; color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: .14em; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--rain); position: relative; }
.section-tag::after { content: ""; position: absolute; right: -14px; bottom: -3px; width: 6px; height: 6px; background: var(--primary); transform: rotate(45deg); }
.section-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.02; letter-spacing: .005em; color: var(--ink); overflow-wrap: break-word; }
.section-body { color: var(--ink-muted); margin-top: 16px; max-width: 640px; overflow-wrap: break-word; }

/* formation */
.formation-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; max-width: 100%; }
.formation-lead { font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 100%; overflow-wrap: break-word; }
.measure-list { display: grid; gap: 20px; max-width: 100%; }
.measure { display: flex; gap: 16px; align-items: flex-start; }
.measure-mark { flex-shrink: 0; width: 14px; height: 14px; margin-top: 7px; border: 2px solid var(--primary); transform: rotate(45deg); position: relative; }
.measure-mark::after { content: ""; position: absolute; inset: 3px; background: var(--sage-light); }
.measure p { font-size: 15px; color: var(--ink-muted); max-width: 100%; overflow-wrap: break-word; }
.measure strong { color: var(--ink); font-weight: 600; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--ink-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; max-width: 100%; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 4px 16px rgba(20,20,15,.05); transition: transform .2s, border-color .2s; max-width: 100%; }
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card-word { display: inline-block; font-family: var(--font-display); font-size: 15px; letter-spacing: .18em;
  color: var(--primary); margin-bottom: 18px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; }
.card-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.card-text { font-size: 15px; color: var(--ink-muted); overflow-wrap: break-word; }

/* timeline */
.timeline { list-style: none; margin: 12px 0 32px; display: grid; gap: 34px; position: relative; max-width: 100%; }
.timeline::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 23px; width: 0; border-left: 2px dashed var(--rain); }
.timeline-item { display: flex; gap: 22px; align-items: flex-start; max-width: 100%; }
.timeline-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--primary); font-size: 13px; border: 1.5px solid var(--ink); }
.timeline-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--ink); }
.timeline-text { color: var(--ink-muted); font-size: 15px; }
.timeline-item:last-child { background: var(--bg-alt); }
@media (min-width: 821px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline-item:nth-child(odd) { justify-self: end; text-align: right; }
  .timeline-item:nth-child(odd) .timeline-num { order: 2; }
  .timeline-item:nth-child(odd) > div { order: 1; }
  .timeline-item:nth-child(even) { justify-self: start; }
  .timeline-item:nth-child(5) { grid-column: 1 / -1; justify-self: center; text-align: left; }
  .timeline-item:nth-child(5) .timeline-num { order: 0; }
  .timeline-item:nth-child(5) > div { order: 0; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  #applications .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* tools */
.tools-list { display: grid; gap: 14px; max-width: 640px; margin-top: 8px; }
.tool-item { display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; color: var(--ink); max-width: 100%; }
.tool-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* engagement */
.engagement-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; max-width: 100%; }
.engagement-list { list-style: none; margin-top: 8px; display: grid; gap: 14px; }
.engagement-item { background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; color: var(--ink-muted); max-width: 100%; }
.engagement-item strong { color: var(--ink); }
.availability-card { position: relative; border-radius: var(--radius); color: #fff; padding: 34px;
  background: linear-gradient(160deg, var(--primary) 0%, #4A7A3F 100%); }
.availability-card::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.35); border-radius: 8px; pointer-events: none; }
.availability-badge { display: inline-block; background: var(--sage-light); color: var(--primary);
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 4px; padding: 6px 12px; margin-bottom: 20px; }
.availability-title { font-family: var(--font-heading); font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.availability-text { color: rgba(255,255,255,.92); font-size: 15px; }

/* works */
.work-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: 0 4px 16px rgba(20,20,15,.05); margin-top: 8px; max-width: 100%; }
.work-title { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--ink); }
.work-text { color: var(--ink-muted); max-width: 560px; overflow-wrap: break-word; }
.work-stats { display: flex; gap: 56px; margin-top: 28px; flex-wrap: wrap; }
.work-num { display: block; font-family: var(--font-display); font-weight: 400; font-size: 42px; color: var(--primary); line-height: 1; }
.work-label { font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; margin-top: 36px; align-items: start; max-width: 100%; }
.proof-media { margin: 0; max-width: 100%; }
.proof-media figure { margin: 0; max-width: 100%; }
.proof-media figure + figure { margin-top: 30px; }
.proof-media img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(20,20,15,.08); }
.proof-caption { display: block; margin-top: 12px; font-size: 11px; color: var(--ink-muted); letter-spacing: .1em; text-transform: uppercase; }
.proof-title { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.proof-list { list-style: none; display: grid; gap: 14px; max-width: 100%; }
.proof-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-muted); overflow-wrap: break-word; }
.proof-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px; border: 1.5px solid var(--primary); transform: rotate(45deg); }
.proof-list strong { color: var(--ink); }

/* contact */
.contact-section { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.contact-section .section-head { text-align: left; }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* footer */
.site-footer { background: var(--primary); color: #fff; padding: 52px 0 44px; text-align: center; }
.footer-inner { display: grid; gap: 14px; justify-items: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name i { color: var(--sage-light); }
.footer-logo { filter: brightness(0) invert(1); opacity: .92; }
.footer-text { color: rgba(255,255,255,.85); font-size: 14px; }
.footer-link { color: var(--sage-light); text-decoration: none; font-weight: 600; font-family: var(--font-mono); font-size: 13px; }
.footer-link:hover { text-decoration: underline; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; gap: 5px; line-height: 1; }
.footer-social svg { display: block; flex-shrink: 0; }
.footer-copy { color: rgba(255,255,255,.6); font-size: 12px; font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .container { padding: 0 16px; max-width: 100%; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 20px 16px; gap: 18px; box-shadow: 0 12px 24px rgba(20,20,15,.12); }
  .nav-links.open { display: flex; }
  .hero { padding: 130px 20px 90px; }
  .hero h1 { font-size: clamp(38px, 12vw, 60px); }
  .section { padding: 80px 0; }
  .section-title { font-size: clamp(28px, 8.5vw, 42px); }
  .formation-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-strip { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .work-num { font-size: 36px; }
  .proof { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js.storming .storm-headline { opacity: 1; }
}

/* ---------- coming-soon ---------- */
.cs-hero { text-align: center; }
.cs-hero .hero-text { margin: 0 auto; }
.cs-hero .hero-sub { margin: 0 auto 38px; }
.cs-hero .hero-actions { justify-content: center; }
.cs-hero .section-tag { margin-bottom: 34px; }
.cs-headline { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px, 11vw, 132px); line-height: 1; letter-spacing: .005em;
  color: var(--ink); margin-bottom: 28px; overflow-wrap: break-word; }
@media (max-width: 820px) {
  .cs-headline { font-size: clamp(48px, 13vw, 72px); }
}
