@font-face {
  font-family: "Crown Display";
  src: url("/assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Crown Sans";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --crystal-void: #01050a;
  --crystal-panel: rgba(4, 12, 18, 0.76);
  --crystal-panel-solid: #061018;
  --crystal-panel-soft: rgba(6, 17, 25, 0.7);
  --crystal-ink: #f5f3ef;
  --crystal-muted: #aeb9c3;
  --crystal-faint: #74838f;
  --crystal-blue: #50c9ff;
  --crystal-blue-deep: #147ed1;
  --crystal-amber: #ffb052;
  --crystal-fire: #ff6a26;
  --crystal-gold: #f2d39a;
  --crystal-line: rgba(149, 204, 228, 0.24);
  --crystal-line-strong: rgba(255, 191, 113, 0.5);
  --crystal-radius-xl: 2rem;
  --crystal-radius-lg: 1.35rem;
  --crystal-radius-md: 0.9rem;
  --crystal-rail: 7.25rem;
  --font-display: "Crown Display", Georgia, serif;
  --font-sans: "Crown Sans", Arial, sans-serif;
  --page-gutter: clamp(1rem, 3vw, 3.5rem);
  --max-width: 100rem;
}

body,
body * {
  background-image: none !important;
}

body *::before,
body *::after {
  background-image: none !important;
}

html {
  background: var(--crystal-void);
  overflow-x: clip;
}

body {
  min-width: 19rem;
  background: transparent;
  color: var(--crystal-ink);
  font-family: var(--font-sans);
  font-variation-settings: "wght" 430;
  overflow-x: clip;
}

a,
button,
input,
textarea {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--crystal-blue);
  outline-offset: 4px;
}

::selection {
  background: rgba(80, 201, 255, 0.3);
  color: #fff;
}

.cosmic-field,
.cosmic-veil,
.pointer-aura,
.brand__sigil,
.footer-sigil,
.artifact-card__flare,
.waitlist-dialog__glow,
.dialog-sigil::before,
.relic-halo,
.relic-axis,
.relic-orbit,
.relic-core,
.doctrine__orb::before,
.doctrine__orb::after,
.artifact-card__relic::before,
.artifact-card__relic::after {
  display: none !important;
}

.living-sky,
.living-sky__veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.living-sky {
  z-index: 0;
  overflow: hidden;
  background: #020812;
}

.living-sky img {
  position: absolute;
  inset: -2.5%;
  width: 105%;
  height: 105%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1800ms ease, transform 18s ease;
  will-change: opacity, transform;
}

.living-sky[data-phase="dawn"] [data-sky-phase="dawn"],
.living-sky[data-phase="day"] [data-sky-phase="day"],
.living-sky[data-phase="sunset"] [data-sky-phase="sunset"],
.living-sky[data-phase="night"] [data-sky-phase="night"] {
  opacity: 1;
  transform: scale(1);
}

.living-sky__veil {
  z-index: 1;
  background: rgba(0, 6, 11, 0.5);
  transition: background-color 1200ms ease;
}

html[data-sky-phase="day"] .living-sky__veil {
  background: rgba(0, 8, 14, 0.44);
}

html[data-sky-phase="dawn"] .living-sky__veil,
html[data-sky-phase="sunset"] .living-sky__veil {
  background: rgba(2, 7, 13, 0.47);
}

.skip-link {
  z-index: 100;
  border: 1px solid var(--crystal-blue);
  border-radius: 0.6rem;
  background: var(--crystal-panel-solid);
  color: var(--crystal-ink);
}

.crystal-rail {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--crystal-rail);
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid rgba(118, 185, 219, 0.2);
  background: rgba(1, 8, 13, 0.86);
  box-shadow: 1rem 0 3rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px) saturate(135%);
}

.rail-crown {
  display: grid;
  min-height: 8.25rem;
  place-items: center;
  gap: 0.2rem;
  padding: 1rem 0.7rem;
  border-bottom: 1px solid var(--crystal-line);
  color: var(--crystal-gold);
  text-align: center;
  text-decoration: none;
}

.rail-crown img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(-0.45rem 0 0.8rem rgba(48, 158, 255, 0.2))
    drop-shadow(0.45rem 0 0.8rem rgba(255, 112, 30, 0.22));
  animation: crystalBreathe 7s ease-in-out infinite;
}

