@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.97);
  --bg-soft: rgba(245, 246, 248, 0.9);
  --paper: #ffffff;
  --paper-warm: #fcfcfc;
  --ink: #101114;
  --line: rgba(16, 17, 20, 0.1);
  --line-strong: rgba(16, 17, 20, 0.22);
  --text: #101114;
  --text-muted: #3f444b;
  --text-soft: #707782;
  --gold: #111111;
  --gold-soft: rgba(17, 17, 17, 0.05);
  --gold-glow: rgba(17, 17, 17, 0.04);
  --danger: #b85c5c;
  --success: #587863;
  --blue: #5d7798;
  --shadow: 0 22px 58px rgba(15, 18, 25, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 18, 25, 0.045);
  --max: 1328px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.01) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 17, 20, 0.01) 1px, transparent 1px),
    radial-gradient(
      circle at 14% 0%,
      rgba(16, 17, 20, 0.035),
      transparent 18%
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(52, 73, 104, 0.025),
      transparent 16%
    ),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 58%, #f6f7f8 100%);
  background-size:
    40px 40px,
    40px 40px,
    auto,
    auto,
    auto;
  color: var(--text);
  font-family: "Inter", "Noto Serif SC", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.hero-title,
.milestone-title,
.cover-mark strong,
.cover-title-block strong,
.section-heading h2,
.page-hero h1,
.loading-mark strong,
.footer h3 {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-weight: 600;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

.sky-shell,
.loading-overlay,
.modal-shell {
  position: fixed;
  inset: 0;
}

.sky-shell {
  pointer-events: none;
  z-index: -2;
}

.sky-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 17, 20, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 20, 0.012) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 82%);
  opacity: 0.34;
}

.sky-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.sky-glow-a {
  width: 340px;
  height: 340px;
  top: -110px;
  left: 10%;
  background: rgba(16, 17, 20, 0.03);
}

.sky-glow-b {
  width: 360px;
  height: 360px;
  right: 6%;
  top: 30%;
  background: rgba(74, 93, 124, 0.022);
}

.loading-overlay {
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.loading-overlay:not(.active) {
  opacity: 0;
  visibility: hidden;
}

.loading-mark {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
}

.loading-mark-en,
.eyebrow,
.hero-kicker,
.footer-mark {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-kicker {
  display: inline-flex;
  margin-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.footer-mark {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.loading-mark strong {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.modal-shell {
  z-index: 1400;
  display: none;
}

.modal-shell.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 22, 0.16);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  margin: 8vh auto 0;
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.98));
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.modal-card h3 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.modal-body {
  color: var(--text-muted);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  box-shadow: 0 8px 18px rgba(16, 17, 20, 0.03);
}

.nav-inner,
.section,
.hero,
.page-hero,
.footer {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 94px;
}

.nav-logo {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
  gap: 18px;
}

.nav-logo::after {
  content: "";
  width: 1px;
  height: 24px;
  background: rgba(16, 17, 20, 0.1);
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(260px, 20vw, 360px);
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-logo-mark img {
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
  opacity: 1;
}

.brand-sigil {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(16, 17, 20, 0.14);
  background: radial-gradient(
    circle,
    rgba(16, 17, 20, 0.04),
    transparent 70%
  );
}

.brand-sigil::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 214deg,
    transparent 0 18%,
    rgba(16, 17, 20, 0.9) 18% 70%,
    transparent 70% 100%
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.nav-links a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--text);
}

.nav-cta-item {
  color: var(--text);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 0 auto;
  background: var(--text);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(720px, 82vh, 880px);
  padding: 112px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 54px 1% 28px auto;
  width: min(44vw, 560px);
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-right: none;
  border-radius: 36px 0 0 36px;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  background-size:
    28px 100%,
    auto;
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 132px;
  width: 84px;
  height: 1px;
  background: rgba(16, 17, 20, 0.28);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 390px);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero-layout > * {
  min-width: 0;
}

.hero-content {
  min-width: 0;
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-edition-line,
.hero-title-note,
.hero-ledger,
.cover-topline,
.cover-stamp,
.cover-title-block,
.cover-meta {
  font-family: "Inter", sans-serif;
}

.hero-edition-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.12);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-edition-line span:first-child {
  color: var(--text);
  font-weight: 600;
}

.hero-edition-line span + span {
  color: var(--text-soft);
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: end;
  margin-top: 28px;
}

.hero-title-row > * {
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(4.9rem, 10vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 0.88;
  color: var(--ink);
}

.hero-title-note {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 0 0 8px 18px;
  border-left: 1px solid rgba(16, 17, 20, 0.16);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-title-note strong {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.hero-cover-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 520px;
  max-width: 390px;
  margin-left: auto;
  padding: 30px 28px;
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 251, 252, 0.98));
  box-shadow: 0 22px 54px rgba(16, 17, 20, 0.06);
  overflow: hidden;
  transform: translateY(12px);
}

.hero-cover-card::before,
.hero-cover-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-cover-card::before {
  inset: 14px;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: 8px;
}

.hero-cover-card::after {
  right: -70px;
  bottom: -76px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 31, 47, 0.08), transparent 66%);
}

