:root {
  color-scheme: light;
  --ink: #172b36;
  --muted: #536771;
  --paper: #f6f4ee;
  --card: #fffefa;
  --line: #d9ded8;
  --teal: #165b57;
  --teal-soft: #e2f0eb;
  --coral: #bc5949;
  --coral-soft: #f8e8e1;
  --gold: #e8b852;
  --shadow: 0 18px 50px rgb(24 49 53 / 8%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 6px; }
::selection { color: var(--ink); background: #f3d486; }

.site-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; padding: 30px 22px; display: flex; flex-direction: column; background: #e9eee9; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; color: white; background: var(--teal); font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.brand-name { display: block; font-size: 15px; line-height: 1.2; font-weight: 800; letter-spacing: .12em; }
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.rail-label { margin: 48px 0 12px 10px; color: #73847f; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nav-link { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: #475c61; text-decoration: none; font-size: 13px; font-weight: 650; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover { color: var(--teal); background: rgb(255 255 255 / 65%); transform: translateX(2px); }
.nav-link[aria-current="page"] { color: #fff; background: var(--teal); box-shadow: 0 5px 14px rgb(22 91 87 / 17%); }
.nav-number { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.rail-note { margin-top: auto; padding: 15px; border: 1px solid #d6ded7; border-radius: 14px; color: #52666a; background: rgb(255 255 255 / 55%); font-size: 12px; line-height: 1.55; }
.rail-note strong { display: block; margin-bottom: 4px; color: var(--teal); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.main { min-width: 0; padding: 34px clamp(20px, 5vw, 74px) 30px; }
.topline { max-width: 1060px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto 34px; color: #607276; font-size: 12px; font-weight: 650; }
.topline-kicker { display: flex; align-items: center; gap: 9px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.page-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.content { max-width: 1060px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); align-items: end; gap: 32px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 62px); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
.lead { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; }
.hero-side { justify-self: end; max-width: 240px; padding: 14px 0 5px 16px; border-left: 2px solid var(--gold); color: #657578; font-size: 12px; line-height: 1.55; }
.hero-side b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }

.visual-card { overflow: hidden; position: relative; margin: 30px 0 26px; border: 1px solid #d9e0d9; border-radius: 23px; background: var(--card); box-shadow: var(--shadow); }
.visual-top { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid #e8ebe5; color: #74817f; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.visual-top span:last-child { color: var(--teal); letter-spacing: .03em; text-transform: none; }
.diagram { display: block; width: 100%; height: auto; }
.diagram-mobile { display: none; }
.diagram-caption { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 20px 17px; border-top: 1px solid #e8ebe5; color: #68787a; font-size: 12px; line-height: 1.55; }
.caption-mark { width: 18px; height: 18px; display: grid; flex: 0 0 18px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-soft); font-size: 11px; font-weight: 800; }

.section-heading { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 15px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.section-heading span { color: #80908d; font-size: 11px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { min-height: 130px; position: relative; padding: 17px 14px 16px; border: 1px solid #dfe4dd; border-radius: 15px; background: rgb(255 254 250 / 78%); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; width: fit-content; margin-bottom: 13px; color: var(--coral); font-family: Georgia, serif; font-size: 19px; }
.steps li p { margin: 0; color: #435960; font-size: 13px; font-weight: 620; line-height: 1.5; }
.el-connection { display: flex; align-items: center; gap: 12px; margin-top: 19px; padding: 14px 17px; border-radius: 13px; background: var(--teal-soft); color: #365e5a; font-size: 13px; }
.el-connection strong { color: var(--teal); }
.el-icon { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border: 1px solid #9dbdb1; border-radius: 50%; font-family: Georgia, serif; font-size: 13px; }
.layers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.layer-card { min-height: 124px; padding: 15px; border: 1px solid #dfe4dd; border-radius: 15px; background: rgb(255 254 250 / 78%); }
.layer-card span { display: block; margin-bottom: 8px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.layer-card strong { display: block; margin-bottom: 5px; color: var(--teal); font-family: Georgia, serif; font-size: 17px; font-weight: 600; }
.layer-card p { margin: 0; color: #586b70; font-size: 12px; line-height: 1.5; }
.footnote { margin-top: 19px; color: #7b8987; font-size: 11px; }

.bottom-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1060px; margin: 38px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.bottom-link { min-width: 130px; min-height: 48px; display: inline-flex; align-items: center; gap: 10px; color: var(--teal); text-decoration: none; font-size: 13px; font-weight: 750; }
.bottom-link:hover { color: var(--coral); }
.bottom-link.next { justify-content: flex-end; text-align: right; }
.bottom-arrow { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border: 1px solid #b8cbc2; border-radius: 50%; font-size: 18px; }
.bottom-center { color: #7c8a87; font-size: 11px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .site-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .rail { padding-inline: 16px; }
  .main { padding-inline: clamp(18px, 4vw, 38px); }
  .hero { grid-template-columns: 1fr; gap: 15px; }
  .hero-side { justify-self: start; max-width: 500px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-shell { display: block; }
  .rail { position: relative; z-index: 2; width: 100%; height: auto; padding: 15px 17px 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { width: fit-content; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; font-size: 19px; }
  .brand-caption { font-size: 10px; }
  .rail-label, .rail-note { display: none; }
  .nav-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 13px; }
  .nav-link { min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 10px; font-size: 9px; line-height: 1.15; text-align: center; }
  .nav-link:hover { transform: none; }
  .nav-number { width: 21px; height: 21px; flex-basis: 21px; font-size: 9px; }
  .main { padding: 23px 17px 25px; }
  .topline { margin-bottom: 25px; font-size: 10px; }
  .topline-kicker { gap: 8px; }
  h1 { font-size: clamp(38px, 11vw, 51px); }
  .lead { font-size: 16px; }
  .visual-card { margin: 23px 0; border-radius: 17px; }
  .visual-top { min-height: 42px; padding: 10px 13px; font-size: 8px; }
  .diagram-desktop { display: none; }
  .diagram-mobile { display: block; }
  .diagram-caption { padding: 12px 14px 14px; font-size: 11px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 2px; margin-top: 26px; }
  .section-heading h2 { font-size: 22px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps-four { grid-template-columns: 1fr; }
  .layers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .layer-card { min-height: 0; padding: 13px; }
  .steps li { min-height: 0; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: 12px 13px; }
  .steps li::before { margin: 0; font-size: 17px; }
  .steps li p { font-size: 13px; }
  .el-connection { align-items: flex-start; font-size: 12px; }
  .bottom-nav { margin-top: 29px; padding-top: 14px; }
  .bottom-link { min-width: 0; font-size: 11px; }
  .bottom-center { display: none; }
  .bottom-arrow { width: 31px; height: 31px; flex-basis: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-shell { display: block; }
  .rail, .topline, .bottom-nav { display: none; }
  .main { padding: 0; }
  .visual-card, .steps li { break-inside: avoid; box-shadow: none; }
}
