/*
 * LUCINDHA LAWSON / DESFASURATORUL
 * A connected editorial surface: every section shares an edge with the next.
 * No external fonts, decorative frameworks, floating cards or horizontal rails.
 */

:root {
  color-scheme: light;
  --ink: #111a2f;
  --ink-soft: #26314b;
  --rice: #f5efe2;
  --mineral: #fffdf7;
  --vermilion: #e5482b;
  --vermilion-dark: #b92e1b;
  --vermilion-action: #e95234;
  --lilac: #b5a9d6;
  --lilac-pale: #e9e3f2;
  --zinc: #9fa9aa;
  --zinc-pale: #dfe3df;
  --line: rgba(17, 26, 47, 0.25);
  --line-strong: rgba(17, 26, 47, 0.7);
  --paper-shadow: 0 18px 38px rgba(17, 26, 47, 0.1);
  --page: min(100% - 40px, 1440px);
  --measure: 72ch;
  --step--1: clamp(0.76rem, 0.72rem + 0.12vw, 0.84rem);
  --step-0: clamp(0.94rem, 0.89rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.12rem, 1rem + 0.38vw, 1.34rem);
  --step-2: clamp(1.42rem, 1.2rem + 0.7vw, 1.86rem);
  --step-3: clamp(1.86rem, 1.48rem + 1.25vw, 2.72rem);
  --step-4: clamp(2.48rem, 1.86rem + 2.4vw, 4.4rem);
  --step-5: clamp(3.15rem, 2.28rem + 3.55vw, 6.35rem);
  --space-1: clamp(0.5rem, 0.42rem + 0.2vw, 0.68rem);
  --space-2: clamp(0.82rem, 0.66rem + 0.42vw, 1.12rem);
  --space-3: clamp(1.2rem, 0.95rem + 0.78vw, 1.8rem);
  --space-4: clamp(1.75rem, 1.28rem + 1.48vw, 2.95rem);
  --space-5: clamp(2.6rem, 1.75rem + 2.6vw, 4.85rem);
  --space-6: clamp(4.2rem, 2.7rem + 4.3vw, 7.8rem);
  --font-display: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  --font-body: Verdana, Geneva, Tahoma, sans-serif;
  --font-code: "Courier New", Courier, monospace;
}

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

html {
  background: var(--rice);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(var(--line), var(--line)) 20px 0 / 1px 100% no-repeat,
    var(--rice);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
  color: inherit;
  font: inherit;
}

button,
summary,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

a {
  color: currentColor;
  text-decoration-color: var(--vermilion);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.22em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--mineral);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--vermilion);
}

::selection {
  background: var(--lilac);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  letter-spacing: -0.025em;
}

p,
li,
dd,
address {
  overflow-wrap: anywhere;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
blockquote:last-child {
  margin-bottom: 0;
}

address {
  padding: var(--space-3);
  border-left: 7px solid var(--vermilion);
  background: var(--mineral);
  font-style: normal;
}

main {
  display: block;
}

main > :where(section, .boundary-ribbon, .limit-ribbon) {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 20px;
  translate: 0 -140%;
  padding: 0.72rem 1rem;
  background: var(--ink);
  color: var(--mineral);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
}

.skip-link:focus {
  translate: 0 0;
}

.eyebrow,
.surface-meta,
.folio-hero__code,
.fold-section__code,
.fact-ribbon span,
.status-fold strong,
.limit-ribbon strong,
.boundary-ribbon,
.footer-folds h2,
.footer-reverse,
figcaption {
  font-family: var(--font-code);
  font-size: var(--step--1);
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--space-2);
  color: var(--vermilion-dark);
  font-weight: 700;
}

.eyebrow::before {
  width: 2.35rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
}

/* Header: the first shared edge. */
.site-head {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: var(--page);
  min-height: 98px;
  margin-inline: auto;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: var(--mineral);
}

.brand {
  grid-column: 1 / span 4;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem clamp(0.85rem, 2vw, 1.8rem);
  border-right: 1px solid var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: clamp(3.1rem, 5vw, 5.1rem);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3.3;
}

.brand-mark .mark-edge {
  stroke: var(--vermilion);
  stroke-width: 7;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-copy b {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 0.7rem + 0.28vw, 1rem);
  letter-spacing: -0.025em;
  overflow-wrap: normal;
}

.brand-copy small {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-nav {
  grid-column: 5 / span 6;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
}

.primary-nav a {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0.8rem 0.42rem;
  border-right: 1px solid var(--line);
  font-family: var(--font-code);
  font-size: clamp(0.66rem, 0.6rem + 0.16vw, 0.78rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--lilac-pale);
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -6px 0 var(--vermilion);
}

.site-index {
  grid-column: 11 / span 2;
  min-width: 0;
}

.site-index summary {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem clamp(0.7rem, 1.6vw, 1.45rem);
  background: var(--ink);
  color: var(--mineral);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

.site-index summary::-webkit-details-marker {
  display: none;
}

.site-index summary span {
  color: var(--vermilion);
  font-size: 1.35rem;
  line-height: 1;
}

.site-index[open] summary span {
  rotate: 45deg;
}

.site-index__panel {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--mineral);
  box-shadow: var(--paper-shadow);
}

.site-index__panel > * {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid rgba(255, 253, 247, 0.34);
}

.site-index__panel > *:last-child {
  border-right: 0;
}

.site-index__panel > div > span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.site-index__panel h2 {
  max-width: 12ch;
  margin-top: var(--space-3);
  font-size: var(--step-2);
}

.site-index__panel nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.site-index__panel nav a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem;
  border-right: 1px solid rgba(255, 253, 247, 0.19);
  border-bottom: 1px solid rgba(255, 253, 247, 0.19);
  text-decoration: none;
}

.site-index__panel nav a:hover {
  background: var(--lilac);
  color: var(--ink);
}

.site-index__panel nav small {
  color: var(--lilac);
  font-family: var(--font-code);
}

/* Controls share a sharp, engineered language. */
.button,
.link-button {
  appearance: none;
  border-radius: 0;
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.1rem;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
  text-decoration: none;
  transition: translate 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  translate: 2px 2px;
  box-shadow: 3px 3px 0 var(--ink);
}

.button--vermilion {
  background: var(--vermilion-action);
  color: var(--ink);
}

.button--ink {
  background: var(--ink);
  color: var(--mineral);
}

.button--mineral {
  background: var(--mineral);
  color: var(--ink);
}

.button--small {
  min-height: 2.65rem;
  padding: 0.62rem 0.85rem;
  box-shadow: 3px 3px 0 currentColor;
}

.button[disabled],
.button[aria-disabled="true"] {
  translate: none;
  border-color: var(--zinc);
  background: var(--zinc-pale);
  box-shadow: none;
  color: #4d5658;
  opacity: 0.78;
}

.link-button {
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 2px solid var(--vermilion);
  background: transparent;
  color: inherit;
  text-align: left;
}

.link-button:hover {
  background: var(--lilac-pale);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: var(--space-4);
}

/* Home hero: one sheet, already partially unfolded. */
.unfold-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: min(810px, 83vh);
  margin-top: var(--space-2);
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.unfold-hero__copy {
  grid-column: 1 / span 7;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding: var(--space-6) clamp(var(--space-3), 5vw, var(--space-6));
}

.unfold-hero h1 {
  max-width: 10.5ch;
}

.unfold-hero h1 em {
  color: var(--vermilion-dark);
  font-style: normal;
}

.hero-intro {
  max-width: 62ch;
  margin-top: var(--space-3);
  font-size: var(--step-1);
}