.rail-crown span {
  max-width: 5.5rem;
  font-family: var(--font-display);
  font-size: 0.61rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  line-height: 1.28;
}

.domain-nav {
  position: static;
  top: auto;
  left: auto;
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  gap: 0;
  padding: 0.9rem 0.55rem;
  overflow: visible;
  transform: none;
}

.domain-link {
  display: grid;
  min-height: 7.3rem;
  grid-template-rows: auto 1fr;
  place-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--crystal-faint);
  text-align: center;
  text-decoration: none;
  transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease,
    transform 250ms ease;
}

.domain-link:hover,
.domain-link.is-current {
  border-color: var(--crystal-line);
  background: rgba(8, 25, 36, 0.74);
  color: var(--crystal-ink);
  transform: translateY(-2px);
}

.domain-link.is-current {
  box-shadow: -0.55rem 0 1.4rem rgba(39, 151, 255, 0.12),
    0.55rem 0 1.4rem rgba(255, 119, 31, 0.1);
}

.domain-link__index {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(103, 190, 232, 0.34);
  border-radius: 0.65rem;
  color: var(--crystal-blue);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.domain-link > span:last-child {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.rail-status {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  padding: 1.1rem 0.5rem;
  border-top: 1px solid var(--crystal-line);
  color: var(--crystal-faint);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.rail-status i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #7de072;
  box-shadow: 0 0 1rem rgba(125, 224, 114, 0.65);
  animation: signalPulse 3s ease-in-out infinite;
}

.site-header {
  position: fixed;
  z-index: 25;
  top: 0;
  right: 0;
  left: var(--crystal-rail);
  width: auto;
  display: grid;
  min-height: 6.2rem;
  grid-template-columns: minmax(18rem, 1fr) auto auto;
  align-items: center;
  gap: 1.1rem;
  padding: 0.72rem var(--page-gutter);
  border-bottom: 1px solid rgba(124, 184, 215, 0.18);
  background: rgba(1, 8, 13, 0.58);
  backdrop-filter: blur(20px) saturate(140%);
}

.site-header.is-scrolled {
  min-height: 5.35rem;
  border-color: rgba(141, 201, 232, 0.28);
  background: rgba(1, 8, 13, 0.88);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  color: var(--crystal-ink);
  text-decoration: none;
}

.brand__crown {
  width: 4.3rem;
  height: 4.3rem;
  flex: none;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(-0.4rem 0 0.8rem rgba(59, 174, 255, 0.2))
    drop-shadow(0.4rem 0 0.8rem rgba(255, 116, 33, 0.22));
}

.brand__wordmark {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.brand__wordmark strong {
  color: var(--crystal-gold);
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.48rem);
  font-weight: 520;
  letter-spacing: 0.22em;
  line-height: 1;
}

.brand__wordmark small {
  overflow: hidden;
  color: var(--crystal-faint);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sky-console {
  position: relative;
}

.sky-console__button {
  display: grid;
  min-width: 10.5rem;
  gap: 0.16rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--crystal-line);
  border-radius: 0.85rem;
  background: rgba(3, 15, 23, 0.8);
  color: var(--crystal-ink);
  cursor: pointer;
  text-align: left;
}

.sky-console__button:hover,
.sky-console__button[aria-expanded="true"] {
  border-color: var(--crystal-line-strong);
  box-shadow: -0.5rem 0 1.6rem rgba(38, 157, 255, 0.1),
    0.5rem 0 1.6rem rgba(255, 110, 28, 0.11);
}

.sky-console__button span {
  color: var(--crystal-faint);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sky-console__button strong {
  font-size: 0.72rem;
  font-weight: 630;
}

.sky-console__options {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  display: grid;
  width: min(22rem, calc(100vw - 2rem));
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--crystal-line);
  border-radius: 1rem;
  background: rgba(2, 12, 19, 0.97);
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.sky-console__options[hidden] {
  display: none;
}

.sky-console__options button {
  padding: 0.58rem 0.35rem;
  border: 1px solid rgba(132, 195, 225, 0.18);
  border-radius: 0.62rem;
  background: rgba(10, 27, 38, 0.74);
  color: var(--crystal-muted);
  cursor: pointer;
  font-size: 0.63rem;
}

.sky-console__options button:hover,
.sky-console__options button[aria-pressed="true"] {
  border-color: var(--crystal-blue);
  color: #fff;
}

.sky-console__options [data-sky-location] {
  grid-column: 1 / -1;
  border-color: rgba(255, 169, 80, 0.38);
  color: var(--crystal-gold);
}

.sky-console__options small {
  grid-column: 1 / -1;
  color: var(--crystal-faint);
  font-size: 0.6rem;
  line-height: 1.5;
}

.header-cta,
.primary-action,
.submit-action,
.secondary-action,
.text-action,
.artifact-card__action {
  border-radius: 0.86rem;
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease, background-color 240ms ease,
    color 240ms ease, box-shadow 240ms ease;
}

.header-cta,
.primary-action,
.submit-action {
  border: 1px solid rgba(255, 166, 73, 0.7);
  background: rgba(66, 28, 10, 0.82);
  color: #fff4e4;
  box-shadow: inset 0 0 1.4rem rgba(255, 110, 28, 0.12),
    0 0 1.4rem rgba(255, 112, 30, 0.08);
}

.header-cta:hover,
.primary-action:hover,
.submit-action:hover:not(:disabled) {
  border-color: #ffd39b;
  background: rgba(104, 40, 8, 0.92);
  box-shadow: inset 0 0 1.8rem rgba(255, 147, 53, 0.2),
    0 0.8rem 2.4rem rgba(255, 98, 20, 0.16);
  transform: translateY(-3px) scale(1.01);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.05rem;
  white-space: nowrap;
}

.header-cta i,
.primary-action b,
.submit-action i,
.artifact-card__action b {
  font-style: normal;
}

.header-cta img,
.primary-action img,
.submit-action img,
.artifact-card__action img {
  display: block;
  width: 1rem;
  height: 1rem;
}

main {
  position: relative;
  z-index: 2;
  margin-left: var(--crystal-rail);
  overflow: clip;
}

.hero {
  display: grid;
  width: min(100%, var(--max-width));
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  grid-template-rows: minmax(0, auto) auto;
  grid-template-areas:
    "copy relic"
    "ledger proof";
  align-content: center;
  gap: 1.25rem;
  padding: clamp(8rem, 11vw, 10rem) var(--page-gutter) 3rem;
}

.hero::before,
.hero__relic::before,
.hero__relic::after {
  display: none;
}

.hero__copy,
.hero__relic,
.hero__ledger,
.hero__proof,
.artifact-card,
.deliverable-card,
.sample-sheet,
.truth-card,
.audit-form-shell,
.portfolio-card,
.doctrine,
.final-signal,
.upgrade-note,
.process-list,
.legal-title,
.legal-content section {
  border: 1px solid var(--crystal-line);
  background: var(--crystal-panel);
  box-shadow: -1.2rem 0 3.2rem rgba(26, 133, 220, 0.06),
    1.2rem 0 3.2rem rgba(255, 105, 26, 0.075), inset 0 0 2rem rgba(111, 197, 238, 0.03);
  backdrop-filter: blur(20px) saturate(125%);
}

.hero__copy {
  grid-area: copy;
  align-self: stretch;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--crystal-radius-xl);
}

.eyebrow {
  color: var(--crystal-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow > span {
  width: 1.4rem;
  height: 1px;
  background: var(--crystal-blue);
  box-shadow: 0 0 0.8rem rgba(80, 201, 255, 0.65);
}

.hero__chapter {
  color: var(--crystal-faint);
  font-family: var(--font-sans);
}

.hero__chapter i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--crystal-fire);
  box-shadow: 0 0 0.8rem rgba(255, 102, 31, 0.7);
}

.hero h1,
.section-heading h2,
.doctrine h2,
.final-signal h2,
.truth-card h2,
.intake-section h2,
.upgrade-note h2,
.legal-title h1,
.legal-content h2,
.waitlist-dialog h2,
.success-state h3,
.audit-success h3 {
  color: var(--crystal-ink);
  font-family: var(--font-display);
  font-weight: 430;
  letter-spacing: -0.015em;
}

.hero h1 {
  max-width: 18ch;
  margin-top: 1.1rem;
  font-size: clamp(3.35rem, 4.65vw, 4.9rem);
  line-height: 0.88;
}

.hero h1 em {
  display: block;
  margin-top: 0.15em;
  color: var(--crystal-gold);
  font-weight: 390;
  text-shadow: 0 0 2.6rem rgba(255, 151, 53, 0.18);
}

.hero__description {
  max-width: 45rem;
  color: var(--crystal-muted);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.62;
}

.hero__actions {
  align-items: center;
}

.primary-action,
.submit-action {
  display: inline-flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}

.text-action,
.secondary-action {
  color: var(--crystal-blue);
}

.text-action:hover,
.secondary-action:hover:not(:disabled) {
  color: #c9efff;
  transform: translateY(-2px);
}

.availability,
.checkout-state,
.service-note {
  border: 1px solid rgba(134, 197, 226, 0.18);
  border-radius: 0.8rem;
  background: rgba(5, 17, 25, 0.64);
  color: var(--crystal-muted);
}

.availability i {
  border-color: rgba(80, 201, 255, 0.35);
  background: var(--crystal-blue);
  box-shadow: 0 0 0.8rem rgba(80, 201, 255, 0.6);
}

.hero__relic {
  grid-area: relic;
  display: grid;
  min-height: 0;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 1.4rem;
  border-radius: var(--crystal-radius-xl);
  overflow: hidden;
}

.hero__relic > img {
  width: min(100%, 26rem);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(-1.2rem 0 2rem rgba(45, 156, 255, 0.28))
    drop-shadow(1.2rem 0 2rem rgba(255, 105, 26, 0.3));
  animation: crownFloat 9s ease-in-out infinite;
}

.relic-caption {
  position: static;
  display: grid;
  gap: 0.22rem;
  color: var(--crystal-faint);
  text-align: center;
}

.relic-caption::before {
  display: none;
}

.relic-caption span,
.relic-caption b {
  margin: 0;
  color: inherit;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.relic-caption b {
  color: var(--crystal-gold);
}

.hero__ledger {
  grid-area: ledger;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--crystal-radius-lg);
  overflow: hidden;
}

.hero__ledger > div {
  min-width: 0;
  padding: 1.25rem;
  border: 0;
}

.hero__ledger > div + div {
  border-left: 1px solid var(--crystal-line);
}

.hero__ledger strong {
  color: var(--crystal-gold);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 460;
}

.hero__ledger span {
  color: var(--crystal-faint);
}

.hero__proof {
  grid-area: proof;
  align-self: stretch;
  padding: 1.3rem;
  border-radius: var(--crystal-radius-lg);
}

.hero__proof-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--crystal-gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__proof-title span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--crystal-fire);
  box-shadow: 0 0 0.9rem rgba(255, 102, 31, 0.65);
}

