/* AI Software Factory: marketing site.
   Layout and type follow linear.app (docs/research/2026-11-17-landing-references/04-linear-visual-system.md);
   colours and the dotted separator are landing variant A's; diagrams use trunk.io's lane grammar. */

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-1: #0f1013;
  --bg-2: #141519;
  --bg-3: #1a1c21;
  --text-1: #f5f6f8;
  --text-2: #d0d4dc;
  --text-3: #8d929c;
  --text-4: #62666f;
  --hair: #ffffff14;
  --faint: #ffffff0d;
  --line: #3e3e44;
  --accent: #9b98ff;
  --accent-fill: #5b54f0;
  --accent-soft: #9b98ff26;
  --human: #f5a524;
  --ok: #3ecf8e;
  --bad: #f2555a;
  --dot: #ffffff2e;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --max: 1344px;
  --pad: 24px;
  --inset: 32px;
  --header: 64px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-lift: cubic-bezier(0.32, 0.72, 0, 1);
  /* diagram theme, read by the inline SVGs */
  --d-bg: var(--bg);
  --d-line: #3a3c43;
  --d-line-2: #26282e;
  --d-edge: var(--text-2);
  --d-label: var(--text-3);
  --d-label-2: var(--text-4);
  --d-accent: var(--accent);
  --d-human: var(--human);
  --d-ok: var(--ok);
  --d-bad: var(--bad);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-3);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--text-1);
  font-weight: 510;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: #5b54f080;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text-1);
  color: var(--bg);
  font-weight: 510;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.inset {
  padding-inline: var(--inset);
}

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: 510 15px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.16s var(--ease-out),
    box-shadow 0.16s var(--ease-out);
}

.btn-primary {
  background: #e6e6ea;
  color: #0a0b0d;
  box-shadow:
    0 1px 1px #00000012,
    0 3px 2px #0000000a;
}

.btn-primary:hover {
  background: #fff;
}

.btn-secondary {
  background: var(--faint);
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px #ffffff0f,
    inset 0 1px 0 #ffffff0a;
}

.btn-secondary:hover {
  background: #ffffff17;
}

.btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}

.more span {
  color: var(--text-4);
  transition: transform 0.2s var(--ease-out);
}

.more:hover {
  color: var(--text-1);
}

.more:hover span {
  transform: translateX(3px);
  color: var(--text-2);
}

/* ---------- labels ---------- */

.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow b {
  color: var(--accent);
  font-weight: 500;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  background: linear-gradient(180deg, #0a0b0dd9, #0a0b0dbf);
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  color: var(--text-1);
  font: 510 15px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font: 400 13.5px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.1s,
    background-color 0.1s;
}

.nav-link svg {
  width: 9px;
  height: 9px;
  opacity: 0.6;
  transition: transform 0.18s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item:focus-within > .nav-link,
.nav-item:hover > .nav-link {
  color: var(--text-1);
  background: var(--faint);
}

.nav-item:hover > .nav-link svg,
.nav-item.open > .nav-link svg {
  transform: rotate(180deg);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-lang {
  display: none;
}

.lang {
  display: inline-flex;
  align-items: center;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
}

.lang > * {
  padding: 4px 8px;
  color: var(--text-4);
  text-decoration: none;
}

.lang > * + * {
  border-left: 1px solid var(--line);
}

.lang a {
  color: var(--text-3);
  transition: color 0.1s;
}

.lang a:hover,
.lang [aria-current] {
  color: var(--text-1);
}

.lang .lang-off {
  cursor: default;
}

.nav-end .lang {
  margin-right: 6px;
}

.legal .lang {
  margin-right: -8px;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-1);
  cursor: pointer;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  margin: auto;
}

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 760px;
  padding: 8px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #0a0b0deb;
  box-shadow: 0 12px 40px #000000b3;
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transform-origin: 40px top;
  transition:
    opacity 0.18s var(--ease-out),
    transform 0.18s var(--ease-out),
    visibility 0s linear 0.18s;
}

.mega::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto;
  height: 16px;
}

.nav-item:hover > .mega,
.nav-item:focus-within > .mega,
.nav-item.open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 188px;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--faint);
  box-shadow: inset 0 0 0 1px var(--faint);
}

.mega-col {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px;
  background: var(--bg);
}

.mega-col a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.mega-col a:hover {
  background: var(--bg-2);
}

