/* jeffchunn.com: Painted Interface at slide volume. Keynote pacing with hands-on pieces.
   Sections: base, header, shared text, homepage compositions, inner-page kit, footer, motion, responsive.
   Page-specific compositions load separately after this file. */

* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.pi-paper {
  background-image: none;
  position: relative;
  isolation: isolate;
}
body.pi-paper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--pi-paper-tex);
  background-size: 256px 256px;
  opacity: 0.4;
}
.slab.pi-grain::after {
  opacity: 0.4;
}
[hidden] {
  display: none !important;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  margin: 0;
}
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
:is(a, button):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* Frame and slide rhythm */
:root {
  --gutter: clamp(20px, 5.2vw, 72px);
  --frame: 1264px;
}
.frame {
  width: min(var(--frame), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.slide {
  padding-top: clamp(64px, 9vw, 128px);
}
.slide-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 7.5vw, 112px);
  padding-block: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  box-shadow: var(--edge-1);
  font-weight: 650;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.site-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-block: 10px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:not(.pi-btn) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--pi-dur-quick) var(--pi-ease-out);
}
.site-nav a:not(.pi-btn):hover {
  background: var(--paper-sunk);
}
.nav-cta {
  margin-left: 12px;
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 4px 0 var(--birch-edge);
  text-decoration: none;
}
.pi-btn {
  text-decoration: none;
}
.pi-btn-secondary {
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 4px 0 var(--birch-edge);
}
.pi-btn-secondary:active {
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 1px 0 var(--birch-edge);
}
.pi-btn-primary {
  box-shadow:
    inset 0 0 0 1px var(--green-deep),
    0 4px 0 var(--green-deep);
}
.pi-btn-primary:active {
  box-shadow:
    inset 0 0 0 1px var(--green-deep),
    0 1px 0 var(--green-deep);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--birch);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 4px 0 var(--birch-edge);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle-icon {
  position: relative;
  width: 16px;
  height: 12px;
}
.menu-toggle-icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform var(--pi-dur-calm) var(--pi-ease-out),
    top var(--pi-dur-calm) var(--pi-ease-out);
}
.menu-toggle-icon i:first-child {
  top: 1px;
}
.menu-toggle-icon i:last-child {
  top: 8px;
}
.menu-toggle[aria-expanded='true'] .menu-toggle-icon i:first-child {
  top: 4.5px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-toggle-icon i:last-child {
  top: 4.5px;
  transform: rotate(-45deg);
}

/* Shared text pieces */
.lead {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
}
.sub {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 28px;
  color: var(--ink-muted);
}
.bracket {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 28px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 17px;
  font-weight: 650;
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-link::after {
  content: '';
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10.6h10.4l-4-4 2-2 7.4 7.4-7.4 7.4-2-2 4-4H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10.6h10.4l-4-4 2-2 7.4 7.4-7.4 7.4-2-2 4-4H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform var(--pi-dur-quick) var(--pi-ease-out);
}
.text-link:hover::after {
  transform: translateX(3px);
}
.piece {
  position: absolute;
}

/* Slabs: the one strong block per slide */
.slab {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 88px);
}
.slab-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12em;
}
.slab-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 17px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.slab-link .icon {
  transition: transform var(--pi-dur-quick) var(--pi-ease-out);
}
.slab-link:hover .icon {
  transform: translateX(3px);
}
.toggle-knob {
  position: absolute;
  top: 10.7%;
  right: 5.2%;
  width: 37.9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}
.knob-sun {
  background: var(--sunflower);
}

/* 1. Title slide */
.slide-title {
  padding-top: clamp(32px, 5vw, 72px);
}
.title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.title-copy h1 {
  font-size: clamp(56px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}
.title-copy .lead {
  max-width: 32ch;
  text-wrap: pretty;
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(32px, 3.4vw, 48px);
}
.disc-sun {
  left: 0;
  top: 0;
  width: 25%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sunflower);
}
.tile-orchid {
  left: 7%;
  bottom: 0;
  width: 15%;
  rotate: -10deg;
  aspect-ratio: 1;
  border-radius: 32px;
  background: var(--orchid);
}

