/* ==========================================================================
   Oceantic — page components
   Loaded after styles.css, never instead of it. Every token, every rule and
   every primitive (.wrap, .rule, .gap, .h2, .lead, .grad, .panel, .tag …)
   comes from the base sheet; this file only adds the shapes the landing page
   never needed — a matrix, a pipeline, a positioning field, a timeline, and
   the slide geometry the investor deck is built from.

   Same constraint as the base sheet: neutral ladder plus one hue. The only
   second colour is #c0553a, already in the system as the "drifted" mark.
   ========================================================================== */

/* --------------------------------------------------------------- headings */
/* A mono kicker above a heading. The landing page carries its section labels
   inside .tag chips; long-form pages need a quieter one that sits on the
   baseline grid rather than floating in a pill. */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--mute {
  color: var(--subtle);
}

.h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Body copy for the explanatory pages. The landing page is almost entirely
   labels and figures; these pages have to be readable at length. */
.prose p {
  font-size: 17px;
  color: var(--muted-fg);
  max-width: 40em;
}
.prose p + p {
  margin-top: 16px;
}
.prose b,
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.prose a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* -------------------------------------------------------------- page hero */
/* Shorter than the landing hero — these pages earn attention with the second
   screen, not the first, so the fold is a title and a thesis, nothing more. */
.phero {
  border-inline: 1px solid var(--border);
  padding: 48px 24px 44px;
}
@media (min-width: 1024px) {
  .phero {
    padding: 96px 48px 80px;
  }
}
.phero__in {
  max-width: 46rem;
}
.phero .lead {
  font-size: 19px;
  max-width: 34em;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .phero .lead {
    font-size: 17px;
  }
}
.phero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* ------------------------------------------------------------ cell grids */
/* The base sheet builds every grid the same way: cells carry their own right
   and bottom rules and the block is pulled back by 1px, so the outer edge
   never doubles up against the column rule. Generalised here so a section can
   pick a column count without a bespoke block. */
.cells {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
@media (min-width: 700px) {
  .cells--2,
  .cells--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cells--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .cells--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
  transition: background var(--dur) var(--ease);
}
@media (min-width: 1024px) {
  .cell {
    padding: 40px;
  }
}
.cell--hover:hover {
  background: color-mix(in srgb, var(--muted) 60%, transparent);
}
.cell__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.cell h3 {
  font-size: 21px;
  font-weight: 500;
}
.cell h4 {
  font-size: 17px;
  font-weight: 600;
}
.cell p {
  font-size: 15.5px;
  color: var(--muted-fg);
}
.cell p + p {
  margin-top: 10px;
}
.cell svg.cell__i {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.cell ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15.5px;
  color: var(--muted-fg);
}
.cell li {
  display: flex;
  gap: 10px;
}
.cell li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--mono);
  flex: none;
}

/* A cell that carries a number rather than prose. Same geometry as .stat but
   sized for four or five across instead of three. */
.figs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .figs--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .figs--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fig {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
}
@media (min-width: 1024px) {
  .fig {
    padding: 40px;
  }
}
.fig__n {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.fig__l {
  font-size: 15.5px;
  color: var(--fg);
}
.fig__k {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
}

/* ------------------------------------------------------------ the matrix */
/* Eight approaches against six properties. The same three readability moves
   as the benchmark table: the Oceantic column is a continuous tinted band, the
   marks are shapes rather than words so a column reads as a pattern, and
   below 820px every row becomes its own labelled list instead of scrolling
   sideways. A table nobody can read sideways is a table nobody reads. */
.mtx {
  border-top: 1px solid var(--border);
  --mcols: 5;
}
.mtx--wide {
  --mcols: 6;
}
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--mcols), minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}
.mrow > * {
  padding: 16px 12px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mrow > :first-child {
  padding-left: 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.mrow > :last-child {
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .mrow > * {
    padding: 18px 16px;
  }
  .mrow > :first-child {
    padding-left: 48px;
  }
  .mrow > :last-child {
    padding-right: 48px;
  }
}
.mrow--head {
  background: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  align-items: end;
}
.mrow--head > * {
  align-items: flex-end;
}
.mrow--head .own {
  color: var(--accent);
}
.mname {
  font-size: 15.5px;
  font-weight: 500;
}
.mdesc {
  font-size: 13px;
  color: var(--subtle);
}
.mval {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-fg);
}
.own .mval {
  color: var(--accent);
}

/* Marks. Drawn rather than typed so they hold their weight at 13px and stay
   legible in both themes; the label rides along for screen readers. */
.mk {
  position: relative;
  width: 15px;
  height: 15px;
  flex: none;
  display: inline-block;
}
.mk--y::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
/* Two bars at ±45°, not 0° and 90° — an upright cross reads as a plus, which
   at this size says "yes, and" exactly where the table means "no". */
.mk--n::before,
.mk--n::after {
  content: "";
  position: absolute;
  inset: 6px 1px auto 1px;
  height: 2px;
  border-radius: 1px;
  background: #c0553a;
}
.mk--n::before {
  transform: rotate(45deg);
}
.mk--n::after {
  transform: rotate(-45deg);
}
[data-theme="dark"] .mk--n::before,
[data-theme="dark"] .mk--n::after {
  background: #e0765a;
}
.mk--p::before {
  content: "";
  position: absolute;
  inset: 6px 1px auto 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.mk + span {
  font-size: 13.5px;
  color: var(--muted-fg);
}

@media (max-width: 820px) {
  .mrow--head {
    display: none;
  }
  .mrow {
    grid-template-columns: 1fr;
    padding-bottom: 10px;
  }
  .mrow > *,
  .mrow > :first-child,
  .mrow > :last-child {
    padding: 6px 24px;
  }
  .mrow > :first-child {
    padding-top: 18px;
    padding-bottom: 10px;
  }
  /* The column header becomes a per-cell label. */
  .mrow > :not(:first-child)::before {
    content: attr(data-c);
    flex: 0 0 46%;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--subtle);
  }
  .own::before {
    color: var(--accent) !important;
  }
}

/* ---------------------------------------------------------- the pipeline */
/* Intent → spec → compiler → registry → artifact. Stacked on narrow screens
   with the connector running down the left; a row of bordered stages on wide
   ones. The arrow is a pseudo-element rather than a glyph so it inherits the
   rule colour and never picks up a font's own baseline. */
.pipe {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
@media (min-width: 1000px) {
  .pipe {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}
.pstage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
}
@media (min-width: 1000px) {
  .pstage {
    padding: 34px 26px 40px;
    min-height: 260px;
  }
}
.pstage__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--subtle);
  text-transform: uppercase;
}
.pstage h3 {
  font-size: 18px;
  font-weight: 600;
}
.pstage p {
  font-size: 14.5px;
  color: var(--muted-fg);
}
.pstage code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
}
/* The stage where the AI stops. Everything after it is deterministic, and the
   band is the whole argument of the page, so it is drawn, not captioned. */
