:root {
  --color-cream: #f3ecdd;
  --color-parchment: #e3d7c0;
  --color-stone: #b8ac9a;
  --color-warm-gray: #645c52;
  --color-charcoal: #221d19;
  --color-ink: #15110f;
  --color-olive: #5f705d;
  --color-dusty-blue: #4f6478;
  --color-archive-indigo: #1d2740;
  --color-archive-ink: #0f182b;
  --color-clay: #8e6650;
  --color-leather: #3f352e;
  --color-border: #cdbfa9;
  --color-surface: #f9f3e7;
  --shadow-soft: 0 12px 28px rgba(32, 26, 20, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--color-charcoal);
  background:
    radial-gradient(circle at 4% 8%, rgba(111, 128, 101, 0.2) 0%, rgba(111, 128, 101, 0) 34%),
    radial-gradient(circle at 92% 10%, rgba(95, 117, 139, 0.24) 0%, rgba(95, 117, 139, 0) 35%),
    linear-gradient(145deg, #f3ebdb 0%, #ede4d0 46%, #e5dcc8 100%);
  line-height: 1.7;
  letter-spacing: 0.003em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background:
    repeating-linear-gradient(12deg, rgba(114, 99, 84, 0.07) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-10deg, rgba(90, 104, 117, 0.05) 0 1px, transparent 1px 12px);
}

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

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(239, 231, 216, 0.94), rgba(232, 224, 209, 0.94));
  border-bottom: 1px solid rgba(113, 107, 100, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--color-ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(35, 25, 19, 0.12);
}

.brand-text {
  line-height: 1.05;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 0.35rem 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--color-charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.28rem;
  font-size: 0.93rem;
  letter-spacing: 0.014em;
  color: var(--color-warm-gray);
}

