/* ============================================================
   Outsider Labs
   Newsreader (serif display) + Nunito Sans (body) + JetBrains Mono (UI/labels)
   ============================================================ */

:root {
  --bg-deep:        #0B1A1F;
  --bg-deep-2:      #102429;
  --bg-cream:       #F2EBDB;
  --bg-paper:       #F8F3E6;
  --bg-card-cream:  #ECE3CE;

  --ink:            #0B1A1F;
  --text:           #2A3338;
  --text-muted:     #6B7479;
  --text-on-dark:   #E9E2D1;
  --text-on-dark-muted: #8A9499;

  --accent:         #01A173;
  --accent-deep:    #00754E;
  --accent-soft:    #4FC79E;
  --warn:           #C26B3C;

  --rule-dark:      rgba(11,26,31,0.14);
  --rule-on-dark:   rgba(233,226,209,0.16);

  --f-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --f-body:    "Nunito Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --content-max:    1240px;
  --content-narrow: 920px;
  --content-prose:  680px;
  --gutter:         clamp(20px, 4vw, 56px);

  --t-fast: 160ms;
  --ease:   cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
::selection { background: var(--accent); color: #fff; }

/* ── Layout ── */
.wrap        { width: 100%; max-width: var(--content-max);    margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-prose  { width: 100%; max-width: var(--content-prose);  margin: 0 auto; padding: 0 var(--gutter); }

.section              { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--tight       { padding: clamp(60px, 7vw, 96px) 0; }
.section--dark        { background: var(--bg-deep);  color: var(--text-on-dark); }
.section--cream       { background: var(--bg-cream); color: var(--text); }
.section--paper       { background: var(--bg-paper); color: var(--text); }

/* ── Type ── */
.display      { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.018em; color: inherit; }
.display--xl  { font-size: clamp(48px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.025em; }
.display--lg  { font-size: clamp(40px, 5.6vw, 76px);  line-height: 1.02; letter-spacing: -0.02em; }
.display--md  { font-size: clamp(30px, 3.6vw, 50px);  line-height: 1.08; letter-spacing: -0.014em; }
.display em, .display i { font-style: italic; }

.lede {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 1.85vw, 26px);
  line-height: 1.4;
  color: var(--text);
}
.section--dark .lede { color: var(--text-on-dark); }

.body-lg { font-size: 18px; line-height: 1.6; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow--accent { color: var(--accent); }
.section--dark .eyebrow--accent { color: var(--accent-soft); }
.section--dark .eyebrow { color: var(--text-on-dark-muted); }

.divider-rule { height: 1px; background: var(--rule-dark); border: 0; }
.section--dark .divider-rule { background: var(--rule-on-dark); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn--outline { border-color: currentColor; }
.btn--outline:hover { background: var(--ink); color: var(--bg-cream); border-color: var(--ink); }
.section--dark .btn--outline:hover { background: var(--text-on-dark); color: var(--ink); border-color: var(--text-on-dark); }

.btn--lg { padding: 18px 28px; font-size: 15.5px; }

/* ── Nav ── */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__brand {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__brand::before {
  content: "";
  width: 18px; height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
}

.nav__status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  display: flex; align-items: center; gap: 10px;
}
.nav__status::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(79,199,158,0.15);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.nav__cta {
  color: var(--text-on-dark);
  border: 1px solid rgba(233,226,209,0.45);
  padding: 10px 18px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__cta:hover { background: var(--text-on-dark); color: var(--ink); }

@media (max-width: 680px) {
  .nav__status { display: none; }
}

/* ── Hero ── */
.hero {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  min-height: 100vh;
  padding: clamp(140px, 16vh, 200px) 0 clamp(80px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); }

.hero__title { margin: 28px 0 0; max-width: 16ch; }
.hero__title em { font-style: italic; color: var(--accent-soft); font-weight: 400; }

.hero__lede { max-width: 56ch; margin: 28px 0 0; color: var(--text-on-dark); }

.hero__footer {
  margin-top: clamp(60px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-on-dark);
}
.hero__status-line {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}
.hero__status-line strong { color: var(--text-on-dark); font-weight: 500; }
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__mark {
  position: absolute;
  top: 50%; right: -10%;
  width: 720px; height: 720px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
}
.hero__mark circle { fill: none; stroke: rgba(79,199,158,0.18); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(79,199,158,0.32);
  padding: 6px 12px;
  border-radius: 999px;
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }

@media (max-width: 900px) {
  .hero__footer { grid-template-columns: 1fr; align-items: start; }
  .hero__mark { width: 480px; height: 480px; right: -30%; opacity: 0.4; }
}

/* ── Section head ── */
.section-head { display: grid; gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lede { max-width: 64ch; margin-top: 6px; }

/* ── Dialogue ── */
.dialogue { display: grid; gap: 0; max-width: 780px; margin: 0 auto; }

.dialogue__line {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--rule-dark);
}
.dialogue__line:last-child { border-bottom: 1px solid var(--rule-dark); }

.dialogue__speaker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 0.55em;
  position: sticky;
  top: 24px;
}
.dialogue__speaker--ol { color: var(--accent-deep); }
.dialogue__speaker--bo { color: var(--text-muted); }

.dialogue__copy {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.dialogue__copy p { margin: 0 0 0.7em; }
.dialogue__copy p:last-child { margin-bottom: 0; }
.dialogue__copy strong { font-weight: 600; }
.dialogue__copy .pullquote { display: block; font-style: italic; color: var(--warn); }

@media (max-width: 760px) {
  .dialogue__line { grid-template-columns: 1fr; gap: 10px; }
  .dialogue__speaker { position: static; padding-top: 0; }
}

/* ── Audit / 8 tests ── */
.audit-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.audit-intro__title { margin: 18px 0 0; max-width: 14ch; }
.audit-intro__meta {
  display: grid; gap: 14px;
  border-top: 1px solid var(--rule-on-dark);
  padding-top: 22px;
}
.audit-intro__meta dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 2px;
}
.audit-intro__meta dd { margin: 0 0 6px; color: var(--text-on-dark); font-size: 15.5px; font-family: var(--f-display); }

@media (max-width: 860px) {
  .audit-intro { grid-template-columns: 1fr; align-items: start; }
}

.test-group { border-top: 1px solid var(--rule-on-dark); padding: 56px 0; }
.test-group:last-child { padding-bottom: 0; }

.test-group__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}
.test-group__label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-soft); }
.test-group__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 0;
  max-width: 22ch;
  color: var(--text-on-dark);
}

.tests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-on-dark);
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.test {
  background: var(--bg-deep);
  padding: 36px 28px 40px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  transition: background var(--t-fast) var(--ease);
}
.test:hover { background: var(--bg-deep-2); }
.test__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent-soft); }
.test__name { font-family: var(--f-display); font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--text-on-dark); margin: 0; }
.test__desc { font-size: 15px; line-height: 1.55; color: var(--text-on-dark-muted); margin: 0; }

