:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #77746f;
  --quiet: #aaa59d;
  --line: #dedbd5;
  --paper: #f6f5f1;
  --white: #fffdf8;
  --shadow: 0 18px 54px rgba(22, 20, 18, 0.09);
  --max: 1180px;
  --frame-y: clamp(72px, 9vh, 112px);
  --frame-x: clamp(48px, 6vw, 100px);
  --plate-mat: 12px solid var(--white);
  --plate-shadow: 0 22px 60px rgba(54, 50, 44, 0.08);
  --card-bg: rgba(255, 253, 248, 0.86);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "New York", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

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

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

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

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::selection {
  background: #d7eee8;
}

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

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

button,
input {
  font: inherit;
}

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px clamp(20px, 4vw, 48px);
  color: var(--ink);
  transition: background-color 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-condensed {
  background: rgba(246, 245, 241, 0.86);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
  padding-block: 14px;
}

.brand,
.site-nav,
.header-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 600;
}

.brand-mark {
  width: 20px;
  height: auto;
  display: block;
  color: var(--ink);
}

.site-nav {
  gap: clamp(16px, 4vw, 36px);
  color: var(--muted);
  font-size: 13px;
}

.header-cta {
  justify-self: end;
  min-height: 36px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 160ms ease;
}

.header-cta:hover {
  opacity: 0.86;
}

.hero {
  padding: clamp(120px, 16vh, 170px) clamp(24px, 4vw, 64px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  gap: clamp(48px, 7vh, 80px);
}

.hero-copy {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 0 auto;
}

.hero-copy h1 {
  margin: 0;
  max-width: 30ch;
  font: 500 clamp(30px, 3.6vw, 48px)/1.08 var(--serif);
  letter-spacing: -0.018em;
  white-space: normal;
}

.hero-subhead {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font: 400 clamp(15px, 1.15vw, 18px)/1.5 var(--serif);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 14px/1 var(--sans);
  transition: opacity 160ms ease;
}

.hero-demo {
  width: 100%;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.hero + .manifesto {
  padding-block-start: clamp(20px, 2.4vw, 36px);
}

.hero-cta-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.hero-cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-cta:hover {
  opacity: 0.86;
}

.hero-demo {
  width: 100%;
}

.demo-window {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf6;
  box-shadow: var(--plate-shadow);
  overflow: hidden;
  text-align: left;
  aspect-ratio: 3324 / 2160;
  box-sizing: border-box;
  line-height: 0;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fbfaf6;
}







.beta-form {
  display: grid;
  gap: 10px;
}

.beta-form input {
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
}

.beta-form input:focus {
  border-color: var(--ink);
}

.beta-form button {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.beta-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
}

.beta-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 112px) 0;
}

.compact-band {
  padding-block: clamp(48px, 6vw, 76px);
}

.manifesto {
  border-bottom: 1px solid var(--line);
}

.story-copy h2,
.manifesto h2,
.section-heading h2,
.description-sheet h2,
.library-copy h2,
.beta-copy h2 {
  margin: 0;
  font: 450 clamp(24px, 2.6vw, 38px)/1.1 var(--serif);
  letter-spacing: -0.005em;
}

.story-copy p,
.manifesto p,
.section-heading p,
.library-copy p,
.scene-caption p,
.beta-copy p {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}

.story-copy p {
  max-width: 620px;
}

.manifesto p {
  max-width: 580px;
}

.judgment-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.judgment-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.media-placeholder {
  display: flex;
  min-height: clamp(170px, 18vw, 260px);
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(23, 23, 23, 0.28);
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.035) 25%, transparent 25%) 0 0 / 18px 18px,
    rgba(255, 253, 248, 0.74);
  color: var(--muted);
  padding: clamp(18px, 2.2vw, 28px);
  font-size: 13px;
  line-height: 1.5;
}

.media-placeholder span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font: 500 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.media-placeholder strong {
  display: block;
  max-width: 26ch;
  margin-bottom: 10px;
  color: var(--ink);
  font: 450 clamp(19px, 1.6vw, 24px)/1.18 var(--serif);
}

.media-placeholder p {
  max-width: 32ch;
  margin: 0;
}

.compact-placeholder {
  margin-top: 20px;
  min-height: 132px;
  padding: 16px;
  font-size: 12px;
}

.judgment-board .media-placeholder {
  grid-column: 1 / -1;
  min-height: 190px;
}

.margin-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.judgment-board .notes-plate,
.margin-notes .notes-plate {
  margin: 0;
}

.judgment-board .notes-plate img,
.margin-notes .notes-plate img {
  width: 100%;
  border: var(--plate-mat);
  box-shadow: var(--plate-shadow);
}

