/*!
 * Eventside – landing page
 * A dark "stage" that presents the template like an event programme.
 * The interactive boxes run on the theme's own main.js; this file only styles them.
 *
 *  1. Tokens and base         7. Programme (pinned)
 *  2. Buttons                 8. Playground
 *  3. Strip, progress, nav    9. Inner pages wall and shop
 *  4. Hero and deck          10. Devices
 *  5. Facts and headings     11. Backstage, quality, FAQ
 *  6. Line-up, marquee,      12. Ticket and footer
 *     switcher               13. Responsive and reduced motion
 */

/* ==========================================================================
   1. Tokens and base
   ========================================================================== */
@property --demo {
  syntax: "<color>";
  inherits: true;
  initial-value: #4f45e6;
}
:root {
  --bg: #07070c;
  --surface: #11111a;
  --surface-2: #181824;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #efeef7;
  --muted: #a6a5bb;
  --dim: #77768e;
  --accent: #ffd23f;
  --ink: #120f05;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-ui: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 18px; height: 18px; flex: none; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; color: var(--ink); background: var(--accent); border-radius: 8px; }
.skip:focus { top: 12px; }
.logo { display: block; width: 118px; height: 32px; color: #fff; --logo-b: var(--accent); }

/* scroll reveal (main.js adds .is-revealed) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal [data-reveal="zoom"] { transform: scale(.94) translateY(30px); }
.js-reveal [data-reveal="right"] { transform: translateX(50px); }
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease), translate .25s;
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--accent { color: var(--ink); background: var(--accent); box-shadow: 0 14px 34px -14px rgba(255, 210, 63, .55); }
.btn--accent:hover { background: #fff; }
.btn--ghost, .btn--line { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn--ghost:hover, .btn--line:hover { border-color: var(--text); }
.btn--line[aria-pressed="true"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }

/* ==========================================================================
   3. Strip, progress, nav
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.strip { overflow: hidden; color: var(--ink); background: var(--accent); }
.strip__track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.strip ul { display: flex; flex: none; }
.strip li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 9px 0 9px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip li::after { content: ""; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
@keyframes slide { to { transform: translateX(-50%); } }

.nav { position: sticky; top: 0; z-index: 50; transition: border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 7, 12, .94); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav__logo { display: block; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }

/* ==========================================================================
   4. Hero and deck
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  text-align: center;
  isolation: isolate;
  transition: --demo 1.2s ease;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .055), transparent 60%),
    radial-gradient(60% 45% at 50% 100%, color-mix(in srgb, var(--demo) 38%, transparent), transparent 70%);
}
.hero__lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__lights i {
  position: absolute;
  top: -10%;
  width: 46vw;
  height: 130%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg 166deg, color-mix(in srgb, var(--demo) 34%, transparent) 180deg, transparent 194deg 360deg);
  filter: blur(14px);
  opacity: .9;
  transform-origin: 50% 0;
  animation: sway 9s ease-in-out infinite alternate;
}
.hero__lights i:nth-child(1) { left: -6vw; rotate: -24deg; }
.hero__lights i:nth-child(2) { left: 27vw; rotate: 2deg; animation-duration: 11s; animation-delay: -3s; opacity: .55; }
.hero__lights i:nth-child(3) { right: -6vw; rotate: 24deg; animation-delay: -5s; }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.hero__inner { position: relative; z-index: 2; }
.hero__title { font-family: var(--f-display); font-size: clamp(58px, min(9.4vw, 15.5vh), 160px); font-weight: 400; line-height: .9; letter-spacing: .004em; text-transform: uppercase; }
.hero__line { display: block; }
.hero__line--word { position: relative; overflow: hidden; padding: .02em 0 .04em; color: var(--demo); }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__word .ch { display: inline-block; animation: chIn .8s var(--ease) both; animation-delay: calc(var(--i) * 38ms); }
.hero__word.is-out .ch { animation: chOut .45s cubic-bezier(.7, 0, .84, 0) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(108%) rotate(7deg); } }
@keyframes chOut { to { opacity: 0; transform: translateY(-108%) rotate(-5deg); } }
.hero__lead { max-width: 640px; margin: 30px auto 36px; font-size: 19.5px; line-height: 1.55; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.deck {
  position: relative;
  z-index: 1;
  height: clamp(280px, 30vw, 420px);
  margin-top: 56px;
  perspective: 1800px;
}
.deck::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 20; }
.deck__card {
  position: absolute;
  top: 40px;
  left: 50%;
  width: clamp(200px, 22vw, 330px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 140%;
  transform: translateX(calc(-50% + var(--x, 0px))) translateY(var(--y, 0px)) rotate(var(--r, 0deg)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  filter: brightness(var(--b, .5));
  transition: transform 1.1s var(--ease), filter .8s ease;
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* ==========================================================================
   5. Facts and headings
   ========================================================================== */
.facts { position: relative; z-index: 3; border-block: 1px solid var(--line); background: var(--bg); }
.facts__list { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts__list li { display: flex; flex-direction: column; gap: 4px; padding: 34px 20px 30px; border-left: 1px solid var(--line); }
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__list b { font-family: var(--f-display); font-size: clamp(44px, 5vw, 68px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.facts__list small { font-family: var(--f-display); font-size: .45em; color: var(--muted); }
.facts__list span:not([data-count-to]) { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.sec { position: relative; padding: 150px 0; }
.head { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 28px 70px; margin-bottom: 70px; }
.head__title { font-family: var(--f-display); font-size: clamp(56px, 8.4vw, 132px); font-weight: 400; line-height: .9; letter-spacing: .004em; text-transform: uppercase; text-wrap: balance; }
.head__title span { color: var(--accent); }
.head__text { max-width: 480px; font-size: 18px; color: var(--muted); }

/* ==========================================================================
   6. Line-up, marquee, switcher
   ========================================================================== */
.acts { border-bottom: 1px solid var(--line); }
.act { border-top: 1px solid var(--line); }
.act__link {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 300px) 60px;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  text-decoration: none;
  transition: opacity .4s;
}
.act__no { font-size: 14px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.act__name {
  font-family: var(--f-display);
  font-size: clamp(46px, 7.2vw, 112px);
  line-height: .95;
  text-transform: uppercase;
  transition: color .35s, transform .6s var(--ease);
}
.act__meta { font-size: 15px; line-height: 1.5; color: var(--muted); }
.act__meta em { display: block; margin-top: 6px; font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: .04em; color: var(--dim); }
.act__go {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  transition: background-color .35s, border-color .35s, color .35s, transform .5s var(--ease);
}
.act__thumb { display: none; }
.acts:hover .act__link:not(:hover) { opacity: .32; }
.act__link:hover .act__name, .act__link:focus-visible .act__name { color: var(--act); transform: translateX(16px); }
.act__link:hover .act__go, .act__link:focus-visible .act__go { color: var(--ink); background: var(--act); border-color: var(--act); transform: rotate(45deg); }

.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 280px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--rot, 0deg)) scale(.85);
  transition: opacity .3s, scale .3s;
}
.peek.is-on { opacity: 1; scale: 1.18; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.peek.is-on img { animation: peekScroll 7s cubic-bezier(.45, .05, .55, .95) .4s both; }
@keyframes peekScroll { to { object-position: 50% 100%; } }

.shout { overflow: hidden; padding: 40px 0; border-block: 1px solid var(--line); }
.shout__row { overflow: hidden; }
.shout .vmarquee__track { display: flex; width: max-content; will-change: transform; }
.shout ul { display: flex; flex: none; }
.shout li {
  display: flex;
  align-items: center;
  gap: .4em;
  padding-right: .4em;
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}
.shout li::after { content: ""; width: .16em; height: .16em; background: var(--accent); border-radius: 50%; }
.shout__row--outline li { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .34); }
.shout__row--outline li::after { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34); }

.switch__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 70px; align-items: start; }
.switch__copy .head__title { font-size: clamp(52px, 6.4vw, 104px); margin-bottom: 26px; }
.switch__copy .head__text { margin-bottom: 40px; }
.ctrl__group { margin: 0 0 24px; padding: 0; border: 0; }
.ctrl__group legend { margin-bottom: 12px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ctrl__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--c);
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fff; }
.swatch--own { position: relative; display: block; overflow: hidden; cursor: pointer; background: conic-gradient(#e3124f, #ffd23f, #12b886, #2563eb, #5b3df5, #e3124f); }
.swatch--own input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); padding: 0; border: 0; opacity: 0; cursor: pointer; }
.swatch--own.is-on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fff; }
.swatch--own:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ctrl__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  transition: color .25s, background-color .25s, border-color .25s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--ink); background: #fff; border-color: #fff; }
.switch__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding-top: 26px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }
.switch__facts b { color: var(--text); }

