/* DeepCare Labs — stealth placeholder site
   DeepCare ATLAS Design System — "Full dark" direction (navy + teal, Lato)
   8px base rhythm. Lato stands in for the licensed Avenir Next on the public site. */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  /* Brand primaries */
  --navy: #152040;
  --surface: #EEF1F5;
  --white: #F5F7FB;
  --paper: #FFFFFF;
  --slate: #707D94;
  --ink: #1E2A44;

  /* Accent */
  --teal: #2A9D8F;
  --teal-dark: #0D6B64;
  --teal-tint: #D8F0EC;

  /* Logo gradient (display only, not for text) */
  --logo-teal: #00C4C8;
  --logo-blue: #1E3BB5;

  /* Crisis stat numbers only */
  --red: #CC2936;

  /* Subtle hairlines */
  --line: #E2E7EE;
  --line-strong: rgba(21, 32, 64, 0.18);

  /* Type */
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --h1: clamp(2.75rem, 5vw, 4rem);
  --h2: clamp(1.75rem, 3vw, 2.125rem);
  --h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --body: clamp(1rem, 1.05vw, 1.125rem);
  --stat: clamp(2.75rem, 5vw, 3.375rem);

  /* Rhythm (tweakable) */
  --rhythm: 1;
  --section-y: calc(clamp(4rem, 10vw, 6rem) * var(--rhythm));
  --container: 1180px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* CTA character — flat teal pills */
  --cta-radius: 999px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ============================================================
   2. Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--teal-tint); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   3. Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-y);
  position: relative;
}

.eyebrow {
  font-size: 0.75rem; /* 12px */
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: var(--h2); line-height: 1.15; }
h3 { font-size: var(--h3); line-height: 1.2; }

p { margin: 0 0 1.25rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 58ch;
}

/* ============================================================
   4. Buttons — flat teal pills
   ============================================================ */
.btn {
  --bg: var(--teal);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  padding: 0.8125rem 1.5rem;
  background-color: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border: 1px solid var(--bg);
  border-radius: var(--cta-radius);
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease);
}
.btn:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn .arrow {
  width: 15px; height: 15px;
  flex: none;
  transition: transform 200ms var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ============================================================
   5. Navigation — sticky, dark
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: box-shadow 260ms var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(9, 14, 30, 0.35);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__mark {
  width: 36px;
  height: auto;
}
.nav__wordmark {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.nav__cta {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

/* ============================================================
   6. Hero — full dark
   ============================================================ */
.hero {
  position: relative;
  min-height: min(86vh, 880px);
  display: flex;
  align-items: center;
  padding-top: clamp(3.5rem, 8vw, 8rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
/* Atmospheric teal glow, radial, top-right */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 74% 22%, rgba(42, 157, 143, 0.24) 0%, rgba(42, 157, 143, 0) 70%);
}

/* ============================================================
   Quiet motif: pong-style drifting glows (hero default)
   ============================================================ */
.hero__quiet-pong {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__quiet-pong .blob {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.hero__quiet-pong .blob--teal {
  width: 52%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle,
    rgba(42, 157, 143, 0.30) 0%,
    rgba(42, 157, 143, 0.14) 40%,
    rgba(42, 157, 143, 0.04) 60%,
    transparent 72%);
  animation: pongTeal 26s linear infinite;
}
.hero__quiet-pong .blob--blue {
  width: 46%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle,
    rgba(30, 59, 181, 0.22) 0%,
    rgba(30, 59, 181, 0.10) 40%,
    rgba(30, 59, 181, 0.03) 60%,
    transparent 72%);
  animation: pongBlue 34s linear infinite;
}

/* Pong paths: each segment is a straight line at constant speed (linear).
   Positions reference the blob's top-left, so values can be negative to let
   the blob ride off-edge before "bouncing" back. Keyframe spacing is
   roughly proportional to segment length so visual speed stays even. */
@keyframes pongTeal {
  0%   { transform: translate(45%, -15%); }
  22%  { transform: translate(60%, 55%); }
  46%  { transform: translate(-10%, 70%); }
  68%  { transform: translate(-20%, 5%); }
  88%  { transform: translate(50%, -20%); }
  100% { transform: translate(45%, -15%); }
}
@keyframes pongBlue {
  0%   { transform: translate(-15%, 60%); }
  24%  { transform: translate(40%, 75%); }
  48%  { transform: translate(65%, 10%); }
  72%  { transform: translate(15%, -18%); }
  90%  { transform: translate(-22%, 30%); }
  100% { transform: translate(-15%, 60%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__quiet-pong .blob { animation: none; }
}
.hero__lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: -1;
}
.hero__motif--quiet { opacity: 1; }

.hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.hero__content {
  max-width: 860px;
}
.hero .eyebrow { color: var(--teal); }
.hero .eyebrow::before { background: var(--teal); }
.hero h1 {
  color: var(--white);
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.hero__sub {
  color: #CFD6E4;
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}
.hero__meta {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.hero__meta dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8EA0C2;
  margin-bottom: 0.375rem;
}
.hero__meta dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--white);
  font-weight: 600;
}

/* ============================================================
   7. Problem section
   ============================================================ */
.section--problem {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.problem__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 3.5rem);
}
@media (min-width: 900px) {
  .problem__head { grid-template-columns: 0.9fr 1.1fr; }
  /* Drop the body paragraph down so its top lines up with the H2, not the
     eyebrow above it (eyebrow height + its bottom margin ≈ 3rem). */
  .problem__body { padding-top: 3rem; }
}
.problem__body p {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
}
.problem__body strong {
  color: var(--navy);
  font-weight: 700;
}

/* Crisis stat cards */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(21, 32, 64, 0.06);
}
.stat__num {
  font-size: var(--stat);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--red);
  line-height: 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat__num .unit {
  font-size: 0.4em;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0;
}
.stat__num .num-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
}
/* Reserve equal header height so the three numbers share a top baseline,
   whether or not the card carries an "Up to" prefix. */