.judgment-board .notes-margin,
.margin-notes .notes-margin {
  display: grid;
  gap: 16px;
}

.judgment-board .notes-margin p,
.margin-notes .notes-margin p {
  margin: 0;
  color: var(--ink);
  font: italic 400 15px/1.5 var(--serif);
  letter-spacing: 0.005em;
}

.judgment-board .notes-margin .notes-token,
.margin-notes .notes-margin .notes-token {
  margin-top: 10px;
  color: var(--muted);
  font: 500 13px/1.5 var(--mono);
  font-style: normal;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.centered-heading {
  margin-inline: auto;
  text-align: center;
}

.centered-heading p {
  margin-inline: auto;
}





.product-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flagship-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flagship-copy {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto clamp(38px, 5vw, 70px);
  text-align: center;
}

.flagship-copy h2 {
  margin: 0;
  font: 450 clamp(32px, 3.6vw, 58px)/1.04 var(--serif);
  letter-spacing: -0.008em;
}

.flagship-copy p {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}

.product-copy {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto clamp(34px, 5vw, 64px);
  text-align: center;
}

.product-copy h2 {
  margin: 0;
  font: 450 clamp(28px, 3vw, 44px)/1.08 var(--serif);
  letter-spacing: -0.005em;
}

.product-copy p {
  max-width: 50ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.product-media {
  display: flex;
  min-height: clamp(360px, 48vw, 680px);
  aspect-ratio: 16 / 9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.035) 25%, transparent 25%) 0 0 / 22px 22px,
    #fbfaf6;
  box-shadow: var(--plate-shadow);
  color: var(--muted);
  text-align: center;
}

.product-media span {
  color: var(--muted);
  font: 500 12px/1.2 var(--mono);
  text-transform: uppercase;
}

.product-media strong {
  max-width: 24ch;
  color: var(--ink);
  font: 450 clamp(24px, 2.4vw, 36px)/1.12 var(--serif);
}

.product-media-tall {
  min-height: clamp(430px, 52vw, 740px);
}

.product-media-video {
  width: 100%;
}

.demo-window-library {
  aspect-ratio: 2964 / 2160;
}

.product-media-code {
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.035), transparent 78px),
    #fbfaf6;
}

/* ---- Playground section ---- */

.playground-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.playground-switcher-row {
  display: flex;
  justify-content: center;
  margin: 24px 0 20px;
}

.playground-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.playground-switcher-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: left 320ms ease, width 320ms ease;
}

.playground-tab {
  position: relative;
  z-index: 1;
  font: 500 12px/1 var(--mono);
  border-radius: 999px;
  padding: 8px 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease;
}

.playground-tab.is-active {
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .playground-switcher-thumb {
    transition: none;
  }
}

@media (max-width: 480px) {
  .playground-tab {
    padding: 8px 10px;
    font-size: 11px;
  }
}

.playground-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font: 12px/1.4 var(--mono);
  color: var(--muted);
  transition: opacity 300ms ease;
}



.playground-provenance-refs {
  display: flex;
  align-items: center;
}

.playground-provenance .ref-plate {
  display: inline-block;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(54, 50, 44, 0.10);
  transition: transform 320ms ease, margin-left 320ms ease;
}

.playground-provenance .ref-plate:nth-child(1) { z-index: 4; }
.playground-provenance .ref-plate:nth-child(2) { z-index: 3; }
.playground-provenance .ref-plate:nth-child(3) { z-index: 2; }
.playground-provenance .ref-plate:nth-child(4) { z-index: 1; }

.playground-provenance .ref-plate img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 72px;
  object-fit: cover;
  border-radius: 1.5px;
  transition: max-width 320ms ease;
}

.playground-provenance .ref-plate + .ref-plate {
  margin-left: -44px;
}

.playground-provenance .ref-plate:nth-child(1) { transform: rotate(-5deg); }
.playground-provenance .ref-plate:nth-child(2) { transform: rotate(2.5deg) translateY(2px); }
.playground-provenance .ref-plate:nth-child(3) { transform: rotate(-2.5deg) translateY(-2px); }
.playground-provenance .ref-plate:nth-child(4) { transform: rotate(4deg) translateY(1px); }

.playground-provenance-refs:hover .ref-plate + .ref-plate {
  margin-left: 10px;
}

.playground-provenance-refs:hover .ref-plate img {
  max-width: 120px;
}

.playground-provenance-refs:hover .ref-plate:nth-child(1) { transform: rotate(-1.6deg); }
.playground-provenance-refs:hover .ref-plate:nth-child(2) { transform: rotate(1.2deg); }
.playground-provenance-refs:hover .ref-plate:nth-child(3) { transform: rotate(-1.1deg); }
.playground-provenance-refs:hover .ref-plate:nth-child(4) { transform: rotate(1.5deg); }

