/* World Class Knowledge
   Layout: the sentence is the layout. Each section is a short statement on the left
   with its proof on the right; one 12-column grid, one pair of margins. */
:root {
  --ground: #eef1f6;      /* cool paper */
  --ground-2: #dfe5ef;    /* one tone step */
  --ink: #0b1b35;         /* WC\K navy */
  --ink-soft: #3e4b66;
  --accent: #f2b632;      /* WC\K gold, used on the action */
  --on-accent: #0b1b35;
  --field: #1f4fd1;       /* WC\K blue, one field per page */
  --on-field: #ffffff;
  --deep: #0b1b35;        /* navy field */
  --on-deep: #eef1f6;
  --on-deep-soft: #a9b4cb;
  --focus: #1f4fd1;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --t-body: clamp(17px, 1.15vw, 19px);
  --t-lead: clamp(20px, 1.6vw, 24px);
  --t-h3: clamp(26px, 2.6vw, 40px);
  --t-h2: clamp(36px, 5.2vw, 84px);
  --t-hero: clamp(44px, 9vw, 150px);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(20px, 2vw, 32px);
  --section: clamp(112px, 14vw, 220px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1b35; --ground-2: #13264a; --ink: #eef1f6; --ink-soft: #b4bfd4;
    --field: #2557e0; --deep: #050e1f; --on-deep: #eef1f6; --on-deep-soft: #a9b4cb;
    --focus: #f2b632; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1b35; --ground-2: #13264a; --ink: #eef1f6; --ink-soft: #b4bfd4;
  --field: #2557e0; --deep: #050e1f; --on-deep: #eef1f6; --on-deep-soft: #a9b4cb;
  --focus: #f2b632; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55;
  font-optical-sizing: auto; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.04em; line-height: .95; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  width: 100%; max-width: 1600px; margin-inline: auto;
  padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { min-width: 0; }

/* Navigation: wordmark, a few links, one action */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ground); }
.nav .wrap { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.mark { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; text-decoration: none; line-height: 1; white-space: nowrap; }
.mark .slash { color: var(--accent); }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 16px; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { text-decoration: underline; }
@media (max-width: 900px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent);
  font: 600 17px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn.light { background: var(--on-field); color: var(--ink); }
:root[data-theme="dark"] .btn.light { color: #0b1b35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.light { color: #0b1b35; } }
.textlink { font-weight: 600; }

/* Hero: the sentence with the prototype inside it */
.hero { padding-block: clamp(56px, 9vw, 140px) 0; }
.hero h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -0.05em; max-width: none; text-wrap: initial; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; animation: lift 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.slot {
  display: inline-block; vertical-align: -0.06em; width: 2.35em; height: .74em; margin-right: .22em;
  border-radius: .12em; background: var(--deep); position: relative; overflow: hidden;
  animation: lift 1s var(--ease) .06s both;
}
.slot-screen {
  position: absolute; inset: 0; display: grid; align-content: center; gap: .06em;
  padding: 0 .12em; color: var(--on-deep); font-size: .095em; letter-spacing: 0; line-height: 1.2;
  opacity: 0; animation: screens 12s linear infinite;
}
.slot-screen:nth-child(2) { animation-delay: 4s; }
.slot-screen:nth-child(3) { animation-delay: 8s; }
.slot-screen b { font-size: 1.7em; font-weight: 600; letter-spacing: -0.02em; }
.slot-screen .row { display: flex; justify-content: space-between; gap: 1em; color: var(--on-deep-soft); }
.slot-screen .go { justify-self: start; background: var(--accent); color: #0b1b35; border-radius: 99px; padding: .25em .9em; font-weight: 600; margin-top: .25em; }
@keyframes screens { 0% { opacity: 0; } 3%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes lift { from { transform: translateY(105%); } to { transform: none; } }
.hero-foot { margin-top: clamp(32px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; }
.hero-foot .lead { grid-column: 1 / span 6; font-size: var(--t-lead); line-height: 1.4; }
.hero-foot .act { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-self: end; }
.reply { font-size: 15px; color: var(--ink-soft); flex-basis: 100%; text-align: right; }
@media (max-width: 760px) {
  .hero h1 .line.split { display: block; }
  .slot { display: block; width: 100%; max-width: 360px; height: 1.6em; margin: .12em 0 .16em; font-size: inherit; }
  .slot-screen { font-size: 13px; padding: 0 14px; gap: 4px; }
  .slot-screen b { font-size: 20px; }
  .hero-foot .lead, .hero-foot .act { grid-column: 1 / -1; justify-self: start; }
  .reply { text-align: left; }
}

/* Sections */
.section { padding-block: var(--section) 0; }
.statement { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: start; }
.statement p { font-size: var(--t-lead); line-height: 1.45; }
.statement p + p { margin-top: -8px; }
.proof { grid-column: 8 / span 5; }
@media (max-width: 900px) { .statement, .proof { grid-column: 1 / -1; } .proof { margin-top: 48px; } }

/* The tablet: Habakkuk 2:2 cut into a navy slab */
.tablet {
  background: var(--deep); color: var(--on-deep); padding: clamp(28px, 3vw, 48px);
  border-radius: 6px 6px 22px 22px; display: grid; gap: 28px; position: relative;
}
.tablet blockquote { margin: 0; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
.tablet cite { font-style: normal; font-size: 15px; color: var(--on-deep-soft); }
.tablet .marks { display: flex; gap: 6px; }
.tablet .marks i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--ground-2); opacity: .22; }

/* Seek, build, test: lines that step across */
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; gap: 64px; }
.steps li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 14px; }
.steps h3 { font-size: clamp(34px, 4.6vw, 76px); letter-spacing: -0.045em; line-height: 1; }
.steps li:nth-child(1) h3, .steps li:nth-child(1) p { grid-column: 1 / span 8; }
.steps li:nth-child(2) h3, .steps li:nth-child(2) p { grid-column: 3 / span 8; }
.steps li:nth-child(3) h3, .steps li:nth-child(3) p { grid-column: 5 / span 8; }
.steps p { font-size: var(--t-body); color: var(--ink); max-width: 52ch; }
.steps .tag { font-weight: 600; }
@media (max-width: 760px) { .steps li > * { grid-column: 1 / -1 !important; } }

/* Live thing: write your vision */
.write { background: var(--ground-2); margin-top: var(--section); padding-block: clamp(72px, 9vw, 140px); }
.write .grid { row-gap: 48px; }
.write label { display: block; font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.write textarea {
  width: 100%; min-height: 128px; resize: vertical; border: 2px solid var(--ink); border-radius: 14px;
  background: var(--ground); color: var(--ink); font: 500 var(--t-lead)/1.35 var(--font); padding: 18px 20px;
}
.write .hint { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.vision { background: var(--deep); color: var(--on-deep); border-radius: 6px 6px 22px 22px; padding: clamp(28px, 3vw, 44px); display: grid; gap: 26px; }
.vision .said { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; min-height: 2.2em; overflow-wrap: anywhere; }
.vision dl { margin: 0; display: grid; gap: 14px; }
.vision dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; font-size: 17px; }
.vision dt { color: var(--accent); font-weight: 600; }
.vision dd { margin: 0; color: var(--on-deep); }
.vision .btn { justify-self: start; }

/* Journey bar */
.bar { margin-top: 72px; display: flex; gap: 6px; height: clamp(120px, 18vh, 180px); }
.bar > div { border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.bar .b1 { flex: 5 1 0; background: var(--ground-2); color: var(--ink); }
.bar .b2 { flex: 5 1 0; background: var(--field); color: var(--on-field); }
.bar .b3 { flex: 7 1 0; background: var(--deep); color: var(--on-deep); }
.bar strong { font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.bar span { font-size: 15px; opacity: .9; }
.bar-notes { margin-top: 32px; }
.bar-notes > div { grid-column: span 4; display: grid; gap: 8px; align-content: start; }
.bar-notes p { font-size: 17px; }
.days { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 17px; }
.days b { display: inline-block; width: 3.2em; font-weight: 600; }
.after { margin-top: 64px; grid-column: 1 / span 8; font-size: var(--t-lead); line-height: 1.45; }
@media (max-width: 900px) {
  .bar { flex-direction: column; height: auto; }
  .bar > div { min-height: 96px; gap: 12px; }
  .bar-notes > div { grid-column: 1 / -1; margin-bottom: 24px; }
  .after { grid-column: 1 / -1; }
}

/* Founder: side facts, wide paragraph */
.facts { grid-column: 1 / span 3; display: grid; gap: 22px; align-content: start; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 15px; color: var(--ink-soft); }
.facts dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.bio { grid-column: 5 / span 8; display: grid; gap: 28px; }
.bio h2 { margin-bottom: 12px; }
.bio h2 .role { display: inline-block; vertical-align: middle; margin-left: .4em; font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--ink-soft); }
@media (max-width: 600px) { .bio h2 .role { display: block; margin: 12px 0 0; } }
.bio p { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.4; max-width: 46ch; }
@media (max-width: 900px) { .facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; order: 2; } .bio { grid-column: 1 / -1; } }

/* FAQ: each question a rounded card that opens to its answer */
.faq { margin-top: 56px; display: grid; gap: 14px; }
@media (min-width: 900px) {
  #questions .wrap { display: grid; grid-template-columns: 4fr 8fr; column-gap: var(--gap); align-items: start; }
  #questions h2 { font-size: clamp(40px, 4.4vw, 72px); position: sticky; top: 110px; }
  .faq { margin-top: 0; }
}
.qa { background: var(--ground-2); border-radius: 20px; transition: background-color .2s var(--ease); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: clamp(21px, 2vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.qa p { padding: 0 30px 28px; font-size: 18px; max-width: 62ch; }
.chev { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ground); position: relative; transition: transform .25s var(--ease); }
.chev::before, .chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.qa[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover .chev { transform: scale(1.08); }
.qa[open] p { animation: rise .35s var(--ease) both; }
@media (max-width: 600px) { .qa summary { padding: 20px 20px; } .qa p { padding: 0 20px 22px; } }

/* Call to action: the one blue field */
.call { background: var(--field); color: var(--on-field); margin-top: var(--section); padding-block: clamp(88px, 11vw, 180px); }
.call h2 { grid-column: 1 / span 7; }
.call .lead { grid-column: 1 / span 6; grid-row: 2; font-size: var(--t-lead); margin-top: 32px; line-height: 1.4; }
.call .act { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: end; display: grid; gap: 22px; justify-items: start; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 18px; }
.email span { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.copy { background: none; border: 2px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 14px; font: 600 14px/1 var(--font); cursor: pointer; }
.copy:hover { background: var(--on-field); color: var(--field); }
.call .reply { color: var(--on-field); opacity: .85; text-align: left; flex-basis: 100%; }
@media (max-width: 900px) { .call h2, .call .lead, .call .act { grid-column: 1 / -1; grid-row: auto; } .call .act { margin-top: 44px; } }

/* Footer: the name returns */
.foot { padding-block: clamp(56px, 6vw, 88px) 32px; }
.foot .small-mark { font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.foot .small-mark .slash { color: var(--accent); }
.foot .meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 15px; color: var(--ink-soft); }
.foot .meta ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .meta a { color: var(--ink); }

/* Sticky call on phones */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: none;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--ground); transform: translateY(110%); transition: transform .3s var(--ease);
}
.dock .btn { width: 100%; justify-content: center; }
.dock.on { transform: none; }
@media (max-width: 760px) { .dock { display: block; } body { padding-bottom: 76px; } }

/* Sub pages */
.crumbs { font-size: 15px; color: var(--ink-soft); padding-top: 32px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.page-head { padding-block: 48px 24px; }
.page-head h1 { font-size: clamp(44px, 7vw, 112px); letter-spacing: -0.05em; }
.page-head p { margin-top: 32px; font-size: var(--t-lead); line-height: 1.4; }
.prose { padding-block: 48px 0; }
.prose .col { max-width: 720px; display: grid; gap: 20px; }
.prose h2 { font-size: clamp(28px, 3vw, 44px); margin-top: 48px; letter-spacing: -0.035em; line-height: 1.02; }
.prose h3 { font-size: 22px; margin-top: 12px; letter-spacing: -0.02em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--ground-2); }
.prose th { font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Entrance: content rests visible; rises once as it enters */
.rise.go { animation: rise .8s var(--ease) both; }
.rise.go:nth-child(2) { animation-delay: .08s; }
.rise.go:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slot-screen { opacity: 0; }
  .slot-screen:first-child { opacity: 1; }
}
@media (min-width: 1000px) {
  .crumbs ol, .page-head .statement, .prose .col { margin-left: 25%; }
  .page-head .statement { grid-column: 1 / span 12; max-width: 900px; }
}

/* Doug's revisions, 26 Oct */
.steps .safeguard { color: var(--ink-soft); font-size: 16px; border-left: 3px solid var(--accent); padding-left: 14px; }
.steps li:nth-child(1) .safeguard { grid-column: 1 / span 8; }
.pilots { margin: 4px 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 16px; }
.pilots b { font-weight: 600; }
.bar .b3 { flex: 9 1 0; }
.pathway { margin-top: 88px; background: var(--ground-2); border-radius: 22px; padding: clamp(28px, 4vw, 56px); row-gap: 28px; }
.pathway-head { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.pathway-head h3 { font-size: clamp(28px, 2.8vw, 44px); }
.pathway-head p { font-size: 18px; }
.pathway-steps { grid-column: 7 / span 6; margin: 0; padding-left: 1.4em; display: grid; gap: 18px; font-size: 19px; line-height: 1.45; }
.pathway-steps li::marker { font-weight: 700; color: var(--ink); }
.pathway-steps b { font-weight: 600; }
.founder-side { grid-column: 1 / span 3; display: grid; gap: 32px; align-content: start; }
.founder-side .facts { grid-column: auto; }
.portrait { margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; background: var(--ground-2); display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: 15px; }
.call .act .btn.outline { background: transparent; color: var(--on-field); border: 2px solid var(--on-field); }
.call .act .btn.outline:hover { background: var(--on-field); color: var(--field); }
@media (max-width: 900px) {
  .pathway-head, .pathway-steps { grid-column: 1 / -1; }
  .founder-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); order: 2; margin-top: 40px; }
  .founder-side .facts { margin-top: 0; grid-template-columns: 1fr; }
}
.bio { align-content: start; }
.portrait { overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
