html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

.landing-page {
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  background: var(--paper);
  overflow-x: hidden;
}

.landing-page :focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--on-dark);
  border-bottom: 1px solid var(--ink-700);
}

.header-inner,
.section-shell,
.hero-inner {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.header-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--on-dark);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--gold-500);
  color: var(--black);
  font: 400 1.8rem/1 MetroLux, Georgia, serif;
}

.brand-name {
  font: 400 1.3rem/1 "Kiona Regular", Georgia, serif;
  letter-spacing: 0.02em;
}

.brand-initial {
  font: 400 1.45em/0 MetroLux, Georgia, serif;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  color: var(--on-dark-muted);
  font: 600 0.75rem/1.2 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="location"],
.footer-login:hover,
.text-link:hover {
  color: var(--gold-500);
}

.site-nav .nav-workspace {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--gold-500);
  color: var(--on-dark);
}

.site-nav .nav-workspace > svg,
.action-link > svg,
.text-link > span,
.footer-login > svg {
  display: inline-block;
  transition: transform 180ms var(--motion-ease);
}

.site-nav .nav-workspace:hover {
  color: var(--black);
  background: var(--gold-500);
}

.site-nav .nav-workspace:hover > svg,
.action-link:hover > svg,
.text-link:hover > span,
.footer-login:hover > svg {
  transform: translate(3px, -2px);
}

.arrow-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  overflow: visible;
}

.arrow-icon path {
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.arrow-down {
  width: 0.85rem;
  height: 0.85rem;
}

.signin-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  transition: transform 180ms var(--motion-ease);
}

.text-link:hover .signin-icon,
.footer-login:hover .signin-icon {
  transform: translateX(2px);
}

.section-black {
  background-color: var(--black);
  color: var(--on-dark);
}

.hero {
  position: relative;
  min-height: min(48rem, calc(100svh - 5.25rem));
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7.5rem) 0 5.5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(26rem, 1.04fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  max-width: 39rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 1.55rem;
  color: var(--accent-text);
  font: 600 0.75rem/1.4 "Exo SemiBold", var(--font-ui);
}

.section-black .eyebrow,
.hero .eyebrow {
  color: var(--gold-500);
}

.hero h1,
.section-heading h2,
.separation-copy h2,
.developer-copy h2,
.closing-inner h2 {
  font-family: "Exo SemiBold", var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 10ch;
  color: var(--on-dark);
  font-size: clamp(3.6rem, 7.2vw, 6.8rem);
  line-height: 0.98;
}

.hero h1 span,
.separation-copy h2 span {
  color: var(--gold-500);
}

.hero-summary {
  max-width: 32rem;
  margin: 1.7rem 0 2.1rem;
  color: var(--on-dark-muted);
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  font: 600 0.75rem/1.2 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
  transition: transform 180ms var(--motion-ease);
}

.action-link:hover {
  transform: translateY(-3px);
}

.action-primary {
  background: var(--gold-500);
  color: var(--black);
}

.action-primary:hover {
  background: var(--gold-200);
}

.action-secondary {
  border-color: var(--ink-500);
  color: var(--on-dark);
}

.action-secondary:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0 0;
  color: var(--on-dark-muted);
  font: 400 0.75rem/1.5 "Exo Regular", var(--font-ui);
}

.status-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--gold-500);
}

.relay-figure {
  width: 100%;
  max-width: 35rem;
  justify-self: end;
  margin: 0;
}

.relay-panel {
  position: relative;
  padding: 1.15rem 1.3rem 1rem;
  border: 1px solid var(--ink-700);
  background: rgba(11, 11, 11, 0.84);
}

.relay-panel-head,
.relay-panel-foot,
.manifest-head,
.code-titlebar,
.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: 600 0.75rem/1.4 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.relay-panel-head {
  padding-bottom: 1rem;
  color: var(--on-dark-muted);
  border-bottom: 1px solid var(--ink-700);
}

.relay-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1.35rem 0;
}