.pstage--edge {
  background: var(--accent-soft);
}
.pstage--edge .pstage__n {
  color: var(--accent);
}
.pipe__cut {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 1px;
  background: var(--accent);
  display: none;
}
@media (min-width: 1000px) {
  .pipe__cut {
    display: block;
  }
}

/* ------------------------------------------------------- positioning field */
/* Two axes, six marks. Absolute positioning off inline left/top percentages,
   because the coordinates are content — they belong in the markup next to the
   label they move, not in a stylesheet nobody edits when the story changes. */
.field {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 56px 56px 64px;
  aspect-ratio: 16 / 11;
  min-height: 420px;
}
@media (max-width: 700px) {
  .field {
    padding: 44px 34px 52px;
    aspect-ratio: 1 / 1.05;
  }
}
.field__grid {
  position: absolute;
  inset: 56px;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 25% 25%;
  opacity: 0.75;
}
@media (max-width: 700px) {
  .field__grid {
    inset: 34px;
  }
}
.field__ax {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
}
.field__ax--x {
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
}
.field__ax--y {
  top: 50%;
  left: 14px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  white-space: nowrap;
}
.field__q {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--border-strong);
}
.dot2 {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted-fg);
  white-space: nowrap;
}
.dot2::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}
.dot2--own {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.dot2--own::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
/* A label always runs away from the nearer edge: marks in the left half carry
   their text to the right, marks past the centre carry it to the left. Applied
   the other way round — or alternated for looks — a mark at 90% pushes its
   label straight through the column rule, and the narrower the field the worse
   it gets. So `--l` is not a styling choice; it belongs on every mark right of
   centre. */
.dot2--l {
  flex-direction: row-reverse;
  transform: translate(-100%, -50%);
}
@media (max-width: 700px) {
  .dot2 {
    font-size: 10.5px;
    gap: 7px;
  }
  .dot2--own {
    font-size: 12px;
  }
  .dot2::before {
    width: 8px;
    height: 8px;
  }
}

/* ------------------------------------------------------------- timeline */
.tl {
  border-top: 1px solid var(--border);
}
.tlrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) {
  .tlrow {
    grid-template-columns: 150px 1fr 220px;
    gap: 32px;
    align-items: baseline;
    padding: 26px 48px;
  }
}
.tlrow__w {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tlrow h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tlrow p {
  font-size: 15px;
  color: var(--muted-fg);
}
.tlrow__s {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--subtle);
}
.tlrow--now {
  background: var(--accent-soft);
}

/* -------------------------------------------------------------- callouts */
.callout {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .callout {
    padding: 40px 48px;
  }
}
.callout svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}
.callout p {
  font-size: 16.5px;
  color: var(--muted-fg);
  max-width: 62ch;
}
.callout p b {
  color: var(--fg);
  font-weight: 600;
}

/* A quote-weight line used to close a section. Not a testimonial — we have
   none — but the thesis, set large enough to be read as the point. */
