*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #05060e;
  color: #c8cce0;
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 64px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --void: #05060e;
  --panel: #0e1020;
  --ink: #e8eaf4;
  --muted: #8a90a8;
  --nebula: #c9a0ff;
  --cyan: #7ec8e8;
  --line: #1a1e32;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ——— HORIZON BAR (full bottom edge, compass-style — not capsule, not tabs-as-pills) ——— */
.horizon {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  background: #03040a;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: stretch;
}
.horizon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nebula), transparent);
  opacity: 0.4;
}
.horizon a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
  transition: color 0.15s, background 0.15s;
}
.horizon a:last-child { border-right: none; }
.horizon a .deg {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  opacity: 0.7;
}
.horizon a:hover { color: var(--ink); background: var(--panel); }
.horizon a.on {
  color: var(--nebula);
  background: rgba(201,160,255,0.08);
}
.horizon a.on .deg { color: var(--nebula); opacity: 1; }

.mark {
  position: fixed;
  top: 18px;
  left: 24px;
  z-index: 90;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nebula);
}
.mark strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* ——— ZENITH: full-bleed sky + centered title ——— */
.zenith {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px;
  overflow: hidden;
}
.zenith .sky {
  position: absolute;
  inset: 0;
}
.zenith .sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: brightness(0.7) saturate(1.1);
}
.zenith .haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, #05060e 75%);
}
.zenith .core {
  position: relative;
  z-index: 2;
  max-width: 28ch;
}
.zenith .core .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.zenith h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.zenith p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— SWEEP: night log vertical ——— */
.sweep {
  max-width: 600px;
  margin: 0 auto;
  padding: 88px 28px 72px;
}
.sweep .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nebula);
  margin-bottom: 8px;
}
.sweep h1 {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
}
.log-entry {
  border-left: 2px solid var(--line);
  padding: 0 0 28px 24px;
  position: relative;
}
.log-entry:last-child { padding-bottom: 0; }
.log-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(126,200,232,0.5);
}
.log-entry .ts {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--cyan);
  margin-bottom: 4px;
}
.log-entry h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.log-entry p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— CATALOG: horizontal snap scroll ——— */
.catalog {
  padding: 88px 0 72px;
}
.catalog .head {
  padding: 0 28px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.catalog .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nebula);
  margin-bottom: 8px;
}
.catalog h1 {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
}
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 28px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail .obj {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.rail .obj img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: saturate(1.15);
}
.rail .obj .body {
  padding: 16px;
}
.rail .obj .id {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.rail .obj h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.rail .obj p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— ALIGN: polar circle contact ——— */
.align {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 72px;
}
.polar {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.polar .ring {
  width: 72px;
  height: 72px;
  border: 2px solid var(--nebula);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(201,160,255,0.08), 0 0 30px rgba(126,200,232,0.12);
}
.polar .ring span {
  font-size: 1.4rem;
  color: var(--nebula);
}
.polar h1 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.polar .meta {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.polar .meta a { color: var(--cyan); font-weight: 600; }
.polar label {
  display: block;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.polar input,
.polar textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
  border-radius: 2px;
}
.polar input:focus,
.polar textarea:focus {
  outline: none;
  border-color: var(--nebula);
}
.polar textarea { min-height: 88px; resize: vertical; }
.polar button {
  width: 100%;
  padding: 12px;
  background: var(--nebula);
  color: var(--void);
  border: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.polar button:hover { filter: brightness(1.1); }

.ft {
  text-align: center;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.ft strong { color: var(--ink); }

@media (max-width: 600px) {
  .horizon a { font-size: 0.55rem; letter-spacing: 0.06em; }
  .horizon a .deg { display: none; }
  .mark { left: 14px; top: 12px; }
}
