:root {
  --ink: #0a1309;
  --ink-soft: #142212;
  --lime: #c7ff33;
  --green: #79bc20;
  --cream: #f6efd7;
  --pink: #e77b77;
  --line: rgba(246, 239, 215, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.grin-max {
  --ink: #a8eb21;
  --ink-soft: #d8ff63;
  --cream: #091208;
  --lime: #091208;
  --line: rgba(9, 18, 8, 0.22);
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

main {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 10% 8%, rgba(141, 216, 41, 0.13), transparent 25rem),
    radial-gradient(circle at 90% 35%, rgba(199, 255, 51, 0.08), transparent 30rem),
    var(--ink);
  transition: background-color 0.5s ease;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.085;
  background-image:
    repeating-radial-gradient(circle at 10% 10%, rgba(255,255,255,.9) 0 0.5px, transparent 0.7px 3px),
    repeating-linear-gradient(93deg, transparent 0 11px, rgba(255,255,255,.14) 12px, transparent 13px 27px);
  background-size: 7px 9px, 43px 53px;
  mix-blend-mode: soft-light;
}

.nav-shell {
  width: min(1380px, calc(100% - 40px));
  height: 74px;
  margin: 18px auto 0;
  padding: 0 12px 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(10, 19, 9, 0.62);
}

.brand {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav-links a:hover {
  color: var(--lime);
}

.nav-buy {
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease;
}

.nav-buy:hover {
  transform: rotate(-3deg) scale(1.04);
}

.hero {
  width: min(1380px, calc(100% - 40px));
  min-height: calc(100svh - 110px);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 120px) 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  gap: clamp(34px, 6vw, 100px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.eyebrow span {
  color: var(--lime);
  margin-right: 8px;
}

.hero h1,
.section h2,
footer h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(5rem, 10.5vw, 10.7rem);
}

.hero h1 span {
  display: block;
  width: max-content;
  color: var(--lime);
  transform: rotate(-3deg) translateX(3%);
  text-shadow: 5px 5px 0 var(--pink);
}

.hero-intro {
  max-width: 570px;
  margin: 38px 0 0;
  color: rgba(246, 239, 215, 0.72);
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

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

.button {
  min-height: 56px;
  padding: 0 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.button-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

.hero-art {
  width: min(100%, 590px);
  justify-self: end;
  aspect-ratio: 0.93;
  padding: 18px;
  background: #85c61d;
  border: 1px solid rgba(199, 255, 51, 0.35);
  border-radius: 46% 46% 12% 12% / 36% 36% 13% 13%;
  position: relative;
  isolation: isolate;
  box-shadow: 0 40px 120px rgba(85, 138, 14, 0.18);
  transform: rotate(2deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px dashed rgba(199, 255, 51, 0.35);
  border-radius: inherit;
  transform: rotate(-4deg);
  z-index: -1;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 44% 44% 9% 9% / 35% 35% 10% 10%;
  filter: contrast(1.04) saturate(1.05);
}

.art-caption {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 27px;
  margin: 0;
  padding: 10px 12px;
  color: #0b1608;
  background: rgba(246, 239, 215, 0.88);
  text-align: center;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.art-stamp {
  position: absolute;
  top: 16px;
  right: -30px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--pink);
  color: #1a0f0c;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.08;
  transform: rotate(12deg);
  box-shadow: 0 0 0 7px var(--ink), 0 0 0 8px var(--pink);
}

.art-stamp span {
  display: block;
  font-family: Impact, sans-serif;
  font-size: 1.85rem;
}

.orbit {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 900;
}

.orbit-one {
  width: 72px;
  height: 72px;
  left: -42px;
  top: 35%;
  transform: rotate(-18deg);
}

.orbit-two {
  width: 54px;
  height: 54px;
  right: 8%;
  bottom: -27px;
  background: var(--lime);
  font-size: 1.75rem;
  transform: rotate(13deg);
}

.ticker {
  width: calc(100% + 40px);
  margin-left: -20px;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  border-block: 1px solid var(--ink);
  transform: rotate(-1.4deg);
}

.ticker div {
  width: max-content;
  padding: 16px 0;
  font-family: Impact, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  animation: ticker 24s linear infinite;
}

.ticker span {
  margin: 0 28px;
}

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

.section {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) 0;
}

.lore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 90px;
}

.section h2 {
  font-size: clamp(4rem, 8.5vw, 8.5rem);
}

.section h2 em {
  color: var(--lime);
  font-style: normal;
}

.lore-copy {
  align-self: end;
  max-width: 560px;
  color: rgba(246, 239, 215, 0.62);
  font-size: 1rem;
  line-height: 1.75;
}

.lore-copy .lead {
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.48;
}

.notes-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note {
  min-height: 260px;
  padding: 30px;
  position: relative;
  border-right: 1px solid var(--line);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.note:last-child { border-right: 0; }
.note:hover { background: var(--lime); color: var(--ink); transform: translateY(-10px) rotate(-1deg); }
.note > span { font-family: Georgia, serif; font-style: italic; color: var(--pink); }
.note h3 { margin: 94px 0 10px; font-family: Impact, sans-serif; font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.02em; }
.note p { margin: 0; max-width: 280px; line-height: 1.5; opacity: 0.7; }

.poster-break {
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.3);
}

.poster-break img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.poster-tape {
  position: absolute;
  right: -60px;
  bottom: 34px;
  padding: 15px 78px;
  background: var(--pink);
  color: #170b08;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}

.reactor {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.reactor-copy p:not(.eyebrow) {
  max-width: 500px;
  color: rgba(246, 239, 215, 0.65);
  line-height: 1.7;
  font-family: Georgia, serif;
  font-size: 1.12rem;
}

.reactor-copy small {
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.reactor-console {
  min-height: 670px;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(199, 255, 51, 0.35);
  border-radius: 42px;
  background:
    linear-gradient(rgba(199,255,51,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199,255,51,.055) 1px, transparent 1px),
    #0d190b;
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(143, 223, 29, 0.08), 0 30px 100px rgba(0,0,0,.28);
  transition: background 0.35s ease, transform 0.35s ease;
}

.reactor-console.is-unlocked {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(1deg);
}

.console-label {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.meter {
  height: 10px;
  background: rgba(246, 239, 215, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--lime));
  box-shadow: 0 0 20px var(--lime);
  transition: width 0.04s linear;
}

.reading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 0 10px;
}

.reading strong {
  font-family: Impact, sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.reading span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.reactor-face {
  width: min(300px, 65%);
  aspect-ratio: 1;
  margin: 8px auto 24px;
  border: 10px solid var(--lime);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(246, 239, 215, 0.3), 0 0 80px rgba(199, 255, 51, 0.16);
  transition: transform 0.15s ease;
}

.reactor-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hold-button {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 900 0.82rem Arial, sans-serif;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 8px 0 #648e19;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  touch-action: none;
}

.hold-button:active {
  transform: translateY(7px);
  box-shadow: 0 1px 0 #648e19;
}

.hold-button.reset {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 0 rgba(10, 19, 9, .45);
}

.hold-hint {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  opacity: 0.6;
}

.spark-field span {
  position: absolute;
  bottom: -40px;
  z-index: 2;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 2.7rem);
  pointer-events: none;
  animation: floatSmile 3.2s ease-in infinite;
}

@keyframes floatSmile {
  from { transform: translateY(0) scale(.3); opacity: 0; }
  20% { opacity: .75; }
  to { transform: translateY(-760px) scale(1.2) rotate(35deg); opacity: 0; }
}

.contract {
  text-align: center;
  border-top: 1px solid var(--line);
}

.ca-box {
  width: min(980px, 100%);
  margin: 54px auto 0;
  padding: 16px 16px 16px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: rgba(246,239,215,.035);
}

.ca-box > div { min-width: 0; }
.ca-box span { display: block; margin-bottom: 8px; font-size: 0.6rem; font-weight: 900; letter-spacing: 0.14em; color: var(--pink); }
.ca-box code { display: block; overflow: hidden; text-overflow: ellipsis; font-size: clamp(.82rem, 1.5vw, 1.05rem); white-space: nowrap; }
.ca-box button { flex: 0 0 auto; min-width: 132px; min-height: 56px; border: 0; border-radius: 14px; background: var(--cream); color: var(--ink); font-weight: 900; cursor: pointer; }
.ca-note { margin: 18px 0 0; opacity: .45; font-size: .68rem; letter-spacing: .06em; }

footer {
  min-height: 700px;
  padding: 120px max(20px, calc((100vw - 1280px) / 2));
  background: var(--lime);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

footer::after {
  content: "SMILOTH";
  position: absolute;
  right: -3vw;
  bottom: -9vw;
  font-family: Impact, sans-serif;
  font-size: 26vw;
  line-height: .8;
  opacity: .07;
  pointer-events: none;
}

.footer-face {
  font-size: 4rem;
  line-height: 1;
}

footer h2 {
  margin-top: 28px;
  font-size: clamp(5rem, 11vw, 11rem);
  position: relative;
  z-index: 1;
}

footer h2 span {
  color: var(--pink);
  text-shadow: 5px 5px 0 var(--ink);
}

.footer-links {
  margin-top: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.footer-links a {
  padding: 17px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  transition: background .2s ease, color .2s ease;
}

.footer-links a:hover { background: var(--ink); color: var(--lime); }

.footer-bottom {
  margin-top: 110px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { text-align: center; }
  .hero h1 span { margin-inline: auto; }
  .hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { justify-self: center; margin-top: 30px; width: min(88vw, 560px); }
  .lore, .reactor { grid-template-columns: 1fr; }
  .lore-copy { align-self: auto; }
  .notes-grid { grid-template-columns: 1fr; }
  .note { border-right: 0; border-bottom: 1px solid var(--line); min-height: 210px; }
  .note:last-child { border-bottom: 0; }
  .note h3 { margin-top: 58px; }
  .poster-break img { aspect-ratio: 1.45; object-position: 62% center; }
  .reactor-console { min-height: 620px; }
}

@media (max-width: 560px) {
  .nav-shell, .hero, .section { width: min(100% - 24px, 1380px); }
  .nav-shell { height: 62px; margin-top: 10px; padding-left: 12px; }
  .brand { font-size: 1rem; }
  .brand-dot { width: 34px; height: 34px; }
  .nav-buy { padding: 12px 17px; }
  .hero { min-height: auto; padding-top: 64px; }
  .hero h1 { font-size: clamp(4rem, 22vw, 6.6rem); }
  .hero-intro { font-size: 1rem; }
  .button { width: 100%; }
  .hero-art { transform: none; padding: 10px; }
  .art-stamp { width: 88px; height: 88px; right: -4px; top: -20px; }
  .art-stamp span { font-size: 1.35rem; }
  .orbit-one { left: -8px; }
  .art-caption { left: 18px; right: 18px; bottom: 17px; font-size: .51rem; }
  .section { padding: 100px 0; }
  .section h2 { font-size: clamp(3.7rem, 18vw, 5.7rem); }
  .lore { gap: 45px; }
  .poster-break { width: calc(100% - 12px); border-radius: 18px; }
  .poster-break img { aspect-ratio: .92; object-position: 73% center; }
  .poster-tape { right: -90px; padding-inline: 100px; font-size: .58rem; }
  .reactor-console { min-height: 560px; padding: 24px 18px; border-radius: 28px; }
  .reading strong { font-size: 3.7rem; }
  .reading span { max-width: 90px; text-align: right; }
  .ca-box { align-items: stretch; flex-direction: column; padding: 18px; }
  .ca-box button { width: 100%; }
  footer { min-height: 620px; padding-top: 95px; }
  footer h2 { font-size: clamp(4.5rem, 21vw, 7rem); }
  .footer-links { flex-direction: column; }
  .footer-links a { text-align: center; }
  .footer-bottom { flex-direction: column; margin-top: 80px; }
}

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