@media (hover: none) {
  .playground-provenance .ref-plate + .ref-plate {
    margin-left: 10px;
  }

  .playground-provenance .ref-plate:nth-child(1),
  .playground-provenance .ref-plate:nth-child(3) { transform: rotate(-1.4deg); }

  .playground-provenance .ref-plate:nth-child(2),
  .playground-provenance .ref-plate:nth-child(4) { transform: rotate(1.1deg); }
}

.playground-provenance-label {
  font: 12px/1.4 var(--mono);
  color: var(--muted);
}

.playground-provenance-label strong {
  color: var(--ink);
  font-weight: 600;
}

.playground-wall {
  position: relative;
  height: clamp(480px, 60vh, 560px);
  overflow: hidden;
  margin-top: 4px;
  /* Widen the clip box so edge plates can lift/scale and cast shadows
     without being cut; content width is unchanged. */
  padding-inline: 36px;
  margin-inline: -36px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
}

.playground-wall:hover .masonry-col {
  animation-play-state: paused;
}

.playground-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  transition: opacity 300ms ease;
}

.masonry-col {
  display: grid;
  gap: 12px;
  align-content: start;
  animation: playground-drift 40s linear infinite;
  will-change: transform;
}

.playground-masonry.is-fading {
  opacity: 0;
}

.playground-provenance.is-fading {
  opacity: 0;
}

@keyframes playground-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ---- Plates ---- */

.plate {
  break-inside: avoid;
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(54, 50, 44, 0.06);
  border-radius: 3px;
}


.plate-caption {
  margin: 6px 0 0;
  font: 11px/1.4 var(--mono);
  color: var(--quiet);
}

.plate-inner {
  position: relative;
  border-radius: 1.5px;
  overflow: hidden;
}

.plate-verbs {
  position: absolute;
  bottom: 8px;
  left: 6px;
  right: 6px;
  padding: 5px 8px;
  font: 11px/1.3 var(--mono);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ---- Handoff section ---- */

.handoff-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}

.handoff-copy {
  display: grid;
  gap: 14px;
}

.handoff-copy h2 {
  margin: 0;
  font: 450 clamp(28px, 3vw, 44px)/1.08 var(--serif);
  letter-spacing: -0.005em;
}

.handoff-copy p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

.handoff-terminal {
  width: 100%;
}



.handoff-term {
  background: #1e1c19;
  border: 1px solid #2c2a26;
  border-radius: 10px;
  box-shadow: var(--plate-shadow);
  overflow: hidden;
  text-align: left;
}

.handoff-term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 245, 241, 0.08);
}

.handoff-term-dots {
  display: flex;
  gap: 6px;
}

.handoff-term-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(246, 245, 241, 0.16);
}

.handoff-term-title {
  flex: 1;
  color: rgba(246, 245, 241, 0.45);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.04em;
}

.handoff-term-badge {
  color: rgba(246, 245, 241, 0.4);
  border: 1px solid rgba(246, 245, 241, 0.18);
  border-radius: 4px;
  padding: 3px 6px;
  font: 500 10px/1 var(--mono);
}

.handoff-term-body {
  padding: 22px 20px 26px;
  font: 13px/2 var(--mono);
}

.t-line {
  margin: 0;
  color: #f0eee8;
}

.t-prompt {
  color: #8d877b;
  margin-right: 8px;
}

.t-comment {
  color: #6f6a60;
}

.t-key {
  display: inline-block;
  min-width: 64px;
  color: #8d877b;
}

.t-val {
  color: #e8e4da;
}

.t-task {
  margin-top: 14px;
}

