:root {
  color-scheme: dark;
  --ink: #050706;
  --ink-soft: #0a100d;
  --ink-raised: #101813;
  --moss: #14221a;
  --moss-light: #49675d;
  --paper: #e8ebe4;
  --paper-soft: #d4d9d1;
  --silver: #f0f1eb;
  --silver-soft: #b8c0b8;
  --gold: #c7a66a;
  --gold-bright: #e1c68f;
  --line-dark: #29342d;
  --line-light: #bcc3ba;
  --font-display: Georgia, "Songti SC", "STSong", serif;
  --font-text: Georgia, "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-code: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-height: 82px;
  --shell: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-state: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

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

code,
pre {
  font-family: var(--font-code);
  font-variant-ligatures: none;
}

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

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

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

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

.page-shell {
  width: min(calc(100% - 96px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding-inline: 48px;
  border-bottom: 1px solid transparent;
  color: var(--silver);
  transition:
    background-color 280ms var(--ease-state),
    border-color 280ms var(--ease-state);
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-color: #263129;
  background: #09100ddd;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  display: inline-grid;
  min-height: 44px;
  padding-inline: 10px;
  place-items: center;
  color: var(--silver-soft);
  font-size: 0.8125rem;
  transition: color 180ms var(--ease-out);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 220ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--silver);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 20px;
  border: 1px solid #657066;
  border-radius: 2px;
  font-size: 0.8125rem;
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.header-cta:hover {
  border-color: var(--gold);
  background: #c7a66a14;
}

.header-cta:active,
.button:active {
  transform: scale(0.97);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.scroll-story {
  position: relative;
  height: 610svh;
  min-height: 3800px;
  background: var(--ink);
}

.scroll-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.story-media,
.story-stages,
.story-stage {
  position: absolute;
  inset: 0;
}

.story-media {
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}

.story-poster,
.story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.story-poster {
  background-image: url("assets/images/lotusrain-bloom-poster.webp");
  background-position: 60% center;
  background-size: cover;
}

.story-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}

.scroll-story.is-video-ready .story-video {
  opacity: 1;
}

.scroll-story.is-video-error .story-video,
.motion-lite .story-video {
  display: none;
}

.story-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, #050706eb 0%, #0507069c 25%, transparent 55%),
    linear-gradient(180deg, #050706a8 0%, transparent 24%, transparent 67%, #050706e8 100%);
  pointer-events: none;
}

.rain-field {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
}

.rain-field::before,
.rain-field::after {
  position: absolute;
  inset: -20%;
  content: "";
  background-image: repeating-linear-gradient(
    104deg,
    transparent 0,
    transparent 78px,
    #e7ece52e 79px,
    transparent 80px
  );
  transform: translate3d(0, -3%, 0);
  animation: rainDrift 16s linear infinite;
}

.rain-field::after {
  opacity: 0.5;
  transform: translate3d(4%, -8%, 0);
  animation-duration: 22s;
}

@keyframes rainDrift {
  to {
    transform: translate3d(-3%, 7%, 0);
  }
}

.story-stages {
  z-index: 5;
}

.story-stage {
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 7vw 112px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.story-stage:first-child {
  opacity: 1;
  pointer-events: auto;
}

.story-copy {
  position: relative;
  width: min(540px, 43vw);
  color: var(--silver);
  isolation: isolate;
}

.story-copy::before {
  position: absolute;
  z-index: -1;
  inset: -76px -112px;
  content: "";
  background: radial-gradient(ellipse at center, #050706e8 0%, #050706a8 46%, transparent 74%);
  pointer-events: none;
}

.story-stage-left .story-copy {
  margin-right: auto;
}

.story-stage-right .story-copy {
  margin-left: auto;
}

.story-copy-wide {
  width: min(700px, 55vw);
}

.story-label,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

.story-label span,
.section-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid #9a865f;
  border-radius: 50%;
  background: #c7a66a0d;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.story-copy h1,
.story-copy h2,
.section-heading h2,
.team-copy h2,
.protocol-copy h2,
.closing-layout h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.story-copy h1 {
  max-width: 760px;
  font-size: 4.625rem;
}

.story-copy h2 {
  font-size: 3.625rem;
}

.story-copy > p:not(.story-label):not(.story-note),
.story-lead {
  max-width: 34rem;
  margin: 30px 0 0;
  color: #d6dcd5;
  font-size: 1.0625rem;
  line-height: 1.9;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    background-color 200ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.button-primary {
  background: var(--gold);
  color: #11130f;
}

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

.button-secondary {
  border-color: #6d756e;
  background: #07100b66;
  color: var(--silver);
}

.button-secondary:hover {
  border-color: var(--gold);
  background: #c7a66a12;
}

.button-dark {
  background: var(--ink);
  color: var(--silver);
}

.button-dark:hover {
  background: var(--moss);
}

.story-tags,
.story-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.story-tags span,
.story-signals span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #566159;
  color: #d5dad4;
  font-size: 0.75rem;
}

.story-signals span::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.story-prices {
  display: grid;
  grid-template-columns: 1.18fr 1.05fr 0.92fr 0.78fr;
  margin-top: 34px;
  border-top: 1px solid #657066;
  border-bottom: 1px solid #657066;
}

.story-prices span {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: center;
  padding-inline: 18px;
  border-right: 1px solid #657066;
}

.story-prices span:last-child {
  border-right: 0;
}

.story-prices small {
  color: var(--silver-soft);
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.story-prices strong {
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.story-prices .story-price-primary {
  background: #c7a66a17;
  box-shadow: inset 0 2px 0 var(--gold);
}

.story-prices .story-price-primary small,
.story-prices .story-price-primary strong {
  color: var(--gold-bright);
}

.story-prices .story-price-primary strong {
  font-size: 2.85rem;
}

.story-prices .story-price-secondary {
  background: #f0f1eb0b;
}

.story-prices .story-price-secondary strong {
  font-size: 2.5rem;
}

.story-prices .story-price-entry {
  opacity: 0.68;
}

.story-copy .story-note {
  margin: 16px 0 0;
  color: var(--silver-soft);
  font-size: 0.75rem;
}

.story-endpoint {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 26px;
  padding: 12px 14px;
  border-block: 1px solid #566159;
  color: var(--gold-bright);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.story-progress {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: 34px;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateY(-50%);
  color: var(--silver-soft);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
}

.story-progress > i {
  position: relative;
  display: block;
  width: 1px;
  height: 150px;
  overflow: hidden;
  background: #6b736c;
}

.story-progress b {
  position: absolute;
  inset: 0;
  display: block;
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  background: var(--gold-bright);
}

.scroll-cue {
  position: absolute;
  z-index: 7;
  bottom: 28px;
  left: 7vw;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--silver-soft);
  font-size: 0.625rem;
}

.scroll-cue i {
  position: relative;
  width: 70px;
  height: 1px;
  overflow: hidden;
  background: #6b736c;
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: var(--gold);
  animation: cueLine 2.2s var(--ease-state) infinite;
}

@keyframes cueLine {
  50%,
  100% {
    transform: translateX(100%);
  }
}

.section {
  position: relative;
  padding-block: 148px;
}

.section-ink {
  background: var(--ink-soft);
}

.section-paper,
.faq-section {
  color: #182019;
  background: var(--paper);
}

.section-moss {
  background: var(--moss);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 56px;
  margin-bottom: 82px;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading h2,
.team-copy h2,
.protocol-copy h2,
.closing-layout h2 {
  font-size: 3.75rem;
}

.section-heading > p:last-child,
.team-copy > p:last-of-type,
.protocol-copy > p:nth-of-type(2) {
  margin: 0;
  color: var(--silver-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.section-heading-dark .section-label {
  color: #7b643d;
}

.section-heading-dark .section-label span {
  border-color: #9c865e;
  color: #283129;
}

.section-heading-dark > p:last-child {
  color: #4f5951;
}

.node-ledger {
  border-top: 1px solid var(--line-dark);
}

.node-ledger article {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.75fr) minmax(300px, 1.5fr);
  gap: 34px;
  align-items: center;
  min-height: 138px;
  border-bottom: 1px solid var(--line-dark);
}

.node-ledger article > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #536158;
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.node-ledger h3,
.boundary-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
}

.node-ledger p {
  max-width: 48rem;
  margin: 0;
  color: var(--silver-soft);
}

.route-line {
  display: grid;
  grid-template-columns: 1fr 100px 1fr 100px 1fr;
  align-items: center;
  margin-top: 80px;
  padding: 28px 0;
  border-block: 1px solid var(--line-dark);
}

.route-line > span {
  display: grid;
  gap: 5px;
  text-align: center;
}

.route-line small {
  color: var(--gold);
  font-size: 0.625rem;
}

.route-line strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
}

.route-line > i {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: #475249;
}

.route-line > i::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: var(--gold);
}

.route-line.is-visible > i::after {
  animation: routeSignal 2.4s var(--ease-state) infinite;
}

@keyframes routeSignal {
  60%,
  100% {
    transform: translateX(100%);
  }
}

.price-ledger {
  display: grid;
  grid-template-columns: 1.22fr 1.08fr 0.92fr 0.78fr;
  align-items: stretch;
  border-block: 1px solid var(--line-light);
  background: #edf0e9;
}

.price-ledger article {
  position: relative;
  display: grid;
  min-height: 314px;
  align-content: space-between;
  padding: 28px;
  border-right: 1px solid var(--line-light);
  transition:
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.price-ledger article:last-child {
  border-right: 0;
}

.price-ledger article > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #657068;
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.price-ledger article > span em {
  color: var(--gold-bright);
  font-size: 0.6875rem;
  font-style: normal;
}

.price-ledger strong {
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-ledger strong small {
  margin-right: 4px;
  color: #75633e;
  font-size: 1.25rem;
  vertical-align: top;
}

.price-ledger a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 180ms var(--ease-out);
}

.price-ledger a:hover {
  color: #7b643d;
}

.price-ledger .plan-primary {
  min-height: 332px;
  background: #17211b;
  color: var(--silver);
  box-shadow: inset 0 3px 0 var(--gold);
}

.price-ledger .plan-primary > span,
.price-ledger .plan-primary strong small {
  color: var(--gold-bright);
}

.price-ledger .plan-primary strong {
  color: var(--silver);
  font-size: 6rem;
}

.price-ledger .plan-primary a {
  border-color: #4c5a50;
  color: var(--gold-bright);
  font-weight: 700;
}

.price-ledger .plan-primary:hover {
  background: #1d2922;
}

.price-ledger .plan-secondary {
  background: #dde3da;
}

.price-ledger .plan-secondary strong {
  font-size: 5.35rem;
}

.price-ledger .plan-secondary:hover {
  background: #d4dcd2;
}

.price-ledger .plan-standard strong {
  font-size: 4.65rem;
}

.price-ledger .plan-entry {
  background: #f1f3ee;
  color: #515a53;
}

.price-ledger .plan-entry strong {
  color: #4c554e;
  font-size: 4.2rem;
}

.price-ledger .plan-entry > span,
.price-ledger .plan-entry a {
  color: #6e776f;
}

.pricing-note {
  margin: 22px 0 0;
  color: #586158;
  font-size: 0.75rem;
}

.boundary-layout {
  display: grid;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid #405047;
}

.boundary-grid article {
  min-height: 360px;
  padding: 42px 42px 38px 0;
}

.boundary-grid article + article {
  padding-right: 0;
  padding-left: 42px;
  border-left: 1px solid #405047;
}

.boundary-grid article > span {
  color: var(--gold);
  font-size: 0.6875rem;
}

.boundary-grid h3 {
  margin-top: 32px;
  overflow-wrap: anywhere;
}

.boundary-grid p {
  max-width: 31rem;
  margin: 24px 0;
  color: #b9c4bc;
}

.boundary-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #d2d9d3;
  font-size: 0.8125rem;
  list-style: none;
}

.boundary-grid li::before {
  margin-right: 9px;
  color: var(--gold);
  content: "—";
}

.maintenance-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
  border: 1px solid #405047;
}

.maintenance-strip span {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid #405047;
  color: #d4dcd5;
  font-size: 0.8125rem;
}

.maintenance-strip span:last-child {
  border-right: 0;
}

.maintenance-strip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px #c7a66a18;
}

.team-section {
  overflow: hidden;
  background: #0d120f;
}

.team-section::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
  content: "";
  border-left: 1px solid var(--line-dark);
  background-image: url("assets/images/lotusrain-bloom-poster.webp");
  background-position: 57% center;
  background-size: cover;
  opacity: 0.24;
}

.team-section::after {
  position: absolute;
  inset: 0 0 0 50%;
  content: "";
  background: linear-gradient(90deg, #0d120f 0%, transparent 60%);
}

.team-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 140px minmax(0, 660px) 1fr;
  gap: 44px;
  align-items: end;
}

.team-index {
  margin: 0;
  color: #758079;
  font-size: 0.6875rem;
  writing-mode: vertical-rl;
}

.team-copy .section-label {
  margin-bottom: 24px;
}

.team-copy > p:last-of-type {
  max-width: 37rem;
  margin-top: 32px;
}

.team-rhythm {
  display: grid;
  justify-self: end;
  width: min(100%, 280px);
  border-block: 1px solid #475249;
}

.team-rhythm span {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #303a33;
  color: #d0d7d1;
  font-size: 0.8125rem;
}

.team-rhythm span:last-child {
  border-bottom: 0;
}

.team-rhythm span::after {
  color: var(--gold);
  content: "↗";
}

.protocol-section {
  color: #182019;
  background: #dfe4dc;
}

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: 92px;
  align-items: start;
}

.protocol-copy h2 {
  font-size: 3.5rem;
}

.protocol-copy .section-label {
  color: #79633d;
}

.protocol-copy .section-label span {
  color: #283129;
}

.protocol-copy > p:nth-of-type(2) {
  margin-top: 28px;
  color: #4f5951;
}

.steps {
  display: grid;
  gap: 0;
  margin: 42px 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line-light);
}

.steps span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #9c865e;
  border-radius: 50%;
  color: #876e42;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.security-note {
  max-width: 32rem;
  margin: 20px 0 0;
  color: #59635b;
  font-size: 0.75rem;
}

