@font-face {
  font-family: "NysaDisplay";
  font-display: swap;
  src: url("/_v5/app/assets/fonts/Ghefayjro.ttf") format("truetype");
}

@font-face {
  font-family: "NysaSerif";
  font-display: swap;
  src: url("/_v5/app/assets/fonts/Fondamento-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "NysaSans";
  font-display: swap;
  font-weight: 400;
  src: url("/_v5/app/assets/fonts/barlow/Barlow-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "NysaSans";
  font-display: swap;
  font-weight: 600;
  src: url("/_v5/app/assets/fonts/barlow/Barlow-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "NysaCuneiform";
  font-display: swap;
  src: url("/_v5/app/assets/fonts/NotoSansCuneiform-Regular.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --landing-black: #050504;
  --landing-ink: #0b0a08;
  --landing-panel: rgba(11, 10, 8, 0.88);
  --landing-gold: #d8ad55;
  --landing-gold-bright: #efcf82;
  --landing-gold-dim: #705526;
  --landing-parchment: #eee4d1;
  --landing-muted: #c0b6a5;
  --landing-border: rgba(216, 173, 85, 0.34);
  --content-width: 90rem;
  font-family: "NysaSans", "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  background: var(--landing-black);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--landing-parchment);
  background:
    radial-gradient(circle at 50% 0, rgba(90, 64, 25, 0.08), transparent 34rem),
    var(--landing-black);
}

body.chamber-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  border: 1px solid rgba(216, 173, 85, 0.08);
  content: "";
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--landing-gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #0a0804;
  background: var(--landing-gold-bright);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.sr-only,
.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.eyebrow {
  margin: 0;
  color: var(--landing-gold-bright);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1.5;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--landing-border);
  border-radius: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, filter 180ms ease, transform 180ms ease;
}

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

.button--primary {
  border-color: #e4c06d;
  color: #171006;
  background: linear-gradient(135deg, #efd083, #b8893f);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.35);
}

.button--primary:hover {
  filter: brightness(1.09);
}

.button--primary:disabled {
  cursor: wait;
  filter: grayscale(0.3);
  opacity: 0.68;
  transform: none;
}

.button--secondary {
  color: var(--landing-parchment);
  background: rgba(5, 5, 4, 0.42);
}

.button--secondary:hover {
  border-color: var(--landing-gold);
  color: var(--landing-gold-bright);
}

.hero {
  position: relative;
  min-height: clamp(48rem, 100svh, 64rem);
  border-bottom: 1px solid rgba(216, 173, 85, 0.16);
  isolation: isolate;
  overflow: hidden;
  --hero-parallax: 0px;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 1rem;
  border: 1px solid rgba(216, 173, 85, 0.13);
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(var(--content-width), calc(100% - 2.5rem));
  min-height: clamp(48rem, 100svh, 64rem);
  align-items: center;
  margin: 0 auto;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(39rem, 51vw);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 7rem) clamp(1rem, 4vw, 3.5rem);
  text-shadow: 0 0.15rem 1.6rem rgba(0, 0, 0, 0.92);
}

.hero__copy::after {
  display: block;
  width: min(14rem, 54%);
  height: 1px;
  margin-top: 2.8rem;
  content: "";
  background: linear-gradient(90deg, var(--landing-gold-dim), transparent);
}

.hero h1 {
  margin: 0.08em 0 0.02em;
  color: transparent;
  background: linear-gradient(180deg, #fff9e9 6%, #e7d5ad 55%, #a47a38 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0.15rem 0 #171005) drop-shadow(0 0 2rem rgba(216, 173, 85, 0.08));
  font-family: "NysaDisplay", "NysaSerif", Georgia, serif;
  font-size: clamp(6rem, 11vw, 10.75rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.84;
}

.hero h2 {
  max-width: 30rem;
  margin: clamp(2.2rem, 5vh, 3.6rem) 0 0;
  color: #f2e9d8;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.12;
}

.hero__description {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__visual {
  position: absolute;
  z-index: 0;
  inset: -9% 0;
  overflow: hidden;
}

.hero__visual::before,
.hero__visual::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero__visual::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.96) 0, rgba(5, 5, 4, 0.86) 23%, rgba(5, 5, 4, 0.57) 43%, rgba(5, 5, 4, 0.12) 70%, rgba(5, 5, 4, 0.32) 100%),
    linear-gradient(0deg, #050504 0, rgba(5, 5, 4, 0.5) 17%, transparent 42%, rgba(5, 5, 4, 0.35) 100%),
    radial-gradient(ellipse at 58% 43%, transparent 24%, rgba(5, 5, 4, 0.12) 59%, rgba(5, 5, 4, 0.58) 100%);
}

.hero__visual::after {
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(245, 204, 122, 0.08) 56%, transparent 74%);
  mix-blend-mode: screen;
}

.hero__visual picture,
.hero__visual img {
  width: 100%;
  height: 100%;
}

.hero__visual img {
  object-fit: cover;
  object-position: 58% 47%;
  filter: saturate(0.83) contrast(1.08) brightness(0.88);
  transform: translate3d(0, var(--hero-parallax), 0) scale(1.08);
  will-change: transform;
}

.pillars {
  position: relative;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3.5rem) 0;
}

.section-intro {
  width: min(43rem, 100%);
  margin: 0 auto clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
}

.section-intro h2 {
  margin: 0.55rem 0 0;
  color: #f0e1c3;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.section-intro > p:last-child {
  margin: 1rem auto 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.7;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 39rem;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(1.25rem, 3vw, 3.25rem);
  text-align: center;
}

.pillar + .pillar {
  border-left: 1px solid rgba(216, 173, 85, 0.19);
}

.pillar__icon {
  position: relative;
  width: 7.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 85, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem rgba(216, 173, 85, 0.025), 0 0 2.5rem rgba(125, 81, 24, 0.16);
}

.pillar__icon::after {
  position: absolute;
  inset: 0;
  border: 0.25rem solid rgba(3, 3, 2, 0.45);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.pillar__icon picture,
.pillar__icon img {
  width: 100%;
  height: 100%;
}

.pillar__icon img {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.82) contrast(1.08);
}

.pillar h3 {
  margin: 1.3rem 0 0;
  color: #e8cb8c;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.ornament {
  position: relative;
  display: block;
  width: 3.2rem;
  height: 1px;
  margin: 0.85rem 0 1.05rem;
  background: var(--landing-gold-dim);
}

.ornament::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.3rem;
  height: 0.3rem;
  border: 1px solid var(--landing-gold);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.pillar > p {
  max-width: 24rem;
  margin: 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.68;
}

.pillar__scene {
  position: relative;
  width: calc(100% + clamp(2.5rem, 6vw, 6.5rem));
  height: 15.5rem;
  margin-top: auto;
  overflow: hidden;
}

.pillar__scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, #050504 0, transparent 24%, transparent 62%, #050504 100%),
    linear-gradient(90deg, #050504 0, transparent 20%, transparent 80%, #050504 100%);
  pointer-events: none;
}

.pillar__scene picture,
.pillar__scene img {
  width: 100%;
  height: 100%;
}

.pillar__scene img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(1.08) brightness(0.74);
}

.values,
.signup,
.site-footer {
  width: min(calc(var(--content-width) - 7rem), calc(100% - 2.5rem));
  margin-inline: auto;
}

.values {
  position: relative;
  margin-top: 2rem;
  padding: clamp(2.25rem, 5vw, 3.25rem) 1.5rem 1.8rem;
  border: 1px solid var(--landing-border);
  background: linear-gradient(90deg, rgba(216, 173, 85, 0.025), rgba(15, 13, 9, 0.72), rgba(216, 173, 85, 0.025));
  text-align: center;
}

.values::before,
.values::after,
.signup::before,
.signup::after {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-color: var(--landing-gold-dim);
  content: "";
}

.values::before,
.signup::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.values::after,
.signup::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.values__mark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4.1rem;
  height: 4.1rem;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 85, 0.35);
  border-radius: 50%;
  background: #080705;
  transform: translate(-50%, -50%);
}