@media (max-width: 900px) {
  .tests { grid-template-columns: 1fr; }
  .test-group__head { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Founders ── */
.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}
.founder { display: grid; gap: 20px; }

.founder__portrait {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: var(--bg-card-cream);
  overflow: hidden;
}
.founder__portrait svg { width: 100%; height: 100%; }

.founder__name {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  margin: 8px 0 0;
  letter-spacing: -0.01em;
}
.founder__role { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.founder__bio { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0; }
.founder__lens {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .founders { grid-template-columns: 1fr; }
}

/* ── CTA / Contact ── */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.cta__title { margin: 12px 0 0; max-width: 14ch; }
.cta__body { max-width: 50ch; }
.cta__row { display: flex; gap: 16px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.cta__email {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--text-on-dark-muted);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.cta__email:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

.cta__signals { display: grid; gap: 0; border-top: 1px solid var(--rule-on-dark); }
.cta__signal {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-on-dark);
  align-items: baseline;
}
.cta__signal dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.cta__signal dd { margin: 0; font-family: var(--f-display); font-size: 17px; color: var(--text-on-dark); line-height: 1.4; }

@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; align-items: start; }
}

/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  color: var(--text-on-dark-muted);
  padding: 48px 0 36px;
  border-top: 1px solid var(--rule-on-dark);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__brand { color: var(--text-on-dark); }
.footer__sister a { color: var(--accent-soft); }
.footer__sister a:hover { color: var(--text-on-dark); }