.nav-links.always-open {
  position: static;
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(140deg, var(--color-leather), #2d4660);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #3f322b;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.38);
  color: #2f2925;
  border-color: rgba(96, 110, 123, 0.45);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(113, 107, 100, 0.08);
}

.hero {
  padding: 5.4rem 0 3.9rem;
}

.hero-layered {
  position: relative;
  overflow: clip;
}

.hero-layered::before,
.hero-layered::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero-layered::before {
  width: 500px;
  height: 500px;
  right: -220px;
  top: -180px;
  background: radial-gradient(circle, rgba(110, 121, 99, 0.18), rgba(110, 121, 99, 0));
}

.hero-layered::after {
  width: 380px;
  height: 380px;
  left: -170px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(102, 116, 132, 0.14), rgba(102, 116, 132, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.7rem;
  align-items: start;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--color-olive);
  margin-bottom: 1.18rem;
}

.hero-recognition-label {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #5e6c63;
  font-weight: 700;
}

.hero-recognition-line {
  margin: 0 0 1rem;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.42rem);
  line-height: 1.45;
  color: #2c2723;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--color-ink);
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero p {
  margin-top: 1.12rem;
  font-size: 1.14rem;
  line-height: 1.8;
  max-width: 54ch;
  color: #36302b;
  text-wrap: pretty;
}

.hero-note {
  margin-top: 0.95rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #5d554e;
}

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

.hero-chips {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chips li {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #43544e;
  border: 1px solid #bcaf99;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  background: rgba(234, 243, 237, 0.62);
}

.hero-aside {
  background: linear-gradient(145deg, #ecdfc8, #efe6d5 52%, #dfe6de);
  border: 1px solid #cdbda5;
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.texture {
  background:
    linear-gradient(rgba(252, 248, 240, 0.35), rgba(252, 248, 240, 0.35)),
    repeating-linear-gradient(0deg, rgba(87, 80, 70, 0.08) 0 2px, transparent 2px 7px);
  border-radius: calc(var(--radius-lg) - 10px);
  padding: 1.25rem;
  min-height: 260px;
  display: grid;
  align-content: space-between;
}

.texture p {
  margin: 0;
}

.sample-line {
  font-family: var(--serif);
  font-size: 1.33rem;
  line-height: 1.5;
  color: #2a2521;
}

.sample-meta {
  font-size: 0.88rem;
  color: #5c4e43;
  letter-spacing: 0.02em;
}

.artifact-stack {
  margin-top: 0.95rem;
  border-radius: 14px;
  border: 1px solid #c8b89e;
  background: linear-gradient(170deg, #f0e6d2, #dbe3db);
  padding: 0.82rem 0.92rem;
}

.artifact-stack p {
  margin: 0;
}

.artifact-stack p:first-child {
  font-family: var(--serif);
  font-size: 1.02rem;
}

.artifact-stack p:last-child {
  margin-top: 0.35rem;
  color: #5a534b;
  font-size: 0.88rem;
}

.section {
  padding: 4.8rem 0;
}

.section-paper {
  background: linear-gradient(180deg, rgba(246, 238, 224, 0.82), rgba(241, 233, 218, 0.68));
}

.section-tint {
  background:
    linear-gradient(180deg, rgba(220, 229, 220, 0.5), rgba(236, 227, 213, 0.33)),
    radial-gradient(circle at 90% 22%, rgba(103, 124, 148, 0.15), rgba(103, 124, 148, 0));
}

.section-head {
  max-width: 65ch;
  margin-bottom: 2.45rem;
}

.section-label {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.67rem;
  font-weight: 700;
  color: #55695d;
}

.section-head h2 {
  font-size: clamp(2.05rem, 3.4vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 0.95rem;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.8;
  max-width: 62ch;
  color: #3f3a34;
  text-wrap: pretty;
}

.section-head p + p {
  margin-top: 0.85rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid #cfc1ab;
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: 0 6px 20px rgba(33, 26, 20, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(33, 26, 20, 0.08);
}

.card h3 {
  font-size: clamp(1.36rem, 2vw, 1.64rem);
  line-height: 1.16;
  letter-spacing: -0.004em;
  margin-bottom: 0.74rem;
}

.card p,
.card li {
  color: #413a34;
  line-height: 1.75;
}

.steps {
  counter-reset: step;
}

.timeline-grid {
  position: relative;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(87, 96, 77, 0.24), rgba(87, 96, 77, 0.05));
}

.walkthrough-card {
  margin-top: 1rem;
  background: linear-gradient(165deg, #f4ebdb, #efe5d5 58%, #e7ddcc);
  border-color: #c8baa2;
}

.walkthrough-card h3 {
  margin-bottom: 0.8rem;
}

.walkthrough-card p {
  margin: 0;
}

.walkthrough-card p + p {
  margin-top: 0.55rem;
}

.step {
  position: relative;
  padding-left: 2.8rem;
}

.steps-equal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.steps-equal .step {
  height: 100%;
}

.step-card-link {
  display: block;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4ddce;
  color: #3e3a34;
  font-weight: 700;
  font-size: 0.82rem;
}

.quote-band {
  background:
    linear-gradient(165deg, #efe2ca, #f4ecdc 50%, #e2e9e5 100%),
    repeating-linear-gradient(0deg, rgba(111, 101, 91, 0.06) 0 1px, transparent 1px 36px);
  border: 1px solid #c6b79e;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
}

.quote-band::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(78, 62, 52, 0.45), rgba(78, 62, 52, 0.1));
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.46rem, 2.45vw, 2.02rem);
  line-height: 1.4;
  letter-spacing: 0.002em;
  color: #2d2723;
  padding-left: 1.1rem;
  max-width: 37ch;
  text-wrap: balance;
}

.quote-band h2 {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  padding-left: 1.1rem;
}

.quote-band blockquote::first-letter {
  font-size: 2.1em;
  line-height: 0.9;
  float: left;
  margin-right: 0.12em;
  color: #443931;
}

.quote-band p {
  margin: 1rem 0 0;
  color: #514b45;
  padding-left: 1.1rem;
  max-width: 68ch;
}

.quiet-invitation {
  margin-top: 1.15rem;
  background: linear-gradient(165deg, #f0e7d7, #ebdfcd 58%, #e5ddce);
  border-color: #c7b79f;
}

.quiet-invitation p {
  margin: 0;
  max-width: 60ch;
}

.quiet-invitation p + p {
  margin-top: 0.55rem;
}

.quiet-invitation .btn {
  margin-top: 1rem;
}

.constellation-paper-section {
  position: relative;
}

.atlas-constellation {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(168deg, #f1e7d4, #eadfcb 50%, #e4d9c6),
    repeating-linear-gradient(0deg, rgba(84, 73, 60, 0.05) 0 1px, transparent 1px 17px);
  border-color: #c9b89f;
}

.atlas-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.atlas-lines line {
  stroke: rgba(65, 55, 45, 0.34);
  stroke-width: 0.28;
}

.atlas-star {
  position: absolute;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff8e8 0%, #e9cf92 46%, #af8341 100%);
  box-shadow:
    0 0 0 1px rgba(252, 237, 204, 0.42),
    0 0 10px rgba(214, 174, 98, 0.42);
}

.atlas-label {
  position: absolute;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: #3d342b;
  letter-spacing: 0.02em;
}

.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.principle-list li {
  background: #f5efe2;
  border: 1px solid #d0c3ae;
  border-radius: 12px;
  padding: 0.9rem 1rem 0.9rem 2.1rem;
  color: #3d3833;
  position: relative;
}

.principle-list li::before {
  content: "•";
  position: absolute;
  left: 0.95rem;
  top: 0.88rem;
  color: #6f7b67;
  font-size: 0.95rem;
}

.principle-list .principle-emphasis {
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(165deg, #efe4cb, #e8ddc6);
  border-color: #bda780;
  color: #2c251f;
}

.placeholder {
  border: 1px dashed #ad9f8d;
  background: linear-gradient(170deg, #efe6d4, #e8e2d8);
}

.placeholder-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #726a61;
}

.micro-note {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #ddd3c4;
  font-size: 0.84rem;
  color: #5b544d;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: #3f3a35;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.72rem 0.78rem;
  border: 1px solid #cabfad;
  border-radius: 10px;
  background: #fffdfa;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.btn:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-dusty-blue);
  outline-offset: 2px;
}

.form-note {
  color: #4a433b;
  font-size: 0.86rem;
}

input::placeholder,
textarea::placeholder {
  color: #6a5f54;
  opacity: 1;
}

.faq details {
  border: 1px solid #cabca7;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: linear-gradient(165deg, #f2e9d9, #ecf1e9);
  margin-bottom: 0.7rem;
}

.faq details[open] {
  background: #f6f1e7;
  border-color: #ccc1b2;
}

.faq details:last-child {
  margin-bottom: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #2a2622;
  line-height: 1.45;
}

.faq summary::after {
  content: "+";
  float: right;
  color: #5f584f;
}

.faq details[open] summary::after {
  content: "−";
}

.offsite-grid .card:first-child {
  position: relative;
}

.offsite-grid .card:first-child::after {
  content: "OFFSITE";
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #6c645a;
  background: #efe7d9;
  border: 1px solid #d6ccbe;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.section-paper .card h3,
.section-tint .card h3 {
  letter-spacing: 0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0.65rem 0 0;
  color: #4a443f;
}

.site-footer {
  border-top: 1px solid #c3b6a1;
  padding: 1.3rem 0 1.8rem;
  margin-top: 2.5rem;
  background: linear-gradient(180deg, rgba(235, 226, 209, 0.6), rgba(225, 215, 198, 0.7));
}

.founders-photo {
  margin: 3rem auto 2.8rem;
  width: min(80%, 720px);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: auto;
  background: transparent;
  border: 2px solid #d8c6a9;
  box-shadow:
    0 10px 28px rgba(35, 27, 21, 0.1),
    0 0 0 10px rgba(242, 233, 217, 0.65);
}

.founders-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #5c564f;
  font-size: 0.9rem;
}

.footer-brandline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark-footer {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  box-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

body.onboarding-page {
  background:
    radial-gradient(circle at 84% 8%, rgba(120, 140, 188, 0.26) 0%, rgba(120, 140, 188, 0) 30%),
    radial-gradient(circle at 10% 78%, rgba(111, 129, 165, 0.2) 0%, rgba(111, 129, 165, 0) 35%),
    linear-gradient(150deg, var(--color-archive-ink) 0%, var(--color-archive-indigo) 55%, #263555 100%);
  color: #e9e5dc;
}

body.onboarding-page::before {
  opacity: 0.08;
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 245, 224, 0.11) 0 1px, transparent 1px),
    radial-gradient(circle at 64% 72%, rgba(255, 245, 224, 0.08) 0 1px, transparent 1px),
    repeating-linear-gradient(10deg, rgba(250, 242, 224, 0.04) 0 1px, transparent 1px 12px);
  background-size: 120px 120px, 170px 170px, auto;
}

.app-card {
  width: min(760px, 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.onboarding-card {
  width: min(860px, 100%);
}

body.onboarding-page .onboarding-card {
  background:
    radial-gradient(circle at 82% 14%, rgba(215, 196, 147, 0.1), rgba(215, 196, 147, 0) 40%),
    linear-gradient(168deg, rgba(18, 31, 53, 0.96), rgba(27, 41, 66, 0.94));
  border-color: rgba(219, 197, 148, 0.32);
  box-shadow: 0 18px 36px rgba(7, 12, 22, 0.45);
}

.app-title {
  margin-top: 0.9rem;
  font-size: clamp(1.95rem, 4vw, 2.7rem);
}

body.onboarding-page .app-title,
body.onboarding-page .dashboard-title,
body.onboarding-page h3 {
  color: #f6e8cf;
}

.app-subtitle {
  margin-top: 0.6rem;
  color: #4e4841;
}

body.onboarding-page .app-subtitle,
body.onboarding-page .form-note,
body.onboarding-page label,
body.onboarding-page .onboarding-progress {
  color: #d3d5df;
}

.app-form {
  margin-top: 1rem;
}

.onboarding-progress {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6d665f;
}

.members-list {
  display: grid;
  gap: 0.9rem;
  margin: 0.9rem 0;
}

.rhythm-option {
  margin-bottom: 0.75rem;
}

.rhythm-option label {
  display: grid;
  gap: 0.3rem;
}

body.onboarding-page .onboarding-step[data-step="6"] .rhythm-option:not(.rhythm-option-preferred) label {
  color: #2b261f;
}

body.onboarding-page .onboarding-step[data-step="6"] .rhythm-option:not(.rhythm-option-preferred) strong {
  color: #1f1a15;
}

body.onboarding-page .onboarding-step[data-step="6"] .rhythm-option:not(.rhythm-option-preferred) span {
  color: #3b342c;
}

.rhythm-option-preferred {
  border-color: #b98c3e;
  box-shadow:
    0 0 0 2px rgba(185, 140, 62, 0.32),
    0 10px 22px rgba(33, 26, 20, 0.11);
  background: linear-gradient(158deg, #f7efdf, #f2e8d6 56%, #eadfc8);
}

.rhythm-option-preferred strong {
  color: #2a231d;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rhythm-option-preferred span {
  color: #3f3831;
  font-weight: 600;
}

.historical-builder {
  margin-top: 0.9rem;
  background: linear-gradient(162deg, #f6eedf, #efe5d4 58%, #e8dfd0);
}

body.onboarding-page .historical-builder {
  background: linear-gradient(164deg, rgba(33, 47, 73, 0.92), rgba(27, 39, 63, 0.9));
  border-color: rgba(219, 197, 148, 0.26);
}

body.onboarding-page .onboarding-step[data-step="5"] input,
body.onboarding-page .onboarding-step[data-step="5"] textarea,
body.onboarding-page .onboarding-step[data-step="5"] select {
  color: #2b261f;
}

body.onboarding-page .onboarding-step[data-step="5"] input::placeholder,
body.onboarding-page .onboarding-step[data-step="5"] textarea::placeholder {
  color: #8f887d;
}

body.onboarding-page .onboarding-step[data-step="7"] input,
body.onboarding-page .onboarding-step[data-step="7"] textarea,
body.onboarding-page .onboarding-step[data-step="7"] select {
  color: #2b261f;
}

body.onboarding-page .onboarding-step[data-step="7"] input::placeholder,
body.onboarding-page .onboarding-step[data-step="7"] textarea::placeholder {
  color: #b8b2a7;
}

body.pre-archive-page input,
body.pre-archive-page textarea,
body.pre-archive-page select {
  color: #2b261f;
}

body.pre-archive-page input::placeholder,
body.pre-archive-page textarea::placeholder {
  color: #bdb6ab;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.35rem;
}

.onboarding-memory-list {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.62rem;
}

.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.85rem;
  color: #5f5a54;
}

.inline-label input {
  width: 96px;
}

.onboarding-intro-map {
  position: relative;
  min-height: 170px;
  margin-top: 0.5rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 245, 223, 0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 73%, rgba(255, 245, 223, 0.1) 0 1px, transparent 1px),
    linear-gradient(160deg, rgba(36, 51, 80, 0.92), rgba(20, 34, 57, 0.92));
  border: 1px solid rgba(219, 197, 148, 0.26);
  overflow: hidden;
}

.onboarding-intro-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 246, 224, 0.6) 0 1px, transparent 1px),
    radial-gradient(circle at 24% 62%, rgba(255, 246, 224, 0.38) 0 1px, transparent 1px),
    radial-gradient(circle at 41% 21%, rgba(255, 246, 224, 0.44) 0 1px, transparent 1px),
    radial-gradient(circle at 57% 73%, rgba(255, 246, 224, 0.34) 0 1px, transparent 1px),
    radial-gradient(circle at 73% 14%, rgba(255, 246, 224, 0.56) 0 1px, transparent 1px),
    radial-gradient(circle at 86% 64%, rgba(255, 246, 224, 0.46) 0 1px, transparent 1px);
  pointer-events: none;
  opacity: 0.75;
}

.onboarding-intro-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.onboarding-intro-map line {
  stroke: rgba(218, 192, 135, 0.4);
  stroke-width: 0.28;
  stroke-dasharray: 1.2 1.2;
}

.onboarding-intro-map span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 32% 28%, #fff6e4 0%, #e5ca8f 48%, #b48647 100%);
  box-shadow:
    0 0 0 1px rgba(252, 236, 203, 0.36),
    0 0 12px rgba(214, 174, 98, 0.32);
  animation: onboardingStarTwinkle 3.8s ease-in-out infinite;
}

.onboarding-intro-map span.ambient {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 32% 28%, #fff8ea 0%, #e8d7b2 58%, #baa06a 100%);
  box-shadow:
    0 0 0 1px rgba(252, 236, 203, 0.24),
    0 0 7px rgba(214, 174, 98, 0.24);
  opacity: 0.85;
}

.onboarding-intro-map span:nth-of-type(2n) {
  animation-delay: 0.9s;
}

.onboarding-intro-map span:nth-of-type(3n) {
  animation-delay: 1.6s;
}

@keyframes onboardingStarTwinkle {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
  }
}

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

.dashboard-title {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  margin-bottom: 0.9rem;
}

.dashboard-main {
  padding-top: 2.4rem;
}

.dashboard-stack {
  display: grid;
  gap: 1rem;
}

.dashboard-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(74, 94, 130, 0.13), rgba(74, 94, 130, 0) 40%),
    radial-gradient(circle at 8% 75%, rgba(116, 127, 97, 0.14), rgba(116, 127, 97, 0) 38%),
    linear-gradient(165deg, #f4ecdd, #eee4d1 58%, #e8e0d2);
}

.dashboard-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-family-slug {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c544b;
}

.dashboard-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
  max-width: 16ch;
}

.dashboard-hero-copy {
  margin-top: 0.9rem;
  max-width: 60ch;
  font-size: 1.04rem;
}

.dashboard-rhythm,
.dashboard-memory-count {
  margin: 0.45rem 0 0;
  color: #4d4740;
}

.prompt-text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.25;
  color: #221d19;
  margin: 0.4rem 0 0.85rem;
}

.section-head.compact {
  margin-bottom: 1.2rem;
}

.section-head.compact h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0;
}

.memory-open {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.memory-open:focus-visible,
.sky-list-button:focus-visible {
  outline: 2px solid var(--color-dusty-blue);
  outline-offset: 3px;
}

.memory-tags {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: #5f725f;
}

.sky-card {
  overflow: hidden;
}

.sky-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.view-mode-switcher {
  display: inline-flex;
  gap: 0.35rem;
  border: 1px solid #cbbda8;
  border-radius: 999px;
  padding: 0.2rem;
  background: #f7f1e5;
  margin-bottom: 0.9rem;
}

.sky-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.sky-count {
  margin: 0;
  color: #3f4660;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sky-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #3a3f54;
  font-size: 0.87rem;
}

.sky-year {
  display: inline-grid;
  gap: 0.2rem;
  color: #414760;
  font-size: 0.82rem;
}

.sky-year input[type='range'] {
  width: 170px;
  accent-color: #506585;
}

.sky-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sky-whisper {
  margin: 0 0 0.9rem;
  color: #59647f;
  font-size: 0.9rem;
}

.sky-legend-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  flex-wrap: wrap;
}

.sky-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid #cfc1ab;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.74rem;
  color: #4d463e;
  background: #f8f2e6;
}

