:root {
  --ink: #0c1c26;
  --ink-deep: #071219;
  --slate: #2f4450;
  --mineral: #5f7480;
  --ivory: #f5f0e0;
  --warm-white: #fdfbf6;
  --sand: #e7dcc9;
  --coral: #e87055;
  --coral-deep: #a8452c;
  --coral-soft: #f08a6e;
  --moss: #8c9c87;
  --moss-deep: #4f6152;
  --ochre: #8a6a2f;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --line: rgba(12, 28, 38, 0.15);
  --line-dark: rgba(245, 240, 224, 0.17);
  --shadow: 0 18px 45px rgba(7, 18, 25, 0.11);
  --radius-card: 22px;
  --radius-engaged: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--coral);
  color: var(--ink-deep);
}

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

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

code,
pre {
  font-family: var(--mono);
}

code {
  padding: 0.15em 0.35em;
  border-radius: 5px;
  background: var(--sand);
  font-size: 0.88em;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand small {
  display: block;
  margin-top: -4px;
  color: var(--mineral);
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.sillage-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 11px;
  background: var(--ink);
}

.sillage-mark i {
  position: absolute;
  display: block;
  border: 2px solid var(--ivory);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.sillage-mark i:nth-of-type(1) {
  top: 7px;
  left: 8px;
  width: 24px;
  height: 19px;
}

.sillage-mark i:nth-of-type(2) {
  top: 13px;
  left: 12px;
  width: 18px;
  height: 14px;
  border-width: 1.5px;
}

.sillage-mark i:nth-of-type(3) {
  top: 19px;
  left: 16px;
  width: 12px;
  height: 9px;
  border-color: var(--coral);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-width: 1.5px;
}

.sillage-mark b {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sand);
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  content: "";
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding-right: 17px;
  padding-left: 17px;
  background: var(--ink);
  color: var(--ivory);
}

.site-nav .nav-cta:hover {
  background: var(--slate);
  color: var(--ivory);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 9px 13px;
  text-transform: uppercase;
}

.hero {
  padding: 102px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 76px;
}

.eyebrow,
.section-label,
.card-kicker,
.card-number,
.rail-state,
.loop-card small,
.stage-meta,
.release time {
  color: var(--coral-deep);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 7vw, 6.35rem);
  line-height: 0.98;
}

h1 em,
h2 em {
  color: var(--coral-deep);
  font-style: normal;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--slate);
  font-size: 1.14rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 11px 17px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--ivory);
}

.button-primary:hover {
  background: var(--slate);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--warm-white);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  color: var(--mineral);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-note span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--coral);
  border-radius: 50%;
}

.workflow-card,
.ink-panel,
.code-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: var(--shadow);
}

.workflow-card {
  min-height: 484px;
  border-radius: var(--radius-engaged);
  padding: 31px 32px 26px;
}

.workflow-card::before,
.ink-panel::before,
.code-card::before,
.page-hero::before {
  position: absolute;
  inset: -25%;
  background-image: repeating-radial-gradient(ellipse at 28% 57%, transparent 0 40px, rgba(245, 240, 224, 0.08) 41px 43px, transparent 44px 72px);
  content: "";
  opacity: 0.92;
  pointer-events: none;
  transform: rotate(-15deg) scale(1.05);
}

.card-kicker,
.rail,
.ink-panel > *,
.code-card > * {
  position: relative;
  z-index: 1;
}

.workflow-card .card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  color: var(--ivory);
}

.workflow-card .card-kicker strong {
  color: var(--coral-soft);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.rail-step {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 53px;
  border-top: 1px solid var(--line-dark);
  gap: 9px;
}

.rail-step:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.rail-index {
  color: rgba(245, 240, 224, 0.48);
  font-family: var(--mono);
  font-size: 0.71rem;
}

.rail-step strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.rail-state {
  color: rgba(245, 240, 224, 0.58);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
}

.rail-step.is-active strong,
.rail-step.is-active .rail-state {
  color: var(--coral-soft);
}

.rail-step.is-active .rail-index::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.section {
  padding: 100px 0;
}

.section-paper {
  background: var(--warm-white);
}

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--ivory);
}

.dark-section::before {
  position: absolute;
  top: -230px;
  right: -190px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(245, 240, 224, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(245, 240, 224, 0.02), 0 0 0 70px rgba(245, 240, 224, 0.02), 0 0 0 105px rgba(245, 240, 224, 0.02);
  content: "";
  pointer-events: none;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 49px;
}

.section-label {
  display: block;
  margin-bottom: 15px;
}

.section-header h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  line-height: 1.02;
}

.section-header > p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--slate);
  font-size: 1.01rem;
}

.dark-section .section-label {
  color: var(--coral-soft);
}

.dark-section .section-header > p {
  color: rgba(245, 240, 224, 0.7);
}

.protect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.protect-card,
.split-card,
.loop-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--ivory);
}

.protect-card {
  min-height: 238px;
  padding: 24px 22px;
}

.card-number {
  display: block;
  margin-bottom: 38px;
  color: var(--mineral);
  font-size: 0.62rem;
}

