/* ============ Stratalytics v2 — Stylesheet ============ */

:root {
  --bg: oklch(0.975 0.004 85);
  --bg-alt: oklch(0.955 0.006 85);
  --ink: oklch(0.20 0.02 255);
  --ink-2: oklch(0.36 0.018 255);
  --muted: oklch(0.55 0.014 255);
  --rule: oklch(0.885 0.008 255);
  --hero-bg: oklch(0.205 0.025 255);
  --hero-ink: oklch(0.97 0.006 85);
  --hero-muted: oklch(0.72 0.012 255);
  --hero-line: oklch(0.97 0.006 85);
  --accent: #2f9e6b;
  --accent-ink: oklch(0.16 0.02 255);

  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --max: 1240px;
  --pad: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ───────── Reveal motion ───────── */
.rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.22,.8,.36,1), transform .7s cubic-bezier(.22,.8,.36,1);
    transition-delay: var(--d, 0ms);
  }
  .rv.rv-in { opacity: 1; transform: none; }
}

/* ───────── Brand ───────── */
.v2-brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.wordmark-accent { color: var(--accent); }
.strata-mark { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .v2-brand:hover .sm-3 { transform: translateX(2px); }
  .v2-brand:hover .sm-2 { transform: translateX(1px); }
  .sm-bar { transition: transform .3s ease; }
}

/* ───────── Nav ───────── */
.v2-nav {
  position: sticky; top: 0; z-index: 90;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.v2-nav.is-scrolled {
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.v2-nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; gap: 36px;
}
.v2-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); margin-left: 12px; }
.v2-links a { position: relative; padding: 4px 0; }
.v2-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.v2-links a:hover::after { width: 100%; }
.v2-nav-cta {
  margin-left: auto;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; font-weight: 550;
  transition: background .2s ease, transform .2s ease;
}
.v2-nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 860px) { .v2-links { display: none; } }

/* Nav on dark hero (top of page) */
.v2-nav:not(.is-scrolled) { color: var(--hero-ink); }
.v2-nav:not(.is-scrolled) .v2-links { color: color-mix(in oklch, var(--hero-ink) 80%, transparent); }
.v2-nav:not(.is-scrolled) .v2-nav-cta { background: var(--hero-ink); color: var(--hero-bg); }
.v2-nav:not(.is-scrolled) .v2-nav-cta:hover { background: var(--accent); color: var(--hero-ink); }

/* ───────── Hero ───────── */
.v2-hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  margin-top: calc(-1 * (16px + 16px + 30px + 2px)); /* pull under sticky nav */
  padding-top: 80px;
}
.strata-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .strata-layer { animation: strataDrift linear infinite alternate; }
  @keyframes strataDrift {
    from { transform: translateX(-3%); }
    to   { transform: translateX(3%); }
  }
}
.v2-hero-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(70px, 11vw, 140px) var(--pad) clamp(56px, 8vw, 96px);
}
.v2-hero-eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  color: color-mix(in oklch, var(--hero-ink) 85%, transparent);
  margin-bottom: 26px;
  display: inline-flex; align-items: center; gap: 12px;
}
.v2-hero-eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--accent); flex-shrink: 0;
}
.v2-h1 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.032em;
  text-wrap: balance;
  max-width: 14ch;
}
.v2-hero-lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.6;
  color: var(--hero-muted);
  max-width: 62ch;
}
.v2-hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.v2-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 550;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.v2-btn:hover { transform: translateY(-2px); }
.v2-btn-accent { background: var(--accent); color: var(--accent-ink); }
.v2-btn-accent:hover { filter: brightness(1.08); }
.v2-btn-outline { border-color: color-mix(in oklch, currentColor 35%, transparent); }
.v2-btn-outline:hover { border-color: currentColor; }

.v2-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: color-mix(in oklch, var(--hero-ink) 16%, transparent);
  border: 1px solid color-mix(in oklch, var(--hero-ink) 16%, transparent);
  border-radius: 12px; overflow: hidden;
  margin-top: clamp(48px, 7vw, 88px);
}
.v2-stat { background: color-mix(in oklch, var(--hero-bg) 86%, var(--hero-ink) 4%); padding: 24px 24px 26px; }
.v2-stat-v {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1; letter-spacing: -0.02em;
}
.v2-stat-l { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--hero-muted); max-width: 32ch; }
@media (max-width: 760px) { .v2-hero-stats { grid-template-columns: 1fr; } }

/* ───────── Sections ───────── */
.v2-section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--pad);
}
.v2-section-alt {
  max-width: none;
  background: var(--bg-alt);
}
.v2-section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.v2-marker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 26px;
}
.v2-marker .num { color: var(--accent); }
.v2-marker .bar { width: 28px; height: 1px; background: var(--rule); }

