/* ==========================================================================
   AAMM Group — one-page site
   Brand palette shared with the pitch deck (deck/build_deck.py):
   ink #10201A · green #1C5741 · leaf #47A97C · paper #F7F5F0
   mist #E4E7E1 · muted #5C6B63 · amber #C88A2E
   Type: Syne (display) + Space Grotesk (body/UI), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/syne-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink:      #0B1512;
  --ink-soft: #10201A;
  --green:    #1C5741;
  --leaf:     #47A97C;
  --mint:     #6FE0AC;
  --paper:    #F7F5F0;
  --mist:     #E4E7E1;
  --muted:    #5C6B63;
  --amber:    #C88A2E;
  --white:    #FFFFFF;

  --display: "Syne", "Segoe UI", -apple-system, sans-serif;
  --body: "Space Grotesk", "Segoe UI", -apple-system, sans-serif;
  --maxw: 1160px;
  --hairline-dark: rgba(111, 224, 172, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ kicker
   Micro-label: wide-tracked Space Grotesk + short leaf rule (deck kicker). */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--leaf);
}

/* --------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 18, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--paper);
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--mint);
}
.brand span { font-weight: 500; color: var(--paper); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.62);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--mint); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang {
  display: flex;
  border: 1px solid var(--hairline-dark);
  overflow: hidden;
}
.lang button {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 11px;
  border: 0;
  background: transparent;
  color: rgba(247, 245, 240, 0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang button:hover { color: var(--mint); }
.lang button[aria-pressed="true"] {
  background: var(--leaf);
  color: var(--ink);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-block;
  background: var(--leaf);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  background: var(--mint);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(111, 224, 172, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(247, 245, 240, 0.35);
}
.btn-ghost:hover {
  background: rgba(111, 224, 172, 0.08);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px var(--leaf);
}

.btn-light { background: var(--leaf); color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(247, 245, 240, 0.35);
}
.btn-ghost-light:hover {
  background: rgba(111, 224, 172, 0.08);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px var(--leaf);
}

/* ---------------------------------------------------------------------- hero
   Dark control-room hero: drifting grid + live route network behind copy. */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 72% 30%, rgba(28, 87, 65, 0.55), transparent 65%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-top: 110px;
}

/* drifting engineering grid — constant, very quiet */
.hero::before {
  content: "";
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(rgba(247, 245, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 245, 240, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 36s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  to { transform: translate(64px, 64px); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.net { width: 100%; height: 100%; }

.net-track {
  fill: none;
  stroke: rgba(111, 224, 172, 0.14);
  stroke-width: 1;
}
/* freight pulses — always in motion */
.net-pulse {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 46 954;
  filter: drop-shadow(0 0 6px rgba(111, 224, 172, 0.8));
  animation: net-run linear infinite;
}
.net-pulse.p1 { animation-duration: 8s; }
.net-pulse.p2 { animation-duration: 13s; animation-delay: -6s; opacity: 0.75; }
.net-pulse.p3 { animation-duration: 10s; animation-delay: -3s; opacity: 0.85; }
@keyframes net-run {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

.glow {
  fill: var(--mint);
  animation: glow-pulse 3.2s ease-in-out infinite;
}
.glow.g2 { animation-delay: 0.6s; }
.glow.g3 { animation-delay: 1.2s; }
.glow.g4 { animation-delay: 1.8s; }
.glow.g5 { animation-delay: 2.4s; }
@keyframes glow-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

.hero-content { position: relative; }

.hero .kicker { color: var(--mint); }
.hero .kicker::before { background: var(--mint); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.0;
  margin: 26px 0 28px;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 19.5px);
  font-weight: 300;
  color: rgba(247, 245, 240, 0.72);
  max-width: 56ch;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------- signature: the lane */
.lane-wrap {
  position: relative;
  margin-top: 84px;
  padding-bottom: 76px;
}

.lane { width: 100%; height: auto; display: block; overflow: visible; }

.lane-track {
  stroke: rgba(247, 245, 240, 0.16);
  stroke-width: 1.5;
}
.lane-pulse {
  stroke: var(--mint);
  stroke-width: 1.5;
  stroke-dasharray: 90 1030;
  stroke-dashoffset: 1120;
  filter: drop-shadow(0 0 5px rgba(111, 224, 172, 0.7));
  animation: lane-run 7s linear infinite;
}
@keyframes lane-run {
  to { stroke-dashoffset: 0; }
}

.lane-node circle {
  fill: var(--ink);
  stroke: var(--leaf);
  stroke-width: 2;
}
.lane-node-air circle { fill: var(--leaf); }
.lane-node text {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: rgba(247, 245, 240, 0.55);
  text-anchor: middle;
}
.lane-node:first-of-type text { text-anchor: start; }
.lane-node:last-of-type text { text-anchor: end; }

.lane-caption {
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(247, 245, 240, 0.45);
  text-align: center;
}

.lane-mini { margin-bottom: 44px; opacity: 0.6; }
.lane-mini .lane-track { stroke: rgba(247, 245, 240, 0.2); }
.lane-dot { fill: var(--leaf); }

/* ----------------------------------------------------------------- sections */
.section { padding: 104px 0; }

.section-tint { background: var(--mist); }

.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 20px 0 52px;
  max-width: 24ch;
}

/* ----------------------------------------------------------------- services */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 2px;
  padding: 32px 32px 36px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--leaf);
  transition: width 0.3s ease;
}
.card:hover {
  border-color: var(--leaf);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 32, 26, 0.08);
}
.card:hover::after { width: 100%; }
.card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------------- approach */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--paper);
  border: 1px solid rgba(28, 87, 65, 0.14);
  border-radius: 2px;
  padding: 32px;
}
.step-n {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--display);
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 14.5px; }

