:root {
  color-scheme: light;
  --black: #000;
  --ink: #1d1d1f;
  --text: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --accent: #0071b3;
  --sky: #5cb8f2;
  --gap: 12px;
  --edge: clamp(24px, 8vw, 160px);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #fff; }
body { margin: 0; color: var(--text); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }

/* Top of page */
.top { position: relative; z-index: 2; background: var(--black); color: #f5f5f7; }
.top header { display: flex; align-items: center; justify-content: space-between; padding: 26px var(--edge); transition: opacity .6s var(--ease); }
.brand img { width: 24px; height: 24px; border-radius: 6px; margin-right: 9px; vertical-align: -6px; }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: #a1a1a6; font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: #fff; }

/* Hero */
.hero { background: var(--black); color: #a1a1a6; text-align: center; padding: 28px 0 96px; }
.hero h1 { color: #f5f5f7; font-size: clamp(36px, 4.5vw, 72px); line-height: 1.03; max-width: 13em; margin: 0 auto; padding: 0 24px; }
.hero .after { max-width: 34em; margin: 34px auto 0; padding: 0 24px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 980px; padding: 12px 24px; font: 500 17px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: #0a85cc; }
.btn:disabled { opacity: .55; cursor: default; }
.link { color: var(--sky); font-size: 17px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Film hero: text over the film at rest, film alone while it plays */
.top.over { position: absolute; left: 0; right: 0; top: 0; background: none; }
.top.over header { max-width: none; padding: 26px var(--edge); transition: opacity .7s .3s var(--ease); }
.top.over header { position: relative; isolation: isolate; }
.top.over header::after { content: ''; position: absolute; inset: 0 0 -56px 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,.45) 55%, rgba(0,0,0,0)); }
.top.over nav a { color: #e5e5ea; }
.top.over nav a:hover, .top.over nav a[aria-current] { color: #fff; }
html:not(.fx) .playing .top.over header { opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.cine { position: relative; overflow: hidden; overflow: clip; min-height: 100svh; padding: 110px var(--edge) clamp(56px, 9vh, 104px); display: flex; align-items: flex-end; text-align: left; }
.cine::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #000 0%, #000 46%, rgba(0, 0, 0, 0) 55%); transition: opacity .9s .15s var(--ease); }
html:not(.fx) .playing .cine::after { opacity: 0; transition: opacity .5s var(--ease); }
.film { position: absolute; inset: 0; z-index: 0; cursor: pointer; transform: translateX(18%) scale(1.12); transition: transform 1.3s var(--ease); animation: appear 1.6s var(--ease) backwards; }
html:not(.fx) .playing .film { transform: none; }
.film:fullscreen { transform: none !important; opacity: 1 !important; background: #000; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; outline: 0; }
.film .ambient { object-fit: cover; }
.film .main { opacity: 0; transition: opacity .9s var(--ease); }
.film-on .film .main { opacity: 1; }
.film:fullscreen .main { opacity: 1 !important; }
.copy { position: relative; z-index: 2; max-width: 620px; transition: opacity .8s .35s var(--ease), transform 1s .35s var(--ease), visibility 0s; animation: rise 1.4s var(--ease) backwards; }
html:not(.fx) .playing .copy { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.copy h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; max-width: 9.6em; margin: 0; padding: 0; }
.copy p { margin-top: 26px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: #c7c7cc; max-width: 27em; }
.copy .fine { margin-top: 20px; font-size: 13.5px; line-height: 1.4; color: #86868b; max-width: 36em; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.play { display: inline-flex; align-items: center; gap: 12px; padding: 9px 26px 9px 9px; border: 0; border-radius: 980px; background: #fff; color: var(--ink); font: 500 17px var(--sans); cursor: pointer; transition: scale .35s var(--ease), translate .5s var(--ease), background .2s; }
.play:hover { scale: 1.03; }
.play i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; }
.play small { color: var(--muted); font: inherit; font-size: 15px; font-weight: 400; }
.scrub { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 18px; height: 18px; display: flex; align-items: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.playing .film:hover .scrub, .playing .film:focus-within .scrub, .film:fullscreen .scrub { opacity: 1; pointer-events: auto; }
.scrub { visibility: hidden; }
.playing .scrub, .film:fullscreen .scrub { visibility: visible; }
.playing .cine { max-height: 100svh; }
@media (hover: none) { .playing .scrub { opacity: 1; pointer-events: auto; height: 44px; bottom: 5px; } .scrub .rail { height: 44px; } .scrub button { width: 44px; height: 44px; } }
.scrub .rail { flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; }
.scrub .rail i { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .28) var(--p, 0%)); }
.scrub button { padding: 0; width: 20px; height: 20px; background: none; border: 0; color: #fff; cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes appear { from { opacity: 0; } }

/* Containers */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); max-width: 1680px; margin: 0 auto; padding: var(--gap); }
.tile { grid-column: span 2; background: var(--soft); border-radius: 28px; padding: clamp(40px, 7vw, 112px) clamp(24px, 7vw, 120px); min-height: min(64vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.tile.half { grid-column: span 1; }
.tile.dark { background: var(--black); color: #a1a1a6; }
.tile.dark h2, .tile.dark h3 { color: #f5f5f7; }
.tile.center { text-align: center; align-items: center; }
.tile h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.05; }
.half h2, .half h3.big { font-size: clamp(32px, 3.5vw, 56px); line-height: 1.08; }
.tile .body { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; margin-top: 20px; max-width: 34em; }
.note { color: var(--muted); font-size: 14px; margin-top: 28px; max-width: 54em; }
.plain { list-style: none; margin: 30px 0 0; padding: 0; font-size: 19px; line-height: 1.35; }
.plain li { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.plain li:last-child { padding-bottom: 0; }

/* Player */
.player { justify-content: flex-start; min-height: 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 60px; }
.head .body { margin: 0; max-width: 26em; font-size: 18px; }
.deck { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: clamp(40px, 6vw, 84px); }
.pp { width: 76px; height: 76px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: scale .35s var(--ease), background .2s; }
.pp:hover { scale: 1.06; }
.pp .i-pause, .pp[aria-pressed="true"] .i-play { display: none; }
.pp[aria-pressed="true"] .i-pause { display: block; }
.np b { display: block; color: var(--ink); font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.np span { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }
.time { color: var(--muted); font: 14px var(--mono); white-space: nowrap; }
#wave { display: block; width: 100%; height: clamp(110px, 15vw, 200px); margin-top: 32px; cursor: pointer; touch-action: pan-y; border-radius: 4px; }
.line { color: var(--ink); font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.22; margin-top: 34px; min-height: 2.5em; max-width: 30em; }
.tr { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 42em; min-height: 3em; }
.sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 60px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.more { margin-top: 28px; }
.dark-link { color: var(--accent); }
.sets .liveset { grid-column: 1 / -1; }
.chips button.live.onair::before { animation: livepulse 1.8s infinite; }
@keyframes livepulse { 50% { opacity: .3; } }
.sets small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 16px; background: #fff; border: 0; border-radius: 980px; color: var(--ink); font: 15px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.chips button:hover { background: #e8e8ed; }
.chips button[aria-current="true"] { background: var(--ink); color: #fff; }

/* Reference */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; width: 100%; max-width: 1040px; margin-top: 56px; }
.figures b { display: block; color: var(--accent); font-size: clamp(56px, 8.4vw, 132px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.figures span { display: block; font-size: 17px; line-height: 1.35; margin: 14px auto 0; max-width: 21em; }

/* Form */
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; width: 100%; max-width: 860px; margin-top: 48px; text-align: left; }
label { display: block; color: #a1a1a6; font-size: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid #515154; border-radius: 0; background: transparent; color: #f5f5f7; font: 19px var(--sans); }
select { -webkit-appearance: none; appearance: none; }
select option { color: #000; }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--sky); box-shadow: 0 1px 0 var(--sky); }
textarea { min-height: 96px; resize: vertical; }
.full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.submit { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 6px; }
#status { font-size: 15px; color: #f5f5f7; }
#status.err { color: #ff8a80; }
.dark .note { color: #86868b; margin-top: 0; }

/* Features */
.flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.flow small { display: block; color: var(--accent); font: 14px var(--mono); margin-bottom: 14px; }
.flow b { display: block; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.flow span { display: block; font-size: 16px; line-height: 1.4; }
.cap { min-height: 0; justify-content: flex-start; padding: clamp(32px, 4.4vw, 72px); }
.cap .n { color: var(--accent); font: 14px var(--mono); }
.cap h3 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; margin-top: 12px; }
.cap ul { list-style: none; margin: 26px 0 0; padding: 0; }
.cap li { padding: 11px 0; font-size: 18px; line-height: 1.38; border-top: 1px solid var(--line); }
.cap.dark li { border-color: rgba(255, 255, 255, .16); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 52px; }
.pair h3 { font-size: 24px; letter-spacing: -0.02em; }
.pair ul { list-style: none; margin: 16px 0 0; padding: 0; }
.pair li { padding: 10px 0; font-size: 18px; border-top: 1px solid var(--line); }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.pillars b { display: block; color: #f5f5f7; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.pillars span { display: block; font-size: 16px; line-height: 1.42; }
.chips button.live { display: inline-flex; align-items: center; gap: 7px; }
.chips button.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d70015; }

/* List of real transitions */
.reel { justify-content: flex-start; min-height: 0; }
.rbody { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px 44px; margin-top: clamp(32px, 4vw, 60px); }
.rside h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.rf { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 26px; }
.rf button { padding: 4px 0; background: none; border: 0; color: var(--muted); font: 14.5px var(--sans); text-align: left; cursor: pointer; transition: color .15s; }
.rf button:hover { color: var(--ink); }
.rf button[aria-pressed="true"] { color: var(--accent); font-weight: 500; }
.rbar { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.rsearch { flex: 1; min-width: 0; margin: 0; padding: 12px 20px; border: 0; border-radius: 980px; background: #fff; color: var(--ink); font: 16px var(--sans); }
.rsearch::placeholder { color: var(--muted); }
.rsearch:focus { outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: none; }
.rcount { color: var(--muted); font-size: 14px; white-space: nowrap; }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 108px 74px 58px 126px 34px; gap: 0 14px; align-items: center; padding: 11px 0; border-top: 1px solid #e5e5ea; cursor: pointer; }
.rlist li[hidden] { display: none; }
.rlist li:first-child { border-top: 0; }
.rp { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #d1d1d6; color: #fff; cursor: pointer; transition: background .15s, scale .3s var(--ease); }
.rlist li:hover .rp { background: #8e8e93; scale: 1.06; }
.rlist li.on .rp, .rlist li.open .rp { background: var(--accent); }
.rt { min-width: 0; }
.rt b, .rt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt b { color: var(--ink); font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.rt span { color: var(--muted); font-size: 13px; margin-top: 1px; }
.rlist li.open .rt b { color: var(--accent); }
.rtech, .rfmt, .rbpm, .rd { color: var(--text); font-size: 13.5px; white-space: nowrap; }
.rbpm, .rd { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.rw { display: block; width: 126px; height: 26px; }
.rlist li.open .rw { cursor: pointer; }
.rwhy { display: none; grid-column: 2 / -1; margin-top: 8px; color: var(--text); font-size: 15px; }
.rlist li.open .rwhy { display: block; }

/* Foot */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1680px; margin: 0 auto; padding: 24px 40px 40px; color: var(--muted); font-size: 13px; }
footer a { margin-left: 20px; text-decoration: none; }
footer span a:first-child { margin-left: 0; }
footer a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.top :focus-visible, .dark :focus-visible { outline-color: var(--sky); }

/* Motion layer (landing.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .07em .18em; margin: -.1em -.07em -.18em; }
.wi { display: inline-block; will-change: transform; }
.fx .film, .fx .copy, .fx .cine::after, .fx .top.over header { transition: none; animation: none; }
.fx .cine::after { opacity: var(--g, 1); }
.fx .film { opacity: 0; will-change: transform; }
.fx .film .main { transition: none; }
.fx .copy h1, .fx .copy p, .fx .copy .actions, .fx .top.over header, .fx .tile { opacity: 0; }
.figures b { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  :root { --gap: 8px; }
  body { font-size: 16px; }
  .top header, .top.over header { padding: 18px 20px; }
  nav { gap: 18px; }
  .cine { padding-left: 20px; padding-right: 20px; }
  .tile { min-height: 0; border-radius: 22px; padding: 56px 22px; }
  .tile.half { grid-column: span 2; }
  .deck { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .pp { width: 62px; height: 62px; }
  .time { grid-column: 1 / -1; order: 3; }
  .sets, .pair { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .figures { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  form { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
  .rbody { grid-template-columns: minmax(0, 1fr); }
  .rside { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .rside h4 { margin: 6px 0 4px; }
  .rf { flex-direction: row; gap: 4px 14px; overflow-x: auto; margin-bottom: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .rf button { white-space: nowrap; padding: 6px 0; }
  .rlist li { grid-template-columns: 36px minmax(0, 1fr) 34px; }
  .rtech, .rfmt, .rbpm, .rw { display: none; }
  .rwhy { grid-column: 2 / -1; }
  .cap { padding: 36px 22px; }
  footer { padding: 18px 20px 32px; }
}
@media (max-width: 440px) { nav a:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 860px) and (orientation: portrait) {
  .cine { padding: 90px 22px 44px; }
  .cine::after { background: linear-gradient(0deg, #000 0%, #000 44%, rgba(0, 0, 0, 0) 62%); }
  .film { transform: translateY(-22%) scale(1.45); }
  .film .ambient { object-fit: contain; }
  .copy::before { content: ""; position: absolute; inset: -24px -22px -44px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .92) 48px); }
}
@media (max-width: 860px) and (orientation: portrait) and (max-height: 700px) {
  .copy h1 { font-size: 36px; }
  .copy p { margin-top: 14px; font-size: 16px; }
  .actions { margin-top: 20px; }
  .film { transform: translateY(-34%) scale(1); }
  .cine { padding-bottom: 28px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .cine { padding-top: 64px; padding-bottom: 20px; }
  .copy h1 { font-size: clamp(28px, 9vh, 40px); }
  .copy p { margin-top: 10px; font-size: 16px; }
  .copy .fine { margin-top: 10px; }
  .actions { margin-top: 14px; }
}
@media (max-width: 1100px) and (orientation: landscape) {
  .cine::after { background: linear-gradient(90deg, #000 0%, #000 62%, rgba(0, 0, 0, 0) 72%); }
}
/* Home: on-air list, the same row style as the list of transitions */
.airlist { margin-top: clamp(36px, 5vw, 64px); }
.airlist h4 { margin: 34px 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.airlist h4:first-child { margin-top: 0; }
.rlist.air li { grid-template-columns: 36px minmax(0, 1fr) 110px 126px 44px; }
.rlist.air .rtech { color: var(--muted); }
.rlist.air li.live .rd { color: #d70015; font-weight: 500; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.rlist.air li.live .rd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d70015; animation: livepulse 1.8s infinite; }
.rlist.air .rwhy p { margin: 0; color: var(--ink); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; max-width: 40em; }
.rlist.air .rwhy small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .rlist.air li { grid-template-columns: 36px minmax(0, 1fr) 52px; }
  .rlist.air .rtech, .rlist.air .rw { display: none; }
  .rlist.air .rt b, .rlist.air .rt span { white-space: normal; }
}