.t-success {
  margin-top: 4px;
  color: #b9d8c6;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 7px;
  vertical-align: -2px;
  background: #b9d8c6;
  animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.js-reveal .t-line {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.js-reveal .t-line.is-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .t-cursor {
    animation: none;
  }

  .js-reveal .t-line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}

.trust-copy h2 {
  margin: 0;
  font: 450 clamp(28px, 3vw, 44px)/1.08 var(--serif);
  letter-spacing: -0.005em;
}

.trust-copy p {
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.trust-points span {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 450 clamp(15px, 1.2vw, 18px)/1.3 var(--serif);
}

.trust-points span:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.roadmap-list {
  border-top: 1px solid var(--line);
}

.roadmap-list article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 2px;
  border-bottom: 1px solid var(--line);
}

.roadmap-list h3 {
  margin: 0;
  font: 450 clamp(19px, 1.8vw, 26px)/1.2 var(--serif);
}

.roadmap-list span {
  color: var(--muted);
  font: 500 12px/1.3 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.roadmap-list article:nth-child(-n+3) span {
  color: var(--ink);
}











.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 500 12px/1.2 var(--mono);
  text-transform: uppercase;
}

.loop-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.loop-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.loop-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.loop-step-num {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
}

.loop-step:not(:first-child) .loop-step-num::before {
  content: "\2192  ";
}

.loop-step h3,
.integration-layers h3 {
  margin: 0;
  font: 450 19px/1.15 var(--serif);
}

.integration-layers p,
.faq p,
.field-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.loop-step-art {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.loop-art-plate {
  overflow: hidden;
}

.loop-art-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 10px solid var(--white);
  box-shadow: var(--plate-shadow);
}

.loop-art-fields {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 16px 18px;
  background: var(--card-bg);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.loop-art-fields span {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font: 500 11px/1.2 var(--mono);
  color: var(--muted);
}

.loop-art-fields span:first-child {
  border-top: 0;
  padding-top: 0;
}

.loop-art-token {
  background: transparent;
}

.loop-art-token code {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font: 500 clamp(12px, 0.95vw, 14px)/1.35 var(--mono);
  color: var(--ink);
}

.loop-art-composition {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.loop-art-composition span {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fbfaf6;
  color: var(--muted);
  font: 500 11px/1.25 var(--mono);
}

.loop-art-file {
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border: 1px solid var(--line);
  background: #fbfaf6;
  font: 11px/1.6 var(--mono);
  overflow: hidden;
}

.loop-file-bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.loop-file-body {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
}

.specimen-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
}

.large-plate {
  margin: 0;
}

.large-plate img,
.library-card img {
  border: 14px solid #fff;
  box-shadow: var(--shadow);
}

.large-plate figcaption,
.library-wall figcaption,
.scene-plate figcaption {
  margin: 14px 0 0;
  color: var(--muted);
  font: 400 13px/1.5 var(--serif);
}

.description-sheet {
  padding-block: 18px;
}

.description-sheet h2 {
  margin-bottom: 28px;
}

.field-list {
  display: grid;
  gap: 20px;
}

.field-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
}

.field-list span {
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
}

.field-list p {
  margin: 0;
}

.token-lab {
  border-top: 1px solid var(--line);
}

.token-lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
}

.description-sheet h3 {
  margin: 0 0 22px;
  font: 450 clamp(22px, 2vw, 30px)/1.15 var(--serif);
  letter-spacing: -0.005em;
}

.registry-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
}

.registry-index {
  display: grid;
  gap: 4px;
  align-content: start;
}

