/* ==========================================================================
   Trivune — site styles
   Flat, thin type, 1px borders, light by default, dark on request.
   No rounding, shadows, or gradients.
   Wordmarks: Stack Sans Notch. Everything else: Inter, with Kode Mono for data.
   ========================================================================== */

/* Stack Sans Notch only sets the TRIVUNE wordmarks, so those letters come
   from a 3 KB subset; the full 50 KB font covers every other character and
   is fetched only if one is ever used. The ranges must not overlap: Chrome
   loads every face whose range covers a character. */
@font-face {
  font-family: "Stack Sans Notch";
  src: url("fonts/StackSansNotch-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-001F, U+0021-0044, U+0046-0048, U+004A-004D, U+004F-0051, U+0053, U+0057-0064, U+0066-0068, U+006A-006D, U+006F-0071, U+0073, U+0077-10FFFF;
}
@font-face {
  font-family: "Stack Sans Notch";
  src: url("fonts/StackSansNotch-Wordmark.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0045, U+0049, U+004E, U+0052, U+0054-0056, U+0065, U+0069, U+006E, U+0072, U+0074-0076;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Kode Mono"; font-weight: 400 700; font-display: swap; src: url("fonts/KodeMono-Variable-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kode Mono"; font-weight: 400 700; font-display: swap; src: url("fonts/KodeMono-Variable-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #fff;
  --bar: #fff;
  --ink: #000;
  --muted: #555;
  --hairline: #e2e2e2;
  --fill: #bdbdbd;
  --hover: #f0f0f0;
  --accent: #e10600;
  --accent-deep: #b80500;
  --on-accent: #fff;
  --band: #f4f4f4;
  --floor: #0a0a0a;

  --font-brand: "Stack Sans Notch", "Inter", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Kode Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: 16px;
  --gap: 16px;
  --section: clamp(96px, 11vw, 168px);
  --nav-h: 56px;
  --edge: max(var(--gutter), calc((100vw - 1680px) / 2 + var(--gutter)));
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-both: cubic-bezier(.76,0,.24,1);
}

/* Light unless the visitor chooses dark. Keep the chrome's matching palette in
   main.js (CHROME_PALETTES) in step with these greys. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --bar: #000;
  --ink: #fff;
  --muted: #a8a8a8;
  --hairline: #2e2e2e;
  --fill: #4a4a4a;
  --hover: #1c1c1c;
  --band: #111;
}

@media (max-width: 767px) {
  :root {
    --gutter: 12px;
    --section: 72px;
  }
}

/* ---------- Base reset ---------- */

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

html {
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--floor);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-weight: inherit;
}

a {
  color: inherit;
}

img,
svg,
canvas {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

/* ---------- Type utilities ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.mono--muted {
  color: var(--muted);
}

.heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.text-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.45;
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Background canvas ---------- */

.chrome-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}

.chrome-bg.is-ready {
  opacity: 1;
}

/* Plain background while the plugins are on screen. */
.chrome-bg.is-ready.is-plain {
  opacity: 0;
}

canvas.no-webgl {
  display: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Only the hero and the footer wordmark show the chrome. Everything else is opaque. */
main:not(:has(.hero)) {
  display: flow-root; /* keeps the page header's margin inside the opaque area */
  background: var(--bg);
  padding-bottom: var(--section);
}

/* ---------- Layout ---------- */

.wrap {
  padding-inline: var(--edge);
}

.section {
  margin-top: var(--section);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.block {
  padding-block: var(--section);
  background: var(--bg);
}

.block--band {
  background: var(--band);
}

.block__intro {
  max-width: 1040px;
}

.block__intro .text-lead {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.25;
  max-width: 38ch;
}

.block__intro .card__actions {
  margin-top: 32px;
  padding-top: 0;
}

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

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

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

@media (max-width: 1023px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .grid--4 .card {
    padding: 12px;
    gap: 8px;
  }

  .grid--4 .card__title {
    font-size: 18px;
  }

  .grid--4 .card__text {
    font-size: 13px;
    line-height: 1.35;
  }

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

/* ---------- Window ---------- */

.window {
  background: var(--bg);
  border: 1px solid var(--ink);
}

.window__bar {
  background: var(--bar);
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
}

.window__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.window__meta {
  color: var(--muted);
}

.window__body {
  padding: 24px;
}

@media (max-width: 767px) {
  .window__body {
    padding: 16px;
  }
}

.window__body--flush,
.window__body.window__body--flush {
  padding: 0;
}

/* ---------- Card ---------- */

.card {
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card.is-featured {
  outline: 1px solid var(--ink);
  outline-offset: -3px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: 22px;
  line-height: 1.2;
}

.card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.card__actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* A square wipe from the bottom, on the button's own hit area. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hover);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--ease);
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn.is-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn.is-accent::before {
  background: var(--accent-deep);
}

.btn.is-accent:hover {
  border-color: var(--accent-deep);
}

.btn--block {
  width: 100%;
}

.grid + .card__actions,
.lead + .card__actions {
  margin-top: 16px;
  padding-top: 0;
}

.card__actions--bar {
  margin: 0;
  padding: 0;
}

/* ---------- Lists and tables ---------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.spec-table th {
  color: var(--muted);
  font-weight: 400;
}

.spec-table td {
  font-family: var(--font-mono);
  font-size: 13px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price__amount {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
}

.price__unit {
  font-size: 14px;
  color: var(--muted);
}

.note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.note--after {
  margin-top: 16px;
}

.prose {
  max-width: 68ch;
}

.prose h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  margin: 28px 0 8px;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
}

.prose a {
  text-decoration: underline;
}

.prose .check-list {
  margin: 0 0 12px;
}

strong {
  font-weight: 500;
}

/* ---------- Page header (subpages) ---------- */

.page-head {
  margin-top: calc(var(--nav-h) + clamp(56px, 7vw, 104px));
}

.page-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.03em;
  font-size: clamp(56px, 10vw, 150px);
  line-height: 1;
}

.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.35;
  max-width: 56ch;
}

/* ---------- Hero (home only) ---------- */

.hero {
  height: 100svh;
  min-height: 620px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero__content {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: clamp(32px, 5vw, 72px);
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(48px, 8.2vw, 128px);
  line-height: 1;
  letter-spacing: -.03em;
}

.hero__text {
  margin-top: clamp(16px, 2vw, 28px);
  max-width: 44ch;
}

.hero__content .card__actions {
  margin-top: clamp(20px, 2vw, 32px);
  padding-top: 0;
}

/* ---------- Tool tiles (home) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px;
  margin-top: clamp(56px, 6vw, 88px);
}

@media (max-width: 1023px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--band);
  transition: background-color .2s;
}

.tile:hover {
  background: var(--hover);
}

.tile__art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: clamp(12px, 2vw, 28px);
  border-bottom: 1px solid var(--hairline);
}

.tile .label {
  padding: 16px 16px 0;
}

.tile__name {
  padding: 6px 16px 0;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.tile__text {
  padding: 6px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

.tiles__note {
  margin-top: 32px;
  text-align: center;
}

/* ---------- Link rows (home) ---------- */

.rows {
  margin-top: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--ink);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
  transition: padding-left .3s var(--ease);
}

.row:hover {
  padding-left: 16px;
}

.row__arrow {
  flex: none;
  width: clamp(28px, 3.4vw, 48px);
  height: clamp(28px, 3.4vw, 48px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ---------- Principles (home) ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--gap);
  margin-top: clamp(40px, 5vw, 64px);
}

@media (max-width: 900px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.principle {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.principle__title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.principle__text {
  margin-top: 10px;
  max-width: 38ch;
  color: var(--muted);
}

/* ---------- Statement ---------- */

.statement__text.heading {
  font-size: clamp(36px, 5.2vw, 76px);
}

.statement__cite {
  margin-top: 24px;
}

/* ---------- FAQ ---------- */

.faq__item + .faq__item {
  border-top: 1px solid var(--hairline);
}

.faq__q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  transition: background-color .1s;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq__q:hover {
  background: var(--hover);
}

.faq__icon {
  position: relative;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 1px;
  background: currentColor;
  transition: transform .2s;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .2s ease, visibility .2s;
}

.faq__a > div {
  overflow: hidden;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq__a p {
  padding: 0 32px 16px 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bar);
  border-bottom: 1px solid var(--hairline);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  padding-inline: var(--gutter);
  column-gap: 24px;
}

.nav__links {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .1s;
}

.nav__links a:hover {
  background: var(--hover);
}

.nav__links a.is-active {
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  height: 36px;
  width: auto;
}

.brand svg path {
  stroke: currentColor;
  stroke-width: 0.9px;
  vector-effect: non-scaling-stroke;
}

.nav .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.nav__right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 8px;
}

.nav__right .btn:not(.theme-toggle) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.nav__right .btn:not(.theme-toggle)::before {
  background: var(--muted);
}

.nav__right .theme-toggle {
  border-color: transparent;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__right .btn:not(.theme-toggle) {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav__inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav .brand {
    justify-self: start;
    grid-column: 1;
  }
  .nav__right {
    grid-column: 3;
  }
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  background: var(--bg);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.mobile-menu ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px var(--gutter);
  list-style: none;
  overflow-y: auto;
}

.mobile-menu li {
  border-bottom: 1px solid var(--hairline);
}

.mobile-menu ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.mobile-menu .btn {
  margin: auto var(--gutter) var(--gutter);
}

/* ---------- Footer ---------- */

.footer {
  display: flow-root;
  padding: 0;
}

.footer__wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18.4vw;
  line-height: 0.76;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff; /* always on the dark chrome, in both themes */
  margin: clamp(56px, 9vw, 136px) var(--edge);
}

.footer__wordmark span {
  display: inline-block;
}

/* The R's stub is part of the font and would touch the T. */
.footer__wordmark .footer__t {
  margin-right: .05em;
}

.footer__panel.window {
  background: var(--bg);
  border: 0;
  padding-inline: var(--edge);
}

.footer__panel .footer__cols {
  padding: clamp(40px, 5vw, 72px) 0;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr);
  gap: 24px;
  padding: 24px;
}

.footer__col h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li + li {
  margin-top: 6px;
}

.footer__col a {
  font-size: 14px;
  text-decoration: none;
}

.footer__col a:hover {
  text-decoration: underline;
}

.footer__notify p {
  max-width: 360px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
  background: transparent;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}

.footer__bottom nav {
  display: flex;
  gap: 18px;
}

.footer__bottom a {
  text-decoration: none;
}

.footer__bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__notify {
    grid-column: 1 / -1;
  }
}

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

/* ---------- Inner pages ----------
   Same language as the home page: no boxes, large type, plenty of space.
   Scoped to main, so the footer panel keeps its own rules. */

main .window {
  background: transparent;
  border: 0;
}

main .window__bar {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

main .window__title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.06;
}

main .window__meta {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

main .window__body {
  margin-top: clamp(24px, 3vw, 40px);
  padding: 0;
}

main .card {
  background: var(--band);
  border: 0;
}

main .tool {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

main .tool__body {
  margin-top: clamp(24px, 3vw, 40px);
}

main .tool__text {
  padding: 0 clamp(24px, 4vw, 64px) 0 0;
  background: transparent;
  border: 0;
}

main .tool__pane {
  align-self: start;
  background: var(--band);
}

.motion main .window .window__bar::after {
  display: none;
}

@media (max-width: 767px) {
  main .window__body {
    padding: 0;
  }

  main .tool__text {
    padding: 0 0 24px;
    border: 0;
  }
}

/* ---------- Product page tool ---------- */

/* Half copy, half a drawing of what the tool does. */
.tool__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.tool__pane {
  padding: 24px;
}

.tool__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--bg);
  border-right: 1px solid var(--ink);
}

@media (max-width: 767px) {
  .tool__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .tool__text {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .tool__pane {
    padding: 16px;
  }
}

/* ---------- About page ---------- */

.about__statement {
  margin-top: clamp(56px, 7vw, 96px);
}

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--gap);
  margin-top: clamp(40px, 5vw, 64px);
}

@media (max-width: 767px) {
  .people {
    grid-template-columns: minmax(0, 1fr);
  }
}

.person {
  min-width: 0;
}

/* A square slot: holds initials until a real photo replaces it. */
.person__photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 56px);
}

.person__name {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.person__role {
  margin-top: 8px;
  color: var(--muted);
}

.person__bio {
  margin-top: 12px;
  max-width: 44ch;
}

.person__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Tool drawings ---------- */

.plot {
  width: 100%;
  fill: none;
  color: var(--ink);
}

.plot__grid {
  stroke: var(--hairline);
  stroke-width: 1;
}

.plot__ghost {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: .012 .012;
}

.plot__line {
  stroke: currentColor;
  stroke-width: 3;
}

.plot__mark {
  fill: var(--accent);
}

.card > .plot {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
}

.card__actions--note {
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}

/* Lines draw themselves as their window arrives. */
.motion .plot__line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-both) .35s;
}

