/* ============================================================
   TOKENS
   ============================================================ */
:root{
  /* ============================================================
     DAT BRAND PALETTE — sourced from the DAT pitch deck.
     Olive-green + near-black + warm cream, not generic neon-on-black.
     ============================================================ */
  --ink:#0A0E08;          /* primary near-black (deck: dominant dark) */
  --ink-soft:#2A3126;     /* secondary dark surface, for depth */
  --cream:#FAFAF7;        /* primary light surface */
  --sage:#E4E6DD;         /* secondary light surface */
  --green:#8EC641;        /* primary brand accent */
  --green-deep:#6EA628;   /* darker accent — text-on-light, hovers */
  --stone:#6B7164;        /* body copy on light surfaces */
  --stone-soft:#9AA092;   /* muted/tertiary text on light surfaces */
  --paper:#FFFFFF;

  /* Legacy alias names kept so existing component CSS below needs
     minimal rewiring — values now point at the real brand palette.
     Redefined per-section by .theme-* classes further down. */
  --bg-0: var(--ink);
  --bg-1: var(--ink-soft);
  --off-white: var(--cream);
  --gray: #B9BEB2;
  --gray-dim: #7A8072;
  --line: rgba(250,250,247,0.10);
  --line-strong: rgba(250,250,247,0.18);
  --line-green: rgba(142,198,65,0.4);
  --accent-text: var(--green-deep);

  --serif:'Fraunces', ui-serif, Georgia, serif;
  --sans:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --side: clamp(24px, 6vw, 96px);
  --section-pad: clamp(64px, 9vw, 120px);
  --maxw: 1440px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SECTION THEMES
   Each section picks one. Because components below reference the
   same --off-white / --gray / --line names, the whole subtree
   re-colors automatically — no per-component overrides needed.
   ============================================================ */
.theme-dark{
  --bg-0:var(--ink); --bg-1:var(--ink-soft);
  --off-white:var(--cream); --gray:#B9BEB2; --gray-dim:#7A8072;
  --line:rgba(250,250,247,0.10); --line-strong:rgba(250,250,247,0.18);
  --accent-text:var(--green);
  background:var(--ink); color:var(--cream);
}
.theme-light{
  --bg-0:var(--cream); --bg-1:var(--sage);
  --off-white:var(--ink); --gray:var(--stone); --gray-dim:var(--stone-soft);
  --line:rgba(10,14,8,0.10); --line-strong:rgba(10,14,8,0.18);
  --accent-text:var(--green-deep);
  background:var(--cream); color:var(--ink);
}
.theme-sage{
  --bg-0:var(--sage); --bg-1:var(--cream);
  --off-white:var(--ink); --gray:var(--stone); --gray-dim:var(--stone-soft);
  --line:rgba(10,14,8,0.12); --line-strong:rgba(10,14,8,0.20);
  --accent-text:var(--green-deep);
  background:var(--sage); color:var(--ink);
}
.theme-dark .eyebrow, .theme-light .eyebrow, .theme-sage .eyebrow{ color:var(--accent-text); }
.theme-dark .eyebrow::before, .theme-light .eyebrow::before, .theme-sage .eyebrow::before{ background:var(--green); }

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

body{
  background:var(--bg-0);
  color:var(--off-white);
  font-family:var(--sans);
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}

::selection{ background:var(--green); color:var(--bg-0); }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--side);
  padding-right:var(--side);
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline:1.5px solid var(--green);
  outline-offset:4px;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow{
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--green);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:'';
  width:7px; height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 10px 1px rgba(142,198,65,0.6);
  flex-shrink:0;
}
.eyebrow.dim{color:var(--gray);}
.eyebrow.dim::before{background:var(--gray-dim); box-shadow:none;}

h1,h2,h3{
  font-family:var(--serif);
  font-weight:500;
  letter-spacing:-0.01em;
  line-height:1.04;
}

.display-xl{
  font-size:clamp(38px, 6.4vw, 92px);
  font-weight:450;
}
.display-l{
  font-size:clamp(32px, 4.6vw, 62px);
  font-weight:500;
}
.display-m{
  font-size:clamp(26px, 3.2vw, 42px);
  font-weight:500;
}

.lede{
  font-size:clamp(18px, 1.4vw, 21px);
  color:var(--gray);
  font-weight:300;
  line-height:1.65;
  max-width:46ch;
}

.pull-quote{
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:clamp(24px, 2.8vw, 38px);
  line-height:1.35;
  color:var(--accent-text);
}

.data-num{
  font-family:var(--mono);
  font-weight:500;
  letter-spacing:-0.02em;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}
.reveal-stagger > * {
  opacity:0;
  transform:translateY(22px);
  transition:opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in > *{
  opacity:1;
  transform:translateY(0);
}
.reveal-stagger.in > *:nth-child(1){transition-delay:0.02s;}
.reveal-stagger.in > *:nth-child(2){transition-delay:0.10s;}
.reveal-stagger.in > *:nth-child(3){transition-delay:0.18s;}
.reveal-stagger.in > *:nth-child(4){transition-delay:0.26s;}
.reveal-stagger.in > *:nth-child(5){transition-delay:0.34s;}
.reveal-stagger.in > *:nth-child(6){transition-delay:0.42s;}
.reveal-stagger.in > *:nth-child(7){transition-delay:0.50s;}

/* ============================================================
   NAVIGATION
   Color is set dynamically by JS to match whichever section is
   currently behind it (see IntersectionObserver in the script).
   ============================================================ */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:20px var(--side);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--ink);
  border-bottom:1px solid rgba(250,250,247,0.08);
  transition:padding 0.4s var(--ease), box-shadow 0.4s var(--ease),
             background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.scrolled{
  padding-top:14px; padding-bottom:14px;
  box-shadow:0 12px 32px -12px rgba(10,14,8,0.35);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
}
.nav-mark{
  font-family:var(--mono);
  font-weight:500;
  font-size:16px;
  letter-spacing:0.02em;
  color:var(--cream);
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
  transition:color 0.5s var(--ease);
}
.nav-mark .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--green);
  box-shadow:0 0 10px 2px rgba(142,198,65,0.5);
}
.nav-mark .logo-mark{
  height:28px;
  width:auto;
  display:block;
  opacity:1;
  transition:opacity 0.4s var(--ease);
}
.nav > .nav-mark .logo-mark{
  height:40px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
  list-style:none;
  font-size:13.5px;
}
.nav-links li{ display:flex; align-items:center; }
.nav-links a{
  position:relative;
  color:#B9BEB2;
  transition:color 0.25s ease;
  padding:4px 0;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:100%; height:1px;
  background:var(--green);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform 0.35s var(--ease);
}
.nav-links a:hover{color:var(--cream);}
.nav-links a:hover::after{transform:scaleX(1); transform-origin:left;}