.protect-card h3,
.split-card h3,
.loop-card h3 {
  margin-bottom: 11px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.protect-card p,
.split-card p,
.loop-card p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 0.91rem;
  line-height: 1.55;
}

.loop-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.loop-card {
  min-height: 218px;
  border-color: var(--line-dark);
  background: rgba(12, 28, 38, 0.52);
  padding: 22px;
}

.loop-card small {
  display: block;
  margin-bottom: 44px;
  color: var(--coral-soft);
  font-size: 0.61rem;
}

.loop-card h3 {
  color: var(--ivory);
  font-size: 1.31rem;
}

.loop-card p {
  color: rgba(245, 240, 224, 0.62);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.split-card {
  padding: 30px;
}

.split-card h3 {
  font-size: 2rem;
}

.split-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.split-card li {
  position: relative;
  padding-left: 23px;
  color: var(--slate);
  font-size: 0.92rem;
}

.split-card li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--coral);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.cta {
  padding: 76px 0;
  background: var(--sand);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.03;
}

.site-footer {
  background: var(--ink-deep);
  color: rgba(245, 240, 224, 0.62);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.footer-links a {
  color: var(--ivory);
  text-decoration: none;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  padding: 101px 0 98px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--coral-soft);
}

.page-hero h1 {
  max-width: 870px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
}

.page-hero h1 em {
  color: var(--coral-soft);
}

.page-hero p:last-child {
  max-width: 630px;
  margin-bottom: 0;
  color: rgba(245, 240, 224, 0.72);
  font-size: 1.12rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  align-items: start;
  gap: 76px;
}

.prose {
  min-width: 0;
}

.prose > section {
  margin-bottom: 73px;
}

.prose > section:last-child {
  margin-bottom: 0;
}

.prose > section + section {
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
}

.prose h3 {
  margin-bottom: 9px;
  font-size: 1.57rem;
  line-height: 1.15;
}

.prose p,
.prose li {
  max-width: 730px;
  color: var(--slate);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a,
.light-link {
  color: var(--coral-deep);
  font-weight: 500;
}

.toc {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.toc strong {
  margin-bottom: 11px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  padding: 4px 0;
  color: var(--mineral);
  font-size: 0.82rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--coral-deep);
}

.stage-list {
  display: grid;
  margin-top: 35px;
}

.stage {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

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

.stage-number {
  color: var(--coral-deep);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding-top: 5px;
}

.stage h3 {
  margin-bottom: 7px;
  font-size: 1.75rem;
}

.stage p {
  margin-bottom: 0;
}

.notice {
  max-width: 760px;
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--coral);
  background: var(--sand);
  color: var(--ink);
  font-size: 0.94rem;
}

.muted {
  color: var(--mineral) !important;
  font-size: 0.87rem !important;
}

.code-card {
  margin: 25px 0 17px;
  border-radius: 18px;
  padding: 24px 24px 22px;
}

.code-card pre {
  overflow-x: auto;
  margin: 0;
  color: var(--ivory);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.code-card code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.copy-button {
  position: relative;
  z-index: 2;
  float: right;
  border: 1px solid rgba(245, 240, 224, 0.27);
  border-radius: var(--radius-pill);
  background: rgba(245, 240, 224, 0.06);
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.copy-button:hover {
  border-color: var(--coral-soft);
  color: var(--coral-soft);
}

.release-list {
  display: grid;
  gap: 13px;
  margin-top: 31px;
}

.release {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--warm-white);
  padding: 27px 28px;
}

.release > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.release > header h2 {
  margin: 0;
  font-size: 2.05rem;
}

.release time {
  color: var(--mineral);
  font-size: 0.63rem;
  white-space: nowrap;
}

.release h3 {
  margin-top: 22px;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.release ul {
  margin: 0 0 9px;
  padding-left: 20px;
}

.release li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.release p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .workflow-card {
    max-width: 680px;
  }

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

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(3, max-content);
    gap: 3px 18px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 600px);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--warm-white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    margin-left: 0;
    border-radius: 11px;
    text-align: left;
  }

  .site-nav a[aria-current="page"]::after {
    right: auto;
    bottom: 9px;
    left: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  .hero,
  .page-hero {
    padding: 72px 0 70px;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .hero-copy,
  .page-hero p:last-child {
    font-size: 1rem;
  }

  .workflow-card {
    min-height: 0;
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 35px;
  }

  .section-header h2 {
    font-size: 2.55rem;
  }

  .protect-grid,
  .loop-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .protect-card,
  .loop-card {
    min-height: 0;
  }

  .card-number,
  .loop-card small {
    margin-bottom: 24px;
  }

  .cta {
    padding: 58px 0;
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    justify-content: center;
    padding: 23px 0;
  }

  .toc {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .prose > section {
    margin-bottom: 58px;
  }

  .prose > section + section {
    padding-top: 50px;
  }

  .stage {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 10px;
    padding: 23px 0;
  }

  .stage h3 {
    font-size: 1.5rem;
  }

  .release {
    padding: 23px 20px;
  }

  .release > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
