/* Plus Jakarta Sans (variable, 200-800), self-hosted. SIL OFL 1.1, see fonts/OFL.txt.
   Source: @fontsource-variable/plus-jakarta-sans@5.3.0 (npm). */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #0C1618;
  --teal: #0E9A96;
  --teal-dark: #0A7370;
  --teal-darker: #085C5A;
  --bg: #F5F8F8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
a:active { color: var(--teal-darker); }
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(14,154,150,.22); }

img, svg { max-width: 100%; }

@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes pulseRing { 0% { transform: scale(.85); opacity: .55; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,248,248,.88);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 26px rgba(12,22,24,.09);
  background: rgba(245,248,248,.94);
}
.header-inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand-mark { display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .1em; line-height: 1; }
.brand-name span { color: var(--teal); }
.brand-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .22em; color: var(--teal); line-height: 1; }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: #405255; }
.nav-links a:hover { color: var(--ink); }

.header-cta {
  flex: none; margin-left: auto;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(14,154,150,.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,154,150,.36); }
.header-cta:active { transform: translateY(0); }

.menu-btn {
  display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(12,22,24,.1); border-radius: 13px; cursor: pointer;
  color: var(--ink); transition: border-color .2s ease;
}
.menu-btn:hover { border-color: var(--teal); }
.menu-btn i { font-size: 22px; }

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(12,22,24,.08); background: #fff;
}
.mobile-nav-inner {
  padding: 8px clamp(20px, 4vw, 48px) 14px;
  display: flex; flex-direction: column;
}
.mobile-nav a {
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  padding: 13px 0; border-bottom: 1px solid rgba(12,22,24,.06);
}
.mobile-nav a:hover { color: var(--teal); }
.mobile-nav .mobile-cta {
  display: block; text-align: center; margin-top: 14px;
  background: var(--teal); color: #fff; font-size: 15.5px; font-weight: 700;
  padding: 15px 20px; border-radius: 999px; border-bottom: none;
}
.mobile-nav .mobile-cta:hover { background: var(--teal-dark); color: #fff; }

body.menu-open .mobile-nav { display: block; }
body.menu-open .nav-links,
body.menu-open .header-cta { display: none; }

@media (max-width: 979px) {
  .nav-links { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  body.menu-open .menu-btn { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15.5px; border-radius: 999px; padding: 16px 26px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 26px rgba(14,154,150,.3); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,154,150,.38); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid rgba(12,22,24,.1); padding: 16px 24px; }
.btn-secondary:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: #14BEB6; color: #04211F; font-weight: 800; padding: 15px 28px; }
.btn-dark:hover { background: #2FD3CA; transform: translateY(-2px); }

/* ---------- Sections ---------- */
main { display: block; }
section { }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
@media (max-width: 939px) { .hero { grid-template-columns: minmax(0, 1fr); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(14,154,150,.1); color: var(--teal-dark);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}
.pulse-dot { position: relative; display: inline-flex; width: 7px; height: 7px; }
.pulse-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--teal); }
.pulse-dot span.ring { animation: pulseRing 2.4s ease-out infinite; }

.hero h1 {
  font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.032em;
  font-weight: 800; margin: 22px 0 0;
}
.hero h1 span { color: var(--teal); }
.hero-lede {
  font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: #4B5C60;
  max-width: 48ch; margin: 22px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions .btn i { font-size: 18px; }

.hero-visual { position: relative; min-height: 340px; }
.hero-visual-bg {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(150deg, #E4F1F1 0%, #F4FAFA 52%, #EAF4F4 100%);
  border: 1px solid rgba(14,154,150,.16); box-shadow: 0 26px 60px rgba(12,22,24,.1);
}
.hero-visual-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-chips {
  position: relative; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px;
}
.hero-chip {
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: #EAF3F3; font-size: 13px; font-weight: 600; line-height: 1.35;
  padding: 12px 16px; border-radius: 13px; max-width: 260px; box-shadow: 0 14px 30px rgba(12,22,24,.28);
}
.hero-chip i { font-size: 20px; color: #2FBFB8; flex: none; }
.hero-chip.a1 { align-self: flex-start; animation: floatA 6s ease-in-out infinite; }
.hero-chip.b1 { align-self: flex-end; max-width: 250px; animation: floatB 7.2s ease-in-out infinite .4s; }
.hero-chip.b2 { align-self: flex-start; max-width: 255px; animation: floatB 6.6s ease-in-out infinite .8s; }
.hero-chip.a2 { align-self: flex-end; max-width: 250px; animation: floatA 7.6s ease-in-out infinite 1.2s; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(12,22,24,.09); border-radius: 18px; overflow: hidden;
}
@media (max-width: 899px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; padding: 26px 24px; }
.stat-num { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat-num.accent { color: var(--teal); }
.stat-label { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #5A6A6D; }

/* Section heading */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -.028em;
  font-weight: 800; margin: 14px 0 0;
}

/* Risk cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1039px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid-4 { grid-template-columns: 1fr; } }

.risk-card {
  background: #fff; border-radius: 20px; padding: 28px 24px 30px;
  border: 1px solid rgba(12,22,24,.07);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.risk-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(12,22,24,.11); border-color: rgba(14,154,150,.34); }
.risk-card .num { font-size: 15px; font-weight: 800; color: var(--teal); letter-spacing: .04em; }
.risk-card .icon { height: 84px; display: flex; align-items: center; margin: 14px 0 18px; }
.risk-card h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 0; }
.risk-card p { font-size: 14.5px; line-height: 1.65; color: #5A6A6D; margin: 10px 0 0; }

/* Gap / why it's different */
.gap-panel {
  background: #fff; border-radius: 26px; padding: clamp(30px, 4vw, 56px);
  border: 1px solid rgba(12,22,24,.07);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 3vw, 52px); align-items: center;
}
@media (max-width: 859px) { .gap-panel { grid-template-columns: minmax(0, 1fr); } }
.gap-panel h2 {
  font-size: clamp(22px, 2.4vw, 31px); line-height: 1.32; letter-spacing: -.022em;
  font-weight: 700; margin: 16px 0 0;
}
.gap-panel .gap-detail { font-size: 16px; line-height: 1.68; color: #5A6A6D; margin: 18px 0 0; max-width: 52ch; }
.gap-list { display: flex; flex-direction: column; gap: 12px; }
.gap-row { display: flex; align-items: center; gap: 13px; background: var(--bg); border-radius: 14px; padding: 15px 17px; }
.gap-row.is-solution { background: rgba(14,154,150,.1); }
.gap-row i { font-size: 23px; color: #93A4A7; }
.gap-row.is-solution i { color: var(--teal); }
.gap-row span { font-size: 14.5px; font-weight: 600; color: #5A6A6D; }
.gap-row.is-solution span { font-weight: 700; color: var(--teal-dark); }

/* What we do */
.work-item { padding: 4px 8px; }
.work-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 15px; background: rgba(14,154,150,.11);
}
.work-icon i { font-size: 27px; color: var(--teal); }
.work-item h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; margin: 16px 0 0; }
.work-item p { font-size: 14.5px; line-height: 1.65; color: #5A6A6D; margin: 8px 0 0; }

/* Book / CTA */
.cta-panel {
  position: relative; background: #0A1517; border-radius: 30px;
  padding: clamp(34px, 4.5vw, 64px); overflow: hidden;
}
.cta-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-glow.one { top: -140px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(20,190,182,.3) 0%, rgba(20,190,182,0) 68%); }
.cta-glow.two { bottom: -180px; left: -100px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(14,154,150,.18) 0%, rgba(14,154,150,0) 70%); }
.cta-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
@media (max-width: 859px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.cta-grid h2 {
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.03em;
  font-weight: 800; color: #fff; margin: 0;
}
.cta-grid h2 span { color: #2FBFB8; }
.cta-lede { font-size: 16.5px; line-height: 1.65; color: rgba(234,243,243,.72); margin: 18px 0 0; max-width: 44ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-email { font-size: 13.5px; color: rgba(234,243,243,.55); margin: 14px 0 0; }
.cta-email a { color: #2FBFB8; }

.cta-facts { display: flex; flex-direction: column; gap: 14px; }
.cta-fact {
  display: flex; gap: 15px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 17px; padding: 18px 20px;
}
.cta-fact i { font-size: 26px; color: #2FBFB8; flex: none; }
.cta-fact strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.cta-fact small { display: block; font-size: 13.5px; color: rgba(234,243,243,.62); margin-top: 3px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(12,22,24,.09); }
.footer-inner {
  padding: 30px clamp(20px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand span:first-of-type { font-weight: 800; font-size: 16px; letter-spacing: .1em; }
.footer-brand span:first-of-type span { color: var(--teal); }
.footer-tagline { font-size: 14px; color: #5A6A6D; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; font-weight: 600; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links i { font-size: 18px; }

/* ---------- Scroll reveal ----------
   Content is visible by default so it never depends on JS running.
   Only once script.js confirms it's active (.js-reveal on <html>) do
   [data-reveal] elements hide and then fade back in via IntersectionObserver. */
.js-reveal [data-reveal] {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), translate .7s cubic-bezier(.2,.6,.2,1);
}
.js-reveal [data-reveal].is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; translate: 0 0; }
}

/* Hero diagram connector animations (moved from inline styles for CSP) */
.dash-a { animation: dash 2.6s linear infinite; }
.dash-b { animation: dash 3.1s linear infinite; }
.dash-c { animation: dash 2.9s linear infinite; }
.dash-d { animation: dash 3.4s linear infinite; }
.dash-e { animation: dash 1.6s linear infinite; }
.icon-flip { transform: rotate(180deg); }

/* Legal pages and 404 (moved from inline <style> for CSP) */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(64px, 8vw, 96px); }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.legal .updated { font-size: 14px; color: #5A6A6D; margin: 0 0 40px; }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #33413F; }
.legal ul { padding-left: 22px; }
.legal a { font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 28px; }
