:root {
  --ink: #f5f1e9;
  --ink-soft: rgba(245, 241, 233, 0.72);
  --ink-muted: rgba(245, 241, 233, 0.48);
  --midnight-950: #050b16;
  --midnight-900: #07101f;
  --midnight-850: #0a1426;
  --midnight-800: #0e1b31;
  --midnight-700: #172846;
  --dust-blue: #91a4c7;
  --lavender: #b7add3;
  --moon: #eef1ff;
  --gold: #d7bf8a;
  --glass: rgba(12, 24, 43, 0.64);
  --glass-strong: rgba(11, 22, 40, 0.88);
  --line: rgba(235, 238, 255, 0.14);
  --line-soft: rgba(235, 238, 255, 0.08);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 44px 140px rgba(0, 0, 0, 0.48);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --content-width: 1240px;
  --page-gutter: clamp(22px, 4vw, 64px);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

.atlas-wordmark,
.atlas-brand-inline {
  font-family: "Playwrite AT", "Segoe Print", cursive !important;
  font-weight: 300 !important;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.atlas-brand-inline {
  line-height: 1.8;
  white-space: nowrap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--midnight-950);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--midnight-950);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(183, 173, 211, 0.35);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

button,
a,
input,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(183, 173, 211, 0.38);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  transform: translateY(-180%);
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--midnight-950);
  font-size: 12px;
  font-weight: 600;
  transition: transform 180ms ease;
}

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

.sr-only {
  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,
.panel-kicker,
.resource-kicker,
.product-type {
  margin: 0;
  color: rgba(222, 224, 244, 0.64);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Shared top rail */
.top-rail {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--page-gutter);
  pointer-events: none;
}

.top-rail > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(235, 238, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 24, 43, 0.34);
  box-shadow: inset 0 0 22px rgba(183, 173, 211, 0.08);
  backdrop-filter: blur(14px);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i::before,
.brand-mark i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 7px;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.brand-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.brand-mark i::before {
  width: 5px;
  opacity: 0.55;
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-mark i::after {
  width: 5px;
  opacity: 0.55;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: rgba(245, 241, 233, 0.44);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiet-cta {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(235, 238, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 19, 35, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  color: rgba(245, 241, 233, 0.86);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  transition: border-color 260ms ease, background 260ms ease, transform 260ms var(--ease-premium);
}

.quiet-cta span {
  color: var(--gold);
  font-size: 12px;
}

.quiet-cta:hover {
  border-color: rgba(235, 238, 255, 0.3);
  background: rgba(18, 34, 58, 0.68);
  transform: translateY(-2px);
}

/* Bottom orbit navigation */
.orbit-nav {
  position: fixed;
  z-index: 150;
  bottom: max(48px, calc(env(safe-area-inset-bottom) + 10px));
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.orbit-shell {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  pointer-events: none;
}

.orbit-shell::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(239, 241, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 17, 32, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 0 24px rgba(183, 173, 211, 0.05);
  content: "";
  transform: translate(-50%, -50%);
  backdrop-filter: blur(22px) saturate(120%);
  transition: width 620ms var(--ease-premium), border-color 350ms ease, background 350ms ease;
}

.orbit-nav.is-open .orbit-shell::before {
  width: 100%;
  border-color: rgba(239, 241, 255, 0.2);
  background: rgba(8, 17, 32, 0.74);
}

.orbit-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.orbit-toggle::before {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(238, 240, 255, 0.14);
  border-radius: 50%;
  content: "";
  transition: border-color 300ms ease, transform 500ms var(--ease-premium);
}

.orbit-toggle:hover::before {
  border-color: rgba(238, 240, 255, 0.34);
  transform: scale(1.08);
}

.orbit-toggle-star {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  transition: opacity 280ms ease, transform 540ms var(--ease-premium);
}

.orbit-toggle-lines {
  position: absolute;
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
  transition: opacity 260ms ease, transform 540ms var(--ease-premium);
}

.orbit-toggle-lines::before,
.orbit-toggle-lines::after {
  position: absolute;
  top: 7px;
  left: 0;
  width: 15px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.orbit-toggle-lines::after {
  transform: rotate(90deg);
}

.orbit-nav.is-open .orbit-toggle-star {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.orbit-nav.is-open .orbit-toggle-lines {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.orbit-side {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease 0ms, transform 540ms var(--ease-premium);
}

.orbit-left {
  transform: translateX(38px) scale(0.94);
}

.orbit-right {
  transform: translateX(-38px) scale(0.94);
}

.orbit-nav.is-open .orbit-side {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition-delay: 130ms;
}

.orbit-link {
  position: relative;
  display: flex;
  min-width: 0;
  height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: rgba(245, 241, 233, 0.54);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.orbit-link::after {
  position: absolute;
  right: 50%;
  bottom: 12px;
  left: 50%;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transition: right 300ms var(--ease-premium), left 300ms var(--ease-premium), opacity 220ms ease;
}

.orbit-link:hover,
.orbit-link.is-active {
  color: var(--ink);
}

.orbit-link:hover::after,
.orbit-link.is-active::after {
  right: calc(50% - 10px);
  left: calc(50% - 10px);
  opacity: 0.8;
}


/* Quiet entry gate */
.entry-gate {
  position: fixed;
  z-index: 1800;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #050608;
  color: rgba(245, 241, 233, 0.9);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.entry-gate::before {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.045;
  pointer-events: none;
}

.entry-gate[hidden] {
  display: none;
}

.entry-gate-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.entry-kicker {
  color: rgba(245, 241, 233, 0.42);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(5px);
}

.entry-gate h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 54px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  opacity: 0;
  transform: translateY(5px);
}


.entry-blurb {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: -2px 0 2px;
  color: rgba(245, 241, 233, 0.58);
  font-size: 12px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(5px);
}

.entry-button {
  position: relative;
  z-index: 2;
  min-width: 96px;
  min-height: 36px;
  padding: 0 20px;
  border: 1px solid rgba(245, 241, 233, 0.3);
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 241, 233, 0.72);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.19em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(5px);
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}

.entry-portal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(110px, 16vw, 190px);
  height: clamp(110px, 16vw, 190px);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(3, 6, 12, 0.97) 0%, rgba(5, 8, 14, 0.98) 30%, rgba(10, 16, 28, 0.76) 46%, rgba(177, 162, 219, 0.1) 57%, rgba(177, 162, 219, 0.02) 72%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(239, 242, 255, 0.08), 0 0 36px rgba(178, 165, 219, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.36);
  pointer-events: none;
  filter: blur(0.2px);
}

.entry-button:hover,
.entry-button:focus-visible {
  border-color: rgba(245, 241, 233, 0.68);
  background: rgba(245, 241, 233, 0.045);
  color: var(--ink);
}

.entry-gate.is-ready .entry-kicker {
  animation: entry-copy-in 760ms 90ms var(--ease-premium) both;
}

.entry-gate.is-ready h1 {
  animation: entry-copy-in 1s 210ms var(--ease-premium) both;
}

.entry-gate.is-ready .entry-blurb {
  animation: entry-copy-in 900ms 430ms var(--ease-premium) both;
}

.entry-gate.is-ready .entry-button {
  animation: entry-copy-in 800ms 1.05s var(--ease-premium) both;
}

.entry-gate.is-ready .entry-portal {
  animation: entry-portal-breathe 2.6s 320ms ease-in-out infinite alternate;
  opacity: 0.9;
}

.entry-gate.is-opening {
  animation: entry-gate-fade 1.45s var(--ease-premium) both;
  pointer-events: none;
}

.entry-gate.is-opening .entry-gate-inner > :not(.entry-portal) {
  animation: entry-copy-out 340ms ease both;
}

.entry-gate.is-opening .entry-portal {
  animation: entry-portal-open 1.45s cubic-bezier(0.18, 0.98, 0.24, 1) both;
}

.entry-locked .top-rail,
.entry-locked .intro,
.entry-locked .sky-hud,
.entry-locked .orbit-nav {
  opacity: 0;
}

.entry-revealing .top-rail,
.entry-revealing .intro,
.entry-revealing .sky-hud,
.entry-revealing .orbit-nav {
  opacity: 1;
  transition: opacity 850ms 260ms ease;
}

.entry-locked .experience {
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  transform: scale(1.08);
  filter: brightness(0.72) saturate(0.92);
}

.entry-revealing .experience {
  opacity: 1;
  clip-path: circle(160% at 50% 50%);
  transform: scale(1);
  filter: brightness(1) saturate(1);
  transition: clip-path 1.42s cubic-bezier(0.18, 0.98, 0.24, 1), transform 1.42s cubic-bezier(0.18, 0.98, 0.24, 1), filter 1.28s ease, opacity 120ms linear;
}

@keyframes entry-copy-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes entry-copy-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes entry-gate-fade {
  0% { opacity: 1; }
  68% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes entry-portal-breathe {
  0% { transform: translate(-50%, -50%) scale(0.84); box-shadow: 0 0 0 1px rgba(239, 242, 255, 0.06), 0 0 22px rgba(178, 165, 219, 0.05); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 1px rgba(239, 242, 255, 0.1), 0 0 52px rgba(178, 165, 219, 0.14); }
}

@keyframes entry-portal-open {
  0% { opacity: 0.84; transform: translate(-50%, -50%) scale(0.84); filter: blur(0.2px); }
  35% { opacity: 0.98; transform: translate(-50%, -50%) scale(1.16); filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(14); filter: blur(1px); }
}

/* Sky experience */
.sky-page {
  overflow: hidden;
}

.experience {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(125, 116, 174, 0.16), transparent 35%),
    radial-gradient(circle at 86% 28%, rgba(70, 91, 143, 0.12), transparent 31%),
    linear-gradient(180deg, #0d1830 0%, #07101f 56%, #050b16 100%);
  transition: background 1.2s ease;
}

#sky {
  position: absolute;
  z-index: 1;
  inset: 0;
  touch-action: none;
}

.sky-aurora {
  position: absolute;
  z-index: 2;
  top: -40%;
  left: 4%;
  width: 70vw;
  height: 76vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(146, 132, 192, 0.13), rgba(57, 78, 128, 0.04) 42%, transparent 70%);
  filter: blur(34px);
  opacity: 0.74;
  pointer-events: none;
  transform: rotate(-9deg);
}

.sky-noise,
.page-atmosphere::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.065;
  pointer-events: none;
}

.sky-vignette {
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 15, 0.08), transparent 26%, transparent 72%, rgba(2, 7, 15, 0.42)),
    radial-gradient(circle at center, transparent 42%, rgba(1, 5, 12, 0.4) 100%);
  pointer-events: none;
}

.intro {
  position: absolute;
  z-index: 20;
  top: 49%;
  left: var(--page-gutter);
  width: min(660px, calc(100vw - 2 * var(--page-gutter)));
  transform: translateY(-48%);
  transition: opacity 900ms var(--ease-premium), transform 900ms var(--ease-premium), visibility 900ms;
}

.intro::before {
  position: absolute;
  top: -42px;
  left: 1px;
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, rgba(245, 241, 233, 0.42));
  content: "";
}

.intro h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.8vw, 86px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.intro h1 em {
  color: rgba(235, 230, 242, 0.76);
  font-weight: 400;
}

.intro-copy {
  max-width: 470px;
  margin: 0;
  color: rgba(245, 241, 233, 0.58);
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.8;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(245, 241, 233, 0.24);
  background: transparent;
  color: rgba(245, 241, 233, 0.86);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 260ms ease, color 260ms ease;
}

.text-button span {
  color: var(--gold);
  transition: transform 300ms var(--ease-premium);
}

.text-button:hover {
  border-color: rgba(245, 241, 233, 0.66);
  color: var(--ink);
}

.text-button:hover span {
  transform: translateY(4px);
}

.intro.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-46%) translateY(-24px);
  pointer-events: none;
}

.sky-hud {
  position: absolute;
  z-index: 20;
  right: var(--page-gutter);
  bottom: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 241, 233, 0.34);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.control-label span {
  width: 26px;
  height: 1px;
  background: rgba(245, 241, 233, 0.18);
}

