/* Capacity Compass: the load line. Landing page (persuade) and docs (read). */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --hull: #10223a;
  --hull-2: #172d4a;
  --hull-3: #0b182a;
  --blue: #0066cc;
  --blue-hover: #0052a3;
  --blue-light: #4d9dff;
  --graphite: #3a3b40;
  --paint: #f4f5f2;
  --paper: #fbfbf9;
  --ink: #10223a;
  --ink-2: #4a5a70;
  --ink-on-hull: #c9d3e0;
  --sea: #3f8796;
  --sea-deep: #2a6474;
  --rule: rgba(16, 34, 58, 0.14);
  --rule-strong: rgba(16, 34, 58, 0.32);

  --ok: #216e4e;
  --ok-bg: #dcefe5;
  --warn: #a54800;
  --warn-bg: #fbe9d8;
  --over: #ae2e24;
  --over-bg: #f9e0dd;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body.cc {
  margin: 0;
  background: var(--paint);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(63, 135, 150, 0.3);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cc-skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--paint);
  color: var(--ink);
}
.cc-skip:focus {
  left: 0.5rem;
}

.cc-logo {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}
.cc-mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

/* ---------- header ---------- */

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: var(--hull);
  color: var(--paint);
}

.cc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.cc-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.cc-nav a:not(.cc-btn) {
  color: var(--ink-on-hull);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.975rem;
}
.cc-nav a:not(.cc-btn):hover,
.cc-nav a[aria-current="page"] {
  color: var(--paint);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--blue-light);
}

/* ---------- buttons & links ---------- */

.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.4rem;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.cc-btn:hover {
  background: var(--blue-hover);
}
.cc-btn:active {
  transform: translateY(1px);
}
.cc-btn svg {
  width: 1.2rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex: none;
  transition: transform 220ms var(--ease-out);
}
.cc-btn:hover svg {
  transform: translateX(3px);
}
.cc-btn--small {
  padding: 0.55rem 0.95rem;
  font-size: 0.925rem;
}
.cc-btn--light {
  background: var(--paint);
  color: var(--hull);
}
.cc-btn--light:hover {
  background: #fff;
}

.cc-link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sea);
  text-underline-offset: 0.28em;
}
.cc-link:hover {
  text-decoration-color: currentColor;
}
.cc-link--light {
  color: var(--paint);
  text-decoration-color: var(--blue-light);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 5.5rem);
  background: var(--hull);
  color: var(--paint);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title span {
  display: block;
  color: var(--blue-light);
}

.hero__lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.075rem, 1.35vw, 1.2rem);
  color: var(--ink-on-hull);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.hero__actions .cc-link {
  color: var(--paint);
  text-decoration-color: var(--blue-light);
}
.hero__actions--center {
  justify-content: center;
}

.hero__facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-on-hull);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__facts li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--paint);
  border-radius: 50%;
  background: linear-gradient(var(--paint), var(--paint)) center / 100% 1.5px no-repeat;
}

/* ---------- the hull demo ---------- */

.hull {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(244, 245, 242, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: var(--hull-3);
}

.hull__side {
  --pct: calc(100% / var(--max));
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  /* hull plating, above the paint line */
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(12.5% - 1px), rgba(244, 245, 242, 0.07) calc(12.5% - 1px) 12.5%),
    var(--hull-2);
}

.hull__scale span {
  position: absolute;
  right: 0.9rem;
  bottom: calc(var(--h) * var(--pct));
  transform: translateY(50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--paint);
  z-index: 6;
  text-shadow: 0 1px 0 rgba(11, 24, 42, 0.5);
}
.hull__scale span::after {
  content: "h";
  font-size: 0.7em;
  margin-left: 1px;
}
.hull__scale span::before {
  content: "";
  position: absolute;
  right: calc(100% + 0.4rem);
  top: 50%;
  width: 0.7rem;
  border-top: 2px solid var(--paint);
}

