:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-elevated: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #e8a849;
  --placeholder-bg: rgba(232, 168, 73, 0.16);
  --radius: 16px;
  --max: 44rem;
}

* { box-sizing: border-box; }

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(120% 80% at 50% -10%, #1c2438 0%, var(--bg) 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.site-header,
.site-footer {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-size: 1.125rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav a.button {
  text-decoration: none;
}

.nav a.button.primary,
.nav a.button.primary:hover {
  color: #0a0d14;
  text-decoration: none;
}

main.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

body.home .site-header,
body.home .site-footer,
body.home main.page {
  max-width: 72rem;
}

.hero {
  margin: 0 0 4.5rem;
}

.kicker {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.section {
  margin: 0 0 4.5rem;
  scroll-margin-top: 1.5rem;
}

.section h2,
.close h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
}

.steps {
  counter-reset: step;
}

.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--placeholder-bg);
  color: var(--accent);
  font-size: 0.8125rem;
  vertical-align: 0.05em;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.lede,
.meta {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.meta { font-size: 0.875rem; }

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 0 0 2rem;
}

.panel .meta {
  margin-bottom: 0.5rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #0a0d14;
}

.button.secondary {
  color: var(--accent);
  border: 1px solid var(--border);
}

article h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.6rem;
}

article h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.4rem;
}

article p, article ul { color: var(--text-secondary); }

article ul { padding-left: 1.2rem; }

article li { margin: 0.35rem 0; }

.placeholder {
  display: inline;
  background: var(--placeholder-bg);
  color: var(--accent);
  padding: 0.05em 0.35em;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.site-footer nav { display: flex; gap: 1rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .actions { margin-top: 0.25rem; }

.photo-wall { margin: 0; }

.hero-stage {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-stage img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 48% 46%;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

.subhead {
  margin: 2rem 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.layout,
.frame-sample,
.theme {
  margin: 0;
}

.shot,
.theme-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.theme-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.theme-stage img { border: 0; }

.bit { z-index: 2; }

.frames-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.layout figcaption,
.frame-sample figcaption,
.theme h3 {
  margin: 0.65rem 0 0.2rem;
  font-size: 1rem;
}

.theme p,
.aside {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.aside { margin-top: 1.5rem; }

.beta { max-width: 40rem; margin: 0 auto; }

.beta h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

.beta-guide {
  margin-top: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.35rem 1.4rem 0.4rem;
}

.beta-guide h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
}

.guide-steps li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--border);
}

.guide-steps li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0d14;
  font-weight: 700;
  font-size: 0.85rem;
}

.guide-steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
}

.guide-steps p { margin: 0 0 0.85rem; }

.guide-steps .button { margin-bottom: 0.35rem; }

#invite { scroll-margin-top: 1.25rem; }

.bit {
  position: absolute;
  top: -8%;
  z-index: 2;
  pointer-events: none;
  animation: fall 7.5s linear infinite;
}

.flake {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 244, 224, 0.9);
  box-shadow: 0 0 6px rgba(255, 244, 224, 0.6);
}

.petal,
.blossom {
  width: 8px;
  height: 12px;
  border-radius: 80% 0 80% 0;
  background: #eb617a;
}

.blossom { background: #fac7d6; }

.spark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff6b1f;
  box-shadow: 0 0 8px #ff6b1f;
  animation-name: rise;
}

.glitter {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fadb85;
  box-shadow: 0 0 10px #fadb85;
  filter: blur(0.4px);
  animation-name: rise;
}

@keyframes fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(240px) rotate(200deg); }
}

@keyframes rise {
  from { transform: translateY(220px); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(-20px); opacity: 0; }
}

.card-photo {
  padding: 0;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 148px;
  max-height: 148px;
  object-fit: cover;
}

.card-photo .card-body { padding: 1.05rem 1.15rem 1.2rem; }

.card-photo:hover { transform: translateY(-6px); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .frames-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bit { animation: none; opacity: 0.7; }
  .hero-stage img { animation: none; }
  .card-photo,
  .card-photo:hover,
  .reveal,
  .reveal.is-in {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