.registry-row {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.registry-row span {
  color: var(--ink);
  font: 500 15px/1.3 var(--mono);
}

.registry-row small {
  color: var(--quiet);
  font-size: 13px;
}

.registry-row.is-active span {
  color: var(--ink);
}

.registry-row.is-active {
  border-left: 1px solid var(--ink);
  padding-left: 14px;
}

.prompt-examples {
  display: grid;
  gap: 10px;
}

.token-search,
.workbench-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-layout,
.compose-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(340px, 0.5fr) minmax(320px, 0.48fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.query-panel {
  display: grid;
  gap: 14px;
}

.panel-label {
  color: var(--muted);
  font: 500 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.query-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.query-pill {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: 500 13px/1.25 var(--mono);
  cursor: pointer;
}

.query-pill.is-active {
  border-color: var(--ink);
  color: var(--ink);
  background: #fbfaf6;
}

.index-preview {
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 0.9fr) minmax(0, 1.45fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.index-row span:first-child,
.index-row span:nth-child(2) {
  color: var(--ink);
  font: 500 12px/1.45 var(--mono);
}

.index-head {
  padding: 10px 0;
}

.index-head span,
.index-head span:first-child,
.index-head span:nth-child(2) {
  color: var(--quiet);
  font: 500 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.compose-section {
  background: #fbfaf6;
}

.source-stack {
  display: grid;
  gap: 12px;
}

.source-card {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

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

.source-card span {
  color: var(--muted);
  font: 500 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.source-card strong {
  color: var(--ink);
  font: 500 15px/1.3 var(--mono);
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.compose-brief {
  border: 1px solid var(--line);
  background: var(--paper);
}

.compose-brief pre {
  border: 0;
  background: transparent;
}

pre {
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fdfbf6;
  color: #2e2c29;
  font: 12px/1.65 var(--mono);
}

pre code {
  display: block;
  padding: 20px;
}

.file-window {
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.file-window-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.2 var(--mono);
}

.file-window-bar span:first-child {
  color: var(--ink);
}

.scene-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.62fr);
  align-items: end;
  gap: clamp(36px, 7vw, 90px);
}

.scene-plate {
  margin: 0;
}

.scene-plate img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border: 14px solid #fff;
  box-shadow: var(--shadow);
}

.scene-caption {
  position: absolute;
  top: clamp(46px, 7vw, 82px);
  right: 0;
  width: min(30vw, 360px);
}

.scene-caption h2 {
  margin: 0;
  font: 450 clamp(24px, 2.6vw, 38px)/1.1 var(--serif);
  letter-spacing: -0.005em;
}

.scene-caption p {
  margin: 18px 0 0;
}

.private-library,
.beta {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 100px);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.proof-list li {
  margin: 0;
}

.library-wall {
  display: grid;
  grid-template-columns: 0.9fr 1.08fr;
  gap: 18px;
  align-items: end;
}

.library-wall figure {
  margin: 0;
}

.library-wall figure:nth-child(1) {
  grid-row: span 2;
}

.library-wall img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border: 12px solid #fff;
  box-shadow: var(--shadow);
}

.library-wall figure:nth-child(1) img {
  aspect-ratio: 0.78 / 1;
}

.library-wall figure:nth-child(3) img,
.library-wall figure:nth-child(4) img {
  aspect-ratio: 1.35 / 1;
}

.next-section,
.future-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.future-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.future-layout .media-placeholder {
  grid-column: 1 / -1;
}

.canvas-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr;
  grid-template-rows: 64px 132px 88px;
  gap: 12px;
  min-height: 308px;
  color: var(--muted);
  font: 500 12px/1 var(--sans);
}

.canvas-preview div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.canvas-preview div:nth-child(1) {
  grid-column: 1 / -1;
}

.canvas-preview div:nth-child(2) {
  grid-row: 2 / 4;
}

.canvas-preview div:nth-child(5) {
  grid-column: 2 / 4;
}

.integration-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.future-layout .integration-layers {
  grid-template-columns: 1fr;
  gap: 20px;
}

.future-layout .integration-layers article {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.integration-layers article {
  min-height: 0;
}

.integration-layers span {
  color: var(--muted);
  font: 500 12px/1.3 var(--sans);
}

.beta-line {
  display: flex;
  align-items: stretch;
  gap: 16px;
  max-width: 520px;
}

.beta-line input {
  flex: 1;
  min-width: 0;
  font: 400 15px/1.2 var(--serif);
}

.beta-note {
  margin: 4px 0 0;
  color: var(--quiet);
  font: 500 11px/1.5 var(--mono);
}

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

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 24px 0;
  font: 450 22px/1.2 var(--serif);
}

.faq p {
  max-width: 760px;
  margin: 0 0 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 13px/1.5 var(--sans);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 48px) clamp(40px, 6vh, 72px);
  }

  .hero-stack {
    gap: clamp(32px, 5vh, 56px);
  }

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

  .integration-layers article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .specimen-visual,
  .judgment-section,
  .judgment-board,
  .token-lab-layout,
  .trust-section,
  .private-library,
  .beta,
  .registry-layout,
  .scene-band,
  .search-layout,
  .compose-layout,
  .workbench-layout,
  .future-layout {
    grid-template-columns: 1fr;
  }

  .handoff-section {
    grid-template-columns: 1fr;
  }

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

  .masonry-col:nth-child(3) {
    display: none;
  }

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

  .judgment-board .media-placeholder {
    position: static;
    width: auto;
  }

  .scene-caption {
    position: static;
    width: auto;
    order: -1;
  }

  
  
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-cta {
    min-height: 34px;
    padding-inline: 12px;
  }

  .hero {
    padding: 72px 16px 24px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .product-copy h2 {
    font-size: 28px;
  }

  .flagship-copy h2,
  .trust-copy h2 {
    font-size: 30px;
  }

  .hero-subhead {
    font-size: 16px;
    max-width: 32ch;
  }

  .beta-line {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  
  .section-band {
    width: min(100% - 28px, var(--max));
    padding-block: 62px;
  }

  .product-copy {
    margin-bottom: 28px;
  }

  .product-media {
    min-height: 280px;
    border-radius: 8px;
  }

  .product-media-tall {
    min-height: 320px;
  }

  
  
  .trust-points {
    grid-template-columns: 1fr;
  }

  .trust-points span:nth-child(odd) {
    border-right: 0;
  }

  
  
  .manifesto {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-copy h2,
  .manifesto h2,
  .section-heading h2,
  .description-sheet h2,
  .library-copy h2,
  .beta-copy h2 {
    font-size: 28px;
  }

  .story-copy p,
  .manifesto p,
  .section-heading p,
  .library-copy p,
  .scene-caption p,
  .beta-copy p {
    font-size: 15px;
  }

  .loop-strip,
  .integration-layers {
    grid-template-columns: 1fr;
  }

  .index-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .integration-layers article,
  .integration-layers article + article {
    min-height: auto;
    padding: 22px 0;
    border-left: 0;
  }

  .loop-step h3,
  .integration-layers h3 {
    margin-top: 0;
  }

  .loop-step-art {
    height: 200px;
  }

  .field-list div,
  .proof-list,
  .library-wall {
    grid-template-columns: 1fr;
  }

  .library-wall figure:nth-child(1) {
    grid-row: auto;
  }

  .scene-plate img,
  .library-wall img,
  .library-wall figure:nth-child(1) img,
  .library-wall figure:nth-child(3) img,
  .library-wall figure:nth-child(4) img {
    aspect-ratio: 1.15 / 1;
  }

  .canvas-preview {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 72px);
    min-height: auto;
  }

  .canvas-preview div,
  .canvas-preview div:nth-child(1),
  .canvas-preview div:nth-child(2),
  .canvas-preview div:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .file-window-bar,
  .site-footer {
    flex-direction: column;
  }

  pre {
    font-size: 12px;
  }
}

/* Section deck: each band fills the viewport so Lenis snap (in main.js) can center it. Desktop-only, motion-safe. Hero is content-natural height (demo extends past it via negative margin). */
@media (min-width: 1021px) and (prefers-reduced-motion: no-preference) {
  .section-band {
    min-height: 100vh;
  }

  .product-loop,
  .flagship-section,
  .playground-section,
  .handoff-section,
  .trust-section,
  .token-lab,
  .workbench-section,
  .token-search,
  .compose-section,
  .registry,
  .next-section,
  .future-section,
  .integrations {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .manifesto {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(120px, 16vh, 200px);
  }

  .hero + .manifesto {
    min-height: auto;
    justify-content: flex-start;
    padding-block: clamp(120px, 16vh, 180px);
  }

  .scene-band,
  .private-library,
  .beta {
    align-content: center;
  }
}

/* Plate sections: image set on paper (paper-frame via section padding + plate-mat on image), with a floating paper-card overlay matching the hero's .style-record language. */
@media (min-width: 1021px) {
  /* Section frame (paper margin all around). */
  .specimen,
  .private-library,
  .margin-notes {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--frame-y) var(--frame-x);
    min-height: 100vh;
    background: var(--paper);
    grid-template-columns: none;
  }

  .specimen { display: flex; align-items: stretch; }
  .private-library { display: block; }
  .margin-notes {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.9fr);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
  }

  /* Plate image (mat + hanging shadow), shared across all plate sections. */
  .specimen .large-plate img,
  .private-library .library-wall img,
  .margin-notes .notes-plate img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    border: var(--plate-mat);
    box-shadow: var(--plate-shadow);
  }

  .margin-notes .notes-plate {
    height: calc(100vh - 2 * var(--frame-y));
  }

  .margin-notes .notes-margin {
    gap: 22px;
    max-width: 280px;
  }

  .margin-notes .notes-margin p {
    font-size: 16px;
    line-height: 1.5;
  }

  .margin-notes .notes-margin .notes-token {
    margin-top: 22px;
    font-size: 13px;
  }

  /* Paper card overlay, shared between specimen and library (matches .style-record). */
  .specimen .description-sheet,
  .private-library .library-copy {
    position: absolute;
    width: min(340px, 30vw);
    padding: 24px 22px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--line);
    z-index: 2;
  }

  .specimen .description-sheet h2,
  .private-library .library-copy h2 {
    margin: 0 0 16px;
    font: 450 clamp(20px, 1.6vw, 24px)/1.18 var(--serif);
    letter-spacing: -0.005em;
  }

  /* --- Specimen specifics: large-plate fills frame; card floats right-center; figcaption is a museum label in bottom paper margin. --- */
  .specimen .specimen-visual {
    position: relative;
    display: block;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 2 * var(--frame-y));
    gap: 0;
  }

  .specimen .large-plate {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .specimen .large-plate figcaption {
    position: absolute;
    left: 0;
    bottom: calc(-1 * clamp(36px, 4.5vh, 56px));
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    color: var(--muted);
    font: 400 13px/1.4 var(--serif);
  }

  .specimen .description-sheet {
    right: clamp(24px, 3vw, 56px);
    top: 50%;
    transform: translateY(-50%);
  }

  .specimen .field-list { gap: 0; }

  .specimen .field-list div {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    grid-template-columns: none;
    gap: 0;
  }

  .specimen .field-list span {
    display: block;
    margin-bottom: 6px;
    font: 500 11px/1.2 var(--mono);
    color: var(--muted);
  }

  .specimen .field-list p {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
  }

  /* --- Library specifics: 4-figure wall fills frame (irregular grid leaves bottom-right empty for the card); figcaptions hidden — info lives in the floating card. --- */
  .private-library .library-wall {
    width: 100%;
    height: calc(100vh - 2 * var(--frame-y));
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .private-library .library-wall figure {
    margin: 0;
    height: 100%;
    min-height: 0;
  }

  .private-library .library-wall figure:nth-child(1) { grid-row: span 2; }

  .private-library .library-wall figcaption { display: none; }

  .private-library .library-copy {
    right: clamp(60px, 7vw, 120px);
    bottom: clamp(84px, 11vh, 140px);
  }

  .private-library .library-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }

  .private-library .proof-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masonry-col {
    animation: none;
  }
}