.nav-cta{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--cream);
  border:1px solid rgba(250,250,247,0.22);
  padding:10px 18px;
  border-radius:2px;
  transition:border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  white-space:nowrap;
}
.nav-cta:hover{
  border-color:var(--green);
  background:var(--green);
  color:var(--ink);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  width:26px;
}
.nav-toggle span{
  height:1px; width:100%; background:var(--cream);
  transition:transform 0.3s ease, opacity 0.3s ease, background 0.5s var(--ease);
}

/* --- Dynamic nav themes, set by JS to match the section under the nav --- */
.nav.nav-light{
  background:var(--cream);
  border-bottom-color:rgba(10,14,8,0.08);
}
.nav.nav-light .nav-mark{ color:var(--ink); }
.nav.nav-light .nav-links a{ color:var(--stone); }
.nav.nav-light .nav-links a:hover{ color:var(--ink); }
.nav.nav-light .nav-cta{ color:var(--ink); border-color:rgba(10,14,8,0.22); }
.nav.nav-light .nav-toggle span{ background:var(--ink); }

.nav.nav-sage{
  background:var(--sage);
  border-bottom-color:rgba(10,14,8,0.10);
}
.nav.nav-sage .nav-mark{ color:var(--ink); }
.nav.nav-sage .nav-links a{ color:var(--stone); }
.nav.nav-sage .nav-links a:hover{ color:var(--ink); }
.nav.nav-sage .nav-cta{ color:var(--ink); border-color:rgba(10,14,8,0.22); }
.nav.nav-sage .nav-toggle span{ background:var(--ink); }

/* Logo variant crossfade — opacity swap so CSS transition applies */
/* .logo-black sits absolutely over .logo-white (which stays in flow for sizing) */
.nav-mark .logo-black{
  position:absolute;
  top:50%; left:0;
  transform:translateY(-50%);
  opacity:0;
  pointer-events:none;
}
.nav.nav-light .nav-mark .logo-white,
.nav.nav-sage  .nav-mark .logo-white{
  opacity:0;
  pointer-events:none;
}
.nav.nav-light .nav-mark .logo-black,
.nav.nav-sage  .nav-mark .logo-black{
  opacity:1;
  pointer-events:auto;
}

.mobile-menu{
  position:fixed;
  inset:0;
  background:var(--ink);
  z-index:99;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:24px;
  padding:52px var(--side) 40px;
  overflow-y:auto;
  transform:translateY(-100%);
  transition:transform 0.5s var(--ease);
}
.mobile-menu-logo{
  display:block;
  margin-bottom:8px;
}
.mobile-menu-logo .logo-mark{
  height:48px;
  width:auto;
}
.mobile-menu.open{transform:translateY(0);}
.mobile-menu a{
  font-family:var(--serif);
  font-size:34px;
  color:var(--cream);
}
.mobile-menu .eyebrow{margin-bottom:12px; color:var(--green);}
.mobile-menu-logo{ display:block; margin-bottom:8px; }
.mobile-menu-logo img{ height:48px; width:auto; }

/* ============================================================
   BUTTONS (used in hero + final CTA)
   ============================================================ */
.hero-ctas{
  display:flex;
  gap:16px;
  margin-top:36px;
  flex-wrap:wrap;
}
.btn{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  padding:15px 26px;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:all 0.3s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--green);
  color:var(--ink);
}
.btn-primary:hover{
  background:var(--green-deep);
  color:var(--cream);
  transform:translateY(-2px);
}
.btn-ghost{
  border:1px solid var(--line-strong);
  color:var(--off-white);
}
.btn-ghost:hover{
  border-color:var(--green);
  color:var(--green-deep);
  transform:translateY(-2px);
}
.btn svg{width:13px; height:13px; transition:transform 0.3s ease;}
.btn:hover svg{transform:translate(3px,-3px);}

/* ============================================================
   HERO — canvas network background + headline (restored)
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding-top:140px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-canvas-wrap{
  position:absolute;
  inset:0;
  z-index:0;
}
#hero-canvas{
  width:100%; height:100%;
  display:block;
  opacity:0.9;
}
.hero-vignette{
  position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(10,14,8,0.95) 10%, rgba(10,14,8,0.55) 45%, rgba(10,14,8,0) 70%),
    linear-gradient(180deg, rgba(10,14,8,0.55) 0%, rgba(10,14,8,0.1) 30%, rgba(10,14,8,0.25) 70%, rgba(10,14,8,0.98) 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  padding-bottom:clamp(56px, 8vw, 96px);
}
.hero-eyebrow{margin-bottom:28px;}
.hero h1{
  max-width:15ch;
  margin-bottom:30px;
}
.hero-row{
  display:grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap:48px;
  align-items:end;
}
.hero-scroll-cue{
  position:relative;
  z-index:2;
  margin:0 var(--side) 20px auto;
  width:fit-content;
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--gray-dim);
}
.hero-scroll-cue .line{
  width:1px; height:28px;
  background:linear-gradient(var(--gray-dim), transparent);
  position:relative;
  overflow:hidden;
}
.hero-scroll-cue .line::after{
  content:'';
  position:absolute; top:-28px; left:0;
  width:100%; height:28px;
  background:linear-gradient(var(--green), transparent);
  animation:scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{top:-28px;}
  60%{top:28px;}
  100%{top:28px;}
}

/* --- Problem ticker: contained width, sits below the hero content --- */
.hero-ticker{
  position:relative;
  z-index:2;
  border-top:1px solid rgba(250,250,247,0.1);
  padding:18px 0;
}
.hero-ticker-clip{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--side);
  padding-right:var(--side);
  overflow:hidden;
  white-space:nowrap;
  mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-ticker .marquee-track{
  animation-duration:100s;
}
.hero-ticker .marquee-item{
  color:#B9BEB2;
  font-size:12.5px;
}
.hero-ticker .marquee-item .sep{ color:var(--green); }

