:root {
  --sky: #79b8e8;
  --sky-light: #a8d2ef;
  --paper: #f5eddc;
  --ink: #11100e;
  --muted-ink: rgba(17, 16, 14, .66);
  --line: rgba(17, 16, 14, .22);
  --signal: #ff5a36;
  --yellow: #ffd96c;
  --shadow: 0 24px 70px rgba(34, 57, 76, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(180deg, #78b8e7 0%, #8fc5ea 45%, #beddf0 100%);
  font-family: "Libre Franklin", Arial, sans-serif;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.cloud {
  position: fixed;
  z-index: -3;
  width: 390px;
  height: 82px;
  border-radius: 50%;
  background: rgba(247,236,213,.72);
  filter: blur(18px);
  opacity: .78;
  pointer-events: none;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 150px; height: 120px; left: 60px; top: -35px; }
.cloud::after { width: 190px; height: 140px; right: 45px; top: -48px; }
.cloud-a { left: -80px; top: 26vh; animation: cloudDrift 28s linear infinite alternate; }
.cloud-b { right: -95px; top: 52vh; transform: scale(.78); animation: cloudDrift 34s linear infinite alternate-reverse; }
.cloud-c { left: 36%; bottom: 2vh; transform: scale(1.1); animation: cloudDrift 42s linear infinite alternate; }
@keyframes cloudDrift { to { transform: translateX(120px) scale(.95); } }

.alert-strip {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 34px;
  border-bottom: 1px solid rgba(17,16,14,.45);
  background: var(--paper);
  font: 700 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}
.alert-tag {
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--signal);
  animation: alertPulse 1.15s steps(2,end) infinite;
}
@keyframes alertPulse {
  50% { background: #11100e; }
}
.ticker { overflow: hidden; display: flex; align-items: center; }
.ticker-track {
  display: flex;
  width: max-content;
  gap: 42px;
  padding-left: 42px;
  animation: ticker 19s linear infinite;
}
.ticker-track span::after { content: "✦"; margin-left: 42px; opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }

.masthead {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(17,16,14,.24);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 13px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(255,90,54,.16);
  animation: signalPulse 1.25s ease-out infinite;
}
@keyframes signalPulse {
  50% { box-shadow: 0 0 0 10px rgba(255,90,54,0); }
}
.masthead-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .06em;
}
.status-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(17,16,14,.32);
  border-radius: 999px;
  background: rgba(245,237,220,.38);
  backdrop-filter: blur(10px);
}
.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20a55f;
  box-shadow: 0 0 0 4px rgba(32,165,95,.13);
}

.hero {
  position: relative;
  min-height: 1120px;
  padding: 42px clamp(18px, 3vw, 42px) 36px;
  isolation: isolate;
}
.giant-type {
  position: absolute;
  z-index: -1;
  top: 90px;
  font: 400 clamp(130px, 25vw, 360px)/.8 "Archivo Black", sans-serif;
  letter-spacing: -.08em;
  color: rgba(245,237,220,.24);
  -webkit-text-stroke: 1px rgba(17,16,14,.08);
  user-select: none;
}
.giant-type-left { left: -20px; }
.giant-type-right { right: -10px; top: 390px; }