.unfold-hero__image {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 6% 61%, 0 26%);
}

.unfold-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.unfold-hero__image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: min(84%, 42rem);
  margin: 0;
  padding: 0.72rem 1rem;
  background: var(--ink);
  color: var(--mineral);
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-edge {
  z-index: 2;
  grid-column: 6 / span 3;
  grid-row: 1;
  align-self: end;
  pointer-events: none;
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--ink);
  border-left: 8px solid var(--vermilion);
  background: var(--lilac);
  box-shadow: 8px 8px 0 var(--ink);
}

.hero-edge span,
.hero-edge p {
  font-family: var(--font-code);
  font-size: var(--step--1);
  text-transform: uppercase;
}

.hero-edge b {
  display: block;
  margin-block: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.05;
}

.boundary-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -1px;
  margin-bottom: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--mineral);
}

.boundary-ribbon span {
  min-width: 0;
  padding: 0.8rem 1rem;
  border-right: 1px solid rgba(255, 253, 247, 0.34);
  text-align: center;
}

.boundary-ribbon span:last-child {
  border-right: 0;
}

/* Main interactive sheet. */
.unfold-workbench,
.compact-unfold {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.unfold-surface,
.compact-unfold__surface {
  position: relative;
  grid-column: 1 / span 7;
  display: grid;
  min-height: 690px;
  align-content: space-between;
  overflow: hidden;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  background: var(--ink);
  color: var(--mineral);
}

.surface-meta {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 253, 247, 0.45);
  padding-bottom: 0.7rem;
}

.surface-meta b {
  color: var(--lilac);
}

.surface-meta i {
  color: var(--lilac);
  font-style: normal;
}

.surface-facets {
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(9rem, 1fr));
  align-self: center;
  width: min(92%, 660px);
  margin-inline: auto;
  filter: drop-shadow(12px 16px 0 rgba(0, 0, 0, 0.32));
}

.surface-facets i {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--zinc);
  opacity: 0.72;
  transform-origin: center;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.surface-facets i:nth-child(1),
.surface-facets i:nth-child(4) {
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.surface-facets i:nth-child(2),
.surface-facets i:nth-child(5) {
  margin-inline: -5%;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.surface-facets i:nth-child(3),
.surface-facets i:nth-child(6) {
  clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

.surface-facets i:nth-child(2n) {
  background: var(--lilac);
}

.surface-facets i:nth-child(3n) {
  background: var(--rice);
}

.surface-facets i::after {
  position: absolute;
  inset: 13%;
  border-top: 1px solid rgba(17, 26, 47, 0.45);
  border-bottom: 1px solid rgba(17, 26, 47, 0.45);
  content: "";
}

.unfold-workbench:has([data-unfold-facet="source"][aria-pressed="true"]) [data-facet-visual="source"],
.compact-unfold:has([data-unfold-facet="source"][aria-pressed="true"]) [data-facet-visual="source"],
.unfold-workbench:has([data-unfold-facet="period"][aria-pressed="true"]) [data-facet-visual="period"],
.compact-unfold:has([data-unfold-facet="period"][aria-pressed="true"]) [data-facet-visual="period"],
.unfold-workbench:has([data-unfold-facet="unit"][aria-pressed="true"]) [data-facet-visual="unit"],
.compact-unfold:has([data-unfold-facet="unit"][aria-pressed="true"]) [data-facet-visual="unit"],
.unfold-workbench:has([data-unfold-facet="cost"][aria-pressed="true"]) [data-facet-visual="cost"],
.compact-unfold:has([data-unfold-facet="cost"][aria-pressed="true"]) [data-facet-visual="cost"],
.unfold-workbench:has([data-unfold-facet="access"][aria-pressed="true"]) [data-facet-visual="access"],
.compact-unfold:has([data-unfold-facet="access"][aria-pressed="true"]) [data-facet-visual="access"],
.unfold-workbench:has([data-unfold-facet="limit"][aria-pressed="true"]) [data-facet-visual="limit"],
.compact-unfold:has([data-unfold-facet="limit"][aria-pressed="true"]) [data-facet-visual="limit"] {
  z-index: 2;
  background: var(--vermilion);
  opacity: 1;
  transform: translateY(-0.42rem);
}

.unfold-surface blockquote {
  z-index: 2;
  max-width: 34rem;
  margin: 0;
  padding: var(--space-3);
  border-top: 1px solid rgba(255, 253, 247, 0.48);
  background: rgba(17, 26, 47, 0.88);
}

.unfold-surface blockquote span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.unfold-surface blockquote p {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
}

.unfold-controls,
.compact-unfold__protocol {
  grid-column: 8 / -1;
  min-width: 0;
  padding: var(--space-4);
  background: var(--mineral);
}

.unfold-controls > header {
  max-width: 60ch;
  margin-bottom: var(--space-3);
}

.facet-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: var(--space-3);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.facet-buttons button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 7.4rem;
  align-content: space-between;
  gap: 0.55rem;
  padding: 0.9rem 2.4rem 0.9rem 0.9rem;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--rice);
  text-align: left;
}

.facet-buttons button:hover {
  background: var(--lilac-pale);
}

.facet-buttons button[aria-pressed="true"] {
  background: var(--lilac);
  box-shadow: inset 6px 0 0 var(--vermilion);
}

.facet-buttons button span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.facet-buttons button b {
  font-family: var(--font-display);
  line-height: 1.15;
}

.facet-buttons button i {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  color: var(--vermilion-dark);
  font-size: 1.25rem;
  font-style: normal;
}

.facet-buttons button[aria-pressed="true"] i {
  rotate: 45deg;
}

.unfold-output {
  padding: var(--space-3);
  border: 1px solid var(--ink);
  border-left: 8px solid var(--vermilion);
  background: var(--ink);
  color: var(--mineral);
}

.unfold-output > span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.unfold-output h3 {
  margin-top: 0.5rem;
  font-size: var(--step-2);
}

.unfold-output ul {
  padding-left: 1.2rem;
}

.unfold-controls > .link-button,
.compact-unfold__protocol > .link-button {
  margin-top: var(--space-2);
}

/* Connected savings pleat. */
.savings-pleat {
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--rice);
}

.savings-pleat > header {
  display: grid;
  grid-template-columns: 3fr 5fr 4fr;
  gap: var(--space-3);
  align-items: end;
  padding: var(--space-4);
  border-bottom: 1px solid var(--ink);
}

.savings-pleat > header .eyebrow {
  align-self: start;
}

.savings-pleat > header h2,
.savings-pleat > header p {
  margin-bottom: 0;
}

.savings-pleat__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.savings-pleat__strip button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 11rem;
  align-content: space-between;
  gap: 1.5rem;
  padding: var(--space-3);
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--mineral);
  text-align: left;
}

.savings-pleat__strip button:last-child {
  border-right: 0;
}

.savings-pleat__strip button::after {
  position: absolute;
  right: 1rem;
  bottom: -0.62rem;
  z-index: 2;
  width: 1.2rem;
  height: 1.2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: inherit;
  content: "";
  rotate: 45deg;
}

.savings-pleat__strip button span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
}

.savings-pleat__strip button b {
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.12;
}

.savings-pleat__strip button:hover {
  background: var(--lilac-pale);
}

.savings-pleat__strip button[aria-pressed="true"] {
  background: var(--lilac);
  box-shadow: inset 0 7px 0 var(--vermilion);
}

.savings-pleat__output {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 4fr 4fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  background: var(--ink);
  color: var(--mineral);
}

.savings-pleat__output > span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.savings-pleat__output h3 {
  font-size: var(--step-2);
}

