:root {
  --bg: #2f6fe6;
  --bg2: #275fd0;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);
  --panel-max: 1200px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* Soft scroll snapping like a slide deck */
.deck {
  scroll-snap-type: y proximity;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0));
  backdrop-filter: blur(8px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand__text {
  font-weight: 700;
  opacity: 0.95;
}

.hint {
  font-size: 14px;
  opacity: 0.85;
}

.panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.panel__img {
  max-width: min(920px, 94vw);
  max-height: calc(100vh - 96px);

  width: auto;
  height: auto;

  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  background: transparent;
}

.panel--text {
  padding: 9vh 5vw;
}

.textslide {
  width: min(1100px, 92vw);
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 48px var(--shadow);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 44px);
}

.textslide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.textslide h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 0 rgba(0,0,0,0.18);
}

.textslide p {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 34px);
  line-height: 1.25;
  text-shadow: 0 3px 0 rgba(0,0,0,0.16);
}

.textslide ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: clamp(18px, 2.3vw, 32px);
  line-height: 1.25;
  text-shadow: 0 3px 0 rgba(0,0,0,0.16);
}

.textslide li { margin: 12px 0; }

.atom {
  width: clamp(56px, 8vw, 96px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
  opacity: 0.95;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.footer {
  padding: 40px 20px 54px;
  text-align: center;
}

.to-top {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.to-top:hover {
  background: rgba(255,255,255,0.2);
}

.footer__meta {
  margin-top: 14px;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-snap-type: none; }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 520px) {
  .hint { display: none; }
  .panel__img { border-radius: 10px; }
}