.thesis {
  padding: 56px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
@media (min-width: 1024px) {
  .thesis {
    padding: 90px 48px;
  }
}
.thesis p {
  max-width: 30rem;
  margin-inline: auto;
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------- placeholders */
/* Every number this deck cannot honestly claim yet is marked, not invented.
   The chip is deliberately loud: it should be impossible to send the deck
   without noticing what is still a blank. */
.ph {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px dashed #c0553a;
  border-radius: var(--r-full);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c0553a;
  /* Some of these chips carry a whole sentence ("founders / pool / existing
     investors"). Wrapping beats a chip wider than the phone it is read on. */
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
}
[data-theme="dark"] .ph {
  border-color: #e0765a;
  color: #e0765a;
}
.ph-slot {
  color: var(--subtle);
  border-bottom: 1px dashed var(--border-strong);
}

/* ============================================================ the deck ==
 * A deck that is also a web page. Each slide is a full-height cell in the
 * same ruled column as everything else, so nothing about the geometry
 * changes — it is the landing page's sheet, cut into readable screens.
 * Scroll works, keys work, and print puts one slide on one sheet of paper.
 * ====================================================================== */
.deck {
  border-inline: 1px solid var(--border);
}
.slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 66px;
}
@media (min-width: 1024px) {
  .slide {
    padding: 84px 56px;
    min-height: min(90vh, 860px);
  }
}
.slide__n {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--subtle);
}
@media (min-width: 1024px) {
  .slide__n {
    top: 34px;
    right: 56px;
  }
}
.slide__hd {
  max-width: 44rem;
}
.slide__hd .h2 {
  margin-top: 14px;
}
.slide__hd .lead {
  margin-top: 20px;
}
/* Slide-level blocks bleed to the column rules; the padding lives on the
   slide, so a matrix or a cell grid inside one has to be pulled back out. */
.slide__full {
  margin-inline: -24px;
}
@media (min-width: 1024px) {
  .slide__full {
    margin-inline: -56px;
  }
}
.slide--cover {
  min-height: min(88vh, 900px);
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft) 0%, transparent 62%);
  text-align: center;
  align-items: center;
}
.slide--cover .h1 {
  max-width: 20ch;
}
.slide--dark {
  background: var(--scrim);
  color: #f6f2ea;
}
.slide--dark .lead,
.slide--dark p {
  color: rgba(246, 242, 234, 0.72);
}
.slide--dark .grad {
  background: linear-gradient(90deg, #f6f2ea -20%, var(--accent) 94.54%, #fff 104.51%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Fixed chrome: a hairline progress bar under the sticky header and a pager
   in the corner. Both are affordances, not decoration — an eighteen-screen
   document needs to tell you where you are in it. */
.dprog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 70;
  transition: width 0.12s linear;
}
.dpager {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.dpager b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding-inline: 10px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}
.dpager button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.dpager button:hover {
  background: var(--muted);
}
.dpager button svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 640px) {
  .dpager {
    right: 12px;
    bottom: 12px;
  }
}

/* Contents. Eighteen numbered links in the same bordered grid as everything
   else, so the deck opens on a map rather than on slide one. */
.toc {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .toc {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .toc {
    grid-template-columns: repeat(3, 1fr);
  }
}
.toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
  font-size: 15.5px;
  color: var(--muted-fg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.toc a:hover {
  background: color-mix(in srgb, var(--muted) 60%, transparent);
  color: var(--fg);
}
.toc a span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  flex: none;
}

/* Print: one slide per sheet, no chrome, no dark bands eating toner. */
@media print {
  .nav,
  .dpager,
  .dprog,
  .sheet,
  footer,
  .toc-sec {
    display: none !important;
  }
  .slide {
    break-after: page;
    min-height: auto;
    border: 0;
    padding: 24px 0;
  }
  .slide--dark,
  .slide--cover {
    background: none;
    color: var(--fg);
  }
  .deck,
  .rule {
    border: 0;
  }
}

/* ------------------------------------------------------ small utilities */
.stackline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-fg);
}
.chip--on {
  border-color: var(--accent-line);
  color: var(--accent);
}
.srcnote {
  padding: 20px 24px 36px;
  font-size: 12.5px;
  color: var(--subtle);
  max-width: 78ch;
  line-height: 1.65;
}
@media (min-width: 1024px) {
  .srcnote {
    padding: 24px 48px 48px;
  }
}
.srcnote a {
  color: var(--muted-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.srcnote a:hover {
  color: var(--accent);
}
/* Two columns of prose inside one bordered cell. */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}
.duo > div {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .duo > div {
    padding: 40px 48px;
    border-bottom: 0;
  }
  .duo > div:first-child {
    border-right: 1px solid var(--border);
  }
}
.duo h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
}
.duo--vs > div:first-child h3 {
  color: #c0553a;
}
[data-theme="dark"] .duo--vs > div:first-child h3 {
  color: #e0765a;
}
.duo--vs > div:last-child h3 {
  color: var(--accent);
}
.duo p,
.duo li {
  font-size: 15.5px;
  color: var(--muted-fg);
}
.duo ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.duo li {
  display: flex;
  gap: 12px;
}
.duo li .mk {
  margin-top: 2px;
}