.browser {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 50px 120px -50px rgba(109, 99, 255, .55), 0 0 0 1px var(--line-2);
}
.browser__bar { position: relative; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; background: #1b1b27; }
.browser__bar i { width: 11px; height: 11px; background: #3b3b4d; border-radius: 50%; }
.browser__bar i:nth-child(1) { background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  padding: 4px 16px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, .06);
  border-radius: 8px;
}
.browser__view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: #fff; }
.browser__view iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s, .5)); transform-origin: 0 0; }

/* ==========================================================================
   7. Programme (pinned)
   ========================================================================== */
.prog { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 70px; align-items: start; }
.prog__step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  min-height: 46vh;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  opacity: .32;
  transition: opacity .5s;
}
.prog__step:last-child { min-height: 0; }
.prog__step.is-active { opacity: 1; }
.prog__step time { font-family: var(--f-display); font-size: 30px; line-height: 1.1; color: var(--dim); transition: color .4s; }
.prog__step.is-active time { color: var(--accent); }
.prog__step h3 { margin-bottom: 10px; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.prog__step p { margin-bottom: 16px; color: var(--muted); }
.prog__step a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.prog__step a:hover { text-decoration: underline; text-underline-offset: 4px; }
.prog__stage { position: sticky; top: calc(var(--nav-h) + 40px); }
.prog__screen { overflow: hidden; background: var(--surface); border-radius: 16px; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2); }
.prog__shots { position: relative; aspect-ratio: 16 / 10; background: #fff; }
.prog__shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.77, 0, .18, 1);
}
.prog__shots img.is-prev { z-index: 1; clip-path: inset(0); transition: none; }
.prog__shots img.is-active { z-index: 2; clip-path: inset(0); }
.prog__bar { height: 3px; margin-top: 22px; overflow: hidden; background: var(--line); border-radius: 2px; }
.prog__bar span { display: block; width: calc(var(--p, .1667) * 100%); height: 100%; background: var(--accent); transition: width .8s var(--ease); }

