/* =========================================================
   ENERGYASSEMBLER — DESIGN SYSTEM
   Warm cream base · Forest green primary · Terracotta accent
   ========================================================= */

:root {
  /* --- Color tokens --- */
  --cream-50:   oklch(0.985 0.012 85);   /* page bg */
  --cream-100:  oklch(0.965 0.018 80);   /* surface */
  --cream-200:  oklch(0.935 0.025 78);   /* card / divider tint */
  --cream-300:  oklch(0.890 0.030 76);   /* hairline */

  --ink-900:    oklch(0.22  0.020 140);  /* near-black, slightly green-leaning */
  --ink-700:    oklch(0.40  0.018 140);
  --ink-500:    oklch(0.55  0.012 140);
  --ink-400:    oklch(0.66  0.010 140);

  --forest-900: oklch(0.30  0.060 150);
  --forest-700: oklch(0.42  0.090 152);  /* primary */
  --forest-500: oklch(0.56  0.105 150);
  --forest-200: oklch(0.88  0.040 148);
  --forest-100: oklch(0.94  0.025 148);

  --terra-700:  oklch(0.52  0.130 45);   /* accent */
  --terra-500:  oklch(0.65  0.140 45);
  --terra-200:  oklch(0.88  0.060 50);
  --terra-100:  oklch(0.94  0.035 52);

  --sun-500:    oklch(0.78  0.130 85);   /* tertiary accent for charts only */

  --ocean-700:  oklch(0.50  0.115 220);  /* blue accent */
  --ocean-500:  oklch(0.62  0.130 215);
  --ocean-200:  oklch(0.86  0.060 218);
  --ocean-100:  oklch(0.94  0.030 218);

  /* Bright blue-green gradient — used sparingly on hero CTAs, accent buttons, badges */
  --grad-bg:    linear-gradient(110deg, oklch(0.55 0.13 215) 0%, oklch(0.60 0.13 195) 38%, oklch(0.62 0.14 165) 72%, oklch(0.66 0.14 150) 100%);
  --grad-text:  linear-gradient(110deg, oklch(0.45 0.14 218), oklch(0.50 0.14 195), oklch(0.52 0.14 162), oklch(0.50 0.13 148));

  --bg:         var(--cream-50);
  --surface:    var(--cream-100);
  --card:       #fdfaf3;
  --border:     var(--cream-300);
  --hairline:   color-mix(in oklch, var(--ink-900) 8%, transparent);

  /* --- Type --- */
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* --- Radii / shadow --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-1: 0 1px 0 rgba(20, 30, 25, 0.04), 0 1px 2px rgba(20, 30, 25, 0.04);
  --shadow-2: 0 4px 18px -6px rgba(40, 50, 35, 0.10), 0 2px 6px rgba(40, 50, 35, 0.05);
  --shadow-3: 0 24px 50px -20px rgba(40, 50, 35, 0.18), 0 8px 18px -10px rgba(40, 50, 35, 0.08);

  /* --- Layout --- */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--forest-700); outline-offset: 2px; border-radius: 4px; }

/* --- Typography scale --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-700);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--terra-700);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  margin-top: -2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.25; font-weight: 500; }
p  { margin: 0; color: var(--ink-700); text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-700); max-width: 60ch; }
.mono { font-family: var(--font-mono); }

/* --- Layout primitives --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 140px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: color-mix(in oklch, var(--cream-50) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  margin-right: 8px;
}
.brand .mark {
  height: 56px;
  width: auto;
  aspect-ratio: 1672 / 941;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand .mark img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
/* Hide wordmark text in nav — logo includes the name already */
.nav .brand .name { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  font-size: 13px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow: visible;
}
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .name strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand .name small { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); margin-top: 4px; letter-spacing: 0.04em; }

.nav-link {
  position: relative;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-700);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
}
.nav-link:hover { color: var(--ink-900); background: color-mix(in oklch, var(--ink-900) 5%, transparent); }
.nav-link.active { color: var(--ink-900); background: var(--cream-200); }
.nav-link.has-dd { display: inline-flex; align-items: center; gap: 4px; }
.nav-link .chev { width: 12px; height: 12px; min-width: 12px; flex-shrink: 0; opacity: .7; transition: transform .2s ease; display: inline-block; vertical-align: middle; }
.nav-link:hover .chev,
.nav-link.has-dd:hover .chev { transform: rotate(180deg); opacity: 1; }

