/* Asteria prototype, round 2 v4: a header with its own glass background, the full wordmark,
   the 3D layers and the new reveals. Tokens live in proto.css. */

/* Header: a frosted bar, readable over photos and over sand alike. */
.top { mix-blend-mode: normal; color: var(--cocoa); padding: 12px calc(12px + var(--gutter-r)) 0 calc(12px + var(--gutter-l)); display: block; }
.top-bar { pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 1320px; margin-inline: auto; padding: 8px 10px; border-radius: 999px; background: rgba(247, 241, 232, 0.78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 10px 40px rgba(47, 34, 27, 0.12); transition: transform 0.5s var(--ease); }
.top.hide .top-bar { transform: translateY(-140%); }
.top .logo { color: var(--cocoa); font: 700 28px/1 var(--display); letter-spacing: -0.04em; }
.top .pill-btn { border-color: var(--line); background: var(--paper); min-height: 42px; }
.top .pill-btn:first-child { justify-self: start; }
.top .end { justify-self: end; }

.hero-title { margin-top: 40px; }

/* 3D layers: decoration only, never in the way of a tap. */
.three { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.three canvas { display: block; width: 100% !important; height: 100% !important; }
#hero-3d {
  z-index: 1;
}
.three-side { inset: 0; z-index: 0; opacity: 0.95; }
.rhythm .inner { position: relative; z-index: 1; }
.finale .three { z-index: 2; }
.finale-copy { z-index: 3; }

/* Photos open from the bottom like an arch when they scroll in. */
.ph { overflow: hidden; border-radius: 999px 999px 28px 28px; }
.ph img { border-radius: 0; transform-origin: 50% 100%; }
.stack-card .ph img { width: 100%; height: clamp(260px, 52svh, 520px); object-fit: cover; }

/* Words in titles rise one by one. */
.wd { display: inline-block; will-change: transform; }

/* Magnetic buttons settle back smoothly. */
.magnetic { transition: transform 0.4s var(--ease); }

@media (max-width: 760px) {
  .top { padding-top: 8px; }
  .top-bar { padding: 6px; }
  .top .pill-btn .lbl { display: none; }
  .top .pill-btn { min-height: 40px; padding: 0 12px; }
  .top .logo { font-size: 24px; }
  .hero-title h1 { font-size: 40px; }
}

/* The team names slide in from the side; keep that slide inside the page. */
.team {
  overflow-x: clip;
}

/* Finale: one plain line about the trial class, above the button. */
.finale-copy p { max-width: 34ch; margin: -6px auto 26px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--linen); }

/* Footer: keep each block a short column. */
footer .row > div { max-width: 220px; line-height: 1.6; }