.route-line {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 50%;
  height: 1px;
  background: var(--ink-700);
}

.route-line::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--gold-500);
  transform-origin: left center;
  transform: scaleX(0);
}

.route-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0.42rem;
  background: transparent;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
}

.route-packet::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--black);
  background: var(--gold-200);
  content: "";
}

.route-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 6.3rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  transition: transform 180ms var(--motion-ease), border-color 180ms var(--motion-ease);
}

.route-node:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
}

.node-index {
  color: var(--gold-500);
  font: 600 0.75rem/1.2 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.route-node strong {
  color: var(--on-dark);
  font: 600 0.91rem/1.25 "Exo SemiBold", var(--font-ui);
}

.node-detail {
  color: var(--on-dark-muted);
  font: 400 0.75rem/1.35 "Exo Regular", var(--font-ui);
}

.relay-panel-foot {
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink-700);
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.relay-panel-foot span:last-child {
  color: var(--gold-500);
}

.relay-figure figcaption {
  margin-top: 0.8rem;
  color: var(--on-dark-muted);
  font: 400 0.8rem/1.5 "Exo Regular", var(--font-ui);
  text-align: right;
}

.relay-figure.is-visible .route-line::before {
  animation: route-flow 1.8s var(--motion-ease) 180ms both;
}

.relay-figure.is-visible .route-packet {
  animation: packet-travel 1.8s var(--motion-ease) 180ms both;
}

.relay-figure.is-visible .route-node {
  animation: route-arrive 560ms var(--motion-ease) both;
}

.relay-figure.is-visible .route-input { animation-delay: 120ms; }
.relay-figure.is-visible .route-clean { animation-delay: 360ms; }
.relay-figure.is-visible .route-lock { animation-delay: 600ms; }
.relay-figure.is-visible .route-out { animation-delay: 840ms; }

.hero-edge {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--container)) / 2));
  bottom: 1.45rem;
  left: max(1.5rem, calc((100vw - var(--container)) / 2));
  display: flex;
  justify-content: space-between;
  color: var(--on-dark-muted);
  font: 600 0.75rem/1.2 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.65rem max(1.5rem, calc((100vw - var(--container)) / 2)) 0.8rem;
  border-bottom: 1px solid var(--stone-200);
  background: var(--white);
}

.spec-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
  border-right: 1px solid var(--stone-200);
}

.spec-item:last-child {
  border-right: 0;
}

.spec-value {
  color: var(--text);
  font: 600 clamp(1.15rem, 2vw, 1.65rem)/1 "Exo SemiBold", var(--font-display);
}

