:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #11161d;
  --text: #f4f7fb;
  --muted: #aab4c2;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #2fd1b5;
  --accent-strong: #67f0cf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #171d25;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.86), rgba(9, 11, 15, 0));
}

.brand,
.header-action,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  box-shadow: inset 0 0 0 4px rgba(47, 209, 181, 0.2);
}

.nav-links {
  gap: clamp(18px, 4vw, 38px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.header-action {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.header-action {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.25fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  padding: 90px clamp(18px, 5vw, 72px) 52px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 30%, rgba(47, 209, 181, 0.18), transparent 30%),
    linear-gradient(110deg, rgba(9, 11, 15, 0.98) 0%, rgba(9, 11, 15, 0.8) 42%, rgba(9, 11, 15, 0.5) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-copy {
  max-width: 610px;
  padding-top: 28px;
  animation: liftIn 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(58px, 13vw, 150px);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-line {
  max-width: 440px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.subscribe-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.primary-action,
.subscribe-form button {
  border: 0;
  color: #04110f;
  background: var(--accent);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary-action:hover,
.secondary-action:hover,
.subscribe-form button:hover {
  transform: translateY(-2px);
}

.image-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  grid-auto-rows: clamp(88px, 11vw, 170px);
  gap: clamp(8px, 1.1vw, 14px);
  transform: rotate(-2deg);
}

.image-wall img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: tileIn 650ms ease forwards;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    z-index 220ms ease;
}

.image-wall img:nth-child(1),
.image-wall img:nth-child(7),
.image-wall img:nth-child(10) {
  grid-row: span 2;
}

.image-wall img:nth-child(4),
.image-wall img:nth-child(9) {
  grid-column: span 2;
}

.image-wall img:hover {
  z-index: 2;
  transform: translateY(-4px) scale(1.05);
  filter: saturate(1.16) contrast(1.06);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0f141a;
}

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

.ticker span {
  padding: 18px 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section {
  padding: clamp(72px, 10vw, 136px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: clamp(16px, 5vw, 80px);
  align-items: end;
  max-width: 1280px;
  margin: 0 auto 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(18px, 3vw, 34px);
  max-width: 1280px;
  margin: 0 auto;
}

.lead-story {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
}

.lead-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
}

.lead-story div {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: clamp(22px, 4vw, 42px);
}

.lead-story p,
.mini-feed span,
.brief-list span {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-story h3 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.05;
  word-break: keep-all;
}

.mini-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mini-feed article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  min-height: 112px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mini-feed img {
  grid-row: 1 / 3;
  aspect-ratio: 1;
  height: auto;
  border-radius: 8px;
}

.mini-feed strong {
  align-self: start;
  font-size: 18px;
  line-height: 1.32;
  word-break: keep-all;
}

.stack-section {
  overflow: hidden;
  background: #eef2f6;
  color: #0b1117;
}

.stack-section .eyebrow {
  color: #147c70;
}

.stack-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(148px, 18vw, 260px);
  gap: 12px;
  width: max-content;
  padding-block: 14px;
  animation: drift 36s linear infinite;
}

.stack-strip figure {
  position: relative;
  height: clamp(150px, 22vw, 280px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #c9d2dc;
}

.stack-strip figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.briefs-section {
  background: #090b0f;
}

.brief-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.brief-list article {
  display: grid;
  grid-template-rows: 170px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brief-list img {
  border-radius: 8px;
}

.brief-list h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.32;
  word-break: keep-all;
}

.load-section {
  background: #0d1117;
}

.load-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
}

.load-grid img {
  aspect-ratio: 23 / 16;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.load-grid img:hover {
  z-index: 1;
  transform: scale(1.04);
  filter: saturate(1.14) contrast(1.08);
}

.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: 24px;
  align-items: end;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--accent);
  color: #04110f;
}

.subscribe-section .eyebrow {
  color: #06564b;
}

.subscribe-section h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  word-break: keep-all;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.subscribe-form label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subscribe-form input {
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #04110f;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  outline: none;
}

.subscribe-form button {
  min-width: 86px;
  background: #04110f;
  color: #fff;
  cursor: pointer;
}

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

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

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tileIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scrollTicker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(calc(-50% + 50vw));
  }
  100% {
    transform: translateX(0);
  }
}

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 94px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .image-wall {
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    grid-auto-rows: clamp(82px, 23vw, 160px);
    transform: rotate(-1deg);
  }

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

  .lead-story {
    min-height: 420px;
  }

  .brief-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .load-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .header-action {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-inline: 14px;
    padding-bottom: 34px;
  }

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

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

  .image-wall {
    gap: 7px;
  }

  .image-wall img:nth-child(n + 10) {
    display: none;
  }

  .section {
    padding-inline: 14px;
  }

  .mini-feed article {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 96px;
  }

  .mini-feed strong,
  .brief-list h3 {
    font-size: 17px;
  }

  .brief-list {
    grid-template-columns: 1fr;
  }

  .brief-list article {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .brief-list img {
    aspect-ratio: 1;
    height: auto;
  }

  .subscribe-section {
    padding-inline: 14px;
  }

  .load-grid {
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }

  .subscribe-form {
    grid-template-columns: 1fr;
  }
}
