@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --coral: #f36f56;
  --ink: #151515;
  --cream: #fff8e8;
  --lime: #ddff4f;
  --blue: #3158ff;
  --line: rgba(21, 21, 21, .24);
}

* { box-sizing: border-box; }

html { background: var(--coral); color: var(--ink); }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 87% 13%, rgba(255,248,232,.22) 0 1px, transparent 2px) 0 0 / 19px 19px,
    var(--coral);
  font-family: Manrope, Arial, sans-serif;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header,
footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.site-header { height: 104px; border-bottom: 1px solid var(--line); }

.wordmark {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 6px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  transform: rotate(-7deg);
}

.mark i { display: block; background: var(--ink); border-radius: 6px; }
.mark i:nth-child(1) { height: 35%; }
.mark i:nth-child(2) { height: 70%; }
.mark i:nth-child(3) { height: 100%; }

.status,
.eyebrow,
.probability,
footer {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 5px rgba(221,255,79,.25);
  animation: pulse 2.2s ease-out infinite;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - 168px);
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
  padding: clamp(54px, 8vh, 110px) 0 112px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
  align-items: end;
  gap: 7vw;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; font-size: clamp(10px, .9vw, 13px); }

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(64px, 9.2vw, 152px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.075em;
}

h1 em {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.085em;
}

.intro {
  max-width: 590px;
  margin: 36px 0 0 3px;
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.probability {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: 8px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: 10px;
  transform: rotate(1.2deg);
}

.probability-top,
.probability-bottom { display: flex; justify-content: space-between; gap: 12px; }
.probability-top { align-items: flex-end; }
.probability-top strong { font-family: Manrope, sans-serif; font-size: 34px; letter-spacing: -.05em; }
.meter { height: 12px; margin: 16px 0 10px; border: 2px solid var(--ink); background: var(--cream); overflow: hidden; }
.meter span { display: block; width: 87.4%; height: 100%; background: var(--blue); transform-origin: left; animation: resolve 1.3s cubic-bezier(.2,.8,.2,1) both .25s; }

.orbit {
  position: absolute;
  z-index: 0;
  top: 5%;
  right: -6%;
  width: clamp(320px, 46vw, 730px);
  aspect-ratio: 1;
  opacity: .95;
  animation: drift 10s ease-in-out infinite alternate;
}

.orbit-ring { position: absolute; inset: 13%; border: 2px solid var(--ink); border-radius: 50%; }
.ring-one { transform: rotate(21deg) scaleY(.54); }
.ring-two { transform: rotate(-42deg) scaleY(.38); }
.core {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 55% 45%;
  background: var(--blue);
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: clamp(80px, 12vw, 185px);
  line-height: 1;
  box-shadow: 12px 14px 0 var(--ink);
  transform: rotate(8deg);
}

.satellite { position: absolute; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }
.s1 { top: 16%; left: 21%; }
.s2 { top: 28%; right: 12%; width: 34px; height: 34px; background: var(--cream); }
.s3 { bottom: 14%; left: 30%; width: 15px; height: 15px; }
.s4 { right: 23%; bottom: 21%; background: var(--ink); }

footer {
  min-height: 64px;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

footer p { margin: 0; }

@keyframes pulse { 60%, 100% { box-shadow: 0 0 0 12px rgba(221,255,79,0); } }
@keyframes resolve { from { transform: scaleX(0); } }
@keyframes drift { to { transform: translate3d(-18px, 10px, 0) rotate(3deg); } }

@media (max-width: 780px) {
  .site-header, .hero, footer { width: min(100% - 32px, 1440px); }
  .site-header { height: 86px; }
  .hero { min-height: calc(100svh - 142px); grid-template-columns: 1fr; align-content: end; padding: 48px 0 84px; }
  .hero-copy { padding-top: 230px; }
  h1 { font-size: clamp(58px, 18vw, 96px); }
  .intro { margin-top: 25px; max-width: 460px; }
  .probability { width: min(100% - 8px, 420px); }
  .orbit { width: 390px; right: -145px; top: -48px; }
  .core { box-shadow: 8px 9px 0 var(--ink); }
}

@media (max-width: 430px) {
  .status { font-size: 9px; }
  .wordmark { font-size: 12px; }
  .mark { width: 34px; height: 34px; }
  .hero-copy { padding-top: 175px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(53px, 17vw, 78px); }
  .intro { font-size: 16px; }
  .orbit { width: 310px; right: -108px; top: -28px; }
  .probability-top strong { font-size: 28px; }
  .probability-bottom { font-size: 8px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}

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