/* LinQ Scroll Stack section kit styles. Load after stack.css.
   Colors and fonts come from the :root tokens in stack.css, so a rebrand there restyles all of this. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sec { position: relative; padding: clamp(90px, 14vh, 180px) 0; background: var(--bg); color: var(--ink); overflow: clip; }
.sec.light { background: var(--b2); color: #111; }
.sec.deep { background: var(--b3); }
.sec h2 + p, .lead { margin-top: 18px; max-width: 54ch; font-size: clamp(17px, 1.4vw, 20px); opacity: .85; }
h3 { font: 400 clamp(26px, 3vw, 44px)/1 var(--display); text-transform: uppercase; }

/* ---------- Hero film: words sit on the first frame and clear out on the first scroll ---------- */
.scrub.hero .stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .1) 60%); opacity: calc(1 - var(--p, 0) * 12); }
.herocopy { position: absolute; z-index: 3; left: var(--gutter); bottom: 13vh; width: min(680px, calc(100% - 2 * var(--gutter))); color: #fff;
  opacity: calc(1 - var(--p, 0) * 18); transform: translateY(calc(var(--p, 0) * -220px)); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.herocopy.gone { visibility: hidden; }
.herocopy .lede { margin-top: 16px; font-size: clamp(17px, 1.5vw, 21px); max-width: 46ch; }
.hint { position: absolute; z-index: 3; right: var(--gutter); bottom: 13vh; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  opacity: calc(.8 - var(--p, 0) * 18); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(8px); } }