/* 2. Statement slide */
.statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(16px, 3vw, 40px);
}
.statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  max-width: 1120px;
}
.statement .mark {
  font-family: var(--font-mono);
  font-size: clamp(72px, 11vw, 160px);
  line-height: 1;
  color: var(--green-deep);
  flex: none;
  translate: 0 -0.04em;
}
.statement-text {
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.statement-sub {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 680px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--ink-muted);
}

/* 3. Offers: blue slab */
.slab-blue {
  background: var(--blue);
  color: var(--ink);
  padding-top: clamp(40px, 7vw, 104px);
}
.offers-disc {
  right: -90px;
  top: -90px;
  width: clamp(200px, 26vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}
.offers-toggle {
  right: clamp(32px, 6vw, 88px);
  top: clamp(140px, 14vw, 200px);
  width: clamp(140px, 15vw, 216px);
  aspect-ratio: 232 / 112;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 0 var(--blue-deep);
}
.slab-blue .slab-title {
  position: relative;
  max-width: 9em;
}
.offers {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7.5vw, 112px);
}
.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 32px;
  border-top: 2px solid #221c1740;
}
.offer-peg {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--blue-deep);
}
.offer h3 {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.offer p {
  max-width: 30em;
}
.offer-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  width: 100%;
  font-weight: 600;
  font-size: 17px;
}
.offer-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid #221c1729;
}
.offer-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--paper);
  flex: none;
}
.offer .slab-link {
  margin-top: auto;
}

/* 4. Method: steps rail */
.content-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.content-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14em;
}
.rail {
  --rail-y: 28px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}
.rail::before,
.rail::after {
  content: '';
  position: absolute;
  left: 28px;
  right: 12.5%;
  top: calc(var(--rail-y) - 5px);
  height: 10px;
  border-radius: 5px;
  background: var(--birch);
}
.rail::after {
  background: var(--green);
  transform-origin: left;
  transition: transform 1400ms var(--pi-ease-out);
}
.rail-step {
  position: relative;
}
.rail-peg {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    inset 0 0 0 3px var(--green-deep),
    0 4px 0 var(--green-deep);
  transition:
    background-color var(--pi-dur-calm) var(--pi-ease-out),
    box-shadow var(--pi-dur-calm) var(--pi-ease-out);
}
.peg-num {
  grid-area: 1 / 1;
  font-size: 20px;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--pi-dur-quick) var(--pi-ease-out);
}
.peg-check {
  grid-area: 1 / 1;
  width: 28px;
  height: 28px;
  fill: var(--ink);
  transition:
    opacity var(--pi-dur-quick) var(--pi-ease-out),
    scale var(--pi-dur-calm) var(--pi-ease-settle);
}
.rail-step h3 {
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.rail-step p {
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 24em;
}
/* Before the rail scrolls in (motion only): birch pegs with numbers. */
.motion .rail:not(.is-in)::after {
  transform: scaleX(0);
}
.motion .rail:not(.is-in) .rail-peg {
  background: var(--birch);
  box-shadow:
    inset 0 0 0 3px var(--line-strong),
    0 4px 0 var(--birch-edge);
}
.motion .rail:not(.is-in) .peg-num {
  opacity: 1;
}
.motion .rail:not(.is-in) .peg-check {
  opacity: 0;
  scale: 0.4;
}
.motion .rail-step:nth-child(2) .rail-peg,
.motion .rail-step:nth-child(2) .peg-check,
.motion .rail-step:nth-child(2) .peg-num {
  transition-delay: 380ms;
}
.motion .rail-step:nth-child(3) .rail-peg,
.motion .rail-step:nth-child(3) .peg-check,
.motion .rail-step:nth-child(3) .peg-num {
  transition-delay: 760ms;
}
.motion .rail-step:nth-child(4) .rail-peg,
.motion .rail-step:nth-child(4) .peg-check,
.motion .rail-step:nth-child(4) .peg-num {
  transition-delay: 1140ms;
}

/* 5. Projects: sunflower slab */
.slab-sun {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--sunflower);
}
.projects-copy .slab-title {
  font-size: clamp(36px, 4.2vw, 60px);
  margin-bottom: 24px;
}
.projects-copy p {
  font-size: 19px;
  max-width: 28em;
}
.slab-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.window-frame {
  position: relative;
  border: 2px solid var(--birch-edge);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: 0 8px 0 var(--sunflower-deep);
  overflow: hidden;
  rotate: 1.5deg;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  padding: 0 8px 0 20px;
  background: var(--birch);
}
.win-title {
  flex: 1;
  font-size: 15px;
  font-weight: 650;
}
.win-ctl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}
.win-ctl svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
}
.window-frame img {
  width: 100%;
  height: auto;
}