.mega-col b {
  display: block;
  color: var(--text-1);
  font: 510 13.5px/1.4 var(--sans);
}

.mega-col span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}

.mega-links {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 14px;
  background: var(--bg);
}

.mega-links .label {
  padding: 6px 8px 8px;
}

.mega-links a {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 13.5px;
  text-decoration: none;
}

.mega-links a:hover {
  color: var(--text-1);
  background: var(--bg-2);
}

/* The use-case menu's third column: its title links to the whole gallery, the rows to its sections. */
.mega.uc .mega-grid {
  grid-template-columns: 1fr 1fr 220px;
}

.mega-links a.label {
  color: var(--text-4);
  font: 500 12px/1.4 var(--mono);
}

.mega-links a.label:hover {
  color: var(--text-1);
  background: none;
}

/* ---------- sections ---------- */

main {
  display: block;
}

.section {
  padding: 136px 0;
}

.section.tight {
  padding: 104px 0;
}

.dots {
  position: relative;
  height: 22px;
  background-image: radial-gradient(circle 1px, var(--dot) 1.3px, transparent 1.4px);
  background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.dots::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 1px, var(--accent) 1.4px, transparent 1.5px);
  background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent var(--d0, 22%),
    #000 calc(var(--d0, 22%) + 8%),
    #000 calc(var(--d0, 22%) + 16%),
    transparent calc(var(--d0, 22%) + 26%)
  );
  mask-image: linear-gradient(
    90deg,
    transparent var(--d0, 22%),
    #000 calc(var(--d0, 22%) + 8%),
    #000 calc(var(--d0, 22%) + 16%),
    transparent calc(var(--d0, 22%) + 26%)
  );
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  padding: 0 var(--inset) 72px;
}

.sec-head .eyebrow {
  margin-bottom: 20px;
}

.h2 {
  max-width: 600px;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.024em;
}