.hull__water,
.hull__act,
.hull__over {
  position: absolute;
  inset: 0;
  transition: transform 900ms var(--ease-out), clip-path 900ms var(--ease-out);
}
.hull__water {
  z-index: 1;
  transform: translateY(calc((1 - (var(--act) + var(--work)) / var(--max)) * 100%));
  background: rgba(63, 135, 150, 0.9);
}
/* the waterline */
.hull__water::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 10px;
  background: radial-gradient(ellipse 14px 6px at 50% 100%, rgba(63, 135, 150, 0.9) 98%, transparent) 0 0 / 28px 10px repeat-x;
}
.hull__act {
  z-index: 2;
  transform: translateY(calc((1 - var(--act) / var(--max)) * 100%));
  background:
    repeating-linear-gradient(135deg, rgba(234, 244, 245, 0.16) 0 2px, transparent 2px 9px),
    rgb(42, 100, 116);
  border-top: 1px dashed rgba(234, 244, 245, 0.55);
}
.hull__water span,
.hull__act span {
  position: absolute;
  left: 1rem;
  top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #eaf4f5;
  white-space: nowrap;
}
/* overload: the band between the load line and the waterline */
.hull__over {
  z-index: 3;
  clip-path: inset(
    calc((1 - (var(--act) + var(--work)) / var(--max)) * 100%) 0 calc(var(--gross) / var(--max) * 100%) 0
  );
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 3px, transparent 3px 10px),
    var(--over);
}
.hull__water span {
  top: 2.1rem;
}
.hull__over span {
  position: absolute;
  left: 1rem;
  bottom: calc(var(--gross) * var(--pct) + 0.35rem);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hull__line {
  --disc: 38%;
  position: absolute;
  left: 0;
  right: 3.5rem;
  bottom: calc(var(--gross) * var(--pct));
  z-index: 4;
  border-top: 3px solid var(--paint);
  color: var(--paint);
}
.hull__line .cc-mark {
  position: absolute;
  left: var(--disc);
  top: -1.5px;
  width: 2.8rem;
  height: 2.8rem;
  transform: translate(-50%, -50%);
}
.hull__line-label {
  position: absolute;
  left: calc(var(--disc) + 2rem);
  bottom: 0.45rem;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hull__line-label b {
  font-weight: 800;
}

.hull__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--paint);
  color: var(--ink);
}

.verdict {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.7rem 1rem 0.8rem;
  border-radius: 4px;
  background: var(--over-bg);
  color: var(--over);
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out);
}
.verdict[data-state="warn"] {
  background: var(--warn-bg);
  color: var(--warn);
}
.verdict[data-state="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}
.verdict__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.2rem;
  white-space: nowrap;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.verdict__label {
  font-weight: 700;
  font-size: 1rem;
}

.hull__sum {
  grid-column: 1;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.toggles {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.toggles legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.toggles label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  font-weight: 560;
  font-size: 0.95rem;
}
.toggles label:last-child {
  border-bottom: 0;
}
.toggles input {
  appearance: none;
  flex: none;
  position: relative;
  width: 2.3rem;
  height: 1.3rem;
  margin: 0;
  border-radius: 1rem;
  background: #c9ced6;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}
.toggles input::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 34, 58, 0.3);
  transition: transform 220ms var(--ease-out);
}
.toggles input:checked {
  background: var(--blue);
}
.toggles input:checked::after {
  transform: translateX(1rem);
}
.toggles__h {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.hull__caption {
  padding: 0.7rem 1.25rem 0.9rem;
  background: var(--paint);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* ---------- bands ---------- */

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}
.band--paper {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band--hull {
  background: var(--hull);
  color: var(--paint);
}
.band__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.band__inner--narrow {
  max-width: 48rem;
}

.band__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.band__lede {
  margin: 1.1rem 0 0;
  max-width: 44rem;
  font-size: 1.15rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- manifest ---------- */

.manifest {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-collapse: collapse;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.manifest thead th {
  padding: 0.8rem 1.5rem 0.8rem 0;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink);
}
.manifest tbody th,
.manifest tbody td,
.manifest tfoot th,
.manifest tfoot td {
  padding: 1.2rem 1.5rem 1.2rem 0;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 1px solid var(--rule);
}
.manifest tbody th {
  width: 32%;
  font-size: 1.15rem;
  font-weight: 700;
}
.manifest tbody td {
  color: var(--ink-2);
}
.manifest .num {
  width: 8rem;
  padding-right: 0;
  text-align: right;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.manifest thead th:last-child {
  text-align: right;
  padding-right: 0;
}
.manifest tfoot th {
  font-weight: 700;
  border-bottom: 0;
}
.manifest tfoot .num {
  color: var(--blue);
  border-bottom: 0;
}

/* ---------- equation ---------- */

.equation {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
}
.equation li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}
.equation__term {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.equation li:last-child .equation__term {
  color: var(--sea-deep);
}
.equation__desc {
  color: var(--ink-2);
  max-width: 22ch;
}
.equation .equation__op {
  --term: clamp(2.6rem, 5.5vw, 4.4rem);
  justify-content: center;
  height: calc(var(--term) * 0.9);
  margin-top: calc(1rem + 3px);
  padding-top: 0;
  border-top: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--blue);
}

.verdicts {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: start;
}
.verdicts > p:first-child {
  margin: 0;
  font-size: 1.1rem;
}
.verdicts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-row: span 2;
}
.verdicts li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.verdicts li:first-child {
  border-top: 1px solid var(--rule);
}
.verdicts__note {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.chip--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.chip--warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.chip--over {
  background: var(--over-bg);
  color: var(--over);
}

/* ---------- product tour ---------- */

.tour {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.tour__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 3px solid var(--ink);
}
.tour__tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.8rem 1.2rem 0.7rem;
  font: 700 1.2rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.tour__tabs button:hover {
  color: var(--ink);
}
.tour__tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paint);
}
.tour__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-top: 2rem;
}
.tour__panel[hidden] {
  display: none;
}
.tour__copy h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  text-wrap: balance;
}
.tour__copy p {
  margin: 0.8rem 0 1.1rem;
  color: var(--ink-2);
}
.tour__panel img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: #fff;
}