/* 6. Case study */
.slide-case .content-head h2 {
  max-width: 15em;
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.case-art {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--paper-sunk);
}
.case-art img {
  width: 100%;
  height: auto;
}
.case-copy > p {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 28em;
}
.board {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.board li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.board .pi-status {
  align-self: center;
}
.board-note {
  font-size: 17px;
  color: var(--ink-muted);
}
.board-note strong {
  color: var(--ink);
  font-weight: 650;
}
.quote-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 28px 32px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.quote-slot .bracket {
  color: var(--green-deep);
}
.quote-hint {
  flex: 1 1 360px;
  font-size: 16px;
  color: var(--ink-muted);
}

/* 8. About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about-copy .lead {
  margin-bottom: 16px;
}
.about-copy > p:not(.lead) {
  color: var(--ink-muted);
  max-width: 32em;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 16px;
  max-width: 520px;
}
.stat-tile {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
}
.stat-tile .pi-stat-value {
  font-size: clamp(48px, 4.4vw, 64px);
}
.stat-tile .pi-stat-label {
  font-size: 16px;
  line-height: 22px;
  color: var(--ink-muted);
}

/* Closing slide: green section slab */
.slide-close {
  padding-bottom: clamp(64px, 8vw, 112px);
}
.slab-green-close {
  background: var(--green);
  padding-top: clamp(56px, 9vw, 140px);
}
.close-disc {
  right: -80px;
  top: -80px;
  width: clamp(200px, 25vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}
.close-toggle {
  right: clamp(32px, 6vw, 88px);
  bottom: clamp(32px, 6vw, 88px);
  width: clamp(140px, 15vw, 216px);
  aspect-ratio: 232 / 112;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 0 var(--green-deep);
}
.close-title {
  position: relative;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 10em;
  text-wrap: balance;
}
.close-sub {
  position: relative;
  margin-top: 24px;
  font-size: clamp(18px, 1.7vw, 22px);
  max-width: 32em;
}
.close-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}
.close-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Hero stage: the Person-in-the-loop machine on a painted composition */
.hero-stage {
  position: relative;
  padding: 56px 28px 56px 44px;
}
.stage-slab {
  left: 20%;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  background: var(--green);
}
.machine-wrap {
  position: relative;
  z-index: 1;
}
.machine {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow:
    0 8px 0 var(--birch-edge),
    inset 0 0 0 2px #cdb48c99;
  rotate: -1.5deg;
}
.machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px 20px;
}
.machine-head .pi-toggle {
  font-weight: 650;
}
.machine-hint {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: opacity var(--pi-dur-calm) var(--pi-ease-out);
}
.machine.was-flipped .machine-hint {
  opacity: 0;
}
.machine-sheet {
  list-style: none;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: 0 6px 0 var(--birch-edge);
  display: grid;
  gap: 14px;
}
.machine-sheet > li {
  position: relative;
}
.machine-sheet > li + li::before {
  content: '';
  position: absolute;
  left: 39px;
  top: -16px;
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: var(--birch-edge);
}
.m-piece {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 2px var(--line),
    0 3px 0 var(--birch-edge);
}
.m-piece strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}
.m-piece small {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-muted);
  margin-top: 2px;
}
.m-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
}
.m-tile svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.m-request .m-tile {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--blue-deep);
}
.m-ai .m-tile {
  background: var(--orchid);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--orchid-deep);
}
.m-person .m-tile {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--green-deep);
}
.m-slot {
  min-height: 80px;
  border-radius: 22px;
  background: var(--paper-sunk);
  box-shadow: inset 0 0 0 2px var(--line);
}
.m-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sunflower-deep);
}
.m-empty svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}
.m-person {
  position: absolute;
  inset: 0;
  transition:
    transform 700ms var(--pi-ease-settle),
    opacity 260ms var(--pi-ease-out);
}
.machine[data-on='false'] .m-person {
  transform: translate(52%, 96px) rotate(9deg);
  opacity: 0;
  transition:
    transform 420ms var(--pi-ease-out),
    opacity 300ms var(--pi-ease-out) 60ms;
}
.machine[data-on='false'] .m-ai .m-tile {
  animation: hum 1.6s var(--pi-ease-out) infinite;
}
@keyframes hum {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateY(-3px) rotate(-3deg);
  }
}
.machine-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 20px 6px 2px;
  min-height: 56px;
}
.status-note {
  font-size: 17px;
  color: var(--ink-muted);
}
.machine[data-on='true'] [data-state='off'],
.machine[data-on='false'] [data-state='on'] {
  display: none;
}

