/* ============================================================
   CORE — Cognitive Resilience Institute
   Static landing. Minimal, editorial, type-led.
   Light institutional canvas; a single quiet signal accent.
   ============================================================ */

:root {
  --ink:        #0a1a2f; /* deep navy — primary text */
  --ink-soft:   #445b75; /* muted — secondary text */
  --ink-faint:  #8194a9; /* faint labels */
  --paper:      #fcfdfe; /* near-white canvas */
  --line:       #e4e9f0; /* hairline */
  --line-soft:  #eef2f7;
  --signal:     #0e9384; /* resilience / signal accent */
  --signal-dk:  #0a6f64;

  --step--1: clamp(0.78rem, 0.75rem + 0.12vw, 0.85rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.2vw, 1.18rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3:  clamp(2rem, 1.55rem + 2vw, 3.4rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);

  --maxw: 1080px;
  --measure: 60ch;
  --gutter: clamp(1.25rem, 0.7rem + 2.6vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9.5rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 600; line-height: 1.04; }
h2 { font-size: var(--step-3); font-weight: 600; line-height: 1.08; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal-dk);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--ink);
}
.brand__mark { width: 22px; height: 22px; flex: none; }

.nav__links {
  display: flex;
  gap: clamp(0.6rem, 0.3rem + 1.5vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.3rem 0;
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--ink); }

@media (max-width: 460px) {
  .nav__links { gap: 0.9rem; }
  .nav__links a { letter-spacing: 0.03em; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--hair { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 4rem + 9vw, 12rem);
}
.hero__inner { position: relative; z-index: 2; max-width: 44ch; }
.hero .eyebrow { display: block; margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.65rem + 2.7vw, 3.7rem);
  line-height: 1.06;
  max-width: 17ch;
}
.hero__sub {
  margin-top: 1.8rem;
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__cue .line {
  width: 30px; height: 1px; background: var(--ink);
  transition: width 0.2s ease;
}
.hero__cue:hover .line { width: 46px; }

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__visual svg {
  position: absolute;
  right: -14%; top: 50%;
  transform: translateY(-50%);
  width: min(64vw, 680px);
  height: auto;
}
@media (max-width: 720px) {
  .hero__visual svg { right: -38%; opacity: 0.6; }
}

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); }
.prose .eyebrow { display: block; margin-bottom: 1.4rem; }
.prose h2 { margin-bottom: 1.1rem; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 1.1rem; }

/* ---------- Statement (large, profound) ---------- */
.statement { text-align: center; }
.statement .container { max-width: 980px; }
.statement__mark {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  margin: 0 auto 2rem;
}
.statement p {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.statement p .muted { color: var(--ink-faint); }

/* ---------- Entries (minimal lists) ---------- */
.head { max-width: 30ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.head .eyebrow { display: block; margin-bottom: 1.1rem; }

.entries {
  display: grid;
  gap: 0 clamp(2rem, 1rem + 4vw, 5rem);
}
.entries--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .entries--2 { grid-template-columns: 1fr; } }

.entry {
  padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  border-top: 1px solid var(--line);
}
.entry h3 { margin-bottom: 0.5rem; }
.entry p { color: var(--ink-soft); max-width: 46ch; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: clamp(0.8rem, 0.4rem + 2vw, 2.4rem);
  padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  counter-increment: step;
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--signal-dk);
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- Closing ---------- */
.closing { text-align: center; padding-block: clamp(6rem, 4rem + 9vw, 13rem); }
.closing .container { max-width: 900px; }
.closing .eyebrow { display: block; margin-bottom: 2rem; }
.closing h2 {
  font-size: var(--step-3);
  font-weight: 600;
  max-width: 18ch;
  margin: 0 auto 1.8rem;
}
.closing p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 auto;
}
.closing p + p { margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}
.footer__desc {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  max-width: 50ch;
  font-size: var(--step-0);
}
.footer__meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