.cover-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.1);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cover-topline span:first-child,
.cover-stamp {
  color: var(--text);
}

.cover-mark {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.cover-mark-en {
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cover-mark strong {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 2.8rem;
  line-height: 0.9;
  color: var(--ink);
}

.cover-logo {
  display: block;
  width: min(100%, 240px);
  margin: 2px 0 2px;
  opacity: 0.94;
}

.cover-stamp {
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(16, 17, 20, 0.18);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(16, 17, 20, 0.03);
}

.cover-title-block {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(16, 17, 20, 0.1);
  border-bottom: 1px solid rgba(16, 17, 20, 0.1);
}

.cover-title-block span {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cover-title-block strong {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--ink);
}

.hero-cover-card p {
  max-width: 100%;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.cover-meta {
  display: grid;
  gap: 14px;
  align-self: end;
  margin: 8px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.cover-meta div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(76, 62, 39, 0.1);
}

.cover-meta dt {
  color: var(--text-soft);
  text-transform: uppercase;
}

.cover-meta dd {
  margin: 0;
  color: var(--text);
}

.hero-lines,
.hero-creed {
  margin: 20px 0 0;
  line-height: 1.48;
}

.hero-lines {
  max-width: 420px;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  color: var(--text-muted);
}

.hero-creed {
  max-width: 640px;
  width: 100%;
  margin-top: 26px;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  color: var(--text);
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 26px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.hero-explainer {
  width: 100%;
  max-width: 620px;
  margin-top: 20px;
  padding-left: 18px;
  border-left: 1px solid rgba(16, 17, 20, 0.14);
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 36px;
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 640px;
  margin-top: 36px;
  border-top: 1px solid rgba(16, 17, 20, 0.12);
  border-left: 1px solid rgba(16, 17, 20, 0.08);
}

.hero-ledger div {
  display: grid;
  gap: 5px;
  min-height: 102px;
  padding: 16px 16px 18px;
  border-right: 1px solid rgba(16, 17, 20, 0.08);
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.hero-ledger span {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.hero-ledger strong {
  color: var(--text);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

.hero-ledger small {
  color: var(--text-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.hero-star-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  font-weight: 600;
}

.hero-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 760px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 17, 20, 0.1);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  line-height: 1.8;
  color: var(--text-soft);
}

.hero-types span {
  position: relative;
  padding-right: 14px;
}

.hero-types span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(16, 17, 20, 0.26);
  transform: translateY(-50%);
}

.hero-stars {
  display: none;
}

.hero-star {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
}

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

.btn-primary {
  background: #111111;
  border-color: #111111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 17, 20, 0.16);
  color: var(--text);
}

.btn-danger {
  background: rgba(184, 92, 92, 0.08);
  border-color: rgba(184, 92, 92, 0.28);
  color: #9e4c4c;
}

.text-link {
  border: none;
  background: none;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.section {
  padding: 92px 0;
}

.fit-section,
.preview-section,
.systems-section {
  position: relative;
}

.fit-section::before,
.preview-section::before,
.systems-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 48px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 17, 20, 0.12),
    transparent
  );
}

.section-heading {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 720px;
  margin-bottom: 42px;
  padding-top: 20px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: rgba(16, 17, 20, 0.18);
}

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.section-heading p,
.page-hero p,
.concept-card p,
.journal-card p,
.legacy-card p,
.about-card p,
.bullet-card,
.agent-card p,
.lineage-card p,
.rich-card p,
.milestone-meta-block p,
.milestone-detail p {
  color: var(--text-muted);
  font-size: 1.01rem;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.page-hero {
  width: 100%;
  min-width: 0;
  max-width: 900px;
  padding: 104px 0 32px;
  border-top: 1px solid rgba(16, 17, 20, 0.08);
}

.compact-hero {
  min-height: auto;
}

.page-hero-en {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.preview-section,
.split-section,
.triad-section,
.star-road-layout,
.toolbar,
.admin-toolbar,
.form-grid,
.footer-grid,
.journal-grid,
.legacy-grid,
.about-grid,
.role-grid,
.bullet-cards,
.agent-list {
  display: grid;
  gap: 24px;
}

.star-preview,
.card-stack,
.archive-grid,
.inheritance-list {
  display: grid;
  gap: 22px;
}

.fit-grid,
.systems-grid {
  display: grid;
  gap: 24px;
}

.split-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
}

.triad-section,
.journal-grid,
.legacy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

.about-card-wide {
  grid-column: span 2;
}

.concept-card,
.fit-card,
.legacy-card,
.journal-card,
.about-card,
.lineage-card,
.rich-card,
.notice-card,
.milestone-card,
.metric-card,
.role-card,
.agent-card,
.bullet-card,
.admin-stat,
.login-card,
.success-card,
.empty-state,
.star-legend,
.star-map-panel,
.field-input,
.milestone-form,
.milestone-shell,
.admin-table-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.98));
  box-shadow: var(--shadow-soft);
}

.concept-card,
.fit-card,
.legacy-card,
.journal-card,
.about-card,
.lineage-card,
.rich-card,
.milestone-card,
.agent-card,
.bullet-card,
.admin-stat,
.success-card,
.empty-state,
.star-legend,
.star-map-panel,
.milestone-shell,
.admin-table-wrap {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.fit-card h3,
.concept-card h3,
.legacy-card h3,
.journal-card h3,
.about-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fit-card p,
.concept-card p {
  margin: 0;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.fit-card,
.concept-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
}

.fit-grid {
  counter-reset: fit-index;
}

.fit-card::before {
  counter-increment: fit-index;
  content: counter(fit-index, decimal-leading-zero);
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
}

.concept-card {
  padding-top: 28px;
}

.concept-card .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.quote-card {
  position: relative;
  overflow: hidden;
}

.quote-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(24, 31, 47, 0.08), transparent 64%);
}