/* --- Dropdown --- */
.has-dd { position: relative; }
/* Hover bridge — invisible strip extending the trigger's hover zone
   down across the visual gap. Solves the "dropdown closes when you move
   the cursor toward it" problem. */
.has-dd { position: relative; }
.has-dd::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 18px;
  pointer-events: none;
}
.has-dd:hover::after,
.has-dd:focus-within::after { pointer-events: auto; }

.dd {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Close has a 180ms grace period so brief slips off the path don't snap shut. */
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .2s;
  z-index: 60;
}
.dd::-webkit-scrollbar { width: 8px; }
.dd::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 4px; }
.dd::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }
.has-dd:hover .dd,
.has-dd:focus-within .dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* Open immediately, close on a delay (set on the base rule). */
  transition: opacity .14s ease, transform .14s ease, visibility 0s;
}
.dd a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-900);
  transition: background .15s ease;
}
.dd a:hover { background: var(--cream-200); }
.dd a .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--forest-100);
  color: var(--forest-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dd a .ic svg { width: 14px; height: 14px; }
.dd a .meta {
  display: flex; flex-direction: column; line-height: 1.2;
}
.dd a .meta small {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-500);
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--cream-50);
}
.btn-primary:hover { background: var(--forest-900); box-shadow: var(--shadow-2); }

.btn-accent {
  background: var(--terra-700);
  color: var(--cream-50);
}
.btn-accent:hover { background: oklch(0.46 0.135 45); box-shadow: var(--shadow-2); }

.btn-grad {
  background: var(--grad-bg);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: var(--cream-50);
  box-shadow: 0 8px 22px -10px oklch(0.55 0.13 200 / 0.55);
  transition: background-position .6s ease, transform .15s ease, box-shadow .25s ease;
}
.btn-grad:hover { background-position: 100% 50%; box-shadow: 0 14px 30px -10px oklch(0.55 0.13 200 / 0.6); }

.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink-900);
}
.btn-ghost:hover { background: var(--cream-200); border-color: var(--ink-900); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 24px; font-size: 15px; }