.control-group {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(235, 238, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 17, 32, 0.42);
  backdrop-filter: blur(18px);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(235, 238, 255, 0.1);
  background: transparent;
  color: rgba(245, 241, 233, 0.62);
  cursor: pointer;
  font-size: 16px;
  transition: background 220ms ease, color 220ms ease;
}

.icon-button:last-child {
  border-right: 0;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.icon-button:disabled,
.icon-button[aria-disabled="true"] {
  opacity: 0.38;
  cursor: default;
}

.icon-button:disabled:hover,
.icon-button[aria-disabled="true"]:hover {
  background: transparent;
  color: rgba(245, 241, 233, 0.62);
}

.explore-hint {
  position: absolute;
  z-index: 20;
  bottom: 115px;
  left: var(--page-gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 241, 233, 0.38);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms var(--ease-premium);
}

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

.mouse-icon {
  position: relative;
  width: 13px;
  height: 20px;
  border: 1px solid rgba(245, 241, 233, 0.32);
  border-radius: 10px;
}

.mouse-icon::after {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 1px;
  height: 4px;
  background: rgba(245, 241, 233, 0.56);
  content: "";
  animation: mouse-wheel 1.8s ease infinite;
}

.constellation-counter {
  position: absolute;
  z-index: 20;
  right: var(--page-gutter);
  bottom: 158px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms var(--ease-premium);
}

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

.constellation-counter strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.constellation-counter span {
  margin-top: 7px;
  color: rgba(245, 241, 233, 0.35);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-card {
  position: absolute;
  z-index: 60;
  top: 50%;
  right: var(--page-gutter);
  width: min(430px, calc(100vw - 40px));
  overflow: hidden;
  padding: 38px 38px 30px;
  border: 1px solid rgba(235, 238, 255, 0.16);
  background: rgba(8, 18, 34, 0.76);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-44%) translateX(18px) scale(0.98);
  backdrop-filter: blur(28px) saturate(120%);
  transition: opacity 460ms ease, transform 650ms var(--ease-premium);
}

.story-card.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

.story-card-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(136, 122, 180, 0.14);
  filter: blur(50px);
  pointer-events: none;
}

.close-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(235, 238, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 241, 233, 0.62);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: background 220ms ease, color 220ms ease, transform 300ms var(--ease-premium);
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  transform: rotate(6deg);
}

.story-card > .close-button {
  position: absolute;
  top: 22px;
  right: 22px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: rgba(245, 241, 233, 0.42);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-type {
  color: var(--gold);
}

.story-location::before {
  margin-right: 12px;
  color: rgba(245, 241, 233, 0.24);
  content: "·";
}

.story-card blockquote {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.story-object {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.story-object-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 16px;
}

.story-object div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.story-object small {
  color: rgba(245, 241, 233, 0.38);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-object strong {
  overflow: hidden;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
}

.story-card footer > span {
  color: rgba(245, 241, 233, 0.3);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-story {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 241, 233, 0.62);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.next-story span {
  color: var(--gold);
  transition: transform 260ms var(--ease-premium);
}

.next-story:hover span {
  transform: translateX(4px);
}

/* Leave a star modal */
.panel {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}

.panel.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 450ms ease, visibility 0s linear 0s;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 13, 0.76);
  backdrop-filter: blur(10px);
}

.meteor-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  width: 160px;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 220, 0.82), white);
  box-shadow: 0 0 13px rgba(223, 224, 255, 0.66);
  opacity: 0;
  transform: rotate(-28deg) translateX(-160px);
}

.shooting-star::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px white;
  content: "";
}

.shooting-star-one {
  top: 19%;
  left: 7%;
}

.shooting-star-two {
  top: 58%;
  right: 11%;
  transform: rotate(-28deg) translateX(-160px) scale(0.6);
}

.panel.is-open .shooting-star-one {
  animation: meteor-cross 1.5s 120ms var(--ease-premium) both;
}

.panel.is-open .shooting-star-two {
  animation: meteor-cross-small 1.3s 520ms var(--ease-premium) both;
}

.floating-spark {
  position: absolute;
  color: rgba(239, 240, 255, 0.64);
  opacity: 0;
}

.spark-one { top: 20%; right: 21%; }
.spark-two { bottom: 22%; left: 18%; }
.spark-three { top: 63%; right: 16%; }

.panel.is-open .floating-spark {
  animation: spark-in 1.4s 720ms ease both;
}

.panel-sheet {
  position: relative;
  width: min(700px, calc(100vw - 36px));
  max-height: calc(100svh - 42px);
  overflow: auto;
  padding: 46px clamp(26px, 6vw, 62px) 54px;
  border: 1px solid rgba(235, 238, 255, 0.17);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(17, 31, 54, 0.96), rgba(7, 16, 31, 0.98));
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transform: translateY(24px) scale(0.975);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 241, 233, 0.2) transparent;
  transition: opacity 480ms ease 160ms, transform 700ms var(--ease-premium) 160ms;
}

.panel.is-open .panel-sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-aurora {
  position: absolute;
  top: -200px;
  left: 50%;
  width: 520px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 134, 190, 0.18), transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  transform: translateX(-50%);
}

.panel-close {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
}

.wish-emblem {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 23px;
  place-items: center;
}

.wish-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(235, 238, 255, 0.15);
  border-radius: 50%;
}

.wish-ring::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(235, 238, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.wish-core {
  color: var(--gold);
  font-size: 16px;
}

.panel-kicker {
  text-align: center;
}

.panel-sheet h2 {
  margin: 9px 0 13px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-align: center;
}

.panel-intro {
  max-width: 520px;
  margin: 0 auto 34px;
  color: rgba(245, 241, 233, 0.52);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.panel form {
  position: relative;
  z-index: 2;
}

.panel fieldset {
  padding: 0;
  margin: 0 0 26px;
  border: 0;
}

.panel legend,
.field-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(245, 241, 233, 0.62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field-label {
  margin-top: 20px;
}

.field-label span {
  color: rgba(245, 241, 233, 0.28);
  text-transform: none;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.type-grid label {
  cursor: pointer;
}

.type-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-grid span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 238, 255, 0.1);
  background: rgba(255, 255, 255, 0.018);
  color: rgba(245, 241, 233, 0.46);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.type-grid input:checked + span {
  border-color: rgba(215, 191, 138, 0.42);
  background: rgba(215, 191, 138, 0.07);
  color: var(--ink);
}

.type-grid input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(183, 173, 211, 0.32);
}

.other-type-field {
  margin-top: 14px;
}

.other-type-field[hidden] {
  display: none;
}

.other-type-field .field-label {
  margin-top: 0;
}

.panel input[type="text"],
.panel textarea,
.waitlist-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(235, 238, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: border-color 220ms ease, background 220ms ease;
}

.panel input[type="text"] {
  height: 47px;
  padding: 0 2px;
}

.panel textarea {
  min-height: 120px;
  padding: 11px 2px;
  resize: vertical;
}

.panel input[type="text"]::placeholder,
.panel textarea::placeholder,
.waitlist-form input::placeholder {
  color: rgba(245, 241, 233, 0.25);
}

.panel input[type="text"]:focus,
.panel textarea:focus,
.waitlist-form input:focus {
  border-color: rgba(215, 191, 138, 0.58);
  box-shadow: none;
}

.field-helper {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(245, 241, 233, 0.27);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 27px 0 24px;
  color: rgba(245, 241, 233, 0.46);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.5;
}

.consent-row input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--gold);
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid rgba(245, 241, 233, 0.72);
  border-radius: 0;
  background: var(--ink);
  color: var(--midnight-950);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 260ms ease, border-color 260ms ease, transform 300ms var(--ease-premium);
}

.primary-button span {
  color: #92763f;
}

.primary-button:hover {
  background: #fffdf7;
  border-color: #fffdf7;
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  z-index: 400;
  top: 26px;
  left: 50%;
  display: flex;
  min-width: min(430px, calc(100vw - 32px));
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 1px solid rgba(235, 238, 255, 0.16);
  background: rgba(9, 19, 35, 0.88);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  backdrop-filter: blur(22px);
  transition: opacity 350ms ease, transform 500ms var(--ease-premium);
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.toast > span {
  color: var(--gold);
}

.toast-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.toast strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.toast small {
  margin-top: 3px;
  color: rgba(245, 241, 233, 0.42);
  font-size: 9px;
}

.toast-action {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(215, 191, 138, 0.28);
  background: rgba(215, 191, 138, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.toast-action:hover {
  border-color: rgba(215, 191, 138, 0.52);
  background: rgba(215, 191, 138, 0.16);
  transform: translateY(-1px);
}

.toast-action[hidden] {
  display: none;
}

/* Content pages */
.content-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 4%, rgba(100, 91, 142, 0.13), transparent 32%),
    linear-gradient(180deg, #0a1426 0%, #07101f 48%, #050b16 100%);
}

.content-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.012) 50%, transparent 100%);
  content: "";
  pointer-events: none;
}


.content-document {
  background: #f2f0ea;
  color-scheme: light;
}