.star-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.star-preview-card,
.latest-card,
.inheritance-card,
.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(16, 17, 20, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.star-preview-card::before,
.latest-card::before,
.inheritance-card::before,
.archive-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: rgba(16, 17, 20, 0.12);
  pointer-events: none;
}

.star-preview-head,
.archive-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.star-dot {
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border-radius: 50%;
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 38%, transparent);
}

.star-preview-card h3,
.latest-card h3,
.inheritance-card h3,
.archive-card h3,
.milestone-title,
.admin-table h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.35;
}

.star-preview-card p,
.latest-card p,
.inheritance-card p,
.archive-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.meta-line,
.metric-line,
.timeline-item,
.detail-grid,
.milestone-side .metric-card {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}

.meta-line,
.metric-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--text-soft);
}

.section-foot {
  margin-top: 18px;
}

.star-road-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.page#page-star-road {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 16% 10%,
      rgba(112, 131, 218, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(211, 180, 109, 0.12),
      transparent 18%
    ),
    linear-gradient(180deg, #070c16 0%, #0a1221 48%, #0a0f1c 100%);
  color: #f2ede3;
}

.page#page-star-road::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 255, 255, 0.72) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 32% 74%,
      rgba(255, 255, 255, 0.48) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 68% 22%,
      rgba(255, 255, 255, 0.56) 0 1.5px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 86% 68%,
      rgba(255, 255, 255, 0.4) 0 1px,
      transparent 1px
    );
  pointer-events: none;
  opacity: 0.5;
}

