:root {
  --bg: #0b0b0c;
  --panel: #151516;
  --text: #ebe7df;
  --muted: #96918a;
  --line: rgba(235, 231, 223, 0.13);
  --line-strong: rgba(235, 231, 223, 0.34);
  --shadow: rgba(0, 0, 0, 0.34);
  --tile: min(64vh, 560px);
  --gap: 28px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

.app-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 28px 34px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-symbol {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 1.28rem;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.menu-toggle {
  align-items: center;
  background: rgba(21, 21, 22, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.menu-toggle span {
  background: var(--text);
  display: block;
  height: 2px;
  transition: transform 180ms ease;
  width: 18px;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.menu-panel {
  align-content: center;
  background: rgba(11, 11, 12, 0.94);
  border-left: 1px solid var(--line);
  display: grid;
  gap: 20px;
  justify-items: start;
  min-height: 100vh;
  padding: 96px 42px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: min(360px, 86vw);
  z-index: 15;
  backdrop-filter: blur(18px);
}

.menu-open .menu-panel {
  transform: translateX(0);
}

.menu-panel a {
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.rail {
  align-items: center;
  display: flex;
  gap: var(--gap);
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 96px 9vw 72px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar {
  height: 0;
}

.panel {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.home-card,
.text-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px var(--shadow);
  display: grid;
  grid-template-rows: 18px 116px minmax(0, 1fr);
  row-gap: 28px;
  height: var(--tile);
  overflow: hidden;
  padding: 38px;
  width: var(--tile);
}

.home-card {
  background: #101011;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 4.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  align-self: start;
}

h2 {
  font-size: 2.35rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.95;
  align-self: start;
}

.email-title {
  font-size: 2.35rem;
  line-height: 0.9;
}

.email-title span {
  display: block;
}

.home-card p:last-child,
.text-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.home-card .intro-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.nft-card {
  background: var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
  height: var(--tile);
  margin: 0;
  overflow: hidden;
}

.square-media {
  width: var(--tile);
}

.scene-media {
  width: calc(var(--tile) * 1.7778);
}

.nft-card img {
  height: var(--tile);
  object-fit: cover;
  width: 100%;
}

.inline-link {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  justify-self: start;
  padding-bottom: 6px;
}

.about-meta {
  align-self: start;
  display: grid;
  gap: 18px;
  min-height: 0;
}

.about-links {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.about-links .inline-link {
  white-space: nowrap;
}

.special {
  background: var(--panel);
  color: var(--text);
}

.status-bar {
  align-items: center;
  bottom: 0;
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  letter-spacing: 0.08em;
  padding: 20px 34px;
  position: fixed;
  right: 0;
  text-transform: uppercase;
  z-index: 10;
}

.status-title {
  color: var(--text);
}

.status-bar span:last-child {
  justify-self: end;
}

.privacy-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.privacy-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 980px;
  padding: 28px 34px;
}

.privacy-back {
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding-bottom: 5px;
}

.privacy-main {
  margin: 72px auto 120px;
  max-width: 760px;
  width: calc(100% - 68px);
}

.privacy-main h1 {
  font-size: 4rem;
  line-height: 0.9;
  margin: 24px 0 16px;
}

.privacy-date {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 46px;
}

.privacy-lead {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 54px;
}

.privacy-main section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.privacy-main section h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.privacy-main section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.privacy-main section p + p {
  margin-top: 12px;
}

.privacy-main section a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-header {
    padding: 22px;
  }

  .rail {
    align-items: stretch;
    display: grid;
    gap: 24px;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 92px 22px 72px;
    scroll-snap-type: none;
  }

  .panel,
  .home-card,
  .text-card,
  .nft-card,
  .square-media,
  .scene-media {
    height: auto;
    min-width: 0;
    width: 100%;
  }

  .home-card,
  .text-card {
    min-height: 360px;
    overflow: visible;
    padding: 30px;
    row-gap: 22px;
  }

  .square-media {
    aspect-ratio: 1;
  }

  .scene-media {
    aspect-ratio: 16 / 9;
  }

  .nft-card img {
    height: 100%;
  }

  h1 {
    font-size: 3.8rem;
    line-height: 0.88;
  }

  h2 {
    font-size: 2.15rem;
    line-height: 1;
  }

  .email-title {
    font-size: 2rem;
    line-height: 0.9;
  }

  .home-card p:last-child,
  .text-card p:not(.eyebrow),
  .home-card .intro-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .status-bar {
    display: none;
  }

  .privacy-header {
    padding: 22px;
  }

  .privacy-main {
    margin: 48px auto 80px;
    width: calc(100% - 44px);
  }

  .privacy-main h1 {
    font-size: 2.8rem;
    line-height: 0.95;
  }

  .privacy-lead {
    font-size: 1.08rem;
    margin-bottom: 42px;
  }

  .privacy-main section {
    padding: 26px 0;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  :root {
    --tile: min(60vh, 500px);
  }

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 1.95rem;
    line-height: 1;
  }

  .email-title {
    font-size: 2.05rem;
    line-height: 0.9;
  }

  .home-card,
  .text-card {
    grid-template-rows: 18px 96px minmax(0, 1fr);
    padding: 32px;
    row-gap: 22px;
  }

  .home-card p:last-child,
  .text-card p:not(.eyebrow),
  .home-card .intro-text {
    font-size: 0.9rem;
    line-height: 1.42;
  }
}