.savings-pleat__output .link-button {
  grid-column: 3;
  width: max-content;
  max-width: 100%;
  color: var(--mineral);
}

.savings-pleat > p {
  padding: 0 var(--space-4) var(--space-4);
  background: var(--ink);
}

.savings-pleat--page {
  width: var(--page);
}

/* Two values folded around one common edge. */
.common-edge {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.common-edge__intro {
  grid-column: 1 / span 4;
  min-width: 0;
  padding: var(--space-4);
  border-right: 1px solid var(--ink);
  background: var(--lilac-pale);
}

.edge-rig {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.1rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-width: 0;
  padding: var(--space-4);
  background: var(--ink);
  color: var(--mineral);
}

.edge-plane {
  min-width: 0;
  min-height: 16rem;
  padding: var(--space-3);
  border: 1px solid var(--mineral);
  background: var(--rice);
  color: var(--ink);
}

.edge-plane--a {
  clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%);
}

.edge-plane--b {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%);
}

.edge-plane span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.edge-plane b {
  display: block;
  max-width: 13ch;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.05;
}

.edge-spine {
  position: relative;
  background: var(--vermilion);
  clip-path: polygon(50% 0, 100% 8%, 100% 92%, 50% 100%, 0 92%, 0 8%);
}

.edge-spine::after {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: var(--ink);
  content: "";
}

.edge-switches {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-3);
  border-top: 1px solid var(--mineral);
  border-left: 1px solid var(--mineral);
}

.edge-switches button {
  min-width: 0;
  padding: 0.8rem 0.45rem;
  border: 0;
  border-right: 1px solid var(--mineral);
  border-bottom: 1px solid var(--mineral);
  border-radius: 0;
  background: transparent;
  color: var(--mineral);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.edge-switches button:hover {
  background: var(--ink-soft);
}

.edge-switches button[aria-pressed="true"] {
  background: var(--lilac);
  color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--vermilion);
}

.edge-output {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 4fr 5fr;
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-3);
  border-right: 1px solid var(--mineral);
  border-bottom: 1px solid var(--mineral);
  border-left: 1px solid var(--mineral);
}

.edge-output > span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.edge-output .link-button {
  grid-column: 3;
  color: var(--mineral);
}

/* Editorial observer and connected syllabus. */
.material-observer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--mineral);
}

.material-observer figure {
  grid-column: 1 / span 5;
  min-width: 0;
  margin: 0;
  border-right: 1px solid var(--mineral);
}

.material-observer figure img {
  width: 100%;
  height: 100%;
  max-height: 860px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 91% 46%, 100% 100%, 0 100%);
}

.material-observer figcaption {
  padding: 0.72rem 1rem;
  border-top: 1px solid rgba(255, 253, 247, 0.5);
  color: var(--lilac);
  letter-spacing: 0.03em;
  text-transform: none;
}

.material-observer > div {
  grid-column: 6 / -1;
  min-width: 0;
  padding: var(--space-5);
}

.material-observer .eyebrow {
  color: var(--lilac);
}

.material-observer ol {
  margin-block: var(--space-4);
  padding: 0;
  border-top: 1px solid rgba(255, 253, 247, 0.52);
  list-style: none;
}

.material-observer li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 253, 247, 0.34);
}

.material-observer li > span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-weight: 700;
}

.material-observer li b {
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.material-observer li p {
  margin: 0.2rem 0 0;
  color: var(--zinc-pale);
}

.program-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.program-strip__intro {
  grid-column: 1 / span 4;
  padding: var(--space-4);
  border-right: 1px solid var(--ink);
}

.program-strip ol {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-strip li {
  display: grid;
  min-width: 0;
  min-height: 13rem;
  align-content: space-between;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.program-strip li:nth-child(3n) {
  border-right: 0;
}

.program-strip li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.program-strip li > span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-weight: 700;
}

.program-strip li b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
}

.program-strip li p {
  margin-top: 0.45rem;
}

.operator-reverse {
  display: grid;
  grid-template-columns: 7fr 5fr;
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--lilac-pale);
}

.operator-reverse > div,
.operator-reverse > aside {
  min-width: 0;
  padding: var(--space-5);
}

.operator-reverse > div {
  border-right: 1px solid var(--ink);
}

.operator-reverse > aside {
  background: var(--ink);
  color: var(--mineral);
}

.operator-reverse > aside > span {
  color: var(--lilac);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
}

.operator-reverse ul {
  margin-block: var(--space-3);
  padding: 0;
  border-top: 1px solid rgba(255, 253, 247, 0.4);
  list-style: none;
}

.operator-reverse li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 253, 247, 0.3);
}

.fact-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: var(--space-3);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.fact-ribbon > div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--mineral);
}

.fact-ribbon span,
.fact-ribbon strong {
  display: block;
}

.fact-ribbon span {
  margin-bottom: 0.4rem;
  color: var(--vermilion-dark);
}

.fact-ribbon strong {
  font-family: var(--font-display);
  line-height: 1.2;
}

.fact-ribbon--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Lead request: a perforated ending, not a floating capture card. */
.lead-perforation {
  display: grid;
  grid-template-columns: 5fr 7fr;
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--mineral);
}

.lead-perforation > div {
  min-width: 0;
  padding: var(--space-5);
  border-right: 1px dashed var(--mineral);
}

.lead-perforation .eyebrow {
  color: var(--lilac);
}

.lead-form {
  position: relative;
  min-width: 0;
  padding: var(--space-5);
  background: var(--rice);
  color: var(--ink);
}

.lead-form::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.52rem;
  width: 1rem;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 3%, 50% 6%, 100% 9%, 50% 12%, 100% 15%, 50% 18%, 100% 21%, 50% 24%, 100% 27%, 50% 30%, 100% 33%, 50% 36%, 100% 39%, 50% 42%, 100% 45%, 50% 48%, 100% 51%, 50% 54%, 100% 57%, 50% 60%, 100% 63%, 50% 66%, 100% 69%, 50% 72%, 100% 75%, 50% 78%, 100% 81%, 50% 84%, 100% 87%, 50% 90%, 100% 93%, 50% 96%, 100% 100%, 0 100%, 0 0);
  content: "";
}

.lead-field {
  display: grid;
  gap: 0.55rem;
  margin-bottom: var(--space-2);
}

.lead-field label,
.resource-filter label,
.glossary-tool label,
.sheet-builder label,
.period-align label,
.friction-fold label {
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-field input,
.lead-form input[type="email"],
.resource-filter :where(input, select),
.glossary-tool :where(input, select),
.sheet-builder :where(input, select, textarea),
.period-align :where(input, select),
.friction-fold :where(input, select),
.contact-fold :where(input, select, textarea),
.open-model select {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--mineral);
  color: var(--ink);
}

.lead-field input:disabled {
  border-style: dashed;
  background: var(--zinc-pale);
}

.lead-field span,
.form-note,
.form-status {
  font-size: var(--step--1);
}

.form-status {
  margin-top: var(--space-2);
  padding: 0.65rem 0.8rem;
  border-left: 5px solid var(--lilac);
  background: var(--mineral);
  font-weight: 700;
}

.form-status[data-state="success"],
.form-status.success {
  border-color: var(--ink);
}

.form-status[data-state="error"],
.form-status.error {
  border-color: var(--vermilion);
}