#page-star-road .page-hero,
#page-star-road .section {
  position: relative;
  z-index: 1;
}

#page-star-road .page-hero {
  padding-top: 108px;
}

#page-star-road .page-hero h1,
#page-star-road .star-legend h3 {
  color: #f8f2e8;
}

#page-star-road .page-hero p,
#page-star-road .star-legend p,
#page-star-road .star-legend li,
#page-star-road .star-tooltip p {
  color: rgba(242, 237, 227, 0.78);
}

#page-star-road .eyebrow,
#page-star-road .page-hero-en {
  color: #d4b57a;
}

#page-star-road .star-map-panel,
#page-star-road .star-legend {
  border-color: rgba(212, 181, 122, 0.14);
  background: linear-gradient(
    180deg,
    rgba(10, 13, 22, 0.76),
    rgba(7, 10, 17, 0.9)
  );
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

#page-star-road .star-tooltip {
  border-color: rgba(212, 181, 122, 0.16);
  background: rgba(7, 10, 17, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.star-map {
  position: relative;
  min-height: 760px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 16% 16%,
      rgba(127, 149, 255, 0.14),
      transparent 22%
    ),
    radial-gradient(
      circle at 72% 24%,
      rgba(255, 216, 142, 0.1),
      transparent 16%
    ),
    radial-gradient(
      circle at 56% 74%,
      rgba(145, 115, 208, 0.1),
      transparent 15%
    ),
    linear-gradient(180deg, rgba(8, 10, 17, 0.95), rgba(7, 8, 14, 0.98));
  overflow: hidden;
}

.star-map.is-dragging {
  cursor: grabbing;
}

.star-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 50% 46%, rgba(120, 145, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.star-map-meta {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(228, 219, 205, 0.72);
}

.star-map-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(228, 219, 205, 0.72);
}