.sky-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.sky-legend-dot.is-regular {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #ece7d7 46%, #c8bca5 100%);
  box-shadow: 0 0 6px rgba(243, 217, 132, 0.45);
}

.sky-legend-dot.is-anchor {
  background: radial-gradient(circle at 36% 30%, #fffdf4 0%, #f3dfad 48%, #c99747 100%);
  box-shadow: 0 0 7px rgba(245, 203, 112, 0.58);
}

.view-mode-btn {
  border: 0;
  background: transparent;
  color: #4a443d;
  border-radius: 999px;
  padding: 0.4rem 0.86rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.view-mode-btn.is-active {
  background: #e7dcc8;
  color: #24201d;
}

.sky-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.9rem;
}

.sky-visual-pane {
  display: grid;
  gap: 0.55rem;
}

.sky-field-wrap {
  border: 1px solid rgba(170, 161, 146, 0.55);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(55, 74, 99, 0.22), rgba(20, 28, 40, 0.9)),
    linear-gradient(155deg, #1d2a3f, #142033 68%, #101826);
  box-shadow: inset 0 10px 28px rgba(8, 11, 17, 0.4);
  padding: 0.8rem;
}

.sky-canvas {
  position: relative;
  min-height: 420px;
  border-radius: 10px;
  overflow: hidden;
  transform: scale(var(--sky-zoom, 1));
  transform-origin: center center;
  transition: transform 180ms ease;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 64% 72%, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 140px 140px, 170px 170px, 190px 190px;
}

.sky-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 18%, rgba(255, 255, 255, 0.28) 0.8px, transparent 1.2px),
    radial-gradient(circle at 24% 36%, rgba(255, 255, 255, 0.2) 0.8px, transparent 1.2px),
    radial-gradient(circle at 37% 14%, rgba(255, 255, 255, 0.24) 0.8px, transparent 1.2px),
    radial-gradient(circle at 56% 29%, rgba(255, 255, 255, 0.22) 0.8px, transparent 1.2px),
    radial-gradient(circle at 73% 41%, rgba(255, 255, 255, 0.2) 0.8px, transparent 1.2px),
    radial-gradient(circle at 88% 23%, rgba(255, 255, 255, 0.24) 0.8px, transparent 1.2px),
    radial-gradient(circle at 16% 72%, rgba(255, 255, 255, 0.2) 0.8px, transparent 1.2px),
    radial-gradient(circle at 33% 82%, rgba(255, 255, 255, 0.24) 0.8px, transparent 1.2px),
    radial-gradient(circle at 52% 77%, rgba(255, 255, 255, 0.2) 0.8px, transparent 1.2px),
    radial-gradient(circle at 68% 69%, rgba(255, 255, 255, 0.22) 0.8px, transparent 1.2px),
    radial-gradient(circle at 84% 84%, rgba(255, 255, 255, 0.2) 0.8px, transparent 1.2px),
    radial-gradient(circle at 94% 66%, rgba(255, 255, 255, 0.22) 0.8px, transparent 1.2px);
  opacity: 0.55;
}