.form-note {
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Inner-page opening and the common connected section grammar. */
.folio-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: clamp(380px, 58vh, 650px);
  margin-top: var(--space-2);
  margin-bottom: 0;
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.folio-hero__code {
  grid-column: 1 / span 2;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  background: var(--ink);
  color: var(--lilac);
  writing-mode: vertical-rl;
}

.folio-hero__copy {
  grid-column: 3 / span 8;
  align-self: center;
  min-width: 0;
  padding: var(--space-6) var(--space-5);
}

.folio-hero__copy h1 {
  max-width: 15ch;
  font-size: var(--step-4);
}

.folio-hero__copy > p {
  max-width: var(--measure);
  font-size: var(--step-1);
}

.folio-hero__note {
  margin-top: var(--space-3);
  padding: var(--space-2);
  border-left: 6px solid var(--vermilion);
  background: var(--lilac-pale);
  font-size: var(--step-0) !important;
}

.folio-hero__edge {
  grid-column: 11 / -1;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-left: 1px solid var(--ink);
  background: var(--rice);
}

.folio-hero__edge i {
  display: block;
  border-bottom: 1px solid var(--ink);
  background: var(--lilac);
  clip-path: polygon(0 0, 100% 11%, 82% 100%, 0 86%);
}

.folio-hero__edge i:nth-child(2) {
  background: var(--zinc);
  clip-path: polygon(0 14%, 82% 0, 100% 89%, 0 100%);
}

.folio-hero__edge i:nth-child(3) {
  border-bottom: 0;
  background: var(--vermilion);
  clip-path: polygon(0 0, 100% 17%, 73% 100%, 0 100%);
}

.fold-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: -1px;
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.fold-section__code {
  grid-column: 1 / span 2;
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  color: var(--vermilion-dark);
  font-weight: 700;
}

.fold-section__body {
  grid-column: 3 / -1;
  min-width: 0;
  padding: var(--space-5);
}

.fold-section__body > header {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--ink);
}

.fold-section__body > header > * {
  margin-bottom: 0;
}

.fold-section__body > :not(header) + :not(header) {
  margin-top: var(--space-3);
}

.facet-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.facet-index article {
  min-width: 0;
  min-height: 14rem;
  padding: var(--space-2);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.facet-index article:nth-child(even) {
  background: var(--lilac-pale);
}

.facet-index article > span {
  display: block;
  min-height: 4.8rem;
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
}

.facet-index article h3 {
  font-size: var(--step-1);
}

.facet-index--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facet-index--three article {
  min-height: 12rem;
}

.compact-unfold {
  width: var(--page);
}

.compact-unfold__surface {
  grid-column: 1 / span 5;
  min-height: 470px;
}

.compact-unfold__protocol {
  grid-column: 6 / -1;
}

.counterfold {
  display: grid;
  grid-template-columns: minmax(0, 4fr) auto minmax(0, 4fr);
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.counterfold__plane,
.counterfold__output {
  min-width: 0;
  padding: var(--space-4);
}

.counterfold__plane {
  background: var(--rice);
  clip-path: polygon(0 0, 100% 7%, 90% 100%, 0 100%);
}

.counterfold__output {
  background: var(--lilac);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 93%);
}

.counterfold__plane span,
.counterfold__output span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
}

.counterfold > .button {
  align-self: center;
  margin-inline: -1rem;
  z-index: 2;
}

.counterfold:has([aria-pressed="true"]) .counterfold__plane {
  background: var(--lilac-pale);
}

.open-model {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--ink);
  background: var(--rice);
}

.open-model__shape {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  aspect-ratio: 3 / 2;
}

.open-model__shape i,
.open-model__shape b {
  display: block;
  border: 1px solid var(--ink);
  background: var(--lilac);
  clip-path: polygon(7% 0, 100% 5%, 93% 100%, 0 95%);
}

.open-model__shape i:nth-child(2n) {
  background: var(--zinc);
}

.open-model__shape b {
  background: transparent;
  border: 2px dashed var(--vermilion);
}

.open-model label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
}

.open-model [data-open-model-output] {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-left: 6px solid var(--vermilion);
  background: var(--mineral);
}