@media (max-width:640px){
  .hero-scroll-cue{ display:none; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
section{
  position:relative;
  padding:var(--section-pad) 0;
  border-bottom:1px solid var(--line);
}

.section-head{
  display:grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap:48px;
  margin-bottom:clamp(48px,6vw,88px);
}
.section-head .eyebrow{ padding-top:8px; }

/* ============================================================
   VISIBILITY GAP
   ============================================================ */
.gap-section .wrap{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:64px;
  align-items:center;
}
.gap-section h2{ max-width:14ch; }
.gap-viz{
  position:relative;
  aspect-ratio: 1 / 0.82;
  border:1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/ 14.28% 16.6%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/ 14.28% 16.6%;
  background-color:rgba(255,255,255,0.01);
}
.gap-viz .node{
  position:absolute;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--gray-dim);
}
.gap-viz .node.seen{
  background:var(--green);
  box-shadow:0 0 14px 3px rgba(142,198,65,0.55);
}
.gap-viz .node.seen::after{
  content:'VISIBLE';
  position:absolute;
  top:-22px; left:50%;
  transform:translateX(-50%);
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:0.1em;
  color:var(--green);
  white-space:nowrap;
}
.gap-viz .ring{
  position:absolute;
  border:1px solid var(--line-green);
  border-radius:50%;
  animation:ping 3.2s var(--ease) infinite;
}
@keyframes ping{
  0%{transform:scale(0.3); opacity:0.9;}
  100%{transform:scale(3.4); opacity:0;}
}

/* ============================================================
   PULL-QUOTE SECTIONS
   ============================================================ */
.tech-section .wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:56px;
  align-items:center;
}
.tech-section h2{ margin-bottom:0; }
.tech-quote-block{
  border-left:1px solid var(--line-green);
  padding-left:32px;
  margin-top:32px;
}
.tech-quote-block cite{
  display:block;
  margin-top:18px;
  font-family:var(--mono);
  font-style:normal;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--gray-dim);
}

/* ============================================================
   PIPELINE — OBSERVE / UNDERSTAND / DETECT / ACT
   ============================================================ */
.pipeline-list{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0;
  position:relative;
}
.pipeline-list::before{
  content:'';
  position:absolute;
  top:15px; left:0; right:0;
  height:1px;
  background:var(--line-strong);
  z-index:0;
}
.pipeline-list::after{
  content:'';
  position:absolute;
  top:15px; left:0;
  height:1px;
  background:var(--green);
  width:0%;
  z-index:1;
  transition:width 1.6s var(--ease) 0.2s;
}
.pipeline-list.in::after{ width:100%; }
.pipeline-item{
  position:relative;
  z-index:2;
  padding-right:24px;
}
.pipeline-item .idx{
  width:30px; height:30px;
  border-radius:50%;
  background:var(--bg-0);
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  color:var(--gray);
  margin-bottom:26px;
  position:relative;
  transition:border-color 0.4s ease, color 0.4s ease;
}
.pipeline-item .idx svg{ width:15px; height:15px; position:relative; z-index:1; }
.pipeline-item .idx::before{
  content:'';
  position:absolute;
  inset:-6px;
  border-radius:50%;
  background:var(--green);
  opacity:0;
  filter:blur(6px);
  animation:pipelineGlow 2.4s ease-in-out infinite;
}
@keyframes pipelineGlow{
  0%, 100%{ opacity:0; transform:scale(0.85); }
  50%{ opacity:0.35; transform:scale(1.15); }
}
.pipeline-list.in .pipeline-item:nth-child(1) .idx{transition-delay:0.3s;}
.pipeline-list.in .pipeline-item:nth-child(2) .idx{transition-delay:0.7s;}
.pipeline-list.in .pipeline-item:nth-child(3) .idx{transition-delay:1.1s;}
.pipeline-list.in .pipeline-item:nth-child(4) .idx{transition-delay:1.5s;}
.pipeline-list.in .pipeline-item .idx{
  border-color:var(--accent-text);
  color:var(--accent-text);
}
.pipeline-item h3{
  font-size:clamp(20px,1.9vw,26px);
  font-weight:500;
  margin-bottom:10px;
}
.pipeline-item p{
  font-size:16px;
  color:var(--gray);
  line-height:1.6;
  max-width:26ch;
}

/* ============================================================
   SOLUTIONS INDEX
   ============================================================ */
.solutions-list{ border-top:1px solid var(--line); }
.solution-row{
  display:grid;
  grid-template-columns: 60px 1.4fr 1.8fr 90px;
  align-items:center;
  gap:24px;
  padding:26px 0;
  border-bottom:1px solid var(--line);
  transition:padding-left 0.4s var(--ease), background 0.4s ease;
  position:relative;
}
.solution-row:hover{
  padding-left:14px;
  background:linear-gradient(90deg, rgba(142,198,65,0.05), transparent 60%);
}
.solution-row .idx{
  font-family:var(--mono);
  font-size:12px;
  color:var(--gray-dim);
}
.solution-row h3{
  font-size:clamp(19px, 2.1vw, 27px);
  font-weight:500;
  transition:color 0.3s ease;
}
.solution-row:hover h3{ color:var(--green); }
.solution-row .desc{
  font-size:15.5px;
  color:var(--gray);
  max-width:44ch;
  line-height:1.6;
}
.solution-row .arrow{
  justify-self:end;
  width:16px; height:16px;
  opacity:0;
  transform:translate(-6px,6px);
  transition:opacity 0.35s ease, transform 0.35s var(--ease);
  color:var(--green);
}
.solution-row:hover .arrow{ opacity:1; transform:translate(0,0); }

/* ============================================================
   IMPACT STATS
   ============================================================ */