.v2-h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.028em;
  text-wrap: balance;
}
.v2-section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.v2-section-lede {
  margin-top: 18px; font-size: 17px; line-height: 1.6;
  color: var(--ink-2); max-width: 58ch;
}

/* ───────── Services ───────── */
.v2-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.v2-service {
  border: 1px solid var(--rule); border-radius: 14px;
  padding: 28px 26px 30px; background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.v2-service:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--accent) 55%, var(--rule));
  box-shadow: 0 16px 40px -22px oklch(0.3 0.02 255 / 0.35);
}
.v2-service-top { display: flex; align-items: baseline; gap: 12px; }
.v2-service-code { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: 0.1em; }
.v2-service h3 { font-size: 19.5px; font-weight: 600; letter-spacing: -0.015em; }
.v2-service-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.v2-service ul { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.v2-service li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.v2-service .tick { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }
@media (max-width: 980px) { .v2-services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .v2-services-grid { grid-template-columns: 1fr; } }

/* ───────── Process ───────── */
.v2-process {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.v2-phase {
  padding: 30px 28px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
}
.v2-phase-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.v2-phase-n {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid; border-radius: 50%;
  font-family: var(--serif); font-size: 20px;
}
.v2-phase-t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.v2-phase-time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 3px; }
.v2-phase-d { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) { .v2-process { grid-template-columns: 1fr; } }

/* ───────── Clients ───────── */
.v2-clients-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.v2-client-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.v2-client-col h4 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 500;
}
.v2-client-col ul { display: flex; flex-direction: column; gap: 10px; }
.v2-client-col li {
  font-size: 15px; color: var(--ink-2);
  padding-left: 16px; position: relative; line-height: 1.45;
}
.v2-client-col li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 2px; background: var(--accent);
}
@media (max-width: 900px) {
  .v2-clients-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .v2-client-cols { grid-template-columns: 1fr; } }

/* ───────── Experience ───────── */
.v2-named {
  display: flex; flex-wrap: wrap; gap: 14px 44px;
  align-items: baseline;
  padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
}
.v2-named-mark {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  letter-spacing: -0.015em;
  color: var(--ink-2);
  transition: color .2s ease;
  white-space: nowrap;
}
a.v2-named-mark:hover { color: var(--accent); }
.v2-exp-groups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.v2-exp-group h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  margin-bottom: 14px;
}
.v2-exp-group ul { display: flex; flex-direction: column; gap: 10px; }
.v2-exp-group li {
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
  padding-left: 14px; position: relative;
}
.v2-exp-group li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 2px; background: var(--accent);
}
@media (max-width: 980px) { .v2-exp-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .v2-exp-groups { grid-template-columns: 1fr; } }

.v2-exp-note {
  margin-top: 28px;
  font-size: 12.5px; color: var(--muted);
}

/* ───────── Work ───────── */
.v2-work-list { display: flex; flex-direction: column; gap: 20px; }
.v2-case {
  border: 1px solid var(--rule); border-radius: 14px;
  background: var(--bg);
  padding: 28px 30px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.v2-case:hover { border-color: color-mix(in oklch, var(--accent) 45%, var(--rule)); }
.v2-case-head {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px dashed var(--rule);
}
.v2-case-sector { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }
.v2-case-eng { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 5px; letter-spacing: 0.04em; }
.v2-case-stats { display: flex; gap: 26px; }
.v2-case-stat { display: flex; flex-direction: column; }
.v2-case-stat .v {
  font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em; line-height: 1.1;
}
.v2-case-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.v2-case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.v2-case-body h5 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  color: var(--accent); font-weight: 500; margin-bottom: 8px; text-transform: uppercase;
}
.v2-case-body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 760px) { .v2-case-body { grid-template-columns: 1fr; gap: 16px; } }