.connected-list,
.program-accordion {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.connected-list li,
.program-accordion li {
  display: grid;
  grid-template-columns: minmax(4rem, 1fr) 8fr;
  gap: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.connected-list li > span,
.program-accordion li > span {
  padding: var(--space-2);
  border-right: 1px solid var(--ink);
  background: var(--lilac-pale);
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-weight: 700;
}

.connected-list li > div,
.program-accordion li > div {
  padding: var(--space-2) var(--space-3);
  background: var(--rice);
}

.connected-list li h3,
.program-accordion li h3,
.connected-list li p,
.program-accordion li p {
  margin-bottom: 0;
}

.two-face-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.two-face-table > div {
  position: relative;
  min-width: 0;
  min-height: 11rem;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.two-face-table > div:nth-child(4n + 2),
.two-face-table > div:nth-child(4n + 3) {
  background: var(--lilac-pale);
}

.two-face-table span,
.statement-layers span,
.connected-dependencies span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
}

.two-face-table b {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.statement-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.statement-layers > div {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  background: var(--rice);
}

.statement-layers > div:nth-child(2) {
  background: var(--lilac-pale);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.statement-layers > div:last-child {
  border-right: 0;
}

.large-copy {
  max-width: 29ch;
  margin: var(--space-4) 0 0 auto !important;
  padding: var(--space-3) 0 var(--space-3) var(--space-4);
  border-left: 9px solid var(--vermilion);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.18;
}

.status-fold,
.limit-ribbon,
.notice {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--ink);
  border-left: 9px solid var(--vermilion);
}

.status-fold {
  width: var(--page);
  margin: -1px auto 0;
  background: var(--lilac);
}

.status-fold strong,
.limit-ribbon strong {
  display: block;
  margin-bottom: 0.45rem;
}

.status-fold p,
.limit-ribbon p {
  max-width: var(--measure);
}

.limit-ribbon {
  margin-block: var(--space-4) var(--space-6);
  background: var(--ink);
  color: var(--mineral);
}

.limit-ribbon strong {
  color: var(--lilac);
}

.notice {
  margin-block: var(--space-3);
  background: var(--lilac-pale);
}

.program-accordion li {
  grid-template-columns: minmax(5.5rem, 1fr) 7fr;
}

.program-accordion li:nth-child(even) > span {
  background: var(--vermilion);
  color: var(--ink);
}

.fold-quote {
  position: relative;
  max-width: 35ch;
  margin-inline: auto;
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.06;
}

.fold-quote::before,
.fold-quote::after {
  position: absolute;
  width: 4rem;
  height: 1px;
  background: var(--vermilion);
  content: "";
  rotate: -35deg;
}

.fold-quote::before {
  top: 0.6rem;
  left: -0.5rem;
}

.fold-quote::after {
  right: -0.5rem;
  bottom: 0.6rem;
}

.legal-copy {
  max-width: var(--measure);
  padding: var(--space-2) var(--space-3);
  border-left: 5px solid var(--zinc);
  background: var(--rice);
  font-size: var(--step--1);
  line-height: 1.7;
}

.edge-list,
.check-fold {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.edge-list li,
.check-fold li {
  position: relative;
  padding: 1rem 1rem 1rem 4.2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: var(--rice);
}

.edge-list li::before,
.check-fold li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 3.15rem;
  place-items: center;
  border-right: 1px solid var(--ink);
  background: var(--lilac);
  color: var(--ink);
  content: "→";
  font-family: var(--font-code);
  font-weight: 700;
}

.check-fold li::before {
  content: "□";
}

.connected-dependencies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.connected-dependencies > div {
  min-width: 0;
  min-height: 12rem;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.connected-dependencies > div:nth-child(even) {
  background: var(--lilac-pale);
}

/* Universal legal, resource and tool surfaces. */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.legal-layout > :first-child {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  background: var(--lilac-pale);
}

.legal-layout > :last-child {
  min-width: 0;
  padding: var(--space-4);
}

.legal-layout .legal-copy {
  max-width: none;
  padding: 0;
  border-left: 0;
  background: transparent;
  font-size: var(--step-0);
}

.legal-copy h2,
.legal-copy h3 {
  margin-top: 1.8em;
  scroll-margin-top: 1rem;
}

.legal-copy h2:first-child,
.legal-copy h3:first-child {
  margin-top: 0;
}

.legal-copy :where(ul, ol) {
  padding-left: 1.25rem;
}

.legal-copy :where(a) {
  overflow-wrap: anywhere;
}

.resource-filter,
.glossary-tool,
.sheet-builder,
.period-align,
.friction-fold,
.contact-fold {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--rice);
}

.resource-filter > *,
.glossary-tool > *,
.sheet-builder > *,
.period-align > *,
.friction-fold > *,
.contact-fold > * {
  min-width: 0;
}

.resource-filter > :where(label, div),
.glossary-tool > :where(label, div),
.sheet-builder > :where(label, div),
.period-align > :where(label, div),
.friction-fold > :where(label, div),
.contact-fold > :where(label, div) {
  padding: var(--space-2);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.resource-filter > * {
  grid-column: span 4;
}

.glossary-tool > :first-child,
.sheet-builder > :first-child,
.period-align > :first-child,
.friction-fold > :first-child,
.contact-fold > :first-child {
  grid-column: 1 / span 4;
}

.glossary-tool > :not(:first-child),
.sheet-builder > :not(:first-child),
.period-align > :not(:first-child),
.friction-fold > :not(:first-child),
.contact-fold > :not(:first-child) {
  grid-column: 5 / -1;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.resource-list > :where(li, article, a) {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--mineral);
}

.resource-list > a {
  display: block;
  text-decoration: none;
}

.resource-list > :where(li, article, a):nth-child(4n + 2),
.resource-list > :where(li, article, a):nth-child(4n + 3) {
  background: var(--lilac-pale);
}

.resource-list > a:hover {
  box-shadow: inset 8px 0 0 var(--vermilion);
}

.sheet-builder,
.period-align,
.friction-fold {
  min-height: 20rem;
}

.sheet-builder output,
.period-align output,
.friction-fold output,
.glossary-tool output {
  display: block;
  margin-top: var(--space-2);
  padding: var(--space-3);
  border-left: 7px solid var(--vermilion);
  background: var(--ink);
  color: var(--mineral);
}

/* Concrete tool compositions emitted by the production generator. */
.counterfold--wide {
  min-height: 22rem;
}

.counterfold--wide .counterfold__plane,
.counterfold--wide .counterfold__output {
  display: grid;
  align-content: center;
}

.edge-list--definition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--ink);
}

.edge-list--definition > div {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.edge-list--definition > div:nth-child(4n + 2),
.edge-list--definition > div:nth-child(4n + 3) {
  background: var(--lilac-pale);
}

.edge-list--definition dt {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.edge-list--definition dd {
  margin: 0.65rem 0 0;
}

.friction-fold {
  grid-template-rows: auto auto;
  min-height: 0;
  background: var(--ink);
  color: var(--mineral);
}

.friction-fold__planes {
  grid-column: 1 / span 5 !important;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.1rem minmax(0, 1fr);
  min-height: 33rem;
  padding: var(--space-4);
  border-right: 1px solid var(--mineral) !important;
  border-bottom: 0 !important;
  background: var(--ink);
}

.friction-fold__planes i {
  display: block;
  border: 1px solid var(--mineral);
  background: var(--lilac);
  clip-path: polygon(0 4%, 100% 0, 91% 100%, 0 94%);
}

.friction-fold__planes i:last-child {
  background: var(--rice);
  clip-path: polygon(9% 0, 100% 4%, 100% 94%, 0 100%);
}

.friction-fold__planes b {
  display: block;
  background: var(--vermilion);
  clip-path: polygon(50% 0, 100% 4%, 100% 94%, 50% 100%, 0 94%, 0 4%);
  transition: scale 180ms ease;
}

.friction-fold:has(.friction-fold__controls [aria-pressed="true"]) .friction-fold__planes b {
  scale: 1.45 1;
}

.friction-fold__controls {
  grid-column: 6 / -1 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 !important;
  border-right: 0 !important;
  background: var(--mineral);
  color: var(--ink);
}

.friction-fold__controls button,
.resource-filter button {
  min-width: 0;
  min-height: 6.2rem;
  padding: var(--space-2);
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--rice);
  color: var(--ink);
  text-align: left;
}

.friction-fold__controls button:last-child,
.resource-filter button:last-child {
  border-right: 0;
}

.friction-fold__controls button:hover,
.resource-filter button:hover {
  background: var(--lilac-pale);
}

.friction-fold__controls button[aria-pressed="true"],
.resource-filter button[aria-pressed="true"] {
  background: var(--lilac);
  box-shadow: inset 0 6px 0 var(--vermilion);
}

.friction-fold__controls span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
}

.friction-fold__controls b {
  font-family: var(--font-display);
  line-height: 1.15;
}

.friction-fold__output {
  grid-column: 6 / -1 !important;
  padding: var(--space-4) !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: var(--ink);
  color: var(--mineral);
}

.friction-fold__output > span,
.period-align__output > span,
.sheet-builder__meta span,
.resource-list article > span,
.resource-count,
.glossary-list dt,
.contact-fold > div > span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.friction-fold__output > span,
.period-align__output > span,
.sheet-builder__meta span {
  color: var(--lilac);
}

.friction-fold__output .link-button,
.period-align__output .link-button {
  color: var(--mineral);
}

.period-align {
  grid-template-columns: 7fr 5fr;
  min-height: 0;
  background: var(--mineral);
}

.period-align__ribbons {
  grid-column: 1 !important;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 !important;
  border-right: 1px solid var(--ink) !important;
  border-bottom: 0 !important;
}

.period-align__ribbons label {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.4rem 1rem;
  min-width: 0;
  align-content: center;
  min-height: 8.8rem;
  padding: var(--space-3);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
  text-transform: none;
}

.period-align__ribbons label:last-child {
  border-bottom: 0;
}

.period-align__ribbons label:has(input:checked) {
  background: var(--lilac);
  box-shadow: inset 7px 0 0 var(--vermilion);
}

.period-align__ribbons input {
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.45rem;
  height: 1.45rem;
  accent-color: var(--vermilion);
}

.period-align__ribbons span {
  color: var(--vermilion-dark);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.period-align__ribbons b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.15;
}

.period-align__output {
  grid-column: 2 !important;
  align-self: stretch;
  padding: var(--space-4) !important;
  border: 0 !important;
  background: var(--ink);
  color: var(--mineral);
}

.resource-library {
  margin-block: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.resource-filter {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 0;
  border-bottom: 1px solid var(--ink);
}

.resource-filter > * {
  grid-column: auto;
}

.resource-filter button {
  min-height: 4.5rem;
  text-align: center;
}

.resource-count {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--ink);
  color: var(--vermilion-dark);
}

.resource-list {
  border: 0;
}

.resource-list article {
  min-height: 16rem;
}

.resource-list article h2 {
  margin-top: var(--space-3);
  font-size: var(--step-2);
}

.resource-list article h2 a {
  text-decoration: none;
}

.resource-list article:has(a:hover) {
  box-shadow: inset 8px 0 0 var(--vermilion);
}

.sheet-builder {
  grid-template-columns: 1fr;
  min-height: 0;
  margin-block: var(--space-6);
}

.sheet-builder__meta {
  grid-column: 1 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-2) var(--space-3) !important;
  border-right: 0 !important;
  background: var(--ink);
  color: var(--mineral);
}

.sheet-builder__fields {
  grid-column: 1 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 !important;
  border-right: 0 !important;
}

.sheet-builder__fields label {
  display: grid;
  min-width: 0;
  padding: var(--space-2);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.sheet-builder__fields label:nth-child(3n) {
  border-right: 0;
}

.sheet-builder__fields label:nth-child(even) {
  background: var(--lilac-pale);
}

.sheet-builder__fields label > span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--vermilion-dark);
}