/* --- Pill / chip --- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-200);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  text-transform: uppercase;
}
.chip-accent { background: var(--terra-100); color: var(--terra-700); border-color: color-mix(in oklch, var(--terra-700) 20%, transparent); }
.chip-forest { background: var(--forest-100); color: var(--forest-700); border-color: color-mix(in oklch, var(--forest-700) 20%, transparent); }
.chip-ocean  { background: var(--ocean-100);  color: var(--ocean-700);  border-color: color-mix(in oklch, var(--ocean-700) 20%, transparent); }
.chip-grad {
  background: var(--grad-bg);
  background-size: 200% 200%;
  animation: chipShift 8s ease-in-out infinite;
  color: #fff;
  border: 0;
}
@keyframes chipShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.chip-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--forest-500);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--forest-500) 70%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--forest-500) 70%, transparent); }
  100% { box-shadow: 0 0 0 8px color-mix(in oklch, var(--forest-500) 0%, transparent); }
}

/* =========================================================
   CARD
   ========================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in oklch, var(--ink-900) 18%, transparent); }

.card-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.06em;
}
.card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest-100);
  color: var(--forest-700);
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklch, var(--forest-700) 12%, transparent);
}
.card .icon-wrap svg { width: 22px; height: 22px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: oklch(0.94 0.020 80);
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-block: 72px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-700); font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink-900); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-block: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.footer-bottom .dot { width: 6px; height: 6px; background: var(--forest-500); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }

/* --- Reveal-on-scroll --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 1280px) {
  .nav-links { font-size: 12px; }
  .nav-link { padding: 8px 8px; }
  .brand .mark, .brand .mark img { height: 48px; }
}
@media (max-width: 1080px) {
  .nav-cta .btn-grad { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-burger { display: inline-flex !important; }
}

/* Mobile drawer */
.nav-burger {
  display: none;
  background: none; border: 1px solid var(--hairline); border-radius: 999px;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink-900);
  transition: background .2s, border-color .2s;
  margin-left: 8px;
}
.nav-burger:hover { background: var(--cream-100); border-color: var(--ink-700); }
.nav-burger svg { width: 22px; height: 22px; }
.nav-drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,20,25,0.55); backdrop-filter: blur(6px);
  display: none; opacity: 0; transition: opacity .2s ease;
}
.nav-drawer.open { display: block; opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(380px, 100%); height: 100%;
  background: var(--cream-50); padding: 24px 24px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--hairline);
}
.nav-drawer-head .brand { display: flex; gap: 10px; align-items: center; }
.nav-drawer-head .brand img { height: 40px; }
.nav-drawer-close {
  background: none; border: 1px solid var(--hairline); border-radius: 999px;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink-900);
}
.nav-drawer a, .nav-drawer details > summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink-900);
  text-decoration: none; cursor: pointer;
}
.nav-drawer a:hover, .nav-drawer details > summary:hover { background: var(--cream-100); }
.nav-drawer details { border-radius: 10px; }
.nav-drawer details > summary { list-style: none; justify-content: space-between; }
.nav-drawer details > summary::-webkit-details-marker { display: none; }
.nav-drawer details > summary::after {
  content: ""; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-700); border-bottom: 2px solid var(--ink-700);
  transform: rotate(45deg); transition: transform .2s;
}
.nav-drawer details[open] > summary::after { transform: rotate(225deg); }
.nav-drawer details .sub {
  padding: 4px 0 8px 12px; display: flex; flex-direction: column; gap: 2px;
}
.nav-drawer details .sub a {
  font-size: 14px; font-weight: 400; padding: 10px 12px; color: var(--ink-700);
}
.nav-drawer details .sub a small { display: block; font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.nav-drawer-cta {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 10px;
}
body.drawer-open { overflow: hidden; }
@media (max-width: 600px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* =========================================================
   PAGE-SPECIFIC: HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.motto {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  background: linear-gradient(90deg, oklch(0.55 0.18 250), oklch(0.55 0.13 195), oklch(0.62 0.16 165), oklch(0.55 0.13 195), oklch(0.55 0.18 250));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: motto-shift 6s ease-in-out infinite;
  display: inline-block;
}
.motto em {
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.03em;
}
@keyframes motto-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: gradShift 8s ease-in-out infinite;
  display: inline-block;
  padding: 0.06em 0.22em 0.08em 0.06em;
  margin: 0 -0.14em 0 -0.06em;
  overflow: visible;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: var(--terra-200);
  z-index: -1;
  border-radius: 2px;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.detail-hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s ease-in-out infinite;
  display: inline-block;
  padding: 0.06em 0.22em 0.08em 0.06em;
  margin: 0 -0.14em 0 -0.06em;
  overflow: visible;
}
.hero .meta-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--forest-100);
  box-shadow: var(--shadow-3);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 25, 0.35), transparent 55%);
}

/* Floating stat card */
.stat-float {
  position: absolute;
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
.stat-float .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat-float .l { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-float .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--forest-100); color: var(--forest-700); display: grid; place-items: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { aspect-ratio: 4/3; }
}

/* =========================================================
   MARQUEE (clients strip)
   ========================================================= */
