:root {
  --ink: #071a31;
  --ink-2: #0d2947;
  --panel: #123858;
  --line: rgba(126, 190, 226, 0.32);
  --gold: #f5c64e;
  --gold-2: #e99d24;
  --blue: #73cbed;
  --white: #fffdf7;
  --muted: #c4d7e8;
  --cream: #fff4cf;
  --sky: #dff4ff;
  --navy: #08213b;
  --ok: #75dab0;
  --warn: #f4bd69;
  --danger: #ff8d86;
  --radius: 24px;
  --radius-small: 16px;
  --shadow: 0 28px 80px rgba(3, 19, 37, 0.28);
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(
      circle at 8% 4%,
      rgba(93, 188, 231, 0.28),
      transparent 26rem
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(245, 198, 78, 0.2),
      transparent 24rem
    ),
    linear-gradient(155deg, #0b3151 0, #071a31 42%, #0a2744 100%);
  font:
    16px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-wrap: break-word;
}

button,
a,
select,
summary {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button,
select,
summary {
  cursor: pointer;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.skip {
  position: fixed;
  top: -6rem;
  left: max(1rem, env(safe-area-inset-left));
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--navy);
  background: var(--gold);
}

.skip:focus {
  top: max(1rem, env(safe-area-inset-top));
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar-inner > *,
.hero > *,
.stats > *,
.grid > *,
.flock-studio > *,
.studio-panel > *,
.data-row > *,
.footer-inner > * {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(7, 26, 49, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(2, 17, 32, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.brand-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.09),
    0 16px 32px rgba(2, 17, 32, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-more > summary {
  padding: 0.58rem 0.68rem;
  border: 0;
  border-radius: 10px;
  color: #d4e5f1;
  background: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  list-style: none;
  white-space: nowrap;
}

.nav-more {
  position: relative;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more > summary::after {
  content: " ▾";
  color: var(--gold);
}

.nav-more[open] > summary::after {
  content: " ▴";
}

.nav-more-links {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 26, 49, 0.98);
  box-shadow: var(--shadow);
}

.nav-more-links a {
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-select,
.icon-btn {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 800;
}

.language-select {
  width: 76px;
  padding: 0.5rem 1.8rem 0.5rem 0.72rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 10px 7px;
  color-scheme: dark;
}

.icon-btn {
  min-width: 46px;
  padding: 0.5rem 0.72rem;
}

.menu-btn,
.mobile-panel {
  display: none;
}

main {
  min-height: 0;
}

.page {
  padding: 54px 0 68px;
  animation: enter 0.35s ease both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0.55rem 0 1.2rem;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.25rem);
  text-wrap: balance;
}

h2 {
  margin: 0.6rem 0 1.2rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.lead {
  max-width: 690px;
  color: #e2edf6;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.page > .section-head:first-child {
  max-width: none;
  margin-bottom: 42px;
  padding: clamp(30px, 5vw, 58px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(146, 211, 241, 0.32);
  border-radius: 32px;
  background: linear-gradient(
    118deg,
    rgba(17, 70, 108, 0.96),
    rgba(16, 55, 88, 0.88) 55%,
    rgba(109, 74, 17, 0.6)
  );
  box-shadow: var(--shadow);
}

.page > .section-head:first-child::after {
  position: absolute;
  top: -120px;
  right: -90px;
  width: 260px;
  height: 260px;
  content: "";
  border: 55px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.page > .section-head:first-child h1,
.page > .section-head:first-child h2,
.page > .section-head:first-child p,
.page > .section-head:first-child span {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 60px;
  padding: clamp(28px, 5vw, 70px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 38px;
  color: var(--navy);
  background: linear-gradient(125deg, #fff8dc 0, #ffeaa7 52%, #f2bd47 100%);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  bottom: -250px;
  left: -220px;
  z-index: -1;
  width: 430px;
  height: 430px;
  content: "";
  border: 90px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.hero .eyebrow,
.hero .lead {
  color: #263f57;
}

.hero .eyebrow::before {
  background: #81520a;
}

.hero-title span {
  display: block;
  color: #a16308;
}

.hero-art {
  min-height: 520px;
  align-self: stretch;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 46% 46% 32px 32px;
  background: radial-gradient(
    circle at 50% 35%,
    #dff6ff 0,
    #78d0ee 36%,
    #216a93 72%,
    #0a2a49 100%
  );
  box-shadow: 0 28px 60px rgba(15, 45, 65, 0.3);
}

.hero-art::before {
  position: absolute;
  inset: 5%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 48% 48% 30px 30px;
}

.hero-art img {
  z-index: 1;
  width: auto;
  max-width: 88%;
  height: min(62vh, 560px);
  object-fit: contain;
  filter: drop-shadow(0 26px 24px rgba(2, 24, 41, 0.34));
}

.pulse {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--white);
  background: rgba(7, 26, 49, 0.9);
  font-weight: 800;
}

.pulse i {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 16px var(--ok);
}

.actions,
.download-row,
.pdf-language {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  margin-top: 30px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--white);
  background: var(--ink-2);
  text-align: center;
  text-decoration: none;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.btn.primary {
  border-color: transparent;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.hero .btn:not(.primary) {
  border-color: rgba(8, 33, 59, 0.18);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.52);
}

.hero .actions .btn:nth-child(n + 3) {
  border-color: transparent;
  background: transparent;
  font-weight: 720;
}

.stats,
.grid,
.flow,
.link-list,
.market-grid {
  display: grid;
  gap: 14px;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 42px;
}

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

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

.flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}

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

.stat,
.card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(17, 61, 92, 0.96),
    rgba(8, 37, 66, 0.94)
  );
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.stat:nth-child(even) {
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, #fff8df, #f5e8bb);
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  color: var(--gold);
  font-size: 1.35rem;
}

.stat:nth-child(even) strong {
  color: #945d08;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat:nth-child(even) span {
  color: #50677c;
}

.stat small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.78;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .number,
.flow .card::before {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.flow .card::before {
  counter-increment: step;
  content: "0" counter(step);
}

.status {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(245, 198, 78, 0.28);
  border-radius: 999px;
  background: rgba(245, 198, 78, 0.06);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.status.exists {
  color: var(--ok);
}
.status.building {
  color: var(--blue);
}
.status.planned {
  color: var(--warn);
}

.quote {
  margin: 34px 0;
  padding: 30px;
  border-left: 4px solid var(--gold);
  color: var(--white);
  background: linear-gradient(90deg, rgba(245, 198, 78, 0.14), transparent);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.32;
}

.warning {
  border-color: rgba(255, 179, 92, 0.45);
  background: linear-gradient(
    145deg,
    rgba(70, 39, 20, 0.45),
    rgba(17, 29, 52, 0.9)
  );
}

.data-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.5fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row code {
  max-width: 100%;
  color: #d5e5ff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy {
  min-width: 92px;
  white-space: nowrap;
}

.copy-fallback {
  position: fixed;
  inset: 0 auto auto -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.verify-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--panel);
  text-decoration: none;
  font-weight: 850;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--gold), var(--blue));
}

.event {
  position: relative;
  margin-bottom: 18px;
}

.event h3 {
  margin-bottom: 0.35rem;
}

.event p {
  margin: 0;
}

.event::before {
  position: absolute;
  top: 8px;
  left: -28px;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 211, 78, 0.5);
}

.orbis-section {
  padding-top: 10px;
}

.orbis-section .section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.orbis-section .section-head p {
  color: var(--muted);
}

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

.orbis-resident {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(136, 204, 236, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.orbis-resident img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0b2947;
  transition: transform 0.35s ease;
}

.orbis-resident figcaption {
  display: grid;
  gap: 3px;
  padding: 16px 18px 18px;
}

.orbis-resident strong {
  color: var(--white);
  font-size: 1.05rem;
}

.orbis-resident span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.orbis-resident small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.resident-profession {
  margin-top: 8px;
  color: var(--white);
  font-size: 0.88rem;
}

.resident-story {
  margin: 2px 0 0;
  color: #bdc9d8;
  font-size: 0.82rem;
  line-height: 1.55;
}

.manifesto-intro {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 34px;
  margin-bottom: 42px;
}

.manifesto-cover {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 211, 78, 0.35);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
}

.manifesto-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid rgba(133, 204, 237, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #17476c, #0a2b4c);
}

.manifesto-statement .quote {
  margin: 18px 0;
}

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

.pdf-actions {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.pdf-help {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pdf-language {
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.05);
}

.pdf-language strong {
  width: 100%;
  color: var(--gold);
}

.pdf-language .btn {
  flex: 1 1 120px;
  padding-inline: 0.8rem;
}

.manifesto-list {
  display: grid;
  gap: 11px;
}

.manifesto-list details {
  overflow: hidden;
  border: 1px solid rgba(129, 196, 229, 0.25);
  border-radius: var(--radius-small);
  background: rgba(17, 55, 86, 0.78);
}

.manifesto-list details[open] {
  border-color: rgba(255, 211, 78, 0.45);
  color: var(--navy);
  background: linear-gradient(145deg, #fff8df, #f7edcb);
}

.manifesto-list summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 20px;
  list-style: none;
}

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

.manifesto-list summary .number {
  color: var(--gold);
  font-weight: 950;
}

.manifesto-list details[open] summary .number {
  color: #966208;
}

.manifesto-list summary strong {
  font-size: 1.05rem;
}

.manifesto-list summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
}

.manifesto-list details[open] summary::after {
  content: "−";
  color: #966208;
}

.manifesto-body {
  max-width: 900px;
  padding: 0 24px 22px 84px;
  color: #d8e1ef;
}

.manifesto-list details[open] .manifesto-body {
  color: #3d546a;
}

.manifesto-body p:last-child {
  margin-bottom: 0;
}

.flock-studio {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 46px;
}

.avatar-stage {
  min-height: 580px;
  display: grid;
  place-items: center;
  position: sticky;
  top: calc(var(--header-height) + 14px + env(safe-area-inset-top));
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  background: radial-gradient(
    circle at 50% 38%,
    #e9f8ff 0,
    #9bdcf5 32%,
    #226b94 68%,
    #0b2c4b 100%
  );
  box-shadow: var(--shadow);
}

.avatar-stage::after {
  position: absolute;
  right: 15%;
  bottom: 11%;
  left: 15%;
  height: 26px;
  content: "";
  border-radius: 50%;
  background: rgba(3, 26, 43, 0.25);
  filter: blur(16px);
}

.avatar-view {
  z-index: 1;
  width: min(100%, 384px);
  aspect-ratio: 3 / 4;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.avatar-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.noscript-fallback {
  margin-block: 48px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.avatar-view.dragging {
  cursor: grabbing;
}

.rotate-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
}

.rotate-controls button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(7, 26, 49, 0.88);
  font-size: 1.2rem;
}

.rotate-hint {
  overflow: hidden;
  padding: 0.48rem 0.5rem;
  border-radius: 999px;
  color: #e6f3fa;
  background: rgba(7, 26, 49, 0.82);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.studio-panel {
  display: grid;
  gap: 16px;
}

.studio-card {
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(245, 198, 78, 0.42);
  border-radius: var(--radius);
  color: var(--navy);
  background: linear-gradient(145deg, #fff8df, #f5e8bb);
}

.studio-card .muted,
.studio-card .build-note {
  color: #486079;
}

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

.avatar-choice {
  min-height: 74px;
  padding: 13px;
  border: 1px solid #c9dbe5;
  border-radius: 14px;
  color: var(--navy);
  background: #fffdf7;
  text-align: left;
}

.avatar-choice strong,
.avatar-choice span {
  display: block;
}

.avatar-choice span {
  color: #587086;
  font-size: 0.78rem;
}

.avatar-choice.active {
  border-color: #b4770d;
  box-shadow: 0 0 0 2px rgba(180, 119, 13, 0.12);
}

.avatar-choice:disabled {
  cursor: not-allowed;
  filter: saturate(0.82);
}

.avatar-choice:disabled strong {
  color: #405a71;
}

.avatar-choice:disabled span {
  color: #6e6250;
}

.expression-sheet {
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #fff;
}

.build-note {
  margin-top: 12px;
  font-size: 0.84rem;
}

.market-live {
  margin-top: 24px;
}

.market-live-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.market-live-head h3 {
  margin: 0;
}

.market-source,
.market-status {
  color: var(--muted);
  font-size: 0.8rem;
}

.market-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.market-item {
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(136, 204, 236, 0.25);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.08);
}

.market-item strong,
.market-item span {
  display: block;
}

.market-item strong {
  color: var(--gold);
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.market-item strong.positive {
  color: var(--ok);
}
.market-item strong.negative {
  color: var(--danger);
}

.market-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.market-status {
  margin: 10px 0 0;
}

.history-plot {
  min-height: 190px;
  display: grid;
  align-content: center;
}

.history-plot svg {
  width: 100%;
  height: auto;
  max-height: 240px;
}

.history-plot line {
  stroke: rgba(184, 216, 232, 0.35);
  stroke-width: 1;
}

.history-plot polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-plot text {
  fill: var(--muted);
  font: 12px PelocoSans, system-ui, sans-serif;
}

.market-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.market-history-grid figure {
  min-width: 0;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.market-history-grid figcaption {
  color: var(--white);
  font-weight: 800;
}

.hero .subtle-link {
  min-height: 44px;
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(184, 216, 232, 0.35);
  text-underline-offset: 0.3em;
}

.verify-links {
  margin-top: 18px;
}

.technical-data {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 26, 49, 0.42);
}

.technical-data > .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

.footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: #051326;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}

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

.error {
  padding: 72px 0;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .desktop-nav > a:hover,
  .nav-more > summary:hover,
  .desktop-nav > a[aria-current="page"],
  .nav-more.active > summary {
    color: var(--navy);
    background: var(--cream);
  }

  .nav-more-links a:hover,
  .nav-more-links a[aria-current="page"] {
    color: var(--navy);
    background: var(--cream);
  }

  .btn:hover,
  .verify-link:hover {
    transform: translateY(-2px);
  }

  .verify-link:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  .orbis-resident:hover img {
    transform: scale(1.03);
  }
}

@media (max-width: 1060px) {
  .desktop-nav > a,
  .nav-more > summary {
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .tools {
    margin-left: auto;
  }

  .mobile-panel.open {
    width: min(620px, calc(100% - 28px));
    max-height: calc(
      100dvh - var(--header-height) - env(safe-area-inset-top) - 14px
    );
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 auto 12px;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(8, 31, 56, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  }

  .mobile-panel a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #e5f2fa;
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
    font-size: 0.88rem;
  }

  .mobile-panel a[aria-current="page"] {
    border-color: var(--gold);
    color: var(--navy);
    background: var(--cream);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-art {
    width: min(100%, 600px);
  }

  .hero-art img {
    width: min(100%, 540px);
    height: auto;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manifesto-intro {
    grid-template-columns: 1fr;
  }

  .manifesto-cover {
    width: min(100%, 620px);
    justify-self: center;
  }

  .flock-studio {
    grid-template-columns: 1fr;
  }

  .avatar-stage {
    min-height: auto;
    aspect-ratio: 4 / 5;
    position: relative;
    top: auto;
  }

  .avatar-view {
    width: min(100%, 360px);
  }
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .market-history-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --header-height: 62px;
    --radius: 19px;
  }

  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar-inner {
    min-height: var(--header-height);
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: 0.98rem;
    letter-spacing: 0.07em;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .language-select {
    width: 68px;
    padding: 0.35rem 1.55rem 0.35rem 0.55rem;
    background-position: right 0.55rem center;
    font-size: 0.86rem;
  }

  .icon-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem 0.6rem;
  }

  .page {
    padding: 34px 0 48px;
  }

  .page > .section-head:first-child {
    margin-bottom: 26px;
    padding: 26px 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3.35rem);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.65rem);
    line-height: 1.08;
  }

  h3 {
    font-size: 1.08rem;
  }

  .lead {
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .hero {
    gap: 24px;
    padding: 27px 20px 20px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.4rem);
    line-height: 1.02;
  }

  .hero-art {
    min-height: 360px;
    border-radius: 44% 44% 22px 22px;
  }

  .hero-art img {
    width: 88%;
    max-height: 355px;
  }

  .pulse {
    right: 12px;
    bottom: 12px;
    padding: 9px 11px;
    font-size: 0.76rem;
  }

  .actions {
    margin-top: 24px;
  }

  .btn {
    min-height: 46px;
    padding: 0.76rem 0.9rem;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0 28px;
  }

  .stat {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
  }

  .stat strong {
    font-size: 1.08rem;
    overflow-wrap: anywhere;
  }

  .stat span {
    font-size: 0.81rem;
  }

  .stat small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .stats-note {
    margin: -12px 0 28px;
    color: var(--muted);
    font-size: 0.8rem;
  }

  .grid,
  .grid.two,
  .flow,
  .link-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 18px;
    border-radius: 17px;
  }

  .card p {
    line-height: 1.58;
  }

  .quote {
    margin: 26px 0;
    padding: 22px 18px;
    font-size: 1.3rem;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px 0;
  }

  .data-row code {
    margin: 2px 0 6px;
  }
  .wallet-actions {
    justify-content: flex-start;
  }

  .manifesto-statement {
    padding: 22px;
  }
  .download-row {
    grid-template-columns: 1fr;
  }

  .manifesto-list summary {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 8px;
    padding: 17px 14px;
  }

  .manifesto-list summary strong {
    font-size: 0.95rem;
  }
  .manifesto-body {
    padding: 0 18px 19px 56px;
  }

  .flock-studio {
    gap: 12px;
    margin-bottom: 34px;
  }

  .avatar-stage {
    aspect-ratio: 4 / 5;
    padding: 12px;
    border-radius: 20px;
  }

  .avatar-view {
    width: min(100%, 310px);
  }

  .rotate-controls {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .rotate-controls button {
    width: 44px;
    height: 44px;
  }

  .rotate-hint {
    padding-inline: 0.3rem;
    font-size: 0.72rem;
  }

  .studio-card {
    padding: 18px;
  }
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .avatar-choice {
    min-height: 68px;
    padding: 11px;
  }

  .market-live-head {
    display: block;
  }
  .market-source {
    display: block;
    margin-top: 4px;
  }
  .orbis-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .orbis-resident {
    border-radius: 16px;
  }
  .orbis-resident figcaption {
    padding: 13px 14px 15px;
  }
  .orbis-resident strong {
    font-size: 0.98rem;
  }
  .orbis-resident span {
    font-size: 0.78rem;
  }

  .footer-inner {
    display: block;
  }
  .socials {
    margin-top: 18px;
  }
  .footer a {
    font-size: 0.95rem;
  }
}

@media (max-width: 350px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }
  .brand {
    font-size: 0.9rem;
  }
  .brand-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .language-select {
    width: 62px;
    padding-left: 0.4rem;
    padding-right: 1.35rem;
    background-position: right 0.45rem center;
  }
  .hero {
    padding-inline: 16px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .orbis-gallery {
    grid-template-columns: 1fr;
  }
  .rotate-hint {
    font-size: 0.68rem;
  }
}

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