.values__mark picture,
.values__mark img {
  width: 100%;
  height: 100%;
}

.values__mark img {
  object-fit: cover;
  object-position: center;
}

.values h2 {
  margin: 0;
  color: #e2c486;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.values p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.75rem 0 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

.values p span {
  display: inline-flex;
  align-items: center;
}

.values p span + span::before {
  margin: 0 0.85rem;
  color: var(--landing-gold-dim);
  content: "◆";
  font-size: 0.4rem;
}

.signup {
  position: relative;
  display: grid;
  min-height: 24rem;
  margin-top: 1.25rem;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(30rem, 1.28fr);
  border: 1px solid var(--landing-border);
  background:
    linear-gradient(115deg, rgba(216, 173, 85, 0.025), transparent 42%),
    rgba(8, 7, 5, 0.86);
  overflow: hidden;
}

.signup__image {
  position: relative;
  min-height: 24rem;
}

.signup__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 48%, #080705 100%),
    linear-gradient(0deg, #080705 0, transparent 28%, transparent 76%, rgba(8, 7, 5, 0.82) 100%);
}

.signup__image picture,
.signup__image img {
  width: 100%;
  height: 100%;
}

.signup__image img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) contrast(1.09) brightness(0.73);
}

.signup__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(2.3rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5.25rem) clamp(2.3rem, 5vw, 4.5rem) 1rem;
}

.signup h2 {
  margin: 0.4rem 0 0;
  color: #e8cb8c;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1.2;
}

.signup__content > p:not(.eyebrow, .signup__reassurance) {
  max-width: 39rem;
  margin: 0.75rem 0 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.65;
}

.signup-form {
  display: grid;
  max-width: 44rem;
  margin-top: 1.6rem;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.7rem;
}

.signup-form input[type="email"] {
  min-width: 0;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid rgba(216, 173, 85, 0.38);
  border-radius: 0;
  color: var(--landing-parchment);
  background: rgba(2, 2, 1, 0.66);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signup-form input[type="email"]::placeholder {
  color: rgba(238, 228, 209, 0.42);
}

.signup-form input[type="email"]:hover,
.signup-form input[type="email"]:focus {
  border-color: var(--landing-gold);
}

.signup-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(216, 173, 85, 0.11);
}

.signup__reassurance {
  margin: 0.9rem 0 0;
  color: rgba(192, 182, 165, 0.82);
  font-size: 0.8rem;
  line-height: 1.5;
}

.signup__reassurance span {
  margin-right: 0.35rem;
  color: var(--landing-gold);
}

.form-message {
  display: grid;
  gap: 0.25rem;
  max-width: 44rem;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--landing-border);
  color: var(--landing-muted);
  background: rgba(3, 3, 2, 0.62);
  line-height: 1.5;
}

.form-message strong {
  color: #ead4a5;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
}

.form-message--error {
  border-color: rgba(213, 133, 103, 0.5);
  color: #e4aa91;
}

.site-footer {
  display: flex;
  min-height: 9rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 0 2.2rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__emblem {
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 85, 0.32);
  border-radius: 50%;
}

.site-footer__emblem picture,
.site-footer__emblem img {
  width: 100%;
  height: 100%;
}

.site-footer__emblem img {
  object-fit: cover;
  object-position: center;
}

.site-footer__brand > div:last-child {
  display: grid;
}

.site-footer__brand strong {
  color: #e4ca94;
  font-family: "NysaSerif", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.site-footer__brand span {
  color: rgba(192, 182, 165, 0.8);
  font-family: Georgia, serif;
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(1.3rem, 4vw, 3.6rem);
}

.site-footer nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: rgba(238, 228, 209, 0.72);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--landing-gold-bright);
}

.legal-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at 75% 18%, rgba(127, 88, 30, 0.12), transparent 32rem),
    var(--landing-black);
}

.legal-card {
  width: min(48rem, 100%);
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--landing-border);
  background: var(--landing-panel);
}

.legal-card h1 {
  margin: 0.5rem 0 1.3rem;
  color: #ead4a5;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 400;
}