.hero__proof dl,
.hero__proof dl div,
.hero__proof dt,
.hero__proof dd {
  margin: 0;
}

.hero__proof dl {
  display: grid;
}

.hero__proof dl div {
  padding: 0.78rem 0;
  border-top: 1px solid rgba(143, 194, 219, 0.16);
}

.hero__proof dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--crystal-ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__proof dt i {
  color: var(--crystal-blue);
  font-size: 0.56rem;
  font-style: normal;
}

.hero__proof dd {
  margin: 0.35rem 0 0 1.55rem;
  color: var(--crystal-faint);
  font-size: 0.69rem;
  line-height: 1.55;
}

@media (min-width: 80rem) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr) minmax(16rem, 0.55fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "copy relic proof"
      "ledger ledger proof";
  }

  .hero__copy {
    padding: 2rem;
  }

  .hero__chapter {
    margin-top: 1.1rem;
  }

  .hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.35rem, 4vw, 4rem);
    line-height: 0.9;
  }

  .hero__description {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .hero__actions {
    gap: 0.8rem;
    margin-top: 1.25rem;
  }

  .checkout-state {
    margin-top: 0.75rem;
  }

  .hero__ledger.reveal {
    opacity: 1;
    transform: none;
  }

  .hero__proof {
    align-self: stretch;
  }
}

