:root {
  --ink: #102f2c;
  --ink-2: #1f4c46;
  --muted: #55736d;
  --paper: #f4f0e7;
  --paper-2: #fffaf1;
  --surface: rgb(255 252 244 / 0.78);
  --surface-strong: #fffdf7;
  --line: #c9d5cd;
  --line-dark: #264a45;
  --grid: rgb(31 76 70 / 0.1);
  --electric: #16a3a3;
  --electric-2: #6be4d8;
  --signal: #f2a33a;
  --signal-2: #ffd66e;
  --clay: #b8643e;
  --deep: #092522;
  --shadow: 0 28px 90px rgb(12 42 38 / 0.16);
  --shadow-hard: 8px 8px 0 rgb(16 47 44 / 0.16);
  --max: 1180px;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --scroll: 0;
  --mx: 50%;
  --my: 18%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgb(107 228 216 / 0.28), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgb(242 163 58 / 0.24), transparent 18rem),
    linear-gradient(135deg, #f8f3e9 0%, #eef7f2 58%, #f5efe5 100%);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.76) 52%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: calc(var(--scroll) * 1%);
  height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--signal));
  box-shadow: 0 0 22px rgb(22 163 163 / 0.45);
  pointer-events: none;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.lab-grid,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lab-grid {
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 45%, rgb(22 163 163 / 0.11) 45% 45.2%, transparent 45.2%),
    radial-gradient(circle at 14% 72%, rgb(184 100 62 / 0.16), transparent 16rem);
}

.cursor-glow {
  z-index: -1;
  background: radial-gradient(circle at var(--mx) var(--my), rgb(22 163 163 / 0.16), transparent 22rem);
  mix-blend-mode: multiply;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgb(16 47 44 / 0.16);
  background: rgb(244 240 231 / 0.76);
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav {
  width: min(var(--max), calc(100vw - 32px));
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 17px;
}

.mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 0 40%, rgb(255 255 255 / 0.5) 40% 46%, transparent 46%),
    conic-gradient(from 30deg, var(--electric), var(--signal), #f2e2bd, var(--ink-2), var(--electric));
  box-shadow: var(--shadow-hard);
  transform: rotate(-8deg);
}

.mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgb(16 47 44 / 0.5);
  border-radius: 7px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.navlinks,
.version-switcher {
  display: flex;
  align-items: center;
}

.navlinks {
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.navlinks a:hover {
  color: var(--ink);
  border-color: rgb(16 47 44 / 0.18);
  background: rgb(255 252 244 / 0.62);
  transform: translateY(-1px);
}

.version-switcher {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(16 47 44 / 0.16);
  border-radius: 999px;
  background: rgb(255 252 244 / 0.66);
  box-shadow: 0 10px 32px rgb(16 47 44 / 0.07);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.version-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.version-switcher a:hover {
  color: var(--ink);
  border-color: rgb(22 163 163 / 0.36);
  background: rgb(255 252 244 / 0.9);
  transform: translateY(-1px);
}

.version-switcher a[aria-current="page"] {
  color: var(--paper-2);
  border-color: var(--deep);
  background: var(--deep);
}

.version-menu {
  position: relative;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.version-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  color: var(--paper-2);
  background: var(--deep);
  box-shadow: 0 10px 32px rgb(16 47 44 / 0.1);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.version-menu summary::-webkit-details-marker {
  display: none;
}

.version-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease);
}

.version-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.version-menu summary span {
  letter-spacing: 0.08em;
}

.version-menu summary strong {
  font-weight: 900;
}

.version-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 148px;
  padding: 8px;
  border: 1px solid rgb(16 47 44 / 0.16);
  border-radius: 18px;
  background: rgb(255 252 244 / 0.96);
  box-shadow: 0 18px 60px rgb(16 47 44 / 0.18);
  backdrop-filter: blur(16px);
}

.version-list a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.version-list a:hover {
  color: var(--ink);
  background: rgb(22 163 163 / 0.1);
}