/* =============================================================
   MOTION SYSTEM — scoped under html.js-anim
   All initial-hidden rules MUST live here so no-JS / reduced-
   motion users see the fully static page unchanged.
   ============================================================= */

/* ---- Scroll progress hairline ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  pointer-events: none;
}

/* ---- Paper grain overlay (static, no js-anim gate needed) ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ---- Section reveal — initial-hidden states (ONLY under html.js-anim) ---- */

/* #judgment */
html.js-anim #judgment .section-kicker {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 0ms;
}
html.js-anim #judgment h2 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 80ms;
}
html.js-anim #judgment .flagship-copy p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 160ms;
}
html.js-anim #judgment .product-media-video {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 240ms;
}

/* #judgment revealed */
html.js-anim #judgment.is-revealed .section-kicker,
html.js-anim #judgment.is-revealed h2,
html.js-anim #judgment.is-revealed .flagship-copy p,
html.js-anim #judgment.is-revealed .product-media-video {
  opacity: 1;
  transform: none;
}

/* #playground */
html.js-anim #playground .section-kicker {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 0ms;
}
html.js-anim #playground h2 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 80ms;
}
html.js-anim #playground .section-heading p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 160ms;
}
html.js-anim #playground .playground-switcher-row,
html.js-anim #playground .playground-provenance,
html.js-anim #playground .playground-wall {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 240ms;
}

