:root {
  --bg: #fffaf7;
  --bg-deep: #f7eee9;
  --ink: #241716;
  --muted: #6e5149;
  --quiet: #96756c;
  --line: rgba(117, 71, 61, 0.16);
  --line-strong: rgba(223, 114, 85, 0.34);
  --coral: #df7255;
  --peach: #f6b09b;
  --rose: #d99684;
  --amber: #f1a45d;
  --online: #1fa966;
  --panel: rgba(250, 252, 255, 0.78);
  --page-pad: clamp(28px, 4vw, 76px);
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(
      circle at 84% 10%,
      rgba(246, 176, 155, 0.26),
      transparent 27%
    ),
    radial-gradient(circle at 8% 60%, rgba(223, 114, 85, 0.13), transparent 30%),
    var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.shell {
  width: 100%;
  margin-inline: 0;
  padding-inline: var(--page-pad);
}
.page-noise {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: radial-gradient(
    rgba(116, 73, 74, 0.15) 0.5px,
    transparent 0.6px
  );
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
.ascii-rain {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.36;
  mix-blend-mode: multiply;
}
.ambient {
  position: absolute;
  z-index: -1;
  width: 46rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.ambient-one {
  top: 9rem;
  right: -27rem;
  background: rgba(223, 114, 85, 0.16);
}
.ambient-two {
  top: 92rem;
  left: -31rem;
  background: rgba(246, 176, 155, 0.2);
}

.spotlight-surface {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
}
.spotlight-surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24px;
  border-radius: 28px;
  background: radial-gradient(
    360px circle at var(--spot-x) var(--spot-y),
    rgba(246, 176, 155, 0.14),
    rgba(223, 114, 85, 0.035) 42%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.spotlight-surface:hover::after {
  opacity: 1;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px var(--page-pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.05em;
}
.brand-gem,
.center-gem {
  position: relative;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 155, 0.64);
  border-radius: 9px 12px 8px 11px;
  background: linear-gradient(
    145deg,
    rgba(142, 167, 255, 0.32),
    rgba(53, 106, 230, 0.16)
  );
  box-shadow:
    inset 0 0 13px rgba(255, 180, 134, 0.16),
    0 0 25px rgba(238, 114, 86, 0.14);
  transform: rotate(45deg);
}
.brand-gem {
  width: 29px;
  height: 29px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
.brand-mark {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(143, 56, 41, 0.22));
}
.brand-gem-base {
  fill: #b74d31;
}
.brand-gem-light {
  fill: #ed8a67;
}
.brand-gem-mid {
  fill: #d86342;
}
.brand-gem-dark {
  fill: #8f3829;
}
.brand-gem circle {
  fill: #f8b69e;
}
.brand-gem i,
.center-gem i {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 235, 222, 0.8);
  border-radius: 3px;
  background: rgba(189, 215, 149, 0.56);
}
.brand-gem i:nth-child(1),
.center-gem i:nth-child(1) {
  transform: translate(-5px, -3px);
}
.brand-gem i:nth-child(2),
.center-gem i:nth-child(2) {
  transform: translate(4px, -3px);
}
.brand-gem i:nth-child(3),
.center-gem i:nth-child(3) {
  transform: translate(0, 6px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-toggle,
.header-github {
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.language-toggle {
  width: 42px;
}
.header-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--ink);
}
.header-github span {
  color: var(--peach);
}
.language-toggle:hover,
.header-github:hover {
  border-color: var(--line-strong);
  background: rgba(53, 106, 230, 0.09);
  transform: translateY(-2px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(440px, 0.88fr) minmax(640px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 4vw, 78px);
  min-height: 690px;
  padding: 54px var(--page-pad) 72px;
}
.hero-copy {
  position: relative;
  z-index: 6;
}
.eyebrow,
.section-intro > span,
.self-host-copy > span {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--peach);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow:
    0 0 0 5px rgba(53, 106, 230, 0.11),
    0 0 19px rgba(53, 106, 230, 0.68);
}
.eyebrow b {
  font-weight: 500;
}
.eyebrow em {
  padding-left: 5px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 25px;
  font-size: clamp(45px, 5.2vw, 74px);
  font-weight: 800;
  letter-spacing: -0.072em;
  line-height: 0.98;
}
h1 i,
h2 i {
  color: var(--peach);
  font-style: normal;
}
.hero-lede {
  max-width: 510px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions,
.self-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 14px 19px 14px 18px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-3px) rotate(-0.4deg);
}
.button-primary {
  background: linear-gradient(135deg, var(--coral), #8ea7ff);
  color: #f9fff5;
  box-shadow: 0 13px 25px rgba(53, 106, 230, 0.2);
}
.button-primary:hover {
  box-shadow: 0 18px 35px rgba(53, 106, 230, 0.28);
}
.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}
.button-quiet:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.button span {
  color: inherit;
  font-family: var(--mono);
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 30px;
  color: var(--quiet);
  font-size: 11px;
}
.hero-notes span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-notes b {
  font-weight: 500;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 12px rgba(156, 226, 189, 0.8);
}
.hero-gallery {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  perspective: 1700px;
  perspective-origin: 50% 43%;
  transform: translate(
    clamp(-420px, calc(444px - 33.75vw), -42px),
    -58px
  );
}
.gallery-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 510px;
  border: 1px solid rgba(255, 182, 149, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(66deg);
}
.halo-a {
  box-shadow:
    0 0 80px rgba(236, 111, 84, 0.12),
    inset 0 0 60px rgba(236, 111, 84, 0.06);
}
.halo-b {
  width: 680px;
  height: 382px;
  border-color: rgba(255, 202, 171, 0.1);
  transform: translate(-50%, -50%) rotateX(66deg) rotateZ(18deg);
}
.gallery-note {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.gallery-note span {
  width: 20px;
  height: 1px;
  background: var(--peach);
}
.orbit-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 1;
}
.orbit-card {
  --orbit-depth: 410px;
  position: absolute;
  top: -282px;
  left: -138px;
  width: 276px;
  height: 564px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 201, 0.28);
  border-radius: 18px 13px 21px 15px;
  background: #fffaf7;
  box-shadow:
    0 26px 54px rgba(28, 48, 96, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.86);
  transform: rotateY(var(--angle)) translateZ(var(--orbit-depth));
  backface-visibility: visible;
  will-change: transform, opacity;
  cursor: default;
}
.orbit-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  background: linear-gradient(
    124deg,
    rgba(255, 255, 255, 0.1),
    transparent 18%,
    transparent 78%,
    rgba(255, 175, 136, 0.09)
  );
}
.orbit-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}
.orbit-card .orbit-card-back {
  transform: rotateY(180deg);
}
.gallery-control {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}
.gallery-control i {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}
.gallery-control i::before,
.gallery-control i::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 2px;
  height: 8px;
  background: var(--peach);
}
.gallery-control i::before {
  left: 7px;
}
.gallery-control i::after {
  right: 7px;
}
.gallery-control[aria-pressed="true"] i::before {
  left: 7px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--peach);
  border-radius: 50%;
  background: transparent;
}
.gallery-control[aria-pressed="true"] i::after {
  display: none;
}
.principle-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -15px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 205, 179, 0.19);
  border-radius: 19px 7px 22px 11px;
  background: rgba(255, 188, 154, 0.055);
  transform: rotate(-0.35deg);
}
.principle-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.principle-strip b {
  color: var(--peach);
}
.principle-strip span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}
.flow-section,
.features-section {
  padding: 160px 0 0;
}
.features-section {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 50px;
}
.section-intro > span {
  grid-column: 1/-1;
  margin-bottom: -4px;
  color: var(--quiet);
}
h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 780;
  letter-spacing: -0.066em;
  line-height: 1.03;
}
.curtain-heading {
  overflow: visible;
}
.curtain-line {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  padding: 0.035em 0.055em 0.1em 0;
  white-space: nowrap;
}
.curtain-text {
  position: relative;
  z-index: 1;
  display: block;
  will-change: transform;
}
.curtain-wipe {
  position: absolute;
  z-index: 2;
  top: 0.06em;
  right: 0;
  bottom: 0.06em;
  left: 0;
  background: linear-gradient(90deg, var(--coral), var(--peach));
  box-shadow: 0 0 34px rgba(42, 115, 75, 0.2);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.section-intro p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.section-summary {
  align-self: end;
}
.workflow-studio {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 35%, rgba(223, 114, 85, 0.24), transparent 36%),
    linear-gradient(145deg, #fffaf7, #f5e8e1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}
.workflow-studio::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(223, 114, 85, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 114, 85, 0.065) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(145deg, #000, transparent 76%);
}
.workflow-studio-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
}
.workflow-studio.is-screen-hover .workflow-studio-canvas {
  cursor: pointer;
}
.workflow-studio-canvas:active {
  cursor: grabbing;
}
.workflow-screen-media {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--screen-video-frame-width, 2px);
  height: var(--screen-video-frame-height, 2px);
  opacity: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #050406;
  pointer-events: none;
  transform: matrix3d(
    var(--screen-video-a, 1),
    var(--screen-video-d, 0),
    0,
    var(--screen-video-g, 0),
    var(--screen-video-b, 0),
    var(--screen-video-e, 1),
    0,
    var(--screen-video-h, 0),
    0,
    0,
    1,
    0,
    var(--screen-video-c, -9999),
    var(--screen-video-f, -9999),
    0,
    1
  );
  transform-origin: 0 0;
  transition: opacity 0.16s ease;
}
.workflow-studio.is-model-ready .workflow-screen-media {
  opacity: 1;
}
.workflow-studio.is-screen-focus .workflow-screen-media {
  pointer-events: auto;
}
.workflow-studio-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workflow-studio-topline {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 27px;
  left: 27px;
  display: flex;
  justify-content: space-between;
  color: rgba(86, 57, 62, 0.58);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.workflow-studio-caption {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.workflow-studio-caption b {
  color: var(--ink);
  font-size: clamp(34px, 4.7vw, 64px);
  letter-spacing: -0.075em;
  line-height: 0.77;
}
.workflow-studio-caption span {
  max-width: 230px;
  padding-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.workflow-screen-action {
  position: absolute;
  z-index: 4;
  right: 25px;
  bottom: 23px;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid rgba(255, 201, 174, 0.28);
  border-radius: 13px 8px 14px 9px;
  background: rgba(255, 250, 247, 0.84);
  color: var(--coral);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  backdrop-filter: blur(14px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.workflow-screen-action:hover {
  border-color: rgba(223, 114, 85, 0.62);
  background: rgba(223, 114, 85, 0.13);
  transform: translateY(-3px);
}
.workflow-screen-action i {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.workflow-studio.is-playing .workflow-screen-action i {
  width: 8px;
  height: 9px;
  border: 0;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}
.workflow-studio.is-screen-focus .workflow-studio-topline {
  opacity: 0;
  transform: translateY(-12px);
}
.workflow-studio.is-screen-focus .workflow-studio-caption {
  opacity: 0;
  transform: translateY(16px);
}
.workflow-studio.is-screen-focus .workflow-screen-action {
  border-color: rgba(223, 114, 85, 0.72);
  background: rgba(36, 23, 22, 0.78);
  color: #fffaf7;
}
.workflow-studio.is-screen-focus .workflow-screen-action i {
  width: 8px;
  height: 8px;
  border: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}
.workflow-studio.is-unavailable .workflow-screen-action {
  animation: workflow-button-nudge 0.45s ease;
}
.workflow-loop {
  display: grid;
  grid-template-columns: 0.84fr 1.8fr;
  gap: 48px;
  padding-top: 48px;
}
.workflow-loop-intro span {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}
.workflow-loop-intro h3 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(25px, 2.7vw, 42px);
  letter-spacing: -0.065em;
  line-height: 1.02;
}
.workflow-loop-intro h3 i {
  color: var(--coral);
  font-style: normal;
}
.workflow-loop ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 8px 4px;
  list-style: none;
  perspective: 900px;
}
.workflow-loop-node {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid var(--loop-line, rgba(91, 43, 35, 0.18));
  border-radius: 22px 9px 20px 12px;
  background: var(--loop-surface, rgba(255, 251, 248, 0.7));
  box-shadow: 0 14px 36px rgba(84, 42, 31, 0.06);
  animation: workflow-node-drift 4.6s ease-in-out infinite;
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}
.workflow-loop-node:nth-child(1) { --loop-surface: #fff5ef; --loop-line: #f0ad97; --loop-pop: #c85f43; --loop-pop-ink: #fff5ee; }
.workflow-loop-node:nth-child(2) { --loop-surface: #fff0eb; --loop-line: #efb09c; --loop-pop: #a94e45; --loop-pop-ink: #fff4f0; margin-top: 30px; min-height: 126px; animation-delay: -1.45s; }
.workflow-loop-node:nth-child(3) { --loop-surface: #fff8f3; --loop-line: #f2c6b4; --loop-pop: #e37b5d; --loop-pop-ink: #301613; margin-top: -9px; min-height: 172px; animation-delay: -2.3s; }
.workflow-loop-node:nth-child(4) { --loop-surface: #ffede5; --loop-line: #e9a087; --loop-pop: #8e4140; --loop-pop-ink: #fff6f1; margin-top: 14px; min-height: 136px; animation-delay: -0.7s; }
.workflow-loop-node:nth-child(5) { --loop-surface: #fff4ee; --loop-line: #ecaf9a; --loop-pop: #d96a4e; --loop-pop-ink: #fff8f3; margin-top: -18px; min-height: 164px; animation-delay: -3.1s; }
.workflow-loop-node:nth-child(6) { --loop-surface: #fff0e8; --loop-line: #eab49e; --loop-pop: #b74f42; --loop-pop-ink: #fff7f2; margin-top: 23px; min-height: 128px; animation-delay: -1.9s; }
.workflow-loop-node::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: calc(100% + 2px);
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 114, 85, 0.78) 0 35%, transparent 35% 54%, rgba(223, 114, 85, 0.36) 54% 100%);
  box-shadow: 8px 0 12px rgba(223, 114, 85, 0.22);
  content: "";
  transform-origin: left center;
  animation: workflow-link-pulse 1.9s linear infinite;
}
.workflow-loop-node:nth-child(3)::after,
.workflow-loop-node:nth-child(6)::after { display: none; }
.workflow-loop-node:nth-child(3)::before,
.workflow-loop-node:nth-child(6)::before {
  position: absolute;
  z-index: -1;
  right: 31%;
  top: calc(100% + 2px);
  width: 1px;
  height: 23px;
  background: linear-gradient(rgba(223, 114, 85, 0.7), transparent);
  content: "";
  animation: workflow-link-pulse 1.9s linear infinite reverse;
}
.workflow-loop-node.is-active {
  border-color: var(--loop-pop);
  background: color-mix(in srgb, var(--loop-surface) 82%, white);
  box-shadow: 0 19px 48px rgba(178, 70, 43, 0.17);
  animation-play-state: paused;
}
.workflow-loop-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 146px;
  padding: 19px 42px 19px 19px;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.workflow-loop-card:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.workflow-loop-card b {
  display: block;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
}
.workflow-loop-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}
.workflow-loop-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.workflow-loop-detail {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: center;
  box-sizing: border-box;
  min-height: 100%;
  padding: 20px 21px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--loop-pop) 72%, white);
  border-radius: inherit;
  background: var(--loop-pop);
  box-shadow: 0 20px 38px color-mix(in srgb, var(--loop-pop) 26%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -104%, 0);
  transform-origin: center top;
  visibility: visible;
  cursor: pointer;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
}
.workflow-loop-detail p {
  margin: 0;
  color: var(--loop-pop-ink);
  font-size: 12px;
  line-height: 1.7;
}
.workflow-loop-detail::after {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: color-mix(in srgb, var(--loop-pop-ink) 78%, transparent);
  content: "CLICK TO CLOSE";
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.workflow-loop-node.is-active .workflow-loop-card { pointer-events: none; }
.workflow-loop-node.is-active .workflow-loop-detail { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }
.workflow-loop-ghost {
  border: 1px solid rgba(188, 112, 87, 0.13);
  background: rgba(255, 246, 239, 0.22);
}
.workflow-loop-ghost.is-cutout {
  visibility: hidden;
}
@keyframes workflow-node-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0.001deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(0.001deg); }
}
@keyframes workflow-link-pulse {
  0% { opacity: 0.28; transform: scaleX(0.42); }
  56% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0.28; transform: scaleX(0.42); }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-loop-node,
  .workflow-loop-node::after,
  .workflow-loop-node::before { animation: none; }
}
@keyframes workflow-button-nudge {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.features-section .section-intro {
  grid-template-columns: 1fr 1fr;
}
.harmony-native {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: 26px 46px;
  align-items: end;
  margin-top: 58px;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(223, 114, 85, 0.4);
  border-bottom: 1px solid rgba(91, 43, 35, 0.14);
  background: linear-gradient(90deg, rgba(255, 229, 217, 0.54), transparent 70%);
}
.harmony-native-copy > span,
.engineering-ledger-title > span,
.engineering-ledger-lines article > span {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.harmony-native h3 {
  max-width: 17ch;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(29px, 3.3vw, 51px);
  letter-spacing: -0.075em;
  line-height: 0.98;
}
.harmony-native h3 i { color: var(--coral); font-style: normal; }
.harmony-native h3 .harmony-title-line {
  display: inline-block;
  white-space: nowrap;
}
.text-carousel {
  display: inline-flex;
  align-items: center;
  margin-inline: 0.08em;
  vertical-align: -0.08em;
}
.text-carousel-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.08em;
  overflow: hidden;
  padding: 0.05em 0.3em 0.1em;
  border-radius: 0.25em;
  background: var(--coral);
  color: #fffaf7;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    0 0.16em 0.38em rgba(133, 65, 48, 0.14);
  box-sizing: border-box;
  line-height: 0.9;
  white-space: nowrap;
  will-change: width;
}
.text-carousel-answer .text-carousel-badge {
  background: var(--ink);
  color: #fff8f3;
}
.text-carousel-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.text-carousel-char {
  display: inline-block;
  will-change: transform, opacity;
}
.harmony-native-answer {
  padding: 22px 0 0 25px;
  border-left: 2px solid var(--coral);
}
.harmony-native-answer b {
  display: block;
  color: var(--coral);
  font-family: var(--mono);
  font-size: clamp(17px, 1.6vw, 23px);
  letter-spacing: -0.04em;
}
.harmony-native-answer p {
  max-width: 45ch;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.76;
}
.harmony-native-signals {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 0;
  padding: 19px 0 0;
  border-top: 1px dashed rgba(91, 43, 35, 0.18);
  list-style: none;
}
.harmony-native-signals li { display: flex; flex: 1; align-items: center; gap: 11px; color: var(--ink); font-size: 13px; }
.harmony-native-signals b { color: var(--coral); font-family: var(--mono); font-size: 10px; }
.engineering-ledger {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 46px;
  margin-top: 52px;
  padding: 0 0 52px;
}
.engineering-ledger-title { align-self: start; padding-top: 5px; }
.engineering-ledger-title strong {
  display: block;
  margin-top: 21px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(48px, 5.4vw, 84px);
  letter-spacing: -0.1em;
  line-height: 0.78;
}
.engineering-ledger-title b { display: block; max-width: 17ch; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.engineering-ledger-lines { display: grid; gap: 0; border-top: 1px solid rgba(91, 43, 35, 0.2); }
.engineering-ledger-lines article { position: relative; padding: 20px 42px 21px 0; border-bottom: 1px solid rgba(91, 43, 35, 0.15); transition: padding-left 260ms ease, background 260ms ease; }
.engineering-ledger-lines article::after { position: absolute; top: 30px; right: 3px; width: 22px; height: 1px; background: var(--coral); content: ""; transform: scaleX(0.45); transform-origin: left center; transition: transform 260ms ease; }
.engineering-ledger-lines article:hover { padding-left: 14px; background: rgba(255, 229, 217, 0.42); }
.engineering-ledger-lines article:hover::after { transform: scaleX(1); }
.engineering-ledger-lines h3 { max-width: 25ch; margin: 9px 0 0; color: var(--ink); font-size: clamp(18px, 1.8vw, 25px); letter-spacing: -0.045em; line-height: 1.16; }
.engineering-ledger-lines p { max-width: 62ch; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.agent-playground,
.feature-horizontal-stage {
  display: none;
}
.agent-playground {
  position: relative;
  overflow: hidden;
  min-height: 278px;
  margin-bottom: 34px;
  padding: 20px 24px 17px;
  border: 1px solid rgba(53, 106, 230, 0.22);
  border-radius: 26px 11px 30px 15px;
  background:
    radial-gradient(
      circle at 12% 72%,
      rgba(142, 167, 255, 0.18),
      transparent 33%
    ),
    linear-gradient(132deg, rgba(253, 255, 249, 0.97), rgba(232, 238, 255, 0.95));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(35, 77, 51, 0.12);
}
.agent-playground::before,
.agent-playground::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.agent-playground::before {
  top: -126px;
  right: -88px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 181, 145, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 181, 145, 0.025),
    0 0 0 77px rgba(255, 181, 145, 0.018);
}
.agent-playground::after {
  right: 24px;
  bottom: 18px;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--peach));
}
.playground-topline,
.playground-main,
.playground-hint {
  position: relative;
  z-index: 1;
}
.playground-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.playground-kicker {
  color: var(--peach);
}
.playground-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
}
.playground-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow:
    0 0 0 5px rgba(156, 226, 189, 0.08),
    0 0 16px rgba(156, 226, 189, 0.72);
}
.playground-state b {
  color: var(--muted);
  font-weight: 500;
}
.playground-main {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 193px;
}
.agent-radar {
  position: relative;
  width: 142px;
  height: 142px;
  margin-left: 9px;
  border: 1px solid rgba(255, 206, 180, 0.24);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(119, 169, 96, 0.17),
    rgba(16, 9, 12, 0.1) 56%,
    transparent 58%
  );
  box-shadow:
    inset 0 0 28px rgba(42, 115, 75, 0.08),
    0 0 42px rgba(42, 115, 75, 0.1);
}
.radar-ring {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 205, 177, 0.16);
  border-radius: 50%;
}
.ring-two {
  inset: 40px;
  border-color: rgba(255, 205, 177, 0.24);
}
.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow:
    0 0 0 8px rgba(42, 115, 75, 0.11),
    0 0 25px var(--coral);
  transform: translate(-50%, -50%);
}
.radar-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--peach), transparent);
}
.radar-label {
  position: absolute;
  right: -22px;
  bottom: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 201, 174, 0.17);
  border-radius: 7px 4px 7px 4px;
  background: rgba(26, 14, 18, 0.78);
  color: var(--peach);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.playground-copy > span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}