.spec-label {
  color: var(--text-muted);
  font: 600 0.75rem/1.3 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.spec-note {
  margin: 0;
  padding: 0 1.5rem 1.3rem;
  background: var(--white);
  color: var(--text-muted);
  font: 400 0.75rem/1.5 "Exo Regular", var(--font-ui);
  text-align: center;
}

.pipeline-section {
  padding: var(--section-pad) 0;
  background: var(--paper);
}

.pipeline-section .section-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(30rem, 1.22fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.section-heading {
  max-width: 27rem;
  padding-top: 0.4rem;
}

.section-heading h2,
.developer-copy h2,
.closing-inner h2 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1.02;
}

.section-heading > p:last-child,
.developer-copy > p:not(.eyebrow) {
  max-width: 27rem;
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.manifest {
  border-top: 1px solid var(--ink-900);
}

.manifest-head {
  min-height: 3.5rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--stone-400);
  font-size: 0.75rem;
}

.manifest-head b {
  padding-inline: 0.4rem;
  color: var(--gold-700);
}

.manifest-row {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.3rem;
  border-bottom: 1px solid var(--stone-200);
}

.manifest-row:hover {
  background: var(--white);
}

.manifest-field {
  color: var(--text);
  font: 600 0.81rem/1.4 "Exo SemiBold", var(--font-ui);
}

.manifest-before {
  overflow: hidden;
  color: var(--text-muted);
  font: 400 0.75rem/1.4 "Exo Regular", var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-after,
.manifest-preserved {
  color: var(--gold-700);
  font: 600 0.75rem/1.3 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.manifest-preserved {
  color: var(--ink-900);
}

.manifest-footnote {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.manifest-scope-note {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.separation-section {
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.separation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.separation-copy h2 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.04;
}

.separation-copy > p:last-child {
  max-width: 27rem;
  margin: 1.5rem 0 0;
  color: var(--on-dark-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.vault-diagram {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
}

.vault-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-500);
  font: 600 0.75rem/1.4 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.branch-stem {
  width: 1px;
  height: 2.2rem;
  margin-top: 0.65rem;
  background: var(--gold-500);
}

.vault-lanes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.vault-lanes::before {
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  content: "";
  background: var(--gold-500);
}

.vault-lane {
  position: relative;
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--ink-700);
  background: var(--black);
  transition: transform 180ms var(--motion-ease);
}

.vault-lane::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 1px;
  height: 1.5rem;
  content: "";
  background: var(--gold-500);
}

.vault-lane:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
}

.lane-key {
  color: var(--gold-500);
  font: 600 0.75rem/1.3 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.vault-lane strong {
  color: var(--on-dark);
  font: 600 1rem/1.3 "Exo SemiBold", var(--font-ui);
}

.vault-lane > span:last-child {
  color: var(--on-dark-muted);
  font: 400 0.75rem/1.4 "Exo Regular", var(--font-ui);
}

.vault-caption {
  margin: 1rem 0 0;
  color: var(--on-dark-muted);
  font: 400 0.75rem/1.5 "Exo Regular", var(--font-ui);
  text-align: right;
}

.developer-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.developer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.developer-copy h2 {
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.7rem;
  color: var(--accent-text);
  font: 600 0.75rem/1.4 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: var(--black);
  color: var(--on-dark);
}

.code-titlebar,
.code-foot {
  min-height: 3.4rem;
  padding: 0 1.15rem;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.code-titlebar {
  border-bottom: 1px solid var(--ink-700);
}

.code-titlebar > span:first-child {
  display: block;
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.6rem 1.3rem;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
}

.code-window code {
  font: inherit;
}

.code-window code::first-line {
  color: var(--gold-200);
}

.code-foot {
  border-top: 1px solid var(--ink-700);
}

.copy-command {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--ink-500);
  border-radius: 0;
  background: transparent;
  color: var(--on-dark);
  font: 600 0.75rem/1.2 "Exo SemiBold", var(--font-ui);
  transition: transform 180ms var(--motion-ease);
}

.copy-command:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--black);
}

.copy-command:active {
  transform: translateY(0);
}

.copy-icon {
  position: relative;
  display: inline-block;
  width: 0.62rem;
  height: 0.68rem;
  border: 1px solid currentColor;
  transition: transform 180ms var(--motion-ease);
}

.copy-icon::before {
  position: absolute;
  inset: 0.14rem 0.14rem -0.16rem -0.16rem;
  border: 1px solid currentColor;
  background: var(--black);
  content: "";
}

.copy-command:hover .copy-icon {
  transform: rotate(90deg);
}

.copy-status {
  min-height: 1.4rem;
  margin: 0;
  padding: 0 1.15rem 0.65rem;
  color: var(--gold-200);
  font: 400 0.75rem/1.4 "Exo Regular", var(--font-ui);
}

.closing-section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 1.5rem;
  background: var(--gold-500);
  color: var(--black);
  overflow: hidden;
}

.closing-section::after {
  position: absolute;
  right: -3rem;
  bottom: -13rem;
  content: "H";
  color: var(--gold-600);
  opacity: 0.24;
  font: 400 36rem/1 MetroLux, Georgia, serif;
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.closing-inner .eyebrow {
  color: var(--black);
}

.closing-inner h2 {
  max-width: 12ch;
  margin-bottom: 2rem;
  color: var(--black);
}

.closing-inner .action-primary {
  background: var(--black);
  color: var(--on-dark);
}

.closing-inner .action-primary:hover {
  background: var(--ink-700);
}

.site-footer {
  padding: 2.5rem max(1.5rem, calc((100vw - var(--container)) / 2)) 1.25rem;
  background: var(--black);
  color: var(--on-dark-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(3, minmax(8rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.5rem;
}

.footer-brand .brand-name {
  font-size: 1.05rem;
}

.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.65rem;
}

.footer-column h2 {
  margin: 0 0 0.3rem;
  color: var(--on-dark);
  font: 600 0.85rem/1.3 "Exo SemiBold", var(--font-ui);
}

.footer-column a,
.footer-column a span {
  color: var(--on-dark-muted);
  font: 400 0.75rem/1.45 "Exo Regular", var(--font-ui);
  transition: color 180ms var(--motion-ease);
}

.footer-column a:hover {
  color: var(--gold-500);
}

.footer-column a span {
  margin-left: 0.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-700);
  color: var(--on-dark-muted);
  font: 400 0.75rem/1.4 "Exo Regular", var(--font-ui);
}

.auth-dialog {
  box-sizing: border-box;
  width: min(100% - 2rem, 30rem);
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--gold-500);
  background: var(--ink-900);
  color: var(--on-dark);
  box-shadow: 0 2rem 7rem rgb(0 0 0 / 45%);
  opacity: 0;
  transform: translateY(1rem) scale(0.985);
  transition:
    opacity 240ms var(--motion-ease),
    transform 320ms var(--motion-ease);
}

.auth-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.auth-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
}

.landing-page:has(.auth-dialog[open]) > :not(.auth-dialog) {
  filter: blur(5px);
}

@starting-style {
  .auth-dialog[open] {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }
}

.auth-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ink-700);
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-dialog-close:hover,
.auth-dialog-close:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.auth-dialog-kicker {
  color: var(--gold-500);
  font: 600 0.75rem/1.3 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
}