/* ---------- trust ---------- */

.trust {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 3px solid var(--paint);
}
.trust li {
  padding: 1.5rem 1.5rem 0.5rem 0;
}
.trust li + li {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(244, 245, 242, 0.2);
}
.trust h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.trust p {
  margin: 0.6rem 0 0;
  color: var(--ink-on-hull);
}
.trust__more {
  margin: 2rem 0 0;
}

/* ---------- roles ---------- */

.roles {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.roles li {
  padding-top: 1.1rem;
  border-top: 3px solid var(--ink);
}
.roles h3 {
  margin: 0;
  font-size: 1.3rem;
}
.roles p {
  margin: 0.6rem 0 1rem;
  color: var(--ink-2);
}

/* draft-marked rule: the load-line scale reused as a section rule */
.ruled {
  position: relative;
}
.ruled::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 40px) 0 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- faq ---------- */

.faq {
  margin-top: 2rem;
  border-top: 3px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--rule-strong);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 0.8;
  color: var(--blue);
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq__more {
  margin: 1.5rem 0 0;
  color: var(--ink-2);
}
.faq details p {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--ink-2);
}

/* ---------- closer ---------- */

.closer {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  background: var(--hull);
  color: var(--paint);
  text-align: center;
  overflow: hidden;
}
.closer__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(36rem, 90vw);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.07;
  pointer-events: none;
}
.closer h2 {
  position: relative;
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
.closer p {
  position: relative;
  margin: 1.1rem auto 0;
  max-width: 36rem;
  color: var(--ink-on-hull);
}
.closer .hero__actions {
  position: relative;
}

/* ---------- footer ---------- */

.cc-foot {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem var(--gutter);
  padding: 3rem var(--gutter) 2rem;
  background: var(--hull-3);
  color: var(--ink-on-hull);
  font-size: 0.95rem;
}
.cc-foot .cc-brand {
  color: var(--paint);
}
.cc-foot__brand p {
  margin: 0.75rem 0 0;
}
.cc-foot__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cc-foot__col a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cc-foot__col a:hover {
  color: var(--paint);
  text-decoration: underline;
}
.cc-foot__label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paint);
}
.cc-foot__by {
  margin: 0.5rem 0 0;
}
.cc-foot__by a {
  text-decoration: underline;
}
.cc-foot__fine {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 245, 242, 0.14);
  font-size: 0.8rem;
  color: #97a5b8;
}

/* ================= docs ================= */

.cc--docs {
  background: var(--paper);
}

.docs {
  display: grid;
  grid-template-columns: 17rem minmax(0, 46rem) 14rem;
  justify-content: center;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  min-height: 70vh;
}

.docs-side {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 2rem 0.25rem 2rem 0;
  border-right: 1px solid var(--rule);
}
.docs-side__drawer > summary {
  display: none;
}