.impact-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
.impact-cell{
  background:var(--bg-0);
  border:1px solid var(--line-strong);
  border-radius:8px;
  padding:clamp(28px,3vw,44px) clamp(20px,2vw,32px);
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.impact-cell:hover{
  transform:translateY(-5px);
  border-color:var(--accent-text);
  box-shadow:0 20px 40px -16px rgba(10,14,8,0.22);
}
.impact-num{
  font-size:clamp(34px, 3.6vw, 54px);
  color:var(--accent-text);
  line-height:1;
}
.impact-label{
  font-size:13px;
  color:var(--gray);
  line-height:1.5;
  max-width:22ch;
}

/* ============================================================
   RECOGNITION
   ============================================================ */
.recognition-marquee{
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:34px 0;
  white-space:nowrap;
}
.marquee-track{
  display:inline-flex;
  gap:64px;
  animation:marquee 34s linear infinite;
}
.recognition-marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.marquee-item{
  font-family:var(--mono);
  font-size:15px;
  letter-spacing:0.02em;
  color:var(--gray);
  display:inline-flex;
  align-items:center;
  gap:64px;
  transition:color 0.3s ease;
}
.recognition-marquee .marquee-item{ color:var(--green); }
.recognition-marquee .marquee-item:hover{ color:var(--cream); }
.marquee-item .sep{ color:var(--gray-dim); font-size:10px; }

/* ============================================================
   WHO WE SERVE
   ============================================================ */
.serve-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.serve-cell{
  border:1px solid var(--line-strong);
  border-radius:8px;
  padding:clamp(36px,4vw,56px) clamp(24px,3vw,40px);
  min-height:340px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
  position:relative;
  overflow:hidden;
}
.serve-cell:hover{
  transform:translateY(-5px);
  border-color:var(--accent-text);
  box-shadow:0 20px 40px -16px rgba(10,14,8,0.22);
}
.serve-cell::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 50% 120%, rgba(142,198,65,0.10), transparent 60%);
  opacity:0;
  transition:opacity 0.5s ease;
}
.serve-cell:hover::before{ opacity:1; }
.serve-cell .n{
  font-family:var(--mono);
  font-size:11px;
  color:var(--gray-dim);
  letter-spacing:0.08em;
}
.serve-cell h3{
  font-size:clamp(26px,2.6vw,36px);
  margin:24px 0 12px;
  position:relative;
  transition:color 0.3s ease;
}
.serve-cell:hover h3{ color:var(--accent-text); }
.serve-cell p{
  font-size:14px;
  color:var(--gray);
  max-width:30ch;
  line-height:1.6;
  position:relative;
}
.serve-cell .go{
  margin-top:28px;
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-text);
  display:inline-flex;
  align-items:center;
  gap:8px;
  position:relative;
}
.serve-cell .go svg{ width:12px; height:12px; transition:transform 0.3s var(--ease); }
.serve-cell:hover .go svg{ transform:translate(3px,-3px); }

/* ============================================================
   OUR STORY
   ============================================================ */
.story-section .wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:56px;
  align-items:center;
}
.story-visual{
  aspect-ratio:1/1;
  position:relative;
  border:1px solid var(--line);
}
.story-visual svg{ width:100%; height:100%; display:block; }
.story-section h2{ margin-bottom:26px; max-width:12ch; }
.story-section .pull-quote{ margin-top:26px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta{
  text-align:center;
  padding:clamp(120px,16vw,220px) 0;
  position:relative;
  overflow:hidden;
}
.final-cta::before{
  content:'';
  position:absolute;
  top:50%; left:50%;
  width:900px; height:900px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(142,198,65,0.08), transparent 65%);
  pointer-events:none;
}
.final-cta h2{
  max-width:16ch;
  margin:0 auto 40px;
  position:relative;
}
.final-cta .hero-ctas{ justify-content:center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  padding:clamp(56px,7vw,88px) 0 40px;
  background:var(--bg-1);
}
.footer-top{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.85fr;
  gap:40px 32px;
  padding-bottom:56px;
  border-bottom:1px solid var(--line);
}
.footer-brand .nav-mark{ margin-bottom:20px; display:block; }
.footer-brand .nav-mark .logo-mark{ height:44px; }
.footer-brand .nav-mark .footer-logo{ height:72px; width:auto; display:block; }
.footer-brand p{
  font-size:13.5px;
  color:var(--gray);
  max-width:28ch;
  line-height:1.6;
}
.footer-col h4{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--gray-dim);
  margin-bottom:18px;
}
.footer-col ul{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.footer-col a{
  font-size:13.5px;
  color:var(--gray);
  transition:color 0.25s ease;
}
.footer-col a:hover{ color:var(--green); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:28px;
  font-family:var(--mono);
  font-size:11px;
  color:var(--gray-dim);
  letter-spacing:0.04em;
  flex-wrap:wrap;
  gap:16px;
}
.footer-bottom .tag{ color:var(--green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px){
  .nav-links, .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-row{ grid-template-columns:1fr; gap:24px; }
  .section-head{ grid-template-columns:1fr; gap:20px; }
  .gap-section .wrap{ grid-template-columns:1fr; }
  .gap-viz{ order:-1; }
  .tech-section .wrap{ grid-template-columns:1fr; }
  .pipeline-list{ grid-template-columns:1fr 1fr; row-gap:48px; }
  .pipeline-list::before,.pipeline-list::after{ display:none; }
  .impact-grid{ grid-template-columns:1fr 1fr; }
  .serve-grid{ grid-template-columns:1fr; }
  .story-section .wrap{ grid-template-columns:1fr; }
  .story-visual{ order:-1; max-width:280px; margin:0 auto; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1/-1; }
  .solution-row{ grid-template-columns: 40px 1fr; row-gap:8px; }
  .solution-row .desc{ grid-column:2/3; }
  .solution-row .arrow{ display:none; }
}
@media (max-width:560px){
  .pipeline-list{ grid-template-columns:1fr; }
  .impact-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .hero-ctas{ flex-direction:column; align-items:stretch; }
}

/* ============================================================
   PAGE HERO — simpler hero for interior pages (no canvas).
   Reuses the same eyebrow / display-xl / lede / btn tokens as
   the homepage hero so it reads as the same design system.
   ============================================================ */
.page-hero{
  padding-top:calc(140px + var(--section-pad) * 0.35);
}
.page-hero .eyebrow{ margin-bottom:24px; }
.page-hero h1{ max-width:18ch; margin-bottom:22px; }
.page-hero .lede{ max-width:62ch; }
.page-hero .lede + .lede{ margin-top:14px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  max-width:760px;
}
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column:1 / -1; }
.form-field label{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--gray);
}
.form-field input, .form-field textarea{
  background:transparent;
  border:1px solid var(--line-strong);
  border-radius:2px;
  padding:14px 16px;
  font-family:var(--sans);
  font-size:14.5px;
  color:var(--off-white);
  transition:border-color 0.3s ease;
}
.form-field input:focus, .form-field textarea:focus{
  outline:none;
  border-color:var(--green);
}
.form-field textarea{ resize:vertical; min-height:140px; }
.contact-form .btn{
  grid-column:1 / -1;
  justify-self:start;
  border:none;
  cursor:pointer;
  margin-top:6px;
}
@media (max-width:640px){
  .contact-form{ grid-template-columns:1fr; }
}

