:root {
  color-scheme: dark;
  --ink: #080907;
  --charcoal: #11130f;
  --olive: #2c3724;
  --bone: #f5ead3;
  --paper: #fff8e9;
  --bull: #9a5b25;
  --horn: #ffe6ad;
  --green: #39ff5c;
  --blue: #64b7f0;
  --line: rgba(255, 248, 233, 0.18);
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  background: var(--green);
  color: var(--ink);
}

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 18px 18px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 7, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 60px var(--shadow);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 9, 7, 0.9);
  border-color: rgba(57, 255, 92, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--horn);
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  color: var(--paper);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a {
  padding: 0 14px;
  color: rgba(255, 248, 233, 0.76);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
  background: rgba(255, 248, 233, 0.08);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 42px;
  color: var(--paper);
  border-color: rgba(255, 248, 233, 0.2);
  background: rgba(255, 248, 233, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(57, 255, 92, 0.74);
  color: var(--green);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/bull-war-room.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  animation: slow-push 14s ease-out forwards;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 7, 0.9), rgba(8, 9, 7, 0.48) 48%, rgba(8, 9, 7, 0.12)),
    linear-gradient(0deg, rgba(8, 9, 7, 1), rgba(8, 9, 7, 0) 32%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 54px;
  justify-self: start;
  margin-left: max(18px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-family: "Arial Black", Impact, ui-sans-serif, system-ui, sans-serif;
  font-size: 6rem;
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  color: var(--paper);
  font-size: 3.2rem;
  line-height: 1;
}

h3 {
  color: var(--paper);
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 248, 233, 0.86);
  font-size: 1.42rem;
  line-height: 1.38;
}

.hero-actions,
.chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-width: 138px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  color: #041007;
  border-color: rgba(57, 255, 92, 0.9);
  background: var(--green);
  box-shadow: 0 0 32px rgba(57, 255, 92, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 46px rgba(57, 255, 92, 0.46);
}

.secondary-button {
  color: var(--paper);
  border-color: rgba(255, 248, 233, 0.23);
  background: rgba(255, 248, 233, 0.08);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(100, 183, 240, 0.72);
  color: var(--blue);
}

.contract-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 720px);
  min-width: 0;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 248, 233, 0.2);
  background: rgba(8, 9, 7, 0.58);
}

.contract-pill span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.contract-pill code {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 248, 233, 0.84);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-strip {
  overflow: hidden;
  border-block: 1px solid rgba(255, 248, 233, 0.14);
  background: var(--paper);
  color: var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  padding: 16px 24px;
  font-family: "Arial Black", Impact, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.signal-section,
.command-section,
.gallery-section,
.chart-section,
.final-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.signal-section {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 54px;
  align-items: center;
  padding: 100px 0;
}

.section-copy p:not(.eyebrow),
.chart-copy p,
.command-card p {
  color: rgba(255, 248, 233, 0.72);
  line-height: 1.65;
}

.portrait-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 233, 0.16);
  background: var(--charcoal);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.portrait-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.command-section {
  padding: 80px 0 100px;
}

.command-heading,
.gallery-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.command-card {
  overflow: hidden;
  border: 1px solid rgba(255, 248, 233, 0.14);
  background: #11130f;
}

.command-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.command-card div {
  padding: 22px;
}

.command-card h3 {
  margin-bottom: 8px;
}

.gallery-section {
  padding: 70px 0 110px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 248, 233, 0.14);
  background: #151712;
  cursor: zoom-in;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.chart-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(57, 255, 92, 0.28);
  background:
    linear-gradient(90deg, rgba(57, 255, 92, 0.14), transparent 42%),
    #0d100b;
}

.chart-copy h2 {
  margin-bottom: 16px;
}

.muted {
  color: rgba(255, 248, 233, 0.66);
}

.chart-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.final-section {
  display: grid;
  justify-items: center;
  padding: 92px 0 70px;
  text-align: center;
}

.wordmark {
  width: min(480px, 86vw);
  border: 1px solid rgba(255, 248, 233, 0.12);
}

.final-line {
  margin: 20px 0 0;
  color: rgba(255, 248, 233, 0.78);
  font-size: 1.2rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  transform: translateY(18px);
  padding: 12px 16px;
  border: 1px solid rgba(57, 255, 92, 0.6);
  border-radius: 999px;
  background: rgba(8, 9, 7, 0.92);
  color: var(--green);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.lightbox {
  width: min(920px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 248, 233, 0.2);
  background: #050604;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 233, 0.2);
  border-radius: 999px;
  background: rgba(8, 9, 7, 0.82);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes slow-push {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.03);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@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;
  }
}

@media (max-width: 860px) {
  .site-header {
    inset: 10px 10px auto;
    display: flex;
    justify-content: space-between;
    max-width: calc(100vw - 20px);
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    justify-content: end;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(8, 9, 7, 1), rgba(8, 9, 7, 0) 36%),
      linear-gradient(90deg, rgba(8, 9, 7, 0.92), rgba(8, 9, 7, 0.34));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-inline: 14px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1.18rem;
  }

  .signal-section,
  .chart-section {
    grid-template-columns: 1fr;
  }

  .signal-section {
    padding: 76px 0;
  }

  .command-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item img {
    aspect-ratio: 1;
  }

  .gallery-item.tall img {
    aspect-ratio: 4 / 5;
  }

  .chart-section {
    padding: 30px 18px;
  }

  .chart-actions {
    justify-content: start;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .site-header {
    min-height: 54px;
    width: min(calc(100vw - 20px), 370px);
  }

  .hero-content {
    width: min(calc(100% - 28px), 362px);
    padding-top: 116px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  .hero-actions,
  .chart-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .contract-pill {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ticker-track span {
    padding-inline: 18px;
    font-size: 1.05rem;
  }
}