.playground-copy h3 {
  max-width: 530px;
  margin: 12px 0 10px;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.056em;
  line-height: 1.08;
}
.playground-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.playground-replay {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  margin-bottom: 16px;
  padding: 0 11px;
  border: 1px solid rgba(255, 194, 160, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}
.playground-replay:hover {
  border-color: var(--peach);
  color: var(--ink);
  background: rgba(42, 115, 75, 0.1);
}
.playground-replay i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--peach);
  border-left-color: transparent;
  border-radius: 50%;
}
.playground-hint {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
}
.feature-card {
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.feature-card:hover,
.feature-card:focus-visible,
.feature-card.is-active {
  z-index: 2;
  border-color: rgba(255, 190, 155, 0.62);
  background: linear-gradient(
    145deg,
    rgba(91, 44, 43, 0.88),
    rgba(29, 17, 21, 0.96)
  );
  box-shadow:
    0 17px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-5px) rotate(-0.4deg);
  outline: none;
}
.feature-card.is-active::after {
  content: "ACTIVE";
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--peach);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}
[data-mode="approval"] .radar-core {
  background: #f2b36e;
  box-shadow:
    0 0 0 8px rgba(242, 179, 110, 0.12),
    0 0 26px #f2b36e;
}
[data-mode="approval"] .radar-label {
  color: #f2b36e;
}
[data-mode="community"] .radar-core {
  background: #e59bba;
  box-shadow:
    0 0 0 8px rgba(229, 155, 186, 0.12),
    0 0 26px #e59bba;
}
[data-mode="community"] .radar-label {
  color: #e59bba;
}
[data-mode="remote"] .radar-core {
  background: #a8c3f0;
  box-shadow:
    0 0 0 8px rgba(168, 195, 240, 0.12),
    0 0 26px #a8c3f0;
}
[data-mode="remote"] .radar-label {
  color: #a8c3f0;
}
[data-mode="monitor"] .radar-core {
  background: var(--online);
  box-shadow:
    0 0 0 8px rgba(156, 226, 189, 0.12),
    0 0 26px var(--online);
}
[data-mode="monitor"] .radar-label {
  color: var(--online);
}
.feature-grid {
  display: flex;
  width: max-content;
  height: 560px;
  gap: 20px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  will-change: transform;
}
.feature-horizontal-stage {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
}
.feature-horizontal-stage::before,
.feature-horizontal-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 60px;
  width: 9vw;
  pointer-events: none;
}
.feature-horizontal-stage::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-deep), transparent);
}
.feature-horizontal-stage::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-deep), transparent);
}
.feature-card {
  position: relative;
  flex: 0 0 clamp(560px, 58vw, 780px);
  height: 540px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px 10px 22px 14px;
  background: linear-gradient(145deg, rgba(253, 255, 249, 0.94), rgba(234, 241, 224, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}
.feature-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(42, 115, 75, 0.1),
    transparent 68%
  );
  pointer-events: none;
}
.feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 23px 0 0;
  font-size: 23px;
  letter-spacing: -0.056em;
  line-height: 1.15;
}
.card-index {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}
.large {
  flex-basis: clamp(620px, 64vw, 860px);
}
.large::before {
  top: -20px;
  right: -55px;
}
.feature-terminal {
  position: absolute;
  right: 25px;
  bottom: 24px;
  left: 25px;
  padding: 17px;
  border: 1px solid rgba(255, 211, 190, 0.16);
  border-radius: 15px 6px 13px 9px;
  background: rgba(8, 5, 7, 0.52);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.feature-terminal span {
  color: var(--peach);
}
.feature-terminal i {
  display: block;
  width: 78%;
  height: 1px;
  margin: 11px 0;
  background: linear-gradient(90deg, var(--coral), transparent);
}
.feature-terminal b {
  color: var(--online);
  font-weight: 500;
}
.approval-card::before {
  top: -55px;
  left: -45px;
  background: radial-gradient(
    circle,
    rgba(229, 105, 87, 0.16),
    transparent 68%
  );
}
.mini-approval {
  position: absolute;
  right: 25px;
  bottom: 25px;
  left: 25px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(244, 150, 122, 0.28);
  border-radius: 14px 7px 11px 8px;
  background: rgba(89, 29, 29, 0.18);
  font-family: var(--mono);
}
.mini-approval > span {
  color: #f69b8f;
  font-size: 8px;
}
.mini-approval > b {
  color: var(--ink);
  font-size: 10px;
}
.mini-approval > div {
  display: flex;
  gap: 7px;
}
.mini-approval i,
.mini-approval em {
  flex: 1;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--quiet);
  font-size: 8px;
  font-style: normal;
  text-align: center;
}
.mini-approval em {
  border-color: rgba(119, 169, 96, 0.42);
  color: var(--peach);
}
.community-card::before {
  right: -80px;
  bottom: -80px;
  background: radial-gradient(
    circle,
    rgba(212, 114, 131, 0.16),
    transparent 68%
  );
}
.mini-issue {
  position: absolute;
  right: 23px;
  bottom: 24px;
  left: 23px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 224, 209, 0.14);
  border-radius: 14px 8px 13px 7px;
  background: rgba(255, 255, 255, 0.035);
}
.mini-issue span,
.mini-issue small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}
.mini-issue b {
  color: var(--ink);
  font-size: 11px;
}
.remote-card {
  grid-column: span 1;
}
.experimental {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 5px 8px;
  border: 1px solid rgba(242, 183, 108, 0.36);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
}
.remote-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 104px;
  overflow: hidden;
}
.remote-wave i {
  position: absolute;
  bottom: -58px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(42, 115, 75, 0.25);
  border-radius: 50%;
}
.remote-wave i:nth-child(1) {
  left: 16%;
}
.remote-wave i:nth-child(2) {
  left: 38%;
  bottom: -73px;
  border-color: rgba(119, 169, 96, 0.32);
}
.remote-wave i:nth-child(3) {
  left: 60%;
  bottom: -55px;
  border-color: rgba(242, 183, 108, 0.25);
}
.remote-wave span {
  position: absolute;
  right: 27%;
  bottom: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 16px var(--peach);
}
.monitor-card {
  grid-column: span 1;
}
.monitor-card::before {
  right: -65px;
  top: -72px;
  background: radial-gradient(
    circle,
    rgba(242, 183, 108, 0.13),
    transparent 68%
  );
}
.monitor-bars {
  position: absolute;
  right: 25px;
  bottom: 25px;
  left: 25px;
  display: flex;
  align-items: end;
  gap: 7px;
  height: 75px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 211, 190, 0.18);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}