/* 7. Learn: the toy shelf */
.learn-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.shelf {
  position: relative;
}
.shelf-row {
  list-style: none;
  padding: 0 24px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.shelf-row > li {
  height: 100%;
}
.toy {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  padding: 28px 26px 26px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--pi-dur-quick) var(--pi-ease-out);
}
.toy:hover {
  transform: translateY(-6px) rotate(-1deg);
}
.toy:active {
  transform: translateY(2px);
}
.toy strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: auto 0 10px;
}
.toy > span:not(.toy-glyph) {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 18px;
}
.toy em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.toy em .icon {
  width: 18px;
  height: 18px;
}
.toy-sun {
  background: var(--sunflower);
  box-shadow: 0 6px 0 var(--sunflower-deep);
}
.toy-blue {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--blue-deep);
}
.toy-ver {
  background: var(--vermilion);
  box-shadow: 0 6px 0 var(--vermilion-deep);
}
.toy-orchid {
  background: var(--orchid);
  box-shadow: 0 6px 0 var(--orchid-deep);
}
.toy-green {
  background: var(--green);
  box-shadow: 0 6px 0 var(--green-deep);
}
.toy-paper {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  box-shadow: var(--edge-2);
}
.toy-glyph > svg {
  display: block;
  width: 108px;
  height: 72px;
}
.shelf.featured-toys .shelf-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.more-toys-label {
  margin: 54px 0 24px;
  color: var(--ink-muted);
  font-size: 18px;
}
@media (max-width: 1180px) {
  .shelf.featured-toys .shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .shelf.featured-toys .shelf-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.toy-glyph {
  position: relative;
  display: block;
  height: 64px;
  margin-bottom: 28px;
}
.toy-glyph i {
  position: absolute;
  display: block;
}
.glyph-lever i:first-child {
  left: 0;
  bottom: 4px;
  width: 88px;
  height: 28px;
  border-radius: 14px;
  background: var(--paper-raised);
  box-shadow: 0 3px 0 var(--sunflower-deep);
}
.glyph-lever i:last-child {
  left: 56px;
  top: 0;
  width: 10px;
  height: 52px;
  border-radius: 5px;
  background: var(--ink);
  transform: rotate(24deg);
  transform-origin: bottom center;
}
.glyph-lever i:last-child::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.glyph-cards i {
  width: 44px;
  height: 56px;
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: 0 3px 0 var(--blue-deep);
  top: 4px;
}
.glyph-cards i:nth-child(1) {
  left: 0;
  transform: rotate(-10deg);
}
.glyph-cards i:nth-child(2) {
  left: 30px;
  transform: rotate(2deg);
  background: var(--sunflower);
}
.glyph-cards i:nth-child(3) {
  left: 62px;
  transform: rotate(12deg);
}
.glyph-sort i {
  width: 52px;
  height: 52px;
  top: 6px;
}
.glyph-sort i:first-child {
  left: 0;
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: 0 3px 0 var(--vermilion-deep);
}
.glyph-sort i:last-child {
  left: 40px;
  border-radius: 12px;
  background: var(--ink);
  transform: rotate(10deg);
}
.glyph-flow i {
  height: 26px;
  border-radius: 13px;
}
.glyph-flow i:first-child {
  left: 0;
  top: 6px;
  width: 96px;
  background: var(--paper-raised);
  box-shadow: 0 3px 0 var(--orchid-deep);
}
.glyph-flow i:last-child {
  left: 28px;
  top: 38px;
  width: 64px;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.shelf-plank {
  position: relative;
  z-index: 0;
  height: 40px;
  margin-top: -14px;
  border-radius: 20px;
  box-shadow:
    0 8px 0 var(--birch-edge),
    inset 0 0 0 2px #cdb48c99;
}
.learn-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 40px;
}

/* 8. About: orchid portrait frame with the three chips */
.portrait {
  position: relative;
  padding: 0 28px 28px 0;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--orchid);
  box-shadow: 0 8px 0 var(--orchid-deep);
  padding: 28px;
  rotate: -2deg;
}
.portrait-frame::after {
  opacity: 0.35;
}
.portrait-slot {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--paper-sunk);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.portrait-slot .bracket {
  color: var(--orchid-deep);
}
.portrait-slot small {
  font-size: 15px;
  color: var(--ink-muted);
}
.portrait-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.chip-a {
  right: -8px;
  top: 18%;
  background: var(--sunflower);
  box-shadow: 0 4px 0 var(--sunflower-deep);
  rotate: 3deg;
}
.chip-b {
  right: 30px;
  top: 46%;
  background: var(--paper-raised);
  box-shadow:
    0 4px 0 var(--birch-edge),
    inset 0 0 0 2px var(--line-strong);
  rotate: -3deg;
}
.chip-c {
  right: -14px;
  bottom: 16%;
  background: var(--green);
  box-shadow: 0 4px 0 var(--green-deep);
  rotate: 2deg;
}

