/* Data Pillars Global — site styles (dark, animated) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("fonts/source-sans-3.woff2") format("woff2-variations");
}

:root {
  --bg: #070d1c;
  --panel: #0e1830;
  --panel-2: #13213f;
  --line: rgba(157, 180, 207, .16);
  --line-strong: rgba(157, 180, 207, .32);
  --text: #e8eef8;
  --muted: #9fb0c8;
  --blue: #3d7bff;
  --blue-soft: rgba(61, 123, 255, .18);
  --amber: #f2b441;
  --amber-soft: rgba(242, 180, 65, .22);
  --steel: #9db4cf;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-lg: 28px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color-scheme: dark;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--amber); }
a:hover { color: #ffd27a; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--bg);
  padding: .6rem 1rem; font-weight: 700; text-decoration: none; border-radius: 6px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; font-stretch: 72%; }
h3 { font-size: 1.45rem; font-weight: 700; font-stretch: 85%; line-height: 1.2; }
p { margin: 0 0 1rem; max-width: 62ch; }

/* ---------- Header: floating glass bar ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: .75rem var(--gutter) 0; }
.header-bar {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem; padding: 0 1.25rem;
  background: rgba(14, 24, 48, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.15rem;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }

.nav-toggle {
  display: none; cursor: pointer;
  background: none; border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 1rem; padding: .35rem .85rem; border-radius: 8px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--bg); background: var(--amber); font-weight: 700;
  padding: .5rem 1.05rem; border-radius: 10px;
}
.site-nav .nav-cta:hover { color: var(--bg); background: #ffc95e; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + .5rem);
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .site-nav li a { display: block; padding: .75rem 0; }
  .site-nav .nav-cta { text-align: center; margin-top: .5rem; }
}

/* ---------- Hero: framed panel with live data network ---------- */
.hero { padding: 1rem var(--gutter) 0; }
.hero-frame {
  position: relative; overflow: hidden;
  max-width: calc(var(--wrap) + 4rem); margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 78% 85%, rgba(61,123,255,.22), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(242,180,65,.08), transparent 70%),
    #08112a;
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem) 0;
}
.hero-copy { padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero-kicker { color: var(--steel); font-size: 1.1rem; margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  font-weight: 800; font-stretch: 64%; line-height: .94;
  margin-bottom: 1.5rem;
}
.hero-copy > p:not(.hero-kicker) { color: #c4d0e3; font-size: 1.2rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: .85rem 1.45rem; border-radius: 12px; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--amber); color: var(--bg); box-shadow: 0 0 0 0 var(--amber-soft); }
.btn-primary:hover { background: #ffc95e; color: var(--bg); box-shadow: 0 0 28px 4px var(--amber-soft); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--steel); color: var(--text); }

/* Pillars: the signature — each column is a practice area */
.pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  gap: clamp(.4rem, 1.2vw, .9rem);
  height: clamp(18rem, 42vw, 29rem);
}
.pillar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.pillar .col {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(157,180,207,.22), rgba(157,180,207,.05));
  border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform-origin: bottom;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
/* a light pulse travelling up each pillar, like data flowing */
.pillar .col::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18), transparent);
  animation: flow 3.6s linear infinite;
  animation-delay: inherit;
}
.pillar .label {
  font-family: var(--display); font-stretch: 78%; font-weight: 600;
  font-size: clamp(.78rem, 1.5vw, 1rem); line-height: 1.2; color: var(--muted);
  min-height: 4.2em; padding: .65rem 0 1rem;
  border-top: 1px solid var(--line-strong);
}
.p1 .col { height: 58%; animation-delay: .05s; }
.p2 .col { height: 72%; animation-delay: .2s; }
.p3 .col {
  height: 92%; animation-delay: .35s;
  background: linear-gradient(180deg, var(--blue), rgba(61,123,255,.35));
  border-color: rgba(61,123,255,.8);
  box-shadow: 0 0 60px 6px rgba(61,123,255,.35);
}
.p3 .col::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--amber); }
.p4 .col { height: 64%; animation-delay: .5s; }
.p5 .col { height: 46%; animation-delay: .65s; }
.p3 .label { color: var(--text); }