.motion .is-in .plot__line {
  stroke-dashoffset: 0;
}

.tool__text .check-list {
  margin: 0;
}

.tool__text.prose {
  justify-content: flex-start;
}

.tool__text.prose h3:first-child {
  margin-top: 0;
}

.learn__note {
  margin-top: 16px;
}

/* ---------- Theme prompt ---------- */

/* Sits in the empty top of the hero and scrolls away with it. */
.theme-prompt {
  position: absolute;
  top: calc(var(--nav-h) + var(--gutter));
  right: var(--edge);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: calc(100vw - 2 * var(--edge));
  padding: 8px 8px 8px 16px;
  background: var(--bg);
  font-size: 14px;
}

.theme-prompt__actions {
  display: flex;
  gap: 8px;
}

.theme-prompt .btn {
  min-height: 32px;
  padding: 0 12px;
}

/* ---------- Motion ----------
   Everything below is gated on .motion (set by main.js unless the visitor asks
   for reduced motion), so without JavaScript all content is simply there.
   Only transform, opacity and clip-path animate. */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: clip;
}

/* Preloader: columns of red that part to reveal the page. */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 3fr 1fr 5fr 2fr 1fr 4fr 1fr 3fr 6fr 1fr 2fr 3fr;
  pointer-events: none;
}