.content-page {
  background:
    radial-gradient(circle at 82% 4%, rgba(130, 119, 170, 0.20), transparent 30%),
    radial-gradient(circle at 10% 18%, rgba(109, 132, 171, 0.16), transparent 26%),
    linear-gradient(180deg, #f2f0ea 0%, #ece9e2 48%, #e4e0d8 100%);
  color: #152033;
}

.content-page::before {
  background: linear-gradient(90deg, transparent 0%, rgba(21, 32, 51, 0.028) 50%, transparent 100%);
}

.content-page .page-atmosphere > span {
  background: rgba(28, 43, 67, 0.18);
  box-shadow:
    11vw 12vh 0 rgba(28, 43, 67, 0.1),
    28vw 6vh 0 rgba(28, 43, 67, 0.14),
    44vw 28vh 0 rgba(28, 43, 67, 0.08),
    68vw 13vh 0 rgba(28, 43, 67, 0.12),
    88vw 34vh 0 rgba(28, 43, 67, 0.08),
    18vw 58vh 0 rgba(28, 43, 67, 0.08),
    51vw 71vh 0 rgba(28, 43, 67, 0.11),
    78vw 82vh 0 rgba(28, 43, 67, 0.08),
    92vw 66vh 0 rgba(28, 43, 67, 0.1);
  opacity: 0.4;
}

.content-page .brand-mark {
  border-color: rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 22px rgba(145, 164, 199, 0.06);
}

.content-page .brand-mark::before,
.content-page .brand-mark::after,
.content-page .brand-mark i::before,
.content-page .brand-mark i::after {
  background: #152033;
}

.content-page .brand-copy strong {
  color: #152033;
}

.content-page .brand-copy small {
  color: rgba(21, 32, 51, 0.46);
}

.content-page .quiet-cta {
  border-color: rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 38px rgba(20, 33, 52, 0.08);
  color: rgba(21, 32, 51, 0.82);
}

.content-page .quiet-cta:hover {
  border-color: rgba(21, 32, 51, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #152033;
}

.content-page .orbit-shell::before {
  border-color: rgba(21, 32, 51, 0.12);
  background: rgba(252, 250, 246, 0.8);
  box-shadow: 0 24px 70px rgba(20, 33, 52, 0.12), inset 0 0 24px rgba(145, 164, 199, 0.08);
}

.content-page .orbit-nav.is-open .orbit-shell::before {
  border-color: rgba(21, 32, 51, 0.15);
  background: rgba(252, 250, 246, 0.88);
}

.content-page .orbit-toggle::before {
  border-color: rgba(21, 32, 51, 0.12);
}

.content-page .orbit-toggle:hover::before {
  border-color: rgba(21, 32, 51, 0.26);
}

.content-page .orbit-toggle-lines::before,
.content-page .orbit-toggle-lines::after {
  background: #152033;
}

.content-page .orbit-link {
  color: rgba(21, 32, 51, 0.52);
}

.content-page .orbit-link:hover,
.content-page .orbit-link.is-active {
  color: #152033;
}

.content-page .eyebrow,
.content-page .resource-kicker,
.content-page .product-type {
  color: rgba(21, 32, 51, 0.48);
}

.content-page .editorial-main,
.content-page .shop-main,
.content-page .support-main,
.content-page .page-footer,
.content-page .hero-copy h1,
.content-page .shop-hero h1,
.content-page .support-hero h1,
.content-page .story-closing h2,
.content-page .collection-copy h2,
.content-page .shop-manifesto h2,
.content-page .waitlist-card h2,
.content-page .urgent-copy h2,
.content-page .section-heading h2,
.content-page .resource-description h3,
.content-page .gentle-steps h2,
.content-page .story-rail p,
.content-page .pull-quote p {
  color: #152033;
}

.content-page .editorial-hero,
.content-page .collection-grid,
.content-page .waitlist-card,
.content-page .gentle-steps,
.content-page .resource-list,
.content-page .resource-row,
.content-page .story-closing,
.content-page .page-footer {
  border-color: rgba(21, 32, 51, 0.1);
}

.content-page .hero-index,
.content-page .resource-number,
.content-page .celestial-number {
  color: rgba(21, 32, 51, 0.26);
}

.content-page .hero-copy h1 em,
.content-page .shop-hero h1 em,
.content-page .support-hero h1 em,
.content-page .print-frame em {
  color: rgba(77, 92, 128, 0.72);
}

.content-page .hero-deck,
.content-page .shop-hero-note p,
.content-page .support-hero > p:last-child,
.content-page .story-copy > p,
.content-page .collection-copy > p,
.content-page .resource-description p,
.content-page .shop-manifesto > p:last-child,
.content-page .urgent-copy > p:last-child,
.content-page .support-disclaimer,
.content-page .waitlist-message,
.content-page .page-footer,
.content-page .page-footer p,
.content-page .page-footer > span,
.content-page .visual-caption,
.content-page .product-meta,
.content-page .collection-copy .product-type {
  color: rgba(21, 32, 51, 0.62);
}

.content-page .story-copy .story-lead {
  color: #111b2d;
}

.content-page .rail-line {
  background: linear-gradient(180deg, rgba(21, 32, 51, 0.2), transparent);
}

.content-page .story-rail small,
.content-page .support-disclaimer strong,
.content-page .page-footer a {
  color: rgba(21, 32, 51, 0.76);
}

.content-page .rail-star,
.content-page .manifesto-star,
.content-page .closing-orbit,
.content-page .closing-orbit::after,
.content-page .urgent-mark {
  border-color: rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.32);
}

.content-page .inline-link,
.content-page .resource-link {
  border-color: rgba(21, 32, 51, 0.18);
  color: rgba(21, 32, 51, 0.76);
}

.content-page .inline-link:hover,
.content-page .resource-link:hover {
  border-color: rgba(21, 32, 51, 0.32);
  color: #152033;
}

.content-page .product-visual {
  box-shadow: inset 0 0 0 1px rgba(21, 32, 51, 0.07), 0 24px 70px rgba(20, 33, 52, 0.08);
}

.content-page .waitlist-form input {
  border-bottom-color: rgba(21, 32, 51, 0.18);
  color: #152033;
}

.content-page .waitlist-form input::placeholder {
  color: rgba(21, 32, 51, 0.34);
}

.content-page .waitlist-form button {
  border-bottom-color: rgba(21, 32, 51, 0.28);
  color: rgba(21, 32, 51, 0.76);
}

.content-page .urgent-support {
  border-color: rgba(215, 191, 138, 0.3);
  background: radial-gradient(circle at 0% 0%, rgba(215, 191, 138, 0.12), transparent 34%), rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 60px rgba(20, 33, 52, 0.08);
}

.content-page .resource-action {
  border-color: rgba(21, 32, 51, 0.12);
  color: rgba(21, 32, 51, 0.72);
  background: rgba(255, 255, 255, 0.44);
}

.content-page .resource-action:hover {
  border-color: rgba(21, 32, 51, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: #152033;
}

.content-page .resource-action-primary {
  border-color: #172846;
  background: #172846;
  color: #f6f2ea;
}

.content-page .resource-action-primary:hover {
  background: #101f39;
  color: #f6f2ea;
}


.story-simple-main {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.story-simple {
  width: 100%;
}

.story-simple-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.story-simple-copy p {
  max-width: 740px;
  margin: 0 auto 30px;
  color: rgba(21, 32, 51, 0.66);
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.46;
}

.story-simple-copy .story-simple-lead {
  color: #111b2d;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.story-simple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 26px;
  border: 1px solid rgba(21, 32, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #152033;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.story-simple-button:hover {
  border-color: rgba(21, 32, 51, 0.28);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}


.page-simple-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.page-simple-intro h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.94;
  color: #152033;
}

.page-simple-intro h1 em {
  color: rgba(77, 92, 128, 0.72);
  font-weight: 400;
}

.shop-page .shop-object-intro {
  max-width: 1200px;
}

.shop-page .shop-object-intro h1 {
  white-space: nowrap;
  font-size: clamp(18px, 5vw, 72px);
}

.page-simple-intro p,
.page-simple-note p,
.waitlist-card-simple > div > p,
.support-simple-copy p,
.support-simple-note .support-simple-phrases p {
  margin: 0;
  color: rgba(21, 32, 51, 0.66);
  font-size: 15px;
  line-height: 1.9;
}

.shop-simple-main,
.support-simple-main {
  padding-top: 136px;
}

.shop-simple-main {
  padding-bottom: 10px;
}

.support-simple-main {
  padding-bottom: 72px;
}

.shop-page .page-footer,
.support-page .page-footer {
  padding-top: 12px;
}

.shop-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.shop-simple-card {
  display: grid;
  gap: 18px;
}

.shop-simple-card .product-visual {
  min-height: 390px;
}

.shop-simple-copy {
  display: grid;
  gap: 8px;
}

.shop-simple-copy h2,
.support-simple-copy h3,
.simple-section-heading h2,
.support-simple-note h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #152033;
}

.shop-simple-copy h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.02;
}

.simple-meta {
  margin: 0;
  color: rgba(21, 32, 51, 0.5);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-simple-note {
  max-width: 780px;
  margin: 58px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(21, 32, 51, 0.1);
  text-align: center;
}

.waitlist-card-simple {
  margin-top: 42px;
}

.waitlist-card-simple > div {
  display: grid;
  gap: 10px;
}

.waitlist-card-simple h2 {
  margin: 0;
}

.support-simple-main {
  display: grid;
  gap: 34px;
}

.urgent-support-simple {
  margin-top: 12px;
}

.support-simple-section {
  display: grid;
  gap: 24px;
}

.simple-section-heading h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.04;
}

.support-simple-list {
  display: grid;
  gap: 14px;
}

.support-simple-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid rgba(21, 32, 51, 0.1);
}

.support-simple-row:last-child {
  border-bottom: 1px solid rgba(21, 32, 51, 0.1);
}

.support-simple-copy {
  display: grid;
  gap: 7px;
}

.support-simple-copy h3 {
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.02;
}

.support-simple-note {
  text-align: left;
}

.support-simple-note h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
}

.support-simple-phrases {
  display: grid;
  gap: 14px;
}

.support-simple-phrases p {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21, 32, 51, 0.1);
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.3;
}

.support-simple-phrases p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.support-disclaimer-simple {
  margin-top: 6px;
}

.content-page .support-disclaimer.support-disclaimer-simple {
  width: 100%;
  max-width: none;
  margin: 6px 0 0;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.content-page .support-disclaimer.support-disclaimer-simple p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.content-page .step-phrases p {
  border-bottom-color: rgba(21, 32, 51, 0.1);
  color: rgba(21, 32, 51, 0.76);
}

.page-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-atmosphere > span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(239, 241, 255, 0.5);
  box-shadow:
    11vw 12vh 0 rgba(239, 241, 255, 0.25),
    28vw 6vh 0 rgba(239, 241, 255, 0.34),
    44vw 28vh 0 rgba(239, 241, 255, 0.2),
    68vw 13vh 0 rgba(239, 241, 255, 0.3),
    88vw 34vh 0 rgba(239, 241, 255, 0.18),
    18vw 58vh 0 rgba(239, 241, 255, 0.19),
    51vw 71vh 0 rgba(239, 241, 255, 0.24),
    78vw 82vh 0 rgba(239, 241, 255, 0.2),
    92vw 66vh 0 rgba(239, 241, 255, 0.22);
  opacity: 0.56;
}

.page-atmosphere > span:nth-child(1) { top: 10vh; left: 4vw; }
.page-atmosphere > span:nth-child(2) { top: 42vh; left: 38vw; transform: scale(0.7); }
.page-atmosphere > span:nth-child(3) { top: 73vh; left: 12vw; transform: scale(0.5); }

.content-top-rail {
  position: absolute;
}

.editorial-main,
.shop-main,
.support-main,
.page-footer {
  position: relative;
  z-index: 5;
}

.editorial-main,
.shop-main,
.support-main {
  width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
  padding: 155px 0 150px;
}