/* ==========================================================================
   8. Playground
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "count count poll tz"
    "dots dots poll tz"
    "rsvp conf scr scr";
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color .3s;
}
.tile:hover { border-color: var(--line-2); }
.tile--count { grid-area: count; }
.tile--poll { grid-area: poll; }
.tile--tz { grid-area: tz; }
.tile--dots { grid-area: dots; min-height: 230px; }
.tile--rsvp { grid-area: rsvp; }
.tile--confetti { grid-area: conf; display: flex; flex-direction: column; align-items: flex-start; background: radial-gradient(120% 90% at 100% 100%, rgba(255, 210, 63, .16), transparent 60%), var(--surface); }
.tile--confetti .btn { margin-top: auto; }
.tile--scramble { grid-area: scr; }
.tile__tag { display: inline-block; padding: 4px 10px; font-family: var(--f-code); font-size: 12px; color: var(--accent); background: rgba(255, 210, 63, .08); border-radius: 6px; }
.tile__title { margin: 14px 0 20px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.tile__text { font-size: 15px; color: var(--muted); }
.tile__big { margin: 12px 0 10px; font-family: var(--f-display); font-size: clamp(64px, 7vw, 110px); font-weight: 400; line-height: 1; text-transform: uppercase; }

.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.count li { padding: 16px 8px 12px; text-align: center; background: var(--surface-2); border-radius: 14px; }
.count b { display: block; font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 64px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(-28%); } }

.poll button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-bottom: 8px;
  padding: 0 16px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .25s;
}
.poll button::before { content: ""; position: absolute; inset: 0; background: rgba(255, 210, 63, .16); transform-origin: 0 50%; scale: var(--p, 0) 1; transition: scale 1s var(--ease); }
.poll button > * { position: relative; }
.poll button:hover { border-color: var(--line-2); }
.poll button[aria-pressed="true"] { border-color: var(--accent); }
.poll button b { color: var(--accent); font-variant-numeric: tabular-nums; }
.poll.is-voted button { cursor: default; }
.poll__total { margin-top: 6px; font-size: 13px; color: var(--muted); }

.tz { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface-2); border-radius: 999px; }
.tz button { flex: 1; height: 38px; padding: 0 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; transition: background-color .25s, color .25s; }
.tz button span { font-weight: 500; opacity: .8; }
.tz button[aria-pressed="true"] { color: var(--ink); background: #fff; }
.tz__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.tz__list time { font-family: var(--f-display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.tz__list span { font-size: 14px; color: var(--muted); text-align: right; }
time[data-day-shift]::after { content: attr(data-day-shift); margin-left: 3px; font-family: var(--f-ui); font-size: 12px; font-weight: 700; vertical-align: super; color: var(--accent); }

.tile--dots { --dot-color: rgba(255, 255, 255, .15); --c-primary: #ffd23f; display: flex; align-items: flex-end; }
.tile--dots .dot-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__over { position: relative; z-index: 1; max-width: 360px; pointer-events: none; text-shadow: 0 0 14px var(--surface), 0 0 4px var(--surface); }
.tile__over .tile__title { margin-bottom: 8px; }

.meter { height: 10px; margin-bottom: 12px; overflow: hidden; background: var(--surface-2); border-radius: 5px; }
.meter span { display: block; width: calc(var(--fill, 0) * 100%); height: 100%; background: var(--accent); border-radius: 5px; transition: width .7s var(--ease); }
.tile--rsvp .btn { margin-top: 18px; }

/* ==========================================================================
   9. Inner pages wall and shop
   ========================================================================== */