.monitor-bars span {
  width: 10px;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--peach), rgba(42, 115, 75, 0.2));
}
.monitor-bars i {
  position: absolute;
  right: 0;
  bottom: -20px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
}
.self-host {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  row-gap: 34px;
  align-items: start;
  padding: 136px var(--page-pad) 76px;
}
.self-host::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -11vw;
  bottom: -32vh;
  width: min(62vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(223, 114, 85, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 74px rgba(246, 176, 155, 0.035),
    0 0 0 148px rgba(223, 114, 85, 0.025);
  pointer-events: none;
}
.self-host-copy,
.contact-board,
.contact-finale {
  position: relative;
  z-index: 2;
}
.self-host-copy > span {
  justify-content: center;
  color: var(--amber);
}
.self-host-copy {
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
}
.self-host-copy h2 {
  margin-bottom: 22px;
}
.self-host-copy p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.maker-profile {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.maker-profile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.maker-profile b,
.maker-profile small {
  display: block;
}
.maker-profile b {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.02em;
}
.maker-profile b span {
  color: var(--muted);
  font-weight: 500;
}
.maker-profile small {
  margin-top: 4px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.self-host-actions {
  justify-content: center;
  margin-bottom: 22px;
}

/* Adapted from Uiverse pretty-bat-39 under the MIT License:
   Copyright 2026 aguerquin (Alexis Guerquin). */
.github-cube-button {
  display: inline-flex;
  align-items: stretch;
  min-height: 45px;
  overflow: hidden;
  border: 1px solid rgba(223, 114, 85, 0.42);
  border-radius: 13px;
  background: rgba(255, 250, 247, 0.72);
  box-shadow: 0 8px 22px rgba(91, 43, 33, 0.08);
  color: var(--ink);
  perspective: 420px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.github-cube-button:hover,
.github-cube-button:focus-visible {
  border-color: var(--coral);
  box-shadow: 0 12px 30px rgba(177, 79, 55, 0.17);
  transform: translateY(-2px);
}
.github-cube-icon {
  display: grid;
  width: 47px;
  flex: 0 0 47px;
  place-items: center;
  background: var(--ink);
}
.github-cube-icon svg {
  width: 22px;
  height: 22px;
  fill: #fffaf7;
}
.github-cube {
  position: relative;
  width: 154px;
  min-height: 45px;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(0.22, 0.78, 0.22, 1);
  will-change: transform;
}
.github-cube-button:hover .github-cube,
.github-cube-button:focus-visible .github-cube {
  transform: rotateX(90deg);
}
.github-cube-side {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 15px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
  white-space: nowrap;
  backface-visibility: hidden;
}
.github-cube-front {
  background: rgba(255, 250, 247, 0.92);
  transform: translateZ(22.5px);
}
.github-cube-top {
  background: var(--coral);
  color: #fffaf7;
  transform: rotateX(-90deg) translateZ(22.5px);
}
.contact-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.contact-principles li {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.contact-principles b,
.contact-principles span {
  display: block;
}
.contact-principles b {
  margin-bottom: 5px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.contact-principles span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.contact-board {
  width: 100vw;
  max-width: none;
  margin-inline: 0;
  justify-self: center;
}
.contact-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0 max(var(--page-pad), calc((100vw - 1420px) / 2)) 11px;
  border-bottom: 1px solid var(--line);
  color: var(--coral);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.contact-board-head i {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font-size: 8px;
  font-style: normal;
}
.contact-board-head em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(31, 169, 102, 0.1);
}
.supporter-wall-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 18px;
  text-align: center;
}
.supporter-wall-intro strong {
  color: var(--ink);
  font-size: clamp(24px, 2.3vw, 37px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.supporter-wall-intro > span {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.supporter-marquees {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 5px 0;
  mask-image: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent);
}
.supporter-row {
  overflow: hidden;
}
.supporter-track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: supporter-marquee-left 32s linear infinite;
}
.supporter-row-right .supporter-track {
  animation-name: supporter-marquee-right;
  animation-duration: 36s;
}
.supporter-row-slow .supporter-track {
  animation-duration: 40s;
}
.supporter-row:hover .supporter-track,
.supporter-row:focus-within .supporter-track {
  animation-play-state: paused;
}
.supporter-row:focus-visible {
  outline: 1px solid rgba(226, 118, 86, 0.58);
  outline-offset: 3px;
}
.supporter-segment {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-right: 10px;
}
.stack-chip {
  display: grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 11px;
  min-width: 174px;
  height: 58px;
  padding: 7px 17px 7px 8px;
  border: 1px solid rgba(117, 71, 61, 0.17);
  border-radius: 999px;
  background: rgba(255, 251, 248, 0.76);
  color: var(--ink);
  box-shadow:
    0 8px 24px rgba(91, 43, 33, 0.055),
    inset 0 1px rgba(255, 255, 255, 0.82);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.stack-chip:hover {
  border-color: rgba(223, 114, 85, 0.52);
  background: rgba(255, 244, 238, 0.94);
  transform: translateY(-2px);
}
.stack-chip-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--stack-color, var(--coral));
  color: #fffaf7;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.stack-chip-tech-icon {
  border: 1px solid rgba(143, 98, 84, 0.14);
  background: rgba(143, 98, 84, 0.08);
  color: #8f6254;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}
.stack-chip-tech-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--stack-icon) center / contain no-repeat;
  mask: var(--stack-icon) center / contain no-repeat;
}
.stack-chip-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stack-chip-copy,
.stack-chip-copy strong,
.stack-chip-copy small {
  display: block;
}
.stack-chip-copy strong {
  font-size: 12px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.stack-chip-copy small {
  margin-top: 4px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.045em;
  white-space: nowrap;
}
.supporter-wall-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 17px auto 0;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.supporter-wall-link b {
  font-size: 14px;
  transition: transform 180ms ease;
}
.supporter-wall-link:hover b {
  transform: translate(3px, -3px);
}
@keyframes supporter-marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes supporter-marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
.contact-finale {
  grid-column: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.contact-finale-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.contact-finale-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}
.contact-finale-links a:hover {
  color: var(--coral);
  transform: translateY(-2px);
}
.contact-finale > strong {
  color: var(--ink);
  font-size: clamp(18px, 1.75vw, 27px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-align: right;
}
.contact-finale > strong i {
  color: var(--coral);
  font-style: normal;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--page-pad) 34px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}
.site-footer p,
.site-footer > span {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
}
.site-footer > span {
  color: var(--rose);
}
.water-button:not(.gallery-control):not(.workflow-screen-action) {
  position: relative;
}
.water-button {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(223, 114, 85, 0.45);
  border-radius: 13px;
  background: rgba(247, 250, 255, 0.8);
  color: var(--ink);
  box-shadow:
    0 0 0.75px rgba(223, 114, 85, 0.24),
    2px 3px 10px rgba(91, 43, 33, 0.1),
    8px 11px 22px rgba(91, 43, 33, 0.08);
  text-shadow: none;
  backdrop-filter: blur(40px) saturate(1.18);
  -webkit-backdrop-filter: blur(40px) saturate(1.18);
  transform: translateZ(0);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.water-button::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.22),
      rgba(246, 176, 155, 0.14) 42%,
      rgba(17, 26, 44, 0.1)
    ),
    rgba(246, 176, 155, 0.08);
  pointer-events: none;
}
.water-button-canvas {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.water-button-content {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  white-space: nowrap;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 1px rgba(255, 255, 255, 0.42);
}
.water-button:hover {
  border-color: rgba(246, 176, 155, 0.98);
  box-shadow:
    0 0 0.75px rgba(246, 176, 155, 0.68),
    2px 3px 7px rgba(91, 43, 33, 0.18),
    8px 12px 25px rgba(223, 114, 85, 0.2);
  transform: translateY(-2px) translateZ(0);
}
.gallery-control.water-button {
  border-radius: 50%;
}
.water-button:active {
  transform: scale(0.97) translateZ(0);
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.sweep-reveal {
  will-change: transform, clip-path, opacity;
}

/* Desktop story: four intentional, screen-sized chapters instead of a long
   succession of small sections. Mobile keeps the ordinary document flow. */
@media (min-width: 961px) {
  .four-chapter-site > .site-header {
    position: absolute;
    z-index: 40;
    top: 0;
    left: 50%;
    width: min(calc(100% - (var(--page-pad) * 2)), 1420px);
    transform: translateX(-50%);
  }
  html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }
  html.chapter-transitioning {
    scroll-snap-type: none;
    overflow-anchor: none;
  }
  .four-chapter-site main {
    height: 400vh;
  }
  .four-chapter-site main > .chapter {
    box-sizing: border-box;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .four-chapter-site .principle-strip {
    display: none;
  }
  .four-chapter-site .chapter-hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding-top: 78px;
    padding-bottom: 36px;
    overflow: hidden;
  }
  .four-chapter-site .chapter-studio {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 76px 0 0;
    overflow: hidden;
  }
  .four-chapter-site .chapter-studio > .section-intro {
    width: min(100% - (var(--page-pad) * 2), 1440px);
    margin: 0 auto;
    padding: 0 0 8px;
  }
  .four-chapter-site .chapter-studio .section-intro h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 3.05vw, 47px);
    line-height: 0.94;
  }
  .four-chapter-site .chapter-studio .section-intro p {
    align-self: end;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.55;
  }
  .four-chapter-site .chapter-studio .workflow-studio {
    min-height: 0;
    height: auto;
  }
  .four-chapter-site .chapter-code {
    display: grid;
    grid-template-columns: minmax(500px, 1fr) minmax(650px, 1.32fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    gap: 20px clamp(42px, 4.4vw, 84px);
    align-content: center;
    overflow: hidden;
    padding: 78px var(--page-pad) 26px;
  }
  .four-chapter-site .chapter-code > .section-intro {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .four-chapter-site .chapter-code > .section-intro h2 {
    max-width: 9.5ch;
    margin-bottom: 17px;
    font-size: clamp(44px, 4.7vw, 74px);
    line-height: 0.91;
  }
  .four-chapter-site .chapter-code > .section-intro p {
    max-width: 36ch;
    font-size: 13px;
    line-height: 1.72;
  }
  .four-chapter-site .chapter-code > .harmony-native {
    grid-column: 1;
    grid-row: 2;
    display: block;
    align-self: stretch;
    margin: 0;
    padding: 23px 0 0;
    border-bottom: 0;
    background: linear-gradient(135deg, rgba(255, 229, 217, 0.7), rgba(255, 245, 238, 0.08));
  }
  .four-chapter-site .harmony-native h3 {
    max-width: none;
    margin-top: 11px;
    font-size: clamp(22px, 1.9vw, 30px);
    line-height: 1.06;
  }
  .four-chapter-site .harmony-native-answer {
    margin-top: 18px;
    padding: 14px 0 0 16px;
  }
  .four-chapter-site .harmony-native-answer b { font-size: 17px; }
  .four-chapter-site .harmony-native-answer p { margin-top: 8px; font-size: 11px; line-height: 1.58; }
  .four-chapter-site .harmony-native-signals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 16px;
    padding: 13px 0 0;
  }
  .four-chapter-site .harmony-native-signals li { font-size: 11px; }
  .four-chapter-site .chapter-code > .engineering-ledger {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .four-chapter-site .engineering-ledger-title strong {
    margin-top: 14px;
    font-size: clamp(58px, 5.6vw, 92px);
    line-height: 0.72;
  }
  .four-chapter-site .engineering-ledger-title {
    display: grid;
    grid-template-columns: auto minmax(105px, 0.52fr) minmax(300px, 1.48fr);
    align-items: end;
    gap: 9px 22px;
  }
  .four-chapter-site .engineering-ledger-title > span { grid-column: 1 / -1; }
  .four-chapter-site .engineering-ledger-title strong { grid-column: 1; }
  .four-chapter-site .engineering-ledger-title b {
    grid-column: 2;
    align-self: end;
    max-width: 18ch;
    margin: 0 0 1px;
    font-size: 10px;
  }
  .four-chapter-site .engineering-signal-strip {
    grid-column: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 1px;
  }
  .four-chapter-site .engineering-signal-strip div {
    min-width: 0;
    padding-top: 9px;
    border-top: 1px solid rgba(91, 43, 35, 0.16);
  }
  .four-chapter-site .engineering-signal-strip dt {
    color: var(--coral);
    font-family: var(--mono);
    font-size: clamp(19px, 1.42vw, 27px);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 1;
  }
  .four-chapter-site .engineering-signal-strip dd {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
  }
  .four-chapter-site .engineering-ledger-lines { display: none; }
  .four-chapter-site .chapter-code > .workflow-loop {
    grid-column: 2;
    grid-row: 2;
    display: block;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding: 0;
    transform: translateY(-102px);
  }
  .four-chapter-site .workflow-loop-intro { display: none; }
  .four-chapter-site .workflow-loop ol {
    position: relative;
    display: block;
    width: min(100%, 610px);
    max-width: 610px;
    height: auto;
    max-height: none;
    /* A deliberately small 7 x 4 crop. Larger cells read as a real honeycomb
       instead of a compressed analytics grid. */
    aspect-ratio: 1.411 / 1;
    margin: 8px auto 0;
    padding: 0;
    perspective: none;
  }
  .four-chapter-site .workflow-loop-cell {
    position: absolute;
    left: var(--hex-left);
    top: var(--hex-top);
    width: 18.1818182%;
    height: auto;
    aspect-ratio: 2 / 1.7320508075688772;
    min-height: 0;
    margin-top: 0;
    /* Flat-top regular hexagon. The container ratio above keeps this at
       2 : sqrt(3), so the cell can no longer be stretched into a tall face. */
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    transform: translate3d(0, 0, 0) scale(0.94);
    transform-origin: center;
    background: var(--loop-surface, #3f4650);
    filter: none;
    transition: background-color 920ms ease;
  }
  .four-chapter-site .workflow-loop-node,
  .four-chapter-site .workflow-loop-node:nth-child(n) {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--loop-surface, #3f4650);
    box-shadow: none;
    animation: none;
  }
  .four-chapter-site .workflow-loop-cell::before {
    display: none;
  }
  .four-chapter-site .workflow-loop-node::after {
    display: none;
  }
  .four-chapter-site .workflow-loop-ghost {
    --loop-surface: #3f4650;
    opacity: 1;
  }
  .four-chapter-site .workflow-loop-card {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    /* Keep every label inside the central safe area of the hexagon instead
       of laying out a rectangle and clipping its corners afterwards. */
    padding: 24% 14%;
    border-radius: 0;
    text-align: center;
  }
  .four-chapter-site .workflow-loop-card b {
    color: #bfc4ca;
  }
  .four-chapter-site .workflow-loop-card strong {
    color: #ffffff;
    text-shadow: none;
  }
  .four-chapter-site .workflow-loop-card span {
    color: #d6d9dc;
  }
  .four-chapter-site .workflow-loop-card b {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }
  .four-chapter-site .workflow-loop-card strong {
    margin-top: 6px;
    font-size: clamp(17px, 1.25vw, 24px);
    letter-spacing: -0.035em;
    line-height: 1;
    white-space: nowrap;
  }
  .four-chapter-site .workflow-loop-card span {
    margin-top: 5px;
    font-size: 10.5px;
    line-height: 1.22;
  }
  .four-chapter-site .workflow-loop-fact .workflow-loop-card strong {
    color: var(--loop-pop);
    font-family: var(--mono);
    font-size: clamp(20px, 1.38vw, 28px);
    letter-spacing: -0.065em;
  }
  .four-chapter-site .workflow-loop-detail {
    inset: 0;
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    opacity: 1;
    transform: translate3d(0, 104%, 0);
    transform-origin: center bottom;
    transition: transform 430ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .four-chapter-site .workflow-loop-detail p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: clamp(8.8px, 0.68vw, 11.2px);
    line-height: 1.08;
    text-align: center;
  }
  .four-chapter-site .workflow-hex-line {
    display: block;
    width: var(--hex-line-width);
    min-height: 1.08em;
    overflow: hidden;
    white-space: nowrap;
  }
  .four-chapter-site .workflow-loop-detail::after { display: none; }
  .four-chapter-site .workflow-loop-node.is-active {
    z-index: 8;
    background: var(--loop-pop);
    filter: none;
    transform: translate3d(0, 0, 0) scale(0.94);
    transition-duration: 0ms;
  }
  @media (hover: hover) {
    .four-chapter-site .workflow-loop-cell:not(.is-active):hover {
      background: #f47f61;
      filter: none;
      transform: translate3d(0, 0, 0) scale(0.94);
      transition-duration: 0ms;
    }
  }
  @media (min-width: 1200px) and (min-height: 850px) {
    .four-chapter-site .chapter-code > .workflow-loop {
      transform: translateY(-90px);
    }
    .four-chapter-site .workflow-loop ol {
      width: min(760px, 58vw);
      max-width: none;
    }
  }
  @media (min-width: 1700px) and (min-height: 850px) {
    .four-chapter-site .chapter-code > .harmony-native {
      transform: translateY(42px);
    }
    .four-chapter-site .chapter-code > .workflow-loop {
      transform: translateY(-18px);
    }
    .four-chapter-site .workflow-loop ol {
      width: min(900px, 45vw);
      max-width: none;
    }
  }
  .four-chapter-site .chapter-code > .agent-playground,
  .four-chapter-site .chapter-code > .feature-horizontal-stage {
    display: none;
  }
  .four-chapter-site .chapter-open {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    row-gap: 14px;
    padding: 72px var(--page-pad) 24px;
    overflow: hidden;
  }
  .four-chapter-site .self-host-copy,
  .four-chapter-site .contact-board {
    align-self: start;
  }
  .four-chapter-site .self-host-copy {
    width: min(100%, 760px);
    padding-top: clamp(42px, 5.5vh, 66px);
  }
  .four-chapter-site .contact-board {
    align-self: end;
  }
  .four-chapter-site .self-host-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(34px, 3.5vw, 54px);
  }
  .four-chapter-site .self-host-copy p {
    max-width: 720px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
  }
  .four-chapter-site .maker-profile {
    max-width: 700px;
    margin-bottom: 15px;
    padding: 11px 0;
  }
  .four-chapter-site .maker-profile img {
    width: 42px;
    height: 42px;
  }
  .four-chapter-site .maker-profile b {
    font-size: 16px;
  }
  .four-chapter-site .maker-profile small {
    font-size: 9px;
  }
  .four-chapter-site .self-host-actions {
    margin-bottom: 14px;
  }
  .four-chapter-site .self-host-actions .button {
    min-height: 43px;
    padding-inline: 20px;
    font-size: 12px;
  }
  .four-chapter-site .contact-principles li {
    padding-top: 9px;
  }
  .four-chapter-site .contact-principles b {
    font-size: 9px;
  }
  .four-chapter-site .contact-principles span {
    font-size: 12px;
    line-height: 1.5;
  }
  .four-chapter-site .contact-board {
    width: 100vw;
    max-width: none;
    margin-inline: 0;
    justify-self: center;
  }
  .four-chapter-site .supporter-wall-intro {
    margin-bottom: 9px;
  }
  .four-chapter-site .supporter-wall-intro strong {
    font-size: clamp(20px, 1.7vw, 28px);
  }
  .four-chapter-site .stack-chip {
    min-width: 158px;
    height: 48px;
  }
  .four-chapter-site .stack-chip-icon {
    width: 34px;
    height: 34px;
  }
  .four-chapter-site .contact-finale {
    align-self: end;
    padding-top: 16px;
  }
  .four-chapter-site .site-footer { display: none; }
}

/* Chapters three and four use three stacked SVG curtains. Each full overlay
   follows the reference site's delayed curve morph, producing changing widths
   and a real chase instead of parallel stripes. */
.chapter-curtain {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  isolation: isolate;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.chapter-curtain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) { .chapter-curtain { display: none; } }
@media (max-width: 960px) {
  main,
  .features-section,
  .self-host {
    max-width: 100%;
    overflow-x: clip;
  }
  .features-section .section-intro {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-inline: 0;
  }
  .features-section .harmony-native {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-inline: 0;
    padding-inline: var(--page-pad);
  }
  .features-section .harmony-native-answer {
    margin-top: 20px;
  }
  .features-section .harmony-native h3 .harmony-title-line {
    white-space: normal;
  }
  .features-section .engineering-ledger {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    padding-inline: var(--page-pad);
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero-gallery {
    width: min(100%, 690px);
    min-height: 660px;
    margin-inline: auto;
  }
  .section-intro {
    grid-template-columns: 1fr;
  }
  .self-host {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .contact-board {
    max-width: none;
    justify-self: stretch;
  }
  .contact-finale {
    grid-column: 1;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .playground-main {
    grid-template-columns: 146px minmax(0, 1fr) auto;
    gap: 18px;
  }
  .agent-radar {
    width: 120px;
    height: 120px;
  }
  .large {
    grid-row: span 1;
  }
  .monitor-card,
  .remote-card {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }
  .site-header {
    padding: 19px 0;
  }
  .nav-links {
    display: none;
  }
  .header-github {
    display: none;
  }
  .hero {
    min-height: 0;
    padding: 58px 0 43px;
  }
  .eyebrow {
    align-items: flex-start;
    line-height: 1.5;
  }
  .eyebrow em {
    display: none;
  }
  .hero-lede {
    font-size: 13px;
  }
  .hero-notes {
    gap: 8px 13px;
    margin-top: 25px;
  }
  .hero-gallery {
    min-height: 448px;
    margin-top: 12px;
    perspective: 760px;
  }
  .gallery-note {
    top: 0;
    font-size: 7px;
  }
  .gallery-halo {
    width: 386px;
    height: 246px;
  }
  .halo-b {
    width: 282px;
    height: 180px;
  }
  .orbit-card {
    --orbit-depth: 195px;
    top: -185px;
    left: -90px;
    width: 180px;
    height: 370px;
    border-radius: 14px 10px 16px 11px;
  }
  .gallery-control {
    right: 0;
    bottom: 0;
    font-size: 7px;
  }
  .gallery-control i {
    width: 17px;
    height: 17px;
  }
  .gallery-control i::before,
  .gallery-control i::after {
    top: 4px;
    height: 7px;
  }
  .gallery-control i::before {
    left: 6px;
  }
  .gallery-control i::after {
    right: 6px;
  }
  .principle-strip {
    display: grid;
    gap: 10px;
    margin-top: 0;
    padding: 16px;
  }
  .principle-strip p {
    font-size: 12px;
  }
  .principle-strip span {
    font-size: 7px;
  }
  .flow-section,
  .features-section {
    padding-top: 100px;
  }
  .section-intro {
    gap: 20px;
    margin-bottom: 34px;
  }
  .section-intro > span {
    font-size: 8px;
  }
  .section-intro p {
    font-size: 13px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 242px;
  }
  .agent-playground {
    min-height: 246px;
    padding: 17px;
  }
  .playground-topline {
    align-items: flex-start;
    font-size: 8px;
  }
  .playground-state {
    max-width: 128px;
    line-height: 1.45;
    text-align: right;
  }
  .playground-main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    min-height: 178px;
  }
  .agent-radar {
    width: 82px;
    height: 82px;
    margin-left: 0;
  }
  .radar-ring {
    inset: 11px;
  }
  .ring-two {
    inset: 25px;
  }
  .radar-scan {
    width: 38px;
  }
  .radar-label {
    right: -18px;
    bottom: -10px;
    font-size: 6px;
  }
  .playground-copy h3 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.16;
  }
  .playground-copy p {
    font-size: 11px;
    line-height: 1.6;
  }
  .playground-replay {
    grid-column: 2;
    align-self: start;
    justify-self: start;
    min-height: 29px;
    margin: -4px 0 0;
    font-size: 8px;
  }
  .playground-hint {
    font-size: 10px;
  }
  .feature-card {
    padding: 21px;
  }
  .feature-card h3 {
    margin-top: 19px;
    font-size: 21px;
  }
  .large {
    min-height: 255px;
  }
  .feature-terminal,
  .mini-approval,
  .mini-issue {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }
  .remote-card,
  .monitor-card {
    min-height: 220px;
  }
  .self-host {
    padding: 112px 0 95px;
  }
  .self-host-copy p {
    font-size: 13px;
  }
  .maker-profile {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .contact-principles {
    grid-template-columns: 1fr;
  }
  .supporter-wall-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }
  .supporter-marquees {
    margin-inline: -16px;
  }
  .contact-finale {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .contact-finale > strong {
    text-align: left;
  }
  .site-footer {
    display: grid;
    gap: 14px;
  }
  .site-footer p,
  .site-footer > span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .github-cube,
  .spotlight-surface::after {
    transition: none;
  }
  .workflow-screen-action,
  .workflow-studio-caption,
  .workflow-studio-topline {
    transition: none;
  }
  .water-button-canvas {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