.editorial-hero {
  display: grid;
  min-height: 440px;
  grid-template-columns: 80px minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-index {
  align-self: start;
  padding-top: 13px;
  color: rgba(245, 241, 233, 0.25);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.hero-copy h1,
.shop-hero h1,
.support-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 7.2vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.79;
}

.hero-copy h1 em,
.shop-hero h1 em,
.support-hero h1 em {
  color: rgba(221, 218, 234, 0.75);
  font-weight: 400;
}

.hero-deck {
  max-width: 340px;
  margin: 0 0 8px;
  color: rgba(245, 241, 233, 0.5);
  font-size: 14px;
  line-height: 1.85;
}

.story-reading {
  display: grid;
  grid-template-columns: minmax(200px, 0.46fr) minmax(0, 1fr);
  gap: clamp(50px, 10vw, 150px);
  padding: 110px 0 0;
}

.story-rail {
  position: sticky;
  top: 80px;
  align-self: start;
  max-width: 210px;
}

.rail-star {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 12px;
}

.story-rail p {
  margin: 25px 0 24px;
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  line-height: 1.15;
}

.rail-line {
  width: 1px;
  height: 76px;
  margin: 0 0 23px 20px;
  background: linear-gradient(180deg, rgba(245, 241, 233, 0.24), transparent);
}

.story-rail small {
  display: block;
  color: rgba(245, 241, 233, 0.34);
  font-size: 8px;
  letter-spacing: 0.15em;
  line-height: 1.8;
  text-transform: uppercase;
}

.story-copy {
  max-width: 760px;
}

.story-copy > p {
  max-width: 650px;
  margin: 0 0 37px;
  color: rgba(245, 241, 233, 0.64);
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.45;
}

.story-copy .story-lead {
  color: rgba(245, 241, 233, 0.92);
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.pull-quote {
  position: relative;
  max-width: 700px;
  margin: 90px 0 92px;
  padding: 45px 0 42px 72px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.pull-quote > span {
  position: absolute;
  top: 28px;
  left: 0;
  color: rgba(215, 191, 138, 0.7);
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
}

.pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(37px, 5vw, 60px);
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.story-closing {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 35px;
  margin-top: 100px;
  padding-top: 70px;
  border-top: 1px solid var(--line-soft);
}

.closing-orbit {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(235, 238, 255, 0.12);
  border-radius: 50%;
}

.closing-orbit::after {
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(235, 238, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.closing-orbit i {
  color: var(--gold);
  font-style: normal;
}

.story-closing p {
  margin: 0 0 8px;
  color: rgba(245, 241, 233, 0.42);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-closing h2 {
  max-width: 520px;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.inline-link,
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 241, 233, 0.22);
  color: rgba(245, 241, 233, 0.72);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease;
}

.inline-link span,
.resource-link span {
  color: var(--gold);
  transition: transform 260ms var(--ease-premium);
}

.inline-link:hover,
.resource-link:hover {
  border-color: rgba(245, 241, 233, 0.66);
  color: var(--ink);
}

.inline-link:hover span,
.resource-link:hover span {
  transform: translateX(4px);
}

/* Shop */
.shop-main {
  padding-top: 155px;
}

.shop-hero {
  display: grid;
  min-height: 455px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.5fr);
  align-items: end;
  gap: 80px;
  padding-bottom: 70px;
}

.shop-hero-note {
  margin-bottom: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.shop-hero-note > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.shop-hero-note p {
  margin: 18px 0 0;
  color: rgba(245, 241, 233, 0.48);
  font-size: 13px;
  line-height: 1.8;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px 30px;
  padding-top: 70px;
  border-top: 1px solid var(--line-soft);
}

.collection-item-featured {
  grid-column: 1 / -1;
}

.collection-item-featured .product-visual {
  min-height: 670px;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 455px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(146, 134, 181, 0.15), transparent 35%),
    linear-gradient(145deg, rgba(24, 41, 69, 0.86), rgba(8, 17, 31, 0.98));
  box-shadow: inset 0 0 0 1px rgba(235, 238, 255, 0.07);
}

.product-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.035), transparent 30%, transparent 70%, rgba(255,255,255,0.015));
  content: "";
  pointer-events: none;
}

.collection-item:hover .product-visual > :not(.celestial-number):not(.visual-caption) {
  transform: translateY(-4px) scale(1.012);
}

.celestial-number {
  position: absolute;
  top: 28px;
  left: 30px;
  color: rgba(245, 241, 233, 0.24);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

.visual-caption {
  position: absolute;
  right: 30px;
  bottom: 24px;
  color: rgba(245, 241, 233, 0.26);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fabric-shadow,
.print-shadow {
  position: absolute;
  width: 46%;
  height: 24%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(35px);
  transform: translateY(140px);
  transition: transform 700ms var(--ease-premium);
}

.sweatshirt-shape {
  position: relative;
  display: grid;
  width: min(420px, 64%);
  aspect-ratio: 1.24;
  place-items: center;
  border-radius: 18% 18% 9% 9% / 15% 15% 8% 8%;
  background: linear-gradient(145deg, #202a3d, #111a2a 64%, #0c1421);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.34), inset 0 0 55px rgba(255,255,255,0.025);
  transition: transform 700ms var(--ease-premium);
}

.sweatshirt-shape::before,
.sweatshirt-shape::after {
  position: absolute;
  z-index: -1;
  top: 7%;
  width: 30%;
  height: 74%;
  border-radius: 50% 20% 18% 18%;
  background: linear-gradient(150deg, #1d2739, #0f1827);
  content: "";
}

.sweatshirt-shape::before {
  left: -21%;
  transform: rotate(16deg);
}

.sweatshirt-shape::after {
  right: -21%;
  transform: rotate(-16deg) scaleX(-1);
}

.sweatshirt-neck {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 25%;
  height: 15%;
  border-radius: 0 0 50% 50%;
  background: #0e1725;
  transform: translateX(-50%);
}

.sweatshirt-copy {
  font-size: clamp(11px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: 0.25em;
  line-height: 1.55;
  text-align: center;
}

.sweatshirt-shape i {
  position: absolute;
  right: 20%;
  bottom: 24%;
  color: var(--gold);
  font-size: 9px;
  font-style: normal;
}

.journal-stack {
  position: absolute;
  width: min(260px, 52%);
  aspect-ratio: 0.72;
  border-radius: 3px;
  transition: transform 700ms var(--ease-premium);
}

.journal-back {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #d9d4c8;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.3);
  transform: translate(22px, 14px) rotate(5deg);
}

.journal-front {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1a2841, #0b1527);
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.journal-front span {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-style: italic;
  line-height: 0.9;
  text-align: center;
}

.journal-front i {
  position: absolute;
  bottom: 18%;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
}

.print-frame {
  position: relative;
  display: grid;
  width: min(300px, 58%);
  aspect-ratio: 0.76;
  place-items: center;
  border: 11px solid #171b21;
  background:
    radial-gradient(circle at 62% 30%, rgba(153, 143, 187, 0.18), transparent 28%),
    linear-gradient(180deg, #15233d, #07101e);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 700ms var(--ease-premium);
}

.print-frame::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(239, 241, 255, 0.1);
  content: "";
}

.print-frame span {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.73;
  text-align: center;
}

.print-frame em {
  color: rgba(227, 222, 236, 0.75);
}

.print-frame i {
  position: absolute;
  top: 19%;
  right: 24%;
  color: var(--gold);
  font-size: 9px;
  font-style: normal;
}

.collection-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 30px;
  padding-top: 22px;
}

.collection-copy .product-type {
  grid-column: 1 / -1;
  color: rgba(245, 241, 233, 0.34);
}

.collection-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.collection-copy > p {
  grid-column: 1;
  max-width: 520px;
  margin: 2px 0 0;
  color: rgba(245, 241, 233, 0.45);
  font-size: 12px;
  line-height: 1.7;
}

.product-meta {
  display: flex;
  grid-column: 2;
  grid-row: 2 / 4;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: rgba(245, 241, 233, 0.3);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-meta span:last-child {
  color: var(--gold);
}

.shop-manifesto {
  max-width: 810px;
  margin: 180px auto 130px;
  text-align: center;
}

.manifesto-star {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
}

.shop-manifesto h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

.shop-manifesto > p:last-child {
  max-width: 590px;
  margin: 0 auto;
  color: rgba(245, 241, 233, 0.46);
  font-size: 13px;
  line-height: 1.8;
}

.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 60px;
  padding: 50px 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.waitlist-card h2 {
  max-width: 560px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.waitlist-form input {
  height: 52px;
  padding: 0 3px;
}

.waitlist-form button {
  display: inline-flex;
  height: 52px;
  align-items: center;
  gap: 20px;
  padding: 0 4px 0 28px;
  border: 0;
  border-bottom: 1px solid rgba(235, 238, 255, 0.36);
  background: transparent;
  color: rgba(245, 241, 233, 0.76);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.waitlist-form button span {
  color: var(--gold);
}

.waitlist-message {
  grid-column: 2;
  min-height: 0;
  margin: 10px 0 0;
  color: rgba(215, 191, 138, 0.72);
  font-size: 9px;
}

.waitlist-message:empty {
  display: none;
}

/* Support page */
.support-main {
  padding-top: 155px;
}

.support-atmosphere {
  background: radial-gradient(circle at 50% 10%, rgba(146, 134, 181, 0.08), transparent 40%);
}

.support-hero {
  display: grid;
  min-height: 455px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.5fr);
  align-items: end;
  gap: 75px;
  padding-bottom: 70px;
}

.support-hero .eyebrow,
.support-hero h1 {
  grid-column: 1;
}

.support-hero h1 {
  margin-top: 0;
}

.support-hero > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  max-width: 370px;
  margin: 0 0 10px;
  color: rgba(245, 241, 233, 0.52);
  font-size: 14px;
  line-height: 1.9;
}

.urgent-support {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(210px, 0.36fr);
  gap: 40px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(215, 191, 138, 0.25);
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 191, 138, 0.08), transparent 34%),
    rgba(15, 27, 46, 0.58);
  box-shadow: var(--shadow-soft);
}

.urgent-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(215, 191, 138, 0.3);
  border-radius: 50%;
  color: var(--gold);
}

.urgent-copy h2 {
  max-width: 680px;
  margin: 8px 0 11px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.urgent-copy > p:last-child {
  margin: 0;
  color: rgba(245, 241, 233, 0.46);
  font-size: 11px;
}

.urgent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid rgba(235, 238, 255, 0.1);
  color: rgba(245, 241, 233, 0.64);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.resource-action span {
  color: var(--gold);
}

.resource-action:hover {
  border-color: rgba(235, 238, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.resource-action-primary {
  border-color: rgba(245, 241, 233, 0.7);
  background: var(--ink);
  color: var(--midnight-950);
}

.resource-action-primary:hover {
  background: #fffdf7;
  color: var(--midnight-950);
}

.resources-section {
  padding-top: 135px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  padding-bottom: 55px;
}

.section-heading h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

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

.resource-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 35px;
  min-height: 205px;
  padding: 35px 0;
  border-bottom: 1px solid var(--line-soft);
}

.resource-number {
  align-self: start;
  padding-top: 4px;
  color: rgba(245, 241, 233, 0.24);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.resource-description h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.resource-description p {
  max-width: 650px;
  margin: 0;
  color: rgba(245, 241, 233, 0.44);
  font-size: 12px;
  line-height: 1.75;
}

.resource-link {
  white-space: nowrap;
}

.gentle-steps {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 90px;
  margin-top: 145px;
  padding: 75px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gentle-steps h2 {
  max-width: 520px;
  margin: 11px 0 0;
  font-family: var(--serif);
  font-size: clamp(45px, 6vw, 70px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.step-phrases {
  align-self: end;
}

.step-phrases p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(245, 241, 233, 0.68);
  font-family: var(--serif);
  font-size: clamp(23px, 2.7vw, 32px);
  font-style: italic;
  line-height: 1.25;
}

.step-phrases p:first-child {
  padding-top: 0;
}

.step-phrases p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.support-disclaimer {
  display: flex;
  max-width: 850px;
  align-items: flex-start;
  gap: 22px;
  margin: 75px auto 0;
  color: rgba(245, 241, 233, 0.4);
  font-size: 10px;
  line-height: 1.8;
}

.support-disclaimer > span {
  flex: 0 0 auto;
  color: var(--gold);
}

.support-disclaimer p {
  margin: 0;
}

.support-disclaimer strong {
  color: rgba(245, 241, 233, 0.7);
  font-weight: 600;
}

/* Footer */
.page-footer {
  display: grid;
  width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding: 38px 0 118px;
  border-top: 1px solid var(--line-soft);
  color: rgba(245, 241, 233, 0.3);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-footer a {
  color: rgba(245, 241, 233, 0.6);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

.page-footer p {
  margin: 0;
  text-align: center;
}

.page-footer > span {
  text-align: right;
}

/* Reveal motion */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 900ms var(--ease-premium);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page transition */
.page-transition {
  position: fixed;
  z-index: 1700;
  inset: 0;
  visibility: hidden;
  overflow: hidden;
  background: var(--midnight-950);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.page-transition.is-leaving,
.page-transition.is-arriving {
  visibility: visible;
}

.page-transition.is-leaving {
  pointer-events: auto;
  animation: transition-cover 760ms var(--ease-premium) both;
}

.page-transition.is-arriving {
  animation: transition-reveal 820ms var(--ease-premium) both;
}

.transition-sky {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 56% 42%, rgba(117, 104, 156, 0.12), transparent 34%),
    linear-gradient(180deg, #07101f 0%, #050b16 100%);
}

/* Let the night resolve into paper before a light page loads. This avoids the
   eye-jolt of replacing a fully dark transition with cream in one frame. */
.transition-sky::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 4%, rgba(130, 119, 170, 0.20), transparent 30%),
    radial-gradient(circle at 10% 18%, rgba(109, 132, 171, 0.16), transparent 26%),
    linear-gradient(180deg, #f2f0ea 0%, #ece9e2 48%, #e4e0d8 100%);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.page-transition.is-leaving.to-content .transition-sky::after {
  animation: transition-to-paper 760ms var(--ease-premium) both;
}

.page-transition.is-leaving.from-content.to-content .transition-sky::after {
  opacity: 1;
  animation: none;
}

.transition-meteor {
  position: absolute;
  z-index: 2;
  top: 67%;
  left: 0;
  width: clamp(170px, 24vw, 340px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 249, 230, 0.2) 34%, rgba(255, 249, 230, 0.82) 82%, #ffffff 100%);
  box-shadow: 0 0 10px rgba(244, 231, 202, 0.3);
  opacity: 0;
  transform-origin: right center;
  will-change: transform, opacity;
}

.transition-meteor::after {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fffdf6;
  box-shadow: 0 0 9px rgba(255, 247, 222, 0.9), 0 0 20px rgba(215, 191, 138, 0.42);
  content: "";
  transform: translateY(-50%);
}

.page-transition.is-leaving .transition-meteor {
  animation: meteor-depart 760ms 20ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

.page-transition.is-arriving .transition-meteor {
  animation: meteor-arrive 690ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

.page-is-leaving > *:not(.page-transition) {
  opacity: 0.42;
  transition: opacity 420ms ease;
}

/* Animations */
@keyframes mouse-wheel {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(6px); }
}

@keyframes meteor-cross {
  0% { opacity: 0; transform: rotate(-28deg) translateX(-240px); }
  14% { opacity: 1; }
  75% { opacity: 0.8; }
  100% { opacity: 0; transform: rotate(-28deg) translateX(110vw); }
}

@keyframes meteor-cross-small {
  0% { opacity: 0; transform: rotate(-28deg) translateX(-200px) scale(0.6); }
  15% { opacity: 0.8; }
  100% { opacity: 0; transform: rotate(-28deg) translateX(80vw) scale(0.6); }
}

@keyframes spark-in {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 0.8; }
  100% { opacity: 0.28; transform: scale(1); }
}

@keyframes transition-cover {
  0% { opacity: 0; }
  54%, 100% { opacity: 1; }
}

@keyframes transition-reveal {
  0%, 30% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes transition-to-paper {
  0%, 55% { opacity: 0; }
  94%, 100% { opacity: 1; }
}

@keyframes meteor-depart {
  0% { opacity: 0; transform: translate3d(-32vw, 18vh, 0) rotate(-27deg); }
  14% { opacity: 1; }
  82% { opacity: 0.92; }
  100% { opacity: 0; transform: translate3d(118vw, -50vh, 0) rotate(-27deg); }
}

@keyframes meteor-arrive {
  0% { opacity: 0.9; transform: translate3d(42vw, -18vh, 0) rotate(-27deg); }
  76% { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(122vw, -54vh, 0) rotate(-27deg); }
}

/* Tablet */
@media (max-width: 980px) {
  .editorial-hero {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .hero-deck {
    grid-column: 2;
    max-width: 520px;
  }

  .story-reading {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 50px;
  }

  .shop-hero,
  .support-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: 0;
  }

  .support-hero .eyebrow,
  .support-hero h1,
  .support-hero > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .support-hero > p:last-child {
    max-width: 560px;
  }

  .urgent-support {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .urgent-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .gentle-steps {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .story-simple-main {
    min-height: auto;
  }

  .story-simple-copy p {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .story-simple-copy .story-simple-lead {
    font-size: 32px;
  }

  .story-simple-button {
    min-height: 46px;
    padding: 0 22px;
  }


  .entry-blurb {
    max-width: 300px;
    font-size: 11px;
    line-height: 1.7;
  }

  .page-simple-intro h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .page-simple-intro p,
  .page-simple-note p,
  .waitlist-card-simple > div > p,
  .support-simple-copy p {
    font-size: 14px;
  }

  .shop-simple-main,
  .support-simple-main {
    padding-top: 112px;
  }

  .shop-simple-main {
    padding-bottom: 8px;
  }

  .support-simple-main {
    padding-bottom: 48px;
  }

  .shop-simple-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 42px;
  }

  .shop-simple-card .product-visual {
    min-height: 420px;
  }

  .page-simple-note,
  .waitlist-card-simple {
    margin-top: 28px;
  }

  .support-simple-main {
    gap: 26px;
  }

  .support-simple-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding: 22px 0;
  }

  .support-simple-copy h3 {
    font-size: 28px;
  }

  .simple-section-heading h2,
  .support-simple-note h2 {
    font-size: 34px;
  }

  .support-simple-phrases p {
    font-size: 22px;
  }

  :root {
    --page-gutter: 22px;
  }

  body {
    font-size: 14px;
  }

  .top-rail {
    padding-top: 19px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .quiet-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 8px;
  }

  .orbit-nav {
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 8px));
    width: calc(100vw - 20px);
  }

  .orbit-shell {
    grid-template-columns: 1fr 52px 1fr;
  }

  .orbit-shell::before,
  .orbit-toggle {
    width: 52px;
    height: 52px;
  }

  .orbit-link {
    height: 52px;
    padding: 0 4px;
    font-size: 8px;
    letter-spacing: 0.09em;
  }

  .orbit-link::after {
    bottom: 9px;
  }

  .experience {
    min-height: 560px;
  }

  .intro {
    top: 46%;
    width: min(520px, calc(100vw - 36px));
    transform: translateY(-50%);
  }

  .intro::before {
    top: -30px;
    height: 16px;
  }

  .intro h1 {
    margin-top: 14px;
    font-size: clamp(40px, 13vw, 62px);
    line-height: 0.85;
  }

  .intro-copy {
    max-width: 340px;
    font-size: 11px;
    line-height: 1.7;
  }

  .text-button {
    margin-top: 25px;
    font-size: 8px;
  }

  .sky-hud {
    right: 18px;
    bottom: 94px;
  }

  .control-label,
  .constellation-counter {
    display: none;
  }

  .explore-hint {
    right: 18px;
    bottom: 91px;
    left: 18px;
    justify-content: flex-start;
    font-size: 7px;
    letter-spacing: 0.07em;
  }

  .story-card {
    top: auto;
    right: 12px;
    bottom: 78px;
    left: 12px;
    width: auto;
    max-height: calc(100svh - 118px);
    overflow-y: auto;
    padding: 32px 24px 24px;
    transform: translateY(18px) scale(0.98);
  }

  .story-card.is-open {
    transform: translateY(0) scale(1);
  }

  .story-card blockquote {
    font-size: 30px;
  }

  .story-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    align-items: end;
  }

  .panel-sheet {
    width: 100%;
    max-height: calc(100svh - 12px);
    padding: 38px 21px 35px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .panel-sheet h2 {
    font-size: 44px;
  }

  .panel-intro {
    font-size: 11px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toast {
    top: 72px;
    min-width: calc(100vw - 28px);
  }

  .editorial-main,
  .shop-main,
  .support-main {
    width: calc(100% - 2 * var(--page-gutter));
    padding-top: 112px;
    padding-bottom: 105px;
  }

  .editorial-hero {
    min-height: 360px;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 20px;
    padding-bottom: 52px;
  }

  .hero-index {
    display: none;
  }

  .hero-copy h1,
  .shop-hero h1,
  .support-hero h1 {
    font-size: clamp(48px, 14vw, 66px);
    line-height: 0.82;
  }

  .hero-deck {
    grid-column: 1;
    margin-top: 15px;
    font-size: 12px;
  }

  .story-reading {
    grid-template-columns: 1fr;
    gap: 65px;
    padding-top: 70px;
  }

  .story-rail {
    position: relative;
    top: 0;
    max-width: 100%;
  }

  .rail-line {
    height: 45px;
  }

  .story-copy > p {
    font-size: 23px;
  }

  .story-copy .story-lead {
    font-size: 34px;
  }

  .pull-quote {
    margin: 65px 0;
    padding: 38px 0 35px 45px;
  }

  .pull-quote > span {
    font-size: 58px;
  }

  .pull-quote p {
    font-size: 38px;
  }

  .story-closing {
    grid-template-columns: 1fr;
    margin-top: 70px;
    padding-top: 50px;
  }

  .closing-orbit {
    width: 80px;
    height: 80px;
  }

  .shop-hero,
  .support-hero {
    padding-bottom: 45px;
  }

  .shop-hero-note {
    max-width: 480px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 45px;
  }

  .collection-item-featured {
    grid-column: auto;
  }

  .collection-item-featured .product-visual,
  .product-visual {
    min-height: 430px;
  }

  .sweatshirt-shape {
    width: 63%;
  }

  .collection-copy {
    grid-template-columns: 1fr;
  }

  .collection-copy > p,
  .product-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: row;
    margin-top: 8px;
  }

  .shop-manifesto {
    margin: 120px auto 95px;
  }

  .waitlist-card {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 42px 0 30px;
  }

  .waitlist-message {
    grid-column: 1;
  }

  .urgent-support {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 22px;
  }

  .urgent-mark {
    width: 50px;
    height: 50px;
  }

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

  .resources-section {
    padding-top: 95px;
  }

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

  .resource-row {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 17px;
    min-height: 0;
    padding: 35px 0;
  }

  .resource-description h3 {
    font-size: 34px;
  }

  .resource-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .gentle-steps {
    margin-top: 95px;
    padding: 55px 0;
  }

  .step-phrases p {
    font-size: 24px;
  }

  .support-disclaimer {
    margin-top: 55px;
  }

  .page-footer {
    width: calc(100% - 2 * var(--page-gutter));
    grid-template-columns: 1fr auto;
    padding-bottom: 94px;
  }

  .page-footer p {
    display: none;
  }
}

@media (max-width: 430px) {
  .quiet-cta {
    max-width: 43px;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .quiet-cta span {
    margin: 0;
    font-size: 12px;
  }

  .orbit-link {
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .collection-item-featured .product-visual,
  .product-visual {
    min-height: 380px;
  }

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

  .waitlist-form button {
    justify-content: space-between;
    padding-left: 0;
  }
}

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

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

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


@media (prefers-reduced-motion: reduce) {
  .entry-gate.is-ready .entry-kicker,
  .entry-gate.is-ready h1,
  .entry-gate.is-ready .entry-blurb,
  .entry-gate.is-ready .entry-button,
  .entry-gate.is-ready .entry-portal,
  .entry-gate.is-opening,
  .entry-gate.is-opening .entry-gate-inner > :not(.entry-portal),
  .entry-gate.is-opening .entry-portal,
  .page-transition.is-leaving,
  .page-transition.is-arriving,
  .page-transition.is-leaving .transition-meteor,
  .page-transition.is-arriving .transition-meteor {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }

  .entry-locked .experience,
  .entry-revealing .experience {
    opacity: 1;
    clip-path: none;
    transform: none;
    filter: none;
  }
}


/* Shared-sky count — compact, intentional ending for the shop page */
.shop-page .shop-simple-main {
  padding-bottom: 28px;
}

.shared-sky-count {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 9px;
  overflow: hidden;
  padding: 38px 24px 30px;
  text-align: center;
}

.shared-sky-count-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 186px;
  aspect-ratio: 1;
  border: 1px solid rgba(190, 153, 81, 0.34);
  border-right-color: transparent;
  border-bottom-color: rgba(190, 153, 81, 0.12);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.shared-sky-count-orbit::after {
  position: absolute;
  inset: 13px;
  border: 1px dotted rgba(190, 153, 81, 0.2);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
}

.shared-sky-count-star {
  position: absolute;
  color: rgba(190, 153, 81, 0.72);
  font-style: normal;
  line-height: 1;
}

.shared-sky-count-star-large {
  top: 12px;
  left: 18px;
  font-size: 21px;
  transform: rotate(22deg);
}

.shared-sky-count-star-small {
  right: 7px;
  bottom: 28px;
  font-size: 9px;
  transform: rotate(22deg);
}

.shared-sky-count-number,
.shared-sky-count-label {
  position: relative;
  z-index: 1;
}

.shared-sky-count-number {
  color: #152033;
  font-family: var(--serif);
  font-size: clamp(58px, 6vw, 82px);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.shared-sky-count-label {
  max-width: 220px;
  color: rgba(21, 32, 51, 0.54);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.55;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .shop-page .shop-simple-main {
    padding-bottom: 18px;
  }

  .shared-sky-count {
    min-height: 184px;
    padding: 32px 16px 24px;
  }

  .shared-sky-count-orbit {
    width: 158px;
  }
}


/* Support page refinements — balanced prompt section and consistent crisis actions */
.support-page .urgent-actions .resource-action {
  border-color: rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.44);
  color: rgba(21, 32, 51, 0.72);
}

.support-page .urgent-actions .resource-action:hover {
  border-color: rgba(21, 32, 51, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: #152033;
}

.support-page .support-simple-note {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(48px, 8vw, 112px);
  margin: 54px 0 0;
  padding: clamp(46px, 6vw, 76px) 0;
  border-top: 1px solid rgba(21, 32, 51, 0.1);
  border-bottom: 1px solid rgba(21, 32, 51, 0.1);
  text-align: left;
}

.support-page .support-simple-note h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.support-page .support-simple-phrases {
  display: grid;
  gap: 0;
}

.support-page .support-simple-phrases p {
  margin: 0;
  padding: 23px 0;
  border-bottom: 1px solid rgba(21, 32, 51, 0.1);
  font-size: clamp(22px, 2.45vw, 29px);
  line-height: 1.32;
}

.support-page .support-simple-phrases p:first-child {
  padding-top: 2px;
}

.support-page .support-simple-phrases p:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

@media (max-width: 820px) {
  .support-page .support-simple-note {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
    padding: 42px 0;
  }

  .support-page .support-simple-note h2 {
    max-width: 650px;
    font-size: clamp(38px, 9vw, 52px);
  }

  .support-page .support-simple-phrases p {
    padding: 20px 0;
    font-size: clamp(21px, 5.4vw, 26px);
  }
}


/* ===== July 28 refinements: letter About, unified sparkle marks, nav hint ===== */
.brand-mark.brand-sparkle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  backdrop-filter: none;
}

.brand-mark.brand-sparkle::before,
.brand-mark.brand-sparkle::after {
  display: none;
  content: none;
}

.content-page .brand-mark.brand-sparkle {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold);
}

.orbit-explore-label {
  position: absolute;
  z-index: 3;
  top: -25px;
  left: 50%;
  color: rgba(245, 241, 233, 0.46);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-premium);
}

.orbit-nav.is-open .orbit-explore-label {
  opacity: 0;
  transform: translate(-50%, 6px);
}

.content-page .orbit-explore-label {
  color: rgba(21, 32, 51, 0.48);
}

.story-simple-main {
  display: block;
  min-height: auto;
  padding-top: 140px;
  padding-bottom: 110px;
}

.story-letter {
  width: 100%;
}

.story-simple-copy.story-letter-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.story-simple-copy.story-letter-copy p,
.story-simple-copy.story-letter-copy .story-simple-lead {
  max-width: none;
  margin: 0 0 18px;
  color: rgba(21, 32, 51, 0.72);
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.62;
  text-align: left;
}

.story-simple-copy.story-letter-copy p:first-child {
  margin-bottom: 18px;
  color: #152033;
  font-size: clamp(22px, 2vw, 27px);
}

.story-simple-copy.story-letter-copy em {
  color: #152033;
}

.story-letter-signoff {
  margin-top: 30px !important;
  color: #152033 !important;
}

.story-letter-copy .story-simple-button {
  margin-top: 12px;
}

.shop-simple-card .product-visual.product-placeholder {
  display: grid;
  min-height: 390px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(215, 191, 138, 0.09), transparent 27%),
    linear-gradient(145deg, rgba(24, 41, 69, 0.86), rgba(8, 17, 31, 0.98));
}

.product-placeholder-sparkle {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 28px rgba(215, 191, 138, 0.28);
}

@media (max-width: 720px) {
  .brand-mark.brand-sparkle {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .orbit-explore-label {
    top: -21px;
    font-size: 7px;
  }

  .story-simple-main {
    padding-top: 115px;
    padding-bottom: 90px;
  }

  .story-simple-copy.story-letter-copy p,
  .story-simple-copy.story-letter-copy .story-simple-lead {
    font-size: 17px;
    line-height: 1.58;
  }
}

.story-credit {
  margin: 18px 0 0;
  color: rgba(237, 240, 255, .7);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.story-credit[hidden] { display: none; }

/* Coming soon and stars posted during the current visit. */
.shop-coming-soon { min-height: 34vh; display: grid; place-content: center; text-align: center; }
.star-actions { display: flex; align-items: center; gap: 16px; }
.star-actions [hidden] { display: none; }
.session-sheet { padding-top: 64px; }
.session-star-list { list-style: none; padding: 0; margin: 24px 0; }
.session-star-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(235,238,255,.16); }
.session-star-list li span { overflow-wrap: anywhere; min-width: 0; }
.session-delete { flex-shrink: 0; padding: 8px 14px; border: 1px solid rgba(235,238,255,.3); border-radius: 6px; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.session-delete:disabled { opacity: .6; cursor: wait; }
#sessionStarStatus { font-size: 14px; line-height: 1.6; }
@media (max-width: 600px) {
  .star-actions { gap: 10px; }
  .star-actions .quiet-cta { font-size: 11px; padding: 10px 8px; }
}

.story-card { max-height: calc(100svh - 150px); overflow-y: auto; }
#reportStory { margin-top: 18px; }
#reportReason { width: 100%; padding: 12px; margin-bottom: 20px; color: #edf0ff; background: #111f36; border: 1px solid #637086; font: inherit; }
:focus-visible { outline: 1px solid rgba(237,240,255,.55); outline-offset: 3px; }
.session-star-list { font-size: 16px; }
.session-star-list li { flex-wrap: wrap; gap: 12px; }
.session-star-list li > span { flex: 1 1 140px; }

.toast { visibility: hidden; }
.toast.is-visible { visibility: visible; }

.safety-note, #submitBotStatus, #reportBotStatus { font-size: 14px; line-height: 1.6; color: rgba(237,240,255,.75); }
#submitBotCheck, #reportBotCheck { margin: 16px 0; min-width: 0; }

.entry-button:focus-visible { outline: none; box-shadow: none; border-color: rgba(245,241,233,.68); background: rgba(245,241,233,.045); }
.sky-load-status { max-width: min(420px, 80vw); margin-top: 12px; font-size: 14px; line-height: 1.5; text-transform: none; letter-spacing: normal; }
.sky-load-status[hidden] { display: none; }
#retrySky { margin-top: 8px; padding: 4px 10px; color: inherit; background: transparent; border: 1px solid rgba(237,240,255,.3); border-radius: 4px; font: inherit; cursor: pointer; }
.counter-status { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; letter-spacing: normal; text-transform: none; }
.counter-status[hidden] { display: none; }
.primary-button:disabled { opacity: .55; cursor: not-allowed; }
.constellation-counter .sky-load-status span { font-size: 14px; line-height: 1.5; letter-spacing: normal; text-transform: none; color: rgba(245,241,233,.8); }

/* Keep header actions readable on small screens; avoid the old icon-only cap. */
@media (max-width: 430px) {
  .star-actions .quiet-cta { max-width: none; overflow: visible; white-space: nowrap; font-size: 10px; letter-spacing: .04em; padding: 10px 9px; gap: 5px; }
  .star-actions { gap: 6px; }
}
#submitFeedback { font-size: 14px; line-height: 1.6; color: rgba(245,241,233,.9); margin: 12px 0; }
#submitFeedback:empty { display: none; }
#submitFeedback:focus { outline: none; box-shadow: none; }
/* No automatic outer ring on the entry button. Keyboard focus uses its border. */
#entryButton, #entryButton:focus, #entryButton:focus-visible { outline: none !important; box-shadow: none !important; }
#entryButton:focus-visible { border-color: rgba(245,241,233,.8); }

/* Quiet trust and privacy details, kept in the site's editorial language. */
.safety-note a { color: inherit; text-underline-offset: 3px; }
.sky-guidelines-link {
  position: fixed; z-index: 90; right: var(--page-gutter); bottom: 20px;
  color: rgba(245,241,233,.48); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; transition: color 220ms ease;
}
.sky-guidelines-link:hover { color: rgba(245,241,233,.86); }
.page-footer .footer-policy-link { grid-column: 1 / -1; justify-self: center; color: inherit; font-family: var(--sans); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.page-footer .footer-policy-link:hover { opacity: .9; }
.guidelines-main { width: min(900px, calc(100% - 2 * var(--page-gutter))); margin: 0 auto; padding: 155px 0 120px; }
.guidelines-intro { max-width: 680px; margin-bottom: 72px; }
.guidelines-star { display: block; margin-bottom: 24px; color: var(--gold); font-size: 17px; }
.guidelines-intro h1 { margin: 14px 0 22px; font-family: var(--serif); font-size: clamp(42px, 7vw, 82px); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.guidelines-intro h1 em { color: #6f5f43; font-weight: 400; }
.guidelines-intro > p:last-child { max-width: 610px; color: rgba(21,32,51,.64); font-family: var(--serif); font-size: clamp(18px,2vw,22px); line-height: 1.55; }
.guidelines-sections { border-top: 1px solid rgba(21,32,51,.12); }
.guideline-row { display: grid; grid-template-columns: 58px 1fr; gap: 28px; padding: 34px 0 36px; border-bottom: 1px solid rgba(21,32,51,.1); }
.guideline-row > span { padding-top: 5px; color: rgba(21,32,51,.33); font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.guideline-row h2 { margin: 0 0 10px; color: #152033; font-family: var(--serif); font-size: clamp(23px,3vw,31px); font-weight: 400; }
.guideline-row p, .guidelines-note p { margin: 0; color: rgba(21,32,51,.66); font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.guidelines-note { max-width: 700px; margin: 58px 0 0 86px; padding-left: 24px; border-left: 1px solid rgba(172,139,75,.45); }
.guidelines-note a { color: #6f5f43; text-underline-offset: 4px; }
.session-star-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) {
  .sky-guidelines-link { right: 18px; bottom: max(96px, calc(env(safe-area-inset-bottom) + 86px)); font-size: 9px; }
  .guidelines-main { padding-top: 118px; padding-bottom: 95px; }
  .guidelines-intro { margin-bottom: 48px; }
  .guideline-row { grid-template-columns: 34px 1fr; gap: 14px; padding: 28px 0; }
  .guideline-row p, .guidelines-note p { font-size: 17px; }
  .guidelines-note { margin: 42px 0 0 48px; padding-left: 18px; }
}

/* ATLAS responsive UI patch — 2026-09-08
   Load AFTER styles.css and brand.css. */

/* Safer sizing everywhere. */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; }

/* Touch devices need touch-sized controls and touch-specific instructions. */
@media (pointer: coarse) {
  .icon-button,
  .orbit-toggle,
  .quiet-cta,
  .close-button,
  .next-story,
  .primary-button {
    min-height: 44px;
  }

  .explore-hint {
    font-size: 0;
  }

  .explore-hint .mouse-icon {
    display: none;
  }

  .explore-hint::after {
    content: "Drag to wander · pinch to zoom · tap a star";
    font-size: 8px;
    letter-spacing: 0.08em;
  }
}

/* Tablets and smaller laptops: give floating UI a little more breathing room. */
@media (max-width: 980px) {
  .top-rail {
    padding-right: max(22px, env(safe-area-inset-right));
    padding-left: max(22px, env(safe-area-inset-left));
  }

  .sky-hud {
    right: max(22px, env(safe-area-inset-right));
  }

  .story-card {
    right: max(22px, env(safe-area-inset-right));
  }
}

/* Main phone layout. Each floating item gets its own clear zone:
   header at top, hint above the dock, privacy left + controls right,
   navigation centered at the very bottom. */
@media (max-width: 720px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-nav-bottom: max(14px, env(safe-area-inset-bottom));
    --mobile-dock-bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
    --mobile-hint-bottom: max(146px, calc(env(safe-area-inset-bottom) + 134px));
  }

  html,
  body,
  .sky-page {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .experience {
    width: 100%;
    height: 100dvh;
    min-height: 0;
  }

  #sky {
    touch-action: none;
  }

  .top-rail {
    top: 0;
    padding:
      max(16px, calc(env(safe-area-inset-top) + 10px))
      max(var(--mobile-gutter), env(safe-area-inset-right))
      0
      max(var(--mobile-gutter), env(safe-area-inset-left));
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark.brand-sparkle {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 14px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1;
  }

  .brand-copy small {
    display: none;
  }

  .star-actions {
    min-width: 0;
    margin-left: auto;
    gap: 6px;
  }

  .star-actions .quiet-cta {
    min-height: 44px;
    padding: 0 13px;
    white-space: nowrap;
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  .star-actions .quiet-cta span {
    font-size: 11px;
  }

  /* Keep the compact controls above the navigation, on the right. */
  .sky-hud {
    position: fixed;
    right: max(var(--mobile-gutter), env(safe-area-inset-right));
    bottom: var(--mobile-dock-bottom);
    left: auto;
    z-index: 170;
  }

  .control-group {
    border-color: rgba(235, 238, 255, 0.16);
    background: rgba(7, 16, 31, 0.78);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(120%);
  }

  .icon-button {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  /* Privacy gets the opposite side of the same dock row, so it cannot
     collide with the zoom controls. */
  .sky-guidelines-link {
    right: auto;
    bottom: calc(var(--mobile-dock-bottom) + 13px);
    left: max(var(--mobile-gutter), env(safe-area-inset-left));
    z-index: 170;
    max-width: 128px;
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-align: left;
    white-space: normal;
  }

  /* Keep the instruction separate and centered above both dock items. */
  .explore-hint {
    right: var(--mobile-gutter);
    bottom: var(--mobile-hint-bottom);
    left: var(--mobile-gutter);
    justify-content: center;
    gap: 0;
    font-size: 0;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
  }

  .explore-hint::after {
    color: rgba(245, 241, 233, 0.36);
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* Center navigation has a dedicated bottom lane. */
  .orbit-nav {
    bottom: var(--mobile-nav-bottom);
    width: min(360px, calc(100vw - 24px));
  }

  .orbit-shell {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .orbit-shell::before,
  .orbit-toggle {
    width: 54px;
    height: 54px;
  }

  .orbit-toggle::before {
    width: 38px;
    height: 38px;
  }

  .orbit-link {
    height: 54px;
    padding: 0 4px;
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .orbit-explore-label {
    top: -19px;
    font-size: 7px;
  }

  /* Story card becomes a clean bottom sheet that stays above navigation. */
  .story-card {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 132px - env(safe-area-inset-top));
    padding: 30px 22px max(24px, env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .story-card blockquote {
    font-size: clamp(24px, 8vw, 31px);
    line-height: 1.03;
  }

  .story-card footer {
    gap: 14px;
  }

  /* Submission/session panels: full-width bottom sheets, but never under
     the notch or browser chrome. */
  .panel {
    align-items: flex-end;
  }

  .panel-sheet {
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    padding:
      34px
      max(18px, env(safe-area-inset-right))
      max(30px, calc(env(safe-area-inset-bottom) + 18px))
      max(18px, env(safe-area-inset-left));
    border-radius: 18px 18px 0 0;
  }

  .panel-close {
    top: 14px;
    right: max(14px, env(safe-area-inset-right));
  }

  .wish-emblem {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .panel-sheet h2 {
    margin-top: 7px;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 0.98;
  }

  .panel-intro {
    max-width: 440px;
    margin-bottom: 26px;
    font-size: 12px;
    line-height: 1.58;
  }

  /* 3 × 3 is shorter and cleaner than the previous 2-column phone grid. */
  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .type-grid span {
    min-height: 44px;
    padding: 5px;
    font-size: 9px;
  }

  .panel input[type="text"],
  .panel textarea,
  .panel select {
    font-size: 16px; /* prevents iOS Safari focus zoom */
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .primary-button {
    min-height: 50px;
  }

  .toast {
    top: max(72px, calc(env(safe-area-inset-top) + 62px));
    right: 14px;
    left: 14px;
    width: auto;
    min-width: 0;
  }
}

/* Very narrow phones (iPhone SE / 320–375 CSS px). */
@media (max-width: 390px) {
  :root {
    --mobile-gutter: 12px;
  }

  .top-rail {
    gap: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .star-actions .quiet-cta {
    min-height: 42px;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: 0.045em;
  }

  .sky-guidelines-link {
    max-width: 105px;
    font-size: 7px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .orbit-nav {
    width: calc(100vw - 16px);
  }

  .orbit-link {
    font-size: 7px;
    letter-spacing: 0.05em;
  }

  .panel-sheet {
    padding-right: 15px;
    padding-left: 15px;
  }

  .panel-sheet h2 {
    font-size: 34px;
  }

  .panel-intro {
    font-size: 11px;
  }

  .type-grid span {
    font-size: 8px;
  }
}

/* Landscape phones / unusually short browser windows. Keep the starfield usable
   without letting controls consume the whole viewport. */
@media (max-height: 600px) and (orientation: landscape) {
  .top-rail {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .brand-copy small,
  .orbit-explore-label,
  .explore-hint {
    display: none;
  }

  .quiet-cta {
    min-height: 38px;
  }

  .sky-hud {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 58px));
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .sky-guidelines-link {
    right: auto;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 68px));
    left: max(12px, env(safe-area-inset-left));
    font-size: 7px;
  }

  .orbit-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .story-card {
    top: max(62px, calc(env(safe-area-inset-top) + 52px));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(68px, calc(env(safe-area-inset-bottom) + 58px));
    left: auto;
    width: min(430px, 58vw);
    max-height: none;
    padding: 24px 22px;
  }

  .story-card blockquote {
    font-size: clamp(22px, 5vw, 29px);
  }

  .panel-sheet {
    width: min(680px, calc(100vw - 20px));
    max-height: calc(100dvh - 12px);
    padding-top: 26px;
  }

  .wish-emblem {
    display: none;
  }

  .panel-sheet h2 {
    font-size: 34px;
  }

  .panel-intro {
    margin-bottom: 18px;
  }
}

/* Large desktop / ultrawide: prevent UI from drifting too far from the content. */
@media (min-width: 1600px) {
  .top-rail {
    padding-right: clamp(54px, 5vw, 100px);
    padding-left: clamp(54px, 5vw, 100px);
  }

  .sky-hud,
  .constellation-counter {
    right: clamp(54px, 5vw, 100px);
  }

  .explore-hint {
    left: clamp(54px, 5vw, 100px);
  }
}

/* =========================================================
   ATLAS soft-radius UI pass
   Adds gentle curves without making the interface bubbly.
   ========================================================= */

:root {
  --atlas-radius-panel: 24px;
  --atlas-radius-card: 24px;
  --atlas-radius-control: 14px;
  --atlas-radius-button: 16px;
}

/* Star story popup */
.story-card {
  border-radius: var(--atlas-radius-card);
}

/* Leave-a-star panel */
.panel-sheet {
  border-radius: var(--atlas-radius-panel);
}

/* Category choices inside Leave a Star */
.type-grid span {
  border-radius: var(--atlas-radius-control);
}

/* Main submit button */
.primary-button {
  border-radius: var(--atlas-radius-button);
}

/* Keep close buttons circular */
.close-button,
.panel-close {
  border-radius: 999px;
}

/* Slightly soften text fields without turning them into pill inputs */
.panel input[type="text"],
.panel textarea {
  border: 1px solid rgba(235, 238, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.panel input[type="text"] {
  height: 48px;
  padding: 0 14px;
}

.panel textarea {
  padding: 13px 14px;
}

.panel input[type="text"]:focus,
.panel textarea:focus {
  border-color: rgba(215, 191, 138, 0.5);
  background: rgba(255, 255, 255, 0.025);
}

/* Small action/toast buttons */
.toast {
  border-radius: 18px;
}

.toast-action {
  border-radius: 12px;
}

/* Mobile: keep the panel feeling like a bottom sheet */
@media (max-width: 720px) {
  .story-card {
    border-radius: 22px;
  }

  .panel-sheet {
    border-radius: 24px 24px 0 0;
  }

  .type-grid span {
    border-radius: 12px;
  }

  .primary-button {
    border-radius: 15px;
  }
}

/* =========================================================
   ATLAS — MOBILE / SMALL-SCREEN POLISH V2
   Paste this ENTIRE block at the VERY END of styles.css.
   No HTML, JS, Supabase, Turnstile, or backend changes needed.
   ========================================================= */

/* Keep every light informational page on exactly the same canvas. */
.content-page,
.story-page,
.support-page,
.shop-page,
.guidelines-page {
  background:
    radial-gradient(circle at 82% 4%, rgba(130, 119, 170, 0.12), transparent 31%),
    radial-gradient(circle at 10% 18%, rgba(109, 132, 171, 0.10), transparent 27%),
    linear-gradient(180deg, #f2f0ea 0%, #ece9e2 48%, #e4e0d8 100%) !important;
  background-color: #ece9e2 !important;
}

.content-page .page-atmosphere,
.story-page .page-atmosphere,
.support-page .page-atmosphere,
.shop-page .page-atmosphere,
.guidelines-page .page-atmosphere {
  background: transparent !important;
}

/* The old coarse-pointer rule could make a 34px-wide close button
   at least 44px tall, which is why the X became an oval on iPhone. */
@media (pointer: coarse) {
  .close-button,
  .panel-close,
  .story-card > .close-button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-nav-bottom: max(14px, env(safe-area-inset-bottom));
  }

  /* ---------- STARFIELD: simplify the bottom of the phone ---------- */

  .sky-page .top-rail {
    padding-top: max(18px, calc(env(safe-area-inset-top) + 10px));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .sky-page .brand-copy strong {
    font-size: clamp(22px, 6vw, 26px);
  }

  .sky-page .star-actions .quiet-cta {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  /* Hide the desktop instruction line on phones.
     The interface is cleaner without a third line of bottom text. */
  .sky-page .explore-hint {
    display: none !important;
  }

  /* Put zoom/reset/browse in one centered dock. */
  .sky-page .sky-hud {
    position: fixed;
    right: auto !important;
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 112px)) !important;
    left: 50% !important;
    z-index: 170;
    transform: translateX(-50%);
  }

  .sky-page .control-group {
    overflow: hidden;
    border: 1px solid rgba(235, 238, 255, 0.15);
    border-radius: 999px;
    background: rgba(7, 16, 31, 0.82);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px) saturate(120%);
  }

  .sky-page .icon-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  /* Put the privacy link directly under the control dock, centered. */
  .sky-page .sky-guidelines-link {
    right: auto !important;
    bottom: max(99px, calc(env(safe-area-inset-bottom) + 85px)) !important;
    left: 50% !important;
    z-index: 170;
    width: max-content;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
  }

  .sky-page .orbit-nav {
    bottom: var(--mobile-nav-bottom);
    width: min(360px, calc(100vw - 24px));
  }

  .sky-page .orbit-explore-label {
    top: -20px;
  }

  /* ---------- STORY POPUP ---------- */

  .story-card {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    width: auto !important;
    max-height: calc(100dvh - 118px - env(safe-area-inset-top)) !important;
    padding: 30px 22px max(24px, calc(env(safe-area-inset-bottom) + 14px)) !important;
    border-radius: 26px !important;
  }

  .story-card > .close-button {
    top: 14px !important;
    right: 14px !important;
  }

  .story-card blockquote {
    font-size: clamp(25px, 7.8vw, 32px) !important;
    line-height: 1.04;
  }

  /* ---------- LEAVE-A-STAR / SESSION / REPORT SHEETS ---------- */

  .panel {
    align-items: flex-end;
  }

  .panel-sheet {
    width: calc(100% - 12px) !important;
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top))) !important;
    margin-inline: auto;
    padding:
      28px
      max(18px, env(safe-area-inset-right))
      max(34px, calc(env(safe-area-inset-bottom) + 18px))
      max(18px, env(safe-area-inset-left)) !important;
    border: 1px solid rgba(235, 238, 255, 0.16) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
  }

  .panel-close {
    top: 14px !important;
    right: max(14px, env(safe-area-inset-right)) !important;
  }

  .wish-emblem {
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 16px !important;
  }

  .panel-sheet h2 {
    margin-top: 6px;
    font-size: clamp(34px, 9.5vw, 42px) !important;
    line-height: 0.98 !important;
  }

  .panel-intro {
    max-width: 460px;
    margin-bottom: 25px !important;
    font-size: 12px !important;
    line-height: 1.58 !important;
  }

  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .type-grid span {
    min-height: 48px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    font-size: 9px !important;
  }

  /* Turn the form fields into subtle rounded glass fields.
     The !important values deliberately override the older underline-only form. */
  #starForm input[type="text"],
  #starForm textarea,
  #reportForm textarea,
  #reportForm select {
    width: 100%;
    border: 1px solid rgba(235, 238, 255, 0.13) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    color: var(--ink) !important;
    font-size: 16px !important;
    box-shadow: none !important;
  }

  #starForm input[type="text"] {
    min-height: 48px;
    padding: 0 14px !important;
  }

  #starForm textarea,
  #reportForm textarea {
    min-height: 120px;
    padding: 13px 14px !important;
  }

  #reportForm select {
    min-height: 48px;
    padding: 0 14px !important;
  }

  #starForm input[type="text"]:focus,
  #starForm textarea:focus,
  #reportForm textarea:focus,
  #reportForm select:focus {
    border-color: rgba(215, 191, 138, 0.48) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .primary-button {
    min-height: 50px;
    border-radius: 16px !important;
  }

  /* ---------- ALL LIGHT INFORMATIONAL PAGES ---------- */

  .content-page .top-rail {
    padding:
      max(18px, calc(env(safe-area-inset-top) + 10px))
      max(18px, env(safe-area-inset-right))
      0
      max(18px, env(safe-area-inset-left));
  }

  .content-page .editorial-main,
  .content-page .shop-main,
  .content-page .support-main,
  .content-page .guidelines-main {
    width: calc(100% - 32px) !important;
    max-width: 680px;
    margin-inline: auto;
    padding-top: 118px !important;
    padding-bottom: 116px !important;
  }

  .content-page .page-simple-intro {
    max-width: none;
    text-align: left;
  }

  .content-page .page-simple-intro h1 {
    margin-bottom: 15px;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 0.94;
  }

  .content-page .page-simple-intro p {
    font-size: 15px;
    line-height: 1.72;
  }

  /* About / Story reads like a calm letter on every phone. */
  .story-page .story-simple-main {
    padding-top: 118px !important;
    padding-bottom: 118px !important;
  }

  .story-page .story-simple-copy.story-letter-copy {
    width: 100%;
    max-width: 620px;
  }

  .story-page .story-simple-copy.story-letter-copy p,
  .story-page .story-simple-copy.story-letter-copy .story-simple-lead {
    margin-bottom: 18px;
    font-size: 17px !important;
    line-height: 1.62 !important;
  }

  .story-page .story-simple-copy.story-letter-copy p:first-child {
    font-size: 23px !important;
    line-height: 1.35 !important;
  }

  /* ---------- SUPPORT: purpose-built phone layout ---------- */

  .support-page .support-simple-main {
    display: grid;
    gap: 24px !important;
  }

  .support-page .urgent-support {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 4px;
    padding: 22px !important;
    border-radius: 22px;
  }

  .support-page .urgent-mark {
    width: 44px !important;
    height: 44px !important;
  }

  .support-page .urgent-copy h2 {
    margin-top: 5px;
    font-size: 31px !important;
    line-height: 1.04;
  }

  .support-page .urgent-copy > p:last-child {
    font-size: 12px;
    line-height: 1.65;
  }

  .support-page .urgent-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .support-page .resource-action {
    min-height: 48px;
    border-radius: 13px;
    padding-inline: 14px;
    font-size: 9px;
  }

  .support-page .support-simple-section {
    gap: 16px;
  }

  .support-page .simple-section-heading h2 {
    font-size: 32px !important;
    line-height: 1.02;
  }

  .support-page .support-simple-list {
    gap: 10px;
  }

  .support-page .support-simple-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 13px !important;
    padding: 18px !important;
    border: 1px solid rgba(21, 32, 51, 0.10) !important;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.32);
  }

  .support-page .support-simple-row:last-child {
    border-bottom: 1px solid rgba(21, 32, 51, 0.10) !important;
  }

  .support-page .support-simple-copy h3 {
    font-size: 27px !important;
    line-height: 1.05;
  }

  .support-page .support-simple-copy p {
    font-size: 14px;
    line-height: 1.7;
  }

  .support-page .resource-link {
    grid-column: 1 !important;
    justify-self: start !important;
    margin-top: 0 !important;
    padding-bottom: 2px;
    font-size: 10px;
  }

  .support-page .support-simple-note {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    margin-top: 14px !important;
    padding: 24px 20px !important;
    border: 1px solid rgba(21, 32, 51, 0.10) !important;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.28);
  }

  .support-page .support-simple-note h2 {
    margin: 0;
    font-size: 34px !important;
    line-height: 1;
  }

  .support-page .support-simple-phrases p {
    padding: 15px 0 !important;
    font-size: 21px !important;
    line-height: 1.28;
  }

  /* This old nowrap rule is the main reason the support disclaimer can
     blow out or look strange on narrow screens. */
  .content-page .support-disclaimer.support-disclaimer-simple {
    align-items: flex-start;
    gap: 10px;
    margin-top: 0 !important;
    padding: 17px 18px;
    border: 1px solid rgba(21, 32, 51, 0.09);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.23);
  }

  .content-page .support-disclaimer.support-disclaimer-simple p {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.65;
  }

  .support-page .shared-sky-count {
    min-height: 170px;
    padding-inline: 0;
  }

  /* ---------- FOOTERS / NAV ON INFORMATIONAL PAGES ---------- */

  .content-page .page-footer {
    width: calc(100% - 32px) !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 10px;
    padding-top: 30px;
    padding-bottom: max(100px, calc(env(safe-area-inset-bottom) + 88px)) !important;
    text-align: center;
  }

  .content-page .page-footer .atlas-wordmark {
    justify-self: center;
  }

  .content-page .page-footer .footer-policy-link {
    grid-column: 1 !important;
  }
}

@media (max-width: 430px) {
  /* Do not collapse the CTA into an unexplained icon on smaller phones. */
  .top-rail .quiet-cta,
  .star-actions .quiet-cta {
    max-width: none !important;
    overflow: visible !important;
    padding-inline: 11px !important;
    font-size: 8px !important;
  }

  .top-rail .quiet-cta span,
  .star-actions .quiet-cta span {
    font-size: 10px !important;
  }

  .panel-sheet {
    width: calc(100% - 8px) !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .panel-sheet h2 {
    font-size: 34px !important;
  }

  .type-grid span {
    font-size: 8px !important;
  }

  .support-page .support-simple-row {
    padding: 16px !important;
  }
}

/* Short landscape phones: use side panels and get fixed bottom UI out of the way. */
@media (max-height: 600px) and (orientation: landscape) {
  .sky-page .sky-guidelines-link,
  .sky-page .orbit-explore-label {
    display: none !important;
  }

  .sky-page .sky-hud {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 58px)) !important;
    left: auto !important;
    transform: none !important;
  }

  .panel-sheet {
    width: min(680px, calc(100vw - 20px)) !important;
    border-radius: 24px !important;
  }
}

/* =========================================================
   ATLAS — MOBILE SCROLL FIX
   Keep the Starfield locked, but let all content pages scroll.
   ========================================================= */

@media (max-width: 720px) {

  /* Restore normal document scrolling on phones */
  html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body {
    height: auto !important;
    min-height: 100dvh !important;
  }

  /* Story / Support / Shop / Privacy pages must scroll normally */
  body.content-page {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  body.content-page main,
  body.content-page .editorial-main,
  body.content-page .story-simple-main,
  body.content-page .support-simple-main,
  body.content-page .shop-simple-main,
  body.content-page .guidelines-main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* The Starfield is the ONLY page that should stay viewport-locked */
  body.sky-page {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none;
  }

  body.sky-page .experience {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* But overlays inside the Starfield still need their own scrolling */
  .panel-sheet,
  .story-card,
  .session-sheet,
  .report-sheet {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
  }

  .panel-sheet {
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top))) !important;
  }

  .story-card {
    max-height: calc(100dvh - 118px - env(safe-area-inset-top)) !important;
  }
}

/* =========================================================
   ATLAS — SUPPORT DESKTOP SOFT-CARD PASS
   Matches the softer rounded visual language used elsewhere.
   ========================================================= */

@media (min-width: 721px) {

  /* Crisis / urgent support block */
  .support-page .urgent-support {
    padding: 30px;
    border: 1px solid rgba(21, 32, 51, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.30);
  }

  .support-page .resource-action {
    border-radius: 14px;
  }

  /* Individual support resources */
  .support-page .support-simple-list {
    gap: 12px;
  }

  .support-page .support-simple-row {
    padding: 22px 24px;
    border: 1px solid rgba(21, 32, 51, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.26);
  }

  .support-page .support-simple-row:last-child {
    border-bottom: 1px solid rgba(21, 32, 51, 0.10);
  }

  /* "What you can do right now" section */
  .support-page .support-simple-note {
    margin-top: 40px;
    padding: 38px 40px;
    border: 1px solid rgba(21, 32, 51, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.24);
  }

  /* Small safety disclaimer */
  .content-page .support-disclaimer.support-disclaimer-simple {
    padding: 18px 20px;
    border: 1px solid rgba(21, 32, 51, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
  }
}

/* =========================================================
   ATLAS — MOBILE STORY FOCUS MODE
   Keeps the top rail, hides competing controls, and gives
   the story card its own clean space on phones.
   ========================================================= */

@media (max-width: 720px) {

  /* Keep the header above the open story */
  .sky-page .top-rail {
    z-index: 260 !important;
  }

  /* When a story is open, remove the rest of the sky UI */
  .sky-page:has(.story-card.is-open) .sky-hud,
  .sky-page:has(.story-card.is-open) .sky-guidelines-link,
  .sky-page:has(.story-card.is-open) .orbit-nav,
  .sky-page:has(.story-card.is-open) .constellation-counter,
  .sky-page:has(.story-card.is-open) .explore-hint {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Story becomes a focused sheet underneath the top rail */
  .story-card {
    position: fixed !important;

    top: 92px !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    left: max(12px, env(safe-area-inset-left)) !important;

    width: auto !important;
    max-height: none !important;

    padding:
      28px
      20px
      max(24px, calc(env(safe-area-inset-bottom) + 16px))
      !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    border-radius: 24px !important;

    transform: translateY(10px) scale(0.99) !important;
  }

  .story-card.is-open {
    transform: none !important;
  }

  /* Give the close button breathing room */
  .story-card > .close-button {
    top: 14px !important;
    right: 14px !important;
  }

  /* Slightly smaller type so long stories don't overwhelm the phone */
  .story-card blockquote {
    margin-bottom: 24px !important;
    font-size: clamp(22px, 6.4vw, 27px) !important;
    line-height: 1.10 !important;
    letter-spacing: -0.018em !important;
  }

  .story-meta {
    gap: 9px !important;
    margin-bottom: 20px !important;
    padding-right: 52px;
    font-size: 8px !important;
  }

  .story-location::before {
    margin-right: 9px !important;
  }

  .story-object {
    gap: 13px !important;
    padding: 15px 0 !important;
  }

  .story-object-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px;
  }

  .story-object strong {
    font-size: 18px !important;
  }

  .story-credit {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .story-card footer {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 20px !important;
  }

  .next-story {
    font-size: 8px !important;
  }
}

/* Extra tightening for very narrow phones */
@media (max-width: 380px) {
  .story-card {
    top: 86px !important;
    right: 8px !important;
    left: 8px !important;
    padding-right: 17px !important;
    padding-left: 17px !important;
  }

  .story-card blockquote {
    font-size: 21px !important;
  }
}

@media (max-width: 720px) {
  /* Leave-a-Star intro */
  .panel-sheet h2 {
    font-size: clamp(32px, 8.5vw, 38px) !important;
    line-height: 1 !important;
  }

  .panel-intro {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  /* Story quote */
  .story-card blockquote {
    font-size: clamp(22px, 6.4vw, 27px) !important;
    line-height: 1.10 !important;
  }

  /* Small uppercase labels */
  .story-meta,
  .field-label,
  .eyebrow {
    letter-spacing: 0.12em !important;
  }
}

@media (max-width: 720px) {
  .sky-page:has(.panel.is-open) .sky-hud,
  .sky-page:has(.panel.is-open) .sky-guidelines-link,
  .sky-page:has(.panel.is-open) .orbit-nav,
  .sky-page:has(.story-card.is-open) .sky-hud,
  .sky-page:has(.story-card.is-open) .sky-guidelines-link,
  .sky-page:has(.story-card.is-open) .orbit-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* =========================================================
   ATLAS — FINAL MOBILE STORY TYPE POLISH
   Tiny refinements only. Desktop/tablet stay unchanged.
   ========================================================= */

@media (max-width: 720px) {

  /* Main story quote — slightly calmer */
  .story-card blockquote {
    font-size: clamp(21px, 6vw, 26px) !important;
    line-height: 1.12 !important;
  }

  /* Evening-star title */
  .story-object strong {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  /* "Shared by..." */
  .story-credit {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* Date / "left beneath the sky..." text */
  .story-date,
  .story-card time {
    opacity: 0.58 !important;
    font-size: 8px !important;
    line-height: 1.4 !important;
  }
}

/* ATLAS — fix serif descenders in mobile story card */
@media (max-width: 720px) {
  .story-object {
    overflow: visible !important;
  }

  .story-object strong {
    display: inline-block !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    padding-bottom: 3px !important;
    overflow: visible !important;
  }
}

/* ATLAS — desktop story quote type only */
@media (min-width: 1100px) {
  .story-card blockquote {
    font-size: clamp(24px, 1.75vw, 27px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.012em !important;
  }
}
