/* ==========================================================================
   OT Masters - design system
   Palette anchored on the logo olive, with an industrial "signal" amber used
   only on dark surfaces (it does not pass contrast on light ones).
   ========================================================================== */

:root {
  /* surfaces */
  --bg:            #faf8f5;
  --bg-2:          #f1ede5;
  --ink:           #141210;
  --ink-2:         #1d1a17;
  --ink-3:         #292420;

  /* text */
  --text:          #1a1714;
  --muted:         #5c554c;
  --on-dark:       #f4f1ec;
  --on-dark-muted: #bcb4a8;
  --on-dark-faint: #948b7f;

  /* brand */
  --green:         #4f6648;
  --green-deep:    #3c4f36;
  --green-bright:  #8fb080;
  --signal:        #e3a03c;

  /* lines */
  --line:          #e2dcd2;
  --line-dark:     rgba(255, 255, 255, .14);

  --wrap: 1200px;
  --radius: 3px;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 680;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -.015em; }

p { margin: 0 0 1.05em; }
strong { font-weight: 650; color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }

section { padding: 104px 0; position: relative; }
section.tight { padding: 64px 0; }

/* ---- dark surfaces ---- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: var(--on-dark-muted); }
.dark a { color: var(--green-bright); }
.dark strong { color: #fff; }

.warm { background: var(--bg-2); }

/* ==========================================================================
   Eyebrows, leads, section numerals
   ========================================================================== */

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--green);
  flex: none;
}
.dark .kicker { color: var(--signal); }
.dark .kicker::before { background: var(--signal); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; line-height: 1.55; }
.dark .lead { color: var(--on-dark-muted); }

/* big faint numeral anchored to a section */
.sec-num {
  position: absolute;
  top: 48px; right: 28px;
  font-family: var(--mono);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--ink);
  opacity: .038;
  pointer-events: none;
  user-select: none;
}
.dark .sec-num { color: #fff; opacity: .05; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 245, .9);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: var(--scroll, 0%);
  background: var(--green);
  transition: width .08s linear;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 94px; gap: 24px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-size: .96rem;
  font-weight: 520;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--green); }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  cursor: pointer;
  color: var(--ink);
  font: 600 .9rem/1 var(--sans);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: .96rem; font-weight: 620;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.dark .btn-ghost,
.hero .btn-ghost,
.page-hero .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  border-color: var(--signal); color: var(--signal); background: rgba(227,160,60,.08);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: 130px 0 1px; /* 1px stops the stat bar's negative margin collapsing out */
  isolation: isolate;
}

/* layered background: grid + olive bloom + signal bloom */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 72% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 72% 30%, #000 10%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute; right: -14%; top: -28%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(79,102,72,.42), transparent 62%),
    radial-gradient(circle at 70% 65%, rgba(227,160,60,.14), transparent 60%);
  filter: blur(10px);
}

/* animated packet traces */
.trace { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.trace path { fill: none; stroke-linecap: round; }
.trace .wire { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.trace .pulse {
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-dasharray: 3 420;
  animation: packet 7s linear infinite;
}
.trace .pulse.g { stroke: var(--green-bright); }
.trace .p2 { animation-delay: -2.4s; animation-duration: 9s; }
.trace .p3 { animation-delay: -4.8s; animation-duration: 6s; }
.trace .p4 { animation-delay: -1.2s; animation-duration: 11s; }
@keyframes packet { from { stroke-dashoffset: 423; } to { stroke-dashoffset: 0; } }

.hero .wrap { position: relative; }

/* two-column hero: copy left, live wire monitor right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 54px;
  align-items: center;
}

/* staged entrance */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.js .hero-copy > * { animation: rise .8s var(--ease) both; }
.js .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.js .hero-copy > *:nth-child(2) { animation-delay: .14s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .23s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .32s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .41s; }
.js .hero-visual { animation: fade 1.1s var(--ease) .3s both; }
.js .hero-stats  { animation: rise .9s var(--ease) .52s both; }

.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero h1 .mark {
  position: relative;
  display: inline-block;
  color: var(--green-bright);
}
.hero h1 .mark::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .08em;
  height: .09em;
  background: var(--signal);
  opacity: .9;
  transform-origin: left;
  animation: sweep 1.1s var(--ease) .35s both;
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero .lead { color: var(--on-dark-muted); font-size: 1.26rem; max-width: 56ch; }

.hero-foot {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  margin-top: 46px; padding: 24px 0 70px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero-foot span { display: flex; align-items: center; gap: 9px; }
.hero-foot span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); flex: none;
}

/* ---- live wire monitor ---- */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / .9;
  min-height: 400px;
}
.hero-visual canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.hud {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(8, 7, 6, .66);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .06em;
}
.hud-top {
  display: flex; align-items: center; gap: 9px;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}