.graph-reset-button {
  border: 1px solid rgba(233, 225, 214, 0.16);
  border-radius: 999px;
  background: rgba(247, 240, 229, 0.08);
  color: #f5efe5;
  padding: 10px 14px;
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.graph-reset-button:hover,
.graph-reset-button:focus-visible {
  background: rgba(247, 240, 229, 0.14);
  border-color: rgba(233, 225, 214, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.star-viewport,
.star-links,
.star-node-layer {
  position: absolute;
  inset: 0;
}

.star-viewport {
  z-index: 1;
  transform-origin: 0 0;
  will-change: transform;
  cursor: grab;
}

.star-links {
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star-link {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.star-link--core {
  stroke-dasharray: 0 0;
}

.star-link--field,
.star-link--relation {
  stroke-dasharray: 2 6;
}

.star-link--fragment,
.star-link--data,
.star-link--reason,
.star-link--asset,
.star-link--note,
.star-link--route {
  stroke-dasharray: 1.5 8;
}

.star-node-layer {
  z-index: 2;
}

.star-node {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--node-hit, 24px);
  height: var(--node-hit, 24px);
  transform: translate(-50%, -50%);
  transform-origin: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.star-node-core,
.star-node-center,
.star-node-ring,
.star-node-label,
.star-tooltip {
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease;
}

.star-node-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--node-size, 14px);
  height: var(--node-size, 14px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--node-color, #ffffff);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px var(--node-color, #ffffff);
}

.star-node--milestone {
  --node-hit: calc(var(--node-size, 18px) + 30px);
  position: absolute;
  display: block;
  padding: 0;
  border: none;
  background: none;
  border-radius: 999px;
  cursor: grab;
  color: #f7efe2;
  appearance: none;
  -webkit-appearance: none;
}

.star-node--milestone::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--node-color, #ffffff) 28%, transparent) 0%, transparent 72%);
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
}

.star-node--milestone .star-node-core {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px var(--node-color, #ffffff),
    0 0 36px var(--node-color, #ffffff);
}

.star-node-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--node-size, 14px) * 0.34);
  height: calc(var(--node-size, 14px) * 0.34);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.star-node-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--node-size, 14px) + 18px);
  height: calc(var(--node-size, 14px) + 18px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.78;
  pointer-events: none;
}

.star-node--milestone:hover,
.star-node--milestone:focus-visible,
.star-node--milestone.is-dragging {
  z-index: 6;
  outline: none;
}

.star-node--milestone:hover .star-node-core,
.star-node--milestone:focus-visible .star-node-core,
.star-node--milestone.is-dragging .star-node-core {
  transform: translate(-50%, -50%) scale(1.12);
}

.star-node--milestone:hover .star-node-ring,
.star-node--milestone:focus-visible .star-node-ring,
.star-node--milestone.is-dragging .star-node-ring {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}

.star-node--milestone.is-dragging {
  cursor: grabbing;
}

.star-node--hub,
.star-node--field,
.star-node--fragment {
  pointer-events: none;
}

.star-node--hub {
  --node-hit: calc(var(--node-size, 12px) + 12px);
}

.star-node--hub .star-node-core {
  width: var(--node-size, 12px);
  height: var(--node-size, 12px);
  background: rgba(248, 241, 231, 0.18);
  border: 1px solid rgba(248, 241, 231, 0.32);
  box-shadow:
    0 0 0 1px rgba(248, 241, 231, 0.08),
    0 0 18px rgba(164, 175, 255, 0.18);
}

.star-node-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(240, 234, 224, 0.78);
}

.star-node--field {
  --node-hit: calc(var(--node-size, 8px) + 12px);
}

.star-node--field .star-node-core {
  width: var(--node-size, 8px);
  height: var(--node-size, 8px);
  background: rgba(228, 219, 205, 0.14);
  border: 1px solid rgba(228, 219, 205, 0.22);
  box-shadow:
    0 0 0 1px rgba(228, 219, 205, 0.06),
    0 0 16px rgba(142, 170, 255, 0.12);
}

.star-node--field .star-node-label {
  color: rgba(240, 234, 224, 0.54);
}

.star-node--fragment {
  --node-hit: 14px;
}

.star-node--fragment .star-node-core {
  width: var(--node-size, 5px);
  height: var(--node-size, 5px);
  box-shadow: 0 0 10px var(--node-color, #ffffff);
  opacity: 0.92;
}

.star-node-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  max-width: 150px;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgba(244, 238, 229, 0.12);
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.72);
  color: rgba(248, 242, 233, 0.92);
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.star-node--milestone:hover .star-node-name,
.star-node--milestone:focus-visible .star-node-name,
.star-node--milestone.is-dragging .star-node-name {
  background: rgba(13, 17, 28, 0.9);
  border-color: rgba(244, 238, 229, 0.22);
}

.star-tooltip {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: min(270px, calc(100vw - 80px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  color: #f5efe5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.star-node:hover .star-tooltip,
.star-node:focus-visible .star-tooltip {
  opacity: 1;
}

.star-tooltip strong {
  display: block;
  margin-bottom: 8px;
}

.star-tooltip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.legend-list,
.star-legend ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.graph-note {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 181, 122, 0.14);
}

.graph-note p {
  margin: 0;
}

.star-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.archive-console {
  margin-bottom: 28px;
  padding: 28px 28px 26px;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 249, 250, 0.98));
  box-shadow: var(--shadow-soft);
}

.archive-console-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.archive-console-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.2;
}

.archive-console-head p {
  margin: 0;
  color: var(--text-muted);
}