.legal-card h2 {
  margin: 2rem 0 0.5rem;
  color: #e2c486;
  font-family: "NysaSerif", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.legal-card p {
  color: var(--landing-muted);
  font-family: Georgia, serif;
  line-height: 1.75;
}

.legal-card .button {
  margin-top: 1rem;
}

.persistent-wordmark {
  position: fixed;
  z-index: 18;
  top: 0.28rem;
  left: 50%;
  padding: 0 1.5rem 0.45rem;
  color: transparent;
  background:
    linear-gradient(180deg, #fff9e9 8%, #e7d5ad 58%, #a47a38 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0.15rem 0 #171005) drop-shadow(0 0 0.85rem rgba(0, 0, 0, 0.95));
  font-family: "NysaDisplay", "NysaSerif", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -1.5rem) scale(1.28);
  transform-origin: 50% 0;
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.persistent-wordmark::before {
  position: absolute;
  z-index: -1;
  inset: -0.3rem -5rem -1rem;
  content: "";
  background: radial-gradient(ellipse, rgba(5, 5, 4, 0.88), transparent 68%);
}

.persistent-wordmark.is-visible {
  opacity: 0.95;
  transform: translate(-50%, 0) scale(1);
}

.secret-sigil {
  position: fixed;
  z-index: 19;
  top: var(--sigil-top, 54vh);
  right: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  width: 4rem;
  height: 4rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(216, 173, 85, 0.3);
  border-radius: 50%;
  color: rgba(239, 207, 130, 0.72);
  background:
    radial-gradient(circle, rgba(81, 57, 20, 0.84), rgba(7, 6, 4, 0.94) 65%),
    #080705;
  box-shadow: 0 0.65rem 2.4rem rgba(0, 0, 0, 0.52), inset 0 0 1.2rem rgba(216, 173, 85, 0.08);
  cursor: pointer;
  opacity: 0.72;
  touch-action: manipulation;
  transform: translate3d(var(--sigil-drag-x, 0), var(--sigil-drag-y, 0), 0);
  transition: top 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease, transform 220ms ease;
  animation: sigil-float 5.5s ease-in-out infinite;
}

.secret-sigil:hover,
.secret-sigil:focus-visible,
.secret-sigil.is-awake {
  border-color: rgba(239, 207, 130, 0.78);
  color: var(--landing-gold-bright);
  box-shadow: 0 0 0 0.28rem rgba(216, 173, 85, 0.05), 0 0 2.1rem rgba(216, 173, 85, 0.3), inset 0 0 1.3rem rgba(216, 173, 85, 0.17);
  opacity: 1;
}

.secret-sigil.is-awake {
  cursor: grab;
  touch-action: none;
}

.secret-sigil.is-dragging {
  z-index: 22;
  cursor: grabbing;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease;
  animation: none;
}

.secret-sigil__orbit {
  position: absolute;
  inset: 0.36rem;
  border: 1px solid rgba(216, 173, 85, 0.27);
  border-radius: 50%;
}

.secret-sigil__orbit::before,
.secret-sigil__orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.26rem;
  height: 0.26rem;
  border: 1px solid rgba(239, 207, 130, 0.7);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.secret-sigil__orbit::after {
  width: 2.6rem;
  height: 1px;
  border-width: 1px 0 0;
}

.secret-sigil__glyph {
  position: relative;
  z-index: 1;
  font-family: "NysaCuneiform", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.secret-instruction {
  position: fixed;
  z-index: 18;
  right: clamp(5.6rem, 8vw, 7.5rem);
  top: calc(var(--sigil-top, 54vh) + 0.8rem);
  max-width: 17rem;
  margin: 0;
  color: rgba(239, 207, 130, 0.85);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.5rem);
  transition: top 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, transform 180ms ease;
}

.secret-instruction.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.portal-dropzone {
  position: absolute;
  z-index: 4;
  top: 8%;
  bottom: 7%;
  left: 49%;
  width: 24%;
  display: grid;
  place-items: end center;
  padding-bottom: 4rem;
  border: 1px solid transparent;
  color: transparent;
  pointer-events: none;
  transition: border-color 240ms ease, box-shadow 240ms ease, color 240ms ease, background 240ms ease;
}

.portal-dropzone.is-awake {
  border-color: rgba(239, 207, 130, 0.34);
  color: rgba(239, 207, 130, 0.84);
  background: radial-gradient(ellipse at 50% 52%, rgba(239, 207, 130, 0.07), transparent 65%);
  box-shadow: inset 0 0 4rem rgba(216, 173, 85, 0.08), 0 0 2.5rem rgba(216, 173, 85, 0.08);
  animation: portal-call 2.4s ease-in-out infinite;
}

.portal-dropzone span {
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-shadow: 0 0.15rem 0.8rem #000;
}

.project-chamber[hidden] {
  display: none;
}

.project-chamber {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.project-chamber__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(80, 54, 17, 0.31), transparent 38%),
    rgba(2, 2, 1, 0.92);
  backdrop-filter: blur(15px);
  cursor: default;
  animation: chamber-veil 320ms ease both;
}

.project-chamber__panel {
  position: relative;
  width: min(48rem, 100%);
  max-height: calc(100svh - 2.5rem);
  overflow: auto;
  border: 1px solid rgba(216, 173, 85, 0.42);
  outline: 1px solid rgba(216, 173, 85, 0.08);
  outline-offset: -0.55rem;
  background:
    linear-gradient(rgba(8, 7, 5, 0.94), rgba(8, 7, 5, 0.98)),
    url("./images/01-hero-portal-scene-640.webp") center / cover;
  box-shadow: 0 2.5rem 8rem #000;
  animation: chamber-arrive 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-chamber__topline {
  display: flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(216, 173, 85, 0.22);
  color: rgba(192, 182, 165, 0.62);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.project-chamber__close {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  color: var(--landing-muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
}

.project-chamber__close:hover {
  color: var(--landing-gold-bright);
}

.project-chamber__header {
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.project-chamber__header h2 {
  margin: 0.5rem 0 0;
  color: #ead8b0;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(2.3rem, 7vw, 4rem);
  font-weight: 400;
}

.project-chamber__header > p:last-child {
  margin: 0.6rem 0 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
}

.project-passages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(216, 173, 85, 0.22);
}

.project-passage {
  display: grid;
  min-height: 5.5rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(216, 173, 85, 0.18);
  color: var(--landing-parchment);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.project-passage:nth-child(odd) {
  border-right: 1px solid rgba(216, 173, 85, 0.18);
}

.project-passage:hover,
.project-passage:focus-visible {
  color: var(--landing-gold-bright);
  background: rgba(216, 173, 85, 0.08);
}

.project-passage__number {
  color: rgba(216, 173, 85, 0.48);
  font-size: 0.62rem;
}

.project-passage__name {
  overflow: hidden;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-passage__arrow {
  color: rgba(192, 182, 165, 0.42);
}

.project-chamber__footer {
  margin: 0;
  padding: 1.25rem;
  color: rgba(192, 182, 165, 0.42);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.project-chamber__footer span {
  margin-right: 0.4rem;
  color: rgba(216, 173, 85, 0.64);
  font-family: "NysaCuneiform", serif;
}

@keyframes sigil-float {
  0%, 100% { margin-top: -0.18rem; }
  50% { margin-top: 0.32rem; }
}

@keyframes portal-call {
  0%, 100% { box-shadow: inset 0 0 4rem rgba(216, 173, 85, 0.05), 0 0 2rem rgba(216, 173, 85, 0.05); }
  50% { box-shadow: inset 0 0 5rem rgba(216, 173, 85, 0.12), 0 0 3rem rgba(216, 173, 85, 0.13); }
}

@keyframes chamber-veil {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chamber-arrive {
  from { opacity: 0; transform: translateY(1rem) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
  .hero__copy {
    width: min(36rem, 58vw);
    padding-left: 2rem;
  }

  .pillar {
    padding-inline: 1.5rem;
  }

  .signup {
    grid-template-columns: minmax(16rem, 0.65fr) minmax(24rem, 1.35fr);
  }
}

@media (max-width: 760px) {
  .hero,
  .hero__inner {
    min-height: max(50rem, 100svh);
  }

  .hero__visual::before {
    background:
      linear-gradient(0deg, #050504 0, rgba(5, 5, 4, 0.91) 35%, rgba(5, 5, 4, 0.22) 67%, rgba(5, 5, 4, 0.52) 100%),
      radial-gradient(ellipse at 50% 35%, transparent 25%, rgba(5, 5, 4, 0.4) 100%);
  }

  .hero__visual img {
    object-position: 50% 42%;
    transform: scale(1.05);
    will-change: auto;
  }

  .hero__copy {
    width: 100%;
    align-self: flex-end;
    padding: clamp(17rem, 44vh, 21rem) 0 2rem;
    text-align: center;
  }

  .hero h2 {
    margin-top: 1.1rem;
  }

  .hero__description {
    margin-top: 0.75rem;
  }

  .hero__actions {
    margin-top: 1.25rem;
  }

  .persistent-wordmark {
    top: 0.35rem;
    font-size: 2.85rem;
  }

  .secret-sigil {
    right: 0.8rem;
    width: 3.35rem;
    height: 3.35rem;
  }

  .secret-sigil__glyph {
    font-size: 1.45rem;
  }

  .secret-instruction {
    right: 4.8rem;
    max-width: 12rem;
    font-size: 0.56rem;
  }

  .portal-dropzone {
    top: 5%;
    bottom: 42%;
    left: 23%;
    width: 54%;
    padding-bottom: 1.5rem;
  }

  .portal-dropzone span {
    font-size: 0.53rem;
  }

  .hero__copy::after {
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(5.5rem, 29vw, 8rem);
  }

  .hero h2,
  .hero__description {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .pillars {
    padding-inline: 1.25rem;
  }

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

  .pillar {
    min-height: 38rem;
    padding: 3.5rem 0 0;
  }

  .pillar:first-child {
    padding-top: 0;
  }

  .pillar + .pillar {
    border-top: 1px solid rgba(216, 173, 85, 0.19);
    border-left: 0;
  }

  .pillar__scene {
    width: calc(100% + 2.5rem);
    height: 18rem;
  }

  .values,
  .signup,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .values p {
    display: grid;
    gap: 0.55rem;
  }

  .values p span {
    justify-content: center;
  }

  .values p span + span::before {
    display: none;
  }

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

  .signup__image {
    min-height: 18rem;
  }

  .signup__image::after {
    background: linear-gradient(0deg, #080705 0, transparent 52%, rgba(8, 7, 5, 0.3) 100%);
  }

  .signup__content {
    margin-top: -2rem;
    padding: 1rem 1.25rem 2rem;
    text-align: center;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form .button {
    width: 100%;
  }

  .form-message {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2.25rem;
  }

  .site-footer nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem 1.75rem;
  }

  .project-passages {
    grid-template-columns: 1fr;
  }

  .project-passage:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 420px) {
  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .hero__copy {
    padding-top: 18rem;
  }

  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
  }

  .values h2,
  .signup h2 {
    letter-spacing: 0.08em;
  }
}

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

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

/* Unified sticky masthead: logo, sigil, and chapter identity share one plate. */
.sticky-masthead-backdrop {
  position: fixed;
  z-index: 42;
  top: 0;
  right: 0;
  left: 0;
  height: 6.35rem;
  border-bottom: 1px solid rgba(216, 173, 85, 0.28);
  background:
    linear-gradient(180deg, #050504 0%, #050504 76%, rgba(8, 7, 5, 0.99) 100%);
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.48), inset 0 -1px rgba(255, 234, 184, 0.025);
  opacity: var(--masthead-reveal, 0);
  pointer-events: none;
  transition: opacity 80ms linear;
}

.persistent-wordmark,
.persistent-wordmark.is-visible {
  top: 0.25rem;
  padding-bottom: 0.35rem;
  font-size: clamp(2.55rem, 3.4vw, 3.25rem);
}

.chapter-bookmark {
  top: 3.75rem;
  min-height: 2.6rem;
  background: transparent;
}

.chapter-bookmark::before {
  display: none;
}

.secret-sigil {
  top: 0.34rem;
  right: clamp(0.65rem, 1.5vw, 1.1rem);
  width: 3rem;
  height: 3rem;
}

.secret-sigil__glyph {
  font-size: 1.3rem;
}

.secret-instruction {
  top: 6.75rem;
}

@media (max-width: 760px) {
  .sticky-masthead-backdrop {
    height: 5.4rem;
  }

  .persistent-wordmark,
  .persistent-wordmark.is-visible {
    top: 0.22rem;
    padding-bottom: 0.3rem;
    font-size: 2.15rem;
  }

  .chapter-bookmark {
    top: 3rem;
    min-height: 2.4rem;
  }

  .secret-sigil {
    top: 0.25rem;
    right: 0.48rem;
    width: 2.55rem;
    height: 2.55rem;
  }

  .secret-sigil__glyph {
    font-size: 1.12rem;
  }

  .secret-instruction {
    top: 5.75rem;
  }
}

/* V15 final authority: chapters move through normal flow over soft-sticky scenes. */
[data-story-track].story-track {
  position: relative;
  height: auto;
}

[data-story-stage].story-stage {
  position: relative;
  top: auto;
  display: block;
  height: auto;
  overflow: visible;
}

[data-story-stage].story-stage .pillar,
[data-story-stage].story-stage .pillar:first-child {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 112svh;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-top: 1px solid rgba(216, 173, 85, 0.16);
  opacity: 1;
  pointer-events: auto;
  isolation: isolate;
}

[data-story-stage].story-stage .pillar + .pillar {
  border-top: 1px solid rgba(216, 173, 85, 0.16);
}

[data-story-stage].story-stage .pillar__scene {
  position: sticky;
  top: 6.35rem;
  z-index: 0;
  width: 100%;
  height: calc(100svh - 6.35rem);
  min-height: 32rem;
  grid-area: 1 / 1;
  overflow: hidden;
  background: #050504;
}

[data-story-stage].story-stage .pillar__scene picture,
[data-story-stage].story-stage .pillar__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

[data-story-stage].story-stage .pillar__scene img,
[data-story-stage].story-stage .pillar:nth-child(even) .pillar__scene img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.08) brightness(0.66);
  transform: translate3d(0, var(--story-parallax, 0px), 0) scale(1.1);
}

[data-story-stage].story-stage .pillar:nth-child(even) .pillar__scene img {
  object-position: 56% center;
}

[data-story-stage].story-stage .pillar__content {
  position: relative;
  z-index: 2;
  width: min(39rem, calc(100% - 3rem));
  margin: clamp(8rem, 21svh, 13rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  grid-area: 1 / 1;
  align-self: start;
}

@media (max-width: 760px) {
  [data-story-stage].story-stage .pillar,
  [data-story-stage].story-stage .pillar:first-child {
    min-height: 104svh;
    padding: 0;
  }

  [data-story-stage].story-stage .pillar__scene {
    top: 5.4rem;
    height: calc(100svh - 5.4rem);
    min-height: 30rem;
  }

  [data-story-stage].story-stage .pillar__content {
    width: calc(100% - 2rem);
    margin-top: clamp(8rem, 23svh, 11rem);
    padding: 1.8rem 1.25rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-story-stage].story-stage .pillar,
  [data-story-stage].story-stage .pillar:first-child {
    display: block;
    min-height: auto;
    padding: 0 0 2rem;
  }

  [data-story-stage].story-stage .pillar__scene {
    position: relative;
    top: auto;
    height: min(65svh, 42rem);
  }

  [data-story-stage].story-stage .pillar__content {
    width: min(44rem, calc(100% - 2rem));
    margin: -8rem auto 0;
  }
}

/* V15: soft-sticky story chapters preserve visible scroll movement. */
.story-track {
  position: relative;
  height: auto;
}

.story-stage {
  position: relative;
  top: auto;
  display: block;
  height: auto;
  overflow: visible;
}

.story-stage .pillar,
.story-stage .pillar:first-child {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 112svh;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-top: 1px solid rgba(216, 173, 85, 0.16);
  opacity: 1;
  pointer-events: auto;
  isolation: isolate;
}

.story-stage .pillar + .pillar {
  border-top: 1px solid rgba(216, 173, 85, 0.16);
}

.story-stage .pillar__scene {
  position: sticky;
  top: 6.35rem;
  z-index: 0;
  width: 100%;
  height: calc(100svh - 6.35rem);
  min-height: 32rem;
  grid-area: 1 / 1;
  overflow: hidden;
  background: #050504;
}

.story-stage .pillar__scene::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.64), transparent 24%, transparent 68%, rgba(5, 5, 4, 0.92)),
    linear-gradient(90deg, rgba(5, 5, 4, 0.72), transparent 42%, rgba(5, 5, 4, 0.18));
}

.story-stage .pillar__scene picture,
.story-stage .pillar__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-stage .pillar__scene img,
.story-stage .pillar:nth-child(even) .pillar__scene img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.08) brightness(0.66);
  transform: translate3d(0, var(--story-parallax, 0px), 0) scale(1.1);
}

.story-stage .pillar:nth-child(even) .pillar__scene img {
  object-position: 56% center;
}

.pillar__content {
  position: relative;
  z-index: 2;
  width: min(39rem, calc(100% - 3rem));
  margin: clamp(8rem, 21svh, 13rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  grid-area: 1 / 1;
  align-self: start;
  border: 1px solid rgba(216, 173, 85, 0.34);
  background:
    linear-gradient(145deg, rgba(216, 173, 85, 0.055), transparent 34%),
    rgba(6, 5, 4, 0.88);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.48);
  text-align: center;
  backdrop-filter: blur(5px);
}

.pillar__content .pillar__icon {
  margin-inline: auto;
}

.pillar__content h3 {
  opacity: var(--chapter-source-opacity, 1);
}

.pillar__content > p {
  max-width: 34rem;
  margin-inline: auto;
  color: #e4d9c4;
}

.story-progress {
  position: sticky;
  top: 50svh;
  z-index: 9;
  display: grid;
  width: 9.5rem;
  height: 0;
  margin: 0 1.1rem -1px auto;
  padding: 0;
  gap: 1rem;
  list-style: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.story-progress::before {
  position: absolute;
  top: 0.45rem;
  bottom: -5.7rem;
  left: 0.34rem;
  width: 1px;
  content: "";
  background: rgba(216, 173, 85, 0.24);
}

.story-progress li {
  position: relative;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.5rem;
  align-items: center;
  color: rgba(238, 228, 209, 0.34);
  transition: color 240ms ease, transform 240ms ease;
}

.story-progress li::before {
  position: absolute;
  left: 0.12rem;
  width: 0.46rem;
  height: 0.46rem;
  border: 1px solid rgba(216, 173, 85, 0.5);
  border-radius: 50%;
  content: "";
  background: #050504;
  transition: background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.story-progress li span {
  padding-left: 1rem;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.story-progress li strong {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.story-progress li.is-active {
  color: #efcf82;
  transform: translateX(-0.35rem);
}

.story-progress li.is-active::before {
  background: #d8ad55;
  box-shadow: 0 0 1rem rgba(239, 187, 78, 0.66);
  transform: scale(1.35);
}

.story-progress li.is-passed {
  color: rgba(216, 173, 85, 0.58);
}

/* A real v6 Quest becomes the tangible product demonstration. */
.journey {
  position: relative;
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin: clamp(5rem, 10vw, 9rem) auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
  border-block: 1px solid rgba(216, 173, 85, 0.24);
  background:
    radial-gradient(circle at 72% 34%, rgba(111, 73, 24, 0.17), transparent 28rem),
    linear-gradient(180deg, rgba(12, 10, 7, 0.8), rgba(5, 5, 4, 0.96));
}

.journey__intro {
  max-width: 48rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  text-align: center;
}

.journey__intro h2 {
  margin: 0.55rem 0 1rem;
  color: var(--landing-parchment);
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
}

.journey__intro > p:last-child {
  margin: 0;
  color: var(--landing-muted);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.journey__layout {
  display: grid;
  max-width: 72rem;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.78fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.journey__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey__steps li {
  display: grid;
  min-height: 54svh;
  padding: clamp(2rem, 5vw, 4rem) 0;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(216, 173, 85, 0.15);
  color: rgba(238, 228, 209, 0.42);
  opacity: 0.42;
  transform: translateY(1.2rem);
  transition: color 360ms ease, opacity 360ms ease, transform 360ms ease;
}

.journey__steps li:last-child {
  border-bottom: 1px solid rgba(216, 173, 85, 0.15);
}

.journey__steps li.is-active {
  color: var(--landing-parchment);
  opacity: 1;
  transform: translateY(0);
}

.journey__steps li > span {
  align-self: start;
  padding-top: 0.45rem;
  color: var(--landing-gold);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.journey__steps h3 {
  margin: 0;
  color: inherit;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
}

.journey__steps p {
  max-width: 35rem;
  margin: 0.85rem 0 0;
  color: rgba(228, 217, 196, 0.78);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.journey__artifact {
  position: sticky;
  top: 8.3rem;
  z-index: 3;
  display: grid;
  min-height: calc(100svh - 10rem);
  place-items: center;
  perspective: 1000px;
}

.nysa-quest-card {
  position: relative;
  z-index: 3;
  width: min(22rem, 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(239, 207, 130, 0.72);
  color: #eee4d1;
  background: #090705;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.64), 0 0 0 0.45rem rgba(216, 173, 85, 0.035);
  transform: rotateY(-7deg) rotateZ(-1deg) scale(0.93);
  transform-origin: center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 520ms ease;
}

.nysa-quest-card::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 0.45rem solid rgba(5, 5, 4, 0.5);
  box-shadow: inset 0 0 0 1px rgba(216, 173, 85, 0.36);
  pointer-events: none;
}

.nysa-quest-card__topline {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: #f1d99e;
  background: linear-gradient(180deg, rgba(5, 5, 4, 0.92), transparent);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.nysa-quest-card__art,
.nysa-quest-card__art img {
  width: 100%;
  height: 100%;
}

.nysa-quest-card__art img {
  object-fit: cover;
  filter: saturate(0.55) contrast(1.12) brightness(0.48);
  transform: scale(1.05);
  transition: filter 520ms ease, transform 700ms ease;
}

.nysa-quest-card__copy {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 5.5rem 1.5rem 1.7rem;
  background: linear-gradient(0deg, rgba(5, 5, 4, 0.98) 18%, rgba(5, 5, 4, 0.78) 68%, transparent);
}

.nysa-quest-card__copy p {
  margin: 0 0 0.45rem;
  color: #d8ad55;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
}

.nysa-quest-card__copy h3 {
  margin: 0;
  color: #f0e4cd;
  font-family: "NysaSerif", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.1;
}

.nysa-quest-card__copy span {
  display: block;
  margin-top: 0.65rem;
  color: rgba(238, 228, 209, 0.72);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.nysa-quest-card__seal {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border: 1px solid rgba(239, 207, 130, 0.72);
  border-radius: 50%;
  color: #f1d99e;
  background: rgba(9, 6, 3, 0.86);
  box-shadow: 0 0 2rem rgba(216, 173, 85, 0.2);
  font-size: 1.7rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 360ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-card-stack {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(22rem, 80%);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.journey-card-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216, 173, 85, 0.32);
  background: #0b0906;
  opacity: 0;
  transition: opacity 440ms ease, transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey__status {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  margin: 0;
  color: rgba(216, 173, 85, 0.76);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.journey[data-active-step="2"] .nysa-quest-card,
.journey[data-active-step="3"] .nysa-quest-card,
.journey[data-active-step="4"] .nysa-quest-card {
  transform: rotateY(0) rotateZ(0) scale(1);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.7), 0 0 2.5rem rgba(216, 173, 85, 0.13);
}

.journey[data-active-step="2"] .nysa-quest-card__seal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.journey[data-active-step="3"] .nysa-quest-card__art img,
.journey[data-active-step="4"] .nysa-quest-card__art img {
  filter: saturate(0.88) contrast(1.08) brightness(0.72);
  transform: scale(1);
}

.journey[data-active-step="4"] .journey-card-stack span {
  opacity: 1;
}

.journey[data-active-step="4"] .journey-card-stack span:first-child {
  transform: translate(-1.7rem, 1.1rem) rotate(-7deg);
}

.journey[data-active-step="4"] .journey-card-stack span:last-child {
  transform: translate(1.7rem, 1.2rem) rotate(7deg);
}

.values p.values__privacy {
  display: block;
  max-width: 47rem;
  margin: 1.5rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(216, 173, 85, 0.18);
  color: rgba(228, 217, 196, 0.82);
  font-size: 0.94rem;
  line-height: 1.65;
}

.values__privacy strong {
  color: #e8cb8c;
  font-weight: 400;
}

.signup__content > p.signup__invitation {
  margin-top: 1.1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(216, 173, 85, 0.45);
  color: rgba(228, 217, 196, 0.84);
  font-size: 0.92rem;
}

.signup-form {
  grid-template-columns: minmax(12rem, 1fr) auto;
}

.interest-paths {
  display: grid;
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  border: 0;
}

.interest-paths legend {
  width: 100%;
  margin-bottom: 0.8rem;
  color: #e8cb8c;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.interest-paths label {
  position: relative;
  cursor: pointer;
}

.interest-paths input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.interest-paths label > span {
  display: grid;
  min-height: 4.3rem;
  align-content: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(216, 173, 85, 0.24);
  color: rgba(238, 228, 209, 0.66);
  background: rgba(3, 3, 2, 0.55);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.interest-paths strong,
.interest-paths small {
  display: block;
}

.interest-paths strong {
  color: inherit;
  font-family: "NysaSerif", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.interest-paths small {
  margin-top: 0.2rem;
  color: rgba(192, 182, 165, 0.68);
  font-size: 0.7rem;
  line-height: 1.35;
}

.interest-paths input:checked + span {
  border-color: rgba(239, 207, 130, 0.82);
  color: #f0ddb0;
  background: linear-gradient(135deg, rgba(216, 173, 85, 0.17), rgba(6, 5, 3, 0.82));
  box-shadow: inset 0 0 0 1px rgba(216, 173, 85, 0.12), 0 0 1.4rem rgba(216, 173, 85, 0.07);
  transform: translateY(-1px);
}

.interest-paths input:focus-visible + span {
  outline: 2px solid var(--landing-gold-bright);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .story-stage .pillar,
  .story-stage .pillar:first-child {
    min-height: 104svh;
  }

  .story-stage .pillar__scene {
    top: 5.4rem;
    height: calc(100svh - 5.4rem);
    min-height: 30rem;
  }

  .story-stage .pillar__scene::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 4, 0.58), transparent 20%, rgba(5, 5, 4, 0.12) 54%, rgba(5, 5, 4, 0.94)),
      linear-gradient(90deg, rgba(5, 5, 4, 0.38), transparent, rgba(5, 5, 4, 0.38));
  }

  .pillar__content {
    width: calc(100% - 2rem);
    margin-top: clamp(8rem, 23svh, 11rem);
    padding: 1.8rem 1.25rem 2rem;
  }

  .pillar__content .pillar__icon {
    width: 5.4rem;
  }

  .story-progress {
    display: none;
  }

  .journey {
    width: 100%;
    margin-block: 4rem;
    padding-inline: 1rem;
  }

  .journey__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .journey__artifact {
    top: 5.7rem;
    order: -1;
    width: 100%;
    min-height: 0;
    height: 48svh;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(5, 5, 4, 0.98), rgba(5, 5, 4, 0.92));
  }

  .nysa-quest-card {
    width: auto;
    height: min(40svh, 24rem);
  }

  .journey-card-stack {
    width: auto;
    height: min(40svh, 24rem);
  }

  .journey__steps li {
    min-height: 43svh;
    padding: 2.5rem 0.5rem;
    grid-template-columns: 2rem 1fr;
  }

  .journey__status {
    bottom: 0.1rem;
  }

  .interest-paths {
    grid-template-columns: 1fr;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-stage .pillar,
  .story-stage .pillar:first-child {
    display: block;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .story-stage .pillar__scene {
    position: relative;
    top: auto;
    height: min(65svh, 42rem);
  }

  .pillar__content {
    width: min(44rem, calc(100% - 2rem));
    margin: -8rem auto 0;
  }

  .story-progress {
    display: none;
  }

  .journey__steps li,
  .journey__steps li.is-active {
    min-height: auto;
    color: var(--landing-parchment);
    opacity: 1;
    transform: none;
  }

  .journey__artifact {
    position: relative;
    top: auto;
    min-height: 42rem;
  }

  .nysa-quest-card,
  .nysa-quest-card__art img,
  .nysa-quest-card__seal,
  .journey-card-stack span,
  .interest-paths label > span {
    transition: none;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .journey__artifact {
    position: relative;
    top: auto;
    height: 29rem;
    min-height: 0;
  }
}

/* V13: one pinned, progress-driven Discover / Participate / Create story. */
[data-sticky-masthead].sticky-masthead-backdrop {
  height: calc(3.75rem + (2.6rem * var(--story-shell-progress, 0)));
  transition: opacity 80ms linear, height 80ms linear;
}

[data-chapter-bookmark].chapter-bookmark {
  opacity: var(--story-rail-reveal, 0);
  transform: translateY(calc((1 - var(--story-rail-reveal, 0)) * -0.45rem));
  transition: none;
  will-change: opacity, transform;
}

.story-track {
  position: relative;
  height: calc(445svh - 6.35rem);
}

.story-stage {
  position: sticky;
  top: 6.35rem;
  display: block;
  width: 100%;
  height: calc(100svh - 6.35rem);
  overflow: hidden;
  isolation: isolate;
}

.story-stage .pillar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  opacity: var(--story-opacity, 0);
  pointer-events: none;
  z-index: var(--story-z, 1);
  will-change: opacity;
}

.story-stage .pillar:first-child {
  opacity: var(--story-opacity, 1);
}

.story-stage .pillar + .pillar {
  border: 0;
}

.story-stage .pillar__scene img {
  transform: translate3d(0, var(--story-parallax, 0px), 0) scale(1.14);
  will-change: transform;
}

.story-stage .pillar:nth-child(even) .pillar__scene img {
  object-position: 55% center;
}

.story-stage .pillar > p {
  color: #e4d9c4;
}

@media (max-width: 760px) {
  [data-sticky-masthead].sticky-masthead-backdrop {
    height: calc(3rem + (2.4rem * var(--story-shell-progress, 0)));
  }

  .story-track {
    height: calc(445svh - 5.4rem);
  }

  .story-stage {
    top: 5.4rem;
    height: calc(100svh - 5.4rem);
  }

  .story-stage .pillar,
  .story-stage .pillar:first-child {
    min-height: 0;
    padding: clamp(5.5rem, 11vh, 7.5rem) 1.5rem clamp(3.5rem, 8vh, 5rem);
  }

  .story-stage .pillar__icon {
    width: 6.75rem;
  }

  .story-stage .pillar h3 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-sticky-masthead].sticky-masthead-backdrop {
    height: 3.75rem;
  }

  [data-chapter-bookmark].chapter-bookmark {
    display: none;
  }

  .story-track,
  .story-stage {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .story-stage .pillar,
  .story-stage .pillar:first-child {
    position: relative;
    inset: auto;
    min-height: max(38rem, 90svh);
    opacity: 1;
    pointer-events: auto;
  }

  .story-stage .pillar__scene img {
    transform: scale(1.08);
    will-change: auto;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  [data-sticky-masthead].sticky-masthead-backdrop {
    height: 3rem;
  }

  .story-stage .pillar,
  .story-stage .pillar:first-child {
    min-height: max(36rem, 86svh);
  }
}

/* Final secret-mark sizing follows the masthead geometry. */
.secret-sigil {
  z-index: 56;
  top: 0.48rem;
  right: clamp(0.55rem, 1.25vw, 0.9rem);
  width: 2.4rem;
  height: 2.4rem;
  box-shadow:
    0 0 0 1px rgba(216, 173, 85, 0.14),
    0 0 0.85rem rgba(239, 187, 78, 0.24),
    inset 0 0 0.8rem rgba(255, 224, 150, 0.16);
}

.secret-sigil__orbit {
  inset: 0.27rem;
}

.secret-sigil__glyph {
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .secret-sigil {
    top: 0.42rem;
    right: 0.42rem;
    width: 2.05rem;
    height: 2.05rem;
  }

  .secret-sigil__orbit {
    inset: 0.23rem;
  }

  .secret-sigil__glyph {
    font-size: 0.78rem;
  }
}

/* The secret mark stays above the masthead without advertising itself. */
.secret-sigil {
  z-index: 56;
  top: 0.48rem;
  right: clamp(0.55rem, 1.25vw, 0.9rem);
  width: 2.4rem;
  height: 2.4rem;
  box-shadow:
    0 0 0 1px rgba(216, 173, 85, 0.14),
    0 0 0.85rem rgba(239, 187, 78, 0.24),
    inset 0 0 0.8rem rgba(255, 224, 150, 0.16);
}

.secret-sigil__orbit {
  inset: 0.27rem;
}

.secret-sigil__glyph {
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .secret-sigil {
    top: 0.42rem;
    right: 0.42rem;
    width: 2.05rem;
    height: 2.05rem;
  }

  .secret-sigil__orbit {
    inset: 0.23rem;
  }

  .secret-sigil__glyph {
    font-size: 0.78rem;
  }
}

/* Full-bleed scroll chapters and persistent masthead */
.persistent-wordmark {
  z-index: 52;
  top: 0.2rem;
  isolation: isolate;
  opacity: 0.98;
  transform: translate(-50%, 0) scale(1);
}

.persistent-wordmark::before {
  z-index: -1;
  inset: -0.35rem -7rem -1.3rem;
  background: linear-gradient(180deg, rgba(5, 5, 4, 0.99) 0%, rgba(5, 5, 4, 0.82) 55%, transparent 100%);
}

.persistent-wordmark.is-visible {
  opacity: 1;
}

.chapter-bookmark {
  position: fixed;
  z-index: 43;
  top: 4.5rem;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.65rem 5.5rem 0.6rem;
  border-top: 1px solid rgba(216, 173, 85, 0.1);
  border-bottom: 1px solid rgba(216, 173, 85, 0.25);
  color: #e6c989;
  background: linear-gradient(90deg, rgba(5, 5, 4, 0.65), rgba(5, 5, 4, 0.97) 24%, rgba(5, 5, 4, 0.97) 76%, rgba(5, 5, 4, 0.65));
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.32);
  font-size: 0.67rem;
  letter-spacing: 0.26em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
}

.chapter-bookmark span {
  color: rgba(216, 173, 85, 0.55);
  font-variant-numeric: tabular-nums;
}

.chapter-bookmark strong {
  font-weight: 600;
  transition: opacity 150ms ease, transform 150ms ease;
}

.chapter-bookmark.is-changing strong {
  opacity: 0;
  transform: translateY(0.25rem);
}

.secret-sigil {
  z-index: 55;
  top: 0.65rem;
  right: clamp(0.7rem, 2vw, 1.4rem);
  width: 3.35rem;
  height: 3.35rem;
}

.secret-sigil__glyph {
  font-size: 1.45rem;
}

.secret-instruction {
  z-index: 54;
  top: 6.9rem;
  right: 1rem;
  padding: 0.55rem 0.7rem;
  background: rgba(5, 5, 4, 0.9);
}

.hero {
  min-height: max(52rem, 108svh);
}

.pillars {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.section-intro {
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(4rem, 7vw, 6rem);
}

.pillars__grid {
  display: block;
}

.pillar {
  position: relative;
  display: flex;
  width: 100%;
  min-height: max(42rem, 100svh);
  align-items: flex-start;
  justify-content: center;
  padding: clamp(9rem, 17vh, 13rem) clamp(1.5rem, 10vw, 9rem) clamp(6rem, 12vh, 9rem);
  border: 0;
  isolation: isolate;
  overflow: visible;
  text-align: left;
}

.pillar + .pillar {
  border-top: 1px solid rgba(216, 173, 85, 0.18);
  border-left: 0;
}

.pillar::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.92) 0%, rgba(5, 5, 4, 0.72) 34%, rgba(5, 5, 4, 0.2) 72%, rgba(5, 5, 4, 0.48) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.88) 0%, transparent 30%, transparent 72%, rgba(5, 5, 4, 0.52) 100%);
  pointer-events: none;
}

.pillar:nth-child(even)::after {
  background:
    linear-gradient(270deg, rgba(5, 5, 4, 0.92) 0%, rgba(5, 5, 4, 0.72) 34%, rgba(5, 5, 4, 0.2) 72%, rgba(5, 5, 4, 0.48) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.88) 0%, transparent 30%, transparent 72%, rgba(5, 5, 4, 0.52) 100%);
}

.pillar > :not(.pillar__scene) {
  position: relative;
  z-index: 2;
}

.pillar:nth-child(even) {
  align-items: flex-end;
  text-align: right;
}

.pillar:nth-child(even) .ornament {
  margin-left: auto;
}

.pillar__icon {
  width: 8.25rem;
  flex: 0 0 auto;
  background: rgba(5, 5, 4, 0.72);
}

.pillar h3 {
  margin-top: 1.55rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.pillar > p {
  max-width: 31rem;
  color: #ded2bd;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  text-shadow: 0 0.12rem 1.1rem rgba(0, 0, 0, 0.95);
}

.pillar__scene {
  position: absolute;
  z-index: 0;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  margin: 0;
  overflow: hidden;
}

.pillar__scene::after {
  display: none;
}

.pillar__scene img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.08) brightness(0.74);
  transform: translate3d(0, var(--chapter-parallax, 0px), 0) scale(1.12);
  will-change: transform;
}

.values,
.signup {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.values {
  min-height: 54svh;
  margin-top: 0;
  padding: clamp(8rem, 16vh, 12rem) clamp(1.5rem, 8vw, 8rem);
  border-width: 1px 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(133, 91, 28, 0.16), transparent 38%),
    linear-gradient(90deg, #050504, #0d0b08 50%, #050504);
}

.values__mark {
  top: clamp(6rem, 12vh, 8rem);
}

.signup {
  display: flex;
  min-height: max(42rem, 92svh);
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
  border-width: 0 0 1px;
  background: #080705;
  isolation: isolate;
}

.signup::before,
.signup::after {
  display: none;
}

.signup__image {
  position: absolute;
  z-index: 0;
  inset: -10% 0;
  width: 100%;
  min-height: 120%;
}

.signup__image::after {
  background:
    linear-gradient(270deg, rgba(5, 5, 4, 0.94) 0%, rgba(5, 5, 4, 0.78) 34%, rgba(5, 5, 4, 0.16) 72%, rgba(5, 5, 4, 0.48) 100%),
    linear-gradient(0deg, #050504 0%, transparent 28%, transparent 72%, rgba(5, 5, 4, 0.6) 100%);
}

.signup__image img {
  transform: translate3d(0, var(--chapter-parallax, 0px), 0) scale(1.12);
  will-change: transform;
}

.signup__content {
  width: min(52rem, 58vw);
  padding: clamp(7rem, 14vh, 11rem) clamp(2rem, 8vw, 8rem);
  text-shadow: 0 0.12rem 1rem rgba(0, 0, 0, 0.96);
}

@media (max-width: 760px) {
  .persistent-wordmark {
    top: 0.22rem;
    font-size: 2.65rem;
  }

  .chapter-bookmark {
    top: 3.05rem;
    min-height: 2.35rem;
    padding: 0.58rem 4.4rem 0.52rem 1rem;
    justify-content: flex-start;
    font-size: 0.59rem;
    letter-spacing: 0.2em;
  }

  .secret-sigil {
    top: 0.55rem;
    right: 0.55rem;
    width: 3rem;
    height: 3rem;
  }

  .secret-instruction {
    top: 5.85rem;
    right: 0.65rem;
  }

  .pillars {
    padding-inline: 0;
  }

  .pillar,
  .pillar:first-child {
    min-height: max(38rem, 92svh);
    align-items: center;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
  }

  .pillar:nth-child(even) {
    align-items: center;
    text-align: center;
  }

  .pillar:nth-child(even) .ornament {
    margin-left: 0;
  }

  .pillar::after,
  .pillar:nth-child(even)::after {
    background:
      linear-gradient(0deg, rgba(5, 5, 4, 0.94) 0%, rgba(5, 5, 4, 0.48) 48%, rgba(5, 5, 4, 0.62) 100%),
      radial-gradient(ellipse at center, transparent 20%, rgba(5, 5, 4, 0.56) 100%);
  }

  .pillar__scene {
    width: 100%;
    height: 120%;
  }

  .pillar__scene img,
  .signup__image img {
    transform: translate3d(0, var(--chapter-parallax, 0px), 0) scale(1.16);
  }

  .values,
  .signup,
  .site-footer {
    width: 100%;
  }

  .values {
    min-height: 62svh;
    padding: 8rem 1.25rem 5rem;
  }

  .values__mark {
    top: 6.2rem;
  }

  .signup {
    display: flex;
    min-height: max(44rem, 96svh);
  }

  .signup__image {
    min-height: 120%;
  }

  .signup__image::after {
    background: linear-gradient(0deg, rgba(5, 5, 4, 0.98) 0%, rgba(5, 5, 4, 0.72) 48%, rgba(5, 5, 4, 0.28) 76%, rgba(5, 5, 4, 0.58) 100%);
  }

  .signup__content {
    width: 100%;
    align-self: flex-end;
    margin-top: 0;
    padding: 13rem 1.25rem 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar__scene img,
  .signup__image img {
    transform: scale(1.08);
    will-change: auto;
  }
}

/* Shared-element masthead handoff */
.persistent-wordmark,
.persistent-wordmark.is-visible {
  opacity: var(--logo-opacity, 0);
  transform: translate3d(calc(-50% + var(--logo-shift-x, 0px)), var(--logo-shift-y, 0px), 0) scale(var(--logo-scale, 1));
  transform-origin: center center;
  transition: none;
  will-change: transform, opacity;
}

.persistent-wordmark::before {
  display: none;
}

.hero h1[data-logo-source] {
  opacity: var(--logo-source-opacity, 1);
  will-change: opacity;
}

[data-chapter-icon],
[data-chapter-heading] {
  opacity: var(--chapter-source-opacity, 1);
  will-change: opacity;
}

.chapter-bookmark {
  right: 0;
  left: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.chapter-bookmark::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-top: 1px solid rgba(216, 173, 85, 0.1);
  border-bottom: 1px solid rgba(216, 173, 85, 0.25);
  content: "";
  background: rgba(5, 5, 4, 0.985);
  box-shadow:
    0 -4.75rem 0 rgba(5, 5, 4, 0.96),
    0 0.8rem 1.8rem rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 234, 184, 0.025);
  opacity: var(--rail-reveal, 0);
  transition: opacity 80ms linear;
}

.chapter-bookmark__identity {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.4vw, 0.9rem);
  padding: 0.32rem 5rem 0.3rem;
  white-space: nowrap;
}

.chapter-bookmark__identity--current {
  opacity: var(--current-opacity, 0);
  transform: translate3d(0, var(--current-y, 0px), 0);
  will-change: transform, opacity;
}

.chapter-bookmark__identity--incoming {
  opacity: var(--incoming-layer-opacity, 0);
}

.chapter-bookmark__icon {
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  overflow: hidden;
  border: 1px solid rgba(239, 207, 130, 0.55);
  border-radius: 50%;
  background: #080705;
  box-shadow: 0 0 0 0.15rem rgba(216, 173, 85, 0.04), 0 0 0.8rem rgba(216, 173, 85, 0.1);
}

.chapter-bookmark__icon[hidden] {
  display: none;
}

.chapter-bookmark__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.chapter-bookmark__number {
  color: rgba(216, 173, 85, 0.5);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
}

.chapter-bookmark__title {
  overflow: hidden;
  max-width: min(64vw, 42rem);
  color: #e8cb8c;
  font-size: clamp(0.61rem, 1vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  text-overflow: ellipsis;
  transition: none;
}

.chapter-bookmark__identity--incoming .chapter-bookmark__icon {
  opacity: var(--incoming-icon-opacity, 0);
  transform: translate3d(var(--incoming-icon-x, 0px), var(--incoming-icon-y, 0px), 0) scale(var(--incoming-icon-scale, 1));
  will-change: transform, opacity;
}

.chapter-bookmark__identity--incoming .chapter-bookmark__title {
  opacity: var(--incoming-title-opacity, 0);
  transform: translate3d(var(--incoming-title-x, 0px), var(--incoming-title-y, 0px), 0) scale(var(--incoming-title-scale, 1));
  transform-origin: center center;
  will-change: transform, opacity;
}

.chapter-bookmark__identity--incoming .chapter-bookmark__number {
  opacity: var(--incoming-number-opacity, 0);
  transform: translateY(var(--incoming-number-y, 0px));
  will-change: transform, opacity;
}

.signup__chapter-icon {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 85, 0.5);
  border-radius: 50%;
  background: #080705;
  box-shadow: 0 0 0 0.35rem rgba(216, 173, 85, 0.035), 0 0 2.5rem rgba(125, 81, 24, 0.22);
}

.signup__chapter-icon picture,
.signup__chapter-icon img {
  width: 100%;
  height: 100%;
}

.signup__chapter-icon img {
  object-fit: cover;
  object-position: 31% center;
  filter: saturate(0.86) contrast(1.09) brightness(0.82);
}

.secret-sigil {
  border: 1px solid rgba(255, 219, 137, 0.9);
  color: #ffe2a0;
  background:
    radial-gradient(circle at 46% 42%, rgba(142, 100, 32, 0.94), rgba(21, 15, 7, 0.98) 61%),
    #0a0703;
  box-shadow:
    0 0 0 0.16rem rgba(216, 173, 85, 0.13),
    0 0 1.65rem rgba(239, 187, 78, 0.42),
    0 0.7rem 2.4rem rgba(0, 0, 0, 0.72),
    inset 0 0 1rem rgba(255, 224, 150, 0.2);
  opacity: 1;
}

.secret-sigil__orbit {
  border-color: rgba(255, 226, 157, 0.58);
}

.secret-sigil__glyph {
  color: #ffe8b5;
  text-shadow: 0 0 0.6rem rgba(255, 211, 108, 0.82);
}

@media (max-width: 760px) {
  .chapter-bookmark__identity {
    justify-content: flex-start;
    gap: 0.45rem;
    padding-right: 4.2rem;
    padding-left: 0.75rem;
  }

  .chapter-bookmark__icon {
    width: 1.72rem;
    height: 1.72rem;
    flex-basis: 1.72rem;
  }

  .chapter-bookmark__title {
    max-width: calc(100vw - 9rem);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .signup__chapter-icon {
    width: 6.25rem;
    height: 6.25rem;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .persistent-wordmark,
  .chapter-bookmark__identity,
  .chapter-bookmark__icon,
  .chapter-bookmark__title,
  [data-chapter-icon],
  [data-chapter-heading] {
    will-change: auto;
  }
}

/* Final masthead geometry must follow the shared-element rules above. */
/* V15 cascade authority: keep the story in normal flow after legacy overrides. */
[data-story-track].story-track {
  position: relative;
  height: auto;
}

[data-story-stage].story-stage {
  position: relative;
  top: auto;
  display: block;
  height: auto;
  overflow: visible;
}

[data-story-stage].story-stage .pillar,
[data-story-stage].story-stage .pillar:first-child {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 112svh;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-top: 1px solid rgba(216, 173, 85, 0.16);
  opacity: 1;
  pointer-events: auto;
  isolation: isolate;
}

[data-story-stage].story-stage .pillar__scene {
  position: sticky;
  top: 6.35rem;
  z-index: 0;
  width: 100%;
  height: calc(100svh - 6.35rem);
  min-height: 32rem;
  grid-area: 1 / 1;
  overflow: hidden;
}

[data-story-stage].story-stage .pillar__scene picture,
[data-story-stage].story-stage .pillar__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

[data-story-stage].story-stage .pillar__scene img,
[data-story-stage].story-stage .pillar:nth-child(even) .pillar__scene img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.08) brightness(0.66);
  transform: translate3d(0, var(--story-parallax, 0px), 0) scale(1.1);
}

[data-story-stage].story-stage .pillar:nth-child(even) .pillar__scene img {
  object-position: 56% center;
}

[data-story-stage].story-stage .pillar__content {
  position: relative;
  z-index: 2;
  width: min(39rem, calc(100% - 3rem));
  margin: clamp(8rem, 21svh, 13rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  grid-area: 1 / 1;
  align-self: start;
}

@media (max-width: 760px) {
  [data-story-stage].story-stage .pillar,
  [data-story-stage].story-stage .pillar:first-child {
    min-height: 104svh;
    padding: 0;
  }

  [data-story-stage].story-stage .pillar__scene {
    top: 5.4rem;
    height: calc(100svh - 5.4rem);
    min-height: 30rem;
  }

  [data-story-stage].story-stage .pillar__content {
    width: calc(100% - 2rem);
    margin-top: clamp(8rem, 23svh, 11rem);
    padding: 1.8rem 1.25rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-story-stage].story-stage .pillar,
  [data-story-stage].story-stage .pillar:first-child {
    display: block;
    min-height: auto;
    padding: 0 0 2rem;
  }

  [data-story-stage].story-stage .pillar__scene {
    position: relative;
    top: auto;
    height: min(65svh, 42rem);
  }

  [data-story-stage].story-stage .pillar__content {
    width: min(44rem, calc(100% - 2rem));
    margin: -8rem auto 0;
  }
}

.persistent-wordmark,
.persistent-wordmark.is-visible {
  top: 0.25rem;
  padding-bottom: 0.35rem;
  font-size: clamp(2.55rem, 3.4vw, 3.25rem);
}

.chapter-bookmark {
  top: 3.75rem;
  min-height: 2.6rem;
  background: transparent;
  box-shadow: none;
}

.chapter-bookmark::before {
  display: none;
}

.secret-sigil {
  z-index: 56;
  top: 0.48rem;
  right: clamp(0.55rem, 1.25vw, 0.9rem);
  width: 2.4rem;
  height: 2.4rem;
  box-shadow:
    0 0 0 1px rgba(216, 173, 85, 0.14),
    0 0 0.85rem rgba(239, 187, 78, 0.24),
    inset 0 0 0.8rem rgba(255, 224, 150, 0.16);
}

.secret-sigil__orbit {
  inset: 0.27rem;
}

.secret-sigil__glyph {
  font-size: 0.92rem;
}

.secret-instruction {
  top: 6.75rem;
}

@media (max-width: 760px) {
  .persistent-wordmark,
  .persistent-wordmark.is-visible {
    top: 0.22rem;
    padding-bottom: 0.3rem;
    font-size: 2.15rem;
  }

  .chapter-bookmark {
    top: 3rem;
    min-height: 2.4rem;
  }

  .secret-sigil {
    top: 0.42rem;
    right: 0.42rem;
    width: 2.05rem;
    height: 2.05rem;
  }

  .secret-sigil__orbit {
    inset: 0.23rem;
  }

  .secret-sigil__glyph {
    font-size: 0.78rem;
  }

  .secret-instruction {
    top: 5.75rem;
  }
}