.hud-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7fd4a0; flex: none;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(127, 212, 160, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(127, 212, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 212, 160, 0); }
}
.hud-top .sep { margin-left: auto; color: var(--on-dark-faint); }

.hud-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hud-log li {
  display: flex; gap: 11px; align-items: baseline;
  color: var(--on-dark-faint);
  white-space: nowrap; overflow: hidden;
  animation: fade .5s var(--ease) both;
}
.hud-log li .t { color: #6d655b; flex: none; }
.hud-log li .m { overflow: hidden; text-overflow: ellipsis; }
.hud-log li:first-child .m { color: var(--on-dark); }
.hud-log li.alert .m { color: var(--signal); }

/* stat bar that straddles the hero and the next section */
.hero-stats {
  position: relative;
  z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  margin-bottom: -74px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(26,23,20,.18);
}
.hero-stats > div { padding: 30px 32px; border-right: 1px solid var(--line-dark); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats .n {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700; letter-spacing: -.04em; color: #fff; line-height: 1;
}
.hero-stats .n em { font-style: normal; color: var(--signal); }
.hero-stats .l {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-dark-muted); margin-top: 10px;
}

/* ---- interior page hero ---- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: 96px 0 86px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-bg::after { opacity: .7; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .lead { color: var(--on-dark-muted); }

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 15px 0;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: inline-flex; gap: 46px; align-items: center;
  animation: ticker 42s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-muted);
  display: inline-flex; align-items: center; gap: 46px;
}
.ticker-track span::after { content: "\25C6"; color: var(--signal); font-size: .55rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Vendor wordmarks
   ========================================================================== */

.vendors { background: var(--bg); padding: 132px 0 58px; }
.vendors-label {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 26px;
}

/* ---- auto-scrolling logo strip ----
   The track holds the same list twice; translating it -50% loops seamlessly.
   Add or remove items freely - only keep the two copies identical. */
.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 68px;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-item {
  flex: none;
  height: 38px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1);
  opacity: .62;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.logo-item:hover { filter: none; opacity: 1; }
.logo-item img { height: 100%; width: auto; max-width: 160px; object-fit: contain; }

/* Text fallback, used until a real logo file is dropped in */
.logo-item .wordmark {
  font-size: 1.28rem; font-weight: 700; letter-spacing: -.025em;
  color: #3a342e; white-space: nowrap;
}

/* Client reference strip: more items, slower, smaller marks than the vendor row */
.logo-track.slow { animation-duration: 76s; }
.logo-marquee.clients .logo-track { gap: 54px; }
.logo-marquee.clients .logo-item { height: 44px; opacity: .7; }
.logo-marquee.clients .logo-item img { max-width: 150px; }
.logo-marquee.clients .logo-item .wordmark {
  font-size: .98rem; font-weight: 620; letter-spacing: -.01em; color: #4a443d;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--green);
  transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(26,23,20,.09); border-color: #d2cbbf; }
.card:hover::before { width: 100%; }

.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 1em; }
.card .more { margin-top: auto; font-size: .91rem; font-weight: 640; text-decoration: none; }
.card .more::after { content: " \2192"; transition: margin-left .2s var(--ease); display: inline-block; }
.card:hover .more::after { margin-left: 5px; }

.card-num {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .16em;
  color: var(--green); margin-bottom: 16px; font-weight: 500;
}

.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card:hover { border-color: rgba(255,255,255,.26); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.dark .card::before { background: var(--signal); }
.dark .card p { color: var(--on-dark-muted); }
.dark .card-num { color: var(--signal); }

/* feature card - taller, accent framed */
.card.feature {
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.card.feature h3 { color: #fff; font-size: 1.5rem; }
.card.feature p { color: var(--on-dark-muted); }
.card.feature .card-num { color: var(--signal); }
.card.feature::before { background: var(--signal); width: 100%; }

/* vendor cards */
.vendor-card .vname { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-bottom: 5px; }
.vendor-card .vrole {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green); margin-bottom: 18px;
}
.vendor-card ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.vendor-card li { margin-bottom: 6px; }

/* ==========================================================================
   Counters / proof
   ========================================================================== */

.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden;
}
.proof { background: var(--ink-2); padding: 42px 34px; }
.proof .n {
  font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 700;
  letter-spacing: -.045em; color: #fff; line-height: 1;
}
.proof .n em { font-style: normal; color: var(--signal); }
.proof .l {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-dark-muted); margin: 14px 0 10px;
}
.proof .d { font-size: .93rem; color: var(--on-dark-muted); margin: 0; line-height: 1.5; }

/* ==========================================================================
   Before / after story block
   ========================================================================== */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.story > div { padding: 40px 36px; }
.story .before { background: var(--ink-2); border-right: 1px solid var(--line-dark); }
.story .after  { background: linear-gradient(150deg, rgba(79,102,72,.3), rgba(20,18,16,.2)); }
.story h4 {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 20px;
}
.story .before h4 { color: var(--on-dark-faint); }
.story .after h4 { color: var(--signal); }
.story ul { margin: 0; padding-left: 20px; }
.story li { margin-bottom: 11px; color: var(--on-dark-muted); font-size: .97rem; }
.story .after li { color: var(--on-dark); }

/* ==========================================================================
   Partner band
   ========================================================================== */

.pledge {
  border-left: 3px solid var(--signal);
  padding: 6px 0 6px 28px;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 26px;
}

.tick { list-style: none; margin: 0; padding: 0; }
.tick li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  color: var(--muted); font-size: .99rem;
}
.tick li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.dark .tick li { color: var(--on-dark-muted); }
.dark .tick li::before { border-color: var(--signal); }

