/* papiralidmasinas.lv: the Canva site rebuilt as plain HTML.
   Every page has two stages: .desk (from a 1440 px wide Canva layout) and .mob (390 px).
   All sizes are in vw, so a stage scales with the window exactly like Canva does. */

@font-face { font-family: "Coldiac"; src: url("fonts/coldiac.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("fonts/nexa-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("fonts/nexa-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("fonts/nexa-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Canva Sans"; src: url("fonts/canva-sans-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* Canva's fonts, copied from the Canva site into assets/fonts */
  --f-display: "Coldiac", "Bodoni 72", Didot, serif;
  --f-body: "Nexa", "Century Gothic", sans-serif;
  --f-sans: "Canva Sans", "Nexa", sans-serif;
  --ink: #304254;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #030405; font-family: var(--f-body); -webkit-font-smoothing: antialiased; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; height: 56px; background: #fff;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 16px;
}
.menu { display: flex; gap: 8px; align-items: center; }
.menu a {
  font-family: var(--f-body); font-size: 24px; line-height: 1.2; color: var(--ink);
  text-decoration: none; padding: 1px 8px; opacity: 0.62; transition: opacity 0.2s ease;
}
.menu a:hover { opacity: 0.85; }
.menu a[aria-current="page"] { opacity: 1; }
.burger { display: none; width: 44px; height: 40px; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--ink); }
.burger svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 6px 10px; z-index: 60; }

