/* Chordevo site: "the journey of a melody". Each section is one bar of the song, one full-screen scene.
   Type and colours come from the app (Barlow, DSEG7 transport counter, tape/steel/cap red). */
@font-face { font-family: "Barlow SC"; src: url(fonts/BSC-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url(fonts/BSC-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url(fonts/BSC-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/Barlow-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bravura"; src: url(fonts/bravura.otf); font-display: block; }
@font-face { font-family: "DSEG7"; src: url(fonts/DSEG7Classic-Bold.woff2) format("woff2"); font-weight: 700; font-display: block; }

@font-face { font-family: "Chordevo Script"; src: url(fonts/RobotoCondensed-gr-cyr.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Chordevo Script"; src: url(fonts/NotoSansArabic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Chordevo Script"; src: url(fonts/NotoSansDevanagari.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F, U+A8E0-A8FF, U+1CD0-1CFF; }

:root {
  --tape: #ECE3CD; --ink: #1C1D21; --steel: #1E2630; --well: #0d1015;
  --light: #EEF2F6; --light-2: #B4C1CE; --dim: #7189A1;
  --red: #C8332F; --red-hi: #EC6B62; --blue: #2F6DB5;
  --cjk: "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft YaHei", "Yu Gothic UI", "Malgun Gothic";
  --ui: "Barlow SC", "Chordevo Script", "Barlow", var(--cjk), system-ui, sans-serif; --text: "Barlow", "Chordevo Script", var(--cjk), system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--well); }
body { margin: 0; font: 400 17px/1.55 var(--text); color: var(--light); background: var(--well); }
img { display: block; }
a { color: inherit; }

/* top bar: quiet, over the film */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px 40px; }
.bar .logo img { height: 36px; width: auto; }
.bar nav { display: flex; gap: 24px; margin-left: 16px; font: 500 15px/1 var(--ui); letter-spacing: .02em; }
.bar nav a { text-decoration: none; color: var(--light-2); }
.bar nav a:hover { color: var(--light); }
.bar .end { margin-left: auto; display: flex; gap: 14px; align-items: center; font: 600 14px var(--ui); }
.bar .end a.lang { text-decoration: none; color: var(--light-2); }

.key { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 6px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--ui); letter-spacing: .02em; text-decoration: none; }
.key.light { background: var(--light); color: var(--ink); }
.key.light:hover { background: #fff; }
.key.line { background: rgba(13,16,21,.35); color: var(--light); box-shadow: inset 0 0 0 1.5px rgba(238,242,246,.55); }
.key .led { width: 9px; height: 9px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 10px var(--red-hi); }
.key:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #6AA0E0; outline-offset: 3px; }

/* scene */
/* ---------- full-screen scenes with snap ---------- */
html { scroll-snap-type: y mandatory; scroll-behavior: auto; overscroll-behavior-y: none; }
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; isolation: isolate; background: var(--well); }
.sb { position: relative; height: 100%; display: grid; isolation: isolate; transform-origin: 50% 50%; will-change: transform, filter; }
.sb picture, .sb .shade { position: absolute; inset: 0; z-index: -1; }
.sb picture img { width: 100%; height: 100%; object-fit: cover; }

.s-left .shade { background: linear-gradient(90deg, rgba(13,16,21,.88) 0%, rgba(13,16,21,.55) 38%, rgba(13,16,21,0) 62%); }
.s-right .shade { background: linear-gradient(270deg, rgba(13,16,21,.88) 0%, rgba(13,16,21,.55) 38%, rgba(13,16,21,0) 62%); }
.s-center .shade { background: radial-gradient(ellipse at 50% 45%, rgba(13,16,21,.2), rgba(13,16,21,.75) 70%); }
.sb::after { content: ""; position: absolute; inset: auto 0 0; height: 18vh; background: linear-gradient(to top, rgba(13,16,21,.85), transparent); z-index: -1; pointer-events: none; }

.inner { position: relative; width: 100%; height: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(84px, 13vh, 132px) 56px clamp(28px, 7vh, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vh, 48px); align-content: end; align-items: end; }
.s-right .inner .txt { grid-column: 2; }
.s-right .inner .card { grid-column: 1; grid-row: 1; }
.s-center .inner { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; }

/* the transport counter: bar.beat.tick, like the app's DSEG display */
.counter { position: absolute; top: clamp(76px, 11vh, 104px); font: 700 clamp(40px, min(7.2vw, 11vh), 112px)/1 "DSEG7", monospace; color: var(--light); letter-spacing: .02em; opacity: .92; }
.s-left .counter { right: 56px; } .s-right .counter { left: 56px; } .s-center .counter { left: 50%; transform: translateX(-50%); }
.counter .ghost { color: rgba(238,242,246,.08); position: absolute; inset: 0; }
.counter b { font-weight: 700; color: var(--red-hi); }

.kick { font: 600 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--light-2); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); }
h1, h2 { font-family: var(--ui); font-weight: 700; letter-spacing: -.012em; margin: 0 0 18px; line-height: .95; }
h1 { font-size: clamp(38px, min(7vw, 11.5vh), 112px); max-width: 9.5ch; text-wrap: balance; }
h2 { font-size: clamp(30px, min(4.8vw, 8.2vh), 76px); max-width: 11ch; text-wrap: balance; }
.txt p { font-size: clamp(15px, 2.2vh, 19px); color: var(--light-2); max-width: 38ch; margin: 0 0 clamp(14px, 3vh, 26px); }
.txt .small { font: 500 13px var(--ui); letter-spacing: .06em; color: var(--dim); margin-top: 22px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* product cards sitting in the scene */
.card { align-self: end; justify-self: end; width: min(560px, 100%, 68vh); max-height: calc(100svh - 190px); overflow: hidden; background: rgba(13,16,21,.82); border: 1px solid rgba(238,242,246,.1);
  border-radius: 10px; padding: 18px; backdrop-filter: blur(6px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.s-right .card { justify-self: start; }
.card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font: 600 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--light-2); }
.card .top .rec { color: var(--red-hi); display: inline-flex; gap: 8px; align-items: center; }
.card .top .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); }
.card .top .seg { margin-left: auto; font: 700 18px "DSEG7"; color: var(--red-hi); letter-spacing: .04em; }
.card .foot { margin-top: 10px; font: 500 12px var(--ui); color: var(--dim); letter-spacing: .04em; }
.card svg { width: 100%; height: auto; max-height: 34vh; display: block; }
.notes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.notes span { font: 600 13px var(--ui); letter-spacing: .06em; padding: 6px 9px; border-radius: 4px; background: var(--steel); color: var(--tape); }
.switch { margin-left: auto; display: inline-flex; background: var(--steel); border-radius: 6px; padding: 3px; }
.switch button { border: 0; background: transparent; color: var(--light-2); font: 600 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: #384757; color: var(--light); }

.card.paper { background: rgba(236,227,205,.96); color: var(--ink); border-color: rgba(28,29,33,.15); }
.card.paper .top { color: #3e4a57; }
.card.paper .foot { color: #5b6470; }

/* instruments card */
.inst { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.inst figure { margin: 0; background: var(--tape); border-radius: 6px; padding: 6px 6px 8px; color: var(--ink); }
.inst img { width: 100%; aspect-ratio: 4/5; object-fit: cover; mix-blend-mode: darken; }
.inst figcaption { font: 600 12px/1.1 var(--ui); margin-top: 4px; display: flex; justify-content: space-between; }
.inst figcaption em { font-style: normal; color: var(--red); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

/* export / platforms */
.rows { display: grid; gap: 1px; background: rgba(238,242,246,.08); border-radius: 6px; overflow: hidden; }
.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; background: rgba(13,16,21,.9); font: 600 15px var(--ui); }
.row span { color: var(--light-2); font-weight: 500; font-family: var(--text); font-size: 15px; }
.row em { font-style: normal; font: 600 12px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.row em.on { color: var(--red-hi); }
.wave { height: 18px; background: repeating-linear-gradient(90deg, var(--light-2) 0 2px, transparent 2px 5px); opacity: .45; border-radius: 2px; }

/* coda form */
.form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.form input[type=email] { font: 500 18px var(--ui); padding: 14px 16px; min-width: 320px; border-radius: 6px; border: 1px solid rgba(238,242,246,.25); background: rgba(13,16,21,.7); color: var(--light); }
.consent { font-size: 14px; color: var(--light-2); margin-top: 14px; display: flex; gap: 8px; justify-content: center; }

footer { display: flex; gap: 24px; align-items: center; padding: 22px 40px; font: 500 13px var(--ui); color: var(--dim); border-top: 1px solid rgba(238,242,246,.06); }
footer a { text-decoration: none; }
footer .sp { margin-left: auto; display: flex; gap: 18px; }

/* side dots */
.dots { position: fixed; z-index: 30; top: 50%; right: 10px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.dots button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(238,242,246,.35); transition: transform .2s, background .2s; }
.dots button.on i { background: var(--red-hi); transform: scale(1.5); }

@media (max-width: 900px) {
  .bar { padding: 14px 18px; } .bar nav { display: none; } .bar .logo img { height: 30px; }
  .inner { grid-template-columns: 1fr; padding: 110px 22px 48px; gap: 28px; }
  .s-right .inner .txt, .s-right .inner .card { grid-column: 1; grid-row: auto; }
  .s-left .shade, .s-right .shade { background: linear-gradient(to top, rgba(13,16,21,.95) 0%, rgba(13,16,21,.75) 55%, rgba(13,16,21,.2) 100%); }
  .counter { top: 78px; font-size: 40px; } .s-left .counter { right: 22px; } .s-right .counter { left: auto; right: 22px; }
  .card { justify-self: stretch !important; }
  h1, h2 { max-width: none; }
  .inst { grid-template-columns: repeat(4, 1fr); }
  .form input[type=email] { min-width: 0; width: 100%; }
  footer { flex-wrap: wrap; padding: 20px; } footer .sp { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* fit on phones and portrait tablets */
@media (max-width: 900px) {
  .inner { align-content: end; padding-top: clamp(96px, 16vh, 140px); padding-bottom: clamp(18px, 4vh, 40px); gap: clamp(14px, 2.4vh, 24px); }
  .card { width: 100%; max-height: 46svh; padding: 12px; }
  .card .foot, .txt .small { display: none; }
  .card svg { max-height: 22vh; }
  #demo svg { max-height: 26vh; }
  .inst { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x proximity; }
  .inst figure { flex: none; width: 82px; scroll-snap-align: start; }
  .row { padding: 10px 12px; font-size: 14px; } .row span { font-size: 13px; }
  .dots { right: 4px; }
  .ctas .key { padding: 12px 16px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .txt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .notes { display: none; }
  .row { padding: 8px 12px; grid-template-columns: 80px 1fr auto; } .row span { display: none; } .row em { grid-column: auto; }
  .card .top { margin-bottom: 8px; }
  .counter { font-size: 30px; top: 72px; }
  .kick { margin-bottom: 10px; }
}
@media (max-width: 600px) and (min-height: 721px) { .row { grid-template-columns: 90px 1fr; } .row em { grid-column: 2; } }
/* very short screens (landscape phones): natural flow, no snap */
@media (max-height: 520px) {
  html { scroll-snap-type: none; }
  .scene { height: auto; min-height: 100vh; }
  .card { max-height: none; }
  .dots { display: none; }
}

/* flag-only language picker */
.lang { position: relative; }
.lang-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(13,16,21,.45); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(238,242,246,.35); } /* data-izin */
.lang-btn img { width: 26px; height: 26px; border-radius: 50%; display: block; }
.lang-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; width: min(560px, calc(100vw - 24px)); max-height: min(72vh, 560px); overflow: auto;
  padding: 14px; border-radius: 12px; background: rgba(13,16,21,.96); border: 1px solid rgba(238,242,246,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.lang-panel p { margin: 0 0 10px; font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lang-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lang-panel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--light-2); font: 500 15px var(--text); }
.lang-panel a img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.lang-panel a:hover, .lang-panel a:focus-visible { background: rgba(238,242,246,.08); color: var(--light); }
.lang-panel a[aria-current="true"] { background: rgba(236,107,98,.14); color: var(--light); }
@media (max-width: 640px) { .lang-panel { position: fixed; top: 70px; inset-inline: 12px; width: auto; } .lang-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* right-to-left languages: text side, shade and counter swap; images are not mirrored */
[dir="rtl"] .s-left .shade { background: linear-gradient(270deg, rgba(13,16,21,.88) 0%, rgba(13,16,21,.55) 38%, rgba(13,16,21,0) 62%); }
[dir="rtl"] .s-right .shade { background: linear-gradient(90deg, rgba(13,16,21,.88) 0%, rgba(13,16,21,.55) 38%, rgba(13,16,21,0) 62%); }
[dir="rtl"] .s-left .counter { right: auto; left: 56px; }
[dir="rtl"] .s-right .counter { left: auto; right: 56px; }
[dir="rtl"] .dots { right: auto; left: 10px; }
[dir="rtl"] .kick, [dir="rtl"] .card .top, [dir="rtl"] .lang-panel p { letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(fa) h1, :lang(fa) h2, :lang(hi) h1, :lang(hi) h2 { line-height: 1.2; letter-spacing: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 { line-height: 1.15; letter-spacing: 0; line-break: strict; word-break: keep-all; }
:lang(ja) .txt p, :lang(zh-Hans) .txt p { line-break: strict; }
@media (max-width: 900px) { [dir="rtl"] .s-left .counter, [dir="rtl"] .s-right .counter { left: 22px; right: auto; } }

/* taller scripts (Arabic, Persian, Devanagari, CJK) need a little more room on phones */
@media (max-width: 900px) {
  :lang(ar) .row, :lang(fa) .row, :lang(hi) .row, :lang(ja) .row, :lang(ko) .row, :lang(zh-Hans) .row { padding-block: 7px; }
  :lang(ar) .row span, :lang(fa) .row span, :lang(hi) .row span, :lang(ja) .row span, :lang(ko) .row span, :lang(zh-Hans) .row span { display: none; }
  :lang(ar) .txt p, :lang(fa) .txt p, :lang(hi) .txt p, :lang(ja) .txt p, :lang(ko) .txt p, :lang(zh-Hans) .txt p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- always-visible footer: chordevo left, Laicos right ---------- */
:root { --foot: 46px; }
.foot-bar { position: fixed; inset: auto 0 0; z-index: 25; height: var(--foot); display: flex; align-items: center; gap: 20px; padding: 0 28px;
  background: rgba(10,12,16,.86); border-top: 1px solid rgba(238,242,246,.07); backdrop-filter: blur(8px); font: 500 12.5px var(--ui); color: var(--dim); } /* data-izin */
.foot-bar .f-logo img { height: 24px; width: auto; display: block; }
.foot-bar .f-laicos { margin-inline-start: auto; opacity: .9; } .foot-bar .f-laicos:hover { opacity: 1; }
.foot-bar .f-laicos img { height: 20px; width: auto; display: block; }
.foot-bar .f-mid { display: flex; gap: 16px; align-items: center; margin-inline-start: 18px; min-width: 0; }
.foot-bar .f-mid a { text-decoration: none; color: var(--light-2); white-space: nowrap; } .foot-bar .f-mid a:hover { color: var(--light); }
.foot-bar .f-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inner { padding-bottom: calc(clamp(28px, 7vh, 80px) + var(--foot)); }
.dots { top: calc(50% - var(--foot) / 2); }
@media (max-width: 900px) {
  :root { --foot: 42px; }
  .foot-bar { padding: 0 14px; gap: 10px; }
  .foot-bar .f-note { display: none; }
  .foot-bar .f-mid { margin-inline-start: 6px; gap: 10px; font-size: 11.5px; }
  .foot-bar .f-logo img { height: 20px; } .foot-bar .f-laicos img { height: 16px; }
  .inner { padding-bottom: calc(clamp(18px, 4vh, 40px) + var(--foot)); }
}
@media (max-width: 420px) { .foot-bar .f-mid a:nth-child(4) { display: none; } }
@media (max-height: 520px) { .foot-bar { position: static; } .inner { padding-bottom: 32px; } }

/* ---------- headline quantize: words arrive off-pitch and blurred, snap to the line as a playhead passes ---------- */
.fx { position: relative; }
.fx .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(var(--y)) scale(1.04);
  transition: opacity .35s ease var(--d), filter .5s ease var(--d), transform .75s cubic-bezier(.2, 1.65, .35, 1) var(--d); will-change: transform, filter; }
.scene.play .fx .w { opacity: 1; filter: none; transform: none; }
.fx::after { content: ""; position: absolute; top: -6%; bottom: -6%; width: 2px; inset-inline-start: 0; background: var(--red-hi);
  box-shadow: 0 0 14px 2px rgba(236,107,98,.6); opacity: 0; pointer-events: none; } /* data-izin: playhead glow */
.scene.play .fx::after { animation: playhead var(--sweep, 900ms) cubic-bezier(.55, 0, .45, 1) 60ms both; }
@keyframes playhead { 0% { opacity: 0; inset-inline-start: -2%; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; inset-inline-start: 100%; } }

/* kicker types in like a label being set; paragraph and card follow the downbeat */
.kick { clip-path: inset(0 100% 0 0); transition: clip-path .7s steps(18, end) .05s; }
[dir="rtl"] .kick { clip-path: inset(0 0 0 100%); }
.scene.play .kick { clip-path: inset(0 0 0 0); }
.txt p, .ctas, .txt .small, .scene .form, .scene .consent { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.scene.play .txt p { opacity: 1; transform: none; transition-delay: .55s; }
.scene.play .ctas, .scene.play .form { opacity: 1; transform: none; transition-delay: .75s; }
.scene.play .txt .small, .scene.play .consent { opacity: 1; transform: none; transition-delay: .9s; }
.card { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .7s ease .35s, transform .9s cubic-bezier(.2, .8, .2, 1) .35s; }
.scene.play .card { opacity: 1; transform: none; }
/* card children light up row by row */
.card .row, .card .notes span, .inst figure { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s ease; }
.scene.play .card .row, .scene.play .card .notes span, .scene.play .inst figure { opacity: 1; transform: none; }
.scene.play .card .row:nth-child(1), .scene.play .inst figure:nth-child(1), .scene.play .notes span:nth-child(1) { transition-delay: .7s; }
.scene.play .card .row:nth-child(2), .scene.play .inst figure:nth-child(2), .scene.play .notes span:nth-child(2) { transition-delay: .78s; }
.scene.play .card .row:nth-child(3), .scene.play .inst figure:nth-child(3), .scene.play .notes span:nth-child(3) { transition-delay: .86s; }
.scene.play .card .row:nth-child(4), .scene.play .inst figure:nth-child(4), .scene.play .notes span:nth-child(4) { transition-delay: .94s; }
.scene.play .inst figure:nth-child(n+5), .scene.play .notes span:nth-child(n+5) { transition-delay: 1.02s; }
/* the counter lights up when its scene plays */
.counter .val { transition: color .4s ease, text-shadow .4s ease; }
.scene.play .counter .val { text-shadow: 0 0 18px rgba(238,242,246,.25); }

/* reduced motion: everything visible, nothing moves */
.no-fx .fx .w, .no-fx .kick, .no-fx .txt p, .no-fx .ctas, .no-fx .txt .small, .no-fx .form, .no-fx .consent, .no-fx .card, .no-fx .card .row, .no-fx .notes span, .no-fx .inst figure
{ opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; transition: none !important; }
.no-fx .fx::after { display: none; }

/* ---------- hero slider ---------- */
.hero-col { display: grid; align-content: end; }
.slides { display: grid; perspective: 1200px; }
.slide { grid-area: 1 / 1; align-self: end; transform-origin: 0% 50%; }
.slide h2.big { font-size: clamp(38px, min(7vw, 11.5vh), 112px); max-width: 10ch; }
.slide:not(.on):not(.out) { visibility: hidden; opacity: 0; }
.slide.out { animation: slide-out .85s cubic-bezier(.55, 0, .7, .2) both; pointer-events: none; }
.slide.on { animation: slide-in .95s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide-out { from { opacity: 1; transform: none; filter: none; } to { opacity: 0; transform: translateX(-16%) rotateY(18deg) skewY(-2deg) scale(.94, .86); filter: blur(14px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(16%) rotateY(-18deg) skewY(2deg) scale(.94, .86); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
[dir="rtl"] .slide { transform-origin: 100% 50%; }
[dir="rtl"] .slide.out { animation-name: slide-out-rtl; } [dir="rtl"] .slide.on { animation-name: slide-in-rtl; }
@keyframes slide-out-rtl { from { opacity: 1; transform: none; filter: none; } to { opacity: 0; transform: translateX(16%) rotateY(-18deg) skewY(2deg) scale(.94, .86); filter: blur(14px); } }
@keyframes slide-in-rtl { from { opacity: 0; transform: translateX(-16%) rotateY(18deg) skewY(-2deg) scale(.94, .86); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
/* first paint: no entrance animation for the first slide until the scene plays */
.scene:not(.play) .slide.on { animation: none; }
/* words / kicker / paragraph inside slides follow the slide, not only the scene */
.hero .slide:not(.on) .fx .w { opacity: 0; filter: blur(10px); transform: translateY(var(--y)) scale(1.04); transition: none; }
.hero .slide.out .fx .w { opacity: 1; filter: none; transform: none; }
.hero .slide:not(.on) .fx::after { animation: none; }
.hero .slide:not(.on):not(.out) .kick { clip-path: inset(0 100% 0 0); transition: none; }
.hero .slide:not(.on):not(.out) p { opacity: 0; transform: translateY(14px); transition: none; }
.hero .scene.play .slide.on p, .hero.play .slide.on p { transition-delay: .5s; }
/* progress bars: one bar per slide, the running one fills over the slide duration */
.slide-bars { display: flex; gap: 6px; margin-top: clamp(14px, 2.4vh, 22px); }
.slide-bars i { position: relative; width: 38px; height: 3px; border-radius: 2px; background: rgba(238,242,246,.22); overflow: hidden; cursor: pointer; }
.slide-bars i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--light); }
[dir="rtl"] .slide-bars i::after { transform-origin: right; }
.slide-bars i.done::after { transform: scaleX(1); }
.slide-bars i.on::after { background: var(--red-hi); }
.slide-bars i.run::after { animation: bar-fill var(--slide-dur, 3500ms) linear both; }
.slide-bars i:focus-visible { outline: 2px solid #6AA0E0; outline-offset: 4px; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .ctas { margin-top: clamp(14px, 2.6vh, 26px); }
.no-fx .slide.out, .no-fx .slide.on { animation: none !important; }

/* ---------- sound layer ---------- */
.snd-btn { position: fixed; z-index: 26; inset-inline-end: 18px; bottom: calc(var(--foot) + 14px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(13,16,21,.7); color: var(--light-2); box-shadow: inset 0 0 0 1.5px rgba(238,242,246,.3); backdrop-filter: blur(6px); } /* data-izin */
.snd-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snd-btn .spk { fill: currentColor; stroke: none; }
.snd-btn .w1, .snd-btn .w2 { opacity: 0; } .snd-btn .x { opacity: 1; }
.snd-btn.on { color: var(--light); box-shadow: inset 0 0 0 1.5px var(--red-hi); }
.snd-btn.on .w1, .snd-btn.on .w2 { opacity: 1; animation: wave 1.6s ease-in-out infinite; } .snd-btn.on .w2 { animation-delay: .25s; } .snd-btn.on .x { opacity: 0; }
@keyframes wave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.snd-btn:focus-visible { outline: 2px solid #6AA0E0; outline-offset: 3px; }
.snd-tag { position: fixed; z-index: 26; inset-inline-end: 70px; bottom: calc(var(--foot) + 26px); font: 600 11px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  background: rgba(13,16,21,.6); padding: 4px 8px; border-radius: 4px; }
[dir="rtl"] .snd-tag { letter-spacing: 0; }
.listen { display: inline-flex; align-items: center; gap: 9px; margin-top: 2px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(238,242,246,.08); color: var(--light-2); font: 600 13px var(--ui); letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(238,242,246,.18); } /* data-izin */
.listen i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
[dir="rtl"] .listen i { border-width: 5px 8px 5px 0; border-color: transparent currentColor transparent transparent; }
.listen.playing { color: var(--light); box-shadow: inset 0 0 0 1px var(--red-hi); }
.listen.playing i { width: 9px; height: 10px; border: 0; border-inline: 3px solid var(--red-hi); }
.listen:hover { color: var(--light); }
.listen:focus-visible { outline: 2px solid #6AA0E0; outline-offset: 3px; }
.txt .listen { margin-bottom: 4px; }
.hero .listen { margin-top: clamp(10px, 2vh, 16px); justify-self: start; }
.scene .txt p + .listen { opacity: 0; transition: opacity .6s ease; } .scene.play .txt p + .listen { opacity: 1; transition-delay: .8s; }
@media (max-width: 900px) { .snd-btn { width: 40px; height: 40px; inset-inline-end: 12px; } .snd-tag { display: none !important; } .listen { padding: 6px 12px 6px 9px; font-size: 12px; } }
@media (max-height: 520px) { .snd-btn { bottom: 14px; } }
@media (max-width: 900px) {
  :lang(ar) .txt p, :lang(fa) .txt p { -webkit-line-clamp: 3; }
  :lang(ar) .row, :lang(fa) .row { padding-block: 5px; }
  :lang(ar) .listen, :lang(fa) .listen { padding-block: 5px; }
}
/* sound is on but waiting for the first tap: a soft pulse invites it */
.snd-btn.waiting { animation: snd-wait 2.2s ease-in-out infinite; }
@keyframes snd-wait { 0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(236,107,98,.5), 0 0 0 0 rgba(236,107,98,.35); } 50% { box-shadow: inset 0 0 0 1.5px var(--red-hi), 0 0 0 10px rgba(236,107,98,0); } }
.no-fx .snd-btn.waiting { animation: none; }

/* early-access form: consent and status rows, honeypot */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .consent { flex-basis: 100%; margin-top: 6px; max-width: 60ch; margin-inline: auto; text-align: start; line-height: 1.4; }
.form .consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red-hi); }
.form .consent a { color: var(--light); text-underline-offset: 3px; white-space: nowrap; }
.form-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font: 500 15px/1.4 var(--ui); color: var(--light-2); }
.form-msg.ok { color: var(--light); } .form-msg.err { color: var(--red-hi); }
.form button:disabled { opacity: .6; cursor: progress; }

/* legal page: normal scrolling document */
html.doc { scroll-snap-type: none; scroll-behavior: smooth; }
.legal { max-width: 780px; margin: 0 auto; padding: 120px 24px calc(var(--foot) + 64px); color: var(--light-2); }
.legal .back { display: inline-block; margin-bottom: 28px; font: 500 14px var(--ui); color: var(--light-2); text-decoration: none; }
.legal .back:hover { color: var(--light); }
.legal h1 { font: 700 clamp(30px, 5vw, 46px)/1.1 var(--ui); color: var(--light); margin: 0 0 10px; letter-spacing: -.01em; }
.legal h2 { font: 650 22px/1.25 var(--ui); color: var(--light); margin: 44px 0 12px; }
.legal h3 { font: 600 17px/1.3 var(--ui); color: var(--light); margin: 22px 0 6px; }
.legal p, .legal li, .legal dd { font-size: 16px; line-height: 1.65; }
.legal .meta { font: 500 14px var(--ui); color: var(--dim); margin: 0 0 22px; }
.legal a { color: var(--light); text-underline-offset: 3px; }
.legal ul { padding-inline-start: 22px; }
.legal li + li { margin-top: 4px; }
.legal .tw { overflow-x: auto; margin: 14px 0; border: 1px solid rgba(238,242,246,.1); border-radius: 8px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; line-height: 1.5; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(238,242,246,.08); }
.legal th { font: 600 13px var(--ui); color: var(--light); background: rgba(238,242,246,.04); }
.legal tr:last-child td { border-bottom: 0; }
.legal #imprint { margin-top: 56px; padding-top: 8px; border-top: 1px solid rgba(238,242,246,.1); scroll-margin-top: 100px; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 20px; margin: 0; }
.legal dt { font: 600 14px/1.65 var(--ui); color: var(--light); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .legal { padding-top: 96px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; }
}
.legal h1, .legal h2, .legal h3 { max-width: none; text-wrap: balance; }
.form-msg:empty { min-height: 0; margin: 0; }
@media (max-height: 700px) { .form { gap: 8px; } .form .consent { font-size: 13px; margin-top: 2px; } }

/* phones: scenes are 100svh (toolbar shown); when the toolbar hides the viewport grows to 100lvh and the last scene could
   not reach the top (it stayed half in transition, blurred). This spacer gives exactly that difference. */
@supports (height: 100lvh) { main::after { content: ""; display: block; height: calc(100lvh - 100svh); } }
/* consent always on its own row under the email field (the 60ch cap had let it fit beside the button) */
.form .consent { flex: 0 0 100%; max-width: none; justify-content: center; }
.form .consent span { max-width: 60ch; }
