@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  background: #f8f5ec;
  color: #16131d;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #2547ee; outline-offset: 4px; }
figure, h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #151523;
}

.notice {
  max-width: 38rem;
  margin: min(18vh, 8rem) auto 0;
  padding: 0 1.5rem;
}

.notice h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.05em; }
.notice p { margin-top: 0.75rem; color: #51485d; line-height: 1.6; }
.notice-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 0.3rem;
  background: #241945;
  color: white;
  text-decoration: none;
  font-weight: 750;
}

.site-shell {
  --accent: #6845c9;
  --accent-contrast: #fff;
  --accent-wash: color-mix(in srgb, var(--accent) 18%, #f7f2e8);
  --accent-dark: color-mix(in srgb, var(--accent) 37%, #16131d);
  --accent-light: color-mix(in srgb, var(--accent) 46%, #fefaff);
  --art-matte: #29213a;
  --paper: #f8f5ec;
  --ink: #16131d;
  --muted: #554b63;
  --line: color-mix(in srgb, var(--ink) 20%, transparent);
  --display: "Arial Black", "Arial Bold", Arial, sans-serif;
  --content-width: 78rem;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.wrap { width: min(var(--content-width), calc(100% - clamp(2.25rem, 9vw, 9rem))); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.page-header {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  font-size: 1.07rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span:last-child { min-width: 0; overflow-wrap: anywhere; }
.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--accent-contrast);
  content: "";
}

.section-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; }
.section-nav a, .page-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.section-nav a, .page-footer a { color: var(--muted); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.section-nav a:hover, .page-footer a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.edit-link {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--ink);
  padding: 0.62rem 0.83rem;
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
}

main:focus { outline: none; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  column-gap: clamp(1.5rem, 5vw, 4.75rem);
  padding-block: clamp(2.25rem, 7.5vw, 6rem);
}

.hero-copy { min-width: 0; }
.token-ticker {
  width: fit-content;
  padding: 0.42rem 0.72rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.hero h1, .page-section h2 {
  font-family: var(--display);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero h1 {
  margin-block: 0.27em 0;
  font-size: clamp(3.2rem, 7.5vw, 8.2rem);
  letter-spacing: -0.09em;
  line-height: 0.85;
}

.hero h1[data-long] { font-size: clamp(2.7rem, 5.6vw, 5.95rem); line-height: 0.93; }
.hero h1:first-child, .token-ticker[hidden] + h1 { margin-top: 0; }
.hero-tagline {
  max-width: 32rem;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mascot-credit { margin-top: .65rem; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.7rem; }
.hero-story-link { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .47rem 0; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.8rem;
  border: 1px solid var(--ink);
  padding: 0.64rem 1rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-outline { background: transparent; }
.btn:hover, .edit-link:hover { box-shadow: 0 0 0 2px var(--ink); }
.page-action { display: flex; justify-content: flex-start; padding-block: 1.2rem; }
.hero-art { min-width: 0; }
.art-ambient { display: none; }
.art-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 10rem;
  aspect-ratio: 1.12;
  background: var(--art-matte);
  isolation: isolate;
}

.art-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.art-placeholder {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  max-width: 18rem;
  padding: 1rem;
  color: #f9f6ff;
  text-align: center;
  line-height: 1.45;
}

.placeholder-symbol {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px dashed currentColor;
  border-radius: 0.5rem;
  opacity: 0.65;
}

.contract { margin-bottom: clamp(2.3rem, 5vw, 4.1rem); }
.contract-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--ink);
  padding: clamp(0.8rem, 2.3vw, 1.55rem);
}

.contract-text h2 {
  margin-bottom: 0.38rem;
  font-size: 0.88rem;
  font-weight: 830;
  letter-spacing: 0.035em;
}

.contract code { font: 0.91rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.page-section { border-top: 1px solid var(--line); padding-block: clamp(1.8rem, 5vw, 4.2rem); scroll-margin-top: 0.75rem; }
.page-section h2 { font-size: clamp(2rem, 4.7vw, 4.7rem); letter-spacing: -0.067em; line-height: 0.98; }
.chart-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1rem, 3vw, 1.8rem);
}

.chart-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #14161c;
}

.chart-embed iframe {
  display: block;
  width: 100%;
  height: clamp(25rem, 51vw, 41rem);
  border: 0;
}

.story-section, .whitepaper-section, .roadmap-section, .links-section {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 1.5rem;
}
.story-copy { max-width: 40rem; font-size: clamp(1rem, 1.55vw, 1.24rem); line-height: 1.7; overflow-wrap: anywhere; }
.story-copy p, .milestone-description p { white-space: pre-line; }
.story-copy p + p, .milestone-description p + p { margin-top: 1em; }
.whitepaper-content { display: grid; justify-items: start; gap: 1.3rem; }
.milestone-list {
  --milestone-accent: var(--accent-dark);
  --milestone-indent: clamp(1rem, 2.3vw, 1.75rem);
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 0 var(--milestone-indent);
  list-style: none;
}

.milestone {
  position: relative;
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  padding: clamp(0.95rem, 3vw, 1.5rem);
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  overflow-wrap: anywhere;
}

.milestone::before {
  position: absolute;
  inset: 1.37rem auto auto calc(-1 * var(--milestone-indent) - 0.31rem);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--milestone-accent);
  content: "";
}

.milestone h3 { margin: 0; font-family: var(--display); font-size: clamp(1.18rem, 2.45vw, 1.65rem); line-height: 1.2; }
.milestone-timeframe { color: var(--milestone-accent); font-size: 0.9rem; font-weight: 700; }
.milestone-description { font-size: 1rem; line-height: 1.62; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: start;
  gap: clamp(0.8rem, 2.4vw, 1.75rem);
  margin-top: clamp(1.3rem, 3vw, 2.25rem);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  border: 1px solid var(--ink);
  padding: 0;
  overflow: hidden;
  background: var(--art-matte);
}

.gallery-item:only-child { max-width: 42rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.gallery-item:hover { box-shadow: 0 0 0 2px var(--ink); }
.gallery-item::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%) center / 53% 53% no-repeat,
    linear-gradient(0deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%) center / 53% 53% no-repeat,
    var(--paper);
  content: "";
}