.no-list { list-style: none; margin: 0; padding: 0; }
.no-list li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  color: var(--on-dark-faint); font-size: .99rem;
}
.no-list li::before {
  content: "\00D7"; position: absolute; left: 2px; top: -.08em;
  color: #8a5f5f; font-size: 1.3rem; line-height: 1.3;
}

/* ==========================================================================
   Client logo wall (placeholder until real marks arrive)
   ========================================================================== */

.logo-wall {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.logo-wall div {
  background: #fff; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: #b3aba0;
  transition: background .25s var(--ease);
}
.logo-wall div:hover { background: var(--bg-2); }
.logo-wall img { max-height: 46%; max-width: 68%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; }

/* ==========================================================================
   Steps / timeline
   ========================================================================== */

.steps { position: relative; margin-top: 44px; }
.steps::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px;
  width: 1px; background: var(--line);
}
.dark .steps::before { background: var(--line-dark); }
.step {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  padding: 0 0 34px 54px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green);
}
.dark .step::before { background: var(--ink); border-color: var(--signal); }
.step .sn {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .14em;
  color: var(--green); margin-bottom: 6px;
}
.dark .step .sn { color: var(--signal); }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.dark .step p { color: var(--on-dark-muted); }

/* ==========================================================================
   Service detail rows
   ========================================================================== */

