:root {
  --black: #050505;
  --ink: #0a0b0d;
  --surface: #101216;
  --surface-raised: #16191f;
  --line: #292d33;
  --line-bright: #464b53;
  --paper: #f3efe7;
  --muted: #a8abb2;
  --cyan: #58c4dd;
  --green: #83c167;
  --yellow: #ffe45c;
  --red: #ff5b57;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Manrope", "Avenir Next", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --page: min(1440px, calc(100vw - 64px));
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--black);
  background: var(--yellow);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 64%);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  padding: 0 max(32px, calc((100vw - 1440px) / 2));
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(20px);
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.55rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--paper);
}

.site-nav .nav-github {
  padding: 8px 14px;
  color: var(--paper);
  border: 1px solid var(--line-bright);
}

.site-nav .nav-github:hover {
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: var(--paper);
  transition: transform 180ms ease;
}

.hero {
  display: flex;
  width: var(--page);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 128px) 0 96px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  width: min(980px, 100%);
}

.eyebrow,
.section-number,
.step-kicker {
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 7.3vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.81;
}

.hero h1 em {
  color: var(--yellow);
  font-weight: 400;
}

.hero-lead {
  max-width: 780px;
  margin: 38px auto 0;
  color: #c6c8cc;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--black);
  background: var(--yellow);
}

.button-primary:hover {
  background: #fff08a;
}

.button-ghost {
  color: var(--paper);
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.015);
}

.button-ghost:hover {
  border-color: var(--paper);
}

.statement-band {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0 112px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 4fr;
  gap: 50px;
}

.statement-text {
  max-width: 1100px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.statement-text em {
  color: var(--cyan);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(92px, 11vw, 168px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  margin-bottom: 72px;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 80px;
}

.section-heading h2,
.providers-intro h2,
.article-card h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.section-heading > p,
.providers-intro > p {
  margin: 0 0 6px;
  color: var(--muted);
}

.feature-ledger {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  position: relative;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.68);
}

.feature-wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1fr minmax(260px, 0.8fr);
  gap: 40px;
}

.feature-accent {
  color: var(--black);
  background: var(--yellow);
}

.feature-code {
  display: block;
  margin-bottom: 72px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.feature-voice .feature-code {
  margin-bottom: 28px;
}

.feature-accent .feature-code {
  color: rgba(0, 0, 0, 0.58);
}

.feature h3 {
  max-width: 520px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 0.98;
}

.feature p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-accent p {
  color: rgba(0, 0, 0, 0.72);
}

.mini-composition {
  position: relative;
  min-height: 230px;
  align-self: center;
}

.paper-sheet {
  position: absolute;
  top: 8px;
  right: 20px;
  width: 170px;
  height: 210px;
  padding: 22px;
  color: var(--black);
  background: var(--paper);
  box-shadow: -22px 22px 0 rgba(88, 196, 221, 0.25);
  transform: rotate(4deg);
}

.paper-sheet span {
  font-family: var(--serif);
  font-size: 3rem;
}

.paper-sheet i {
  display: block;
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.35);
}

.image-chip {
  position: absolute;
  right: 155px;
  bottom: 10px;
  padding: 9px 12px;
  color: var(--black);
  background: var(--cyan);
  font-family: var(--mono);
  font-size: 0.6rem;
  transform: rotate(-6deg);
}

.image-chip.second {
  right: 90px;
  bottom: 48px;
  background: var(--green);
  transform: rotate(3deg);
}