/* small captions on the film instead of giant words: the footage stays clean */
.slam.cap { bottom: 11vh; max-width: min(420px, 82vw); padding: 14px 18px; border-radius: 14px; background: rgba(10, 12, 14, .58);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(18px); filter: none; text-shadow: none; }
.slam.cap b { font: 700 12px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.slam.cap span { margin-top: 6px; font-size: 17px; font-weight: 500; }
.slam.cap.on { transform: none; }
.slam.cap.gone { transform: translateY(-14px); filter: none; }

/* ---------- A sentence that lights up ---------- */
.statement { min-height: 120vh; display: grid; place-items: center; }
[data-type] { font: 400 clamp(34px, 5.4vw, 88px)/1.04 var(--display); text-transform: uppercase; max-width: 20ch; }
[data-type] .dim { opacity: .16; }
[data-type] .lit { color: inherit; }

/* ---------- Split: sticky shot, scrolling points ---------- */
.split { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--bg); color: var(--ink); }
.split .media { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #000; }
.split .media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .7s, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.split .media > .on { opacity: 1; transform: none; }
.split .specs { padding: 0 var(--gutter); }
.split .specs > * { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.split .specs > .on { opacity: 1; }
.split .specs p { margin-top: 14px; max-width: 44ch; }
.num { font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }

/* ---------- Sideways gallery ---------- */
.hgal { position: relative; background: var(--b3); color: var(--ink); }
.hgal .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.hgal .head { padding: 0 var(--gutter); }
.hgal .track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.hgal .panel { position: relative; flex: none; width: min(60vw, 860px); aspect-ratio: 16 / 10; margin: 0; border-radius: 20px; overflow: hidden; background: #111; }
.hgal .panel img, .hgal .panel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgal figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(10, 12, 14, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 14px; font-weight: 600; }
.hgal .bar { margin: 0 var(--gutter); height: 2px; background: rgba(255, 255, 255, .16); }
.hgal .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }

/* ---------- Exploded stack ---------- */
.exploded { position: relative; height: 260vh; background: var(--bg); color: var(--ink); }
.exploded .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 var(--gutter); }
.layers { position: relative; height: 72vh; perspective: 1400px; transform-style: preserve-3d; --gap: 11vh; --w: min(46vmin, 420px); }
.layer { position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 1; margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); border-radius: 22px; overflow: hidden;
  background: color-mix(in srgb, var(--accent) calc(16% + var(--n, 0) * 16%), #14171c); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: rotateX(58deg) rotateZ(-32deg) translateZ(calc(var(--i, 0) * var(--e, 0) * var(--gap))); }
.layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.legend { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.legend li { padding-left: 18px; border-left: 2px solid rgba(128, 128, 128, .3); opacity: .32; transition: opacity .4s, border-color .4s; }
.legend li.on { opacity: 1; border-color: var(--accent); }
.legend b { display: block; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: clamp(44px, 9vh, 110px); padding-left: 46px; margin-top: 64px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: currentColor; opacity: .15; }
.timeline::after { background: var(--accent); opacity: 1; transform-origin: 50% 0; transform: scaleY(var(--t, 0)); }
.step { position: relative; max-width: 54ch; opacity: .3; transform: translateX(18px); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.step::before { content: ""; position: absolute; left: -42px; top: .3em; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; transition: background .4s, box-shadow .4s; }
.step.on { opacity: 1; transform: none; }
.step.on::before { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.step p { margin-top: 10px; }

/* ---------- Scenes that slide over each other ---------- */
.scene { position: relative; height: 200vh; }
.scene + .scene { margin-top: -100vh; }
.scene > .stage { display: grid; place-items: center; background: #000; color: #fff; transform-origin: 50% 100%;
  transform: scale(calc(1 - var(--out, 0) * .07)); filter: brightness(calc(1 - var(--out, 0) * .6)); }
.scene .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene > .stage::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.scene .inner { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.scene .inner p { margin: 14px auto 0; max-width: 40ch; font-size: clamp(17px, 1.5vw, 21px); }
.big { display: block; font: 400 clamp(110px, 19vw, 320px)/.85 var(--display); }

/* ---------- Reveals ---------- */
.frame { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #111; }
.frame > * { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-reveal="iris"] { clip-path: circle(calc(10% + var(--v, 0) * 80%) at 50% 50%); }
[data-reveal="wipe"] { clip-path: inset(0 calc((1 - var(--v, 0)) * 100%) 0 0 round 24px); }

/* ---------- Letters fly into place ---------- */
[data-assemble] .w { display: inline-block; white-space: nowrap; }
[data-assemble] .l { display: inline-block; opacity: var(--a, 0); filter: blur(calc((1 - var(--a, 0)) * 8px));
  transform: translate(calc(var(--x) * (1 - var(--a, 0))), calc(var(--y) * (1 - var(--a, 0)))) rotate(calc(var(--r) * (1 - var(--a, 0)))); }
.finale { min-height: 110vh; display: grid; place-items: center; text-align: center; }
.finale .ctas { justify-content: center; }
.finale p { margin: 18px auto 0; }

/* ---------- Running strip ---------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--accent); color: #111; white-space: nowrap; font: 400 clamp(22px, 3vw, 40px)/1 var(--display); text-transform: uppercase; }
.marquee > div { display: inline-flex; gap: 2.2em; padding-right: 2.2em; animation: marq 28s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: 48px; }
.card { padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sec.light .card { background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .09); }
.calc label { display: block; margin-bottom: 18px; font-weight: 600; }
.calc output { float: right; color: var(--accent); }
.calc input[type=range] { display: block; width: 100%; height: 44px; accent-color: var(--accent); }
.calc .opt { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; }
.calc .opt input { width: 22px; height: 22px; accent-color: var(--accent); }
.calc .price { font: 400 clamp(34px, 4vw, 60px)/1 var(--display); margin: 12px 0 6px; }
.calc small { display: block; opacity: .65; margin-bottom: 18px; }
.quiz .opts { display: grid; gap: 10px; margin-top: 18px; }
.quiz [data-pick] { min-height: 52px; padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; font-weight: 600;
  background: rgba(128, 128, 128, .12); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .28); transition: background .2s; }
.quiz [data-pick]:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.quiz .result p { margin: 12px 0 20px; }
.linkbtn { background: none; border: 0; padding: 12px 0; min-height: 44px; cursor: pointer; text-decoration: underline; opacity: .7; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 48px); margin-top: 56px; }
.stats b { display: block; font: 400 clamp(54px, 8vw, 130px)/.9 var(--display); color: var(--accent); }
.stats span { display: block; margin-top: 10px; font-weight: 600; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .herocopy { bottom: 15vh; }
  .hint { display: none; }
  .slam.cap, .slam.cap[data-k="1"], .slam.cap[data-k="2"] { bottom: 12vh; }
  .statement { min-height: 100vh; }
  [data-type] { font-size: 10.5vw; }
  .split { display: block; }
  .split .media { height: 46vh; z-index: 2; }
  .split .specs > * { min-height: 62vh; justify-content: flex-start; padding-top: 9vh; }
  .hgal .panel { width: 82vw; aspect-ratio: 4 / 5; }
  .exploded { height: 240vh; }
  .exploded .pin { grid-template-columns: 1fr; align-content: center; gap: 0; }
  .layers { height: 40vh; --gap: 6.5vh; --w: 44vmin; order: -1; }
  .legend { margin-top: 18px; gap: 10px; }
  .legend li span { display: none; }
  .tools, .stats { grid-template-columns: 1fr; }
  .big { font-size: 30vw; }
  .frame { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee > div, .hint { animation: none; }
  .split .media > *, .step { transition: none; }
}

/* ---------- Small fixes on top of stack.css ---------- */
.loading { pointer-events: none; }
.x { min-width: 44px; min-height: 44px; }
.mark { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Drag to spin ---------- */
.spin { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #000; cursor: grab; touch-action: pan-y; user-select: none; }
.spin.held { cursor: grabbing; }
.spin canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spinhint { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; padding: 8px 14px; border-radius: 999px; background: rgba(10, 12, 14, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.spin.held .spinhint { opacity: 0; }

/* ---------- Build your own ---------- */
.bgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.plate { position: relative; aspect-ratio: 1; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.plate .base { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.plate .top { animation: land .6s cubic-bezier(.2, 1.3, .3, 1) both; transition: opacity .3s, transform .3s; }
.plate .top.off { opacity: 0; transform: scale(1.15); }
@keyframes land { from { opacity: 0; transform: translateY(-55%) scale(1.35) rotate(var(--from, 30deg)); } }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.picks button { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 12px; min-height: 68px; padding: 8px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(128, 128, 128, .12); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .28); transition: background .2s, box-shadow .2s; }
.picks button img { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; }
.picks button b { align-self: end; }
.picks button span { align-self: start; font-size: 13px; opacity: .7; }
.picks button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.fire { justify-content: space-between; }
.builder .note { margin-top: 12px; font-size: 14px; opacity: .65; }
.builder.has-picks .note { visibility: hidden; }

/* a ticket: the order, read back */
.ticket { max-width: 520px; margin: 40px auto 0; padding: 28px; border-radius: 6px; background: #f4ecdc; color: #16120c; font-variant-numeric: tabular-nums; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.ticket .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(0, 0, 0, .25); }
.ticket .row:last-child { border: 0; font-weight: 700; font-size: 22px; }

/* cards you swipe sideways */
.fan { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 28px; margin: 40px 0 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fan::-webkit-scrollbar { display: none; }
.fan > * { flex: none; width: min(78vw, 340px); scroll-snap-align: center; margin: 0; border-radius: 20px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.fan > :nth-child(odd) { rotate: -2deg; }
.fan > :nth-child(even) { rotate: 2deg; }
.fan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fan figcaption { padding: 16px 18px 20px; font-size: 15px; }
.fan figcaption b { display: block; margin-bottom: 6px; }

/* a menu board */
.board { margin-top: 40px; padding: clamp(20px, 3vw, 40px); border-radius: 14px; background: #121110; color: #f1e9d8; box-shadow: inset 0 0 0 8px #3a2c1c; columns: 2; column-gap: 48px; }
.board h3 { font: 700 13px/1 var(--text); letter-spacing: .22em; color: var(--accent); margin: 0 0 14px; break-after: avoid; }
.board p { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; break-inside: avoid; }
.board p::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .25); }
.board p i { order: 2; font-style: normal; }

/* ---------- Map with places ---------- */
.hub { position: relative; background: #000; color: #fff; }
.hub > .stage { position: relative; height: 100vh; height: 100svh; }
.hub .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.6, 0, .3, 1); }
.hub.zooming .fill { transform: scale(3.2); }
.hub > .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 34%, transparent 70%, rgba(0, 0, 0, .5)); }
.hubhead { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: 14vh; text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.spot { position: absolute; z-index: 4; left: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(10, 12, 14, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-weight: 600; white-space: nowrap; transition: background .2s, scale .2s; }
.spot:hover { background: var(--accent); color: #111; scale: 1.06; }
.spot i { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); animation: ping 2s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 18px transparent; } }
.hub.zooming .spot, .hub.zooming .hubhead { opacity: 0; transition: opacity .25s; }
.veil { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity .55s; }
.veil.on { opacity: 1; pointer-events: auto; }
.place { position: relative; background: var(--bg); color: var(--ink); outline: 0; }
.place .scrub { height: 300vh; }
.placehead { position: absolute; z-index: 3; left: var(--gutter); top: 14vh; max-width: min(520px, 80vw); color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); opacity: calc(1 - var(--p, 0) * 6); }
.placenav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 56px var(--gutter) 90px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); padding: 70px 0 0; }
.facts b { display: block; font: 400 clamp(30px, 3.6vw, 54px)/1 var(--display); color: var(--accent); }

@media (max-width: 760px) {
  .spin { aspect-ratio: 4 / 5; }
  .bgrid { grid-template-columns: 1fr; }
  .plate { max-width: 78vw; margin: 0 auto; }
  .board { columns: 1; }
  .spot span { font-size: 14px; }
  .spot { padding-right: 12px; }
  .spot i { width: 30px; height: 30px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .plate .top, .spot i { animation: none; }
  .hub .fill, .veil { transition: none; }
}
