/* Aislesmith — site styles.
   Mobile first. Layout widens at 700px, 900px and 1000px.
   No inline styles anywhere: the Content-Security-Policy in _headers only allows this file. */

/* ------------------------------------------------------------------ fonts (self-hosted, OFL) */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */

:root {
  --paper: #f6f1e9;
  --paper-2: #efe7da;
  --card: #fbf8f3;
  --ink: #23211e;
  --ink-2: #45413a;
  --muted: #6b655b;
  --line: rgba(35, 33, 30, 0.1);
  --line-strong: rgba(35, 33, 30, 0.18);
  --copper: #b4532a;
  --copper-soft: rgba(180, 83, 42, 0.09);
  --copper-ring: rgba(180, 83, 42, 0.28);
  --madder: #a93a2c;
  --madder-soft: rgba(169, 58, 44, 0.08);
  --madder-ring: rgba(169, 58, 44, 0.26);
  --indigo: #23336b;
  --on-ink: #f6f1e9;
  --on-ink-muted: rgba(246, 241, 233, 0.68);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 2rem;
  --bezel-pad: 6px;
  --gutter: 1rem;
  --nav-h: 4.5rem;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (min-width: 900px) {
  body {
    font-size: 1.0625rem;
  }
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ol,
ul {
  padding: 0;
}

b,
strong {
  font-weight: 600;
}

::selection {
  background: rgba(180, 83, 42, 0.22);
}

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

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 40;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 0.4s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* Paper grain: fixed, behind the content, never scrolls. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ layout */

.container {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2 * var(--gutter), 46rem);
}

.section {
  padding-block: clamp(5rem, 3rem + 7vw, 9rem);
}

.section-tight {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.section-top-0 {
  padding-top: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head .eyebrow,
.section-head .eyebrow-light {
  margin-bottom: 1.25rem;
}

.section-head .lede,
.section-head .lede-light {
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 1000px) {
  :root {
    --gutter: 2.5rem;
  }
}

/* ------------------------------------------------------------------ type */

.display,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem);
  line-height: 0.98;
}

.display em {
  font-style: italic;
  color: var(--copper);
}

.display-md {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
  line-height: 1;
}

.display-sm {
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
  line-height: 1.02;
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  line-height: 1.04;
}

.h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.0625rem);
  line-height: 1.12;
}

.h4 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38em;
  text-wrap: pretty;
}

.lede-light {
  color: var(--on-ink-muted);
}

.small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
}

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

.nowrap {
  white-space: nowrap;
}

.eyebrow,
.eyebrow-light {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.eyebrow-light {
  color: var(--on-ink-muted);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 233, 0.2);
}

.eyebrow-plain {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.4s var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.placeholder {
  padding: 0.05em 0.35em;
  border-radius: 0.35em;
  background: rgba(180, 83, 42, 0.14);
  color: #8a3b1b;
  font-weight: 500;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4375rem 0.4375rem 0.4375rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(246, 241, 233, 0.14);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}

.btn:hover .btn-icon {
  transform: translate(2px, -1px) scale(1.06);
}

.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 12px 28px -14px rgba(35, 33, 30, 0.55);
}

.btn-ink:hover {
  background: #36322c;
}

.btn-ghost {
  background: rgba(35, 33, 30, 0.03);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost .btn-icon {
  background: rgba(35, 33, 30, 0.07);
}

.btn-ghost:hover {
  background: rgba(35, 33, 30, 0.06);
}

.btn-small {
  gap: 0.625rem;
  padding: 0.3125rem 0.3125rem 0.3125rem 1rem;
  font-size: 0.875rem;
}

.btn-small .btn-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.btn-large {
  padding: 0.5625rem 0.5625rem 0.5625rem 1.5rem;
  font-size: 1rem;
}

.btn-large .btn-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.icon {
  width: 14px;
  height: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease);
}

.link-arrow span {
  transition: transform 0.5s var(--ease);
}

.link-arrow:hover {
  border-color: var(--ink);
}

.link-arrow:hover span {
  transform: translateX(3px);
}

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.label::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.label-fern {
  color: var(--copper);
  background: var(--copper-soft);
  box-shadow: inset 0 0 0 1px var(--copper-ring);
}

.label-neel {
  color: var(--madder);
  background: var(--madder-soft);
  box-shadow: inset 0 0 0 1px var(--madder-ring);
}

.label-quiet {
  font-size: 0.6875rem;
  background: transparent;
}