.svc {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 54px;
}
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc .svc-side p { color: var(--muted); font-size: .98rem; }
.svc ul { margin: 0 0 18px; padding-left: 20px; }
.svc li { margin-bottom: 8px; color: var(--muted); }
.svc .label {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink); margin: 26px 0 11px; font-weight: 600;
}
.svc.flagship { background: linear-gradient(180deg, rgba(79,102,72,.07), transparent 70%); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.chip {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .07em;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--muted); background: #fff;
}
.dark .chip { border-color: var(--line-dark); background: rgba(255,255,255,.04); color: var(--on-dark-muted); }

/* ==========================================================================
   Locations
   ========================================================================== */

.loc {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--ink-2);
  overflow: hidden;
}
.loc::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,102,72,.35), transparent 65%);
}
.loc .tag {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 12px;
}
.loc h3 { color: #fff; margin-bottom: .35em; }
.loc p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; }
.loc .reg {
  margin-top: 16px; font-family: var(--mono); font-size: .78rem;
  letter-spacing: .04em; color: var(--on-dark-faint);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem;
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text);
  transition: border-color .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.form-note { font-size: .88rem; color: var(--muted); margin-top: 16px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.contact-list .k {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  background: var(--green-deep);
  color: #fff;
  padding: 84px 0;
  overflow: hidden;
}
.cta-band::before {
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--bg-2); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 76px 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .15em;
  text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-logo { height: 46px; width: auto; margin-bottom: 20px; }

/* social link */
.social {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--on-dark-muted);
}
.social svg {
  width: 32px; height: 32px; flex: none;
  box-sizing: border-box;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 7px;
  fill: var(--on-dark-muted);
  transition: fill .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.social:hover { color: #fff; }
.social:hover svg { fill: var(--ink); background: var(--signal); border-color: var(--signal); }

/* same control on a light surface (contact page) */
.contact-list .social { color: var(--text); }
.contact-list .social svg { border-color: var(--line); fill: var(--muted); background: #fff; }
.contact-list .social:hover { color: var(--green); }
.contact-list .social:hover svg { fill: #fff; background: var(--green); border-color: var(--green); }
.footer-legal {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .84rem; color: var(--on-dark-faint);
}
.footer-legal .entity { font-family: var(--mono); letter-spacing: .04em; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt0 { margin-top: 0; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split.wide-right { grid-template-columns: .85fr 1.15fr; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 100; background: #fff; padding: 11px 18px; border-radius: var(--radius); }

/* reveal on scroll - only hidden when JS is present, so a no-JS visit still reads */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16 / 11; min-height: 340px; }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; gap: 24px; }
  .split, .split.wide-right { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story .before { border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .hero { padding: 86px 0 0; }
  .nav { min-height: 78px; }
  .brand img { height: 40px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / .78; min-height: 290px; }
  .hud { font-size: .62rem; padding: 11px 12px; }
  .hero-stats { grid-template-columns: 1fr; margin-bottom: -46px; }
  .vendors { padding: 94px 0 44px; }
  .hero-stats > div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .hero-stats > div:last-child { border-bottom: 0; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .sec-num { font-size: 5rem; top: 24px; right: 18px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 28px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .trace .pulse, .hud-dot, .hud-log li { animation: none; }
  /* no auto-scroll: show the first copy of the strip, wrapped and centred */
  .logo-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; gap: 24px 48px; }
  .logo-track .dup { display: none; }
  .js .hero-copy > *, .js .hero-visual, .js .hero-stats { animation: none; }
  .hero h1 .mark::after { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================================
   References map
   ========================================================================== */

.map-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
}

.map-pane { position: relative; }
#meta-map {
  width: 100%; height: auto; display: block;
  overflow: hidden;              /* countries extending past the frame must clip */
  background: #1a1613;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

#meta-map .land path {
  fill: #2b2521;
  stroke: var(--ink);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
#meta-map .acts .c-act {
  fill: #4f6648;
  stroke: var(--ink);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .2s var(--ease);
}
#meta-map .acts .c-act:hover { fill: #6f8c64; }
#meta-map .acts .c-act.sel  { fill: var(--signal); }

#meta-map .mk { cursor: pointer; }
#meta-map .mk-ring {
  fill: none; stroke: var(--signal); stroke-width: 1.5;
  opacity: .35; vector-effect: non-scaling-stroke;
  transition: opacity .2s var(--ease), r .2s var(--ease);
}
#meta-map .mk-dot { fill: var(--ink); stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; }
#meta-map .mk-n {
  text-anchor: middle; font-family: var(--mono); font-size: 15px;
  font-weight: 600; fill: var(--signal); pointer-events: none;
}
#meta-map .mk:hover .mk-ring,
#meta-map .mk.sel .mk-ring { opacity: .9; }
#meta-map .mk.sel .mk-dot { fill: var(--signal); }
#meta-map .mk.sel .mk-n { fill: var(--ink); }

/* country tabs */
.ctabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.ctab {
  font: 600 .88rem/1 var(--sans);
  padding: 10px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  background: transparent;
  color: var(--on-dark-muted);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.ctab em {
  font-style: normal; font-family: var(--mono); font-size: .76rem;
  color: var(--signal); margin-left: 5px;
}
.ctab:hover { border-color: rgba(255,255,255,.34); color: #fff; }
.ctab.is-on { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.ctab.is-on em { color: var(--ink); opacity: .7; }

/* reference list */
.ref-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.ref-head h3 { color: #fff; margin: 0; font-size: 1.25rem; }
.ref-head .n {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--signal);
}

.ref-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-height: 560px; overflow-y: auto;
}
.rc {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 10px 12px;
  animation: fade .35s var(--ease) both;
}
.rc[hidden] { display: none; }
.rc-logo {
  width: 72px; height: 40px; flex: none;
  background: #fff; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 3px;
}
.rc-logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}
.rc-none { background: rgba(255,255,255,.07); }
.rc-name { font-size: .88rem; color: var(--on-dark); line-height: 1.35; }

@media (max-width: 1000px) {
  .map-grid { grid-template-columns: 1fr; gap: 34px; }
  .ref-list { max-height: none; }
}
@media (max-width: 780px) {
  .ref-list { grid-template-columns: 1fr; }
}

/* ---- references map on a light surface (home page) ---- */
.refs-light #meta-map { background: #efeae0; border-color: var(--line); }
.refs-light #meta-map .land path { fill: #ddd6c8; stroke: #faf8f5; }
.refs-light #meta-map .acts .c-act { fill: var(--green); stroke: #faf8f5; }
.refs-light #meta-map .acts .c-act:hover { fill: #6f8c64; }
.refs-light #meta-map .acts .c-act.sel { fill: #b9762a; }
.refs-light #meta-map .mk-ring { stroke: #8a5a1f; opacity: .4; }
.refs-light #meta-map .mk-dot { fill: #fff; stroke: #8a5a1f; }
.refs-light #meta-map .mk-n { fill: #8a5a1f; }
.refs-light #meta-map .mk.sel .mk-dot { fill: #b9762a; }
.refs-light #meta-map .mk.sel .mk-n { fill: #fff; }

.refs-light .ctab { border-color: var(--line); color: var(--muted); background: #fff; }
.refs-light .ctab em { color: var(--green); }
.refs-light .ctab:hover { border-color: var(--green); color: var(--green); }
.refs-light .ctab.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.refs-light .ctab.is-on em { color: #fff; opacity: .75; }

.refs-light .ref-head { border-bottom-color: var(--line); }
.refs-light .ref-head h3 { color: var(--ink); }
.refs-light .ref-head .n { color: var(--green); }
.refs-light .rc { background: #fff; border-color: var(--line); }
.refs-light .rc-logo { background: #faf8f5; border: 1px solid var(--line); }
.refs-light .rc-none { background: #f0ece4; }
.refs-light .rc-name { color: var(--text); }
