:root {
  --ink: #050505;
  --paper: #fffaf1;
  --paper-hot: #fff3dc;
  --orange: #ff8a00;
  --orange-hot: #ffb000;
  --orange-deep: #bd4400;
  --line: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 18pt;
  line-height: 1.15;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

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

.section-black {
  background: var(--ink);
  color: var(--paper);
}

.section-charcoal {
  background: #24201b;
  color: var(--paper);
}

.mast {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 9.25rem;
  overflow: hidden;
  padding: 1.35rem 2rem;
  position: relative;
}

.mast:before,
.mast:after {
  animation: flash-dot 1.25s steps(2, end) infinite;
  background: var(--orange);
  border: 1px solid var(--orange-hot);
  box-shadow: 0 0 0.8rem var(--orange);
  content: "";
  height: 0.7rem;
  position: absolute;
  width: 0.7rem;
}

.mast:before {
  right: 1.4rem;
  top: 1.1rem;
}

.mast:after {
  animation-delay: 0.4s;
  bottom: 1.1rem;
  left: 1.4rem;
}

.mast-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 0.95;
  padding: 0;
}

.footer-title {
  font-size: 2.625em;
  font-weight: 700;
  line-height: 1.5;
  padding-left: 2rem;
}

.icon-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0;
}

.icon-tile {
  align-items: center;
  display: flex;
  font-size: 0.625em;
  font-weight: 700;
  height: 3.125rem;
  justify-content: center;
  width: 3.125rem;
}

.link-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.45rem 2rem;
}

.link-strip a {
  font-size: 0.75em;
  font-weight: 700;
  min-width: 5.5rem;
}

.stock-tape {
  background: #f3e7d1;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.35rem 0;
  position: relative;
}

.stock-tape:before,
.stock-tape:after {
  content: "";
  height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 2.5rem;
  z-index: 2;
}