/* Inner-page kit ------------------------------------------------------------ */
/* Current page in the navigation */
.site-nav a[aria-current='page']:not(.pi-btn) {
  background: var(--paper-sunk);
  box-shadow: inset 0 -3px 0 var(--green);
}

/* Long-reading pages: softer grain behind running text */
body.reading.pi-paper::before {
  opacity: 0.2;
}
body.reading .pi-grain::after {
  opacity: 0.22;
}

/* Page hero: copy on the left, an optional painted note on the right */
.page-hero {
  padding-block: clamp(24px, 4vw, 56px) 0;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.page-hero-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: clamp(16px, 2vw, 28px);
  font-size: 15px;
  font-weight: 650;
  color: var(--green-deep);
  text-decoration: none;
}
.breadcrumb:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.breadcrumb::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  transform: scaleX(-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10.6h10.4l-4-4 2-2 7.4 7.4-7.4 7.4-2-2 4-4H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10.6h10.4l-4-4 2-2 7.4 7.4-7.4 7.4-2-2 4-4H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.page-hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  max-width: 13em;
  text-wrap: balance;
}
.page-hero .lead {
  max-width: 34ch;
  text-wrap: pretty;
}
.page-hero .lead + p {
  margin-top: 16px;
  max-width: 38em;
  color: var(--ink-muted);
}
.page-hero .actions {
  margin-top: clamp(28px, 3vw, 40px);
}