.sheet-builder__fields textarea {
  min-height: 9rem;
  resize: vertical;
}

.sheet-builder__actions {
  grid-column: 1 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: var(--space-3) !important;
  border: 0 !important;
  background: var(--mineral);
}

.sheet-builder__actions p {
  flex: 1 1 18rem;
  margin: 0;
  padding-left: var(--space-2);
  border-left: 5px solid var(--lilac);
}

.glossary-tool {
  grid-template-columns: 1fr;
  margin-block: var(--space-6);
}

.glossary-tool__search {
  grid-column: 1 !important;
  display: grid;
  grid-template-columns: minmax(9rem, 3fr) minmax(0, 9fr);
  align-items: center;
  padding: var(--space-3) !important;
  border-right: 0 !important;
  background: var(--lilac-pale);
}

.glossary-tool > .resource-filter,
.glossary-tool > [data-glossary-count],
.glossary-tool > .glossary-list {
  grid-column: 1 !important;
}

.glossary-tool > [data-glossary-count] {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-code);
  font-size: var(--step--1);
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.glossary-list > div {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--mineral);
}

.glossary-list > div:nth-child(4n + 2),
.glossary-list > div:nth-child(4n + 3) {
  background: var(--lilac-pale);
}

.glossary-list dd {
  margin: 0.7rem 0 0;
}

.contact-fold {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
  margin-block: var(--space-6);
}

.contact-fold > div,
.contact-fold > div:first-child,
.contact-fold > div:not(:first-child) {
  grid-column: auto;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 0;
  background: var(--mineral);
}

.contact-fold > div:nth-child(2) {
  background: var(--lilac-pale);
}

.contact-fold > div:last-child {
  border-right: 0;
}

.contact-fold address {
  margin-top: var(--space-2);
  padding: 0;
  border-left: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
}

.notice--large {
  max-width: 980px;
  margin-block: var(--space-6);
  padding: var(--space-5);
  background: var(--lilac);
}

.notice--large h2 {
  max-width: 16ch;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: var(--mineral);
}

.faq-list summary {
  position: relative;
  padding: 1rem 3.5rem 1rem 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 3rem;
  height: 100%;
  place-items: center;
  border-left: 1px solid var(--ink);
  background: var(--lilac);
  content: "+";
  font-family: var(--font-code);
}

.faq-list details[open] summary {
  background: var(--lilac-pale);
}

.faq-list details[open] summary::after {
  background: var(--vermilion);
  content: "−";
}

.faq-list details > :not(summary) {
  margin: 0;
  padding: var(--space-3);
  border-top: 1px solid var(--ink);
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.site-map-grid > :where(section, nav, div) {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--rice);
}

.site-map-grid > :where(section, nav, div):nth-child(even) {
  background: var(--lilac-pale);
}

.site-map-grid a {
  display: block;
  padding-block: 0.3rem;
}

.not-found {
  display: grid;
  grid-template-columns: 4fr 7fr;
  min-height: 60vh;
  border: 1px solid var(--ink);
  background: var(--mineral);
}

.not-found > * {
  min-width: 0;
  padding: var(--space-5);
}

.not-found > :first-child {
  border-right: 1px solid var(--ink);
  background: var(--vermilion);
}

.not-found h1 {
  max-width: 12ch;
  font-size: var(--step-4);
}

/* Tables remain readable without forcing the viewport sideways. */
.table-wrap {
  max-width: 100%;
  overflow: clip;
  border: 1px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 0.75rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  vertical-align: top;
  overflow-wrap: anywhere;
  text-align: left;
}

th {
  background: var(--ink);
  color: var(--mineral);
  font-family: var(--font-code);
  font-size: var(--step--1);
  text-transform: uppercase;
}

tr:nth-child(even) td {
  background: var(--lilac-pale);
}

/* Footer is the reverse side of the same sheet. */
.site-footer {
  width: var(--page);
  margin: var(--space-6) auto 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--mineral);
}

.footer-front {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 253, 247, 0.48);
}

.footer-front > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-front .brand-mark svg {
  stroke: var(--mineral);
}

.footer-front .brand-copy small {
  color: var(--lilac);
}

.footer-front > p {
  max-width: 45ch;
}

.footer-folds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-folds nav {
  min-width: 0;
  padding: var(--space-3);
  border-right: 1px solid rgba(255, 253, 247, 0.32);
  border-bottom: 1px solid rgba(255, 253, 247, 0.32);
}

.footer-folds nav:last-child {
  border-right: 0;
}

.footer-folds h2 {
  color: var(--lilac);
}

.footer-folds a,
.footer-folds .link-button {
  display: block;
  width: fit-content;
  margin-block: 0.42rem;
  font-size: var(--step--1);
}

.footer-reverse {
  display: grid;
  grid-template-columns: 5fr 5fr 2fr;
  gap: var(--space-3);
  padding: var(--space-3);
  color: var(--zinc-pale);
  letter-spacing: 0.025em;
  line-height: 1.6;
  text-transform: none;
}

.footer-reverse p {
  margin: 0;
}

.cookie-note {
  display: grid;
  grid-template-columns: 8fr 4fr;
  width: var(--page);
  margin: 0 auto;
  padding: var(--space-3);
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--lilac);
  color: var(--ink);
  box-shadow: var(--paper-shadow);
}