.community-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.page-footer { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.page-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.page-footer span { font-size: 0.9rem; font-weight: 800; overflow-wrap: anywhere; }
.page-footer a { flex: 0 0 auto; }

.gallery-dialog {
  width: min(55rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  border: 1px solid var(--ink);
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.gallery-dialog::backdrop { background: #100e18d9; }
.dialog-top, .dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.dialog-top { margin-bottom: 0.7rem; }
.dialog-top p { overflow-wrap: anywhere; font-weight: 750; }
.dialog-controls { justify-content: flex-end; margin-top: 0.7rem; }
.gallery-dialog img { width: 100%; max-height: 66vh; object-fit: contain; background: var(--art-matte); }

/* Poster */
[data-theme="poster"] {
  color-scheme: dark;
  --paper: #100d16;
  --ink: #fff6e8;
  --muted: #d8c8dc;
  --line: #fff5f433;
  --display: "Space Grotesk", "Arial Black", sans-serif;
  --gutter: max(clamp(1.125rem, 4.5vw, 4.5rem), calc((100% - var(--content-width)) / 2));
}

[data-theme="poster"] .masthead { position: relative; z-index: 2; background: var(--paper); }
[data-theme="poster"] .page-header { min-height: clamp(3.4rem, 5.2vw, 4.45rem); }
[data-theme="poster"] .brand-mark { border-color: transparent; background: var(--accent-light); }
[data-theme="poster"] .brand-mark::before { border-radius: .05rem; color: var(--paper); transform: rotate(45deg); }
[data-theme="poster"] .section-nav a { color: var(--ink); }
[data-theme="poster"] .hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(33.5rem, 47.5vw, 46rem);
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  column-gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

[data-theme="poster"] .hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  min-height: 100%;
  margin-right: clamp(-9.75rem, -10vw, -5rem);
  padding: clamp(2.5rem, 6vw, 5.8rem) 1.25rem clamp(4rem, 8vw, 7rem) max(clamp(1.125rem, 4.5vw, 4.5rem), calc((100vw - var(--content-width)) / 2));
}

[data-theme="poster"] .token-ticker {
  padding: .44rem .72rem;
  border: 1px solid color-mix(in srgb, var(--accent-light) 64%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  color: var(--accent-light);
  font: 700 .85rem/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .075em;
}

[data-theme="poster"] .hero h1 {
  max-width: min(100%, 48rem);
  margin-block: .16em 0;
  color: var(--ink);
  font-size: clamp(3.85rem, 9.6vw, 10rem);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .84;
  text-shadow: 0 .07em .33em #100d16aa;
  text-transform: uppercase;
}

[data-theme="poster"] .hero h1[data-long] { font-size: clamp(2.85rem, 6.85vw, 7rem); line-height: .91; }
[data-theme="poster"] .hero-tagline { max-width: 25rem; margin-top: .88rem; color: #f7e8f5; font-size: clamp(1.05rem, 1.75vw, 1.54rem); text-wrap: pretty; }
[data-theme="poster"] .mascot-credit { color: var(--accent-light); font-size: .91rem; }
[data-theme="poster"] .hero-actions { align-items: center; gap: .8rem; margin-top: 1.18rem; }
[data-theme="poster"] .hero-story-link { color: var(--ink); }
[data-theme="poster"] .hero-story-link::after { display: inline-block; width: .41rem; height: .41rem; margin-left: .52rem; border: 1px solid var(--accent-light); transform: rotate(45deg); content: ""; }
[data-theme="poster"] .hero-story-link:hover { color: var(--accent-light); }
[data-theme="poster"] .hero-art { position: relative; min-height: inherit; overflow: hidden; background: color-mix(in srgb, var(--accent) 19%, var(--paper)); }
[data-theme="poster"] .art-ambient { display: block; position: absolute; inset: -9%; width: 118%; height: 118%; max-width: none; object-fit: cover; opacity: .43; filter: blur(32px) saturate(1.4); }
[data-theme="poster"] .art-frame { height: 100%; aspect-ratio: auto; background: transparent; }
[data-theme="poster"] .art-frame > img {
  inset: 0 auto 0 50%;
  width: auto;
  object-position: center;
  transform: translateX(-50%);
  mask-image: linear-gradient(90deg, transparent 0%, black 11%, black 91%, transparent 100%);
}

[data-theme="poster"] .hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #100d16 1%, #100d16a8 11%, #100d1600 44%), linear-gradient(0deg, #100d16 0%, #100d1600 23%);
  content: "";
  pointer-events: none;
}

[data-theme="poster"] .btn { border-radius: .35rem; }
[data-theme="poster"] .btn-primary { border-color: var(--accent-light); background: var(--accent-light); color: #21152a; }
[data-theme="poster"] .btn-outline, [data-theme="poster"] .edit-link { border-color: color-mix(in srgb, var(--accent-light) 58%, transparent); }
[data-theme="poster"] .contract { margin-top: clamp(.7rem, 2.5vw, 1.7rem); }
[data-theme="poster"] .contract-content { border-color: var(--line); border-radius: .55rem; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
[data-theme="poster"] .contract h2 { color: var(--accent-light); }
[data-theme="poster"] .page-section { padding-block: clamp(2.2rem, 5vw, 4.5rem); }
[data-theme="poster"] .page-section h2 { color: var(--ink); font-weight: 700; letter-spacing: -.075em; text-transform: uppercase; }
[data-theme="poster"] .chart-embed { border-radius: 0.55rem; }
[data-theme="poster"] :is(.story-section, .whitepaper-section, .roadmap-section) { grid-template-columns: minmax(13rem, .72fr) minmax(0, 1fr); }
[data-theme="poster"] .milestone-list, [data-theme="arcade"] .milestone-list { --milestone-accent: var(--accent-light); }
[data-theme="poster"] .milestone { border-radius: 0.55rem; }
[data-theme="poster"] .story-copy { color: var(--muted); font-size: clamp(1.09rem, 1.9vw, 1.48rem); line-height: 1.57; }
[data-theme="poster"] .gallery-item { border-color: var(--line); border-radius: .65rem; }
[data-theme="poster"] .gallery-item:only-child { max-width: none; aspect-ratio: auto; }
[data-theme="poster"] .gallery-item:only-child img { width: 100%; height: auto; max-height: min(49rem, 76svh); }
[data-theme="poster"] .gallery-item:hover { box-shadow: 0 0 0 2px var(--accent-light); }
[data-theme="poster"] :focus-visible { outline-color: var(--accent-light); }

/* Arcade */
[data-theme="arcade"] {
  color-scheme: dark;
  --paper: #11101b;
  --ink: #f7efff;
  --muted: #c5b7cc;
  --line: #756884;
  --display: "Cascadia Mono", "Lucida Console", monospace;
  --content-width: 69rem;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 35px, #f7efff0b 36px, transparent 37px),
    repeating-linear-gradient(0deg, transparent, transparent 35px, #f7efff0b 36px, transparent 37px),
    radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--accent) 25%, var(--paper)), var(--paper) 55%);
  background-size: auto, auto, 100% min(85rem, 100%);
}

[data-theme="arcade"] .masthead {
  border-color: var(--accent-light);
  background: #11101be6;
}

[data-theme="arcade"] .brand, [data-theme="arcade"] .token-ticker, [data-theme="arcade"] .contract h2 { font-family: var(--display); }
[data-theme="arcade"] .brand-mark { border-color: var(--accent-light); border-radius: 0; background: transparent; }
[data-theme="arcade"] .brand-mark::before { border-radius: 0; color: var(--accent-light); transform: rotate(45deg); }
[data-theme="arcade"] .hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.55rem, 5vw, 3.5rem);
  padding-block: clamp(2.15rem, 6vw, 5.2rem);
  text-align: center;
}

[data-theme="arcade"] .hero-copy { display: grid; justify-items: center; }
[data-theme="arcade"] .token-ticker { border: 1px solid var(--accent-light); color: var(--accent-light); }
[data-theme="arcade"] .hero h1 {
  max-width: 72rem;
  color: var(--ink);
  font-size: clamp(3.1rem, 8.5vw, 7.9rem);
  letter-spacing: -0.095em;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0.035em 0.035em color-mix(in srgb, var(--accent-light) 52%, var(--paper));
}

[data-theme="arcade"] .hero h1[data-long] { font-size: clamp(2.4rem, 6vw, 5rem); }
[data-theme="arcade"] .hero-actions { justify-content: center; }
[data-theme="arcade"] .page-action { justify-content: center; }
[data-theme="arcade"] .hero-art {
  width: min(100%, 48rem);
  border: 1px solid var(--accent-light);
  padding: clamp(0.42rem, 1.75vw, 0.85rem);
  background: #11101b;
  box-shadow: 0 0 2rem color-mix(in srgb, var(--accent) 45%, transparent);
}

[data-theme="arcade"] .art-frame { aspect-ratio: 1.46; border: 1px solid var(--line); }
[data-theme="arcade"] .btn-primary {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: #1b1428;
}

[data-theme="arcade"] .btn-outline, [data-theme="arcade"] .edit-link { border-color: var(--accent-light); }
[data-theme="arcade"] .contract-content { border-color: var(--accent-light); background: #191623; }
[data-theme="arcade"] .contract h2 { color: var(--accent-light); }
[data-theme="arcade"] .page-section h2 { text-transform: uppercase; }
[data-theme="arcade"] .chart-embed { border-color: var(--accent-light); }
[data-theme="arcade"] .milestone::before { border-radius: 0; transform: rotate(45deg); }
[data-theme="arcade"] .milestone-timeframe { font-family: var(--display); }
[data-theme="arcade"] .gallery-item { border-color: var(--accent-light); }
[data-theme="arcade"] :focus-visible { outline-color: var(--accent-light); }

/* Editorial */
[data-theme="editorial"] {
  --paper: #fffdf7;
  --ink: #262124;
  --muted: #5d5555;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --content-width: 72rem;
}

[data-theme="editorial"] .page-header { min-height: 5.1rem; }
[data-theme="editorial"] .brand { font-family: var(--display); font-size: 1.28rem; }
[data-theme="editorial"] .brand-mark { width: 0.84rem; height: 0.84rem; border: 0; }
[data-theme="editorial"] .brand-mark::before { display: none; }
[data-theme="editorial"] .hero {
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 0.63fr);
  column-gap: clamp(2rem, 6vw, 5.4rem);
  padding-top: clamp(2rem, 6vw, 5.4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.8rem);
}

[data-theme="editorial"] .hero-art { grid-column: 1; grid-row: 1; }
[data-theme="editorial"] .hero-copy { grid-column: 2; grid-row: 1; container-type: inline-size; }
[data-theme="editorial"] .art-frame { aspect-ratio: 1.14; }
[data-theme="editorial"] .token-ticker {
  border-bottom: 1px solid var(--accent-dark);
  padding: 0 0 0.5rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.14em;
}

[data-theme="editorial"] .hero h1 {
  font-size: clamp(2rem, min(7vw, calc(166cqi / var(--name-word-length, 7))), 7.4rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

[data-theme="editorial"] .hero h1[data-long] { font-size: clamp(2rem, min(5.3vw, calc(166cqi / var(--name-word-length, 7))), 5rem); }
[data-theme="editorial"] .hero-tagline { font-family: var(--display); font-size: 1.26rem; }
[data-theme="editorial"] .btn, [data-theme="editorial"] .edit-link { border-radius: 999px; }
[data-theme="editorial"] .contract-content { border-width: 1px 0; padding-inline: 0; }
[data-theme="editorial"] .page-section h2 { font-weight: 500; letter-spacing: -0.04em; }
[data-theme="editorial"] .story-copy { font-family: var(--display); font-size: clamp(1.12rem, 2.1vw, 1.54rem); }
[data-theme="editorial"] .milestone { border-width: 0 0 1px; padding: 0 0 1.25rem; background: transparent; }
[data-theme="editorial"] .milestone::before { top: 0.4rem; }
[data-theme="editorial"] .milestone h3 { font-weight: 500; }
[data-theme="editorial"] .gallery-item { border: 0; }
[data-theme="editorial"] .gallery-grid { gap: 1.4rem; }

.is-embedded .masthead { display: none; }

.preview-layout {
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.preview-layout-area {
  position: absolute;
  inset: 0 auto auto 0;
  border: 1px dashed #16a575;
  border-radius: 0.38rem;
}

.preview-layout-grip {
  position: absolute;
  inset: 0.3rem 0.35rem auto auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.36rem;
  min-width: 2.15rem;
  min-height: 2.05rem;
  padding: 0.25rem 0.58rem;
  border: 1px solid #004b3e;
  border-radius: 0.35rem;
  background: #ddf9ed;
  box-shadow: 0 1px 4px #004b3e3d;
  color: #004b3e;
  font: 700 0.87rem/1 "Space Grotesk", system-ui, sans-serif;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.preview-layout-grip::before {
  width: 0.52rem;
  height: 0.77rem;
  background: radial-gradient(circle, currentColor 1px, transparent 1.4px) left top / 50% 33.333% repeat;
  content: "";
}

.preview-layout-grip:hover { background: #aef3d4; }
.preview-layout-area.is-compact .preview-layout-grip { inset: -0.68rem 0.23rem auto auto; }
.preview-layout-area.is-compact .preview-layout-label { display: none; }
.preview-layout.is-dragging .preview-layout-grip { cursor: grabbing; }
.preview-layout-area.is-drag-source { border-style: solid; border-color: #0e7956; background: #40e9a125; }
.preview-layout-area.drop-before::after,
.preview-layout-area.drop-after::after {
  position: absolute;
  inset: -1px -1px auto;
  height: 0.28rem;
  border-radius: 0.25rem;
  background: #40e9a1;
  box-shadow: 0 0 0 1px #004b3e;
  content: "";
}
.preview-layout-area.drop-after::after { inset: auto -1px -1px; }

@media (max-width: 48rem) {
  .hero, [data-theme="editorial"] .hero { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 6.15rem); }
  .hero h1[data-long] { font-size: clamp(2.7rem, 8.4vw, 4.7rem); }
  [data-theme="editorial"] .hero h1 { font-size: clamp(2.4rem, min(12vw, calc(166cqi / var(--name-word-length, 7))), 6.15rem); }
  [data-theme="editorial"] .hero h1[data-long] { font-size: clamp(2rem, min(9vw, calc(166cqi / var(--name-word-length, 7))), 4.7rem); }
  [data-theme="editorial"] .hero-art, [data-theme="editorial"] .hero-copy { grid-column: auto; grid-row: auto; }
  [data-theme="editorial"] .hero-art { grid-row: 1; }
  .story-section, .whitepaper-section, .roadmap-section, .links-section { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  [data-theme="poster"] .hero {
    /* The copy follows the artwork at narrow widths, keeping faces and text clear. */
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  [data-theme="poster"] .hero-copy {
    grid-row: 2;
    margin: clamp(-3.4rem, -8vw, -2rem) 0 0;
    padding: 0 var(--gutter) clamp(2.6rem, 8vw, 4.05rem);
  }
  [data-theme="poster"] .hero-art { grid-row: 1; min-height: 0; }
  [data-theme="poster"] .art-frame { height: auto; aspect-ratio: 1.18; }
  [data-theme="poster"] .art-frame > img { inset: 0; width: 100%; transform: none; mask-image: none; }
  [data-theme="poster"] .hero-art::after { background: linear-gradient(0deg, #100d16 0%, #100d1640 26%, transparent 46%); }
  [data-theme="poster"] .hero h1 { font-size: clamp(3.05rem, 13vw, 6.5rem); }
  [data-theme="poster"] .hero h1[data-long] { font-size: clamp(2.65rem, 10.4vw, 5rem); }
  [data-theme="poster"] :is(.story-section, .whitepaper-section, .roadmap-section) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  .page-header { column-gap: 0.75rem; }
  .section-nav { width: 100%; order: 2; gap: 0.2rem 1rem; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .contract-content { grid-template-columns: minmax(0, 1fr); }
  .contract-content .btn { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