.center-stage {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
}
.ufo-wrap {
  position: absolute;
  z-index: 10;
  top: 20px;
  left: 50%;
  width: min(68vw, 820px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  animation: levitate 5.8s ease-in-out infinite;
  will-change: transform;
}
.ufo-image-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 28px 25px rgba(39,62,78,.22));
  -webkit-mask-image: radial-gradient(ellipse 46% 34% at 50% 50%, #000 56%, rgba(0,0,0,.97) 64%, rgba(0,0,0,.45) 75%, transparent 86%);
  mask-image: radial-gradient(ellipse 46% 34% at 50% 50%, #000 56%, rgba(0,0,0,.97) 64%, rgba(0,0,0,.45) 75%, transparent 86%);
}
.ufo-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
}
.ufo-shadow {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 48%;
  height: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(32,57,72,.18);
  filter: blur(18px);
  animation: shadowPulse 5.8s ease-in-out infinite;
}
@keyframes levitate {
  0%,100% { transform: translateX(-50%) translateY(0) rotate(-.35deg); }
  28% { transform: translateX(-50%) translateY(-11px) rotate(.2deg); }
  52% { transform: translateX(-50%) translateY(-22px) rotate(.5deg); }
  74% { transform: translateX(-50%) translateY(-15px) rotate(-.12deg); }
}
.ufo-wrap::after {
  content: "LIVE OBJECT • VISUAL LOCK";
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 20;
  transform: translateX(-50%) rotate(-2deg);
  padding: 6px 9px;
  border: 1px solid rgba(17,16,14,.48);
  background: rgba(245,237,220,.9);
  box-shadow: 4px 4px 0 rgba(17,16,14,.1);
  font: 700 9px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  white-space: nowrap;
  animation: liveTagJolt 2.8s steps(1,end) infinite;
}
@keyframes liveTagJolt {
  0%, 92%, 100% { transform: translateX(-50%) rotate(-2deg); }
  94% { transform: translateX(calc(-50% + 4px)) rotate(-1deg); }
  96% { transform: translateX(calc(-50% - 3px)) rotate(-3deg); }
}
@keyframes shadowPulse {
  0%,100% { transform: translateX(-50%) scaleX(1); opacity: .28; }
  50% { transform: translateX(-50%) scaleX(.82); opacity: .14; }
}

.orbit {
  position: absolute;
  z-index: 2;
  border: 1px dashed rgba(17,16,14,.18);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: min(72vw, 880px); aspect-ratio: 1; animation: spin 30s linear infinite; }
.orbit-two { width: min(53vw, 660px); aspect-ratio: 1; animation: spin 21s linear infinite reverse; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.beam {
  position: absolute;
  z-index: 0;
  top: 420px;
  width: min(42vw, 420px);
  height: 290px;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,243,163,.24), rgba(255,245,180,0));
  filter: blur(6px);
  opacity: .7;
  animation: beamBreath 3.8s ease-in-out infinite;
}
@keyframes beamBreath { 50% { opacity: .35; transform: scaleX(.88); } }