.docs-search {
  margin: 0 1rem 1.25rem 0;
  --pagefind-ui-scale: 0.8;
  --pagefind-ui-primary: var(--hull);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--rule-strong);
  --pagefind-ui-tag: var(--paint);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 4px;
  --pagefind-ui-font: var(--text);
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-nav > ul > li {
  margin-bottom: 0.15rem;
}
.docs-nav a {
  display: block;
  padding: 0.38rem 0.75rem;
  margin-right: 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.docs-nav > ul > li > a {
  font-weight: 650;
  color: var(--ink);
}
.docs-nav ul ul {
  margin: 0.15rem 0 0.5rem 0.75rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--rule);
}
.docs-nav a:hover {
  background: rgba(16, 34, 58, 0.05);
  color: var(--ink);
}
.docs-nav a[aria-current="page"] {
  background: var(--hull);
  color: var(--paint);
}
.docs-nav__back {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.docs-main {
  padding: 2.5rem 0 4rem;
  min-width: 0;
}

.docs-toc {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 2.75rem 0 2rem;
  font-size: 0.875rem;
}
.docs-toc__title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--rule);
}
.docs-toc a {
  display: block;
  padding: 0.28rem 0 0.28rem 0.85rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  text-decoration: none;
  color: var(--ink-2);
  line-height: 1.35;
}
.docs-toc .docs-toc__l3 a {
  padding-left: 1.6rem;
}
.docs-toc a:hover {
  color: var(--ink);
}
.docs-toc a[aria-current="true"] {
  border-left-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

/* prose */

.prose {
  max-width: 44rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.prose h1 + p {
  font-size: 1.2rem;
  color: var(--ink-2);
}
.prose h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1.55rem;
  line-height: 1.25;
  text-wrap: balance;
}
.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.prose p,
.prose li {
  text-wrap: pretty;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li {
  margin: 0.3rem 0;
}
.prose li::marker {
  color: var(--sea-deep);
}
.prose a {
  color: var(--sea-deep);
  font-weight: 550;
  text-decoration-thickness: 1.5px;
}
.prose a:hover {
  color: var(--ink);
}
.prose strong {
  font-weight: 700;
}
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: rgba(16, 34, 58, 0.06);
  font-size: 0.9em;
}
.prose img {
  display: block;
  margin: 1.5rem 0;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: #fff;
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(63, 135, 150, 0.35);
  border-radius: 4px;
  background: rgba(63, 135, 150, 0.08);
}
.prose blockquote p {
  margin: 0.25rem 0;
}
.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  padding: 0.6rem 0.8rem 0.6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.prose thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 2px solid var(--ink);
}
.prose table code {
  white-space: nowrap;
}
.prose .legal-draft {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(165, 72, 0, 0.4);
  border-radius: 4px;
  background: var(--warn-bg);
  color: #6b3000;
}

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 44rem;
  margin-top: 3.5rem;
}
.docs-pager a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 650;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.docs-pager a:hover {
  border-color: var(--ink);
  background: #fff;
}
.docs-pager span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.docs-pager__next {
  grid-column: 2;
  text-align: right;
}
.docs-help {
  max-width: 44rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.docs-help a {
  color: var(--sea-deep);
}

/* ---------- motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .docs {
    grid-template-columns: 16rem minmax(0, 46rem);
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .verdicts {
    grid-template-columns: minmax(0, 1fr);
  }
  .verdicts ul {
    grid-row: auto;
  }
  .tour__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-foot {
    grid-template-columns: repeat(3, 1fr);
  }
  .cc-foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 959px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
  .docs-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paint);
  }
  .docs-side__drawer > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem var(--gutter);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .docs-side__drawer > summary::-webkit-details-marker {
    display: none;
  }
  .docs-side__drawer > summary::after {
    content: "+";
    font: 800 1.5rem/1 var(--display);
    color: var(--blue);
  }
  .docs-side__drawer[open] > summary::after {
    content: "−";
  }
  .docs-side__drawer[open] {
    padding-bottom: 1rem;
  }
  .docs-search,
  .docs-nav {
    padding: 0 var(--gutter);
  }
  .docs-search {
    margin-right: 0;
  }
  .docs-main {
    padding: 2rem var(--gutter) 3rem;
  }
}

@media (max-width: 760px) {
  .cc-head {
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .cc-brand {
    font-size: 1.2rem;
  }
  .cc-nav {
    gap: 1rem;
  }
  .cc-nav__extra,
  .hero__facts {
    display: none;
  }
  .hero {
    padding-top: 1.75rem;
    gap: 2rem;
  }
  .hero__title {
    font-size: clamp(2.6rem, 12vw, 3.3rem);
  }
  .hero__lede {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .hero__actions {
    margin-top: 1.25rem;
  }
  .hull__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .toggles,
  .hull__sum {
    grid-column: 1;
    grid-row: auto;
  }
  .hull__side {
    aspect-ratio: 4 / 4.4;
  }
  .hull__over span {
    display: none;
  }
  .hull__water span {
    top: 2.6rem;
  }
  .hull__line {
    --disc: 12%;
  }
  .hull__line-label {
    font-size: 0.85rem;
  }
  .hull__line .cc-mark {
    width: 2.2rem;
    height: 2.2rem;
  }
  .manifest thead {
    display: none;
  }
  .manifest,
  .manifest tbody,
  .manifest tfoot,
  .manifest tr {
    display: block;
  }
  .manifest tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .manifest tbody th,
  .manifest tbody td,
  .manifest tfoot th,
  .manifest tfoot td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .manifest tbody td:not(.num) {
    grid-column: 1;
  }
  .manifest .num {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    font-size: 1.7rem;
  }
  .manifest tfoot tr {
    border-bottom: 0;
  }
  .equation {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .equation .equation__op {
    height: auto;
    margin: 0;
    padding: 0;
    font-size: 2rem;
  }
  .trust,
  .roles {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust li,
  .trust li + li {
    padding: 1.25rem 0;
    border-left: 0;
  }
  .trust li + li {
    border-top: 1px solid rgba(244, 245, 242, 0.2);
  }
  .tour__tabs button {
    flex: 1 1 50%;
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
  }
  .cc-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-pager__next {
    grid-column: 1;
  }
}
