/* Business Arena, Lab sub-variant 1F (1E with almost no text). Shared by /v/1f/ and /v/1f/enterprise.
   1E's tokens, sticky canvas and morph engine. The words are cut to headings, statuses, links and
   buttons, so each chapter is a short caption for its canvas state: at least a viewport tall, its few
   lines centred, and each question opens on a hairline. */

:root {
  --black: #0E0E0E;
  --white: #FFFFFF;
  --paper: #F7F7F7;
  --charcoal: #272727;
  --graphite: #333333;

  --bg: var(--paper);
  --fg: var(--black);
  --muted: rgba(14, 14, 14, 0.64);
  --faint: rgba(14, 14, 14, 0.46);
  --rule: rgba(14, 14, 14, 0.13);
  --rule-strong: rgba(14, 14, 14, 0.32);
  --fill: rgba(14, 14, 14, 0.05);
  --btn-bg: var(--black);
  --btn-fg: var(--white);

  --display: "Quattrocento", Georgia, "Times New Roman", serif;
  --text: "Quattrocento Sans", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4.4vw, 64px);
  --bar-h: 0px;
  --nav-h: 76px;
  --pane-h: max(280px, 50svh);
  --read-h: calc(100svh - var(--bar-h) - var(--pane-h));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.48);
  --rule: rgba(255, 255, 255, 0.14);
  --rule-strong: rgba(255, 255, 255, 0.34);
  --fill: var(--charcoal);
  --btn-bg: var(--white);
  --btn-fg: var(--black);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding-top: var(--bar-h);
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--text);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, table { margin: 0; }
h2, h3, h4 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.skip { position: absolute; left: -9999px; z-index: 60; }
.skip:focus { left: var(--pad); top: calc(var(--bar-h) + 8px); background: var(--bg); padding: 8px 12px; }
.wrap { width: 100%; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
/* Text for screen readers only: the meaning the cut labels carried. */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Review bar: not part of the design. */

/* Nav: over the top of both columns on desktop, in the flow on phones. */
.top { position: absolute; top: var(--bar-h); left: 0; right: 0; z-index: 6; pointer-events: none; }
.top > * { pointer-events: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 21px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; flex: none; }
.links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); transition: color 160ms var(--ease); white-space: nowrap; }
.links a:hover, .links a[aria-current="page"] { color: var(--fg); }
.theme {
  display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px;
  border: 0; background: none; color: var(--fg); cursor: pointer; border-radius: 50%;
}
.theme svg { width: 18px; height: 18px; }
.theme:hover { background: var(--fill); }
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .top { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .links { gap: 16px; }
  .links .wide { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 20px; height: 20px; }
  .links { gap: 14px; font-size: 14.5px; }
  .theme { margin-right: -6px; }
}