.sky-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 12%, rgba(255, 255, 255, 0.82) 0.55px, transparent 0.95px),
    radial-gradient(circle at 14% 27%, rgba(255, 255, 255, 0.78) 0.55px, transparent 0.95px),
    radial-gradient(circle at 22% 9%, rgba(255, 255, 255, 0.86) 0.55px, transparent 0.95px),
    radial-gradient(circle at 31% 34%, rgba(255, 255, 255, 0.76) 0.55px, transparent 0.95px),
    radial-gradient(circle at 40% 16%, rgba(255, 255, 255, 0.82) 0.55px, transparent 0.95px),
    radial-gradient(circle at 49% 28%, rgba(255, 255, 255, 0.8) 0.55px, transparent 0.95px),
    radial-gradient(circle at 58% 11%, rgba(255, 255, 255, 0.84) 0.55px, transparent 0.95px),
    radial-gradient(circle at 67% 36%, rgba(255, 255, 255, 0.74) 0.55px, transparent 0.95px),
    radial-gradient(circle at 76% 15%, rgba(255, 255, 255, 0.82) 0.55px, transparent 0.95px),
    radial-gradient(circle at 86% 29%, rgba(255, 255, 255, 0.78) 0.55px, transparent 0.95px),
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.86) 0.55px, transparent 0.95px),
    radial-gradient(circle at 10% 58%, rgba(255, 255, 255, 0.82) 0.55px, transparent 0.95px),
    radial-gradient(circle at 19% 73%, rgba(255, 255, 255, 0.76) 0.55px, transparent 0.95px),
    radial-gradient(circle at 28% 64%, rgba(255, 255, 255, 0.84) 0.55px, transparent 0.95px),
    radial-gradient(circle at 36% 82%, rgba(255, 255, 255, 0.78) 0.55px, transparent 0.95px),
    radial-gradient(circle at 45% 59%, rgba(255, 255, 255, 0.86) 0.55px, transparent 0.95px),
    radial-gradient(circle at 54% 74%, rgba(255, 255, 255, 0.74) 0.55px, transparent 0.95px),
    radial-gradient(circle at 63% 61%, rgba(255, 255, 255, 0.82) 0.55px, transparent 0.95px),
    radial-gradient(circle at 72% 79%, rgba(255, 255, 255, 0.78) 0.55px, transparent 0.95px),
    radial-gradient(circle at 81% 63%, rgba(255, 255, 255, 0.84) 0.55px, transparent 0.95px),
    radial-gradient(circle at 90% 77%, rgba(255, 255, 255, 0.76) 0.55px, transparent 0.95px),
    radial-gradient(circle at 97% 58%, rgba(255, 255, 255, 0.82) 0.55px, transparent 0.95px);
  opacity: 0.46;
  animation: skyFieldTwinkle 9.5s ease-in-out infinite;
}