main { overflow-x: clip; } /* clip, not hidden: sticky panels keep working */
.wall { display: grid; gap: 20px; margin: 0 -6vw; transform: rotate(-4deg); }
.wall__row { overflow: hidden; }
.wall__track { display: flex; width: max-content; animation: slide var(--dur, 70s) linear infinite; }
.wall__row--rev .wall__track { animation-direction: reverse; }
.wall:hover .wall__track, .wall:focus-within .wall__track { animation-play-state: paused; }
.wall ul { display: flex; flex: none; gap: 20px; padding-right: 20px; }
.wall a { display: block; width: 330px; text-decoration: none; }
.wall img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); transition: transform .5s var(--ease), box-shadow .3s; }
.wall a:hover img, .wall a:focus-visible img { transform: translateY(-8px); box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.wall span { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

.shop { margin-top: 110px; }
.shop__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 34px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.shop__copy { max-width: 620px; }
.shop__copy h3 { margin-bottom: 6px; font-size: 26px; font-weight: 600; }
.shop__copy p { color: var(--muted); }
.shop__demo { display: flex; align-items: center; gap: 18px; }
.shop__bag { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--line-2); border-radius: 50%; }
.shop__bag .ico { width: 22px; height: 22px; }
.shop__bag b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 11px;
}
.shop__bag b.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ==========================================================================
   10. Devices
   ========================================================================== */