.preloader span {
  background: var(--accent);
  margin-right: -1px;
  transform-origin: top;
  transition: transform .9s var(--ease-both);
  transition-delay: calc(var(--i) * 35ms + 120ms);
}

.preloader span:nth-child(even) {
  transform-origin: bottom;
}

.is-loaded .preloader {
  visibility: hidden;
  transition: visibility 0s 1.6s;
}

.is-loaded .preloader span {
  transform: scaleY(0);
}

html:not(.js) .preloader,
.no-preload .preloader {
  display: none;
}

html.js:not(.no-preload) {
  --hero-delay: 620ms;
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }
}

.motion .hero__content {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-both) .9s;
}

.motion .is-loaded .hero__content {
  clip-path: inset(0);
}

.motion.no-preload .hero__content {
  transition-delay: .3s;
}

/* Reveals: windows wipe open top down, as a heavy rule sweeps under the title
   bar and the words climb out of their masks. */

.motion .window,
.motion main .grid > .card {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-both);
}

.motion .is-in.window,
.motion main .grid > .card.is-in {
  clip-path: inset(-1px);
}

.motion .window .grid > .card {
  transition-delay: calc(var(--n, 0) * 70ms + 300ms);
}

.motion .window.is-in .grid > .card {
  clip-path: inset(-1px);
}

.motion .window__bar {
  position: relative;
}

.motion .window .window__bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 6px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-both) .15s;
}

.motion .window.is-in .window__bar::after {
  transform: scaleX(1);
}

/* Home page content rises into place, once. */
.motion .tile,
.motion .principle,
.motion .person,
.motion .row {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s var(--ease), padding-left .3s var(--ease), background-color .2s;
  transition-delay: calc(var(--n, 0) * 60ms), calc(var(--n, 0) * 60ms), 0s, 0s;
}

.motion .tile.is-in,
.motion .principle.is-in,
.motion .person.is-in,
.motion .row.is-in {
  opacity: 1;
  transform: none;
}

.w {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}

.w > span {
  display: inline-block;
}

.motion .w > span {
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--n, 0) * 45ms + 250ms);
}

.motion .is-in .w > span {
  transform: none;
}

.motion .footer__wordmark > span {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-both);
}

.motion .footer__wordmark.is-in > span {
  clip-path: inset(-1% 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}