.version-list a[aria-current="page"] {
  color: var(--paper-2);
  background: var(--deep);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 74px);
  padding: clamp(48px, 7vw, 94px) 16px clamp(64px, 8vw, 120px);
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgb(16 47 44 / 0.1);
  border-radius: 50%;
  opacity: 0.85;
}

.hero-orbit span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgb(22 163 163 / 0.36);
}

.hero-orbit span:nth-child(1) {
  inset: 10%;
}

.hero-orbit span:nth-child(2) {
  inset: 23%;
  border-color: rgb(242 163 58 / 0.38);
}

.hero-orbit span:nth-child(3) {
  top: 26%;
  left: 11%;
  width: 13px;
  height: 13px;
  background: var(--electric);
  box-shadow: 0 0 28px var(--electric);
}

.hero-inner {
  position: relative;
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.98fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "EXPERIMENT / 001";
  position: absolute;
  top: -44px;
  left: 0;
  color: rgb(16 47 44 / 0.48);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(16 47 44 / 0.32);
  border-left: 4px solid var(--electric);
  padding: 10px 14px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 900;
  background: rgb(255 252 244 / 0.74);
  box-shadow: 0 12px 34px rgb(16 47 44 / 0.08);
}

h1 {
  margin: 26px 0 22px;
  max-width: 9.5ch;
  font-size: clamp(54px, 7.9vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  color: var(--ink-2);
}

h1 span:nth-child(3) {
  position: relative;
  width: fit-content;
}

h1 span:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: -0.08em;
  bottom: 0.03em;
  z-index: -1;
  height: 0.18em;
  background: linear-gradient(90deg, rgb(107 228 216 / 0.8), rgb(255 214 110 / 0.7));
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.62;
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 650px;
}

.hero-points li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid rgb(16 47 44 / 0.14);
  background: rgb(255 252 244 / 0.54);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.46;
  box-shadow: 0 10px 28px rgb(16 47 44 / 0.05);
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 17px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  background: var(--signal);
  box-shadow: 4px 4px 0 rgb(16 47 44 / 0.12);
  transform: rotate(45deg);
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.hero-points span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  background: var(--deep);
  color: var(--paper-2);
  overflow: hidden;
  text-decoration: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgb(255 255 255 / 0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 300ms var(--ease);
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgb(16 47 44 / 0.18);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.secondary {
  background: rgb(255 252 244 / 0.72);
  color: var(--ink);
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-self: center;
}

.hero-art {
  position: relative;
  padding: 40px 14px 14px;
  border: 1px solid rgb(16 47 44 / 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(255 252 244 / 0.88), rgb(236 247 241 / 0.64)),
    radial-gradient(circle at 80% 0%, rgb(22 163 163 / 0.18), transparent 22rem);
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 54px 28px auto auto;
  width: 94px;
  height: 94px;
  border: 1px solid rgb(22 163 163 / 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(22 163 163 / 0.16), transparent 60%);
}

.window-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid rgb(16 47 44 / 0.16);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: rgb(16 47 44 / 0.58);
  font-size: 12px;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

.window-bar span:nth-child(2) {
  background: var(--electric);
}

.window-bar span:nth-child(3) {
  background: var(--ink-2);
}

.window-bar strong {
  margin-left: auto;
  font-weight: 700;
}

.hero-art img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(16 47 44 / 0.18);
  border-radius: calc(var(--radius) - 10px);
  filter: saturate(0.96) contrast(1.02);
}

.section {
  position: relative;
  padding: clamp(68px, 9vw, 128px) 16px;
}

.section::before {
  content: "";
  position: absolute;
  left: max(16px, calc((100vw - var(--max)) / 2));
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgb(16 47 44 / 0.18), transparent);
}