.desc {
  max-width: 50ch;
  color: var(--text-3);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.desc strong {
  color: var(--text-1);
  font-weight: 510;
}

.sec-head .desc {
  padding-top: 38px;
}

.sec-head .more {
  margin-top: 28px;
}

.center {
  text-align: center;
}

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

.hero {
  padding-top: calc(var(--header) + 112px);
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero h1 .line {
  display: block;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 36px;
}

.hero-sub {
  max-width: 600px;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.hero-sub strong {
  color: var(--text-2);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stage {
  position: relative;
  max-width: calc(min(100vw, 1920px) - 24px);
  margin: 72px auto 0;
  padding: 0 clamp(12px, 3.6vw, 60px) 56px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 58% at 50% 100%, #0a0b0d00 0%, #0a0b0d8c 100%),
    linear-gradient(180deg, #0a0b0d 12%, #b9b7e3 100%);
  opacity: 0.7;
}

/* The screenshot is the app window itself: one hairline edge, no frame around it. */
.frame {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  outline: 1px solid #ffffff1c;
  outline-offset: -1px;
  box-shadow: 0 40px 90px -30px #000000e6;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px;
}

/* ---------- logo wall ---------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 0 var(--inset);
  list-style: none;
}

.logos li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font: 510 17px/1 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.logos-caption {
  margin-top: 28px;
  padding: 0 var(--inset);
}

/* ---------- statement and figures ---------- */

.statement {
  max-width: 1160px;
  padding: 0 var(--inset);
  color: var(--text-3);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 510;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.statement strong {
  color: var(--text-1);
  font-weight: 510;
}

.figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 104px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.fig {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px 32px 36px;
}

.fig + .fig {
  border-left: 1px solid var(--hair);
}

.fig .label {
  opacity: 0.8;
}

.fig svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 24px auto 28px;
}

.fig h3 {
  margin-top: auto;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

.fig p {
  max-width: 360px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- showcase board ---------- */

.show {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 48px;
  align-items: start;
  padding: 0 var(--inset);
}

.steps {
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.16s,
    border-color 0.16s;
}

.step:hover {
  background: var(--bg-1);
}

.step[aria-selected="true"] {
  border-color: var(--hair);
  background: var(--bg-2);
}

.step .n {
  padding-top: 3px;
  color: var(--text-4);
  font: 500 12px/1.4 var(--mono);
}

.step[aria-selected="true"] .n {
  color: var(--accent);
}

.step b {
  display: block;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 510;
  line-height: 1.5;
}

.step[aria-selected="true"] b {
  color: var(--text-1);
}

.step span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
}

.board {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--bg-1);
}

.board-in {
  min-width: 660px;
  padding: 22px 24px 24px;
}

.board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.board-top h3 {
  font-size: 15px;
}

.pill {
  display: inline-block;
  width: 72%;
  max-width: 76px;
  height: 18px;
  border-radius: 999px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  font-size: 12.5px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend .pill {
  width: 22px;
  height: 10px;
}

.grid {
  --who: 112px;
  position: relative;
  display: grid;
  grid-template-columns: var(--who) repeat(6, 1fr);
  align-items: center;
}

.grid > * {
  position: relative;
  z-index: 1;
}

.grid .stage {
  padding-bottom: 14px;
  color: var(--text-4);
  font-size: 12px;
  text-align: center;
  transition: color 0.2s;
}

.grid .stage i {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto 10px;
  border: 1.5px solid var(--text-4);
  border-radius: 50%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.grid .row {
  display: contents;
}

.grid .who,
.grid .cell {
  height: 46px;
  border-top: 1px solid var(--faint);
}

.grid .who {
  display: flex;
  align-items: center;
  color: var(--text-2);
  font: 400 12.5px/1.2 var(--mono);
}

.grid .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pill.half {
  width: 34%;
}

.pill.agent {
  background: var(--accent-fill);
  box-shadow: inset 0 0 0 1px #9b98ff66;
}

.pill.ok {
  background: #1f6f4f;
  box-shadow: inset 0 0 0 1px #3ecf8e80;
}

.pill.back {
  background: #7a2a2e;
  box-shadow: inset 0 0 0 1px #f2555a80;
}

.pill.person {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--human);
}

.band {
  position: absolute;
  top: -6px;
  bottom: -8px;
  left: calc(var(--who) + var(--c, 0) * (100% - var(--who)) / 6 + 4px);
  z-index: 0;
  width: calc((100% - var(--who)) / 6 - 8px);
  border-radius: 8px;
  background: #9b98ff12;
  box-shadow: inset 0 0 0 1px #9b98ff1f;
  transition: left 0.45s var(--ease-lift);
}

.board[data-active="2"] {
  --c: 1;
}
.board[data-active="3"] {
  --c: 2;
}
.board[data-active="4"] {
  --c: 3;
}
.board[data-active="5"] {
  --c: 4;
}
.board[data-active="6"] {
  --c: 5;
}

.board[data-active="1"] .stage[data-c="1"],
.board[data-active="2"] .stage[data-c="2"],
.board[data-active="3"] .stage[data-c="3"],
.board[data-active="4"] .stage[data-c="4"],
.board[data-active="5"] .stage[data-c="5"],
.board[data-active="6"] .stage[data-c="6"] {
  color: var(--text-1);
}

.board[data-active="1"] .stage[data-c="1"] i,
.board[data-active="2"] .stage[data-c="2"] i,
.board[data-active="3"] .stage[data-c="3"] i,
.board[data-active="4"] .stage[data-c="4"] i,
.board[data-active="5"] .stage[data-c="5"] i,
.board[data-active="6"] .stage[data-c="6"] i {
  border-color: var(--accent);
  background: var(--text-1);
  box-shadow: 0 0 0 4px #9b98ff33;
}

.caption {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--faint);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.caption .label {
  flex: none;
  padding-top: 2px;
  color: var(--accent);
}

.caption p[hidden] {
  display: none;
}

.show-note {
  margin-top: 40px;
  padding: 0 var(--inset);
  color: var(--text-3);
  font-size: 15px;
}

.show-note a {
  margin-left: 12px;
}

/* ---------- chapters ---------- */

.chapter .eyebrow b {
  margin-right: 2px;
}

/* A screen under a light from above: no box line, no frame; it fades out at the bottom. */
.media {
  position: relative;
  overflow: hidden;
  padding: 64px clamp(16px, 6vw, 96px) 0;
  border-radius: 16px;
  background: radial-gradient(60% 90% at 50% 0%, #2c2e3699 0%, #15161b66 50%, #0a0b0d00 85%);
}

.media-frame {
  max-width: 1120px;
  aspect-ratio: 1120 / 600;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, #0000 100%);
  mask-image: linear-gradient(180deg, #000 58%, #0000 100%);
}

/* A shorter window: the fade ends above the lower part of the screen. */
.media-frame.short {
  aspect-ratio: 1120 / 410;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  outline: 1px solid #ffffff1c;
  outline-offset: -1px;
}

/* A dimmed screen that fades out, with one real panel of it in front at full size. */
.compose {
  position: relative;
  padding-top: 40px;
}

.compose-bg {
  display: block;
  width: 80%;
  height: auto;
  margin-left: auto;
  border-radius: 12px;
  opacity: 0.45;
  -webkit-mask-image:
    linear-gradient(90deg, #0000 0%, #000 24%, #000 72%, #0000 100%),
    linear-gradient(180deg, #000 30%, #0000 72%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #0000 0%, #000 24%, #000 72%, #0000 100%),
    linear-gradient(180deg, #000 30%, #0000 72%);
  mask-composite: intersect;
}

.compose-fg {
  position: absolute;
  top: 26%;
  left: var(--inset);
  width: min(var(--w, 882px), 72%);
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px #ffffff14,
    0 48px 96px -24px #000000f5;
}

.diagram {
  position: relative;
  overflow: hidden;
  padding: 56px clamp(16px, 4vw, 56px);
  border: 1px solid var(--hair);
  border-radius: 16px;
  background:
    radial-gradient(60% 80% at 50% 0%, #9b98ff0f 0%, #0a0b0d00 70%),
    var(--bg);
}

.diagram svg {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 40px var(--inset) 0;
}

.features ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
}

.features li {
  padding: 6px 20px;
  border-left: 1px solid var(--hair);
  color: var(--text-2);
  font-size: 14px;
}

.features li::before {
  content: "+";
  margin-right: 8px;
  color: var(--text-4);
}

/* Features that open a side panel: two columns, a hairline between them, as on linear.app. */
.features.specs {
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
}

.features.specs ul {
  grid-template-columns: none;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 2px 0;
}

.features.specs li {
  padding: 0 24px 0 0;
  border-left: 0;
}

.features.specs li:nth-child(n + 3) {
  padding-left: 24px;
  border-left: 1px solid var(--hair);
}

.features.specs li::before {
  content: none;
}

.feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.feat::after {
  content: "+";
  color: var(--text-4);
  font-size: 17px;
  line-height: 1;
  transition:
    color 0.15s ease,
    transform 0.2s ease;
}

.feat:hover,
.feat[aria-expanded="true"] {
  color: var(--text-1);
}

.feat:hover::after {
  color: var(--text-2);
  transform: rotate(90deg);
}

.feat:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- proof ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.stat {
  padding: 36px var(--inset) 40px;
}

.stat + .stat {
  border-left: 1px solid var(--hair);
}

.stat dt {
  color: var(--text-1);
  font-size: clamp(44px, 4.6vw, 64px);
  font-weight: 510;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat dd {
  max-width: 24ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.footnote {
  max-width: 820px;
  margin-top: 28px;
  padding: 0 var(--inset);
  color: var(--text-4);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- changelog strip ---------- */

.ship {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 var(--inset);
  list-style: none;
}

.ship-axis {
  position: relative;
  height: 1px;
  margin: 0 var(--inset) 28px;
  background: var(--hair);
}

.ship li {
  position: relative;
}

.ship li::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-4);
}

.ship li:first-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px #9b98ff2e;
}

.ship time {
  display: block;
  margin-bottom: 10px;
}

.ship b {
  display: block;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 510;
  line-height: 1.5;
}

.ship p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- numbered columns ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
}

.col {
  padding: 32px var(--inset) 8px;
}

.col + .col {
  border-left: 1px solid var(--hair);
}

.col .n {
  display: block;
  margin-bottom: 40px;
  color: var(--accent);
  font: 500 12px/1 var(--mono);
}

.col h3 {
  font-size: 17px;
  letter-spacing: -0.012em;
}

.col p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.cols-more {
  margin-top: 40px;
  padding: 0 var(--inset);
}

/* ---------- prefooter and footer ---------- */

.prefooter {
  display: grid;
  justify-items: center;
  gap: 40px;
  padding: 200px 0 208px;
  text-align: center;
}

.prefooter h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.prefooter .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 56px 0 40px;
  font-size: 13.5px;
}

.foot {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 32px;
  padding: 0 var(--inset);
}

.foot-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.foot-brand p {
  max-width: 300px;
  color: var(--text-3);
  line-height: 1.55;
}

.foot-brand .foot-mail {
  color: var(--text-2);
}

.foot h3 {
  margin-bottom: 14px;
  color: var(--text-1);
  font-size: 13.5px;
}

.foot ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.foot a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.1s;
}

.foot a:hover,
.foot .brand {
  color: var(--text-1);
}

.legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding: 0 var(--inset);
  color: var(--text-4);
  font-size: 12.5px;
}

/* ---------- shared by inner pages ---------- */

.hero .eyebrow {
  display: flex;
  margin-bottom: 28px;
}

.with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-title {
  margin-bottom: 24px;
  padding: 0 var(--inset);
}

a.col {
  display: block;
  text-decoration: none;
}

a.col .more {
  margin-top: 20px;
}

a.col:hover .more {
  color: var(--text-1);
}

a.col:hover .more span {
  transform: translateX(3px);
  color: var(--text-2);
}

/* ---------- method page ---------- */

.m-hero {
  padding-top: calc(var(--header) + 136px);
  text-align: center;
}

.m-hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 510;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* The methodology reads as an essay: a serif title, as on linear.app/method. Every other page is sans. */
.m-hero.editorial h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.m-hero h1 span {
  display: block;
  text-wrap: balance;
}

.m-hero .hero-sub {
  max-width: 660px;
  margin: 40px auto 0;
}

.m-hero .diagram {
  margin-top: 104px;
  text-align: left;
}

.toc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--hair);
  list-style: none;
}

.toc a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hair);
  color: var(--text-2);
  font-size: 19px;
  letter-spacing: -0.012em;
  text-decoration: none;
  transition: color 0.1s;
}

.toc a span {
  color: var(--text-4);
  font: 500 14px/1 var(--mono);
}

.toc a:hover {
  color: var(--text-1);
}

.toc-title {
  margin-bottom: 24px;
  text-align: center;
}

.plus {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.body {
  padding-top: 38px;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.6;
}

.body p + p,
.body .plus,
.body .plus + p,
.body .more {
  margin-top: 20px;
}

.body strong {
  color: var(--text-1);
  font-weight: 510;
}

.plus li {
  color: var(--text-2);
}

.plus li {
  padding-left: 21px;
  text-indent: -21px;
}

.plus li::before {
  content: "+";
  display: inline-block;
  width: 21px;
  text-indent: 0;
  color: var(--text-4);
}

.tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.tool {
  padding: 28px var(--inset) 36px;
}

.tool + .tool {
  border-left: 1px solid var(--hair);
}

.tool ul {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.tool li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font: 510 16px/1.2 var(--sans);
  letter-spacing: -0.015em;
}

.measures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  padding: 0;
  border-top: 1px solid var(--hair);
  list-style: none;
}

.measures li {
  padding: 16px var(--inset);
  border-bottom: 1px solid var(--hair);
  color: var(--text-2);
  font-size: 15px;
}

.measures li:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--hair);
}

.measures li::before {
  content: "+";
  margin-right: 10px;
  color: var(--text-4);
}

.cols + .cols {
  border-top: 1px solid var(--hair);
}

.cols .col {
  padding-bottom: 36px;
}

/* ---------- diagrams (inline SVG) ---------- */

.dg {
  overflow: visible;
}

.dg .t {
  fill: var(--d-label);
  font: 500 10.5px var(--mono);
  letter-spacing: 0.09em;
}

.dg .t2 {
  fill: var(--d-label-2);
  font: 500 9.5px var(--mono);
  letter-spacing: 0.08em;
}

.dg .tb {
  fill: var(--text-1);
}

.dg .lane {
  fill: none;
  stroke: var(--d-line);
  stroke-width: 1;
}

.dg .lane-hi {
  fill: none;
  stroke: #6c6a9e;
  stroke-width: 1;
}

.dg .guide {
  fill: none;
  stroke: var(--d-line-2);
  stroke-dasharray: 3 5;
}

.dg .hair {
  fill: var(--d-bg);
  stroke: var(--d-line);
  stroke-width: 0.75;
}

.dg .edge {
  fill: none;
  stroke: var(--d-edge);
  stroke-width: 0.75;
}

.dg .dash {
  fill: none;
  stroke: var(--d-line);
  stroke-width: 1;
  stroke-dasharray: 1 3;
}

.dg .face {
  fill: var(--d-bg);
}

.dg .ring-ok {
  fill: none;
  stroke: var(--d-ok);
  stroke-width: 1.5;
}

.dg .ring-bad {
  fill: none;
  stroke: var(--d-bad);
  stroke-width: 1.5;
}

.dg .ring-human {
  fill: none;
  stroke: var(--d-human);
  stroke-width: 1.5;
}

.dg .core {
  fill: #e9e8ff;
}

.dg .dot {
  fill: var(--d-accent);
}

.dg .dot-dim {
  fill: #5d5b99;
}

.diagram-missing {
  padding: 48px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--bad);
  font: 500 13px var(--mono);
  text-align: center;
}

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