/* Story: chapters on the left, one sticky stage of grains on the right. */
.story { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
.stage {
  grid-column: 2; grid-row: 1; align-self: start;
  position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); min-height: 560px;
  overflow: hidden; background: var(--bg);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapters { grid-column: 1; grid-row: 1; min-width: 0; }

/* Each chapter holds its canvas state for about one viewport of scroll. The state changes when a
   chapter's top crosses the middle of the screen, so centred lines sit in view for the whole state. */
.ch {
  min-height: calc(100svh - var(--bar-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 12vh clamp(24px, 3.4vw, 56px) 12vh max(var(--pad), env(safe-area-inset-left));
}
.ch > * { max-width: 30em; }
/* Hero: the lines sit in the middle of the first screen. On home the sphere then holds a little longer. */
.ch--hero { display: block; padding-top: 0; padding-bottom: 0; }
.hero-in { min-height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 24px) 0 9vh; }
.hero-in > * { max-width: 34em; }
.ch--hold { padding-bottom: 32svh; }

@media (max-width: 899px) {
  .story { display: block; }
  .stage { position: sticky; top: var(--bar-h); z-index: 3; height: var(--pane-h); min-height: 0; border-bottom: 1px solid var(--rule); }
  /* The chapters pass under the canvas on a solid ground, so text never sits behind grains. */
  .chapters { position: relative; z-index: 1; background: var(--bg); }
  /* A chapter fills the reading area under the canvas, so one caption is in view at a time. */
  .ch { min-height: max(320px, var(--read-h)); padding: 36px max(var(--pad), env(safe-area-inset-right)) 40px max(var(--pad), env(safe-area-inset-left)); background: var(--bg); }
  .ch:not(.ch--hero) { border-top: 1px solid var(--rule); }
  .prob > .ch:first-child { border-top-color: var(--rule-strong); }
  .ch--hero { min-height: 0; padding-top: 0; padding-bottom: 0; }
  .hero-in { min-height: 0; justify-content: flex-start; padding: 28px 0 48px; }
  .ch--hold { padding-bottom: calc(var(--read-h) * 0.42); }
}

/* Canvas labels: placed by minimal.js, shown once the grains land. */
.glayer { position: absolute; inset: 0; pointer-events: none; }
.gs { position: absolute; inset: 0; opacity: 0; transition: opacity 280ms var(--ease); }
.gs.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gs { transition: none; } }
.gl { position: absolute; left: 0; top: 0; font: 400 13px/1.25 var(--text); color: var(--muted); white-space: nowrap; transition: color 160ms var(--ease); }
.gl b { font-weight: 400; color: var(--fg); transition: color 160ms var(--ease); }
.gl.ttl { color: var(--fg); font-size: 14px; }
.gl.tk { font-size: 12px; color: var(--faint); }
.gl.em, .gl.em b { color: var(--fg); }
.gl.wrapc { white-space: normal; text-align: center; }
.gl.wrapl { white-space: normal; }
.gl.wrapc b, .gl.wrapl b { display: block; }
.gl.dim, .gl.dim b { color: var(--faint); }
.gl.dimb b { color: var(--muted); }
.a-l { transform: translateY(-50%); }
.a-r { transform: translate(-100%, -50%); }
.a-c { transform: translate(-50%, -50%); }
.a-t { transform: translateX(-50%); }
.a-tl { transform: none; }
.a-tr { transform: translateX(-100%); }
.a-bl { transform: translateY(-100%); }
.a-br { transform: translate(-100%, -100%); }
.a-b { transform: translate(-50%, -100%); }
.stage.small .gl { font-size: 11.5px; }
.stage.small .gl.ttl { font-size: 12.5px; }
.stage.small .gl.tk { font-size: 11px; }

/* Type: the questions and part names are the voice; labels, statuses and small lines stay small. */
h1 { font: 400 clamp(40px, 4.3vw, 64px)/1.04 var(--display); letter-spacing: -0.032em; max-width: 11.2em; text-wrap: balance; }
.cap { margin-top: 26px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.label { font: 400 15px/1.4 var(--text); color: var(--muted); margin-bottom: 20px; }
.q-h { font: 400 clamp(32px, 3.2vw, 48px)/1.08 var(--display); letter-spacing: -0.028em; max-width: 14em; text-wrap: balance; }
.sub-h { font: 400 clamp(26px, 2.3vw, 34px)/1.1 var(--display); letter-spacing: -0.026em; text-wrap: balance; }
.part-h { font: 400 clamp(34px, 3.2vw, 48px)/1.05 var(--display); letter-spacing: -0.03em; }
.status { margin-top: 18px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.status.now { color: var(--fg); }
.sub-h + .status { margin-top: 12px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.msg { padding: 14px 0; font-size: 14px; color: var(--muted); }
.tlink { color: var(--fg); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.tlink:hover { text-decoration-color: var(--fg); }
.tlink-p { margin-top: 18px; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  font: 700 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { background: transparent; color: var(--fg); }
.cta { margin-top: 36px; }

/* A new problem opens on a hairline just above its question (desktop; phones rule each chapter). */
@media (min-width: 900px) {
  .q-h::before { content: ""; display: block; width: min(100%, 26rem); height: 1px; margin-bottom: 28px; background: var(--rule-strong); }
}

/* The agenda: the six questions as links, each with its status. */
.agenda-list { border-bottom: 1px solid var(--rule); max-width: 30em; }
.agenda-list li { border-top: 1px solid var(--rule); }
.agenda-list a { display: block; padding: 15px 0 16px; text-decoration: none; }
.agenda-list .q { display: block; font: 400 clamp(20px, 1.6vw, 24px)/1.22 var(--display); letter-spacing: -0.016em; text-wrap: balance; }
.agenda-list .s { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.agenda-list .s.now { color: var(--fg); }
.agenda-list a:hover .q { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); text-underline-offset: 5px; }

/* Data equivalents, collapsed */
.data { margin-top: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.data summary { padding: 13px 0; font-size: 15px; cursor: pointer; color: var(--fg); }
.data summary:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.data summary:focus-visible { outline-offset: 2px; }
.sub-h + .data { margin-top: 24px; }
.tscroll { overflow-x: auto; padding-bottom: 16px; }
.tscroll:focus-visible { outline-offset: -2px; }
.dtab { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.dtab caption { text-align: left; padding: 2px 0 10px; font-size: 13px; color: var(--muted); caption-side: top; }
.dtab th, .dtab td { padding: 8px 12px 8px 0; border-top: 1px solid var(--rule); text-align: right; vertical-align: baseline; white-space: nowrap; }
.dtab th:first-child, .dtab td:first-child { text-align: left; }
.dtab th:last-child, .dtab td:last-child { padding-right: 0; }
.dtab thead th { font-weight: 400; color: var(--muted); border-top: 0; font-size: 13px; white-space: normal; vertical-align: bottom; }
.dtab tbody th { font-weight: 400; }
.dtab tbody th small { display: block; color: var(--muted); font-size: 12.5px; white-space: normal; max-width: 18em; }
.dtab tr.mark th, .dtab tr.mark td { font-weight: 700; }
.dtab td.top { font-weight: 700; }
.dtab--seeds { font-size: 13px; }
.dtab--seeds th, .dtab--seeds td { padding-right: 9px; }
@media (max-width: 420px) {
  .dtab--seeds { font-size: 12px; }
  .dtab--seeds th, .dtab--seeds td { padding-right: 4px; }
}

/* For labs: the four offers as mail links, then the address. */
.offers { border-bottom: 1px solid var(--rule); max-width: 26em; }
.offers li { border-top: 1px solid var(--rule); }
.offers a { display: block; padding: 14px 0 15px; font: 400 clamp(22px, 1.9vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.offers a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact { margin-top: clamp(44px, 6vw, 72px); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.email { font: 400 clamp(26px, 2.6vw, 38px)/1.15 var(--display); letter-spacing: -0.03em; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); text-underline-offset: 8px; overflow-wrap: anywhere; }
.email:hover { text-decoration-color: var(--fg); }
.copy {
  height: 34px; padding: 0 14px; border: 1px solid var(--rule-strong); background: none; color: var(--fg);
  font: 400 14px/1 var(--text); cursor: pointer; transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.copy:hover { border-color: var(--fg); background: var(--fill); }
.copy-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--fg); }
.copy-status + .note { margin-top: 4px; }

/* Enterprise: the complete diagram holds for a beat with no text beside it. */
@media (max-width: 899px) { .ch--beat { min-height: calc(var(--read-h) * 0.5); } }

/* Plain sections after the story (enterprise) */
.sec { padding-block: clamp(88px, 10vw, 152px) 0; }
.sec--last { padding-bottom: clamp(96px, 10vw, 160px); }
.sec .label { margin-bottom: 24px; }

/* 1A's engine tiles, each with a still glyph, a name and what it is measured on. */
canvas.glyph { width: 100%; height: auto; }
.engines { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--fg); }
.engine { border-bottom: 1px solid var(--rule); }
.engine .glyph { aspect-ratio: 3 / 2; }
.engine h3 { margin-top: 18px; font: 400 clamp(24px, 2vw, 29px)/1.1 var(--display); letter-spacing: -0.024em; }
.engine p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (min-width: 1180px) {
  .engines { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .engine { padding: 22px 22px 28px; }
  .engine:first-child { padding-left: 0; }
  .engine:last-child { padding-right: 0; }
  .engine + .engine { border-left: 1px solid var(--rule); }
  .engine:first-child .glyph, .engine:last-child .glyph { width: calc(100% - 22px); }
}
@media (min-width: 640px) and (max-width: 1179px) {
  .engines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .engine { padding: 22px 20px 28px; }
  .engine:nth-child(3n + 1) { padding-left: 0; }
  .engine:nth-child(3n) { padding-right: 0; }
  .engine:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
  .engine:nth-child(3n + 1) .glyph, .engine:nth-child(3n) .glyph { width: calc(100% - 20px); }
}
@media (max-width: 639px) {
  .engine { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 18px 0; }
  .engine h3 { margin-top: 0; }
}

/* Terms */
.price { font: 400 clamp(30px, 3.2vw, 46px)/1.12 var(--display); letter-spacing: -0.026em; }
.sec .cta { margin-top: 28px; }

/* Footer */
.foot { margin-top: 0; border-top: 1px solid var(--rule); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 28px; padding-bottom: 44px; font-size: 14px; color: var(--muted); }
.foot-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; color: var(--fg); }
.foot-mark svg { width: 26px; height: 26px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot-row a { color: var(--muted); text-decoration: none; }
.foot-row a:hover, .foot-row a[aria-current="page"] { color: var(--fg); }
@media (max-width: 760px) { .foot-row nav { margin-left: 0; width: 100%; } }

/* On phones the sticky pane covers the top of the screen, so anchors and focus land below it. */
@media (max-width: 899px) { html { scroll-padding-top: calc(var(--bar-h) + var(--pane-h) + 16px); } }
