:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #a3a3a3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--bg);
  transition: opacity 0.3s ease;
}

.password-gate.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.gate-logo {
  width: 340px;
  height: auto;
}

.gate-form {
  display: flex;
  gap: 12px;
}

.gate-input {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--muted);
  padding: 6px 2px;
  width: 180px;
  text-align: center;
  outline: none;
}

.gate-input:focus {
  border-bottom-color: var(--ink);
}

.gate-submit {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gate-submit:hover {
  background: var(--ink);
  color: var(--bg);
}

.gate-error {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #c0392b;
  margin: -12px 0 0;
}

button {
  font-family: inherit;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 0;
}

.logo-btn {
  border: none;
  background: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
}

.logo {
  width: 260px;
  height: auto;
  display: block;
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.main-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  border: none;
  background: none;
  padding: 4px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.ooliyu-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.ooliyu-section[hidden] {
  display: none;
}

.stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
}

#viewer {
  display: block;
  width: 100%;
  height: 100%;
}

.loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
}

.part-toggle {
  display: flex;
  justify-content: space-between;
  width: min(640px, 88%);
  margin: 0 auto;
  padding: 0 16px;
  flex-shrink: 0;
  padding-bottom: 48px;
}

.part-link {
  border: none;
  background: none;
  padding: 4px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.manifesto-section {
  display: flex;
  justify-content: center;
  padding: 64px 24px 96px;
  min-height: 60vh;
}

.manifesto-section[hidden] {
  display: none;
}

.manifesto-list {
  list-style: decimal;
  max-width: 520px;
  width: 100%;
  margin: 0;
  padding-left: 1.4em;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.8;
}

.manifesto-list li {
  margin-bottom: 16px;
  padding-left: 6px;
}

.manifesto-list li::marker {
  font-weight: 700;
}