.auth-dialog h2 {
  margin-top: 1.1rem;
  font: 400 clamp(1.9rem, 6vw, 2.8rem)/1.08 MetroLux, Georgia, serif;
}

.auth-dialog > p {
  max-width: 23rem;
  margin: 1rem 0 1.75rem;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

.auth-dialog-options {
  display: grid;
  gap: 0.65rem;
}

.auth-dialog-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--ink-700);
  color: var(--on-dark);
  font: 600 0.76rem/1.3 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
  transition:
    border-color 180ms var(--motion-ease),
    background-color 180ms var(--motion-ease),
    color 180ms var(--motion-ease);
}

.provider-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.provider-icon-github {
    color: currentColor;
}

.provider-icon-google {
    padding: 0.08rem;
    border-radius: 50%;
    background: var(--white);
}

.provider-label {
    flex: 1;
}

.auth-dialog-option:hover {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--black);
}

.provider-arrow {
  font-size: 1rem;
}

.auth-dialog-dismiss {
  display: block;
  margin: 1.25rem auto 0;
  padding: 0.45rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--on-dark-muted);
  font: 600 0.75rem/1.3 "Exo SemiBold", var(--font-ui);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.auth-dialog-dismiss:hover {
  color: var(--gold-500);
}

.motion-ready [data-reveal] {
  transform: translateY(1.5rem);
  transition: transform 680ms var(--motion-ease);
}