.contact-info-block{ display:flex; flex-direction:column; gap:10px; }
.contact-info-block a.contact-email{
  font-family:var(--serif);
  font-size:clamp(24px, 3.4vw, 40px);
  color:inherit;
  width:fit-content;
  border-bottom:1px solid var(--line-strong);
  transition:color 0.3s ease, border-color 0.3s ease;
}
.contact-info-block a.contact-email:hover{
  color:var(--accent-text);
  border-color:var(--accent-text);
}

/* ============================================================
   NAV MEGA MENU (Products)
   Positioned relative to the viewport (not the trigger link) since
   it's much wider than the trigger — open/close state is driven by
   JS (mouseenter/leave with a short close-delay), not pure CSS
   :hover, because the panel is no longer directly under the cursor's
   natural downward path from the trigger.
   ============================================================ */
.nav-item-dropdown{ position:relative; }
.nav-item-dropdown > a{ display:flex; align-items:center; gap:5px; }
.nav-item-dropdown .caret{ width:8px; height:8px; transition:transform 0.25s ease; }
.nav-item-dropdown.open .caret{ transform:rotate(180deg); }

.nav-dropdown-menu{
  position:fixed;
  top:80px;
  left:50vw;
  transform:translateX(-50%) translateY(6px);
  width:min(760px, 92vw);
  max-height:calc(100vh - 100px);
  background:var(--ink);
  border:1px solid rgba(250,250,247,0.12);
  border-radius:8px;
  display:grid;
  grid-template-columns:1fr;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow:0 32px 64px -16px rgba(10,14,8,0.55);
  overflow:hidden;
  z-index:200;
}
.nav.scrolled ~ .nav-dropdown-menu, .nav.scrolled .nav-dropdown-menu{ top:68px; }
.nav.nav-light .nav-dropdown-menu,
.nav.nav-sage .nav-dropdown-menu{
  background:var(--ink); /* dropdown always dark for legibility regardless of nav theme */
}
.nav-item-dropdown.open .nav-dropdown-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