.section.alt {
  color: var(--paper-2);
  background:
    radial-gradient(circle at 16% 20%, rgb(22 163 163 / 0.28), transparent 22rem),
    radial-gradient(circle at 86% 8%, rgb(242 163 58 / 0.18), transparent 18rem),
    linear-gradient(135deg, #0b2c29, #173d38 52%, #08211f);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-kicker {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid rgb(16 47 44 / 0.2);
  color: var(--clay);
  background: rgb(255 252 244 / 0.58);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.alt .section-kicker {
  border-color: rgb(255 250 241 / 0.18);
  color: var(--signal-2);
  background: rgb(255 255 255 / 0.06);
}

h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.section-copy {
  max-width: 790px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.68;
}

.alt .section-copy {
  color: rgb(236 247 241 / 0.82);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: start;
}

.section-panel {
  position: relative;
  margin-top: 8px;
  padding: 20px;
  border: 1px solid rgb(255 250 241 / 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)),
    radial-gradient(circle at 100% 0%, rgb(107 228 216 / 0.2), transparent 13rem);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.2);
  overflow: hidden;
}

.section-panel::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--electric-2), transparent);
}

.section-panel::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  border: 1px solid rgb(107 228 216 / 0.24);
  border-radius: 50%;
}

.section-panel span,
.section-panel em,
.section-panel strong,
.section-panel p {
  position: relative;
  z-index: 1;
}

.section-panel span {
  display: block;
  margin: 0 0 30px;
  color: var(--signal-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-panel em {
  display: block;
  margin: 0 0 12px;
  color: var(--paper-2);
  font-style: normal;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-panel strong {
  display: block;
  color: var(--paper-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.35;
}

.section-panel p {
  margin: 14px 0 0;
  color: rgb(236 247 241 / 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.section-panel.light {
  border-color: rgb(16 47 44 / 0.15);
  background:
    linear-gradient(180deg, rgb(255 252 244 / 0.82), rgb(239 249 244 / 0.68)),
    radial-gradient(circle at 100% 0%, rgb(22 163 163 / 0.18), transparent 13rem);
  box-shadow: 0 24px 70px rgb(16 47 44 / 0.08);
}

.section-panel.light span {
  color: var(--clay);
}

.section-panel.light strong {
  color: var(--ink);
}

.section-panel.light em {
  color: var(--ink);
}

.section-panel.light p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  border: 1px solid rgb(16 47 44 / 0.2);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  counter-reset: concept;
}

.concept-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgb(16 47 44 / 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgb(255 252 244 / 0.9), rgb(239 249 244 / 0.72)),
    linear-gradient(90deg, transparent, rgb(22 163 163 / 0.06));
  box-shadow: 0 22px 58px rgb(16 47 44 / 0.08);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.concept-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 118px;
  height: 118px;
  border: 1px solid rgb(22 163 163 / 0.24);
  border-radius: 50%;
}

.concept-card:hover {
  transform: translateY(-5px);
  border-color: rgb(22 163 163 / 0.45);
  box-shadow: 0 30px 80px rgb(16 47 44 / 0.12);
}

.concept-card .num,
.guide-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--signal-2), var(--signal));
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 900;
  box-shadow: 6px 6px 0 rgb(16 47 44 / 0.13);
}

.concept-tag {
  margin: 0 0 8px;
  color: var(--clay);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.concept-card h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.concept-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.sample-card {
  position: relative;
  border: 1px solid rgb(255 250 241 / 0.18);
  border-radius: 24px;
  background: rgb(255 250 241 / 0.08);
  padding: 20px;
  color: var(--paper-2);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.22);
}

.sample-card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 1px;
  background: var(--electric-2);
  box-shadow: 0 8px 0 rgb(107 228 216 / 0.4), 0 16px 0 rgb(107 228 216 / 0.2);
}

.sample-title {
  margin: 0 0 16px;
  color: var(--signal-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 900;
}

.sample-paper {
  min-height: 268px;
  border: 1px solid rgb(255 250 241 / 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 250 241 / 0.96), rgb(235 247 241 / 0.92)),
    linear-gradient(90deg, transparent 0 49%, rgb(22 163 163 / 0.08) 49% 51%, transparent 51%);
  padding: 20px;
  color: var(--ink);
}

.sample-paper.before p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.58;
}