.stage3 { position: relative; display: grid; grid-template-columns: 1fr; padding: 0 9% 60px 0; }
.dev { overflow: hidden; background: #1c1c28; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px var(--line-2); }
.dev__screen { position: relative; overflow: hidden; background: #000; }
.dev__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: devScroll 22s cubic-bezier(.45, .05, .55, .95) infinite alternate; }
@keyframes devScroll { 0%, 8% { object-position: 50% 0; } 92%, 100% { object-position: 50% 100%; } }
.dev--desktop { padding-top: 30px; border-radius: 16px; background: #1c1c28 radial-gradient(circle at 18px 15px, #ff5f57 5px, transparent 6px) no-repeat; }
.dev--desktop .dev__screen { aspect-ratio: 16 / 10; }
.dev--tablet { position: absolute; right: 0; bottom: 0; width: 27%; padding: 12px; border-radius: 30px; }
.dev--tablet .dev__screen { aspect-ratio: 3 / 4.1; border-radius: 18px; }
.dev--tablet img { animation-duration: 18s; animation-delay: -4s; }
.dev--phone { position: absolute; left: 4%; bottom: 0; width: 15%; padding: 9px; border-radius: 30px; }
.dev--phone .dev__screen { aspect-ratio: 9 / 19.5; border-radius: 22px; }
.dev--phone img { animation-duration: 26s; animation-delay: -9s; }

/* ==========================================================================
   11. Backstage, quality, FAQ
   ========================================================================== */
.back__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.backstage .head__title { margin-bottom: 26px; }
.backstage .head__text { margin-bottom: 30px; }
.checks li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 16.5px; }
.checks a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.checks a:hover { text-decoration-thickness: 2px; }
.checks .ico { margin-top: 4px; color: var(--accent); }
.term { overflow: hidden; background: #0b0b12; border-radius: 16px; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px var(--line-2); }
.term__bar { position: relative; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; background: #171722; }
.term__bar i { width: 11px; height: 11px; background: #3b3b4d; border-radius: 50%; }
.term__bar span { position: absolute; left: 50%; translate: -50% 0; font-size: 12.5px; color: var(--muted); }
.term__body { margin: 0; padding: 28px 30px 32px; overflow-x: auto; font-family: var(--f-code); font-size: 14.5px; line-height: 1.95; color: #cfcee3; }
.term__body code { font: inherit; white-space: normal; }
.term__body [data-line] { display: block; min-height: 1.95em; white-space: pre; }
.is-typing [data-line]:not(.is-on) { visibility: hidden; }
.is-typing [data-line].is-current::after,
.is-typed [data-line].is-current::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term__ok { color: var(--accent); }

.qual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qual li { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.qual .ico { width: 30px; height: 30px; margin-bottom: 22px; color: var(--accent); }
.qual h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.qual p { font-size: 15.5px; color: var(--muted); }

.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.faq .head__title { margin-bottom: 30px; }
.box li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); }
.box li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.note { margin-top: 20px; font-size: 14px; color: var(--dim); }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-head { font-size: inherit; font-weight: inherit; }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 0; font-size: 19px; font-weight: 600; text-align: left; background: none; border: 0; }
.acc-btn .ico { width: 22px; height: 22px; color: var(--muted); transition: transform .4s var(--ease); }
.acc-item.is-open .acc-btn .ico { transform: rotate(180deg); color: var(--accent); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding-bottom: 24px; color: var(--muted); }

/* ==========================================================================
   12. Ticket and footer
   ========================================================================== */
.ticket-sec { padding-top: 60px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  color: var(--ink);
  filter: drop-shadow(0 40px 60px rgba(255, 210, 63, .18));
}
.ticket__main, .ticket__stub {
  background: var(--accent);
  -webkit-mask: radial-gradient(circle 18px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 18px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat;
  mask: radial-gradient(circle 18px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 18px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat;
}
.ticket__main { padding: 70px 64px; border-radius: 26px 0 0 26px; }
.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 28px;
  background: #ffe27a;
  border-radius: 0 26px 26px 0;
  -webkit-mask: radial-gradient(circle 18px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 18px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle 18px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 18px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat;
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease) .9s;
}
.ticket__stub::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 0; border-left: 3px dashed rgba(18, 15, 5, .3); }
.is-revealed .ticket__stub { transform: translate(16px, 6px) rotate(3deg); }
.ticket__title { margin-bottom: 20px; font-family: var(--f-display); font-size: clamp(54px, 7.4vw, 116px); font-weight: 400; line-height: .92; text-transform: uppercase; }
.ticket__title span { display: block; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.ticket__text { max-width: 560px; margin-bottom: 34px; font-size: 18px; color: rgba(18, 15, 5, .78); }
.ticket__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ticket .btn--accent { color: var(--accent); background: var(--ink); box-shadow: none; }
.ticket .btn--accent:hover { color: var(--ink); background: #fff; }
.ticket .btn--ghost { color: var(--ink); border-color: rgba(18, 15, 5, .3); }
.ticket .btn--ghost:hover { border-color: var(--ink); }
.ticket__price { margin-top: 18px; font-weight: 600; }
.ticket__stub .logo { width: 130px; color: var(--ink); --logo-b: var(--ink); }
.ticket__admit { font-family: var(--f-display); font-size: 40px; line-height: 1; text-transform: uppercase; writing-mode: vertical-rl; rotate: 180deg; }
.ticket__code { width: 100%; height: 56px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); }
.ticket__row { font-size: 12px; font-weight: 700; letter-spacing: .14em; }

.foot { padding: 50px 0 60px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot__links a { font-size: 15px; color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--text); }
.foot__copy { width: 100%; font-size: 14px; color: var(--dim); }

/* toasts from main.js */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 10px; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s, transform .45s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast .icon { width: 20px; height: 20px; color: #0b7a5a; }

/* ==========================================================================
   13. Responsive and reduced motion
   ========================================================================== */
@media (max-width: 1199px) {
  .nav__links { gap: 22px; }
  .act__link { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 240px) 56px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "count count" "poll tz" "dots dots" "rsvp conf" "scr scr"; }
}
@media (max-width: 991px) {
  .nav__links { display: none; }
  .sec { padding: 110px 0; }
  .head { grid-template-columns: 1fr; margin-bottom: 50px; }
  .facts__list { grid-template-columns: repeat(3, 1fr); }
  .facts__list li:nth-child(4) { border-left: 0; padding-left: 0; }
  .facts__list li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .act__link { grid-template-columns: 44px minmax(0, 1fr) 96px; gap: 14px 18px; }
  .act__meta { grid-column: 2 / 3; }
  .act__go { display: none; }
  .act__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; border-radius: 10px; }
  .switch__grid, .prog, .back__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .browser { position: relative; top: 0; }
  .prog__stage { order: -1; top: calc(var(--nav-h) + 10px); z-index: 2; }
  .prog__step { min-height: 52vh; grid-template-columns: 70px minmax(0, 1fr); }
  .qual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket { grid-template-columns: 1fr; }
  .ticket__main { padding: 54px 40px 40px; border-radius: 26px 26px 0 0; -webkit-mask: none; mask: none; }
  .ticket__stub { flex-direction: row; padding: 28px 32px; border-radius: 0 0 26px 26px; -webkit-mask: none; mask: none; transform-origin: 0 0; }
  .ticket__stub::before { top: 0; left: 26px; right: 26px; bottom: auto; border-left: 0; border-top: 3px dashed rgba(18, 15, 5, .3); }
  .is-revealed .ticket__stub { transform: translateY(10px) rotate(1.5deg); }
  .ticket__admit { writing-mode: horizontal-tb; rotate: none; font-size: 28px; }
  .ticket__code { width: 120px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero { padding-top: 48px; }
  .hero__lead { font-size: 17px; }
  .deck { margin-top: 44px; }
  .deck__card { width: 64vw; }
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__list li { padding: 24px 14px 22px; }
  .facts__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts__list li:nth-child(4) { border-left: 1px solid var(--line); padding-left: 14px; }
  .facts__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sec { padding: 90px 0; }
  .act__name { font-size: clamp(32px, 9.2vw, 64px); }
  .act__link { grid-template-columns: 34px minmax(0, 1fr) 72px; gap: 12px 14px; }
  .act__thumb { width: 72px; }
  .act__link { padding: 22px 0; }
  .act__no { align-self: start; padding-top: 8px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "count" "poll" "tz" "dots" "rsvp" "conf" "scr"; }
  .tile { padding: 22px; }
  .count { gap: 8px; }
  .wall a { width: 240px; }
  .shop__card { padding: 26px; }
  .stage3 { padding: 0 0 80px; }
  .dev--tablet { width: 36%; }
  .dev--phone { width: 24%; left: 2%; }
  .qual { grid-template-columns: 1fr; }
  .ticket__main { padding: 44px 26px 32px; }
  .ticket__stub { padding: 24px; }
  .ticket__stub .logo { width: 96px; }
  .ticket__code { display: none; }
  .btn { height: 52px; padding: 0 22px; }
  .nav .btn--sm { padding: 0 14px; }
  .term__body { padding: 22px; font-size: 12.5px; }
  .prog__step { grid-template-columns: 1fr; gap: 6px; }
  .prog__step time { font-size: 22px; }
}
@media (max-width: 420px) {
  .nav .btn--sm .ico { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .peek { display: none; }
  .acts:hover .act__link:not(:hover) { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__lights i { animation: none; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   14. Daylight sections
   The stage goes dark for the big moments (hero, line-up, switcher, playground,
   backstage, ticket) and opens up to warm paper for the reading parts. Every
   colour token is swapped inside .sec--day, so components need no changes;
   yellow becomes a highlighter, because as text it is too faint on paper.
   ========================================================================== */
.sec--day {
  --text: #15131a;
  --muted: #57546a;
  --dim: #6b6878;
  --line: rgba(21, 19, 26, .1);
  --line-2: rgba(21, 19, 26, .2);
  --surface: #fff;
  --surface-2: #efece3;
  --paper: #f5f3ec;
  --dark: #07070c;
  color: var(--text);
  background: var(--paper);
}
.sec--day ::selection { color: var(--ink); background: var(--accent); }
.sec--day :focus-visible { outline-color: var(--text); }

/* the stage changes with a hard edge: no gradients between dark and paper */
.sec--day > * { position: relative; z-index: 1; }
.sec--day + .sec--day { padding-top: 40px; }

.sec--day .head__title span {
  color: var(--text);
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 88%, transparent 88%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sec--day .btn--accent { color: #fff; background: var(--text); box-shadow: 0 14px 30px -16px rgba(21, 19, 26, .6); }
.sec--day .btn--accent:hover { color: var(--ink); background: var(--accent); }

/* programme */
.sec--day .prog__step { opacity: .38; }
.sec--day .prog__step.is-active { opacity: 1; }
.sec--day .prog__step.is-active time { color: var(--text); background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); }
.sec--day .prog__step a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sec--day .prog__step a:hover { text-decoration-color: var(--text); }
.sec--day .prog__screen { box-shadow: 0 50px 100px -50px rgba(21, 19, 26, .45), 0 0 0 1px var(--line-2); }
.sec--day .prog__bar span { background: var(--text); }

/* pages wall and shop */
.sec--day .wall img { box-shadow: 0 18px 40px -26px rgba(21, 19, 26, .5), 0 0 0 1px var(--line); }
.sec--day .wall a:hover img, .sec--day .wall a:focus-visible img { box-shadow: 0 0 0 2px var(--text), 0 30px 60px -30px rgba(21, 19, 26, .55); }
.sec--day .shop__card { box-shadow: 0 30px 60px -40px rgba(21, 19, 26, .35); }

/* devices keep their dark frames, with softer shadows */
.sec--day .dev { box-shadow: 0 50px 100px -40px rgba(21, 19, 26, .55), 0 0 0 1px rgba(0, 0, 0, .2); }

/* quality and FAQ */
.sec--day .qual li { box-shadow: 0 20px 40px -34px rgba(21, 19, 26, .4); }
.sec--day .qual .ico { width: 52px; height: 52px; padding: 13px; color: var(--ink); background: var(--accent); border-radius: 14px; }
.sec--day .box li::before { border-color: var(--text); }
.sec--day .acc-item.is-open .acc-btn .ico { color: var(--text); }

@media (max-width: 767px) {
  .sec--day + .sec--day { padding-top: 20px; }
}

/* ==========================================================================
   15. Light first screen
   Paper under the menu: the hero and the numbers read like a printed
   programme, and the stage goes dark with a hard edge at the line-up. The
   menu bar is paper at the top and turns dark once the page scrolls.
   ========================================================================== */
.hero,
.facts,
.nav:not(.is-scrolled) {
  --text: #15131a;
  --muted: #57546a;
  --dim: #6b6878;
  --line: rgba(21, 19, 26, .1);
  --line-2: rgba(21, 19, 26, .22);
  --surface: #fff;
  color: var(--text);
}
.hero, .facts { background: #f5f3ec; }
.nav:not(.is-scrolled) { background: #f5f3ec; }
.nav:not(.is-scrolled) .logo { color: #15131a; --logo-b: #15131a; }
.nav:not(.is-scrolled) .nav__links a::after { background: #15131a; }
.hero ::selection, .facts ::selection { color: var(--ink); background: var(--accent); }
.hero :focus-visible, .nav:not(.is-scrolled) :focus-visible { outline-color: #15131a; }
.hero .btn--accent,
.nav:not(.is-scrolled) .btn--accent { color: #fff; background: #15131a; box-shadow: 0 14px 30px -16px rgba(21, 19, 26, .6); }
.hero .btn--accent:hover,
.nav:not(.is-scrolled) .btn--accent:hover { color: var(--ink); background: var(--accent); }

/* stage lights become coloured washes on paper */
.hero::before {
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--demo) 9%, transparent), transparent 60%),
    radial-gradient(60% 45% at 50% 100%, color-mix(in srgb, var(--demo) 22%, transparent), transparent 70%);
}
.hero__lights i { opacity: .28; mix-blend-mode: multiply; }
.hero__lights i:nth-child(2) { opacity: .18; }

/* the deck: every demo in one fan, the demo named in the title in front */
.deck { height: clamp(250px, 30vw, 450px); overflow: hidden; overflow: clip; }
.deck::after { height: 30%; background: linear-gradient(rgba(245, 243, 236, 0), #f5f3ec); }
.deck__card {
  width: clamp(240px, 32vw, 470px);
  aspect-ratio: 16 / 10;
  transform-origin: 50% 220%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 34px 70px -34px rgba(21, 19, 26, .5), 0 0 0 1px rgba(21, 19, 26, .08);
  filter: brightness(var(--b, .8)) saturate(calc(var(--b, .8) * 1.1));
}
.deck__card.is-active { box-shadow: 0 50px 100px -40px rgba(21, 19, 26, .6), 0 0 0 1px rgba(21, 19, 26, .1); }
/* the strip: one level row that landing.js moves left; no rotation, no rise and fall */
.deck__card { top: 50%; transform-origin: 50% 50%; transform: translate(calc(-50% + var(--x, 0px)), -62%) scale(var(--s, 1)); }
.deck.is-drifting .deck__card { transition: box-shadow .5s ease; will-change: transform; }
.deck { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.facts { border-top-color: transparent; border-bottom: 0; }

/* ==========================================================================
   16. Search and sharing
   A search result and a link preview built from the main demo's own tags.
   ========================================================================== */
.seo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.seo__copy .head__text { margin: 28px 0 34px; }
.seo__demo { position: relative; display: grid; gap: 18px; margin: 0; }
.serp {
  padding: 26px 28px 22px;
  font-family: Arial, system-ui, sans-serif;
  color: #202124;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.serp__site { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; line-height: 1.3; }
.serp__fav { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; background: #f1f3f4; border-radius: 50%; }
.serp__fav img { width: 28px; height: 28px; }
.serp__site b { display: block; font-weight: 400; color: #202124; }
.serp__site small { display: block; font-size: 12px; color: #4d5156; }
.serp__title { margin-bottom: 4px; font-size: 21px; line-height: 1.3; color: #1a0dab; }
.serp__text { font-size: 14.5px; line-height: 1.55; color: #4d5156; }
.serp__event { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; margin-top: 16px; padding: 12px 0; font-size: 14px; border-block: 1px solid #ebebeb; }
.serp__event b { grid-row: 1 / 3; align-self: center; font-weight: 400; color: #202124; }
.serp__event span { color: #1a0dab; }
.serp__event small { font-size: 13px; color: #4d5156; }
.serp__faq li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14.5px; color: #202124; border-bottom: 1px solid #ebebeb; }
.serp__faq li:last-child { border-bottom: 0; }
.serp__faq .ico { width: 18px; height: 18px; color: #4d5156; }
.share {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  width: min(100%, 470px);
  margin-left: auto;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  rotate: -2deg;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.share img { width: 100%; height: 100%; object-fit: cover; }
.share__body { display: grid; align-content: center; gap: 2px; padding: 16px 18px; font-size: 13.5px; line-height: 1.4; }
.share__body small { font-size: 12px; color: var(--dim); text-transform: lowercase; }
.share__body b { color: var(--text); }
.share__body span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991px) {
  .seo__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
}
@media (max-width: 575px) {
  .serp { padding: 20px 18px 16px; }
  .serp__title { font-size: 18px; }
  .share { grid-template-columns: 110px minmax(0, 1fr); rotate: 0deg; }
}