/* ---------- feature side panel ---------- */

.sheet {
  position: fixed;
  inset: 12px 12px 12px auto;
  width: min(600px, calc(100vw - 24px));
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #0f1012;
  color: var(--text-1);
  box-shadow: 0 30px 90px -20px #000;
}

.sheet[open] {
  display: flex;
  flex-direction: column;
}

.sheet::backdrop {
  background: #050607b8;
}

html.sheet-open {
  overflow: hidden;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 28px;
  border-bottom: 1px solid var(--hair);
}

.sheet-kicker {
  color: var(--text-3);
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}

.sheet-close:hover {
  background: var(--faint);
  color: var(--text-1);
}

.sheet-close:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px 28px 56px;
}

.sheet-body h2 {
  margin: 0 0 20px;
  font-size: 44px;
  font-weight: 510;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sheet-body .lead {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

.sheet-body .lead strong {
  color: var(--text-1);
  font-weight: 510;
}

.sheet-body .shot {
  margin: 40px 0 0;
}

.sheet-body .shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  outline: 1px solid #ffffff1c;
  outline-offset: -1px;
}

.sheet-body .shot.bleed {
  margin-right: -28px;
  overflow: hidden;
}

.sheet-body .shot.bleed > img {
  max-width: none;
  border-radius: 8px 0 0 8px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 400px, #0000 570px);
  mask-image: linear-gradient(90deg, #000 0, #000 400px, #0000 570px);
}

.sheet-body figcaption {
  margin-top: 16px;
  color: var(--text-4);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-body h3 {
  margin: 48px 0 16px;
  font-size: 20px;
  font-weight: 510;
  letter-spacing: -0.01em;
}

.sheet-body h3 + p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.sheet-body .spec {
  margin: 0;
  border-top: 1px solid var(--hair);
}

.sheet-body .spec div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.55;
}

.sheet-body .spec dt {
  color: var(--text-3);
}

.sheet-body .spec dd {
  margin: 0;
  color: var(--text-1);
}

.sheet-body .more {
  display: inline-block;
  margin-top: 36px;
}

.sheet-body .lead + .spec {
  margin-top: 40px;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ---------- home second pass ---------- */

/* The "why" statement as a contrast: the claim left, what agents fail at right, the answer across. */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: start;
  padding: 0 var(--inset);
}

.why .statement {
  max-width: 560px;
  padding: 0;
  color: var(--text-1);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.why-list p {
  padding-top: 6px;
  color: var(--text-2);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.why-list ul {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}

.why-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--text-3);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.why-list li::before {
  content: "+";
  margin-right: 12px;
  color: var(--text-4);
}

.why-close {
  grid-column: 1 / -1;
  max-width: 1000px;
  margin-top: 24px;
  color: var(--accent);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 510;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* Questions engineering leaders ask: one row per question, aligned with the section head's two columns. */
.asks {
  margin: 0 var(--inset);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}

.asks li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}

.asks .feat {
  color: var(--text-1);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.asks p {
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Process chapter: what is set per team, and the cycle every change goes through. */
.tune {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  padding: 0 var(--inset) 72px;
}

.tune .label {
  display: block;
  margin-bottom: 16px;
}

.tune ul {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  column-gap: 24px;
  padding: 0;
  list-style: none;
}

.tune ul li {
  padding: 5px 0 5px 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
  text-indent: -18px;
}

.tune ul li::before {
  content: "+";
  display: inline-block;
  width: 18px;
  text-indent: 0;
  color: var(--text-4);
}

.tune ol {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
  counter-reset: tune;
}

.tune ol li {
  display: grid;
  grid-template-columns: 28px 84px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.45;
}

.tune ol li::before {
  content: counter(tune, decimal-leading-zero);
  counter-increment: tune;
  color: var(--accent);
  font: 500 12px/1.8 var(--mono);
}

.tune ol b {
  color: var(--text-1);
  font-weight: 510;
}

/* Insights chapter: the loop diagram, then the charts it is read on. */
.loop-shot {
  margin-top: 24px;
}

/* A cited source, usable on any page: the quote in the body face, a mono caption with source, date and link. */
figure.cite {
  margin: 40px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
}

figure.cite blockquote {
  margin: 0;
}

figure.cite blockquote p {
  color: var(--text-1);
  font: 400 18px/1.5 var(--sans);
  letter-spacing: -0.01em;
}

figure.cite figcaption {
  margin-top: 14px;
  color: var(--text-4);
  font: 500 11px/1.6 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

figure.cite figcaption a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

figure.cite figcaption a:hover {
  color: var(--text-1);
}

@media (max-width: 860px) {
  .why,
  .asks li,
  .tune {
    grid-template-columns: 1fr;
  }

  .why {
    gap: 28px;
  }

  .why .statement {
    font-size: 40px;
  }

  .why-close {
    margin-top: 8px;
    font-size: 24px;
  }

  .asks li {
    gap: 6px;
    padding: 18px 0;
  }

  .asks .feat {
    display: inline;
  }

  .asks .feat::after {
    display: inline-block;
    margin-left: 8px;
  }

  .tune {
    gap: 32px;
    padding-bottom: 48px;
  }

  .tune ol li {
    grid-template-columns: 24px 76px 1fr;
    gap: 10px;
    font-size: 14.5px;
  }

  figure.cite blockquote p {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease-out) both;
  }

  .rise.d1 {
    animation-delay: 0.1s;
  }

  .rise.d2 {
    animation-delay: 0.2s;
  }

  .rise.d3 {
    animation-delay: 0.3s;
  }

  .sheet[open] {
    animation: sheet-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .sheet[open]::backdrop {
    animation: sheet-fade 0.25s ease;
  }

  @keyframes sheet-in {
    from {
      opacity: 0;
      transform: translateX(40px);
    }
  }

  @keyframes sheet-fade {
    from {
      opacity: 0;
    }
  }

  @keyframes rise {
    from {
      opacity: 0;
      filter: blur(10px);
      transform: translateY(18%);
    }
    to {
      opacity: 1;
      filter: none;
      transform: none;
    }
  }
}

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

@media (max-width: 1080px) {
  .nav-list,
  .nav-end .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.menu-open {
    height: 100dvh;
    background: var(--bg);
  }

  .site-header.menu-open .nav-list {
    position: absolute;
    top: var(--header);
    inset-inline: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    height: calc(100dvh - var(--header));
    padding: 16px var(--pad) 40px;
    overflow-y: auto;
  }

  .site-header.menu-open .nav-link {
    height: 44px;
    font-size: 17px;
    color: var(--text-1);
  }

  .site-header.menu-open .nav-link svg {
    display: none;
  }

  .site-header.menu-open .mega-links .label {
    display: none;
  }

  .site-header.menu-open .mega-links a {
    padding: 10px 12px;
    color: var(--text-1);
    font: 510 13.5px/1.4 var(--sans);
  }

  .site-header.menu-open .mega {
    position: static;
    width: auto;
    padding: 0 0 12px 12px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.menu-open .mega-grid {
    grid-template-columns: 1fr;
    background: none;
    box-shadow: none;
  }

  .site-header.menu-open .mega-col,
  .site-header.menu-open .mega-links {
    padding: 0;
    background: none;
  }

  .site-header.menu-open .mega-col span {
    display: none;
  }

  /* On the phone menu the gallery's sections fold into one link to the whole gallery. */
  .site-header.menu-open .uc-sections a {
    display: none;
  }

  .site-header.menu-open .uc-sections a.label {
    display: block;
    text-transform: none;
    letter-spacing: normal;
  }

  .show {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-end .lang {
    display: none;
  }

  .site-header.menu-open .nav-lang {
    display: block;
    margin-top: 16px;
    padding-left: 4px;
  }

  .nav-lang .lang {
    font-size: 14px;
  }

  .brand {
    margin-right: 8px;
  }
}

@media (max-width: 340px) {
  .nav-end .btn-primary {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 16px;
    --inset: 8px;
  }

  .section {
    padding: 96px 0;
  }

  .sec-head,
  .features {
    grid-template-columns: 1fr;
  }

  .sec-head {
    padding-bottom: 48px;
  }

  .sec-head .desc {
    padding-top: 0;
  }

  .hero {
    padding-top: calc(var(--header) + 64px);
  }

  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stage {
    margin-top: 48px;
    padding-bottom: 28px;
  }

  .frame img {
    border-radius: 8px;
  }

  .figs,
  .cols,
  .ship {
    grid-template-columns: 1fr;
  }

  .measures {
    grid-template-columns: 1fr 1fr;
  }

  .measures li:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .measures li:nth-child(even) {
    border-left: 1px solid var(--hair);
  }

  .body {
    padding-top: 0;
  }

  .m-hero {
    padding-top: calc(var(--header) + 72px);
  }

  .m-hero .diagram {
    margin-top: 64px;
  }

  .fig + .fig,
  .col + .col {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }

  .fig {
    min-height: 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }

  .ship-axis {
    display: none;
  }

  .ship li::before {
    position: static;
    display: inline-block;
    margin-right: 10px;
  }

  .ship time {
    display: inline;
  }

  .ship b {
    margin-top: 8px;
  }

  .hero h1 .line {
    display: inline;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .features {
    gap: 14px;
    padding-top: 28px;
  }

  .features ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .features li {
    padding: 0 0 0 18px;
    border-left: 0;
    font-size: 14px;
    line-height: 1.4;
    text-indent: -18px;
  }

  .media {
    padding: 32px 10px 0;
    border-radius: 12px;
  }

  .media-frame img {
    border-radius: 6px 6px 0 0;
  }

  .compose {
    overflow: hidden;
    padding-top: 0;
  }

  .compose-bg {
    display: none;
  }

  .compose-fg {
    position: static;
    width: 600px;
    max-width: none;
    border-radius: 8px 0 0 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 300px, #0000 380px);
    mask-image: linear-gradient(90deg, #000 0, #000 300px, #0000 380px);
  }

  .features.specs {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .features.specs ul {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 6px 0;
  }

  .features.specs li,
  .features.specs li:nth-child(n + 3) {
    padding: 0 12px 0 0;
    border-left: 0;
    text-indent: 0;
  }

  .feat {
    font-size: 14.5px;
  }

  .sheet {
    inset: 8px;
    width: auto;
    border-radius: 12px;
  }

  .sheet-top {
    padding-left: 20px;
  }

  .sheet-body {
    padding: 32px 20px 44px;
  }

  .sheet-body h2 {
    font-size: 34px;
  }

  .sheet-body .shot.bleed {
    margin-right: -20px;
  }

  .sheet-body .shot.bleed > img {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 260px, #0000 340px);
    mask-image: linear-gradient(90deg, #000 0, #000 260px, #0000 340px);
  }

  .sheet-body .spec div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .diagram {
    overflow-x: auto;
    padding: 28px 16px;
    border-radius: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, #0000);
    mask-image: linear-gradient(90deg, #000 85%, #0000);
  }

  .diagram svg {
    width: 900px;
    max-width: none;
  }

  .diagram::after {
    content: "Swipe to see the whole diagram →";
    display: block;
    margin-top: 12px;
    color: var(--text-4);
    font: 500 10.5px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tools {
    grid-template-columns: 1fr 1fr;
  }

  .tools .tool {
    padding: 22px 16px 26px;
    border-top: 1px solid var(--hair);
    border-left: 0;
  }

  .tools .tool:nth-child(-n + 2) {
    border-top: 0;
  }

  .tools .tool:nth-child(even) {
    border-left: 1px solid var(--hair);
  }

  .tool ul {
    gap: 12px;
    margin-top: 16px;
  }

  .tool li {
    font-size: 15px;
  }

  .col .n {
    margin-bottom: 14px;
  }

  .m-hero h1 {
    font-size: 44px;
  }

  .step span:last-child span {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .step {
    padding: 10px 12px;
  }

  .board-in {
    min-width: 0;
    padding: 16px 12px 14px;
  }

  .board-top {
    margin-bottom: 18px;
  }

  .legend {
    gap: 6px 12px;
    font-size: 11.5px;
  }

  .grid {
    --who: 66px;
  }

  .grid .stage {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .grid .who {
    font-size: 10px;
  }

  .grid .who,
  .grid .cell {
    height: 34px;
  }

  .grid .pill {
    height: 12px;
    width: 76%;
  }

  .caption {
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
  }

  .media {
    padding-top: 40px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .foot > :first-child {
    grid-column: 1 / -1;
  }

  .legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal .lang {
    margin: 0 0 0 -8px;
  }

  .prefooter {
    padding: 128px 0 136px;
  }
}
