.page {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr);
  gap: 32px;
  padding: 48px var(--page-pad) 64px;
  padding-left: calc(var(--page-pad) + env(safe-area-inset-left));
  padding-right: calc(var(--page-pad) + env(safe-area-inset-right));
  align-items: start;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.page::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 480px;
  height: 480px;
  background: conic-gradient(from 200deg, var(--brass), var(--ember), var(--teal), var(--brass));
  opacity: 0.16;
  filter: blur(10px);
  border-radius: 50%;
  transform: translate(25%, -15%);
  animation: orbit 18s linear infinite;
}

header {
  position: sticky;
  top: 32px;
  align-self: start;
  display: grid;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--teal), var(--smoke));
  display: grid;
  place-items: center;
  color: #d7ffe0;
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 139, 141, 0.2);
  animation: thrum 3.6s ease-in-out infinite;
}

.brand h1 {
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  animation: sway 6s ease-in-out infinite;
}

.brand h1 a {
  color: #c7ffd9;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(120, 255, 190, 0.55);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.brand h1 a:hover {
  color: var(--eyeball-red);
  text-shadow: 0 0 16px rgba(var(--eyeball-red-rgb), 0.6);
}

.brand p {
  margin: 6px 0 0;
  font-size: 15px;
  max-width: 300px;
  color: rgba(230, 255, 240, 0.75);
}

.hero {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(142, 205, 168, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 139, 141, 0.25);
  box-shadow: 0 20px 45px rgba(12, 18, 18, 0.12);
  animation: rise 0.9s ease-out, floaty 6.5s ease-in-out infinite;
}

.hero h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
}

.hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cta {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--fog);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: bob 3.2s ease-in-out infinite;
}

.cta.alt {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  animation-delay: 0.6s;
}

.cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 24px rgba(11, 17, 18, 0.2);
}

main {
  display: grid;
  gap: 24px;
}

.modules {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.module {
  background: #c0e8cf;
  border-radius: 20px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(11, 17, 18, 0.12);
  position: relative;
  overflow: hidden;
  animation: float 1s ease forwards, drift 7s ease-in-out infinite;
}

.module::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(var(--eyeball-red-rgb), 0.4), transparent 70%);
  animation: pulseGlow 5s ease-in-out infinite;
}

.module:nth-child(2) { animation-delay: 0.2s, 0.6s; }
.module:nth-child(3) { animation-delay: 0.4s, 1.2s; }
.module:nth-child(4) { animation-delay: 0.6s, 1.8s; }

.module h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.module p,
.module li {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.module ul {
  padding-left: 18px;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.signal {
  display: grid;
  gap: 14px;
  padding: 22px 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(11, 17, 18, 0.95), rgba(15, 139, 141, 0.9));
  color: var(--fog);
  box-shadow: 0 16px 40px rgba(11, 17, 18, 0.2);
  position: relative;
  overflow: hidden;
  animation: pulseGlow 6s ease-in-out infinite;
}

.signal h3 {
  margin: 0;
  font-size: 20px;
}

.signal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.signal li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.signal span {
  color: var(--brass);
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  background: rgba(160, 220, 185, 0.78);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(11, 17, 18, 0.1);
  min-height: 150px;
  display: grid;
  gap: 8px;
  animation: float 1s ease forwards, drift 8s ease-in-out infinite;
}

.panel:nth-child(2) { animation-delay: 0.2s, 0.7s; }
.panel:nth-child(3) { animation-delay: 0.4s, 1.4s; }
.panel:nth-child(4) { animation-delay: 0.6s, 2.1s; }

.panel h4 {
  margin: 0;
  font-size: 16px;
}

.panel p,
.panel li {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.panel ul {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 6px;
}

.whistle {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--ember) 0 12px, transparent 12px 22px);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  animation: scan 14s linear infinite;
}

.media {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(11, 17, 18, 0.12);
  box-shadow: 0 12px 28px rgba(11, 17, 18, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: zoom-in;
}

body.has-zoom {
  overflow: hidden;
}

.media-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 9, 0.8);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 2000;
}

.media-zoom-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(140, 255, 190, 0.45);
  background: rgba(5, 18, 10, 0.94);
  box-shadow: 0 30px 90px rgba(90, 255, 160, 0.4);
  filter: saturate(1.2) brightness(1.05);
  cursor: zoom-out;
}

.steam-stack {
  display: flex;
  gap: 12px;
  align-items: center;
}

.steam {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--steam);
  animation: puff 2.6s ease-in-out infinite;
}

.steam:nth-child(2) { animation-delay: 0.8s; }
.steam:nth-child(3) { animation-delay: 1.6s; }

.note {
  background: rgba(150, 215, 178, 0.76);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(11, 17, 18, 0.1);
  font-size: 14px;
  line-height: 1.5;
}

footer {
  margin-top: 26px;
  font-size: 12px;
  opacity: 0.7;
  color: rgba(230, 255, 240, 0.75);
}

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

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

@keyframes puff {
  0%, 100% { transform: translateY(0) scale(0.9); opacity: 0.45; }
  50% { transform: translateY(-10px) scale(1.08); opacity: 0.95; }
}

@keyframes orbit {
  0% { transform: translate(25%, -15%) rotate(0deg); }
  100% { transform: translate(25%, -15%) rotate(360deg); }
}

@keyframes thrum {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 16px 40px rgba(11, 17, 18, 0.2); }
  50% { box-shadow: 0 26px 60px rgba(var(--eyeball-red-rgb), 0.28); }
}

@keyframes scan {
  0% { background-position: 0 0; }
  100% { background-position: 100px 0; }
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    padding: 32px 20px 48px;
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
  }

  header {
    position: static;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