.sample-paper.after ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.sample-paper.after li {
  display: grid;
  gap: 5px;
  padding: 0 0 12px 18px;
  border-bottom: 1px dashed rgb(16 47 44 / 0.2);
  border-left: 3px solid var(--electric);
}

.sample-paper.after strong {
  color: var(--ink-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
}

.sample-paper.after span {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.42;
}

.workflow {
  margin: 34px 0 0;
}

.workflow img {
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 250 241 / 0.22);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.24);
}

.workflow figcaption {
  margin-top: 14px;
  color: rgb(236 247 241 / 0.78);
  font-size: 16px;
  line-height: 1.5;
}

.step-map {
  position: relative;
  margin: 40px 0 0;
  border: 1px solid rgb(16 47 44 / 0.18);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-map::before {
  content: "FLOW MAP";
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  padding: 6px 9px;
  border: 1px solid rgb(16 47 44 / 0.18);
  border-radius: 999px;
  background: rgb(255 252 244 / 0.76);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-map img {
  display: block;
  width: 100%;
  height: auto;
}

.step-map-captions {
  position: absolute;
  left: 3.3%;
  right: 3.1%;
  bottom: 7.9%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1%;
  margin: 0;
}

.step-map-captions article {
  min-height: 100px;
  padding: 12px 13px 10px;
  border: 1px solid rgb(16 47 44 / 0.2);
  border-radius: 14px;
  background: rgb(255 250 242 / 0.95);
  box-shadow: 0 10px 30px rgb(16 47 44 / 0.08);
}

.step-map-captions h3 {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.18;
}

.step-map-captions p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.step-map-captions strong {
  color: var(--clay);
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.qa {
  position: relative;
  padding: 22px 22px 22px 24px;
  border: 1px solid rgb(16 47 44 / 0.16);
  border-radius: 20px;
  background: rgb(255 252 244 / 0.62);
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.qa::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 4px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(var(--electric), var(--signal));
}

.qa:hover {
  transform: translateY(-3px);
  border-color: rgb(22 163 163 / 0.36);
  background: rgb(255 252 244 / 0.82);
}

.qa h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.qa p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.footer {
  padding: 38px 16px;
  border-top: 1px solid rgb(16 47 44 / 0.14);
  background: rgb(244 240 231 / 0.62);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-ready [data-reveal].is-visible,
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready [data-reveal].is-visible {
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .split,
  .case-grid,
  .concept-grid,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 42px;
  }

  .hero-art {
    max-width: 760px;
  }

  .step-map-captions {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    background: rgb(255 252 244 / 0.82);
  }

  .step-map-captions article {
    min-height: 0;
  }

  .step-map-captions h3 {
    font-size: 20px;
  }

  .step-map-captions p {
    font-size: 16px;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 66px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .navlinks {
    gap: 2px;
    font-size: 13px;
  }

  .navlinks a {
    min-height: 44px;
    padding: 0 8px;
  }

  .version-switcher {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .version-switcher::-webkit-scrollbar {
    display: none;
  }

  .version-switcher a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .version-menu {
    margin-left: auto;
  }

  .version-menu summary {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .version-list {
    right: 0;
    min-width: 132px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-copy::before {
    top: -34px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 72px);
    line-height: 1.02;
  }

  .lead {
    font-size: 18px;
  }

  .hero-points li,
  .section-copy,
  .concept-card p:last-child,
  .qa p,
  .sample-paper.before p,
  .sample-paper.after span {
    font-size: 17px;
  }

  .section {
    padding-block: 58px;
  }

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

@media (max-width: 520px) {
  .nav {
    width: calc(100vw - 20px);
    gap: 10px;
  }

  .brand {
    font-size: 15px;
    letter-spacing: 0;
  }

  .mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .navlinks {
    gap: 0;
    font-size: 12px;
  }

  .navlinks a {
    padding: 0 6px;
  }

  .hero-art {
    padding: 38px 9px 9px;
    border-radius: 20px;
  }

  .hero-points li {
    padding-right: 12px;
  }

  .sample-paper {
    min-height: 0;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .reveal-ready [data-reveal],
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