.marquee {
  border-block: 1px solid var(--hairline);
  background: var(--cream-100);
  overflow: hidden;
  padding-block: 28px;
}
.marquee-row { display: flex; align-items: center; gap: 64px; animation: scroll 40s linear infinite; width: max-content; }
.marquee-row span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  white-space: nowrap;
}
.marquee-row .sep { color: var(--terra-700); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* =========================================================
   CAPABILITIES GRID
   ========================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cap-grid .card {
  border-radius: 0;
  border: 0;
  padding: 36px 32px;
  background: var(--card);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px;
  transition: background .25s ease;
}
.cap-grid .card:hover { background: oklch(0.97 0.02 78); transform: none; box-shadow: none; }
.cap-grid h3 { font-size: 22px; }
.cap-grid p { font-size: 14px; color: var(--ink-500); }
.cap-grid .meta {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); letter-spacing: 0.06em;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band {
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.stats-band::after {
  content: "";
  position: absolute;
  left: -120px; bottom: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, oklch(0.55 0.13 215 / 0.40), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.stats-band .grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  align-items: end;
  position: relative; z-index: 1;
}
.stats-band h2 { color: var(--cream-50); max-width: 14ch; }
.stats-band h2 em { font-style: italic; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 400; filter: brightness(1.4) saturate(1.2); display: inline-block; padding: 0.06em 0.22em 0.08em 0.06em; margin: 0 -0.14em 0 -0.06em; overflow: visible; }
.stats-band .stat .v {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stats-band .stat .v sup { font-size: 0.45em; vertical-align: top; color: var(--terra-200); margin-left: 4px; font-weight: 400; }
.stats-band .stat .l { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.75 0.02 140); margin-top: 12px; }
.stats-band::before {
  content: "";
  position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, oklch(0.42 0.09 152 / 0.45), transparent 70%);
  pointer-events: none;
}
@media (max-width: 900px) { .stats-band .grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* =========================================================
   APPROACH (alternating rows)
   ========================================================= */
.approach-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 64px;
  border-bottom: 1px solid var(--hairline);
}
.approach-row:last-child { border-bottom: 0; }
.approach-row .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--terra-700);
  margin-bottom: 18px;
}
.approach-row h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; letter-spacing: -0.02em; }
.approach-row .visual {
  background: var(--cream-100);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  aspect-ratio: 5/4;
  position: relative;
  overflow: hidden;
}
.approach-row:nth-child(even) > div:first-child { order: 2; }
@media (max-width: 800px) {
  .approach-row { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .approach-row:nth-child(even) > div:first-child { order: 0; }
}

/* Diagram placeholder */
.diagram-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ink-900) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ink-900) 5%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* =========================================================
   CONTACT / CTA SECTION
   ========================================================= */
.cta-card {
  background: var(--grad-bg);
  background-size: 180% 180%;
  animation: gradShift 14s ease-in-out infinite;
  color: var(--cream-50);
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-card h2 { color: var(--cream-50); max-width: 18ch; }
.cta-card p { color: oklch(0.92 0.03 148); max-width: 50ch; margin-block: 18px 32px; font-size: 17px; }
.cta-card .row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-card .btn-primary { background: var(--cream-50); color: var(--ink-900); }
.cta-card .btn-primary:hover { background: var(--cream-100); }
.cta-card .btn-ghost { color: var(--cream-50); border-color: color-mix(in oklch, var(--cream-50) 35%, transparent); }
.cta-card .btn-ghost:hover { background: color-mix(in oklch, var(--cream-50) 10%, transparent); border-color: var(--cream-50); }
.cta-card::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 380px; height: 380px;
  border: 1px solid color-mix(in oklch, var(--cream-50) 18%, transparent);
  border-radius: 50%;
}
.cta-card::before {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 260px; height: 260px;
  border: 1px solid color-mix(in oklch, var(--cream-50) 22%, transparent);
  border-radius: 50%;
}

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.svc-hero {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.svc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.svc-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1.6fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 32px;
  padding-inline: 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background .2s ease, padding .2s ease;
  cursor: pointer;
}
.svc-row:hover { background: color-mix(in oklch, var(--forest-100) 50%, transparent); padding-inline: 16px; }
.svc-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-400); letter-spacing: 0.04em; }
.svc-row .title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.svc-row .desc { color: var(--ink-500); font-size: 14px; max-width: 50ch; }
.svc-row .go {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.svc-row:hover .go { background: var(--ink-900); color: var(--cream-50); border-color: var(--ink-900); transform: rotate(-45deg); }
@media (max-width: 800px) {
  .svc-row { grid-template-columns: 50px 1fr auto; }
  .svc-row .desc { display: none; grid-column: 2; }
}

/* =========================================================
   SERVICE DETAIL
   ========================================================= */
.detail-hero {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.detail-hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.detail-hero h1 { font-size: clamp(52px, 7vw, 110px); line-height: 0.92; }
.detail-hero h1 em { font-style: italic; color: var(--forest-700); font-weight: 400; }
.detail-visual {
  aspect-ratio: 5/6;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream-200);
  position: relative;
  box-shadow: var(--shadow-3);
}
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Spec table */
.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 64px;
}
.spec .cell {
  padding: 28px 24px;
  background: var(--card);
}
.spec .cell .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.spec .cell .v { font-size: 28px; font-weight: 500; margin-top: 10px; letter-spacing: -0.02em; }
.spec .cell .v sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); margin-left: 6px; vertical-align: baseline; font-weight: 400; }
@media (max-width: 800px) { .spec { grid-template-columns: 1fr 1fr; } }