/* Painted note: an enamel card with one short statement */
.hero-note {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-xl);
  rotate: 2deg;
}
.hero-note .note-statement {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-note p,
.hero-note li {
  font-size: 17px;
  line-height: 1.5;
}
.hero-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-note li + li {
  margin-top: 6px;
}
.hero-note .note-disc {
  position: absolute;
  z-index: -1;
  right: -28px;
  top: -32px;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
}
.hero-note.tilt-left {
  rotate: -2deg;
}
.hero-note.pi-grain::after {
  opacity: 0.35;
}

/* Enamel fills, each with its correct text color and deep edge */
.fill-green {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--green-deep);
}
.fill-blue {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--blue-deep);
}
.fill-sun {
  background: var(--sunflower);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--sunflower-deep);
}
.fill-orchid {
  background: var(--orchid);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--orchid-deep);
}
.fill-ver {
  background: var(--vermilion);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--vermilion-deep);
}
.fill-birch {
  background: var(--birch);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--birch-edge);
}
.disc-sun-fill {
  background: var(--sunflower);
}
.disc-green-fill {
  background: var(--green);
}
.disc-blue-fill {
  background: var(--blue);
}
.disc-orchid-fill {
  background: var(--orchid);
}
.disc-ver-fill {
  background: var(--vermilion);
}
.disc-paper-fill {
  background: var(--paper);
}
.fill-blue a,
.slab-blue a {
  color: var(--ink);
}

/* Sections */
.section {
  padding-top: clamp(72px, 9vw, 128px);
}
.section.is-tight {
  padding-top: clamp(48px, 6vw, 80px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4.4vw, 64px);
}
.section-head > div {
  max-width: 52rem;
}
.section-head h2,
.section-title {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15em;
  text-wrap: balance;
}
.section-head .sub,
.section-head h2 + p {
  margin-top: 20px;
}
.section-head > .text-link {
  flex: none;
}
.section-head h2 + p:not(.sub) {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
}

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}
.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));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split.is-center {
  align-items: center;
}
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.split > * {
  min-width: 0;
}

/* Panels: raised paper sheets with a solid birch edge */
.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
}
.panel-sunk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper-sunk);
}
.panel-birch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
}
.panel h3,
.panel-sunk h3,
.panel-birch h3 {
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.panel p,
.panel li,
.panel-sunk p,
.panel-sunk li {
  font-size: 17px;
  line-height: 1.55;
}
.panel > p,
.panel-sunk > p {
  color: var(--ink-muted);
}
.panel h4,
.panel-sunk h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
}
.panel ul,
.panel-sunk ul {
  padding-left: 20px;
  margin: 8px 0 0;
  color: var(--ink-muted);
}
.panel ul li + li,
.panel-sunk ul li + li {
  margin-top: 6px;
}
.panel .text-link,
.panel-sunk .text-link {
  margin-top: auto;
  padding-top: 16px;
}
.panel > :last-child,
.panel-sunk > :last-child {
  margin-bottom: 0;
}

/* Painted pegs: numbered tiles that carry an enamel and a number, never color alone */
.peg {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.peg.is-round {
  border-radius: 50%;
}
.peg-green {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--green-deep);
}
.peg-blue {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--blue-deep);
}
.peg-sun {
  background: var(--sunflower);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--sunflower-deep);
}
.peg-orchid {
  background: var(--orchid);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--orchid-deep);
}
.peg-ver {
  background: var(--vermilion);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--vermilion-deep);
}
.peg-birch {
  background: var(--birch);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 2px var(--line-strong),
    0 3px 0 var(--birch-edge);
}

/* Lists of points with a painted marker */
.point-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.point-list > li,
.point-list > div {
  position: relative;
  padding: 22px 0 22px 36px;
  border-bottom: 1px solid var(--line);
}
.point-list > li::before,
.point-list > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--green);
  box-shadow: 0 2px 0 var(--green-deep);
}
.point-list > :nth-child(3n + 2)::before {
  background: var(--blue);
  box-shadow: 0 2px 0 var(--blue-deep);
}
.point-list > :nth-child(3n)::before {
  background: var(--sunflower);
  box-shadow: 0 2px 0 var(--sunflower-deep);
}
.point-list h3 {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  margin-bottom: 6px;
}
.point-list p {
  font-size: 17px;
  color: var(--ink-muted);
}