/* ---------- Stages ---------- */
.stage { position: relative; width: 100%; overflow: hidden; }
.mob { display: none; }
.el { position: absolute; margin: 0; }
.clip { overflow: hidden; display: block; }
.clip img { position: absolute; max-width: none; display: block; }
.txt { padding: 0; font-weight: 400; }
.txt a { color: inherit; text-decoration: inherit; }
a.btn-frame { transition: background-color 0.25s ease; }
a.btn-frame:hover { background: rgba(255, 249, 238, 0.12); }
.svg svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Social icons: light on dark sections, dark on light ones */
.social { color: #fff9ee; display: block; transition: transform 0.2s ease; }
.social.dark { color: #9c9c9c; }
.social:hover { transform: scale(1.08); }
.social svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* Canva's moving sound bars on "Skaties un klausies" */
.eq i { position: absolute; top: 15%; width: 6%; height: 70%; background: #fff9ee; border-radius: 99px; transform-origin: center; animation: eq 1.1s ease-in-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

@media (max-width: 767px) {
  .desk { display: none; }
  .mob { display: block; }
  .burger { display: inline-grid; place-items: center; }
  .menu {
    display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); padding: 8px 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 20px; border-radius: 0; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; }
  .social, a.btn-frame { transition: none; }
}

/* Contact form ("Raksti mums") in place of Canva's widget */
.contact { background: #000; color: #fff; padding: 2.2em 2em 1.4em; display: flex; flex-direction: column; gap: 0.35em; font-family: var(--f-body); }
.contact h2 { margin: 0 0 0.9em; font-weight: 400; font-size: 1.6em; }
.contact label, .contact legend { font-size: 0.72em; margin-top: 0.6em; padding: 0; }
.contact input, .contact textarea { font: inherit; font-size: 0.9em; color: #fff; background: #000; border: 1px solid #5c5c5c; border-radius: 0.35em; padding: 0.45em 0.6em; width: 100%; }
.contact input:focus, .contact textarea:focus { outline: 2px solid #fff9ee; outline-offset: 1px; }
.contact textarea { min-height: 3.6em; resize: vertical; }
.contact fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45em; }
.choice { margin: 0 !important; font-size: 0.85em !important; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; background: #1c1c1c; border-radius: 0.4em; padding: 1.15em 0.9em; color: #9a9a9a; cursor: pointer; border: 1px solid transparent; }
.choice input:checked + span { color: #fff; border-color: #8a8a8a; }
.choice input:focus-visible + span { outline: 2px solid #fff9ee; }
.contact button { margin-top: 1em; font: inherit; font-size: 0.85em; background: #a5a5a5; color: #fff; border: 0; border-radius: 99px; padding: 0.55em; cursor: pointer; }
.contact button:hover { background: #8d8d8d; }
.contact .note { margin: 0.4em 0 0; font-size: 0.7em; color: #cfcfcf; min-height: 1em; }

/* ---------- Atsauksmes: three cards that share one row (desktop) or stack (phone) ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4vw; perspective: 900px; }
.review {
  position: relative; margin: 0; display: flex; flex-direction: column; overflow: hidden;
  padding: 2.6vw 2.2vw 2vw; color: #fff9ee; border: 1px solid rgba(255, 249, 238, 0.28);
  background: linear-gradient(160deg, rgba(255, 249, 238, 0.07), rgba(255, 249, 238, 0.015) 60%);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
}
.review::after { /* sheen that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(28vw circle at var(--mx, 50%) var(--my, 50%), rgba(255, 249, 238, 0.13), transparent 60%);
}
.review:hover { border-color: rgba(255, 249, 238, 0.7); --lift: -0.4vw; box-shadow: 0 1.6vw 3vw rgba(0, 0, 0, 0.55); }
.review:hover::after { opacity: 1; }
.review .q { font-family: "Bodoni 72", Didot, Georgia, serif; font-size: 7.5vw; line-height: 1; height: 4.2vw; margin: -0.8vw 0 0 -0.3vw; color: #e9c99a; opacity: 0.8; }
.review blockquote { margin: 0; flex: 1; font-size: 1.5vw; line-height: 1.6; }
.review figcaption {
  margin-top: 1.6vw; padding-top: 1.1vw; border-top: 1px solid rgba(255, 249, 238, 0.35);
  font-size: 1vw; letter-spacing: 0.16em; text-transform: uppercase;
}
.review figcaption::before { content: "— "; opacity: 0.6; }
.mob .reviews { grid-template-columns: 1fr; gap: 5vw; }
.mob .review { padding: 6vw 6vw 5vw; }
.mob .review .q { font-size: 22vw; height: 12vw; margin: -2vw 0 0 -1vw; }
.mob .review blockquote { font-size: 4.2vw; }
.mob .review figcaption { font-size: 3.2vw; margin-top: 4vw; padding-top: 3vw; }

/* ---------- Motion ---------- */
/* Scroll reveal: only once site.js has marked the page, so nothing hides without JS */
.js .reveal { opacity: 0; transform: translate3d(0, 2.2rem, 0); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.9s ease;
  transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.review.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
/* Display headings slide in from the side, a little slower */
.js .txt.display.reveal { transform: translate3d(-3vw, 0, 0); transition-duration: 1.2s; }

/* Photos: slow parallax while scrolling, gentle zoom under the mouse */
.clip img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--zoom, 1)); transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.6s ease; will-change: transform; }
.clip.para img { --zoom: 1.1; }
.clip:hover img { --zoom: 1.06; }
.clip.para:hover img { --zoom: 1.15; }

/* Buttons and nav */
a.btn-frame { overflow: hidden; }
a.btn-frame::before { content: ""; position: absolute; inset: 0; background: rgba(255, 249, 238, 0.14); transform: scaleX(0); transform-origin: left; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
a.btn-frame:hover::before { transform: scaleX(1); }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform 0.3s ease; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 767px) { .menu a::after { display: none; } }

/* Soft light that follows the cursor over the page (mouse only) */
.glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 40;
  background: radial-gradient(circle, rgba(255, 236, 200, 0.13), rgba(255, 236, 200, 0) 65%); mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s ease; }
.glow.on { opacity: 1; }

/* Paper planes that drift off behind the cursor */
.plane { position: fixed; width: 22px; height: 22px; pointer-events: none; z-index: 41; color: #fff9ee; opacity: 0.9;
  animation: fly 1.4s cubic-bezier(.3,.6,.4,1) forwards; }
.plane svg { width: 100%; height: 100%; display: block; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
@keyframes fly { to { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .txt.display.reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .clip img, .review, a.btn-frame::before { transition: none; }
  .glow, .plane { display: none; }
}

/* ---------- Nākamie publiskie pasākumi (cards written by tools/events/update.py) ---------- */
.events { display: flex; justify-content: center; align-items: stretch; gap: 2vw; color: #030405; }
.desk .ev { min-height: 14vw; }
.ev { flex: 0 1 29vw; display: flex; gap: 1.6vw; padding: 1.8vw; border: 1px solid #030405; background: #fff;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease; }
.ev:hover { background: #030405; color: #fff9ee; transform: translateY(-0.4vw); box-shadow: 0 1.2vw 2.4vw rgba(0, 0, 0, 0.18); }
.ev-date { flex: none; width: 5.4vw; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 0.4vw;
  border-right: 1px solid currentColor; padding-right: 1.6vw; line-height: 1; }
.ev-date b { font-family: var(--f-display); font-weight: 400; font-size: 4.2vw; }
.ev-date span { margin-top: 0.5vw; font-size: 1vw; letter-spacing: 0.2em; }
.ev-body { display: flex; flex-direction: column; min-width: 0; }
.ev h3 { margin: 0 0 0.5vw; font-weight: 400; font-size: 1.5vw; line-height: 1.25; letter-spacing: 0.05em; text-transform: uppercase; }
.ev-where, .ev-when { margin: 0; font-size: 1.1vw; line-height: 1.5; opacity: 0.75; }
.ev-btn { margin-top: auto; padding-top: 1.2vw; align-self: flex-start; display: inline-flex; gap: 0.6vw; color: inherit; text-decoration: none;
  font-size: 0.95vw; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 0.2vw; }
.ev-btn span { transition: transform 0.3s ease; }
.ev:hover .ev-btn span { transform: translateX(0.4vw); }

.ev.empty { flex-basis: 40vw; text-align: center; justify-content: center; }
.ev.empty .ev-body { align-items: center; }
.ev.empty .ev-btn { align-self: center; }
.mob .events { flex-direction: column; gap: 5vw; }
.mob .ev { flex: none; gap: 5vw; padding: 5.5vw; }
.mob .ev-date { width: 16vw; padding-right: 5vw; }
.mob .ev-date b { font-size: 12vw; }
.mob .ev-date span { font-size: 3vw; margin-top: 1.5vw; }
.mob .ev h3 { font-size: 4.6vw; margin-bottom: 1.5vw; }
.mob .ev-where, .mob .ev-when { font-size: 3.6vw; }
.mob .ev-btn { font-size: 3vw; padding-top: 4vw; gap: 2vw; }

/* ---------- Skaties: silent video grid (tools/videos.py) ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2vw 2vw; }
.vcard { display: block; color: #fff9ee; text-decoration: none; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 0.3vw; }
.vthumb img, .vthumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.vthumb img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease; }
.vthumb iframe { pointer-events: none; transform: scale(1.36); opacity: 0; transition: opacity 0.8s ease; }
.vthumb.live iframe { opacity: 1; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%); transition: background-color 0.4s ease; }
.vplay { position: absolute; z-index: 1; left: 50%; top: 50%; width: 3.6vw; height: 3.6vw; margin: -1.8vw 0 0 -1.8vw; border-radius: 50%;
  background: rgba(255, 249, 238, 0.92); transform: scale(0.6); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; }
.vplay::before { content: ""; position: absolute; left: 40%; top: 30%; border-style: solid; border-width: 0.7vw 0 0.7vw 1.15vw; border-color: transparent transparent transparent #13080e; }
.vcard:hover .vthumb img { transform: scale(1.06); }
.vcard:hover .vthumb::after { background-color: rgba(0, 0, 0, 0.25); }
.vcard:hover .vplay, .vcard:focus-visible .vplay { transform: scale(1); opacity: 1; }
.vcap { display: block; padding-top: 0.8vw; }
.vcap small { display: block; font-size: 0.8vw; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.vcap b { display: block; font-weight: 400; font-size: 1.35vw; margin-top: 0.25vw; }
.mob .vgrid { grid-template-columns: repeat(2, 1fr); gap: 6vw 3vw; }
.mob .vcard:first-child { grid-column: 1 / -1; }
.mob .vcard:first-child .vcap b { font-size: 5vw; }
.mob .vthumb { border-radius: 1vw; }
.mob .vplay { width: 10vw; height: 10vw; margin: -5vw 0 0 -5vw; opacity: 0.9; transform: none; }
.mob .vplay::before { border-width: 2vw 0 2vw 3.2vw; }
.mob .vcap { padding-top: 2vw; }
.mob .vcap small { font-size: 2.6vw; }
.mob .vcap b { font-size: 3.9vw; margin-top: 0.6vw; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12); } }
.mob .vthumb img { animation: kb 9s ease-in-out infinite alternate; }

a.spot { display: grid; place-items: center; color: #fff9ee; text-decoration: none; letter-spacing: 0.2em; text-transform: uppercase; }

/* Hero: the whole video is a button that offers the full video on YouTube */
.hero-yt { border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.hero-yt span { margin-bottom: 3vw; padding: 0.9em 1.6em; border-radius: 99px; background: rgba(3, 4, 5, 0.55); color: #fff9ee; font: inherit;
  font-family: var(--f-body); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.hero-yt:hover span, .hero-yt:focus-visible span { opacity: 1; transform: none; }
.mob .hero-yt span { opacity: 1; transform: none; font-size: 13px; margin-bottom: 8vw; }

/* Small question dialog ("Atvērt YouTube?") */
.ask { border: 0; padding: 0; background: transparent; color: #fff9ee; max-width: min(92vw, 420px); }
.ask::backdrop { background: rgba(3, 4, 5, 0.6); backdrop-filter: blur(4px); }
.ask[open] { animation: pop 0.3s cubic-bezier(.2,.8,.2,1.2); }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
.ask-box { background: #13080e; border: 1px solid rgba(255, 249, 238, 0.25); border-radius: 16px; padding: 26px 24px 20px; text-align: center; font-family: var(--f-body); }
.ask-box h2 { margin: 6px 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.ask-box p { margin: 0 0 20px; opacity: 0.7; font-size: 15px; }
.ask-box .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { font: inherit; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 18px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255, 249, 238, 0.4); background: transparent; color: #fff9ee; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.btn.primary { background: #fff9ee; color: #13080e; border-color: #fff9ee; }
.btn:hover { filter: brightness(1.1); }

/* ---------- Repertuārs (repertuars.html, tools/songlist.py) ---------- */
main.rep { background: #13080e; color: #fff9ee; min-height: 100vh; padding: 0 max(16px, 6vw) 80px; }
.rep-hero { padding: clamp(48px, 9vw, 130px) 0 clamp(24px, 3vw, 40px); max-width: 900px; }
.rep-kicker { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; }
.rep-hero h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 11vw, 170px); line-height: 0.9; letter-spacing: -0.06em; text-transform: uppercase; }
.rep-lead { margin: 22px 0 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.55; max-width: 640px; opacity: 0.85; }
.rep-tools { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; padding: 16px 0;
  background: linear-gradient(#13080e 75%, rgba(19, 8, 14, 0)); }
.rep-search { flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 249, 238, 0.35);
  border-radius: 99px; padding: 0 18px; transition: border-color 0.25s ease, background-color 0.25s ease; }
.rep-search:focus-within { border-color: #fff9ee; background: rgba(255, 249, 238, 0.05); }
.rep-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: 0.7; }
.rep-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: inherit; background: transparent; border: 0; outline: 0; padding: 13px 0; }
.rep-search input::placeholder { color: rgba(255, 249, 238, 0.5); }
.rep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rep-chips button { font: inherit; font-size: 14px; color: inherit; background: transparent; border: 1px solid rgba(255, 249, 238, 0.3); border-radius: 99px;
  padding: 9px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.rep-chips button i { font-style: normal; font-size: 12px; opacity: 0.6; }
.rep-chips button:hover { border-color: #fff9ee; }
.rep-chips button[aria-pressed="true"] { background: #fff9ee; color: #13080e; border-color: #fff9ee; }
.rep-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.song { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t k" "a k"; column-gap: 12px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 249, 238, 0.12);
  transition: background-color 0.2s ease, padding 0.25s ease; }
.song:hover { background: rgba(255, 249, 238, 0.05); padding-left: 10px; }
.song-t { grid-area: t; font-size: 17px; line-height: 1.3; }
.song-a { grid-area: a; font-size: 13px; opacity: 0.6; margin-top: 3px; }
.song-k { grid-area: k; align-self: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px;
  border: 1px solid rgba(255, 249, 238, 0.25); opacity: 0.75; }
.song.k-own .song-t { font-family: var(--f-display); font-size: 21px; }
.song.k-own .song-k { background: #e9c99a; color: #13080e; border-color: #e9c99a; opacity: 1; }
.song.k-xmas .song-k { border-color: #c9a0a0; }
.song[hidden] { display: none; }
.song mark { background: rgba(233, 201, 154, 0.35); color: inherit; border-radius: 3px; }
.rep-none { margin: 40px 0; font-size: 18px; opacity: 0.75; }
.rep-cta { margin-top: 70px; padding: 44px 24px; text-align: center; border: 1px solid rgba(255, 249, 238, 0.2); border-radius: 18px; }
.rep-cta h2 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; letter-spacing: -0.05em; }
.rep-cta p { margin: 0 0 22px; opacity: 0.75; }

/* ---------- Par mums (hand-made story page) ---------- */
main.about { background: #030405; color: #fff9ee; overflow: hidden; }
.ab-hero { position: relative; min-height: min(92vh, 62vw); display: flex; align-items: flex-end; }
.ab-hero-img { position: absolute; inset: 0; overflow: hidden; }
.ab-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.08); animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.ab-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #030405 4%, rgba(3, 4, 5, 0.25) 55%, rgba(3, 4, 5, 0.1)); }
.ab-hero-text { position: relative; z-index: 1; padding: 0 max(16px, 6vw) clamp(36px, 6vw, 90px); }
.ab-kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; }
.ab-hero h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 13vw, 210px); line-height: 0.85; letter-spacing: -0.07em; text-transform: uppercase; }
.ab-lead { margin: 18px 0 0; font-size: clamp(17px, 1.7vw, 24px); max-width: 560px; }

.ab-story { position: relative; padding: clamp(40px, 7vw, 110px) max(16px, 6vw); display: flex; flex-direction: column; gap: clamp(56px, 8vw, 120px); }
.ab-story::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255, 249, 238, 0.25) 8%, rgba(255, 249, 238, 0.25) 92%, transparent); }
.ab-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.ab-step.flip .ab-photo { order: 2; }
.ab-photo { overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.ab-photo:hover img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.ab-copy { max-width: 520px; }
.ab-year { display: inline-block; font-family: var(--f-display); font-size: clamp(54px, 7vw, 110px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 249, 238, 0.7); letter-spacing: -0.04em; }
.ab-copy h2 { margin: 6px 0 16px; font-weight: 400; font-size: clamp(22px, 2.3vw, 34px); letter-spacing: 0.06em; text-transform: uppercase; }
.ab-copy p { margin: 0 0 14px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; opacity: 0.86; }
.ab-step::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -6px; border-radius: 50%; background: #e9c99a; box-shadow: 0 0 0 6px rgba(233, 201, 154, 0.15); }

.ab-why { position: relative; z-index: 1; align-self: center; max-width: 760px; text-align: center; padding: clamp(30px, 4vw, 56px); border-radius: 18px; background: #13080e; border: 1px solid rgba(255, 249, 238, 0.15); }
.ab-why p { margin: 0 0 12px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; opacity: 0.85; }
.ab-q { font-family: var(--f-display); font-size: clamp(28px, 3vw, 46px) !important; line-height: 1.1 !important; opacity: 1 !important; text-transform: uppercase; letter-spacing: -0.04em; margin-bottom: 18px !important; }
.ab-answer { font-size: clamp(19px, 1.7vw, 25px) !important; opacity: 1 !important; color: #e9c99a; margin: 18px 0 0 !important; }

.ab-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 max(16px, 6vw); }
.ab-gallery figure { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; }
.ab-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.6s ease; filter: grayscale(0.35); }
.ab-gallery figure:hover img { transform: scale(1.06); filter: none; }

.ab-quote { padding: clamp(70px, 9vw, 140px) max(16px, 10vw); text-align: center; }
.ab-quote blockquote { margin: 0 auto; max-width: 1000px; font-family: var(--f-display); font-size: clamp(22px, 2.5vw, 38px); line-height: 1.35; }
.ab-sign { margin: 26px 0 30px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.65; }
.ab-social { display: flex; justify-content: center; gap: 22px; }
.ab-social .social { width: 44px; height: 44px; }

@media (max-width: 767px) {
  .ab-hero { min-height: 120vw; }
  .ab-story::before, .ab-step::after { display: none; }
  .ab-step { grid-template-columns: 1fr; gap: 22px; }
  .ab-step.flip .ab-photo { order: 0; }
  .ab-gallery { grid-template-columns: 1fr; }
}
.js [data-rv] { opacity: 0; transform: translate3d(0, 2.4rem, 0); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js [data-rv].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1; transform: none; transition: none; } .ab-hero-img img { animation: none; transform: none; } }

/* ---------- Corner button: music, "Raksti mums", concerts (site.js builds it on every page) ---------- */
.dock { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 78px; height: 78px; font-family: var(--f-body); }
.dock button { font: inherit; cursor: pointer; }
.dock-main { position: absolute; inset: 0; border-radius: 50%; border: 0; padding: 0; background: #13080e; color: #fff9ee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 249, 238, 0.18) inset; display: grid; place-items: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1.3), box-shadow 0.3s ease; }
.dock-main:hover { transform: scale(1.06); }
.dock-logo { width: 54px; height: auto; margin: 2px 0 0 2px; display: block; transition: transform 0.5s cubic-bezier(.2,.8,.2,1.2), opacity 0.3s ease; }
.dock.open .dock-logo { transform: rotate(-12deg) scale(1.06); }
.dock-disc { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; opacity: 0; transform: scale(0.7); transition: opacity 0.4s ease, transform 0.4s ease; }
.dock-disc .cov { width: 100%; height: 100%; border-radius: 50%; }
.dock-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #13080e; box-shadow: 0 0 0 2px rgba(255, 249, 238, 0.5); }
.playing .dock-disc { opacity: 1; transform: none; animation: spin 6s linear infinite; }
.playing .dock-logo { opacity: 0; }
@keyframes spin { to { rotate: 360deg; } }
.dock-eq { position: absolute; right: -2px; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: #e9c99a; display: none; align-items: flex-end; justify-content: center; gap: 2px; padding: 5px; }
.playing .dock-eq { display: flex; }
.dock-eq i, .eqi i { width: 3px; height: 100%; background: #13080e; border-radius: 2px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.dock-eq i:nth-child(2), .eqi i:nth-child(2) { animation-delay: -0.3s; }
.dock-eq i:nth-child(3), .eqi i:nth-child(3) { animation-delay: -0.6s; }

/* Dim the page a little while the choices are open, so they read clearly */
.dock::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(3, 4, 5, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.dock.open::before { opacity: 1; pointer-events: auto; }

/* Choices: labelled pills stacked above the button, right edges in line, nearest = Mūzika */
.dock-sat { position: absolute; right: 4px; bottom: 10px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 22px;
  border: 0; border-radius: 99px; background: #fff9ee; color: #13080e; white-space: nowrap; font-size: 16px; letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transform: translateY(0) scale(0.6); transform-origin: right center;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1.2), opacity 0.25s ease, background-color 0.2s ease; transition-delay: calc(var(--i) * 45ms); }
.dock-sat svg { width: 22px; height: 22px; flex: none; display: block; }
.dock-sat:hover { background: #e9c99a; }
.dock.open .dock-sat { opacity: 1; pointer-events: auto; transform: translateY(calc(-74px - var(--i) * 62px)); }

/* "Now playing" pill next to the button */
.dock-mini { position: absolute; right: 90px; top: 17px; height: 44px; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 4px; border-radius: 99px;
  background: rgba(19, 8, 14, 0.92); color: #fff9ee; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); animation: pop 0.35s ease; transition: opacity 0.25s ease; }
.dock.open .dock-mini { opacity: 0; pointer-events: none; }
.dock-mini[hidden] { display: none; }
.mini-play { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff9ee; color: #13080e; padding: 8px; }
.mini-play svg { display: block; width: 100%; height: 100%; }
.mini-title { border: 0; background: transparent; color: inherit; font-size: 14px; padding: 0 8px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Slide-out panel */
.panel { position: fixed; z-index: 80; right: 16px; bottom: 112px; width: min(380px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 130px)); overflow: auto;
  background: #13080e; color: #fff9ee; border: 1px solid rgba(255, 249, 238, 0.16); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  font-family: var(--f-body); opacity: 0; transform: translateY(16px) scale(0.97); transform-origin: bottom right; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2,.8,.2,1.1); }
.panel.open { opacity: 1; transform: none; pointer-events: auto; }
.panel-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 12px 12px 10px; background: #13080e; border-bottom: 1px solid rgba(255, 249, 238, 0.1); }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs button, .panel-close { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 99px; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13px; white-space: nowrap; opacity: 0.6; transition: opacity 0.2s ease, background-color 0.2s ease; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { opacity: 1; background: rgba(255, 249, 238, 0.1); }
.panel-close { width: 36px; height: 36px; padding: 8px; opacity: 0.7; }
.panel-close:hover { opacity: 1; background: rgba(255, 249, 238, 0.1); }
.panel-close svg { display: block; width: 100%; height: 100%; }
.pane { padding: 18px 18px 20px; }
.pane h2 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: 30px; letter-spacing: -0.04em; text-transform: uppercase; }
.muted { opacity: 0.65; margin: 0 0 16px; }

.cov { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.cov.gen { display: grid; place-items: center; text-align: center; padding: 10%; background: radial-gradient(circle at 30% 25%, #f3c87a, #e07a4f 45%, #6b2140 95%); color: #fff9ee; }
.cov.gen b { font-family: var(--f-display); font-weight: 400; font-size: 1.5em; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.04em; }
.now { display: flex; gap: 14px; align-items: center; }
.now-cover { width: 104px; flex: none; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); border-radius: 10px; }
.now-cover .cov.gen b { font-size: 17px; }
.now-text small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.now-text h3 { margin: 4px 0 2px; font-weight: 400; font-size: 24px; line-height: 1.1; }
.now-text p { margin: 0; font-size: 14px; opacity: 0.65; }
.seek { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-size: 12px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.seek input { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(to right, #fff9ee var(--p, 0%), rgba(255, 249, 238, 0.2) var(--p, 0%)); }
.seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff9ee; }
.seek input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff9ee; }
.ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 6px 0 14px; }
.ctrl button { border: 0; background: transparent; color: #fff9ee; cursor: pointer; width: 40px; height: 40px; padding: 9px; border-radius: 50%; }
.ctrl button:hover { background: rgba(255, 249, 238, 0.1); }
.ctrl .c-play { width: 60px; height: 60px; padding: 17px; background: #fff9ee; color: #13080e; transition: transform 0.2s ease; }
.ctrl .c-play:hover { background: #fff9ee; transform: scale(1.06); }
.ctrl svg { display: block; width: 100%; height: 100%; }
.spot-btn, .all-spot { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff9ee; text-decoration: none; }
.spot-btn { padding: 11px; border-radius: 99px; border: 1px solid rgba(255, 249, 238, 0.25); font-size: 14px; transition: background-color 0.2s ease, border-color 0.2s ease; }
.spot-btn:hover { background: rgba(30, 215, 96, 0.12); border-color: #1ed760; }
.spot-btn svg { width: 22px; height: 22px; }
.tracks { list-style: none; margin: 16px 0 10px; padding: 0; }
.tracks button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 7px; border-radius: 12px; cursor: pointer; }
.tracks button:hover { background: rgba(255, 249, 238, 0.07); }
.tracks button.cur { background: rgba(255, 249, 238, 0.1); }
.tracks .cov.sm { width: 42px; border-radius: 7px; flex: none; }
.tracks .cov.gen.sm b { font-size: 7px; }
.tracks span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tracks span b { font-weight: 400; font-size: 15px; }
.tracks span small { font-size: 12px; opacity: 0.55; }
.eqi { display: none; width: 18px; height: 16px; align-items: flex-end; gap: 2px; }
.eqi i { background: #e9c99a; }
.playing .tracks button.cur .eqi { display: flex; }
.all-spot { font-size: 13px; letter-spacing: 0.08em; opacity: 0.75; padding: 6px; }
.all-spot:hover { opacity: 1; }

.panel-form { background: transparent; padding: 0; font-size: 16px; gap: 0.3em; }
.panel-form h2 { font-size: 30px; margin-bottom: 0.4em; }
.panel-form .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { position: relative; margin: 0 !important; font-size: 13px !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 8px 12px; border-radius: 99px; border: 1px solid rgba(255, 249, 238, 0.3); cursor: pointer; transition: background-color 0.2s ease; }
.chip input:checked + span { background: #fff9ee; color: #13080e; border-color: #fff9ee; }
.chip input:focus-visible + span { outline: 2px solid #e9c99a; outline-offset: 2px; }
.panel-form button[type=submit] { background: #fff9ee; color: #13080e; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.8em; }
.panel-form button[type=submit]:hover { background: #e9c99a; }

.gig-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.gig { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 249, 238, 0.06); color: inherit; text-decoration: none; }
a.gig:hover { background: rgba(255, 249, 238, 0.12); }
.gig time { width: 46px; flex: none; text-align: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; line-height: 1.1; }
.gig time b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 28px; letter-spacing: 0; }
.gig span { flex: 1; display: flex; flex-direction: column; }
.gig span b { font-weight: 400; font-size: 16px; }
.gig span small { font-size: 12px; opacity: 0.6; }
.pane[data-pane="gigs"] .btn { margin: 0 6px 8px 0; font-size: 12px; }

/* Page switch: a quick fade so the change is felt */
main { transition: opacity 0.2s ease; }
.leaving main { opacity: 0.35; }

@media (max-width: 767px) {
  .dock { right: 16px; bottom: 16px; width: 70px; height: 70px; }
  .panel { right: 10px; left: 10px; width: auto; bottom: 98px; max-height: calc(100vh - 124px); }
  .dock-mini { right: 80px; top: 13px; }
  .dock-logo { width: 48px; }
  .dock-sat { height: 50px; font-size: 15px; bottom: 9px; right: 3px; }
  .dock.open .dock-sat { transform: translateY(calc(-70px - var(--i) * 60px)); }
  .mini-title { max-width: 110px; }
  .tabs button { padding: 8px 8px; font-size: 12px; gap: 5px; }
  .panel-head { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .playing .dock-disc { animation: none; }
  .dock-sat, .panel, .dock-main { transition: none; }
}

/* Player list: Spotify popularity order, rank number, Spotify-only rows open Spotify */
.tracks-head { margin: 18px 0 4px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; }
.tracks { margin-top: 6px; }
.tracks em { width: 18px; flex: none; font-style: normal; font-size: 13px; text-align: right; opacity: 0.5; font-variant-numeric: tabular-nums; }
.tracks .sp-only { display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: 12px; color: inherit; text-decoration: none; }
.tracks .sp-only:hover { background: rgba(30, 215, 96, 0.08); }
.tracks .sp-only > svg { width: 20px; height: 20px; flex: none; }
.tracks .sp-only span { opacity: 0.85; }
.tracks b .plays { display: inline; font-size: 12px; opacity: 0.5; font-variant-numeric: tabular-nums; margin-left: 2px; }

/* Thin Canva lines always sit under photos; text and buttons stay on top */
.stage .el.clip, .stage video.el { z-index: 1; }
.stage .el.txt, .stage .btn-frame, .stage .social, .stage .events, .stage .vgrid, .stage .reviews, .stage .hero-yt { z-index: 2; }

/* "Sīkāka info drīzumā": a quiet tag instead of a link-looking line */
.ev-btn.soon { display: inline-flex; align-items: center; gap: 0.6vw; padding: 0.45vw 0.9vw; border: 1px solid rgba(3, 4, 5, 0.18); border-radius: 99px;
  font-size: 0.8vw; letter-spacing: 0.14em; opacity: 1; color: rgba(3, 4, 5, 0.6); }
.ev-btn.soon::before { content: ""; width: 0.45vw; height: 0.45vw; border-radius: 50%; background: #e0a050; animation: pulse 1.8s ease-in-out infinite; }
.ev:hover .ev-btn.soon { color: rgba(255, 249, 238, 0.75); border-color: rgba(255, 249, 238, 0.3); }
.mob .ev-btn.soon { gap: 2vw; padding: 1.6vw 3vw; font-size: 2.6vw; }
.mob .ev-btn.soon::before { width: 1.6vw; height: 1.6vw; }
@keyframes pulse { 50% { opacity: 0.35; } }
/* Videos YouTube won't play embedded keep a slow-moving still */
.vcard[data-noembed] .vthumb img { animation: kb 9s ease-in-out infinite alternate; }

/* Video cards: the kind is the big highlighted line, the song the small one, the year sits on the picture */
.vcap { display: flex; flex-direction: column; gap: 0.35vw; padding-top: 1vw; }
.vcap b { order: 0; margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2.1vw; line-height: 1; text-transform: uppercase; letter-spacing: -0.04em; color: #fff9ee; }
.vcap small { order: 1; display: block; font-size: 0.85vw; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; }
.vcard:hover .vcap b { color: #e9c99a; }
.vyear { position: absolute; z-index: 1; left: 0.8vw; top: 0.8vw; padding: 0.25vw 0.7vw; border-radius: 99px; background: rgba(19, 8, 14, 0.75);
  color: #fff9ee; font-size: 0.85vw; letter-spacing: 0.12em; backdrop-filter: blur(6px); }
.mob .vcap { gap: 1vw; padding-top: 2.2vw; }
.mob .vcap b { font-size: 5.2vw; }
.mob .vcard:first-child .vcap b { font-size: 7vw; }
.mob .vcap small { font-size: 2.6vw; }
.mob .vyear { left: 2vw; top: 2vw; padding: 0.8vw 2vw; font-size: 2.6vw; }