/* #playground revealed */
html.js-anim #playground.is-revealed .section-kicker,
html.js-anim #playground.is-revealed h2,
html.js-anim #playground.is-revealed .section-heading p,
html.js-anim #playground.is-revealed .playground-switcher-row,
html.js-anim #playground.is-revealed .playground-provenance,
html.js-anim #playground.is-revealed .playground-wall {
  opacity: 1;
  transform: none;
}

/* #handoff */
html.js-anim #handoff .section-kicker {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 0ms;
}
html.js-anim #handoff h2 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 80ms;
}
html.js-anim #handoff .handoff-copy p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 160ms;
}
html.js-anim #handoff .handoff-terminal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 240ms;
}

/* #handoff revealed */
html.js-anim #handoff.is-revealed .section-kicker,
html.js-anim #handoff.is-revealed h2,
html.js-anim #handoff.is-revealed .handoff-copy p,
html.js-anim #handoff.is-revealed .handoff-terminal {
  opacity: 1;
  transform: none;
}

/* #private */
html.js-anim #private .section-kicker {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 0ms;
}
html.js-anim #private h2 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 80ms;
}
html.js-anim #private .trust-copy p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 160ms;
}
html.js-anim #private .trust-points,
html.js-anim #private .roadmap-list {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 240ms;
}

/* #private revealed */
html.js-anim #private.is-revealed .section-kicker,
html.js-anim #private.is-revealed h2,
html.js-anim #private.is-revealed .trust-copy p,
html.js-anim #private.is-revealed .trust-points,
html.js-anim #private.is-revealed .roadmap-list {
  opacity: 1;
  transform: none;
}

/* #beta */
html.js-anim #beta h2 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 0ms;
}
html.js-anim #beta .beta-copy p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 80ms;
}
html.js-anim #beta .beta-form {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: 240ms;
}

/* #beta revealed */
html.js-anim #beta.is-revealed h2,
html.js-anim #beta.is-revealed .beta-copy p,
html.js-anim #beta.is-revealed .beta-form {
  opacity: 1;
  transform: none;
}

/* ---- section-kicker rule-line (collapses to 0 under js-anim, grows on reveal) ---- */
.section-kicker::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--line);
  margin-left: 10px;
  vertical-align: middle;
}