.code-specimen {
  overflow: hidden;
  border: 1px solid #2d3931;
  border-radius: 4px;
  background: #08100c;
  color: var(--silver);
}

.code-toolbar,
.code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding-inline: 24px;
  border-bottom: 1px solid #29352d;
}

.code-toolbar > div {
  display: grid;
  gap: 3px;
}

.code-toolbar span,
.code-footer > span {
  color: var(--gold);
  font-size: 0.625rem;
}

.code-toolbar strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}

.code-toolbar button,
.code-footer button {
  min-width: 72px;
  min-height: 44px;
  border: 1px solid #4b574f;
  border-radius: 2px;
  background: transparent;
  color: var(--silver);
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.code-toolbar button:hover,
.code-footer button:hover,
.code-toolbar button.has-feedback,
.code-footer button.has-feedback {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.code-tabs {
  display: flex;
  min-height: 52px;
  align-items: stretch;
  border-bottom: 1px solid #29352d;
}

.code-tabs button {
  min-width: 116px;
  border-right: 1px solid #29352d;
  background: transparent;
  color: #869088;
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.code-tabs button[aria-selected="true"] {
  background: #111a15;
  color: var(--gold-bright);
}

.code-panel {
  min-height: 380px;
  padding: 30px 26px;
}

.code-panel[hidden] {
  display: none;
}

.code-panel pre {
  margin: 0;
  overflow: auto;
  color: #d6ddd7;
  font-size: 0.8125rem;
  line-height: 1.85;
  white-space: pre;
}

.code-footer {
  min-height: 64px;
  border-top: 1px solid #29352d;
  border-bottom: 0;
}

.code-footer code {
  margin-right: auto;
  color: #cbd2cc;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: 100px;
  align-items: start;
}

.faq-layout .section-heading {
  display: block;
  margin: 0;
}

.faq-layout .section-heading h2 {
  font-size: 3.25rem;
}

.faq-layout .section-heading .section-label {
  margin-bottom: 24px;
}

.faq-layout .section-heading > p:last-child {
  margin-top: 30px;
}

.faq-list {
  border-top: 1px solid var(--line-light);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.faq-item h3 {
  margin: 0;
}

.faq-item h3 button {
  display: grid;
  grid-template-columns: 1fr 44px;
  width: 100%;
  min-height: 82px;
  align-items: center;
  padding: 0;
  background: transparent;
  color: #182019;
  text-align: left;
  cursor: pointer;
}

.faq-item h3 button > span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
}

.faq-item h3 button i {
  position: relative;
  width: 44px;
  height: 44px;
}

.faq-item h3 button i::before,
.faq-item h3 button i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  content: "";
  background: #4e5b52;
  transition: transform 220ms var(--ease-out);
}

.faq-item h3 button i::before {
  transform: translate(-50%, -50%);
}

.faq-item h3 button i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open h3 button i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 300ms var(--ease-state),
    opacity 220ms var(--ease-out);
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel p {
  max-width: 42rem;
  margin: 0;
  padding: 12px 56px 30px 0;
  color: #556057;
  font-size: 0.9375rem;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.closing-section {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.closing-media,
.closing-shade {
  position: absolute;
  inset: 0;
}

.closing-media {
  background-image: url("assets/images/lotusrain-bloom-poster.webp");
  background-position: center;
  background-size: cover;
}

.closing-shade {
  background: linear-gradient(90deg, #050706ef 0%, #0507068f 46%, transparent 74%),
    linear-gradient(180deg, transparent 45%, #050706d9 100%);
}

.closing-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 42px;
  padding-block: 130px 86px;
}

.closing-layout .section-label {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.closing-layout h2 {
  max-width: 800px;
}

.site-footer {
  padding-top: 72px;
  background: #070b09;
  color: var(--silver);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}

.footer-grid > div:first-child > p {
  max-width: 24rem;
  margin: 24px 0 0;
  color: var(--silver-soft);
  font-size: 0.8125rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--silver-soft);
  font-size: 0.8125rem;
}

.footer-links a:hover,
.footer-addresses a:hover {
  color: var(--gold-bright);
}

.footer-addresses {
  display: grid;
  align-content: start;
  gap: 20px;
}

.footer-addresses p {
  display: grid;
  gap: 5px;
  margin: 0;
}

.footer-addresses span {
  color: var(--gold);
  font-size: 0.625rem;
}

.footer-addresses a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--silver-soft);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  color: #7c867f;
  font-size: 0.6875rem;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid #59645c;
  border-radius: 2px;
  transform: translateY(18px);
  background: #0a110ddd;
  color: var(--silver);
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
  backdrop-filter: blur(10px);
}

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

.reveal-item {
  transform: none;
  opacity: 1;
}

.js .reveal-item {
  transform: translate3d(0, 24px, 0);
  opacity: 0;
  transition:
    transform 620ms var(--ease-out),
    opacity 520ms var(--ease-out);
}

.js .reveal-item.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 1120px) {
  :root {
    --header-height: 76px;
  }

  .page-shell {
    width: min(calc(100% - 64px), var(--shell));
  }

  .site-header {
    padding-inline: 32px;
  }

  .site-nav {
    gap: 22px;
  }

  .story-stage {
    padding-inline: 6vw;
  }

  .story-copy h1 {
    font-size: 4rem;
  }

  .story-copy h2,
  .section-heading h2,
  .team-copy h2,
  .protocol-copy h2,
  .closing-layout h2 {
    font-size: 3.25rem;
  }

  .story-copy {
    width: min(520px, 47vw);
  }

  .story-copy-wide {
    width: min(640px, 59vw);
  }

  .section {
    padding-block: 120px;
  }

  .protocol-layout,
  .faq-layout {
    gap: 60px;
  }

  .protocol-layout {
    grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  }

  .team-layout {
    grid-template-columns: 80px minmax(0, 600px) 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    position: relative;
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding-inline: 32px;
    border-bottom: 1px solid transparent;
    background: #09100df5;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 360ms var(--ease-state),
      opacity 220ms var(--ease-out),
      border-color 220ms var(--ease-out);
  }

  .site-header.nav-open .site-nav {
    max-height: 390px;
    padding-block: 12px 24px;
    border-color: #263129;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: start;
    min-height: 58px;
    border-bottom: 1px solid #263129;
    font-size: 0.9375rem;
  }

  .site-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-header.nav-open .menu-toggle span:first-child {
    transform: rotate(45deg);
  }

  .site-header.nav-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
  }

  .scroll-story {
    height: 560svh;
    min-height: 3300px;
  }

  .story-copy {
    width: min(560px, 62vw);
  }

  .story-copy-wide {
    width: min(640px, 72vw);
  }

  .story-copy h1 {
    font-size: 3.5rem;
  }

  .story-copy h2,
  .section-heading h2,
  .team-copy h2,
  .protocol-copy h2,
  .closing-layout h2 {
    font-size: 2.875rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading .section-label {
    margin-bottom: 4px;
  }

  .node-ledger article {
    grid-template-columns: 56px 180px 1fr;
    gap: 22px;
  }

  .route-line {
    grid-template-columns: 1fr 44px 1fr 44px 1fr;
  }

  .price-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-ledger article:nth-child(2) {
    border-right: 0;
  }

  .price-ledger article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }

  .team-section::before {
    width: 48%;
  }

  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-index {
    display: none;
  }

  .team-copy {
    max-width: 620px;
  }

  .team-rhythm {
    justify-self: start;
  }

  .protocol-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .protocol-copy {
    max-width: 620px;
  }

  .faq-layout .section-heading h2 {
    font-size: 2.875rem;
  }

  .closing-layout {
    grid-template-columns: 1fr;
  }

  .closing-layout .button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .page-shell {
    width: min(calc(100% - 40px), var(--shell));
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    padding-inline: max(20px, env(safe-area-inset-left));
  }

  .brand-copy strong {
    font-size: 1.125rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .site-nav {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .scroll-story {
    height: 520svh;
    min-height: 3000px;
  }

  .scroll-sticky {
    min-height: 560px;
  }

  .story-poster,
  .story-video {
    object-fit: contain;
    object-position: center 43%;
    background-color: var(--ink);
  }

  .story-poster {
    background-position: center 43%;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .story-vignette {
    background:
      linear-gradient(180deg, #050706db 0%, #0507064a 22%, #05070630 48%, #050706ef 79%, #050706 100%),
      linear-gradient(90deg, #05070680 0%, transparent 50%, #05070680 100%);
  }

  .rain-field {
    opacity: 0.08;
  }

  .story-stage {
    align-items: end;
    padding: calc(var(--header-height) + 28px) 20px max(90px, calc(env(safe-area-inset-bottom) + 70px));
  }

  .story-copy,
  .story-copy-wide {
    width: 100%;
    margin-inline: 0;
  }

  .story-copy::before {
    inset: -42px -26px -58px;
    background: linear-gradient(180deg, transparent 0%, #050706b8 24%, #050706f2 70%);
  }

  .story-label,
  .section-label {
    margin-bottom: 16px;
    font-size: 0.6875rem;
  }

  .story-label span,
  .section-label span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 0.6875rem;
  }

  .story-copy h1 {
    font-size: 2.625rem;
  }

  .story-copy h2,
  .section-heading h2,
  .team-copy h2,
  .protocol-copy h2,
  .closing-layout h2 {
    font-size: 2.375rem;
  }

  .faq-layout .section-heading h2 {
    font-size: 2.375rem;
  }

  .story-copy > p:not(.story-label):not(.story-note),
  .story-lead {
    margin-top: 20px;
    font-size: 0.9375rem;
    line-height: 1.75;
  }

  .story-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .story-actions .button {
    min-width: 0;
    padding-inline: 12px;
  }

  .story-tags,
  .story-signals {
    margin-top: 22px;
  }

  .story-tags span,
  .story-signals span {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 0.6875rem;
  }

  .story-prices {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }

  .story-prices span {
    min-height: 74px;
    padding-inline: 12px;
  }

  .story-prices span:nth-child(2) {
    border-right: 0;
  }

  .story-prices span:nth-child(-n + 2) {
    border-bottom: 1px solid #657066;
  }

  .story-prices strong {
    font-size: 1.75rem;
  }

  .story-endpoint {
    margin-top: 18px;
    font-size: 0.6875rem;
  }

  .story-progress {
    top: auto;
    right: 20px;
    bottom: 24px;
    grid-template-columns: auto 74px;
    transform: none;
  }

  .story-progress > i {
    width: 74px;
    height: 1px;
  }

  .story-progress b {
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
  }

  .scroll-cue {
    bottom: 24px;
    left: 20px;
  }

  .scroll-cue span {
    display: none;
  }

  .scroll-cue i {
    width: 42px;
  }

  .section {
    padding-block: 88px;
  }

  .section-heading {
    margin-bottom: 52px;
  }

  .node-ledger article {
    grid-template-columns: 42px 1fr;
    gap: 12px 14px;
    align-items: start;
    min-height: 0;
    padding-block: 28px;
  }

  .node-ledger article > span {
    grid-row: 1 / 3;
  }

  .node-ledger h3 {
    font-size: 1.375rem;
  }

  .node-ledger p {
    font-size: 0.875rem;
  }

  .route-line {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 52px;
  }

  .route-line > i {
    width: 1px;
    height: 34px;
    justify-self: center;
  }

  .route-line > i::after {
    transform: translateY(-100%);
  }

  .route-line.is-visible > i::after {
    animation-name: routeSignalVertical;
  }

  @keyframes routeSignalVertical {
    60%,
    100% {
      transform: translateY(100%);
    }
  }

  .price-ledger article {
    min-height: 220px;
    padding: 22px;
  }

  .price-ledger strong {
    font-size: 3.75rem;
  }

  .price-ledger .plan-primary {
    min-height: 240px;
  }

  .price-ledger .plan-primary strong {
    font-size: 4.4rem;
  }

  .price-ledger .plan-secondary strong {
    font-size: 4rem;
  }

  .price-ledger .plan-standard strong {
    font-size: 3.55rem;
  }

  .price-ledger .plan-entry strong {
    font-size: 3.2rem;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .boundary-grid article,
  .boundary-grid article + article {
    min-height: 0;
    padding: 32px 0;
    border-left: 0;
  }

  .boundary-grid article + article {
    border-top: 1px solid #405047;
  }

  .boundary-grid h3 {
    margin-top: 20px;
    font-size: 1.375rem;
  }

  .maintenance-strip {
    grid-template-columns: 1fr;
  }

  .maintenance-strip span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid #405047;
  }

  .maintenance-strip span:last-child {
    border-bottom: 0;
  }

  .team-section::before {
    top: auto;
    width: 100%;
    height: 45%;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
    opacity: 0.16;
  }

  .team-section::after {
    inset: 42% 0 0;
    background: linear-gradient(180deg, #0d120f 0%, transparent 60%);
  }

  .team-rhythm {
    width: 100%;
  }

  .code-toolbar,
  .code-footer {
    padding-inline: 16px;
  }

  .code-tabs {
    overflow-x: auto;
  }

  .code-tabs button {
    min-width: 106px;
  }

  .code-panel {
    min-height: 340px;
    padding: 22px 18px;
  }

  .code-panel pre {
    font-size: 0.75rem;
  }

  .code-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding-block: 12px;
  }

  .code-footer > span {
    grid-column: 1;
  }

  .code-footer code {
    grid-column: 1;
    margin: 0;
  }

  .code-footer button {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .faq-item h3 button {
    min-height: 76px;
  }

  .faq-item h3 button > span {
    font-size: 1rem;
  }

  .faq-panel p {
    padding-right: 0;
  }

  .closing-section {
    min-height: 74svh;
  }

  .closing-media {
    background-position: center;
  }

  .closing-shade {
    background: linear-gradient(180deg, #05070666 0%, #050706f2 74%, #050706 100%);
  }

  .closing-layout {
    padding-block: 100px 64px;
  }

  .closing-layout .button {
    justify-self: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding-block: 18px max(18px, env(safe-area-inset-bottom));
  }

  .toast {
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 20px;
  }
}

@media (max-width: 390px) {
  .story-copy h1 {
    font-size: 2.25rem;
  }

  .story-copy h2,
  .section-heading h2,
  .team-copy h2,
  .protocol-copy h2,
  .closing-layout h2 {
    font-size: 2.125rem;
  }

  .faq-layout .section-heading h2 {
    font-size: 2.125rem;
  }

  .story-actions {
    grid-template-columns: 1fr;
  }

  .price-ledger {
    grid-template-columns: 1fr;
  }

  .price-ledger article {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .price-ledger article:last-child {
    border-bottom: 0;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .story-stage {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 48px;
  }

  .story-copy h1 {
    font-size: 3rem;
  }

  .story-copy h2 {
    font-size: 2.5rem;
  }

  .story-copy > p:not(.story-label):not(.story-note),
  .story-lead {
    margin-top: 16px;
    line-height: 1.65;
  }

  .story-actions,
  .story-prices,
  .story-tags,
  .story-signals {
    margin-top: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-story {
    height: auto;
    min-height: 0;
  }

  .scroll-sticky {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }

  .story-video {
    display: none;
  }

  .story-media {
    position: absolute;
    min-height: 100%;
  }

  .story-poster {
    position: sticky;
    top: 0;
    height: 100svh;
    opacity: 0.38;
  }

  .story-stages {
    position: relative;
    display: grid;
    gap: 1px;
    padding: calc(var(--header-height) + 64px) 0 64px;
    background: #05070699;
  }

  .story-stage {
    position: relative;
    display: block;
    min-height: 0;
    padding: 64px 7vw;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .story-stage .story-copy,
  .story-stage .story-copy-wide {
    width: min(700px, 100%);
    margin-inline: auto;
  }

  .story-copy::before {
    inset: -30px;
    background: #050706cc;
  }

  .story-progress,
  .scroll-cue,
  .rain-field {
    display: none;
  }

  .js .reveal-item {
    transform: none;
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .story-vignette,
  .closing-shade,
  .rain-field {
    display: none;
  }
}