.artifacts,
.offer-section,
.process-section,
.sample-report,
.truth-grid,
.intake-section,
.upgrade-note,
.portfolio-map,
.doctrine,
.final-signal,
.site-footer {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--max-width));
  margin-inline: auto;
}

.artifacts,
.offer-section,
.process-section,
.sample-report,
.truth-grid,
.intake-section,
.portfolio-map,
.doctrine,
.final-signal {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section-heading {
  align-items: end;
  border: 0;
}

.section-heading h2,
.doctrine h2,
.final-signal h2,
.upgrade-note h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.section-heading > p,
.doctrine__copy > p:last-child,
.final-signal > p,
.upgrade-note > p,
.truth-card > p:not(.eyebrow),
.intake-section__intro > p:not(.eyebrow) {
  color: var(--crystal-muted);
  font-family: var(--font-sans);
  line-height: 1.75;
}

.artifact-grid,
.deliverable-grid,
.portfolio-grid {
  gap: 1.15rem;
}

.artifact-card,
.deliverable-card,
.portfolio-card,
.truth-card {
  border-radius: var(--crystal-radius-lg);
  background-color: var(--crystal-panel);
  transform-style: preserve-3d;
}

.artifact-card,
.deliverable-card,
.portfolio-card {
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.artifact-card:nth-child(even),
.js .artifact-card.reveal.is-visible:nth-child(even) {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.artifact-card:hover,
.deliverable-card:hover,
.portfolio-card:hover {
  border-color: rgba(255, 172, 82, 0.56);
  box-shadow: -1.5rem 0 3rem rgba(32, 145, 235, 0.11),
    1.5rem 0 3rem rgba(255, 99, 22, 0.13), inset 0 0 2rem rgba(255, 174, 90, 0.04);
  transform: translateY(-7px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.artifact-card__header,
.artifact-card__footer,
.sample-sheet__label {
  border-color: var(--crystal-line);
}

.artifact-card__status i {
  background: #7de072;
  box-shadow: 0 0 0.8rem rgba(125, 224, 114, 0.6);
}

.artifact-card__relic,
.doctrine__orb {
  display: grid;
  border: 1px solid rgba(98, 193, 235, 0.34);
  background: rgba(7, 22, 32, 0.9);
  box-shadow: -0.7rem 0 1.8rem rgba(45, 158, 246, 0.12),
    0.7rem 0 1.8rem rgba(255, 113, 29, 0.1);
}

.artifact-card__relic span,
.doctrine__orb span {
  color: var(--crystal-gold);
}

.artifact-card__icon {
  position: relative;
  z-index: 2;
  width: 4.4rem;
  height: 4.4rem;
  filter: drop-shadow(-0.35rem 0 0.75rem rgba(43, 157, 246, 0.22))
    drop-shadow(0.35rem 0 0.75rem rgba(255, 112, 29, 0.2));
}

.artifact-card__signal,
.sample-sheet__label,
.portfolio-card > span {
  color: var(--crystal-blue);
}

.artifact-card h3,
.deliverable-card h3,
.portfolio-card h3 {
  color: var(--crystal-ink);
  font-family: var(--font-display);
  font-weight: 450;
}

.artifact-card__descriptor,
.artifact-card__description,
.artifact-card__capabilities,
.deliverable-card p,
.portfolio-card p {
  color: var(--crystal-muted);
}

.artifact-card__capabilities li span,
.readiness-list li::before {
  background: var(--crystal-blue);
  box-shadow: 0 0 0.7rem rgba(80, 201, 255, 0.55);
}

.artifact-card__action {
  color: var(--crystal-gold);
}

.doctrine {
  display: grid;
  grid-template-columns: minmax(12rem, 0.48fr) minmax(0, 0.9fr) minmax(18rem, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-block: clamp(4rem, 9vw, 9rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--crystal-radius-xl);
}

.doctrine::before {
  display: none;
}

.doctrine__orb {
  width: min(14rem, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
}

.doctrine__principles li {
  border-color: var(--crystal-line);
}

.doctrine__principles > li > span {
  color: var(--crystal-blue);
}

.final-signal,
.upgrade-note {
  margin-block: clamp(3rem, 7vw, 7rem);
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border-radius: var(--crystal-radius-xl);
}

.deliverable-card,
.portfolio-card,
.truth-card {
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.deliverable-card > span,
.process-list > li > span {
  color: var(--crystal-blue);
}

.process-list {
  border-radius: var(--crystal-radius-xl);
  overflow: hidden;
}

.process-list li + li,
.sample-sheet__grid > div,
.readiness-list li {
  border-color: var(--crystal-line);
}

.sample-sheet {
  border-radius: var(--crystal-radius-xl);
  overflow: hidden;
}

.sample-sheet__grid > div:nth-child(even),
.sample-sheet__grid > div:nth-child(n + 3) {
  border-color: var(--crystal-line);
}

.sample-sheet__grid span {
  color: var(--crystal-blue);
}

.truth-card {
  min-height: 100%;
}

.boundary-list li,
.readiness-list li {
  color: var(--crystal-muted);
}

.intake-section {
  gap: 1.2rem;
}

.audit-form-shell {
  border-radius: var(--crystal-radius-xl);
}

.audit-form__grid label,
.email-field {
  color: var(--crystal-ink);
}

.audit-form__grid input,
.audit-form__grid textarea,
.email-field input {
  border: 1px solid rgba(132, 193, 222, 0.24);
  border-radius: 0.75rem;
  background: rgba(1, 9, 15, 0.82);
  color: var(--crystal-ink);
}

.audit-form__grid input:focus,
.audit-form__grid textarea:focus,
.email-field input:focus {
  border-color: var(--crystal-blue);
  box-shadow: 0 0 0 0.18rem rgba(80, 201, 255, 0.12);
}

.consent-field {
  color: var(--crystal-muted);
}

.consent-field i {
  border-color: var(--crystal-line);
  background: rgba(2, 12, 19, 0.9);
}

.consent-field input:checked + span i {
  border-color: var(--crystal-blue);
  background: var(--crystal-blue-deep);
}

.consent-note,
.form-status,
.service-note,
.checkout-state,
.audit-form__grid label > small {
  color: var(--crystal-faint);
}

.form-status[data-state="error"],
.audit-success [data-audit-result-evidence][data-state="error"] {
  color: #ff9c89;
}

.waitlist-dialog {
  border: 0;
  background: transparent;
}

.waitlist-dialog::backdrop {
  background: rgba(0, 4, 8, 0.82);
  backdrop-filter: blur(18px);
}

.waitlist-dialog__shell {
  border: 1px solid var(--crystal-line-strong);
  border-radius: var(--crystal-radius-xl);
  background: rgba(2, 12, 19, 0.98);
  box-shadow: -1.5rem 0 3.5rem rgba(31, 145, 235, 0.14),
    1.5rem 0 3.5rem rgba(255, 99, 22, 0.16);
}

.waitlist-dialog__shell::after {
  display: none;
}

.dialog-close,
.secondary-action {
  border: 1px solid var(--crystal-line);
  background: rgba(6, 22, 31, 0.86);
  color: var(--crystal-muted);
}

.dialog-sigil {
  border-color: var(--crystal-line);
  background: rgba(6, 22, 31, 0.85);
}

.dialog-close img,
.dialog-sigil img,
.success-state > span img,
.audit-success > span img {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

.dialog-sigil img {
  width: 2rem;
  height: 2rem;
}

.success-state > span,
.audit-success > span {
  border-color: var(--crystal-blue);
  background: rgba(6, 28, 38, 0.88);
  color: var(--crystal-blue);
}

.site-footer {
  margin-left: auto;
  padding-block: 2.2rem;
  border-color: var(--crystal-line);
}

.site-footer > div {
  gap: 0.7rem;
}

.site-footer > div::before {
  content: "";
  width: 3.2rem;
  height: 3.2rem;
  flex: none;
  background: url("/assets/crystal/dual-crystal-crown.webp") center / contain no-repeat !important;
}

.footer-links a {
  color: var(--crystal-muted);
}

.footer-links a:hover {
  color: var(--crystal-blue);
}

.legal-page {
  min-height: 100vh;
}

.legal-page main,
.legal-page .site-footer {
  margin-left: 0;
}

.legal-header {
  position: relative;
  z-index: 2;
  border-color: var(--crystal-line);
  background: rgba(1, 8, 13, 0.78);
  backdrop-filter: blur(20px);
}

.legal-header .sky-console {
  margin-left: auto;
}

.legal-main {
  position: relative;
  z-index: 1;
}

.legal-title,
.legal-content section {
  border-radius: var(--crystal-radius-lg);
}

.legal-content a,
.sample-sheet__download a,
.audit-reply-consent a {
  color: var(--crystal-blue);
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.4rem) scale(0.985);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible,
.js .artifact-card.reveal.is-visible,
.js .artifact-card.reveal.is-visible:nth-child(even) {
  opacity: 1;
  transform: translateY(0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

@keyframes crystalBreathe {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes crownFloat {
  0%,
  100% {
    transform: translate3d(0, 0.3rem, 0) rotateX(0deg) rotateY(-1.4deg);
  }
  50% {
    transform: translate3d(0, -0.55rem, 0) rotateX(1.2deg) rotateY(1.4deg);
  }
}

@media (max-width: 76rem) {
  :root {
    --crystal-rail: 0rem;
  }

  .crystal-rail {
    inset: auto 0 0;
    width: auto;
    height: 4.5rem;
    flex-direction: row;
    border-top: 1px solid var(--crystal-line);
    border-right: 0;
  }

  .rail-crown,
  .rail-status {
    display: none;
  }

  .domain-nav {
    display: grid;
    max-width: none;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.35rem;
  }

  .domain-link {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.45rem;
  }

  .domain-link__index {
    width: 2rem;
    height: 2rem;
  }

  .domain-link > span:last-child {
    font-size: 0.56rem;
  }

  .site-header {
    left: 0;
  }

  main {
    margin-left: 0;
    padding-bottom: 4.5rem;
  }

  body:not(.legal-page) .site-footer {
    margin-bottom: 4.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  }
}

@media (max-width: 62rem) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "relic" "ledger" "proof";
    padding-top: 8rem;
  }

  .hero__relic {
    min-height: 25rem;
  }

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

  .hero__ledger > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--crystal-line);
  }

  .hero__ledger > div:nth-child(4) {
    border-top: 1px solid var(--crystal-line);
  }

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

@media (max-width: 42rem) {
  .site-header {
    min-height: 5.4rem;
    gap: 0.55rem;
    padding-inline: 0.75rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand__crown {
    width: 3.4rem;
    height: 3.4rem;
  }

  .brand__wordmark strong {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .brand__wordmark small {
    max-width: 13rem;
    font-size: 0.48rem;
  }

  .sky-console__button {
    min-width: 0;
    padding: 0.6rem;
  }

  .sky-console__button span {
    display: none;
  }

  .sky-console__button strong {
    max-width: 6.5rem;
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sky-console__options {
    position: fixed;
    top: 5.8rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .legal-header .header-cta {
    display: none;
  }

  .hero {
    padding: 7rem 0.75rem 2rem;
  }

  .hero__copy,
  .hero__relic,
  .hero__proof {
    border-radius: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .hero__actions {
    align-items: stretch;
  }

  .primary-action,
  .submit-action,
  .text-action,
  .availability {
    width: 100%;
  }

  .hero__relic {
    min-height: 20rem;
  }

  .hero__relic > img {
    width: min(100%, 22rem);
  }

  .domain-link {
    gap: 0.3rem;
  }

  .domain-link > span:last-child {
    display: none;
  }

  .artifacts,
  .offer-section,
  .process-section,
  .sample-report,
  .truth-grid,
  .intake-section,
  .upgrade-note,
  .portfolio-map,
  .doctrine,
  .final-signal,
  .site-footer {
    width: calc(100% - 1.5rem);
  }

  .section-heading h2,
  .doctrine h2,
  .final-signal h2,
  .upgrade-note h2 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }
}

@media (max-width: 22.5rem) {
  .site-header,
  .legal-header {
    gap: 0.35rem;
    padding-inline: 0.6rem;
  }

  .brand {
    gap: 0.35rem;
  }

  .brand__crown {
    width: 2.7rem;
    height: 2.7rem;
  }

  .brand__wordmark strong {
    display: block;
    max-width: 6.25rem;
    overflow: hidden;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand__wordmark small {
    display: none;
  }

  .sky-console__button {
    padding: 0.5rem;
  }

  .sky-console__button strong {
    max-width: 4.8rem;
  }
}

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

  .living-sky img,
  .rail-crown img,
  .hero__relic > img {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .living-sky,
  .living-sky__veil {
    display: none;
  }

  .hero__copy,
  .hero__relic,
  .hero__ledger,
  .hero__proof,
  .artifact-card,
  .deliverable-card,
  .sample-sheet,
  .truth-card,
  .audit-form-shell,
  .portfolio-card,
  .doctrine,
  .final-signal,
  .upgrade-note,
  .process-list,
  .legal-title,
  .legal-content section {
    border: 1px solid CanvasText;
    background: Canvas;
  }
}