/* Frequently asked questions */
.faq {
  max-width: 60rem;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 16px;
  font-size: 19px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--birch)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23221C17' d='M10.6 5h2.8v5.6H19v2.8h-5.6V19h-2.8v-5.6H5v-2.8h5.6z'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: rotate var(--pi-dur-calm) var(--pi-ease-out);
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details > :not(summary) {
  max-width: 46rem;
  padding-bottom: 24px;
  color: var(--ink-muted);
}
.faq details p + p {
  margin-top: 12px;
}

/* Content slots the owner fills later: a dashed sheet with a bracket kicker */
.placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.placeholder .bracket {
  color: var(--green-deep);
}
.placeholder p:not(.bracket) {
  font-size: 16px;
  color: var(--ink-muted);
}

/* Reading column for stories and notes */
.prose {
  max-width: 42rem;
}
.prose > * + * {
  margin-top: 20px;
}
.prose h2 {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 56px;
}
.prose h3 {
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.2;
  margin-top: 40px;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  font-size: 19px;
  line-height: 1.7;
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose li + li {
  margin-top: 8px;
}
.prose .lead {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
}
.prose a:not(.text-link):not(.pi-btn) {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration-thickness: 2px;
}

.inline-link {
  color: var(--green-deep);
  font-weight: 650;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.knob-paper {
  background: var(--paper);
}

/* Tags row */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Forms (contact) */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field label {
  font-size: 16px;
  font-weight: 650;
}
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
}
.field select {
  cursor: pointer;
}
.field textarea {
  resize: vertical;
  min-height: 160px;
}
.field textarea::placeholder {
  color: var(--ink-faint);
}
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.form-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-muted);
}
.email-ready {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.email-ready a {
  overflow-wrap: anywhere;
}

/* Shared closing slab (every page ends here) */
.closing {
  padding-block: clamp(72px, 9vw, 128px) clamp(64px, 8vw, 112px);
}

/* Footer */
.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-grid p {
  color: var(--ink-muted);
}
.footer-grid a {
  display: flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.footer-grid a:hover {
  text-decoration: underline;
}
.footer-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink) !important;
  margin-bottom: 8px;
}
.footer-head {
  font-weight: 650;
  color: var(--ink) !important;
  margin-bottom: 8px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}