/* Detail features */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 700px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-item {
  display: flex; gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.feat-item .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--terra-100);
  color: var(--terra-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feat-item h4 { margin-bottom: 6px; }
.feat-item p { font-size: 14px; color: var(--ink-500); }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.step {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 28px 24px;
  position: relative;
}
.step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--terra-700);
  display: block;
  margin-bottom: 16px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--ink-500); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* Image-text band */
.imgband {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--card);
  margin-top: 80px;
}
.imgband .copy { padding: clamp(36px, 5vw, 72px); }
.imgband .img {
  background: var(--forest-200);
  min-height: 380px;
  position: relative;
}
.imgband .img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 800px) { .imgband { grid-template-columns: 1fr; } .imgband .img { min-height: 280px; } }

/* Section heading shared block */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.section-head .left { max-width: 22ch; }
.section-head .right { max-width: 50ch; justify-self: end; color: var(--ink-500); font-size: 16px; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; } .section-head .right { justify-self: start; } }

/* =========================================================
   TECH SERVICES PAGE
   ========================================================= */
.tech-hero {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.tech-hero h1 em {
  font-style: italic; font-weight: 400;
  background: var(--grad-text);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: gradShift 8s ease-in-out infinite;
  display: inline-block;
  padding: 0.06em 0.22em 0.08em 0.06em;
  margin: 0 -0.14em 0 -0.06em;
}
.tech-hero .lead { max-width: 70ch; }

/* Horizontal engagement timeline */
.engagement {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 4fr;
  gap: 32px;
  align-items: stretch;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.engagement .intro {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 14px;
  padding-right: 24px;
  border-right: 1px solid var(--hairline);
}
.engagement .intro .l {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-500);
}
.engagement .intro h4 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.engagement .intro .total {
  font-family: var(--font-mono); font-size: 12px; color: var(--terra-700);
  letter-spacing: 0.04em;
}
.engagement .steps-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.engagement .step-cell {
  padding: 4px 18px 4px 0;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.engagement .step-cell + .step-cell { padding-left: 18px; border-left: 1px dashed var(--hairline); }
.engagement .step-cell .num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--terra-700);
}
.engagement .step-cell .label {
  font-size: 14px; font-weight: 500; line-height: 1.25;
  color: var(--ink-900);
}
.engagement .step-cell .dur {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-500);
  margin-top: auto;
}
@media (max-width: 1100px) {
  .engagement { grid-template-columns: 1fr; }
  .engagement .intro { border-right: 0; border-bottom: 1px solid var(--hairline); padding-right: 0; padding-bottom: 16px; flex-direction: row; align-items: center; }
  .engagement .steps-row { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .engagement .step-cell:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .engagement .intro { flex-direction: column; align-items: flex-start; gap: 6px; }
  .engagement .steps-row { grid-template-columns: 1fr 1fr; }
  .engagement .step-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .engagement .step-cell:nth-child(even) { border-left: 1px dashed var(--hairline); padding-left: 18px; }
}

/* The Tech Stack — vertical layered diagram */
.stack-diagram {
  margin-top: 56px;
  display: grid; gap: 12px;
}
.stack-layer {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.stack-layer:hover { transform: translateX(4px); border-color: color-mix(in oklch, var(--forest-700) 35%, transparent); box-shadow: var(--shadow-2); }
.stack-layer .n {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; color: var(--terra-700);
}
.stack-layer .name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.stack-layer .name small {
  display: block; font-size: 13px; font-weight: 400;
  color: var(--ink-500); margin-top: 4px; letter-spacing: 0;
}
.stack-layer .tools {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
.stack-layer .tools .tool {
  padding: 4px 10px;
  background: var(--cream-200);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-700);
  letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  .stack-layer { grid-template-columns: 50px 1fr; gap: 16px; padding: 18px 20px; }
  .stack-layer .tools { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Energy & Utilities Cloud diagram */
.cloud-card {
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px);
  margin-top: 80px;
  position: relative; overflow: hidden;
}
.cloud-card::after {
  content: ""; position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, oklch(0.55 0.13 200 / 0.4), transparent 70%);
  pointer-events: none;
}
.cloud-card h2 { color: var(--cream-50); }
.cloud-card .lead-d {
  color: oklch(0.85 0.02 140);
  font-size: 17px; line-height: 1.55;
  margin-top: 18px; max-width: 60ch;
  position: relative; z-index: 1;
}
.cloud-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative; z-index: 1;
}
.cloud-tile {
  background: oklch(0.28 0.02 140);
  border: 1px solid oklch(0.35 0.02 140);
  border-radius: var(--r-md);
  padding: 22px;
  transition: background .2s ease, border-color .2s ease;
}
.cloud-tile:hover { background: oklch(0.32 0.02 140); border-color: var(--forest-500); }
.cloud-tile .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in oklch, var(--forest-500) 25%, transparent);
  color: var(--forest-200);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.cloud-tile h4 { color: var(--cream-50); font-size: 16px; margin-bottom: 6px; }