html.js-anim .section-kicker::after {
  width: 0;
  transition: width 420ms ease 150ms;
}

html.js-anim #judgment.is-revealed .section-kicker::after,
html.js-anim #playground.is-revealed .section-kicker::after,
html.js-anim #handoff.is-revealed .section-kicker::after,
html.js-anim #private.is-revealed .section-kicker::after,
html.js-anim #beta.is-revealed .section-kicker::after {
  width: 28px;
}

/* ---- Hero entrance on load (.is-loaded added to body) ---- */
html.js-anim .hero-copy h1 {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms ease, transform 640ms ease;
  transition-delay: 0ms;
}
html.js-anim .hero-subhead {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms ease, transform 640ms ease;
  transition-delay: 100ms;
}
html.js-anim .hero-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms ease, transform 640ms ease;
  transition-delay: 200ms;
}
html.js-anim .hero-demo .demo-window {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: 250ms;
}

html.js-anim body.is-loaded .hero-copy h1,
html.js-anim body.is-loaded .hero-subhead,
html.js-anim body.is-loaded .hero-actions,
html.js-anim body.is-loaded .hero-demo .demo-window {
  opacity: 1;
  transform: none;
}

/* ---- Deal-the-deck keyframes ---- */

/* Deal-out: plates exit downward with alternating rotation */
html.js-anim .playground-masonry.is-dealing-out .plate {
  opacity: 0;
  transform: translateY(14px) rotate(1deg);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  transition-delay: calc(var(--deal-i, 0) * 22ms);
}

html.js-anim .playground-masonry.is-dealing-out .plate:nth-child(even) {
  transform: translateY(14px) rotate(-1deg);
}

/* Deal-in: plates start hidden above and settle to identity */
html.js-anim .plate.is-dealing-in {
  opacity: 0;
  transform: translateY(-18px) rotate(1.5deg);
  transition: none !important;
}

html.js-anim .plate.is-dealing-in:nth-child(even) {
  transform: translateY(-18px) rotate(-2.5deg);
}

/* Settle window: carries the staggered deal-in transition only while the
   container is settling, so resting plates keep the fast hover transition */
html.js-anim .playground-masonry.is-settling .plate {
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--deal-i, 0) * 55ms);
}

/* ---- Plate hover physics (under html.js-anim) ---- */
html.js-anim .plate {
  position: relative;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

html.js-anim .plate:hover {
  z-index: 2;
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 32px rgba(54, 50, 44, 0.11);
}

/* Caption color on plate hover (harmless at rest, no js-anim gate needed) */
.plate-caption {
  transition: color 260ms ease;
}

.plate:hover .plate-caption {
  color: var(--ink);
}

/* ---- Nav / footer link underlines (static, no js-anim gate) ---- */
.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 240ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-footer a {
  position: relative;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 240ms ease;
}

.site-footer a:hover::after {
  width: 100%;
}

/* ---- CTA ink fills ---- */

/* header-cta: ink liquid-fill */
.header-cta {
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 280ms ease;
  border-radius: inherit;
}

.header-cta span,
.header-cta > * {
  position: relative;
  z-index: 1;
}

/* Wrap the text content of the link in a relative span via CSS z-index approach.
   Since .header-cta is an <a> with text directly inside, we use color transition
   and z-index on the ::before to achieve the fill-over-text effect. */
.header-cta:hover::before {
  transform: scaleY(1);
}

.header-cta:hover {
  opacity: 1;
  color: var(--paper);
}

/* hero-cta-secondary: ink liquid-fill */
.hero-cta-secondary {
  position: relative;
  overflow: hidden;
}

.hero-cta-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 280ms ease;
  border-radius: inherit;
}

.hero-cta-secondary:hover::before {
  transform: scaleY(1);
}

.hero-cta-secondary:hover {
  opacity: 1;
  color: var(--paper);
}

/* Raise text above fill pseudo-element for both CTAs */
.header-cta,
.hero-cta-secondary {
  isolation: isolate;
  transition: color 280ms ease, opacity 160ms ease;
}

/* hero-cta-primary: lift on hover */
.hero-cta-primary {
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 160ms ease;
}

.hero-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
  opacity: 1;
}

/* Remove generic hero-cta opacity hover so fills read cleanly */
.hero-cta-secondary:hover,
.header-cta:hover {
  opacity: 1;
}

/* ---- Playground tab letter-spacing hover (ONLY non-active to protect thumb measurement) ---- */
.playground-tab {
  transition: color 220ms ease, letter-spacing 200ms ease;
}

.playground-tab:not(.is-active):hover {
  letter-spacing: 0.06em;
}