.toolbar,
.admin-toolbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin-bottom: 0;
}

.submission-intro {
  margin-bottom: 48px;
}

.submission-intro-card {
  width: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 249, 250, 0.98));
  box-shadow: var(--shadow);
}

.submission-intro-card h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  overflow-wrap: anywhere;
}

.submission-intro-card p {
  margin: 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.submission-notes {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.submission-notes li + li {
  margin-top: 8px;
}

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

.archive-grid,
.inheritance-list,
.card-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-card-footer,
.inheritance-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  line-height: 1;
}

.status-sprout {
  color: #4f8f62;
}
.status-active {
  color: #4f8f62;
}
.status-paused {
  color: #a87725;
}
.status-awaiting {
  color: #b7653f;
}
.status-inherited {
  color: #4f729e;
}
.status-proven {
  color: #9b7a32;
}
.status-lost {
  color: #6e7078;
}

.milestone-shell {
  width: min(var(--max), calc(100vw - 32px));
  margin: 94px auto 40px;
  padding: 26px;
}

.milestone-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: "Inter", sans-serif;
  color: var(--text-muted);
}

.milestone-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.milestone-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.milestone-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-family: "Inter", sans-serif;
}

.milestone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.milestone-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 22px;
  margin-top: 28px;
}

.milestone-main,
.milestone-side {
  display: grid;
  gap: 18px;
}

.milestone-block {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.milestone-block h3,
.metric-card h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row dt {
  color: var(--text-soft);
}

.detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.metric-panel {
  display: grid;
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(16, 17, 20, 0.08);
}

.milestone-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(16, 17, 20, 0.04);
  color: var(--text-muted);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-hint {
  margin: -2px 0 2px;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.7;
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 17, 20, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  outline: none;
}

.field-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(16, 17, 20, 0.06);
}

.field-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  min-height: 1.1em;
  color: #b85c5c;
  font-size: 0.82rem;
}

.milestone-form {
  display: grid;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(249, 250, 251, 0.985));
}

.form-section-title {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.1);
}

.form-section-title h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.2;
}

.form-section-title p {
  margin: 0;
  color: var(--text-muted);
}

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

.checkbox-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(16, 17, 20, 0.035);
  color: var(--text-muted);
}

.checkbox-panel label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.login-shell {
  display: flex;
  justify-content: center;
}

.login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.success-card {
  text-align: center;
}