/* Settle: one moment per slide, only when motion is welcome */
.motion [data-settle-group]:not(.is-in) [data-settle],
.motion [data-settle-group][data-settle]:not(.is-in) {
  opacity: 0;
}
.motion [data-settle-group].is-in [data-settle],
.motion [data-settle-group].is-in[data-settle] {
  animation: pi-settle var(--pi-dur-settle) var(--pi-ease-settle) both;
  animation-delay: var(--d, 0s);
}
.motion [data-settle-group]:focus-within [data-settle] {
  opacity: 1;
  animation: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .menu-toggle:not([hidden]) {
    display: inline-flex;
  }
  .js .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--paper-raised);
    box-shadow:
      inset 0 0 0 1px var(--line),
      var(--edge-2);
  }
  .js .site-nav.is-open {
    display: flex;
    animation: pi-pop-in var(--pi-dur-calm) var(--pi-ease-out);
  }
  .js .site-nav a:not(.pi-btn) {
    justify-content: flex-start;
  }
  .js .nav-cta {
    margin: 8px 0 4px;
  }
  .header-inner {
    position: relative;
  }
  .site-nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 860px) {
  .title-grid {
    grid-template-columns: 1fr;
  }
  .offers,
  .case-grid,
  .learn-head,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .slab-sun {
    grid-template-columns: 1fr;
  }
  .window-frame {
    rotate: 0deg;
  }
  .rail {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .rail::before,
  .rail::after {
    display: none;
  }
  .about-grid {
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .slab {
    border-radius: 40px;
  }
  .title-copy h1 {
    font-size: clamp(42px, 13.4vw, 60px);
  }
  .actions .pi-btn-lg,
  .slab-actions .pi-btn-lg,
  .close-actions .pi-btn-lg {
    width: 100%;
    height: auto;
    min-height: 60px;
    padding-block: 14px;
    font-size: 18px;
    white-space: normal;
  }
  .statement {
    gap: 6px;
  }
  .statement .mark {
    font-size: 64px;
  }
  .statement-text {
    font-size: clamp(30px, 8.6vw, 40px);
  }
  .offers-disc {
    right: -70px;
    top: -70px;
    width: 170px;
  }
  .offers-toggle {
    display: none;
  }
  .slab-blue .slab-title {
    max-width: 7em;
  }
  .rail {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .rail-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }
  .rail-peg {
    grid-row: 1 / 3;
    margin: 0;
  }
  .board li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .quote-slot {
    padding: 24px;
  }
  .close-toggle {
    display: none;
  }
  .close-disc {
    width: 160px;
    right: -60px;
    top: -60px;
  }
  .close-title {
    max-width: 8em;
  }
  .slide-foot span:first-child {
    max-width: 70%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: homepage machine, shelf, and portrait */
@media (max-width: 1180px) {
  .shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .shelf-plank {
    display: none;
  }
  .toy {
    min-height: 280px;
  }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .title-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
  .title-copy h1 {
    font-size: clamp(52px, 5.4vw, 60px);
  }
  .machine-hint {
    display: none;
  }
  .machine-head .pi-toggle-lg {
    font-size: 18px;
    white-space: nowrap;
  }
  .hero-stage {
    padding: 44px 16px 44px 28px;
  }
  .m-piece small {
    display: none;
  }
}
@media (max-width: 860px) {
  .hero-stage {
    justify-self: center;
    width: 100%;
    max-width: 600px;
  }
  .portrait {
    max-width: 440px;
  }
}
@media (max-width: 560px) {
  .hero-stage {
    padding: 36px 6px 40px 14px;
  }
  .stage-slab {
    left: 14%;
  }
  .disc-sun {
    width: 84px;
  }
  .tile-orchid {
    width: 52px;
    right: -4px;
    border-radius: 18px;
  }
  .machine {
    padding: 16px;
    border-radius: 40px;
    rotate: -1deg;
  }
  .machine-head {
    flex-wrap: wrap;
    padding: 0 2px 14px;
  }
  .machine-head .pi-toggle-lg {
    font-size: 18px;
  }
  .machine-hint {
    display: none;
  }
  .machine-sheet {
    padding: 12px;
    gap: 12px;
    border-radius: 24px;
  }
  .machine-sheet > li + li::before {
    left: 32px;
  }
  .m-piece {
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }
  .m-tile {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .m-tile svg {
    width: 22px;
    height: 22px;
  }
  .m-piece strong {
    font-size: 17px;
  }
  .m-piece small {
    font-size: 14px;
  }
  .m-slot {
    min-height: 88px;
    border-radius: 18px;
  }
  .m-empty {
    font-size: 15px;
    padding: 0 16px;
  }
  .status-note {
    font-size: 16px;
  }
  .shelf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .toy {
    min-height: 0;
  }
  .toy strong {
    margin-top: 0;
  }
  .portrait {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
  }
  .portrait-frame {
    flex: 1 0 100%;
    padding: 18px;
    border-radius: 40px;
    rotate: -1deg;
    margin-bottom: 16px;
    aspect-ratio: 1;
  }
  .portrait-chip {
    position: static;
    font-size: 20px;
    min-height: 46px;
    padding: 0 18px;
  }
}

/* Responsive: inner-page kit */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .page-hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-note {
    max-width: 520px;
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-note {
    rotate: 0deg;
    border-radius: 40px;
  }
  .hero-note.tilt-left {
    rotate: 0deg;
  }
  .hero-note .note-disc {
    width: 64px;
    right: -10px;
    top: -18px;
  }
  .page-hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }
  .placeholder {
    padding: 20px;
  }
  .prose p,
  .prose li {
    font-size: 18px;
  }
}

/* Page compositions load from their own stylesheets after this shared kit. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rail::after {
    transition: none;
  }
  .machine[data-on='false'] .m-ai .m-tile {
    animation: none;
  }
  .m-person,
  .machine[data-on='false'] .m-person,
  .toy {
    transition: none;
  }
}