/* ───────── Compare ───────── */
.v2-compare { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.v2-compare-row {
  display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr;
  border-top: 1px solid var(--rule);
}
.v2-compare-row:first-child { border-top: none; }
.v2-compare-row > div { padding: 17px 20px; font-size: 14.5px; line-height: 1.45; }
.v2-compare-head { background: var(--bg-alt); }
.v2-compare-head > div {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.v2-compare-head .us { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.v2-compare-row .lbl { color: var(--muted); font-size: 13.5px; }
.v2-compare-row .us-v { font-weight: 550; }
.v2-compare-row .them-v { color: var(--muted); }
@media (max-width: 720px) {
  .v2-compare-row { grid-template-columns: 1fr; }
  .v2-compare-row > div { padding: 12px 20px; }
  .v2-compare-row .lbl { padding-bottom: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
}

/* ───────── Experience logos ───────── */
.v2-logos-section { padding-top: 0; }
.v2-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.v2-logo-slot {
  border: 1px dashed var(--rule); border-radius: 10px;
  padding: 10px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.v2-logos-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .v2-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .v2-logos { grid-template-columns: repeat(2, 1fr); } }

/* ───────── Tools ───────── */
.v2-tools-section { padding-top: 0; }
.v2-tools-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 18px;
}
.v2-tools {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden;
}
.v2-tool {
  background: var(--bg); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px;
  transition: background .2s ease;
}
.v2-tool:hover { background: var(--bg-alt); }
.v2-tool:hover .n { color: var(--accent); }
.v2-tool .n { font-size: 14.5px; font-weight: 550; transition: color .2s ease; }
.v2-tool .c { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .v2-tools { grid-template-columns: repeat(2, 1fr); } }

/* ───────── Insights ───────── */
.v2-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v2-insight {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--rule); border-radius: 14px;
  padding: 26px 24px; min-height: 200px;
  background: var(--bg);
  transition: transform .25s ease, border-color .25s ease;
}
.v2-insight:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--accent) 50%, var(--rule)); }
.v2-insight .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; color: var(--accent); }
.v2-insight .t { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.v2-insight .d { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.v2-insight .arr { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.v2-insight:hover .arr { color: var(--accent); }
@media (max-width: 860px) { .v2-insights { grid-template-columns: 1fr; } }

/* ───────── Contact ───────── */
.v2-contact { background: var(--hero-bg); color: var(--hero-ink); }
.v2-contact-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.v2-contact-left .v2-marker { color: var(--hero-muted); }
.v2-contact-left .v2-marker .bar { background: color-mix(in oklch, var(--hero-ink) 25%, transparent); }
.v2-contact-left p { margin-top: 20px; font-size: 16.5px; line-height: 1.6; color: var(--hero-muted); max-width: 46ch; }
.v2-contact-direct { margin-top: 36px; display: flex; flex-direction: column; gap: 6px; }
.v2-contact-direct .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; color: var(--hero-muted); }
.v2-contact-direct a {
  font-family: var(--mono); font-size: 15px; color: var(--hero-ink);
  border-bottom: 1px solid color-mix(in oklch, var(--hero-ink) 30%, transparent);
  width: fit-content; padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.v2-contact-direct a:hover { color: var(--accent); border-color: var(--accent); }

.v2-form {
  background: color-mix(in oklch, var(--hero-bg) 75%, var(--hero-ink) 5%);
  border: 1px solid color-mix(in oklch, var(--hero-ink) 14%, transparent);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.v2-field { display: flex; flex-direction: column; gap: 7px; }
.v2-field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--hero-muted);
}
.v2-field input, .v2-field textarea {
  background: color-mix(in oklch, var(--hero-bg) 60%, black 6%);
  border: 1px solid color-mix(in oklch, var(--hero-ink) 16%, transparent);
  border-radius: 9px;
  color: var(--hero-ink);
  font-family: var(--sans); font-size: 15px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s ease;
  resize: vertical;
}
.v2-field input::placeholder, .v2-field textarea::placeholder { color: color-mix(in oklch, var(--hero-ink) 35%, transparent); }
.v2-field input:focus, .v2-field textarea:focus { border-color: var(--accent); }
.v2-form-btn { justify-content: center; margin-top: 4px; }
.v2-form-btn:disabled { opacity: 0.6; cursor: default; }
.v2-form-err {
  font-size: 13.5px; line-height: 1.5;
  color: oklch(0.8 0.1 30);
}
.v2-form-err a { text-decoration: underline; }
.v2-form-sent { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.v2-form-sent h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.v2-form-sent p { font-size: 14.5px; color: var(--hero-muted); max-width: 34ch; }
@media (max-width: 900px) { .v2-contact-inner { grid-template-columns: 1fr; } }

/* ───────── Footer ───────── */
.v2-footer { background: var(--hero-bg); color: var(--hero-muted); border-top: 1px solid color-mix(in oklch, var(--hero-ink) 10%, transparent); }
.v2-footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 56px var(--pad) 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
}
.v2-footer-brand .v2-brand { color: var(--hero-ink); }
.v2-footer-brand p { margin-top: 14px; font-size: 13.5px; max-width: 30ch; line-height: 1.5; }
.v2-footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.v2-footer-col h5 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 6px;
  color: color-mix(in oklch, var(--hero-muted) 75%, transparent);
}
.v2-footer-col a:hover { color: var(--accent); }
.v2-footer-base {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--pad) 30px;
  border-top: 1px solid color-mix(in oklch, var(--hero-ink) 8%, transparent);
  font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 16px;
}
@media (max-width: 820px) { .v2-footer-inner { grid-template-columns: 1fr 1fr; } }