.agent-list {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-list span {
  padding: 5px 8px;
  color: var(--cyan);
  border: 1px solid rgba(88, 196, 221, 0.3);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.approval-stamp {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 105px;
  height: 105px;
  padding-top: 22px;
  border: 2px solid var(--black);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-11deg);
}

.approval-stamp b {
  font-size: 2rem;
}

.wave {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  height: 54px;
  align-items: center;
  gap: 7px;
}

.wave i {
  display: block;
  width: 3px;
  height: calc(12px + var(--wave, 20px));
  background: var(--cyan);
  animation: wave 1.4s ease-in-out infinite alternate;
}

.wave i:nth-child(2n) { --wave: 36px; animation-delay: -0.4s; }
.wave i:nth-child(3n) { --wave: 12px; animation-delay: -0.8s; }
.wave i:nth-child(5n) { --wave: 44px; animation-delay: -1.1s; }

.code-fragment {
  margin: auto 0;
  padding: 28px;
  overflow: auto;
  color: #d6d8dc;
  border-left: 2px solid var(--cyan);
  background: var(--black);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.9;
}

.code-fragment span { color: var(--cyan); }
.code-fragment em { color: var(--yellow); font-style: normal; }

.caption-preview {
  position: absolute;
  right: 26px;
  bottom: 32px;
  left: 26px;
  padding: 6px 12px;
  color: var(--yellow);
  background: #000;
  font-weight: 700;
  text-align: center;
}

.cost-bars {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  display: flex;
  height: 82px;
  align-items: end;
  gap: 8px;
}

.cost-bars i {
  display: block;
  width: 22%;
  height: var(--bar);
  background: var(--cyan);
}

.archive-mark {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: 90px;
  height: 76px;
  place-content: center;
  border: 2px solid var(--black);
  font-family: var(--mono);
  font-size: 1.2rem;
  text-align: center;
}

.archive-mark span {
  display: block;
  font-size: 0.46rem;
}

.workflow-section {
  position: relative;
}

.workflow-input {
  display: grid;
  margin-bottom: 54px;
  padding: 24px 0;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: end;
}

.workflow-label,
.workflow-phase-heading > span,
.workflow-gate > span,
.workflow-after > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-input h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.workflow-input p,
.workflow-gate p,
.workflow-after p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.workflow-map {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-phase {
  display: grid;
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-bright);
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.workflow-phase::after {
  position: absolute;
  right: 50%;
  bottom: -33px;
  width: 1px;
  height: 32px;
  background: var(--line-bright);
  content: "";
}

.workflow-phase-heading h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.workflow-phase-presentation {
  border-color: rgba(88, 196, 221, 0.4);
  background: linear-gradient(135deg, rgba(88, 196, 221, 0.045), transparent 42%);
}

.workflow-phase-basis {
  margin-bottom: 32px;
}

.workflow-phase-solution {
  border-color: rgba(131, 193, 103, 0.4);
  background: linear-gradient(135deg, rgba(131, 193, 103, 0.045), transparent 42%);
}

.workflow-phase-solution::after {
  display: none;
}

.workflow-stages {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.workflow-stages-single {
  grid-template-columns: 1fr;
}

.workflow-stage {
  position: relative;
  min-height: 290px;
  padding: 24px;
  background: var(--black);
}

.workflow-stage:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 31px;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  background: var(--black);
  content: "";
  transform: rotate(45deg);
}

.workflow-stage-topline {
  display: flex;
  margin-bottom: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.workflow-stage-topline b {
  color: var(--cyan);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
}

.workflow-stage-topline span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.workflow-stage h4 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.05;
}

.workflow-stage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.workflow-stage .workflow-review,
.workflow-stage .workflow-output {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.68rem;
}

.workflow-stage .workflow-review::before {
  margin-right: 7px;
  color: var(--yellow);
  content: "↺";
}

.workflow-stage .workflow-output::before {
  margin-right: 7px;
  color: var(--green);
  content: "→";
}

.workflow-gate {
  display: grid;
  position: relative;
  max-width: 720px;
  min-height: 94px;
  margin: 32px auto;
  padding: 20px 24px;
  border: 1px solid rgba(255, 228, 92, 0.42);
  background: rgba(255, 228, 92, 0.035);
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 24px;
}

.workflow-gate::after {
  position: absolute;
  right: calc(50% - 5px);
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  content: "";
  transform: rotate(45deg);
}

.workflow-gate strong {
  color: var(--paper);
  font-weight: 500;
}

.workflow-after {
  display: grid;
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.stack-section {
  position: relative;
  border-top: 1px solid var(--line);
}

.stack-map {
  border-top: 1px solid var(--line);
}

.stack-layer {
  display: grid;
  min-height: 176px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.stack-layer-accent {
  margin: 0 -24px;
  padding-right: 24px;
  padding-left: 24px;
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}

.stack-index {
  color: var(--cyan);
  font-family: var(--serif);
  font-size: 3rem;
}

.stack-layer-accent .stack-index,
.stack-layer-accent .stack-kicker {
  color: rgba(0, 0, 0, 0.58);
}

.stack-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-layer h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.stack-layer h3 small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.stack-layer-accent h3 small,
.stack-layer-accent p {
  color: rgba(0, 0, 0, 0.68);
}

.stack-layer p:not(.stack-kicker) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.stack-layer > a,
.stack-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.stack-layer-accent .stack-links a {
  color: var(--black);
}

.stack-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.stack-support {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-support > div {
  min-height: 176px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-support span,
.stack-support strong {
  display: block;
}

.stack-support span {
  margin-bottom: 30px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-support strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.stack-support p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.examples-section {
  width: 100%;
  padding-right: max(32px, calc((100vw - 1440px) / 2));
  padding-left: max(32px, calc((100vw - 1440px) / 2));
  background: var(--paper);
}

.examples-section .section-heading,
.examples-section .examples-grid {
  width: min(1440px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.examples-section .examples-heading {
  display: block;
  text-align: center;
}

.examples-heading > div {
  width: 100%;
}

.examples-attribution {
  max-width: 940px;
  margin: 30px auto 0;
  color: #4d5055;
  font-size: 0.82rem;
  line-height: 1.75;
}

.examples-attribution a {
  color: #075f75;
  font-weight: 600;
}

.examples-section h2,
.examples-section .example-title {
  color: var(--black);
}

.examples-section .section-number {
  color: #147f98;
}

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.example-card {
  min-width: 0;
  color: var(--paper);
  background: var(--black);
  transition: opacity 180ms ease, transform 180ms ease;
}

.example-header {
  display: grid;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
}

.example-header .example-title {
  margin: 0 0 8px;
}

.example-header .example-source {
  margin: 0;
}

.reference-links {
  display: flex;
  max-width: 260px;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.reference-links a {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-align: right;
}

.case-videos {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.panel-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-label span {
  margin-right: 8px;
  color: var(--cyan);
}

.generated-output {
  width: min(1120px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.example-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.example-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.example-type-tabs {
  display: grid;
  border: 1px solid var(--line-bright);
  border-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.example-type-tabs button {
  display: grid;
  min-height: 76px;
  padding: 13px 16px;
  color: var(--muted);
  border: 0;
  border-right: 1px solid var(--line-bright);
  background: var(--surface);
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 160ms ease, background 160ms ease;
}

.example-type-tabs button:last-child {
  border-right: 0;
}

.example-type-tabs button > span:first-child {
  color: var(--cyan);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.type-copy strong,
.type-copy small {
  display: block;
}

.type-copy strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.type-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.example-type-tabs button.is-active {
  color: var(--black);
  background: var(--yellow);
}

.example-type-tabs button.is-active > span:first-child,
.example-type-tabs button.is-active .type-copy strong,
.example-type-tabs button.is-active .type-copy small {
  color: var(--black);
}

.example-type-tabs button:not(.is-active):hover {
  background: var(--surface-raised);
}

.example-meta {
  display: grid;
  padding: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: end;
  gap: 52px;
}

.example-sequence {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.example-title {
  margin: 10px 0 14px;
  color: var(--paper) !important;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.example-source {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.example-source strong {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.model-ledger {
  margin: 0;
  border-top: 1px solid var(--line);
}

.model-row {
  display: grid;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 100px 1fr;
  gap: 14px;
}

.model-row dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.model-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.case-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.app-tour {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
}

.tour-tabs button {
  display: grid;
  min-height: 64px;
  padding: 14px 16px;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  grid-template-columns: 36px 1fr;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.tour-tabs button span {
  color: var(--line-bright);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.tour-tabs button:hover,
.tour-tabs button[aria-selected="true"] {
  color: var(--paper);
  background: var(--surface-raised);
}

.tour-tabs button[aria-selected="true"] span {
  color: var(--cyan);
}

.tour-screen {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.window-bar {
  display: flex;
  height: 36px;
  padding: 0 12px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-bright);
}

.window-bar i:first-child { background: var(--red); }
.window-bar i:nth-child(2) { background: var(--yellow); }
.window-bar i:nth-child(3) { background: var(--green); }

.window-bar span {
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.tour-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 1024;
  object-fit: cover;
  object-position: top;
}

.tour-screen figcaption {
  padding: 16px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.providers-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 52px;
}

.providers-section > .section-number {
  grid-row: 1 / span 3;
}

.providers-intro {
  display: grid;
  margin-bottom: 56px;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 70px;
}

.provider-table {
  border-top: 1px solid var(--line-bright);
}

.provider-table > div {
  display: grid;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.8fr repeat(3, 0.7fr);
  align-items: center;
  gap: 18px;
}

.provider-table span,
.provider-table b {
  font-size: 0.75rem;
}

.provider-table b {
  color: var(--green);
  font-family: var(--mono);
  font-weight: 400;
}

.provider-head {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.project-costs-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1.52fr);
  align-items: stretch;
  gap: clamp(46px, 7vw, 110px);
}

.license-panel {
  display: flex;
  min-height: 520px;
  padding: 30px;
  color: var(--black);
  background: var(--yellow);
  flex-direction: column;
  justify-content: space-between;
}

.license-panel span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.license-panel strong {
  margin: auto 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 11vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.license-panel p {
  max-width: 280px;
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.75rem;
}

.project-costs-content {
  min-width: 0;
}

.project-costs-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 50px;
}

.project-costs-heading .section-number {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.project-costs-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 5.5vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.project-costs-heading h2 em {
  color: var(--yellow);
  font-weight: 400;
}

.project-costs-heading > p:last-child {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.costs-ledger {
  display: grid;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.costs-ledger article {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.costs-ledger span {
  display: block;
  margin-bottom: 60px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.costs-ledger h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.3vw, 2.6rem);
  font-weight: 400;
  line-height: 0.96;
}

.costs-ledger p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.project-costs-action {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.project-costs-action p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.project-costs-action .button {
  flex: 0 0 auto;
}

.limitations-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--black);
  background-size: 100% 44px;
}

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

.limitation-item {
  display: grid;
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
}

.limitation-index {
  color: var(--line-bright);
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
}

.limitation-tag {
  margin: 0 0 28px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.limitation-item h3 {
  max-width: 500px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.02;
}

.limitation-item p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.limitation-item-accent {
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}

.limitation-item-accent .limitation-index,
.limitation-item-accent .limitation-tag,
.limitation-item-accent p:last-child {
  color: rgba(0, 0, 0, 0.66);
}

.limitations-note {
  display: grid;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-bright);
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
}

.limitations-note span {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.limitations-note p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-section {
  width: 100%;
  padding-right: max(32px, calc((100vw - 1440px) / 2));
  padding-left: max(32px, calc((100vw - 1440px) / 2));
  background: var(--cyan);
}

.article-card {
  display: grid;
  width: min(1440px, 100%);
  margin: 0 auto;
  color: var(--black);
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 100px;
}

.article-card .section-number {
  color: rgba(0, 0, 0, 0.6);
}

.article-card p:not(.section-number) {
  max-width: 680px;
  margin: 28px 0 0;
}

.article-status {
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.38);
}

.article-status span,
.article-status small {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.article-status strong {
  display: block;
  margin: 34px 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.8;
}

.article-link {
  display: flex;
  margin-bottom: 18px;
  padding: 14px 16px;
  color: var(--paper);
  background: var(--black);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.article-link span {
  color: var(--cyan);
  font-size: 1rem;
}

.article-link:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.article-link:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.closing {
  display: grid;
  min-height: 80vh;
  padding: 120px 32px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.closing > img {
  width: 90px;
  margin-bottom: 36px;
}

.closing h2 {
  font-size: clamp(4rem, 8vw, 9rem);
}

.closing .hero-actions {
  justify-content: center;
}

.site-footer {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 30px 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.66rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.footer-note {
  max-width: 850px;
  margin: 0;
  color: #70737a;
  font-size: 0.64rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wave {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

@media (max-width: 1120px) {
  :root { --page: min(100% - 48px, 1440px); }
  .hero-copy { max-width: 860px; }
  .feature-ledger { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .feature-accent:last-child { grid-column: span 2; }
  .providers-section { grid-template-columns: 1fr; }
  .providers-section > .section-number { grid-row: auto; }
  .project-costs-section { grid-template-columns: minmax(230px, 0.4fr) minmax(0, 1fr); gap: 46px; }
  .project-costs-heading { grid-template-columns: 1fr; gap: 24px; }
  .costs-ledger { grid-template-columns: 1fr; }
  .costs-ledger article { min-height: 0; }
  .costs-ledger span { margin-bottom: 28px; }
  .stack-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples-section,
  .article-section { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 840px) {
  :root { --page: calc(100% - 36px); --header-height: 66px; }
  body { padding-top: var(--header-height); }
  .site-header {
    position: fixed;
    z-index: 900;
    inset: 0 0 auto;
    padding: 0 18px;
  }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 899;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    padding: 32px 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    background: var(--black);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform 220ms ease, visibility 220ms;
  }
  .site-nav.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .site-nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 2rem; }
  .site-nav .nav-github { margin-top: 18px; text-align: center; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: clamp(4rem, 17vw, 7rem); }
  .statement-band { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > p { max-width: 620px; }
  .workflow-phase { grid-template-columns: 1fr; }
  .workflow-stage { min-height: 270px; }
  .stack-layer { grid-template-columns: 68px minmax(0, 1fr); }
  .stack-layer > a,
  .stack-layer > .stack-links { grid-column: 2; align-items: flex-start; }
  .example-header { grid-template-columns: 90px minmax(0, 1fr); }
  .reference-links { grid-column: 2; align-items: flex-start; }
  .reference-links a { text-align: left; }
  .example-meta { grid-template-columns: 1fr; gap: 24px; }
  .app-tour { grid-template-columns: 1fr; }
  .tour-tabs { display: grid; overflow-x: auto; grid-template-columns: repeat(12, minmax(150px, 1fr)); }
  .providers-intro { grid-template-columns: 1fr; gap: 24px; }
  .project-costs-section { grid-template-columns: 1fr; }
  .license-panel { min-height: 300px; }
  .license-panel strong { font-size: clamp(7rem, 26vw, 12rem); }
  .project-costs-action { align-items: flex-start; flex-direction: column; }
  .limitations-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; gap: 52px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  body { font-size: 15px; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero-lead { margin-top: 28px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .statement-band { padding-top: 72px; padding-bottom: 84px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2,
  .providers-intro h2,
  .article-card h2 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .feature-ledger { grid-template-columns: 1fr; }
  .feature,
  .feature-wide,
  .feature-accent:last-child { grid-column: auto; }
  .feature-wide { display: block; }
  .feature-code { margin-bottom: 54px; }
  .mini-composition,
  .code-fragment { margin-top: 30px; }
  .workflow-input,
  .workflow-after { grid-template-columns: 1fr; gap: 18px; }
  .workflow-phase { padding: 22px 14px; gap: 26px; }
  .workflow-stages { grid-template-columns: 1fr; }
  .workflow-stage { min-height: auto; padding: 22px 18px 26px; }
  .workflow-stage:not(:last-child)::after {
    top: auto;
    right: calc(50% - 6px);
    bottom: -7px;
    transform: rotate(135deg);
  }
  .workflow-stage-topline { margin-bottom: 34px; }
  .workflow-gate { grid-template-columns: 1fr; gap: 9px; }
  .stack-layer,
  .stack-layer-accent { margin: 0; padding: 24px 0; grid-template-columns: 1fr; gap: 8px; }
  .stack-layer-accent { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .stack-layer > a,
  .stack-layer > .stack-links { grid-column: 1; margin-top: 14px; }
  .stack-index { font-size: 2.2rem; }
  .stack-support { grid-template-columns: 1fr; }
  .examples-section,
  .article-section { padding-right: 14px; padding-left: 14px; }
  .example-header { padding: 22px; grid-template-columns: 1fr; gap: 8px; }
  .reference-links { grid-column: 1; margin-top: 10px; }
  .case-videos,
  .example-meta { padding: 22px; }
  .example-type-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-type-tabs button { min-height: 68px; padding: 10px 12px; }
  .tour-screen figcaption { min-height: 84px; }
  .provider-table { overflow-x: auto; }
  .provider-table > div { min-width: 690px; }
  .license-panel { margin-right: -14px; margin-left: -14px; min-height: 270px; padding: 24px 20px; }
  .project-costs-heading h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .costs-ledger { margin-top: 48px; grid-template-columns: 1fr; }
  .costs-ledger article { padding: 22px; }
  .project-costs-action .button { width: 100%; }
  .limitation-item { min-height: 0; padding: 24px; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
  .limitation-index { font-size: 2.5rem; }
  .limitations-note { grid-template-columns: 1fr; gap: 10px; }
  .article-status { padding: 20px; }
  .closing { min-height: 68vh; padding: 90px 14px; }
  .closing h2 { font-size: clamp(3.7rem, 18vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