.cloud-tile p { color: oklch(0.75 0.02 140); font-size: 13px; }
@media (max-width: 900px) { .cloud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .cloud-grid { grid-template-columns: 1fr; } }

/* Console mock */
.console-mock {
  margin-top: 32px;
  background: var(--cream-50);
  color: var(--ink-900);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative; z-index: 1;
}
.console-mock .topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--cream-100);
  border-bottom: 1px solid var(--hairline);
}
.console-mock .topbar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream-300);
}
.console-mock .body {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  min-height: 280px;
}
.console-mock .col {
  padding: 18px;
  border-right: 1px solid var(--hairline);
  font-size: 13px;
}
.console-mock .col:last-child { border-right: 0; }
.console-mock .col h6 {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-500); margin: 0 0 12px;
  font-weight: 500;
}
.console-mock .item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-700);
}
.console-mock .item:last-child { border-bottom: 0; }
.console-mock .item .v { font-family: var(--font-mono); font-size: 12px; color: var(--ink-900); font-weight: 500; }
.console-mock .alert {
  padding: 10px 12px;
  background: var(--terra-100);
  border-left: 3px solid var(--terra-700);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 12px; color: var(--ink-900);
}
.console-mock .alert .sub {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-500); letter-spacing: 0.04em;
  text-transform: uppercase; margin-top: 4px;
}
@media (max-width: 800px) { .console-mock .body { grid-template-columns: 1fr; } .console-mock .col { border-right: 0; border-bottom: 1px solid var(--hairline); } }

/* Hydrogen / specialised band */
.spec-band {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(40px, 5vw, 72px);
  background: linear-gradient(135deg, var(--forest-100), var(--cream-100));
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
}
.spec-band h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.spec-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.spec-band ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-700);
}
.spec-band ul li::before {
  content: ""; flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--terra-700);
  border-radius: 2px; margin-top: 8px;
  transform: rotate(45deg);
}
@media (max-width: 800px) { .spec-band { grid-template-columns: 1fr; gap: 24px; } }

/* Process arrow row */
.flow-row {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  background: var(--cream-100);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.flow-row .pill {
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-900);
  letter-spacing: 0.04em;
}
.flow-row .arr {
  color: var(--terra-700);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Image placeholder */
.placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklch, var(--forest-700) 8%, transparent) 0 1px,
      transparent 1px 14px),
    var(--forest-100);
  display: grid; place-items: center;
  color: var(--forest-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
