/* Homepage feature wheel (the landing hero). wheel.js writes the 3D transforms and the measured
   sizes (--wheel-top, --wheel-col, --wheel-cx); this file places the copy around them. Colours come
   from the landing tokens, so the wheel follows the page's skin. */

.wheel { position: relative; }
.wheel-sticky {
  position: relative; overflow: hidden;
  background:
    linear-gradient(var(--ink-2) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--ink-2) 1px, transparent 1px) 0 0 / 48px 100%, var(--ink);
}

/* Intro: headline and the one sign-up button */
.wheel-intro { position: relative; z-index: 3; }
.wheel-intro .slate-line { margin-bottom: 22px; }
.wheel-intro h1 { font-size: clamp(52px, 5.6vw, 92px); line-height: .86; }
.wheel-intro h1 span:not(.hl) { display: block; }
.wheel-intro h1 .hl { display: inline-block; margin: .1em 0 0 .04em; padding: .04em .06em 0 0; line-height: .92; }
.wheel-intro h1 .hl::before { inset: 0 -.06em 0 -.1em; }
.wheel-lede { max-width: 30em; margin-top: 24px; font-size: 18px; color: #d8d1c2; }
.wheel-intro .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.wheel-intro .cta-note { margin-top: 16px; color: var(--muted-dark); }

/* Cards */
.wheel-ring { margin: 0; padding: 0; list-style: none; }
.wheel-face {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #000;
  border: 1px solid #64606a; border-radius: 14px !important; box-shadow: 0 26px 50px -26px #000;
}
.wheel-face video { width: 100%; height: 100%; object-fit: cover; }
.wheel-tag {
  position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 7px; padding: 6px 9px;
  background: rgba(21, 19, 15, .84); color: var(--paper); border-radius: 7px !important;
  font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.wheel-tag b { font-weight: 500; color: var(--hi); }
.wheel-card.is-front .wheel-face { border-color: var(--hi); box-shadow: 0 0 0 1px var(--hi), 0 34px 70px -28px #000; }
.wheel-card.is-front .wheel-tag::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 99px !important; animation: wheel-blink 1.2s steps(2, jump-none) infinite; }

/* Without the script: a plain grid, so every product is still there to read. */
.wheel:not(.is-live) .wheel-sticky { padding: clamp(40px, 6vw, 88px) var(--gutter); }
.wheel:not(.is-live) .wheel-ring { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.wheel:not(.is-live) .wheel-card { aspect-ratio: 1.45; }
.wheel:not(.is-live) :is(.wheel-label, .wheel-panels, .wheel-index, .wheel-hint, .wheel-note) { display: none; }

/* With the script: a sticky stage the page scrolls through */
.wheel.is-live .wheel-sticky {
  position: sticky; top: var(--wheel-top, 64px); min-height: 540px;
  height: calc(100vh - var(--wheel-top, 64px) - var(--wheel-bottom, 0px)); height: calc(100svh - var(--wheel-top, 64px) - var(--wheel-bottom, 0px));
}
.wheel.is-live .wheel-stage { position: absolute; inset: 0; }
.wheel.is-live .wheel-ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.wheel.is-live .wheel-card { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.wheel.is-live .wheel-intro { position: absolute; }
.wheel[data-mode="drum"] .wheel-intro, .wheel[data-mode="ring"] .wheel-panels { pointer-events: none; }

/* The wordmark in the middle of the ring; wheel.js sizes and centres it */
.wheel-label { position: absolute; left: 0; top: 0; z-index: 1; display: grid; justify-items: center; gap: .18em; margin: 0; pointer-events: none; text-align: center; }
.wheel-label b { font: 900 1em/.86 var(--display); letter-spacing: .08em; }
.wheel-label span { font: 500 max(10px, .13em)/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }

/* Product copy beside (wide) or under (narrow) the front card */
.wheel-panels { position: absolute; z-index: 3; }
.wheel-info { animation: wheel-in .35s ease both; }
.wheel-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted-dark); font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.wheel-kicker b { font-weight: 500; color: var(--hi); }
.wheel-info h2 { font-size: clamp(48px, 5vw, 84px); line-height: .88; }
.wheel-desc { max-width: 28em; margin-top: 20px; font-size: 18px; color: #d8d1c2; }
.wheel-info .btn { margin-top: 26px; }

/* Index of all six */
.wheel-index { position: absolute; z-index: 4; top: 7.5%; right: max(2.5%, 16px); margin: 0; padding: 0; list-style: none; text-align: right; }
.wheel-index button {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 0; border: 0; background: none;
  color: var(--muted-dark); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color .15s;
}
.wheel-index button::after { content: ""; width: 14px; height: 2px; background: currentColor; opacity: .45; transition: width .2s, opacity .2s; }
.wheel-index button b { font-weight: 500; opacity: .6; }
.wheel-index button:hover { color: var(--paper); }
.wheel-index button[aria-current="true"] { color: var(--paper); }
.wheel-index button[aria-current="true"] b { color: var(--hi); opacity: 1; }
.wheel-index button[aria-current="true"]::after { width: 30px; background: var(--hi); opacity: 1; }

.wheel-hint { position: absolute; left: var(--wheel-cx, 50%); bottom: 18px; z-index: 2; display: flex; gap: 8px; margin: 0; transform: translateX(-50%); color: var(--muted-dark); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.wheel-hint::after { content: "\2193"; display: inline-block; animation: wheel-nudge 1.6s ease-in-out infinite; }
.wheel-note { position: absolute; left: var(--gutter); bottom: 18px; z-index: 2; margin: 0; color: var(--muted-dark); font: 400 10px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Wide: copy in a left column, the wheel to its right */
.wheel[data-layout="wide"] :is(.wheel-intro, .wheel-panels) { left: var(--gutter); top: 50%; width: var(--wheel-col, 440px); transform: translateY(-50%); }

/* Tight: a short wide screen (wheel.js sets it when the intro would overflow) */
.wheel.wheel-tight .wheel-intro h1 { font-size: clamp(36px, 6.4vh, 60px); }
.wheel.wheel-tight .wheel-intro h1 span:not(.hl) { display: inline; }
.wheel.wheel-tight .wheel-lede { display: none; }

/* Narrow: intro over the ring, product copy over a scrim under the drum, numbered index on top */
.wheel[data-layout="narrow"] .wheel-intro { left: var(--gutter); right: var(--gutter); top: calc(20px + var(--wheel-clear, 0px)); }
.wheel[data-layout="narrow"] .wheel-intro .slate-line { margin-bottom: 14px; }
.wheel[data-layout="narrow"] .wheel-intro h1 { font-size: clamp(42px, 11vw, 72px); }
.wheel[data-layout="narrow"] .wheel-intro h1 span:not(.hl) { display: inline; }
.wheel[data-layout="narrow"] .wheel-lede { display: none; }
.wheel[data-layout="narrow"] .wheel-intro .hero-actions { margin-top: 18px; }
.wheel[data-layout="narrow"] .wheel-intro .cta-note { margin-top: 10px; }
.wheel[data-layout="narrow"] .wheel-panels { left: 0; right: 0; bottom: 0; padding: 64px var(--gutter) 22px; background: linear-gradient(transparent, var(--ink) 52px); }
.wheel[data-layout="narrow"] .wheel-kicker { margin-bottom: 10px; }
.wheel[data-layout="narrow"] .wheel-info h2 { font-size: clamp(36px, 9vw, 56px); }
.wheel[data-layout="narrow"] .wheel-desc { margin-top: 10px; font-size: 15px; line-height: 1.45; }
.wheel[data-layout="narrow"] .wheel-info .btn { margin-top: 16px; }
.wheel[data-layout="narrow"] .wheel-index { top: calc(12px + var(--wheel-clear, 0px)); left: 50%; right: auto; display: flex; gap: 6px; transform: translateX(-50%); }
.wheel[data-layout="narrow"] .wheel-index button { padding: 8px 10px; background: rgba(34, 36, 43, .86); border: 1px solid var(--ink-3); border-radius: 99px !important; }
.wheel[data-layout="narrow"] .wheel-index button::after { display: none; }
.wheel[data-layout="narrow"] .wheel-index button[aria-current="true"] { border-color: var(--hi); }
.wheel[data-layout="narrow"] .wheel-index span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wheel[data-layout="narrow"] :is(.wheel-hint, .wheel-note) { display: none; }

@keyframes wheel-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes wheel-nudge { 50% { transform: translateY(3px); } }
@keyframes wheel-blink { 50% { opacity: 0; } }