.sky-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky-line {
  stroke: rgba(225, 212, 176, 0.35);
  stroke-width: 0.35;
}

.sky-line.is-faint {
  stroke: rgba(219, 209, 180, 0.2);
  stroke-width: 0.26;
}

.sky-line.is-active {
  stroke: rgba(244, 229, 191, 0.8);
  stroke-width: 0.45;
}

.sky-nodes {
  position: absolute;
  inset: 0;
}

.sky-placeholder {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(236, 231, 221, 0.9);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  padding: 1rem;
}

.star-point {
  position: absolute;
  border-radius: 50%;
  border: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #eadfb4 44%, #b08d43 100%);
  box-shadow:
    0 0 0 1px rgba(255, 249, 236, 0.22),
    0 0 9px rgba(243, 217, 132, 0.68),
    0 0 20px rgba(243, 217, 132, 0.22);
  cursor: pointer;
  animation: starPulse 5.2s ease-in-out infinite;
}

.star-point.star-type-reflection {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #ece7d7 46%, #c8bca5 100%);
}

.star-point.star-type-offsite {
  background: radial-gradient(circle at 36% 30%, #fff7da 0%, #f1d08a 48%, #c39130 100%);
  box-shadow:
    0 0 0 1px rgba(255, 242, 201, 0.35),
    0 0 12px rgba(246, 210, 119, 0.7),
    0 0 28px rgba(231, 175, 74, 0.24);
}

.star-point.star-type-photo {
  background: radial-gradient(circle at 36% 30%, #f6fbff 0%, #bdd2e8 48%, #6f8fae 100%);
}

.star-point.star-type-milestone {
  background: radial-gradient(circle at 36% 30%, #fefefe 0%, #e7e7e9 48%, #a4adb8 100%);
}

.star-point.star-type-voice {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #d9ecff 48%, #6b8ab0 100%);
  animation: starPulse 4.4s ease-in-out infinite, voicePulse 2.8s ease-in-out infinite;
}

.star-point.star-type-identity {
  background: radial-gradient(circle at 36% 30%, #fff8e6 0%, #ecd6a1 50%, #af8242 100%);
  box-shadow:
    0 0 0 2px rgba(246, 232, 191, 0.38),
    0 0 15px rgba(243, 211, 133, 0.72),
    0 0 34px rgba(241, 191, 87, 0.32);
  z-index: 2;
}

.identity-label {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.74rem;
  color: rgba(242, 234, 218, 0.95);
  letter-spacing: 0.03em;
}

.star-point.member-colored {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #d9dce8 54%, var(--member-star-color, #8aa6d1) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 12px rgba(155, 181, 218, 0.64),
    0 0 24px rgba(112, 137, 177, 0.3);
}

.star-point:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.star-point.has-media {
  box-shadow:
    0 0 0 2px rgba(244, 231, 196, 0.33),
    0 0 14px rgba(243, 217, 132, 0.74),
    0 0 24px rgba(243, 217, 132, 0.28);
}

.star-point.multi-tag {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #dfd8ff 44%, #8d7cb1 100%);
}

.star-point.is-selected {
  box-shadow:
    0 0 0 2px rgba(252, 243, 216, 0.65),
    0 0 16px rgba(251, 229, 170, 0.8),
    0 0 28px rgba(251, 229, 170, 0.32);
}

.star-point.in-selected-constellation {
  filter: brightness(1.2);
}

.star-point.is-historical {
  filter: saturate(0.82);
}

.star-point.is-anchor {
  background: radial-gradient(circle at 36% 30%, #fffdf4 0%, #f3dfad 48%, #c99747 100%);
  box-shadow:
    0 0 0 1px rgba(251, 236, 189, 0.52),
    0 0 12px rgba(245, 203, 112, 0.82),
    0 0 24px rgba(230, 170, 74, 0.38);
  animation: starPulse 5.8s ease-in-out infinite, anchorPulse 6.4s ease-in-out infinite;
}

.star-point:focus-visible {
  outline: 2px solid #f4e2ad;
  outline-offset: 2px;
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.84;
  }

  50% {
    opacity: 0.96;
  }
}

@keyframes voicePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(200, 230, 255, 0.7));
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(200, 230, 255, 0.96));
  }
}

