:root {
  /* Surfaces */
  --bg-deep:        #0B1A1F;   /* darkest section / hero */
  --bg-deep-2:      #102429;   /* slight lift inside dark sections */
  --bg-cream:       #F2EBDB;   /* warm cream — primary light section */
  --bg-paper:       #F8F3E6;   /* lighter cream */
  --bg-card-cream:  #ECE3CE;   /* card on cream */
  --bg-page:        #FFFFFF;

  /* Ink */
  --ink:            #0B1A1F;
  --ink-soft:       #1E2D33;
  --text:           #2A3338;
  --text-muted:     #5F686C;          /* darkened for AA contrast on cream */
  --text-on-dark:   #E9E2D1;          /* cream-tinted off-white on dark */
  --text-on-dark-muted: #8A9499;

  /* Accents */
  --accent:         #01A173;          /* CO/AI brand green — ties to sister brand */
  --accent-deep:    #00754E;
  --accent-soft:    #4FC79E;
  --warn:           #C26B3C;          /* warm rust for the "BlackBerry moment" */

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

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

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

  /* Motion */
  --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 primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-prose  { 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--flush-bottom { padding-bottom: 0; }

.section--dark  { background: var(--bg-deep);  color: var(--text-on-dark); }
.section--dark .text-muted { color: var(--text-on-dark-muted); }
.section--cream { background: var(--bg-cream); color: var(--text); }
.section--paper { background: var(--bg-paper); color: var(--text); }
.section--white { background: #fff;            color: var(--text); }

/* ============================================================
   Type system
   ============================================================ */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: inherit;
}

.display--xl   { font-size: clamp(48px, 7.4vw, 104px); font-weight: 400; line-height: 0.98; letter-spacing: -0.025em; }
.display--lg   { font-size: clamp(40px, 5.6vw, 76px);  font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.display--md   { font-size: clamp(30px, 3.6vw, 50px);  font-weight: 400; line-height: 1.08; letter-spacing: -0.014em; }
.display--sm   { font-size: clamp(24px, 2.4vw, 32px);  font-weight: 500; line-height: 1.18; letter-spacing: -0.008em; }

.italic { font-style: italic; }
.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; }
.body     { font-size: 16.5px; line-height: 1.55; }
.body-sm  { font-size: 14.5px; line-height: 1.5; }

.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--bare::before { display: none; }
.eyebrow--accent { color: var(--accent); }
.section--dark .eyebrow { color: var(--text-on-dark-muted); }
.section--dark .eyebrow--accent { color: var(--accent-soft); }

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.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);
  border-radius: 0;
}
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--accent-deep);
  color: #fff;
  border-color: var(--accent-deep);
}
.btn--primary:hover { background: #005C3E; border-color: #005C3E; 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--ghost { padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--accent); }

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

/* ============================================================
   Top 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;
  position: relative;
}
.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); border-color: var(--text-on-dark); }

@media (max-width: 760px) {
  .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; }

/* Background mark — large circle motif (signal/harness ring) */
.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); }

@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 header
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .lede { max-width: 64ch; margin-top: 6px; }

/* ============================================================
   Dialogue ("The Business Harness")
   ============================================================ */

.dialogue {
  display: grid;
  gap: 36px;
  max-width: 780px;
  margin: 0 auto;
}

.dialogue__line {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}

.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 em { font-style: italic; }
.dialogue__copy strong { font-weight: 600; }

/* "It's a BlackBerry moment." callout treatment */
.dialogue__copy .pullquote {
  display: block;
  font-style: italic;
  color: var(--warn);
}

.dialogue__line + .dialogue__line {
  padding-top: 36px;
  border-top: 1px solid var(--rule-dark);
}

@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;
  font-size: 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;
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.test:hover { background: var(--bg-deep-2); }

/* Filler cell for rows with fewer than 3 tests — paints over the
   surrounding 1px grid rules so the empty area reads as background. */
.test--empty {
  background: var(--bg-deep);
  box-shadow: 0 0 0 1px var(--bg-deep);
  position: relative;
  z-index: 1;
}
.test--empty:hover { background: var(--bg-deep); }
.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; }
}

/* ============================================================
   Deliverable
   ============================================================ */

.deliverable {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.deliverable__head .eyebrow { color: var(--accent-deep); }
.deliverable__body { max-width: 60ch; }
.deliverable__body .display--sm {
  font-style: italic;
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
}

@media (max-width: 860px) {
  .deliverable { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   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: 3 / 2;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
/* Illustrated portraits — fill the frame, hold the face. */
.founder__portrait img,
.founder__portrait svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.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: start;
}
.cta__title { margin: 12px 0 0; max-width: 14ch; }
.cta__body { max-width: 50ch; }

.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); text-decoration: underline; }
.footer__sister a:hover { color: var(--text-on-dark); }

/* ============================================================
   Misc accents
   ============================================================ */

.serif { font-family: var(--f-display); }
.mono  { font-family: var(--f-mono); }

/* Marquee chip on hero */
.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); }

/* ============================================================
   Contact form
   ============================================================ */

.contact-form {
  max-width: 50ch;
  display: grid;
  gap: 24px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.form-input {
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.55;
  padding: 12px 14px;
  background: rgba(11, 26, 31, 0.05);
  border: 1px solid rgba(11, 26, 31, 0.12);
  color: var(--text);
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.form-input::placeholder {
  color: rgba(11, 26, 31, 0.35);
}

.form-input:focus {
  outline: none;
  background: rgba(11, 26, 31, 0.08);
  border-color: rgba(11, 26, 31, 0.2);
}

.section--dark .form-label {
  color: var(--text-on-dark-muted);
}

.section--dark .form-input {
  background: rgba(233, 226, 209, 0.08);
  border-color: rgba(233, 226, 209, 0.2);
  color: var(--text-on-dark);
}

.section--dark .form-input::placeholder {
  color: rgba(233, 226, 209, 0.4);
}

.section--dark .form-input:focus {
  background: rgba(233, 226, 209, 0.12);
  border-color: rgba(233, 226, 209, 0.35);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 400px;
}

.form-error {
  font-size: 13.5px;
  color: #C26B3C;
  display: block;
  min-height: 16px;
}

.section--dark .form-error {
  color: #FF8A65;
}

.contact-success {
  max-width: 50ch;
}

/* ============================================================
   Podcast section
   ============================================================ */

.podcast-container {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.podcast-video {
  width: 100%;
  max-width: 560px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .podcast-container {
    gap: 20px;
  }
}