.motion-ready [data-reveal].is-visible {
  transform: translateY(0);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .hero-copy > * {
  transform: translateY(0.75rem);
  transition: transform 480ms var(--motion-ease);
}

.motion-ready .hero-copy.is-visible > * {
  transform: translateY(0);
}

.motion-ready .hero-copy.is-visible > :nth-child(1) { transition-delay: 80ms; }
.motion-ready .hero-copy.is-visible > :nth-child(2) { transition-delay: 180ms; }
.motion-ready .hero-copy.is-visible > :nth-child(3) { transition-delay: 280ms; }
.motion-ready .hero-copy.is-visible > :nth-child(4) { transition-delay: 380ms; }
.motion-ready .hero-copy.is-visible > :nth-child(5) { transition-delay: 480ms; }

@keyframes route-arrive {
  0% { transform: translateY(0.45rem); border-color: var(--ink-700); }
  55% { border-color: var(--gold-500); }
  100% { transform: translateY(0); border-color: var(--ink-700); }
}

@keyframes packet-travel {
  0% { transform: translateY(-50%) scaleX(0); opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(-50%) scaleX(1); opacity: 0; }
}

@keyframes route-flow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 5.5rem 0 5rem;
  }

  .hero-inner,
  .pipeline-section .section-shell,
  .separation-layout,
  .developer-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 3.5rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .relay-figure {
    max-width: 40rem;
    justify-self: start;
  }

  .pipeline-section .section-shell,
  .separation-layout,
  .developer-layout {
    gap: 3rem;
  }

  .section-heading {
    max-width: 42rem;
  }

  .spec-item {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .auth-dialog {
    width: calc(100vw - 2rem);
    max-width: 30rem;
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 3.75rem 1.25rem 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .auth-dialog-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .auth-dialog h2 {
    margin-top: 0.85rem;
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .auth-dialog > p {
    margin: 0.75rem 0 1.25rem;
    font-size: 0.86rem;
  }

  .auth-dialog-options {
    gap: 0.55rem;
  }

  .auth-dialog-option {
    min-height: 3rem;
    padding: 0.8rem 0.85rem;
    font-size: 0.75rem;
  }

  .auth-dialog-dismiss {
    min-height: 2.75rem;
    margin-top: 0.75rem;
  }

  .header-inner,
  .section-shell,
  .hero-inner {
    width: min(100% - 2rem, var(--container));
  }

  .header-inner {
    min-height: 4.5rem;
  }

  .site-nav {
    gap: 0.45rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .site-nav .nav-workspace {
    padding: 0.62rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 1.55rem;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero-summary {
    font-size: 0.98rem;
  }

  .hero-edge {
    right: 1rem;
    bottom: 1.2rem;
    left: 1rem;
    font-size: 0.75rem;
  }

  .relay-panel {
    padding: 0.9rem 0.75rem 0.75rem;
  }

  .relay-panel-head,
  .relay-panel-foot {
    flex-wrap: wrap;
    font-size: 0.75rem;
  }

  .route-node {
    min-height: 5.8rem;
    padding: 0.65rem;
  }

  .route-node strong {
    font-size: 0.78rem;
  }

  .node-detail {
    font-size: 0.75rem;
  }

  .spec-strip {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.9rem 1rem;
  }

  .spec-item {
    min-height: 4.6rem;
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--stone-200);
  }

  .spec-item:last-child {
    border-bottom: 0;
  }

  .pipeline-section .section-shell,
  .separation-layout,
  .developer-layout {
    gap: 2.3rem;
  }

  .manifest-row {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.8rem;
    min-height: 4.1rem;
    padding-block: 0.5rem;
  }

  .manifest-field {
    grid-column: 1;
  }

  .manifest-before {
    grid-column: 1;
    font-size: 0.75rem;
  }

  .manifest-after,
  .manifest-preserved {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .vault-diagram {
    padding: 1rem;
  }

  .vault-lanes {
    gap: 0.5rem;
  }

  .vault-lane {
    min-height: 8rem;
    padding: 0.7rem;
  }

  .vault-lane strong {
    font-size: 0.84rem;
  }

  .vault-lane > span:last-child {
    font-size: 0.75rem;
  }

  .developer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-window pre {
    padding: 1.25rem 0.85rem;
    font-size: 0.875rem;
  }

  .code-titlebar,
  .code-foot {
    padding-inline: 0.85rem;
  }

  .site-footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .auth-dialog {
    padding: 3.75rem 1.25rem 1.25rem;
  }
}

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

  .auth-dialog,
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