.approach-note {
  margin-top: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  max-width: 62ch;
}

/* ------------------------------------------------------------------ results */
.results-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 20px;
  align-items: stretch;
}

.result-hero {
  background: linear-gradient(160deg, var(--green), #123B2C 78%);
  border: 1px solid var(--hairline-dark);
  color: var(--paper);
  border-radius: 2px;
  padding: 40px 38px;
}
.result-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 20px;
}
.result-number {
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.result-caption {
  font-size: 15.5px;
  color: rgba(247, 245, 240, 0.75);
  margin: 12px 0 24px;
}
.result-body { font-size: 14.5px; color: rgba(247, 245, 240, 0.68); }

.result-example {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 2px;
  padding: 40px 38px;
}
.result-tag-example { color: var(--amber); }
.result-example h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.result-example p { color: var(--muted); font-size: 15px; }
.result-disclaimer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--mist);
  font-size: 12.5px !important;
}

/* -------------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}
.about-grid .section-title { margin-bottom: 0; }
.about-body p {
  font-size: 16.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ------------------------------------------------------------------ contact */
.contact {
  background:
    radial-gradient(900px 420px at 50% 110%, rgba(28, 87, 65, 0.5), transparent 70%),
    var(--ink);
  color: var(--paper);
  padding: 100px 0 110px;
  text-align: center;
}
.contact-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.contact-sub {
  max-width: 60ch;
  margin: 24px auto 42px;
  font-size: 16.5px;
  font-weight: 300;
  color: rgba(247, 245, 240, 0.65);
}
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------- footer */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline-dark);
  color: rgba(247, 245, 240, 0.45);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------- reveal */
/* Hidden-until-scroll only when JS is running (progressive enhancement). */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cards, .steps, .results-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 84px; }
  .section { padding: 76px 0; }
  .lane-node text { font-size: 22px; letter-spacing: 0.12em; }
}

@media (max-width: 520px) {
  .nav-inner { gap: 12px; }
  .lane-node text { font-size: 32px; }
  /* room to breathe: drop alternating labels on narrow screens */
  .lane-node:nth-of-type(even) text { display: none; }
  .lane-caption { font-size: 13px; }
}

/* ----------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .net-pulse { animation: none; opacity: 0; }
  .glow { animation: none; opacity: 0.5; }
  .lane-pulse { animation: none; opacity: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