@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes flow { from { top: 110%; } to { top: -50%; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .pillars { height: 16rem; }
}

/* ---------- Capability strip with counters ---------- */
.stats { padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 0; }
.stats-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.stat { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num {
  display: block;
  font-family: var(--display); font-stretch: 70%; font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 28px rgba(242,180,65,.35);
  font-variant-numeric: tabular-nums;
}
.stat .what { display: block; color: var(--muted); margin-top: .5rem; font-size: 1rem; line-height: 1.35; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 6rem; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.2rem; }

/* Services: glass panels with line icons and a cursor-following glow */
.services {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem;
}
.service {
  grid-column: span 2;
  position: relative; overflow: hidden;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(19,33,63,.9), rgba(14,24,48,.9));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%), rgba(61,123,255,.18), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.service:hover { border-color: rgba(61,123,255,.55); transform: translateY(-3px); }
.service:hover::before { opacity: 1; }
.service.core { grid-column: span 4; border-color: rgba(242,180,65,.45); }
.service.core:hover { border-color: var(--amber); }
.service .icon { width: 52px; height: 52px; margin-bottom: 1.25rem; color: var(--steel); }
.service.core .icon { color: var(--amber); }
.service h3 { margin-bottom: .75rem; }
.service p { color: var(--muted); font-size: 1.05rem; }
.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-size: .9rem; color: #d3ddec;
  background: rgba(157,180,207,.08); border: 1px solid var(--line);
  padding: .2rem .65rem; border-radius: 999px;
}
.service.core .tags li { border-color: rgba(242,180,65,.4); background: var(--amber-soft); color: #fff1d6; }
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { grid-column: auto; }
  .service.core { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .service, .service:hover { transform: none; transition: none; } }

/* Approach: a real sequence, so it is numbered, joined by a line */
.steps {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 5.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 4rem; height: 4rem; display: grid; place-items: center;
  font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 1.8rem;
  color: var(--amber); background: var(--panel);
  border: 1px solid rgba(242,180,65,.5); border-radius: 50%;
  box-shadow: 0 0 24px rgba(242,180,65,.18);
}
.steps li::after {
  content: ""; position: absolute; top: 2rem; left: 4.75rem; right: -1.75rem; height: 1px;
  background: linear-gradient(90deg, rgba(242,180,65,.5), var(--line));
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .75rem; }
.steps p { color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li::after { display: none; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid h2 { margin-bottom: 1.5rem; }
.about-grid p { color: #c4d0e3; }
.facts {
  margin: 0; padding: .5rem 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact: framed panel echoing the hero */
.contact-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(50% 80% at 100% 100%, rgba(242,180,65,.14), transparent 70%),
    radial-gradient(50% 80% at 0% 0%, rgba(61,123,255,.16), transparent 70%),
    var(--panel);
}
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  border-top: 1px solid var(--line-strong); padding-top: 2rem;
}
.contact-grid h3 { font-size: 1.05rem; color: var(--steel); margin-bottom: .5rem; font-stretch: 90%; }
.contact-grid > div { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.contact-grid a, .contact-grid p { color: var(--text); font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.contact-grid .note { color: var(--muted); font-size: 1rem; }
.contact-grid a:hover { color: var(--amber); }
.contact .actions { margin-top: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { color: var(--muted); font-size: .95rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--text); }

/* Scroll reveal: only active when JS adds .js and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(18px); transition: transform .7s ease; }
  .js .reveal.in { transform: none; }
}

/* 404 */
.notfound { min-height: 80vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(3rem, 9vw, 6rem); font-stretch: 65%; margin-bottom: 1rem; }
.notfound p { color: var(--muted); }
