/* ==========================================================
   HERO: a spinning ring of project cards (js/ring.js)
   Fills the screen; one scroll shrinks it and the headline appears.
   ========================================================== */
.ring { position: relative; height: 165vh; height: 165svh; background: #000; }
.ring__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.ring__scene { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring__scene.is-drag { cursor: grabbing; }
.ring__track { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }

.ring__card { position: absolute; left: 0; top: 0; display: block; border-radius: 10px;
  transform-style: preserve-3d; will-change: transform, opacity; opacity: 0; color: var(--text); text-decoration: none; }
.ring__card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  background: #111; pointer-events: none; -webkit-user-drag: none; }
.ring__cap { position: absolute; left: 0; right: 0; top: 100%; padding-top: .7em; display: flex; justify-content: space-between; gap: 1em;
  font-size: var(--capfs, 13px); line-height: 1.2; white-space: nowrap; transition: opacity .3s; }
.ring__cap b { font-weight: 600; letter-spacing: .02em; }
.ring__cap span { color: var(--muted); }

.ring__copy { position: absolute; left: 0; right: 0; bottom: 8vh; bottom: 8svh; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.ring.is-live .ring__copy { opacity: 0; transform: translateY(28px); pointer-events: none; }
.ring.is-live.is-small .ring__copy, .ring.is-live .ring__copy:focus-within { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.ring__eyebrow { margin: 0; font-size: .74rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.ring__title { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(2.6rem, 7vw, 6.4rem); color: var(--text); }
.ring__title i { font-style: normal; color: var(--accent); }
.ring__lead { margin: 0; max-width: 34rem; color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.ring__copy .row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

.ring__cue { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
.ring.is-small .ring__cue { opacity: 0; }

@media (max-width: 760px) {
  .ring__copy { bottom: 7vh; bottom: 7svh; gap: .9rem; }
  .ring__title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .ring__copy .row { flex-wrap: nowrap; gap: .5rem; }
  .ring__copy .btn { font-size: .82rem !important; padding: .7rem 1rem !important; white-space: nowrap; }
}
.ring.is-live .ring__copy:focus-within { transition: none; transition-delay: 0s; }