/* On narrow phones the long labels wrap: smaller type, and a radius that suits two lines. */
@media (max-width: 399px) {
  .label {
    font-size: 0.6875rem;
    padding: 0.25rem 0.7rem 0.25rem 0.55rem;
    border-radius: 0.9rem;
  }

  .label-quiet {
    font-size: 0.65rem;
  }
}

/* ------------------------------------------------------------------ double-bezel cards */

.bezel {
  padding: var(--bezel-pad);
  border-radius: var(--radius);
  background: rgba(35, 33, 30, 0.035);
  box-shadow: inset 0 0 0 1px rgba(35, 33, 30, 0.07), 0 32px 64px -40px rgba(35, 33, 30, 0.28);
}

.bezel-core {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - var(--bezel-pad));
  background: var(--card);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(35, 33, 30, 0.05);
}

.bezel-core > img {
  width: 100%;
}

.bezel-wide {
  --radius: 2.25rem;
}

.bezel-dark {
  background: rgba(246, 241, 233, 0.04);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 233, 0.1);
}

.bezel-dark .bezel-core {
  background: #2c2925;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
}

.card {
  height: 100%;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.card .h4 {
  margin-block: 0.75rem 0.75rem;
}

.card p:not(.card-kicker) {
  color: var(--ink-2);
}

.card-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.rounded {
  border-radius: 1.25rem;
}

/* ------------------------------------------------------------------ navigation */

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: 0.75rem;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), 64rem);
  margin-inline: auto;
  padding: 0.4375rem 0.4375rem 0.4375rem 1rem;
  border-radius: 999px;
  background: rgba(246, 241, 233, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(35, 33, 30, 0.08), 0 12px 32px -18px rgba(35, 33, 30, 0.3);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.mark {
  color: var(--ink);
}

.mark-spark {
  fill: var(--copper);
}

.nav-links {
  display: none;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.nav-links a:hover {
  background: rgba(35, 33, 30, 0.06);
  color: var(--ink);
}

.nav-cta {
  display: none;
}

.nav-cta-always {
  display: inline-flex;
  margin-left: auto;
}

.menu-toggle {
  position: relative;
  flex: none;
  width: 2.625rem;
  height: 2.625rem;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}

.menu-toggle:active {
  transform: scale(0.96);
}

.menu-toggle .bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.6s var(--ease);
}

.menu-toggle .sr-only + .bar {
  transform: translateY(-3.5px);
}

.menu-toggle .bar + .bar {
  transform: translateY(3.5px);
}

.menu-toggle[aria-expanded="true"] .sr-only + .bar {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar + .bar {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  /* Near-opaque: where the blur is not drawn, 0.9 let the hero text show through the menu. */
  background: rgba(246, 241, 233, 0.97);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  overflow-y: auto;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}

.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s;
}

.menu-open body {
  overflow: hidden;
}

.menu-links {
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.menu-links a {
  display: block;
  padding-block: 0.25rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 2rem + 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.menu-links li,
.menu-foot {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.menu-open .menu-links li,
.menu-open .menu-foot {
  opacity: 1;
  transform: none;
}

.menu-open .menu-links li:nth-child(1) { transition-delay: 0.08s; }
.menu-open .menu-links li:nth-child(2) { transition-delay: 0.13s; }
.menu-open .menu-links li:nth-child(3) { transition-delay: 0.18s; }
.menu-open .menu-links li:nth-child(4) { transition-delay: 0.23s; }
.menu-open .menu-foot { transition-delay: 0.3s; }

.menu-foot {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .nav {
    width: max-content;
    max-width: calc(100% - 2 * var(--gutter));
    gap: 2rem;
    padding-left: 1.25rem;
  }

  .nav-minimal {
    gap: 3rem;
  }

  .nav-links {
    display: flex;
    gap: 0.125rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .menu {
    display: none;
  }
}

/* ------------------------------------------------------------------ home: hero */

.hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
}

.hero-grid {
  display: grid;
  gap: clamp(3.5rem, 2rem + 4vw, 5rem);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 1.75rem;
}

.hero-copy .lede {
  margin-top: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.5rem;
}

.hero-stack {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.stack-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stack-front {
  grid-column: 1 / -1;
  grid-row: 1;
}

.stack-card .bezel {
  --radius: 1.5rem;
  --bezel-pad: 5px;
}

.stack-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .stack-area {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
  }

  .stack-card {
    position: absolute;
    transition: transform 0.9s var(--ease);
  }

  .stack-back {
    top: 3%;
    left: 0;
    width: 48%;
    transform: rotate(-6deg);
  }

  .stack-mid {
    top: 0;
    right: 0;
    width: 48%;
    transform: rotate(5deg);
  }

  .stack-front {
    left: 15%;
    top: 29%;
    width: 70%;
    z-index: 2;
  }

  .hero-stack:hover .stack-back {
    transform: rotate(-8deg) translate(-6px, -4px);
  }

  .hero-stack:hover .stack-mid {
    transform: rotate(7deg) translate(6px, -4px);
  }

  .stack-caption {
    margin-top: 2.25rem;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .hero-stack {
    max-width: none;
  }
}

/* ------------------------------------------------------------------ home: said plainly */

.honest {
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}

.honest .eyebrow {
  margin-bottom: 1.25rem;
}

.honest .h3 {
  max-width: 26em;
}

.honest-cols {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .honest-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ------------------------------------------------------------------ home: who it's for */

.who-grid {
  display: grid;
  gap: 1rem;
}

.not-included {
  display: grid;
  gap: 0.375rem;
  padding: 1.25rem 0.25rem 0;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-2);
}

.not-included .card-kicker {
  color: var(--muted);
}

@media (min-width: 900px) {
  .who-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.25rem;
  }

  .not-included {
    grid-column: 1 / -1;
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
    margin-top: 0.75rem;
  }
}

/* ------------------------------------------------------------------ home: the offer (dark) */

.section-ink {
  margin-inline: clamp(0.5rem, 0.25rem + 1vw, 1rem);
  border-radius: clamp(1.75rem, 1rem + 2vw, 3rem);
  background: var(--ink);
  color: var(--on-ink);
}

.section-ink .h2 {
  color: var(--on-ink);
}

.offer-grid {
  display: grid;
  gap: 1rem;
}

.offer-card {
  height: 100%;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  color: var(--on-ink-muted);
}

.offer-card strong,
.offer-card .h3 {
  color: var(--on-ink);
}

.offer-top {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.step-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: #d98b63;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
  margin-block: 1.25rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(246, 241, 233, 0.1);
}

.price-figure {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 2rem + 1.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-ink);
}

.price-unit {
  font-size: 0.875rem;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ticks li {
  position: relative;
  padding-left: 1.375rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: #d98b63;
  transform: rotate(45deg);
  border-radius: 1px;
}

.offer-card > p + .ticks {
  margin-top: 0.75rem;
}

.offer-card .fine {
  margin-top: 1.5rem;
}

.sub-title {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.addon {
  margin-top: 1.75rem;
  padding: 1.125rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(246, 241, 233, 0.04);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 233, 0.1);
}

.addon-title {
  color: var(--on-ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

@media (min-width: 1000px) {
  .offer-grid {
    grid-template-columns: 1fr 1.05fr;
    grid-template-areas:
      "main build"
      "retainer build";
    gap: 1.25rem;
  }

  .offer-main { grid-area: main; }
  .offer-build { grid-area: build; }
  .offer-retainer { grid-area: retainer; }
}

/* ------------------------------------------------------------------ home: process */

.process {
  list-style: none;
  display: grid;
  gap: 2.25rem;
  counter-reset: none;
}

.process-step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.process-no {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--copper);
}

.process-step .h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--ink-2);
}

.process-foot {
  margin-top: 3rem;
}

@media (min-width: 700px) {
  .process {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 1000px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------------------ home: sample teaser, person */

.sample-teaser-core {
  display: grid;
  gap: 2rem;
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  align-items: center;
}

.sample-teaser-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.sample-teaser-copy p:not(.eyebrow) {
  color: var(--ink-2);
}

.sample-teaser-media img {
  width: 100%;
  box-shadow: 0 0 0 1px var(--line);
}

@media (min-width: 900px) {
  .sample-teaser-core {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }
}

.person {
  max-width: 56rem;
}

.person .eyebrow {
  margin-bottom: 1.5rem;
}

.person .lede {
  margin-top: 1.25rem;
}

/* ------------------------------------------------------------------ call to action band */

.cta-band {
  padding-top: 0;
}

/* The tinted Neelwood piece ends the Work page; give the call band room after it. */
.piece-alt + .cta-band {
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.cta-core {
  padding: clamp(2rem, 1rem + 4.5vw, 5rem);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(180, 83, 42, 0.09), transparent 60%),
    var(--card);
}

.cta-core .eyebrow {
  margin-bottom: 1.5rem;
}

.cta-core .lede,
.cta-core > p:not(.eyebrow) {
  margin-top: 1.25rem;
}

.cta-core .h3 + p {
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ inner pages */

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.page-hero .eyebrow {
  margin-bottom: 1.5rem;
}

.page-hero .display {
  max-width: 15em;
}

.page-hero .lede {
  margin-top: 1.5rem;
}

.page-hero .lede + .lede {
  margin-top: 1rem;
}

.page-404 {
  min-height: 72dvh;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.jump a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.4s var(--ease);
}

.jump a:hover {
  background: rgba(35, 33, 30, 0.06);
}

/* ------------------------------------------------------------------ work: pieces */

.piece {
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}

.piece-alt {
  margin-inline: clamp(0.5rem, 0.25rem + 1vw, 1rem);
  border-radius: clamp(1.75rem, 1rem + 2vw, 3rem);
  background: var(--paper-2);
}

.piece-head {
  display: grid;
  gap: 2.5rem;
}

.piece-intro {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
}

.piece-intro .eyebrow-plain {
  margin-top: 0.5rem;
}

.piece-intro .lede {
  margin-top: 0.25rem;
}

.specs {
  width: 100%;
  margin-block: 0.75rem 0.75rem;
}

.specs div {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--line);
}

.specs div:last-child {
  border-bottom: 1px solid var(--line);
}

.specs dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs dd {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (min-width: 700px) {
  .specs div {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
  }
}

@media (min-width: 1000px) {
  .piece-head {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .piece-cover {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
}

.piece-block {
  margin-top: clamp(4.5rem, 3rem + 5vw, 8rem);
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.block-head .h3 {
  max-width: 24em;
}

.block-lede {
  max-width: 44em;
  margin: -0.75rem 0 2rem;
  color: var(--ink-2);
}

.image-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 0.75rem;
}

.image-grid figure {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

.image-grid figcaption {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.image-grid figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.tile {
  width: 100%;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px -28px rgba(35, 33, 30, 0.4);
  transition: transform 0.7s var(--ease);
}

.image-grid li:hover .tile {
  transform: translateY(-3px);
}

/* The tablecloth has seven images: on phones the main image takes the full row. */
.piece-alt .image-grid li:first-child {
  grid-column: span 2;
}

@media (min-width: 700px) {
  /* Six images (the board): two even rows of three. */
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1rem;
  }

  /* Seven images (the tablecloth): the main image takes two by two of a five-column grid,
     and the other six fill the two rows beside it. */
  .piece-alt .image-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .piece-alt .image-grid li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.notes {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}

.notes li {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  background: var(--copper);
  transform: rotate(45deg);
  border-radius: 1px;
}

.notes-neel li::before {
  background: var(--madder);
}

@media (min-width: 900px) {
  .notes {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.piece-split {
  display: grid;
  gap: 2rem;
}

.block-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
}

.block-copy p {
  color: var(--ink-2);
  max-width: 34em;
}

.tall-frame {
  width: 100%;
  max-width: 40rem;
}

.tall-core img {
  width: 100%;
}

.wide-frame .bezel-core img {
  width: 100%;
}

.frame-link {
  margin-top: 1rem;
}

.tile-link {
  display: block;
  border-radius: 1rem;
}

@media (min-width: 1000px) {
  .piece-split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  .block-copy {
    position: sticky;
    top: calc(var(--nav-h) + 3rem);
  }

  .tall-frame {
    justify-self: end;
  }
}

/* ------------------------------------------------------------------ samples, sample */

.pdf-grid {
  display: grid;
  gap: 1.25rem;
}

.pdf-card {
  display: grid;
  gap: 1rem;
  justify-items: start;
  height: 100%;
  padding: 0.75rem 0.75rem 1.75rem;
}

.pdf-card > :not(.pdf-cover) {
  margin-inline: 0.75rem;
}

.pdf-card .btn {
  margin-top: 0.5rem;
}

.pdf-cover {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 0 0 1px var(--line);
}

.pdf-cover img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}

.pdf-card:hover .pdf-cover img {
  transform: scale(1.02);
}

.pdf-note {
  margin-top: 2rem;
  max-width: 44em;
}

/* One PDF on its own row: cover and text side by side, not half a grid. */
@media (min-width: 768px) {
  .pdf-grid.pdf-grid-single {
    grid-template-columns: 1fr;
  }

  .pdf-grid-single .pdf-card {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: 1rem;
    align-items: start;
  }

  .pdf-grid-single .pdf-cover {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .pdf-grid-single .pdf-card > :not(.pdf-cover) {
    grid-column: 2;
  }

  .pdf-grid-single .pdf-card > :nth-child(2) {
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .pdf-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pdf-card {
    padding: 0.875rem 0.875rem 2rem;
  }

  .pdf-card > :not(.pdf-cover) {
    margin-inline: 1rem;
  }
}

/* ------------------------------------------------------------------ contact */

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
  height: 100%;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}

.contact-card p:not(.card-kicker):not(.small) {
  color: var(--ink-2);
}

.contact-card .btn {
  margin-top: 0.75rem;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-foot {
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ------------------------------------------------------------------ privacy */

.prose {
  max-width: 42rem;
}

.prose .h4 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

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

.prose p {
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 0.875rem;
}

.prose p.small {
  margin-top: 3rem;
  color: var(--muted);
}

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

.footer {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 26rem;
}

.footer-brand p {
  font-size: 0.9375rem;
}

.footer-links {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

.footer-links a {
  justify-self: start;
  color: var(--ink-2);
  transition: color 0.4s var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-contact {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.footer-contact .eyebrow-plain {
  margin-bottom: 0.25rem;
}

.footer-legal {
  display: grid;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 0.75fr 1fr;
    gap: 3rem;
  }
}

/* ------------------------------------------------------------------ scroll reveal */

/* Only hidden when JavaScript runs (html.js, set by early.js) and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

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

  .stack-back,
  .stack-mid {
    transform: none;
  }
}

@media print {
  .nav-wrap,
  .grain,
  .skip-link {
    display: none;
  }
}

/* ------------------------------------------------------------------ demo: the morning view */

/* Demo data · fictional brand · not a client. Every rule here starts with .demo- or .page-demo, so
   no other page changes. Series colours, Amazon then Shopify in that order everywhere, pass the
   dataviz palette checks against --card in light mode (lightness, chroma, colour-blind separation,
   contrast). Status tints match the sheet's Apps Script, and every status also has an icon and a word. */

.page-demo {
  --demo-amazon: #3a5aa0;
  --demo-shopify: #b4532a;
  --demo-bad: #f3d6cf;
  --demo-warn: #f6e7c8;
  --demo-good: #e3ecdf;
}

.demo-hero-label {
  margin-bottom: 1.5rem;
}

.demo-specs {
  max-width: 46rem;
  margin-top: 2rem;
}

.demo-section {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.demo-section .block-lede {
  margin-top: -0.5rem;
}

.demo-card {
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem);
}

.demo-card-table {
  padding: 0.5rem;
}

.demo-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.demo-top {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1000px) {
  .demo-top {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

/* Yesterday at a glance */

.demo-hero-figure {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.demo-hero-note {
  max-width: 30em;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.demo-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.demo-tile {
  padding: 1rem 1.125rem;
  border-radius: 1.125rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.demo-tile-value {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.demo-tile-note {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.demo-glance-sub {
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

.demo-totals div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

.demo-totals dd {
  font-variant-numeric: tabular-nums;
}

.demo-totals dd .muted {
  font-size: 0.8125rem;
}

.demo-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.demo-channel svg {
  flex: none;
}

.demo-fill-amazon {
  fill: var(--demo-amazon);
}

.demo-fill-shopify {
  fill: var(--demo-shopify);
}

.demo-stroke-amazon {
  stroke: var(--demo-amazon);
}

.demo-stroke-shopify {
  stroke: var(--demo-shopify);
}

/* Status pills: tint, icon and word together */

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.65rem 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}

.demo-pill-bad {
  background: var(--demo-bad);
  box-shadow: inset 0 0 0 1px rgba(169, 58, 44, 0.28);
}

.demo-pill-warn {
  background: var(--demo-warn);
  box-shadow: inset 0 0 0 1px rgba(150, 105, 20, 0.28);
}

.demo-pill-good {
  background: var(--demo-good);
  box-shadow: inset 0 0 0 1px rgba(60, 110, 60, 0.24);
}

.demo-pill-icon {
  flex: none;
}

/* Things to look at */

.demo-issues-count {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.demo-issues {
  list-style: none;
}

.demo-issue {
  display: grid;
  gap: 0.375rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.demo-issue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.demo-issue-check {
  font-size: 0.875rem;
  font-weight: 600;
}

.demo-issue-product {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.demo-issue-detail {
  font-size: 0.9375rem;
}

.demo-sku {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Sales chart: three drawings of the same chart, one per width, so the text keeps its size */

.demo-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.demo-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-chart {
  display: none;
  width: 100%;
  height: auto;
}

/* Four drawings of the same chart, so the text keeps roughly its size at every width. */
.demo-chart-s {
  display: block;
}

@media (min-width: 480px) {
  .demo-chart-s {
    display: none;
  }

  .demo-chart-m {
    display: block;
  }
}

@media (min-width: 720px) {
  .demo-chart-m {
    display: none;
  }

  .demo-chart-l {
    display: block;
  }
}

@media (min-width: 1000px) {
  .demo-chart-l {
    display: none;
  }

  .demo-chart-xl {
    display: block;
  }
}

.demo-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.demo-base {
  stroke: var(--line-strong);
}

.demo-tick {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}

.demo-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-end {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
}

.demo-hit-area {
  fill: transparent;
  pointer-events: all;
}

.demo-cross {
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.demo-dot {
  stroke: var(--card);
  stroke-width: 2;
}

.demo-hit .demo-cross,
.demo-hit .demo-dot,
.demo-tip {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.demo-hit:hover .demo-cross,
.demo-hit:hover .demo-dot,
.demo-hit:hover .demo-tip {
  opacity: 1;
}

.demo-tip {
  pointer-events: none;
}

.demo-tip-bg {
  fill: var(--card);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.demo-tip-head {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
}

.demo-tip-text {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.demo-details {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.demo-details summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.demo-details .demo-scroll {
  max-height: 22rem;
  margin-top: 1rem;
  overflow: auto;
}

/* Tables */

.demo-scroll {
  overflow-x: auto;
  border-radius: calc(var(--radius) - var(--bezel-pad) - 0.5rem);
}

.demo-scroll:focus-visible {
  outline-offset: -2px;
}

.demo-table {
  width: 100%;
  min-width: 54rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.demo-table-compact {
  min-width: 0;
}

.demo-table th,
.demo-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.demo-table thead th {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: normal;
  vertical-align: bottom;
}

.demo-table tbody th {
  min-width: 13rem;
  font-weight: 500;
  white-space: normal;
}

.demo-table tbody tr:last-child th,
.demo-table tbody tr:last-child td {
  border-bottom: 0;
}

.demo-table .num {
  text-align: right;
}

.demo-product,
.demo-table .demo-sku {
  display: block;
}

.demo-row-bad {
  background: rgba(243, 214, 207, 0.4);
}

.demo-row-warn {
  background: rgba(246, 231, 200, 0.5);
}

.demo-cover svg {
  display: inline-block;
  margin-right: 0.625rem;
  vertical-align: middle;
}

.demo-track {
  fill: var(--paper-2);
}

.demo-threshold {
  stroke: var(--ink-2);
  stroke-width: 1.5;
}

.demo-cell-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Below 1000px the two wide tables become one card per row: the product and its status first,
   then each value under its own label, then the bar across the full width. */
@media (max-width: 999px) {
  .demo-stack {
    display: block;
    min-width: 0;
  }

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

  .demo-stack tbody {
    display: block;
  }

  .demo-stack tr {
    display: grid;
    /* The last column holds the status pill, so it is never narrower than the pill. */
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(min-content, 1fr);
    grid-auto-flow: row dense;
    gap: 0.75rem 1rem;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .demo-stack tbody tr:last-child {
    border-bottom: 0;
  }

  .demo-stack tbody th,
  .demo-stack td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .demo-stack tbody th {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .demo-stack .num {
    text-align: left;
  }

  .demo-stack td:not(.demo-lead) {
    align-self: end;
  }

  .demo-stack .demo-lead {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .demo-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .demo-stack .demo-cover {
    grid-column: span 2;
  }
}

@media (min-width: 600px) and (max-width: 999px) {
  .demo-stack tr {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(min-content, 1fr);
  }

  .demo-stack tbody th {
    grid-column: 1 / 4;
  }

  .demo-stack .demo-lead {
    grid-column: 4;
  }
}

.demo-notes {
  margin-top: 1.5rem;
}

/* How it works */

.demo-flow {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.demo-flow li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.demo-flow li p:last-child {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (min-width: 700px) {
  .demo-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .demo-flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.demo-how {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 1000px) {
  .demo-how {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.demo-run {
  list-style: none;
}

.demo-run li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding-block: 0.625rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.demo-run-source {
  flex: none;
  width: 5.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-run-step {
  flex: 1 1 12rem;
}

.demo-run-rows {
  margin-left: auto;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