@keyframes anchorPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(246, 220, 147, 0.45));
  }

  50% {
    filter: drop-shadow(0 0 7px rgba(246, 220, 147, 0.72));
  }
}

@keyframes skyFieldTwinkle {
  0%,
  100% {
    opacity: 0.34;
    filter: brightness(0.95);
  }

  35% {
    opacity: 0.52;
    filter: brightness(1.04);
  }

  68% {
    opacity: 0.41;
    filter: brightness(0.98);
  }
}

.constellation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2rem;
}

.constellation-chip {
  border: 1px solid #d7c7ab;
  background: rgba(248, 243, 232, 0.8);
  color: #3b352f;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.constellation-chip span {
  color: #6a614f;
  font-size: 0.75rem;
  margin-left: 0.2rem;
}

.constellation-chip.is-active {
  background: #e8dbc2;
  color: #27221d;
}

.sky-detail-panel {
  border: 1px solid #d6c8b0;
  border-radius: 12px;
  background: #fbf7ef;
  padding: 0.9rem;
  align-self: start;
}

.sky-detail-panel h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.35rem;
}

.sky-detail-panel p {
  margin: 0.4rem 0 0;
}

.sky-access-tools {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sky-list-panel {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  border: 1px solid #d7c9b4;
  border-radius: 12px;
  padding: 0.9rem;
  background: #f9f3e7;
}

.sky-list-panel h3 {
  margin: 0;
  font-size: 1.2rem;
}

.sky-fallback-list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.sky-list-button {
  width: 100%;
  border: 1px solid #d5c7b1;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  text-align: left;
  background: #fffdf8;
  color: #3d3833;
  cursor: pointer;
}

.universe-placeholder {
  min-height: 280px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 20%, rgba(118, 135, 173, 0.2), rgba(118, 135, 173, 0)),
    linear-gradient(155deg, #233041, #17212f 72%);
  color: #ece5d5;
  padding: 1rem;
}

.universe-placeholder h3 {
  margin: 0;
  color: #f4ebd8;
}

.universe-placeholder p {
  margin: 0.6rem 0 0;
  max-width: 46ch;
}

.universe-points {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.universe-point {
  border: 1px solid rgba(222, 210, 182, 0.35);
  border-radius: 10px;
  padding: 0.7rem;
  background: rgba(24, 32, 44, 0.5);
}

.universe-point.is-offsite-anchor {
  border-color: rgba(235, 199, 122, 0.55);
  background: rgba(43, 35, 21, 0.46);
}

.members-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.member-card {
  border: 1px solid #d6c9b3;
  border-radius: 12px;
  background: #fbf7ef;
  padding: 0.8rem;
  display: block;
  text-decoration: none;
  color: inherit;
}

.member-card-link {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.member-card-link:hover,
.member-card-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(34, 29, 25, 0.09);
  border-color: #baa98d;
}

.member-card-link:focus-visible {
  outline: 2px solid var(--color-dusty-blue);
  outline-offset: 2px;
}

.member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5d8be, #ccd7de);
  border: 1px solid #ccbda6;
  margin-bottom: 0.62rem;
}

.member-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-fallback {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #3b342e;
}

.member-name {
  margin: 0;
  font-weight: 700;
  color: #26211d;
}

.member-preview {
  margin: 0.35rem 0 0;
  color: #4d463f;
  font-size: 0.88rem;
}

.member-bio-link {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #465772;
}

.member-bio-card {
  background: linear-gradient(165deg, #f7efdf, #efe5d3 56%, #e7decd);
}

.member-bio-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 1rem 1.2rem;
  align-items: start;
}

.member-bio-photo-wrap {
  display: grid;
  gap: 0.8rem;
}

.member-bio-photo {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #cdbfa9;
}

.member-bio-photo-fallback {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #cdbfa9;
  background: linear-gradient(160deg, #e7dcc8, #d8cab2);
  font-family: var(--serif);
  font-size: 2.2rem;
  color: #4b4338;
}

.member-bio-fields {
  display: grid;
  gap: 0.6rem;
}

.reflections-year-group {
  margin-top: 0.9rem;
}

.reflections-year-heading {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #2f2923;
}

.reflection-admin-actions {
  margin-top: 0.55rem;
}

.reflection-admin-actions .btn {
  margin-right: 0.45rem;
}

.anchor-pill {
  display: inline-block;
  border: 1px solid #ccbfa8;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: #5a5248;
  background: #f4ede0;
}

.anchor-pill.is-anchor {
  border-color: #b99b55;
  background: #efe2bf;
  color: #5d4b25;
}

.reflections-footer-actions .reflection-admin-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.delete-selectable-list {
  max-height: min(45vh, 420px);
  overflow: auto;
  border: 1px solid #d4c7b1;
  border-radius: 12px;
  padding: 0.8rem;
  background: #f7f2e8;
}

.delete-selectable-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  color: #3a342d;
  font-size: 0.95rem;
}

.delete-selectable-item:last-child {
  margin-bottom: 0;
}

.story-growth {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.growth-chip {
  margin: 0;
  font-size: 0.9rem;
  color: #39342e;
  border: 1px solid #d3c6b2;
  border-radius: 999px;
  padding: 0.45rem 0.76rem;
  background: #f8f2e6;
}

.future-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.future-item {
  border: 1px dashed #bbad96;
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(165deg, #efe6d5, #e4e9e1);
  opacity: 0.9;
}

.future-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #28231f;
}

.future-item p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.tag-fieldset {
  border: 1px solid #cabfad;
  border-radius: 10px;
  padding: 0.75rem;
}

.tag-fieldset legend {
  font-weight: 600;
  color: #3d3732;
  padding: 0 0.4rem;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #d7c9b4;
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  background: #f8f1e4;
  font-size: 0.86rem;
}

.tag-option input {
  width: auto;
  margin: 0;
}

.memory-detail {
  display: grid;
  gap: 0.6rem;
}

.memory-detail-text {
  margin: 0;
  color: #2f2a25;
  line-height: 1.7;
  white-space: pre-wrap;
}

.memory-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.memory-detail-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8ccb8;
}

body[data-archive-state='early'] .sky-field-wrap {
  box-shadow: inset 0 8px 25px rgba(8, 11, 17, 0.45), 0 0 0 1px rgba(213, 196, 156, 0.25);
}

body[data-archive-state='growing'] .sky-field-wrap {
  box-shadow:
    inset 0 8px 25px rgba(8, 11, 17, 0.45),
    0 0 0 1px rgba(214, 188, 116, 0.3),
    0 0 30px rgba(112, 127, 170, 0.18);
}

body[data-archive-state='richer'] .sky-field-wrap {
  box-shadow:
    inset 0 8px 25px rgba(8, 11, 17, 0.45),
    0 0 0 1px rgba(227, 199, 122, 0.42),
    0 0 42px rgba(137, 162, 199, 0.22);
}

.recent-list {
  display: grid;
  gap: 0.8rem;
}

.memory-item {
  position: relative;
  border: 1px solid #d7cfc2;
  border-radius: 12px;
  padding: 0.7rem;
  background: #faf7f1;
}

.memory-delete-btn {
  position: absolute;
  top: 0.38rem;
  right: 0.38rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #ccbda7;
  border-radius: 999px;
  background: #f3e9d9;
  color: #5e5348;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.memory-delete-btn:hover,
.memory-delete-btn:focus-visible {
  background: #eadcc7;
  border-color: #bda78a;
}

.memory-date {
  margin: 0;
  font-size: 0.8rem;
  color: #6a635d;
}

.memory-preview {
  margin: 0.35rem 0 0;
}

.memory-thumb {
  margin-top: 0.5rem;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d9cfbf;
}

.offsite-dialog {
  width: min(620px, 100% - 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: #fbf8f2;
}

.offsite-dialog::backdrop {
  background: rgba(22, 18, 14, 0.36);
}

.form-error {
  color: #d8928e;
}

.wizard-nav {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.afu-nudge {
  margin-bottom: 1.1rem;
}

.afu-shell {
  background: linear-gradient(180deg, #f8f2e6, #f2e8d8);
}

.afu-nudge-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1rem;
  align-items: start;
}

.afu-nudge-actions {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.bar-wrap {
  margin-top: 0.4rem;
  width: 100%;
  height: 8px;
  background: #ebe1cf;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9f7b33, #c19a4a);
}

.journey-tracker-card {
  background: linear-gradient(160deg, #f7f0e3, #efe5d4 64%, #e2e8df);
}

.journey-stage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.journey-stage-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journey-stage-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.6rem;
  border: 1px solid #d4c8b3;
  border-radius: 10px;
  background: rgba(253, 249, 242, 0.72);
}

.journey-stage-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  color: inherit;
}

.journey-stage-link:hover,
.journey-stage-link:focus-visible {
  text-decoration: none;
}

.journey-stage-item.is-active {
  border-color: #a8833d;
  background: #f6efde;
}

.journey-stage-item.is-complete {
  border-color: rgba(90, 117, 97, 0.45);
  background: #ebf2ea;
}

.journey-stage-marker {
  width: 1.35rem;
  text-align: center;
  font-weight: 700;
  color: #4c4339;
}

.journey-stage-title {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.journey-stage-subtitle {
  margin: 0.08rem 0 0;
  font-size: 0.83rem;
  color: #666058;
}

.journey-stage-card .wizard-nav {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.journey-prompt-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: #4f4a43;
  display: grid;
  gap: 0.28rem;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.72rem;
  align-items: end;
}

.chip-list {
  display: grid;
  gap: 0.52rem;
}

.chip-item {
  border: 1px solid #d7ccb9;
  border-radius: 12px;
  padding: 0.55rem 0.68rem;
  background: #faf7f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.chip-title {
  margin: 0;
  font-weight: 700;
}

.chip-description {
  margin: 0.16rem 0 0;
  color: #645e56;
  font-size: 0.88rem;
}

.btn-small {
  padding: 0.42rem 0.72rem;
  font-size: 0.82rem;
}

.artifact-card {
  border: 1px solid #d7cab5;
  border-radius: 14px;
  background: linear-gradient(160deg, #f5ecdb, #efe4d0);
  padding: 0.82rem 0.92rem;
}

.artifact-copy {
  white-space: pre-line;
}

.offsite-plan-block {
  border: 1px solid #d6cab7;
  border-radius: 12px;
  padding: 0.72rem;
  background: #f8f3e8;
}

.offsite-plan-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.recording-controls {
  border: 1px solid #d8ccba;
  border-radius: 12px;
  padding: 0.66rem;
  background: #f9f4ea;
  display: grid;
  gap: 0.56rem;
  justify-items: start;
}

.offsite-story-hero {
  background: linear-gradient(155deg, #f5ecdb, #efe4d0 62%, #e4eadf);
}

.offsite-share-controls {
  background: #faf5eb;
}

.offsite-story-sheet {
  background:
    linear-gradient(rgba(252, 248, 240, 0.9), rgba(252, 248, 240, 0.9)),
    repeating-linear-gradient(0deg, rgba(88, 80, 70, 0.05) 0 1px, transparent 1px 10px);
  border: 1px solid #d8cbb7;
}

.story-section + .story-section {
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid #ded2bf;
}

.story-section h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.story-section p {
  margin: 0;
}

.offsite-moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.offsite-moment-item {
  margin: 0;
  border: 1px solid #dccfbd;
  border-radius: 12px;
  background: #fbf7ef;
  overflow: hidden;
}

.offsite-moment-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.offsite-moment-item figcaption {
  padding: 0.5rem 0.58rem 0.6rem;
  font-size: 0.84rem;
  color: #5a544d;
}

.offsite-story-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
}

.offsite-crest-wrap {
  display: grid;
  justify-items: start;
}

.offsite-crest-image {
  width: min(240px, 100%);
  border-radius: 12px;
  border: 1px solid #dacdba;
}

.offsite-story-footer {
  margin-top: 1.2rem;
  padding-top: 0.88rem;
  border-top: 1px solid #ddd0bd;
  font-size: 0.82rem;
  color: #6b645d;
  letter-spacing: 0.02em;
}

.first-star-preview {
  margin: 0.8rem 0 1.1rem;
  padding: 0.6rem;
}

.first-star-canvas {
  min-height: 190px;
}

.first-star-node {
  cursor: default;
}

.first-star-node:hover {
  transform: translate(-50%, -50%);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid-2,
  .grid-3,
  .steps-equal,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.9rem;
  }

  h1 {
    font-size: clamp(2.2rem, 8.2vw, 3.1rem);
    max-width: 17ch;
  }

  .section-head h2 {
    font-size: clamp(1.78rem, 6vw, 2.5rem);
  }

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

  .timeline-grid::before {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 1.25rem;
    top: 68px;
    width: min(320px, calc(100% - 2.5rem));
    padding: 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #f8f3ea;
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.always-open {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .members-head,
  .sky-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sky-layout,
  .sky-list-panel {
    grid-template-columns: 1fr;
  }

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

  .sky-toolbar {
    grid-template-columns: 1fr;
  }

  .sky-year input[type='range'] {
    width: 100%;
  }

  .afu-nudge-card {
    grid-template-columns: 1fr;
  }

  .journey-stage-list.compact {
    grid-template-columns: 1fr;
  }

  .sky-canvas {
    min-height: 320px;
  }

  .dashboard-main {
    padding-top: 1.5rem;
  }
}

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

@media print {
  .site-header,
  .offsite-share-controls,
  .btn {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .offsite-story-sheet {
    border: 0;
    box-shadow: none;
    background: #fff;
  }
}