.cookie-note > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Medium layouts preserve asymmetry but simplify the fold. */
@media (max-width: 1100px) {
  :root {
    --page: min(100% - 28px, 1440px);
  }

  body {
    background-position-x: 14px;
  }

  .site-head {
    min-height: 86px;
  }

  .brand {
    grid-column: 1 / span 4;
  }

  .primary-nav {
    grid-column: 5 / span 6;
  }

  .site-index {
    grid-column: 11 / span 2;
  }

  .site-index__panel {
    grid-template-columns: 4fr 8fr;
  }

  .site-index__panel > p {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 253, 247, 0.34);
  }

  .unfold-hero__copy {
    grid-column: 1 / span 7;
    padding-inline: var(--space-4);
  }

  .hero-edge {
    grid-column: 6 / span 4;
  }

  .unfold-surface {
    grid-column: 1 / span 6;
  }

  .unfold-controls {
    grid-column: 7 / -1;
    padding: var(--space-3);
  }

  .common-edge__intro {
    grid-column: 1 / span 4;
  }

  .edge-rig {
    grid-column: 5 / -1;
    padding: var(--space-3);
  }

  .material-observer figure {
    grid-column: 1 / span 5;
  }

  .material-observer > div {
    grid-column: 6 / -1;
    padding: var(--space-4);
  }

  .program-strip__intro {
    grid-column: 1 / span 4;
  }

  .program-strip ol {
    grid-column: 5 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-strip li:nth-child(3n) {
    border-right: 1px solid var(--ink);
  }

  .program-strip li:nth-child(2n) {
    border-right: 0;
  }

  .program-strip li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--ink);
  }

  .program-strip li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .fact-ribbon--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facet-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-head {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .brand {
    grid-column: 1 / span 5;
  }

  .site-index {
    grid-column: 6 / -1;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--ink);
  }

  .site-index__panel {
    grid-template-columns: 1fr;
  }

  .site-index__panel > * {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 247, 0.34);
  }

  .site-index__panel nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unfold-hero {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    min-height: 690px;
  }

  .unfold-hero__copy {
    grid-column: 1 / span 5;
  }

  .unfold-hero__image {
    grid-column: 5 / -1;
  }

  .hero-edge {
    grid-column: 4 / span 4;
  }

  .unfold-workbench,
  .compact-unfold {
    grid-template-columns: 1fr;
  }

  .unfold-surface,
  .compact-unfold__surface,
  .unfold-controls,
  .compact-unfold__protocol {
    grid-column: 1;
  }

  .unfold-surface,
  .compact-unfold__surface {
    min-height: 510px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .savings-pleat > header {
    grid-template-columns: 1fr 2fr;
  }

  .savings-pleat > header > p:last-child {
    grid-column: 1 / -1;
  }

  .savings-pleat__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .savings-pleat__strip button:nth-child(2) {
    border-right: 0;
  }

  .savings-pleat__output {
    grid-template-columns: 1fr 2fr;
  }

  .savings-pleat__output > p,
  .savings-pleat__output > ul {
    grid-column: 1 / -1;
  }

  .savings-pleat__output .link-button {
    grid-column: 2;
  }

  .common-edge {
    grid-template-columns: 1fr;
  }

  .common-edge__intro,
  .edge-rig {
    grid-column: 1;
  }

  .common-edge__intro {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .edge-output {
    grid-template-columns: 1fr 2fr;
  }

  .edge-output > p {
    grid-column: 1 / -1;
  }

  .edge-output .link-button {
    grid-column: 2;
  }

  .material-observer {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .material-observer figure {
    grid-column: 1 / span 3;
  }

  .material-observer > div {
    grid-column: 4 / -1;
  }

  .program-strip {
    grid-template-columns: 1fr;
  }

  .program-strip__intro,
  .program-strip ol {
    grid-column: 1;
  }

  .program-strip__intro {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .operator-reverse,
  .lead-perforation {
    grid-template-columns: 1fr;
  }

  .operator-reverse > div,
  .lead-perforation > div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .lead-form::before {
    display: none;
  }

  .folio-hero {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .folio-hero__code {
    grid-column: 1 / span 1;
  }

  .folio-hero__copy {
    grid-column: 2 / span 6;
    padding: var(--space-5) var(--space-4);
  }

  .folio-hero__edge {
    grid-column: 8;
  }

  .fold-section {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .fold-section__code {
    grid-column: 1;
  }

  .fold-section__body {
    grid-column: 2 / -1;
    padding: var(--space-4);
  }

  .fold-section__body > header {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .fact-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .counterfold__plane,
  .counterfold__output {
    clip-path: none;
  }

  .counterfold > .button {
    width: calc(100% - 2 * var(--space-3));
    margin: var(--space-3);
  }

  .open-model {
    grid-template-columns: 1fr;
  }

  .connected-dependencies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout > :first-child {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .footer-front {
    grid-template-columns: 1fr 1fr;
  }

  .footer-front > a {
    grid-column: 1 / -1;
  }

  .footer-folds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-folds nav:nth-child(2) {
    border-right: 0;
  }

  .footer-reverse {
    grid-template-columns: 1fr 1fr;
  }

  .footer-reverse p:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile: one vertical connected accordion. No rails, offsets or side-scrolling. */
@media (max-width: 640px) {
  :root {
    --page: calc(100% - 20px);
  }

  html {
    scroll-behavior: auto;
  }

  body {
    min-width: 0;
    background-position-x: 10px;
  }

  .site-head {
    grid-template-columns: 1fr auto;
    width: var(--page);
  }

  .brand {
    grid-column: 1;
    min-height: 76px;
    padding: 0.72rem;
  }

  .brand-mark {
    width: 3.35rem;
  }

  .site-index {
    grid-column: 2;
  }

  .site-index summary {
    min-width: 5.2rem;
    padding-inline: 0.72rem;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-nav a {
    min-height: 3rem;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    grid-column: 1 / -1;
  }

  .site-index__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
  }

  .site-index__panel nav {
    grid-template-columns: 1fr;
  }

  .site-index__panel nav a {
    border-right: 0;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .unfold-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .unfold-hero__copy {
    order: 1;
    padding: var(--space-5) var(--space-3);
  }

  .unfold-hero__image {
    order: 2;
    width: 100%;
    min-height: 310px;
    border-top: 1px solid var(--ink);
    border-left: 0;
    clip-path: none;
  }

  .unfold-hero__image img {
    min-height: 310px;
  }

  .hero-edge {
    order: 3;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left-width: 7px;
    box-shadow: none;
  }

  .boundary-ribbon {
    grid-template-columns: 1fr;
  }

  .boundary-ribbon span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 247, 0.34);
  }

  .boundary-ribbon span:last-child {
    border-bottom: 0;
  }

  .unfold-workbench,
  .compact-unfold {
    display: flex;
    flex-direction: column;
  }

  .unfold-surface,
  .compact-unfold__surface {
    min-height: 430px;
    padding: var(--space-2);
  }

  .surface-meta {
    align-items: flex-start;
  }

  .surface-facets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 6.5rem);
    width: 100%;
    filter: none;
  }

  .surface-facets i,
  .surface-facets i:nth-child(n) {
    margin: 0;
    clip-path: none;
    transform: none !important;
  }

  .unfold-controls,
  .compact-unfold__protocol {
    padding: var(--space-3);
  }

  .facet-buttons {
    grid-template-columns: 1fr;
  }

  .facet-buttons button {
    min-height: 5.8rem;
  }

  .savings-pleat > header,
  .savings-pleat__strip,
  .savings-pleat__output {
    display: grid;
    grid-template-columns: 1fr;
  }

  .savings-pleat > header > *,
  .savings-pleat__output > * {
    grid-column: 1 !important;
  }

  .savings-pleat__strip button,
  .savings-pleat__strip button:nth-child(n) {
    min-height: 6.8rem;
    border-right: 0;
  }

  .savings-pleat__strip button::after {
    right: 50%;
  }

  .edge-rig {
    grid-template-columns: 1fr;
  }

  .edge-plane {
    min-height: 9rem;
    clip-path: none;
  }

  .edge-spine {
    height: 1.1rem;
    clip-path: none;
  }

  .edge-spine::after {
    inset: 50% 5% auto;
    width: auto;
    height: 1px;
  }

  .edge-switches {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edge-output {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .edge-output > *,
  .edge-output .link-button {
    grid-column: 1;
  }

  .material-observer {
    display: flex;
    flex-direction: column;
  }

  .material-observer figure,
  .material-observer > div {
    width: 100%;
  }

  .material-observer figure {
    border-right: 0;
    border-bottom: 1px solid var(--mineral);
  }

  .material-observer figure img {
    max-height: 520px;
    clip-path: none;
  }

  .material-observer > div,
  .program-strip__intro,
  .operator-reverse > div,
  .operator-reverse > aside,
  .lead-perforation > div,
  .lead-form {
    padding: var(--space-3);
  }

  .program-strip ol {
    grid-template-columns: 1fr;
  }

  .program-strip li,
  .program-strip li:nth-child(n) {
    min-height: 8.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .program-strip li:last-child {
    border-bottom: 0;
  }

  .fact-ribbon,
  .fact-ribbon--six {
    grid-template-columns: 1fr;
  }

  .folio-hero {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    min-height: 0;
  }

  .folio-hero__code {
    grid-column: 1;
    writing-mode: vertical-rl;
  }

  .folio-hero__copy {
    grid-column: 2;
    padding: var(--space-4) var(--space-3);
  }

  .folio-hero__edge {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1.15rem;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .folio-hero__edge i,
  .folio-hero__edge i:nth-child(n) {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
    clip-path: none;
  }

  .fold-section {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
  }

  .fold-section__code {
    grid-column: 1;
    padding: var(--space-2) 0.6rem;
  }

  .fold-section__body {
    grid-column: 2;
    padding: var(--space-3);
  }

  .facet-index,
  .facet-index--three,
  .two-face-table,
  .statement-layers,
  .connected-dependencies,
  .resource-list,
  .site-map-grid {
    grid-template-columns: 1fr;
  }

  .facet-index article {
    min-height: 0;
  }

  .facet-index article > span {
    min-height: 0;
    margin-bottom: 0.7rem;
  }

  .open-model {
    padding: var(--space-3);
  }

  .statement-layers > div,
  .statement-layers > div:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    clip-path: none;
  }

  .statement-layers > div:last-child {
    border-bottom: 0;
  }

  .large-copy {
    max-width: none;
    margin-left: 0 !important;
    padding-left: var(--space-3);
  }

  .connected-list li,
  .program-accordion li {
    grid-template-columns: 3.4rem 1fr;
  }

  .edge-list li,
  .check-fold li {
    padding-left: 3.4rem;
  }

  .edge-list li::before,
  .check-fold li::before {
    width: 2.65rem;
  }

  .legal-layout,
  .resource-filter,
  .glossary-tool,
  .sheet-builder,
  .period-align,
  .friction-fold,
  .contact-fold,
  .not-found {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .resource-filter > *,
  .glossary-tool > *,
  .sheet-builder > *,
  .period-align > *,
  .friction-fold > *,
  .contact-fold > *,
  .not-found > * {
    grid-column: 1 !important;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .friction-fold__planes,
  .friction-fold__controls,
  .friction-fold__output,
  .period-align__ribbons,
  .period-align__output {
    grid-column: 1 !important;
    grid-row: auto;
    border-right: 0 !important;
    border-bottom: 1px solid var(--ink) !important;
  }

  .friction-fold__planes {
    min-height: 13rem;
    padding: var(--space-2);
  }

  .friction-fold__controls,
  .resource-filter,
  .sheet-builder__fields,
  .glossary-list,
  .edge-list--definition {
    grid-template-columns: 1fr;
  }

  .friction-fold__controls button,
  .resource-filter button,
  .resource-filter button:last-child,
  .sheet-builder__fields label,
  .sheet-builder__fields label:nth-child(n),
  .glossary-list > div,
  .edge-list--definition > div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .friction-fold__controls button,
  .resource-filter button {
    min-height: 4.6rem;
  }

  .period-align {
    grid-template-columns: 1fr;
  }

  .period-align__ribbons label {
    min-height: 7rem;
  }

  .sheet-builder__meta,
  .sheet-builder__actions {
    align-items: flex-start;
  }

  .sheet-builder__actions {
    flex-direction: column;
  }

  .sheet-builder__actions .button,
  .sheet-builder__actions .link-button {
    width: 100%;
  }

  .sheet-builder__actions p {
    flex-basis: auto;
    width: 100%;
  }

  .glossary-tool__search {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .resource-list article {
    min-height: 0;
  }

  .contact-fold > div,
  .contact-fold > div:first-child,
  .contact-fold > div:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .contact-fold > div:last-child {
    border-bottom: 0;
  }

  .not-found > :first-child {
    border-right: 0;
  }

  .table-wrap {
    overflow: clip;
  }

  th,
  td {
    padding: 0.5rem;
    font-size: var(--step--1);
  }

  .footer-front,
  .footer-folds,
  .footer-reverse,
  .cookie-note {
    grid-template-columns: 1fr;
  }

  .footer-front > *,
  .footer-reverse > *,
  .footer-reverse p:last-child {
    grid-column: 1;
  }

  .footer-folds nav,
  .footer-folds nav:nth-child(n) {
    border-right: 0;
  }

  .cookie-note > div:last-child {
    justify-content: flex-start;
    margin-top: var(--space-2);
  }

  .fold-quote::before,
  .fold-quote::after {
    display: none;
  }
}

@media (max-width: 390px) {
  .brand-copy b {
    font-size: 0.7rem;
  }

  .brand-copy small {
    font-size: 0.58rem;
  }

  .site-index summary {
    min-width: 4.35rem;
    font-size: 0.68rem;
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .primary-nav a:last-child {
    grid-column: 1;
  }

  .surface-facets {
    grid-template-rows: repeat(3, 5.5rem);
  }

  .folio-hero,
  .fold-section {
    grid-template-columns: 2.65rem 1fr;
  }
}

/* Motion is optional; content and state never depend on it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #111a2f;
    --line-strong: #111a2f;
  }

  a {
    text-decoration-thickness: 0.18em;
  }

  .eyebrow,
  .fact-ribbon span,
  .facet-buttons button span,
  .two-face-table span,
  .statement-layers span,
  .connected-dependencies span {
    color: var(--ink);
  }
}

@media (forced-colors: active) {
  *,
  *::before,
  *::after {
    forced-color-adjust: auto;
  }

  .surface-facets i,
  .folio-hero__edge i,
  .open-model__shape i,
  .open-model__shape b {
    border: 2px solid CanvasText;
  }

  .button,
  .link-button,
  .facet-buttons button,
  .savings-pleat__strip button,
  .edge-switches button {
    border: 2px solid ButtonText;
  }
}

/* JavaScript absence remains explicit and readable. */
noscript {
  display: block;
}

noscript .notice {
  display: block;
  margin-block: var(--space-2);
}

@page {
  margin: 16mm;
}

@media print {
  :root {
    --ink: #000;
    --rice: #fff;
    --mineral: #fff;
    --lilac: #ddd;
    --lilac-pale: #f3f3f3;
    --zinc: #777;
    --zinc-pale: #eee;
    --vermilion: #000;
    --vermilion-dark: #000;
    --page: 100%;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
  }

  .site-head,
  .site-index,
  .primary-nav,
  .button-row,
  .button,
  button,
  .lead-perforation,
  .cookie-note,
  .site-footer,
  .unfold-hero__image,
  .hero-edge,
  .surface-facets,
  .open-model__shape {
    display: none !important;
  }

  main > *,
  .folio-hero,
  .fold-section,
  .unfold-workbench,
  .compact-unfold,
  .savings-pleat,
  .common-edge,
  .material-observer,
  .program-strip,
  .operator-reverse,
  .legal-layout,
  .resource-list,
  .faq-list {
    width: 100% !important;
    margin: 0 0 10mm !important;
    break-inside: avoid;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }

  .unfold-hero,
  .folio-hero,
  .fold-section,
  .unfold-workbench,
  .compact-unfold,
  .common-edge,
  .material-observer,
  .program-strip,
  .operator-reverse,
  .legal-layout {
    display: block !important;
  }

  .unfold-hero__copy,
  .folio-hero__copy,
  .fold-section__body,
  .unfold-controls,
  .compact-unfold__protocol,
  .common-edge__intro,
  .edge-rig,
  .material-observer > div,
  .program-strip__intro,
  .operator-reverse > div,
  .operator-reverse > aside,
  .legal-layout > * {
    padding: 6mm !important;
    border: 0 !important;
    background: #fff !important;
    color: #000 !important;
    clip-path: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-family: var(--font-code);
    font-size: 8pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
}