.stock-tape:before {
  background: linear-gradient(90deg, #f3e7d1 0%, rgba(243, 231, 209, 0) 100%);
  left: 0;
}

.stock-tape:after {
  background: linear-gradient(270deg, #f3e7d1 0%, rgba(243, 231, 209, 0) 100%);
  right: 0;
}

.stock-track {
  animation: stock-scroll 34s linear infinite;
  display: flex;
  gap: 0.35rem;
  width: max-content;
}

.stock-set {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.stock-chip {
  align-items: center;
  animation: stock-tick 1.45s steps(2, end) infinite;
  background: #030303;
  border: 1px solid #31271c;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.72em;
  font-weight: 800;
  flex: 0 0 auto;
  gap: 0.45rem;
  letter-spacing: 0;
  line-height: 1;
  min-height: 2.05rem;
  min-width: 7.1rem;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-chip-up {
  animation-delay: 0.28s;
  box-shadow: 0 0 0.65rem rgba(255, 138, 0, 0.28);
}

.stock-symbol {
  color: #fffaf1;
}

.stock-move {
  font-size: 0.76em;
}

.stock-chip-down .stock-move {
  color: #ff2b2b;
}

.stock-chip-up .stock-move {
  color: #50e875;
}

.contract-strip {
  align-items: center;
  background: var(--orange);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.65rem 2rem;
}

.contract-label {
  background: var(--ink);
  color: var(--orange-hot);
  font-size: 0.58em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.45rem 0.55rem;
}

.contract-address {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.55rem 0.75rem;
  user-select: all;
  white-space: nowrap;
}

.contract-copy {
  border-color: var(--ink);
  font-size: 0.62em;
  font-weight: 900;
  min-height: 2.15rem;
  padding: 0.45rem 0.85rem;
}

.contract-copy.is-copied {
  background: #50e875;
  color: var(--ink) !important;
}

.signal-button {
  align-items: center;
  animation: button-flash 1.8s steps(2, end) infinite;
  background: var(--ink);
  border: 1px solid var(--orange);
  box-shadow: 0 0 0 1px var(--line), 0 0 0.9rem rgba(255, 138, 0, 0.26);
  color: var(--orange-hot) !important;
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.signal-button:hover,
.signal-button:focus-visible {
  animation-duration: 0.55s;
  background: var(--orange);
  color: var(--ink) !important;
  outline: 2px solid var(--orange-hot);
  outline-offset: 3px;
  text-decoration: none;
  transform: scale(1.06);
}

.signal-button:active {
  transform: scale(0.97);
}

.signal-button:nth-child(even) {
  animation-delay: 0.35s;
}

.marquee-image {
  aspect-ratio: 1280 / 426;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.marquee-image img {
  height: 100%;
  max-width: none;
  min-width: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.scan-grid,
.manifesto-grid,
.market-grid,
.originals-grid,
.headline-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
}

.scan-grid {
  grid-template-columns: 42fr 33fr 25fr;
}

.manifesto-grid {
  grid-template-columns: 34fr 33fr 33fr;
}

.market-grid {
  background: #15110c;
  color: var(--paper);
  grid-template-columns: 31fr 45fr 24fr;
}

.originals-grid {
  grid-template-columns: repeat(4, 1fr);
}

.headline-grid {
  grid-template-columns: repeat(4, 1fr);
}

.scan-grid > *,
.manifesto-grid > *,
.market-grid > *,
.originals-grid > *,
.headline-grid > * {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 1.5rem 2rem;
}

.scan-grid > *:last-child,
.manifesto-grid > *:last-child,
.market-grid > *:last-child,
.originals-grid > *:last-child,
.headline-grid > *:last-child {
  border-right: 0;
}

.media-cell,
.coin-cell,
.lore-cell,
.stats-cell,
.directory-cell {
  text-align: left;
}

.caption,
.small,
.legal,
.copyright {
  font-size: 0.625em;
  line-height: 1.35;
}

.caption {
  margin-bottom: 0;
  text-align: center;
}

.eyebrow,
.live {
  font-size: 0.75em;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

h1,
h2,
p {
  margin: 0 0 0.75rem;
}

h1,
h2 {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 0.95;
}

.article-cell p,
.coin-cell p,
.manifesto-grid p,
.market-grid p,
.footer p {
  font-size: 0.75em;
  line-height: 1.35;
}

.coin-cell {
  text-align: center;
}

.coin-cell img,
.lore-cell img {
  border: 1px solid var(--line);
  margin: 0 auto 0.75rem;
  width: min(100%, 18rem);
}

.logo-cutout {
  background:
    radial-gradient(circle, rgba(255, 138, 0, 0.18) 0 56%, transparent 57%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.08) 0 0.35rem, transparent 0.35rem 0.7rem);
}

.poster-panel {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.poster-panel img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.poster-panel:before,
.terminal-card:before {
  animation: flash-dot 0.9s steps(2, end) infinite;
  background: var(--orange-hot);
  border: 1px solid var(--line);
  content: "";
  height: 0.55rem;
  left: 0.6rem;
  position: absolute;
  top: 0.6rem;
  width: 0.55rem;
  z-index: 2;
}

.poster-panel:after {
  background: repeating-linear-gradient(0deg, rgba(255, 176, 0, 0.14) 0 1px, transparent 1px 6px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
}

.flash-panel {
  box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.45), 0 0 1rem rgba(255, 138, 0, 0.12);
}

.callout {
  font-size: 1.125em !important;
  font-weight: 700;
  line-height: 1 !important;
}

.headline-grid p {
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.headline-grid span {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.ticker-line {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 2rem;
}

.ticker-line p {
  font-size: 0.875em;
  line-height: 1.1;
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.pill {
  border-radius: 999px;
  font-size: 0.625em;
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.terminal-card {
  border: 1px solid var(--line);
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.directory-cell a {
  border-top: 1px solid var(--line);
  display: block;
  font-size: 0.75em;
  font-weight: 700;
  padding: 0.75rem 0;
}

.live span {
  color: var(--orange);
}

.originals-grid p {
  font-size: 1em;
  font-weight: 700;
  line-height: 0.9;
  margin: 0.5rem 0 0;
}

.footer {
  padding: 0 0 1.5rem;
}

.mobile-directory {
  border-bottom: 1px solid var(--paper);
  border-top: 1px solid var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 1rem 2rem;
}

.mobile-directory a {
  color: var(--orange-hot);
  font-size: 0.75em;
  font-weight: 700;
}

.legal,
.copyright {
  padding: 0 2rem;
}

@keyframes button-flash {
  0%,
  52% {
    background: var(--ink);
    color: var(--orange-hot);
  }

  53%,
  100% {
    background: #2a1600;
    color: #fff0d0;
  }
}

@keyframes flash-dot {
  0%,
  44% {
    opacity: 1;
  }

  45%,
  100% {
    opacity: 0.2;
  }
}

@keyframes stock-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.175rem));
  }
}

@keyframes stock-tick {
  0%,
  61% {
    filter: saturate(1);
    transform: translateY(0);
  }

  62%,
  100% {
    filter: saturate(1.35);
    transform: translateY(-1px);
  }
}

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

@media (max-width: 1680px) {
  body {
    font-size: 13pt;
  }
}

@media (max-width: 736px) {
  body {
    font-size: 11pt;
  }

  #home-section {
    display: flex;
    flex-direction: column;
  }

  .mast,
  .scan-grid,
  .manifesto-grid,
  .market-grid,
  .originals-grid,
  .headline-grid {
    grid-template-columns: 1fr;
  }

  .mast {
    min-height: auto;
    padding: 1rem;
  }

  .mast-title {
    font-size: 2.55rem;
    line-height: 0.95;
    padding: 0;
  }

  .footer-title {
    padding: 2rem 2rem 1rem;
  }

  .icon-gallery {
    gap: 0.45rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 0.1rem;
  }

  .icon-tile {
    flex: 0 0 auto;
    height: 2.75rem;
    width: 2.75rem;
  }

  .link-strip {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
    justify-content: center;
    padding: 0.35rem 0.5rem;
  }

  .link-strip a {
    display: flex;
    flex: 1 1 0;
    font-size: 0.62em;
    min-width: 0;
    padding: 0.45rem 0.1rem;
    text-align: center;
    width: auto;
  }

  .stock-tape {
    order: -1;
    padding: 0.35rem 0;
  }

  .stock-track {
    animation-duration: 24s;
  }

  .stock-chip {
    font-size: 0.78em;
    min-width: 6.8rem;
  }

  .contract-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 2rem;
  }

  .contract-label,
  .contract-address,
  .contract-copy {
    display: block;
    text-align: center;
    width: 100%;
  }

  .scan-grid > *,
  .manifesto-grid > *,
  .market-grid > *,
  .originals-grid > *,
  .headline-grid > * {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 1.5rem 2rem;
  }

  .scan-grid > *:last-child,
  .manifesto-grid > *:last-child,
  .market-grid > *:last-child,
  .originals-grid > *:last-child,
  .headline-grid > *:last-child {
    border-bottom: 0;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pill {
    justify-content: center;
  }

  .mobile-directory {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}