.stat__num .unit--prefix {
  display: block;
  font-size: 0.24em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
  line-height: 1;
}
.stat__label {
  /* margin: 0 resets the browser default margin-left:40px on <dd>,
     which was indenting the label away from the number's left edge */
  margin: 0.875rem 0 0;
  font-size: 0.895rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 28ch;
}

.source-cite {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}

/* ============================================================
   8. Statement band — full-width navy
   ============================================================ */
.section--statement {
  background: var(--navy);
  text-align: center;
  padding-block: clamp(4rem, 8vw, 5.5rem);
}
.section--statement h2 {
  color: #fff;
  max-width: 26ch;
  margin: 0 auto;
}

/* ============================================================
   9. Approach section
   ============================================================ */
.section--approach {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .approach__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.approach__copy h2 { margin-bottom: 1.25rem; }
.approach__copy p {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  max-width: 52ch;
}
.approach__copy p + p { margin-top: 1.25rem; }
.approach__copy .emph {
  color: var(--navy);
  font-weight: 700;
}
.approach__figure {
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin-inline: auto;
  position: relative;
}
.approach__figure svg { width: 100%; height: 100%; }

/* ============================================================
   10. Team section
   ============================================================ */
.section--team { background: var(--paper); border-top: 1px solid var(--line); }
.team__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 3rem);
}
.team__head h2 { max-width: 590px; }

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 2.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
  .founder { grid-template-columns: 240px 1fr; gap: 3.5rem; }
}
.founder__portrait {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f4f6fa 0%, #e6ebf2 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder__body h3 {
  font-size: clamp(1.3125rem, 2vw, 1.5rem);
  margin-bottom: 0.375rem;
}
.founder__title {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}
.founder__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 64ch;
}
.founder__bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #141B2B;
}
.founder__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6875rem;
  width: 8px;
  height: 1px;
  background: var(--teal);
}

/* ============================================================
   11. Contact / footer — dark
   ============================================================ */
.section--contact {
  background: var(--navy);
  color: #e5ebf5;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.section--contact h2 { color: #fff; }
.section--contact .eyebrow { color: var(--teal); }
.section--contact .eyebrow::before { background: var(--teal); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 5.5rem);
}
@media (min-width: 880px) {
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
}
.contact__intro p {
  color: #c4cee0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 1.375rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.375rem;
}
@media (min-width: 600px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea0c2;
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 0.625rem 0;
  font-size: 1rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 200ms var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--teal);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form__submit {
  justify-self: start;
  margin-top: 0.25rem;
  background-color: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.form__submit:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}
.form__note {
  font-size: 0.75rem;
  color: #8ea0c2;
  margin-top: 0.25rem;
}

/* ============================================================
   Hero motif variants (toggle data-motif on <body>)
   ============================================================ */
.hero__motif { display: none; }
[data-motif="lattice"] .hero__motif--lattice,
[data-motif="constellation"] .hero__motif--constellation,
[data-motif="quiet"] .hero__motif--quiet { display: block; }

/* Footer meta */
.footer-meta {
  margin-top: clamp(4rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 720px) {
  .footer-meta { grid-template-columns: 1fr auto; }
}
.footer-meta__col {
  font-size: 0.8125rem;
  color: #8ea0c2;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.footer-meta__col strong { color: #e5ebf5; font-weight: 700; }
.footer-meta__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4cee0;
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.footer-meta__social:hover { border-color: var(--teal); color: #fff; }
.footer-meta__social svg { width: 14px; height: 14px; }

/* ============================================================
   12. Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ============================================================
   13. Responsive
   ============================================================ */
@media (max-width: 540px) {
  .nav__wordmark { font-size: 0.875rem; }
  .nav__mark { width: 30px; }
  .hero__meta { gap: 1.5rem 2rem; margin-top: 2.5rem; }
}