.hero-copy {
  position: relative;
  z-index: 15;
  width: min(900px, 100%);
  margin-top: 400px;
  text-align: center;
  pointer-events: none;
}
.kicker, .eyebrow, .tiny-label {
  font: 700 10px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .11em;
}
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.kicker span { padding: 5px 7px; color: #fff; background: var(--signal); }
.hero-copy h1 {
  margin: 0;
  font: 400 clamp(64px, 9.2vw, 138px)/.77 "Archivo Black", sans-serif;
  letter-spacing: -.07em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.hero-deck {
  width: min(640px, 88%);
  margin: 20px auto 0;
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.55;
  font-weight: 600;
}

.news-card {
  position: absolute;
  z-index: 16;
  width: min(310px, 26vw);
  padding: 18px;
  border: 1px solid rgba(17,16,14,.38);
  background: rgba(245,237,220,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card-left { left: 3vw; top: 165px; transform: rotate(-1.3deg); }
.card-right { right: 3vw; top: 255px; transform: rotate(1.1deg); }
.floating-card { animation: cardFloat 6.5s ease-in-out infinite; }
.delay-card { animation-delay: -2.7s; }
@keyframes cardFloat {
  0%,100% { translate: 0 0; }
  45% { translate: 0 -8px; }
  47% { translate: 2px -7px; }
  49% { translate: -1px -8px; }
  52% { translate: 0 -8px; }
}
.news-card::before {
  content: "LIVE";
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 4px 7px;
  color: #fff;
  background: var(--signal);
  font: 700 9px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  box-shadow: 3px 3px 0 rgba(17,16,14,.12);
  animation: blink .95s steps(2,end) infinite;
}
.hot-status { color: #d9381b; text-shadow: 0 0 18px rgba(255,90,54,.28); }
.news-card h2 {
  margin: 12px 0 9px;
  font: 800 clamp(18px, 2vw, 27px)/1.04 "Libre Franklin", sans-serif;
  letter-spacing: -.03em;
}
.news-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted-ink); }
.card-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(17,16,14,.22);
  font: 700 10px/1 "IBM Plex Mono", monospace;
}
.blink { animation: blink 1.25s steps(2,end) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.action-dock {
  position: relative;
  z-index: 20;
  width: min(1120px, 100%);
  margin: -16px auto 0;
  padding: 14px;
  border: 1px solid rgba(17,16,14,.34);
  background: rgba(245,237,220,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.ca-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 15px;
  border: 1px solid rgba(17,16,14,.18);
  background: rgba(255,255,255,.28);
}
.ca-box > div { min-width: 0; }
.ca-box code {
  display: block;
  margin-top: 5px;
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 14px/1.2 "IBM Plex Mono", monospace;
}
.action-buttons { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(17,16,14,.4);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); box-shadow: 0 8px 0 rgba(17,16,14,.1); }
.btn-primary { background: var(--signal); color: #fff; border-color: var(--signal); }
.btn-primary:hover { background: var(--ink); }
.btn-copy { white-space: nowrap; }

.lower-grid {
  position: relative;
  z-index: 18;
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .7fr;
  width: min(1120px, 100%);
  margin: 26px auto 0;
  border-top: 1px solid rgba(17,16,14,.34);
  border-bottom: 1px solid rgba(17,16,14,.34);
}
.story-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px 22px;
  border-right: 1px solid rgba(17,16,14,.22);
  background: rgba(245,237,220,.2);
}
.story-block:last-child { border-right: 0; }
.story-number { font: 700 11px/1 "IBM Plex Mono", monospace; opacity: .62; }
.story-block h3 { margin: 8px 0 10px; font-size: 20px; line-height: 1.07; letter-spacing: -.03em; }
.story-block p { margin: 0; font-size: 13px; line-height: 1.52; color: var(--muted-ink); }
.quote-block { display: block; background: var(--paper); }
.quote-mark { font: 400 72px/.6 Georgia, serif; }
.quote-block p { margin: 8px 0 14px; font-size: 19px; font-weight: 800; line-height: 1.14; color: var(--ink); }
.quote-block span { font: 600 10px/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; opacity: .62; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 42px) 28px;
  font: 600 10px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
  background: rgba(245,237,220,.25);
}

.toast {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.2);
  font: 700 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { min-height: 1180px; }
  .news-card { width: 230px; }
  .card-left { top: 130px; left: 18px; }
  .card-right { top: 290px; right: 18px; }
  .ufo-wrap { width: min(86vw, 760px); top: 35px; }
  .hero-copy { margin-top: 430px; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .quote-block { grid-column: 1 / -1; border-top: 1px solid rgba(17,16,14,.22); }
}

@media (max-width: 720px) {
  .masthead { align-items: flex-start; }
  .masthead-meta > span:first-child { display: none; }
  .status-pill { display: none; }
  .hero { min-height: auto; padding-top: 10px; }
  .giant-type { font-size: 34vw; opacity: .65; }
  .giant-type-left { top: 110px; }
  .giant-type-right { top: 360px; }
  .center-stage { min-height: 700px; }
  .ufo-wrap { width: 118vw; top: 2px; }
  .orbit-one { width: 102vw; }
  .orbit-two { width: 82vw; }
  .beam { top: 350px; width: 72vw; }
  .hero-copy { margin-top: 390px; }
  .hero-copy h1 { font-size: clamp(58px, 20vw, 96px); }
  .hero-deck { width: 94%; font-size: 14px; }
  .news-card { width: calc(50% - 28px); padding: 12px; }
  .news-card h2 { font-size: 16px; }
  .news-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
  }
  .card-left { left: 14px; top: 150px; }
  .card-right { right: 14px; top: 250px; }
  .action-dock { margin-top: 0; }
  .ca-box { align-items: stretch; flex-direction: column; }
  .ca-box code { max-width: 78vw; }
  .action-buttons { grid-template-columns: 1fr 1fr; }
  .btn-primary { grid-column: 1 / -1; }
  .lower-grid { grid-template-columns: 1fr; }
  .story-block { border-right: 0; border-bottom: 1px solid rgba(17,16,14,.22); }
  .quote-block { grid-column: auto; }
  .footer { flex-direction: column; }
}

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