.nav-dropdown-list{
  padding:22px;
  overflow-y:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px;
  align-content:start;
}
.nav-dropdown-list a{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:16px 10px;
  border-bottom:1px solid rgba(250,250,247,0.08);
  color:var(--cream);
  transition:background 0.2s ease, padding-left 0.2s ease;
}
.nav-dropdown-list a:hover{ background:rgba(142,198,65,0.08); padding-left:16px; }
.nav-dropdown-list a .name{ font-family:var(--serif); font-size:16.5px; }
.nav-dropdown-list a .sub{ font-family:var(--sans); font-size:11px; color:#8A9080; }
.nav-dropdown-list a::after{ display:none; content:none; }

.nav-dropdown-visual{
  background:var(--ink-soft);
  border-left:1px solid rgba(250,250,247,0.08);
  padding:20px;
  display:flex;
  flex-direction:column;
}
.nav-dropdown-visual .cap{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#8A9080;
  margin-bottom:12px;
}
.punjab-map{
  flex:1;
  border-radius:6px;
  overflow:hidden;
  min-height:220px;
  display:flex;
}
.punjab-map svg{
  width:100%;
  height:100%;
  flex:1;
}
/* Pakistan map SVG classes */
.pak-outline{
  fill:rgba(250,250,247,0.04);
  stroke:rgba(250,250,247,0.22);
  stroke-width:1.2;
  stroke-linejoin:round;
}
.prov-line{
  fill:none;
  stroke:rgba(250,250,247,0.10);
  stroke-width:0.7;
  stroke-linecap:round;
}
.punjab-fill{
  fill:rgba(142,198,65,0.12);
  stroke:rgba(142,198,65,0.5);
  stroke-width:1.1;
  stroke-linejoin:round;
}
.punjab-river{
  fill:none;
  stroke:rgba(142,198,65,0.20);
  stroke-width:0.8;
  stroke-linecap:round;
}
.city-glow{
  fill:rgba(142,198,65,0.18);
}
.city-glow--lg{
  fill:rgba(142,198,65,0.28);
}
.city-dot{
  fill:#8EC641;
}
.city-dot--lg{
  fill:#b0e050;
}
.city-label{
  font-family:var(--mono);
  font-size:7px;
  fill:rgba(250,250,247,0.52);
  letter-spacing:0.02em;
}
.city-label--lg{
  font-size:8px;
  fill:rgba(250,250,247,0.78);
  font-weight:600;
}
.nav-dropdown-visual .map-label{
  margin-top:10px;
  font-family:var(--mono);
  font-size:10px;
  color:#8A9080;
  text-align:center;
}

.nav-links a.active{ color:var(--cream); }
.nav.nav-light .nav-links a.active, .nav.nav-sage .nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{ transform:scaleX(1); transform-origin:left; }
@media (max-width:980px){
  .nav-dropdown-menu{ display:none; }
}
@media (max-width:1060px){
  .nav-dropdown-list{ grid-template-columns:1fr; }
}

/* mobile menu: flagship products listed inline */
.mobile-submenu{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-left:18px;
  border-left:1px solid rgba(250,250,247,0.14);
}
.mobile-submenu a{ font-size:18px; }
.mobile-submenu .sub{ display:block; font-family:var(--mono); font-size:10px; color:#8A9080; margin-top:2px; }

/* ============================================================
   BREADCRUMB (product sub-pages)
   ============================================================ */
.breadcrumb{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--gray-dim);
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:20px;
}
.breadcrumb a{ color:var(--gray-dim); transition:color 0.2s ease; }
.breadcrumb a:hover{ color:var(--accent-text); }
.breadcrumb .sep{ opacity:0.5; }

/* ============================================================
   PRODUCTS OVERVIEW GRID
   ============================================================ */
.products-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
}
.product-card{
  border:1px solid var(--line-strong);
  border-radius:8px;
  padding:clamp(32px,3.4vw,48px);
  display:flex;
  flex-direction:column;
  min-height:220px;
  position:relative;
  overflow:hidden;
  transition:transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover{
  transform:translateY(-5px);
  border-color:var(--accent-text);
  box-shadow:0 20px 40px -16px rgba(10,14,8,0.22);
}
.product-card::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 20% 120%, rgba(142,198,65,0.10), transparent 60%);
  opacity:0;
  transition:opacity 0.4s ease;
}
.product-card:hover::before{ opacity:1; }
.product-card .tag{
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent-text);
  margin-bottom:16px;
}
.product-card h3{
  font-size:clamp(21px,2vw,27px);
  margin-bottom:10px;
  position:relative;
}
.product-card p{
  font-size:16px;
  color:var(--gray);
  line-height:1.6;
  max-width:38ch;
  flex:1;
  position:relative;
}
.product-card .go{
  margin-top:20px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-text);
  display:inline-flex;
  align-items:center;
  gap:8px;
  position:relative;
  width:fit-content;
}
.product-card .go svg{ width:12px; height:12px; transition:transform 0.3s var(--ease); }
.product-card:hover .go svg{ transform:translate(3px,-3px); }
.product-card.flagship{ grid-column:1 / -1; }
.product-card.flagship .tag{ color:var(--green); }
@media (max-width:768px){
  .products-grid{ grid-template-columns:1fr; }
  .product-card.flagship{ grid-column:auto; }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.problem-solution{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
}
.problem-solution .col .eyebrow{ margin-bottom:20px; }
@media (max-width:820px){
  .problem-solution{ grid-template-columns:1fr; gap:40px; }
}

.capability-list{ border-top:1px solid var(--line); }
.capability-row{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:20px;
  padding:24px 0;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}
.capability-row .mark{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
}
.capability-row .mark svg{ width:14px; height:14px; color:var(--accent-text); }
.capability-row h4{ font-family:var(--sans); font-weight:600; font-size:16px; margin-bottom:4px; }
.capability-row p{ font-size:16px; color:var(--gray); line-height:1.6; max-width:56ch; }

.ideal-customer-block{
  border:1px solid var(--line-strong);
  border-radius:4px;
  padding:clamp(28px,3vw,40px);
}
.ideal-customer-block .eyebrow{ margin-bottom:16px; }

.outcome-strip{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.outcome-cell{
  background:var(--bg-0);
  padding:24px 20px;
  font-family:var(--serif);
  font-size:clamp(16px,1.6vw,20px);
  text-align:center;
}
@media (max-width:768px){
  .outcome-strip{ grid-template-columns:1fr 1fr; }
}

/* ============================================================
   PRODUCT MOCKUPS — CSS-built approximations of real UI, so
   product pages aren't pure typography. Swap for real screenshots
   when available; structure (data-mockup wrapper) stays the same.
   ============================================================ */
.mockup-window{
  border-radius:10px;
  overflow:hidden;
  background:var(--paper);
  border:1px solid rgba(10,14,8,0.12);
  box-shadow:0 40px 80px -24px rgba(10,14,8,0.35);
}
.mockup-titlebar{
  background:#EDEEE8;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid rgba(10,14,8,0.08);
}
.mockup-titlebar .dot{ width:9px; height:9px; border-radius:50%; background:#D8DACF; }
.mockup-titlebar .url{
  margin-left:10px;
  font-family:var(--mono);
  font-size:10.5px;
  color:#8A9080;
  background:var(--paper);
  border-radius:3px;
  padding:3px 10px;
  flex:1;
  max-width:220px;
}
.mockup-body{ background:#F6F7F2; padding:20px; }

/* Dashboard-style mockup content */
.mockup-dash-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px;
}
.mockup-dash-title{ font-family:var(--sans); font-weight:600; font-size:14px; color:#1A1F17; }
.mockup-dash-sub{ font-family:var(--sans); font-size:11px; color:#8A9080; margin-top:2px; }
.mockup-dash-btn{
  font-family:var(--mono); font-size:9.5px; text-transform:uppercase; letter-spacing:0.05em;
  background:var(--green); color:var(--ink); padding:6px 12px; border-radius:3px;
}
.mockup-stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.mockup-stat{
  background:var(--paper); border:1px solid rgba(10,14,8,0.08); border-radius:6px; padding:12px;
}
.mockup-stat .n{ font-family:var(--mono); font-weight:600; font-size:18px; color:#1A1F17; }
.mockup-stat .l{ font-family:var(--sans); font-size:9.5px; color:#8A9080; margin-top:2px; }
.mockup-table{ background:var(--paper); border:1px solid rgba(10,14,8,0.08); border-radius:6px; overflow:hidden; }
.mockup-row{
  display:grid; grid-template-columns:20px 1fr 70px 60px;
  gap:10px; align-items:center;
  padding:9px 12px;
  border-bottom:1px solid rgba(10,14,8,0.06);
  font-family:var(--sans); font-size:11px; color:#3A4034;
}
.mockup-row:last-child{ border-bottom:none; }
.mockup-row .status-dot{ width:6px; height:6px; border-radius:50%; background:var(--green); }
.mockup-row .status-dot.warn{ background:#D9A441; }
.mockup-row .val{ font-family:var(--mono); font-size:10px; color:#8A9080; text-align:right; }
.mockup-row .badge{
  font-family:var(--mono); font-size:8.5px; text-transform:uppercase;
  background:rgba(142,198,65,0.15); color:var(--green-deep); padding:2px 6px; border-radius:2px; text-align:center;
}

/* Phone / chat mockup */
.mockup-phone{
  width:min(280px, 100%);
  margin:0 auto;
  background:#0C0C0C;
  border-radius:32px;
  padding:10px;
  box-shadow:0 40px 80px -24px rgba(10,14,8,0.45);
}
.mockup-phone-screen{
  background:#E8E9E3;
  border-radius:24px;
  overflow:hidden;
  min-height:420px;
  display:flex;
  flex-direction:column;
}
.mockup-phone-bar{
  background:var(--ink);
  color:var(--cream);
  padding:14px 16px 10px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
}
.mockup-phone-bar .avatar{ width:22px; height:22px; border-radius:50%; background:var(--green); flex-shrink:0; }
.mockup-phone-body{ padding:14px; display:flex; flex-direction:column; gap:10px; flex:1; }
.mockup-bubble{
  max-width:78%;
  padding:9px 12px;
  border-radius:12px;
  font-family:var(--sans);
  font-size:11.5px;
  line-height:1.4;
}
.mockup-bubble.out{
  align-self:flex-end;
  background:var(--green);
  color:var(--ink);
  border-bottom-right-radius:3px;
}
.mockup-bubble.in{
  align-self:flex-start;
  background:var(--paper);
  color:#2A3126;
  border-bottom-left-radius:3px;
  box-shadow:0 1px 2px rgba(10,14,8,0.08);
}
.mockup-bubble .meta{ font-family:var(--mono); font-size:8.5px; opacity:0.6; margin-top:4px; }
.mockup-bubble .map-thumb{
  width:100%; height:70px; border-radius:6px; margin-top:6px;
  background:
    linear-gradient(rgba(142,198,65,0.25), rgba(142,198,65,0.05)),
    repeating-linear-gradient(0deg, rgba(10,14,8,0.06) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(10,14,8,0.06) 0 1px, transparent 1px 14px);
  background-color:#D7DED0;
  position:relative;
}
.mockup-bubble .map-thumb::after{
  content:'📍'; position:absolute; top:50%; left:50%; transform:translate(-50%,-60%); font-size:16px;
}

@media (max-width:820px){
  .mockup-stat-row{ grid-template-columns:repeat(2,1fr); }
}

/* ============================================================
   ICON BADGE + FEATURE CARDS — alternative to point-grid, for
   visual variety across product/solution listings.
   ============================================================ */
.icon-badge{
  width:44px; height:44px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(142,198,65,0.12);
  flex-shrink:0;
}
.icon-badge svg{ width:20px; height:20px; color:var(--accent-text); }

.feature-card-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.feature-card{
  background:var(--bg-0);
  border:1px solid var(--line-strong);
  border-radius:8px;
  padding:clamp(24px,2.6vw,32px);
  display:flex;
  flex-direction:column;
  gap:16px;
  transition:transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover{
  transform:translateY(-5px);
  border-color:var(--accent-text);
  box-shadow:0 20px 40px -16px rgba(10,14,8,0.22);
}
.feature-card h4{ font-family:var(--sans); font-weight:600; font-size:15.5px; }
.feature-card p{ font-size:15.5px; color:var(--gray); line-height:1.6; }
@media (max-width:820px){ .feature-card-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .feature-card-grid{ grid-template-columns:1fr; } }

/* Alternating split row (icon/visual + text) — used on the
   consolidated "other products" page for per-product sections */
.split-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
.split-row.reverse .visual{ order:2; }
@media (max-width:860px){
  .split-row{ grid-template-columns:1fr; gap:32px; }
  .split-row.reverse .visual{ order:0; }
}

/* Generic abstract "product visual" placeholder for products
   without real mockup material yet */
.abstract-visual{
  aspect-ratio:4/3;
  border-radius:10px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(250,250,247,0.10);
  display:flex; align-items:center; justify-content:center;
}
.abstract-visual svg{ width:56%; height:56%; }
.abstract-visual .tag{
  position:absolute; top:14px; left:14px;
  font-family:var(--mono); font-size:9px; letter-spacing:0.08em; text-transform:uppercase;
  color:rgba(250,250,247,0.5);
}

/* ============================================================
   PLACEHOLDER BLOCK — explicit "swap this for a real asset" box
   ============================================================ */
.placeholder-visual{
  border:1.5px dashed var(--line-strong);
  border-radius:8px;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:32px;
  text-align:center;
}
.placeholder-visual svg{ width:32px; height:32px; color:var(--gray-dim); }
.placeholder-visual .label{
  font-family:var(--mono); font-size:10.5px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--gray-dim);
}

/* ============================================================
   HERO BACKGROUND PATTERNS — per page-category texture so
   subpage heroes don't all look identical. Layered behind
   .page-hero content via ::before.
   ============================================================ */
.page-hero{ position:relative; overflow:hidden; }
.page-hero::before{
  content:''; position:absolute; inset:0; pointer-events:none; opacity:0.5;
}
.page-hero.pattern-grid::before{
  background-image:
    linear-gradient(rgba(250,250,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,250,247,0.05) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 80% 60% at 70% 30%, #000 40%, transparent 80%);
}
.page-hero.pattern-network::before{
  background-image:radial-gradient(rgba(142,198,65,0.35) 1px, transparent 1.5px);
  background-size:34px 34px;
  mask-image:radial-gradient(ellipse 70% 60% at 75% 20%, #000 30%, transparent 75%);
}
.page-hero.pattern-contour::before{
  background-image:repeating-radial-gradient(circle at 80% 20%, transparent 0, transparent 26px, rgba(250,250,247,0.05) 27px, rgba(250,250,247,0.05) 28px);
}
.page-hero.pattern-chart::before{
  background-image:linear-gradient(rgba(250,250,247,0.05) 1px, transparent 1px);
  background-size:100% 44px;
  mask-image:linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
}

/* ============================================================
   CHECK LIST — unboxed alternative to point-grid, for lists that
   sit inside a narrower column (paired with a visual/mockup)
   rather than needing their own full-width card treatment.
   ============================================================ */
.check-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.check-list .check-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:16.5px;
  line-height:1.5;
}
.check-list .check-item svg{
  width:16px; height:16px;
  flex-shrink:0;
  margin-top:3px;
  color:var(--accent-text);
}

/* ============================================================
   NEWS GRID + CARDS
   ============================================================ */
.news-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.news-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--line-strong);
  border-radius:8px;
  overflow:hidden;
  background:var(--bg-0);
  transition:transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover{
  transform:translateY(-5px);
  border-color:var(--accent-text);
  box-shadow:0 20px 40px -16px rgba(10,14,8,0.22);
}
.news-card .thumb-wrap{ aspect-ratio:16/10; }
.news-card .thumb-wrap .image-placeholder{ height:100%; border-radius:0; border-width:0 0 1px 0; }
.news-card .card-body{ padding:22px 22px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.news-card .card-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-text);
}
.news-card .card-meta .date{ color:var(--gray-dim); text-transform:none; letter-spacing:0; }
.news-card h3{ font-size:19px; line-height:1.3; }
.news-card p{ font-size:15.5px; color:var(--gray); line-height:1.6; flex:1; }
.news-card .go{
  margin-top:6px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-text);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.news-card .go svg{ width:12px; height:12px; transition:transform 0.3s var(--ease); }
.news-card:hover .go svg{ transform:translate(3px,-3px); }
@media (max-width:980px){ .news-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .news-grid{ grid-template-columns:1fr; } }

/* ============================================================
   IMAGE PLACEHOLDER — explicit, labeled with the exact filename
   expected in /assets/images/news/, so swapping in a real photo
   is a drop-in rename, no code changes.
   ============================================================ */
.image-placeholder{
  border:1.5px dashed var(--line-strong);
  background:repeating-linear-gradient(135deg, rgba(142,198,65,0.04) 0 12px, transparent 12px 24px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:200px;
  padding:24px;
  text-align:center;
}
.image-placeholder svg{ width:28px; height:28px; color:var(--gray-dim); }
.image-placeholder .filename{
  font-family:var(--mono);
  font-size:10.5px;
  color:var(--accent-text);
  background:rgba(142,198,65,0.1);
  padding:4px 10px;
  border-radius:3px;
}
.image-placeholder .hint{
  font-family:var(--sans);
  font-size:11px;
  color:var(--gray-dim);
}

/* ============================================================
   ARTICLE PROSE — inner news page body copy
   ============================================================ */
.article-prose{ max-width:72ch; }
.article-prose p{ font-size:18px; line-height:1.75; color:var(--gray); margin-bottom:20px; }
.article-prose p:last-child{ margin-bottom:0; }
.article-meta-row{
  display:flex;
  align-items:center;
  gap:14px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-text);
  margin-bottom:20px;
}
.article-meta-row .sep{ color:var(--gray-dim); }
.article-meta-row .date{ color:var(--gray-dim); text-transform:none; letter-spacing:0; }
.article-source{
  margin-top:36px;
  padding-top:20px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:11.5px;
  color:var(--gray-dim);
}
.article-source a{ color:var(--accent-text); border-bottom:1px solid currentColor; }

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
}
.team-card{ display:flex; flex-direction:column; gap:18px; }
.team-card .photo-wrap{
  aspect-ratio:1/1;
  border-radius:8px;
  overflow:hidden;
  background:var(--ink-soft);
}
.team-card .photo-wrap img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-card h4{ font-family:var(--serif); font-size:22px; font-weight:500; }
.team-card .role{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-text);
  margin-top:-10px;
}
.team-card .credentials{ font-size:15px; color:var(--gray); line-height:1.6; }
@media (max-width:820px){ .team-grid{ grid-template-columns:1fr; max-width:420px; } }

/* ============================================================
   LAPTOP MOCKUP GALLERY — real product screenshots framed in a
   laptop, click/tap to advance to the next image.
   ============================================================ */
.laptop-mockup{
  width:100%;
  max-width:920px;
  margin:0 auto;
}
.laptop-screen-frame{
  background:#151515;
  border-radius:16px 16px 5px 5px;
  padding:16px 16px 12px;
  box-shadow:0 40px 90px -24px rgba(10,14,8,0.45);
}
.laptop-camera{
  width:6px; height:6px; border-radius:50%;
  background:#3a3a3a;
  margin:0 auto 10px;
}
.laptop-screen{
  position:relative;
  background:#0A0E08;
  border-radius:4px;
  overflow:hidden;
  aspect-ratio:16/10;
  cursor:pointer;
  user-select:none;
}
.laptop-screen img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;
  background:#0A0E08;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.3s ease;
}
.laptop-screen img.active{ opacity:1; pointer-events:auto; }
.laptop-counter{
  position:absolute;
  top:10px; right:10px;
  background:rgba(10,14,8,0.72);
  color:#F4F2EE;
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.03em;
  padding:4px 10px;
  border-radius:10px;
  z-index:3;
  pointer-events:none;
}
.laptop-nav-arrow{
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:36px; height:36px;
  background:rgba(10,14,8,0.55);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  z-index:3;
  opacity:0;
  transition:opacity 0.2s ease, background 0.2s ease;
}
.laptop-screen:hover .laptop-nav-arrow{ opacity:1; }
.laptop-nav-arrow:hover{ background:rgba(142,198,65,0.75); }
.laptop-nav-arrow.prev{ left:10px; }
.laptop-nav-arrow.next{ right:10px; }
.laptop-nav-arrow svg{ width:16px; height:16px; }
.laptop-base{
  height:14px;
  max-width:960px;
  margin:0 auto;
  background:linear-gradient(180deg, #2c2c2c, #181818);
  border-radius:0 0 10px 10px;
  position:relative;
}
.laptop-base::before{
  content:'';
  position:absolute;
  left:50%; top:0;
  transform:translateX(-50%);
  width:90px; height:5px;
  background:#0e0e0e;
  border-radius:0 0 7px 7px;
}
.laptop-hint{
  text-align:center;
  margin-top:18px;
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--gray-dim);
}

/* ============================================================
   ORBIT LINES — Our Story diagram: lines revolve around the
   center and pulse in length (scale from the center point).
   ============================================================ */
.orbit-rotate{
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: orbitRotate 24s linear infinite;
}
.orbit-1{ animation-duration: 24s; }
.orbit-2{ animation-duration: 32s; animation-direction: reverse; }
.orbit-3{ animation-duration: 18s; }
.orbit-pulse{
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: orbitPulse 4.5s ease-in-out infinite;
}
.orbit-pulse-2{ animation-duration: 5.5s; animation-delay: 0.6s; }
.orbit-pulse-3{ animation-duration: 6.2s; animation-delay: 1.2s; }
@keyframes orbitRotate{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes orbitPulse{
  0%, 100%{ transform: scale(0.85); }
  50%{ transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce){
  .orbit-rotate, .orbit-pulse{ animation: none; }
}

/* ============================================================
   LAPTOP PHOTO MOCKUP — real laptop.png with gallery composited
   into the detected screen region (measured from the photo).
   ============================================================ */
.laptop-photo{
  position:relative;
  width:100%;
  max-width:960px;
  margin:0 auto;
}
.laptop-photo-frame{
  width:100%;
  display:block;
  position:relative;
  z-index:1;
  pointer-events:none;
}
.laptop-photo-screen{
  position:absolute;
  left:6.37%; top:0.93%; width:87.2%; height:86.25%;
  z-index:2;
  overflow:hidden;
  cursor:pointer;
  background:#0A0E08;
  user-select:none;
}
.laptop-photo-screen img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.3s ease;
}
.laptop-photo-screen img.active{ opacity:1; pointer-events:auto; }

/* ============================================================
   FILLED PLACEHOLDER — thematic abstract graphic replacing the
   dashed "image goes here" box. Same container/sizing, solid look.
   ============================================================ */
.image-placeholder.filled, .placeholder-visual.filled{
  border-style:solid;
  border-color:var(--line-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(142,198,65,0.16), transparent 55%),
    var(--ink-soft);
}
.image-placeholder.filled svg, .placeholder-visual.filled svg{
  width:25%;
  height:auto;
  max-width:120px;
  color:var(--green);
  opacity:0.85;
}
.image-placeholder.filled .filename,
.image-placeholder.filled .hint,
.placeholder-visual.filled .filename,
.placeholder-visual.filled .hint{
  display:none;
}
