:root {
  --bg: #070809;
  --bg-2: #0d1014;
  --panel: #0f1218;
  --panel-2: #161a22;
  --fg: #f0f4fa;
  --muted: #8791a3;
  --muted-2: #b9c1cc;
  --accent: #6ee7ff;
  --accent-2: #c084fc;
  --border: #1e232d;
  --border-strong: #2a3140;
  --glow-cyan: rgba(110, 231, 255, 0.25);
  --glow-purple: rgba(192, 132, 252, 0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px circle at 15% -10%, rgba(110, 231, 255, 0.07), transparent 50%),
    radial-gradient(1000px circle at 85% 20%, rgba(192, 132, 252, 0.05), transparent 55%),
    radial-gradient(900px circle at 50% 110%, rgba(110, 231, 255, 0.04), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 40px 96px;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}

/* ===== Top bar ===== */
.topbar {
  max-width: 1080px; margin: 0 auto; padding: 24px 40px;
  display: flex; align-items: center; justify-content: flex-end;
  font-size: 13px; color: var(--muted);
}
.topbar .status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase; font-weight: 500;
}
.topbar .status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow-cyan);
  animation: dormant-pulse 3.4s ease-in-out infinite;
}
@keyframes dormant-pulse {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 4px var(--glow-cyan); }
  50%      { opacity: 1;    box-shadow: 0 0 14px var(--glow-cyan); }
}

/* ===== Typography ===== */
h1 {
  font-size: 88px; line-height: 1.02; margin: 0 0 24px;
  letter-spacing: -0.035em; font-weight: 800;
}
h2 {
  font-size: 28px; margin: 0 0 14px;
  letter-spacing: -0.02em; font-weight: 700; line-height: 1.15;
}
p { margin: 0 0 16px; color: var(--muted-2); }
p.lede {
  font-size: 20px; line-height: 1.55; max-width: 58ch;
  color: #d8dee8; font-weight: 400;
}
.eyebrow {
  color: var(--accent); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; margin: 0 0 18px; font-weight: 600;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Hero layout ===== */
.hero {
  padding: 24px 0 40px;
  flex: 1;
  text-align: center;
}
.hero .eyebrow, .hero h1, .hero .lede {
  text-align: center;
  margin-left: auto; margin-right: auto;
}
.hero .lede { max-width: 52ch; }

/* ===== Logo + cryo chamber ===== */
.logo-chamber {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-chamber .chamber-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.logo-chamber .chamber-svg .ring-slow {
  transform-origin: 200px 200px;
  animation: spin-slow 80s linear infinite;
}
.logo-chamber .chamber-svg .ring-fast {
  transform-origin: 200px 200px;
  animation: spin-fast 50s linear infinite reverse;
}
.logo-chamber .chamber-svg .frost {
  transform-origin: 200px 200px;
  animation: frost-breath 5s ease-in-out infinite;
}
.logo-chamber .logo {
  position: relative;
  z-index: 2;
  width: 48%;
  height: auto;
  max-width: 340px;
  animation: logo-breath 6s ease-in-out infinite;
}

@keyframes frost-breath {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.85; }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-fast { to { transform: rotate(360deg); } }
@keyframes logo-breath {
  0%, 100% { opacity: 0.88; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-chamber .chamber-svg *,
  .logo-chamber .logo { animation: none !important; }
  .topbar .status-dot { animation: none; opacity: 0.7; }
}

/* ===== Case study callout ===== */
.case-study {
  margin: 56px auto 0;
  padding: 28px 32px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 640px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.case-study::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.6;
}
.case-study .cs-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 10px;
}
.case-study h2 { margin: 0 0 10px; color: var(--fg); }
.case-study p {
  margin: 0; color: var(--muted-2); font-size: 15px; line-height: 1.6;
}

/* ===== Footer ===== */
footer.site {
  margin-top: 96px; padding: 48px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  text-align: center;
}
footer.site .built-by-kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
footer.site .built-by-logo {
  width: 100%; max-width: 340px; height: auto;
  opacity: 0.85;
}
footer.site .built-by-dates {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  h1 { font-size: 64px; }
  .logo-chamber { max-width: 440px; }
}
@media (max-width: 640px) {
  .wrap { padding: 8px 20px 64px; }
  .topbar { padding: 18px 20px; }
  h1 { font-size: 44px; }
  p.lede { font-size: 17px; }
  .case-study { padding: 22px 22px; margin-top: 40px; }
  .topbar .status { font-size: 10px; letter-spacing: 0.18em; }
  .logo-chamber { max-width: 320px; margin-bottom: 28px; }
  footer.site { margin-top: 64px; }
}