.success-card strong {
  display: block;
  margin: 14px 0 8px;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stat span {
  display: block;
}

.admin-stat .stat-label {
  color: var(--text-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat .stat-num {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button,
.archive-card button,
.inheritance-card button,
.latest-card button,
.star-preview-card button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.admin-pagination .active {
  background: var(--gold-soft);
  border-color: var(--line-strong);
}

.footer {
  padding: 88px 0 76px;
  margin-top: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 248, 250, 0.92));
}

.footer-grid {
  grid-template-columns: 1.65fr 1fr 1fr 1fr;
  align-items: start;
  gap: 34px;
  padding: 34px 0 0;
  border-top: 1px solid rgba(16, 17, 20, 0.1);
}

.footer h3,
.footer h4 {
  margin: 0 0 10px;
}

.footer h3 {
  font-size: 1.46rem;
}

.footer h4 {
  font-size: 1rem;
}

.footer p,
.footer a {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.84;
}

.page-stage,
.footer-freeze {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-stage {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(16, 17, 20, 0.14);
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.04);
}

.footer-freeze {
  margin-top: 14px;
}

.footer-brand-block {
  max-width: 380px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-sigil {
  width: 42px;
  height: 42px;
}

.footer-logo {
  width: min(100%, 230px);
  margin: 0 0 18px;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.footer-column-label {
  display: block;
  margin-bottom: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-colophon {
  max-width: 320px;
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.notice-card {
  margin-top: 16px;
}

.empty-state {
  text-align: center;
}

.empty-state h3 {
  margin-top: 0;
}

.bullet-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.role-card {
  display: grid;
  place-items: center;
  min-height: 94px;
  border-radius: 18px;
}

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

.principle-block {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.04);
  color: var(--text);
  font-size: 1.02rem;
}

.inheritance-meta,
.archive-meta,
.latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.section-column {
  min-width: 0;
}

@media (max-width: 1180px) {
  .brand-sigil {
    width: 36px;
    height: 36px;
  }

  .nav-logo-mark {
    width: 280px;
  }

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

  .hero-cover-card {
    max-width: 520px;
    min-height: auto;
    transform: none;
  }

  .footer-logo {
    width: 248px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 96px 0 76px;
  }

  .star-preview,
  .fit-grid,
  .systems-grid,
  .triad-section,
  .journal-grid,
  .legacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .star-road-layout,
  .milestone-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-logo::after {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .hero {
    min-height: auto;
    padding: 76px 0 54px;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 10px;
  }

  .split-section,
  .form-grid,
  .fit-grid,
  .systems-grid,
  .archive-grid,
  .inheritance-list,
  .card-stack,
  .admin-stats,
  .bullet-cards,
  .agent-list,
  .role-grid,
  .about-grid,
  .triad-section,
  .journal-grid,
  .legacy-grid,
  .star-preview {
    grid-template-columns: 1fr;
  }

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

  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-title-row {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-title-note {
    min-width: 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(16, 17, 20, 0.14);
    border-left: none;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .section,
  .hero,
  .page-hero,
  .footer {
    width: min(var(--max), calc(100vw - 20px));
  }

  .nav-inner {
    min-height: 78px;
  }

  .nav-logo-mark {
    width: 210px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 40px;
  }

  .hero::before {
    inset: 24px 0 18px auto;
    width: min(40vw, 180px);
  }

  .hero::after {
    top: 98px;
    width: 52px;
  }

  .hero-cover-card {
    gap: 14px;
    padding: 24px;
    border-radius: 12px;
  }

  .hero-cover-card::before {
    inset: 12px;
  }

  .cover-topline {
    display: grid;
  }

  .cover-mark strong {
    font-size: 2.36rem;
  }

  .cover-logo {
    width: 188px;
  }

  .cover-title-block strong {
    font-size: 3.1rem;
  }

  .hero-edition-line {
    gap: 8px;
    padding-bottom: 14px;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .hero-title {
    font-size: clamp(4rem, 24vw, 5.8rem);
    letter-spacing: 0.07em;
  }

  .hero-lines,
  .hero-creed {
    font-size: 1.42rem;
  }

  .hero-lines {
    max-width: 320px;
  }

  .hero-explainer {
    max-width: 100%;
    padding-left: 14px;
    font-size: 0.96rem;
    line-height: 1.82;
  }

  .hero-ledger {
    grid-template-columns: 1fr;
  }

  .hero-ledger div {
    min-height: auto;
    padding: 14px;
  }

  .hero-types {
    gap: 8px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .brand-sigil {
    width: 32px;
    height: 32px;
  }

  .page-stage {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .footer-logo {
    width: 214px;
  }

  .concept-card,
  .fit-card,
  .legacy-card,
  .journal-card,
  .about-card,
  .lineage-card,
  .rich-card,
  .milestone-card,
  .agent-card,
  .bullet-card,
  .admin-stat,
  .success-card,
  .empty-state,
  .star-legend,
  .star-map-panel,
  .milestone-shell,
  .admin-table-wrap,
  .milestone-form,
  .archive-console,
  .submission-intro-card {
    padding: 18px;
  }

  .star-map {
    min-height: 620px;
  }

  .star-map-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .star-map-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .star-tooltip {
    left: 50%;
    top: calc(100% + 14px);
    transform: translateX(-50%);
  }

  .admin-table {
    min-width: 720px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .form-actions,
  .admin-toolbar {
    align-items: stretch;
  }

  .modal-card {
    width: calc(100vw - 16px);
    margin-top: 5vh;
    padding: 22px 18px;
  }
}
