:root {
  --bg: #07080c;
  --bg-raise: #10131a;
  --ink: #f3f5f8;
  --muted: #9aa3b2;
  --line: rgba(232, 238, 246, 0.14);
  --blue: #5ad4ff;
  --blue-deep: #1478c9;
  --gold: #e7b56a;
  --rail: 368px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(90, 212, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 80% 110%, rgba(231, 181, 106, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #111;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.site {
  margin: 0 0 0 28px;
  margin-right: calc(var(--rail) + 48px);
  padding: 18px 8px 72px 0;
}

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.96), rgba(7, 8, 12, 0.82) 70%, transparent);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.brand strong {
  display: block;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 14px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.top nav {
  display: flex;
  gap: 22px;
}
.top nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top nav a:hover { color: var(--ink); }
.buy.buy--header { display: none; }

.rail {
  position: fixed;
  top: 18px;
  right: 18px;
  width: var(--rail);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #101216;
  background:
    linear-gradient(180deg, #f7fbff 0%, #d5dde8 42%, #aeb8c6 100%);
  box-shadow:
    0 0 0 1px rgba(90, 212, 255, 0.55),
    0 12px 40px rgba(40, 170, 230, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.buy:hover { transform: translateY(-2px); filter: brightness(1.05); }
.buy svg { width: 22px; height: 22px; }
.buy-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  font-weight: 600;
}
.buy-label {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
}
.buy--wide {
  margin-top: 18px;
  width: 100%;
}
.buy--rail { position: sticky; top: 0; z-index: 2; }

.post, .rail-social {
  background: rgba(14, 17, 24, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.post { padding: 16px 16px 14px; }
.post-head {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
}
.post-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.post-head strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}
.post-head strong svg { width: 16px; height: 16px; }
.post-head span { display: block; color: var(--muted); font-size: 13px; }
.x-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}
.x-mark svg { width: 15px; height: 15px; }
.x-mark:hover { background: rgba(255, 255, 255, 0.06); }
.replying { margin: 10px 0 8px; color: var(--muted); font-size: 13px; }
.replying a { color: var(--blue); text-decoration: none; }
.context {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 2px solid rgba(90, 212, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 10px 10px 0;
}
.post-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.post-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.post-foot a { color: var(--blue); }

.rail-social { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.rail-social a {
  display: grid;
  gap: 2px;
  padding: 14px 14px 12px;
  text-decoration: none;
}
.rail-social a + a { border-left: 1px solid var(--line); }
.rail-social svg { width: 16px; height: 16px; }
.rail-social span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rail-social strong { font-size: 14px; font-weight: 600; }
.rail-social a:hover { background: rgba(255, 255, 255, 0.04); }

.banner {
  margin: 8px 0 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.banner img {
  width: 100%;
  height: min(52vw, 460px);
  object-fit: cover;
  object-position: center 45%;
}
.hero-copy {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
  padding: 0 8px 0 6px;
}
.mark {
  width: 116px;
  height: 116px;
  margin-top: -74px;
  border-radius: 28px;
  object-fit: cover;
  border: 3px solid #07080c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.45);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.eyebrow svg { width: 14px; height: 14px; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.92;
  text-wrap: balance;
}
.ticker {
  margin: 12px 0 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}
.ticker b { font-weight: 800; color: var(--ink); letter-spacing: 0.22em; }
.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
  margin: 12px 0 0;
}

.vision, .gallery, .contract { margin-top: 72px; scroll-margin-top: 24px; }
.index {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1; max-width: 16ch; }
.prose {
  display: grid;
  gap: 14px;
  max-width: 68ch;
  margin-top: 18px;
  color: #c9d0da;
  font-size: 17px;
}
.prose p { margin: 0; }
.pull {
  margin: 28px 0 0;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(90, 212, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.pull p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}
.pull footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.section-head h2 { max-width: 18ch; }
.frames {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.frames button {
  padding: 0;
  border: 0;
  background: #0c0e14;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  cursor: zoom-in;
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
}
.frames img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.frames button:hover img { transform: scale(1.04); }
.frame-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.frame-cap {
  display: block;
  padding: 12px 12px 14px;
  font-size: 13px;
  color: var(--muted);
}
.frame-cap b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.facts {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.facts div { padding: 16px 16px 14px; background: rgba(16, 19, 26, 0.75); }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.facts dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.address {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  border-radius: 16px;
  background: #0c0f15;
  border: 1px solid var(--line);
}
.address span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.address code {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--blue);
}
.copy {
  border: 0;
  border-radius: 12px;
  min-width: 92px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.12); }

.colophon {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.colophon p { margin: 0; max-width: 62ch; }
.fine { margin-top: 8px !important; }
.fine a { color: var(--ink); }

.lightbox {
  width: min(1040px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
}
.lightbox figcaption {
  margin-top: 10px;
  color: #d5dbe6;
  font-size: 15px;
}
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.close {
  border: 1px solid var(--line);
  background: rgba(16, 18, 24, 0.9);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .site {
    margin: 0;
    padding: 12px 16px 56px;
  }
  .rail {
    position: static;
    width: auto;
    max-height: none;
    margin: 28px 0 0;
  }
  .top { z-index: 30; }
  .buy.buy--header {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 44px;
    margin-left: auto;
    padding: 0 12px;
    border-radius: 12px;
  }
  .buy.buy--header .buy-label { font-size: 13px; letter-spacing: 0.12em; }
  .brand small { display: none; }
  .buy--rail { display: none; }
  .top { flex-wrap: wrap; gap: 12px 16px; }
  .top nav {
    order: 3;
    width: 100%;
    gap: 16px;
    padding-bottom: 8px;
  }
  .hero-copy { grid-template-columns: 72px minmax(0, 1fr); margin-top: 16px; padding-right: 0; }
  .mark { width: 72px; height: 72px; margin-top: -40px; border-radius: 18px; }
  .post-text { font-size: 26px; }
  .banner img { height: 220px; }
  .frames, .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .address { align-items: stretch; flex-direction: column; }
  h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buy, .frames img { transition: none; }
}
