/* =====================================================================
   "Apie areną" page (Figma node 135:1355, 1440 frame)
   Desktop: the photo/note collage is a 1440 × 1040 stage in Figma px,
   centered and scaled down as one piece between 1200 and 1440px.
   Below 1200px the collage becomes a single column.
   Font sizes are plain px. Loaded only on the "Apie areną" page.
   ===================================================================== */

.page-about .page {
  max-width: none;
}
.page-about {
  --ink: #212121;
  --paper: #d8d8d8;
  --note: #e9e9e9;
  --dash: #cfcfcf;
  /* torn note outline (stretched to the note) */
  --note-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none'%3E%3Cpath d='M0 2.1C1.1 1 5.3 2 8 1.9C10.7 1.9 13.3 1.8 16 1.8C18.7 1.7 21.3 1.6 24 1.5C26.7 1.4 29.3 1.3 32 1.3C34.7 1.2 37.3 1.1 40 1.1C42.7 1.1 45.3 1.1 48 1.1C50.7 1.2 53.3 1.2 56 1.3C58.7 1.4 61.3 1.6 64 1.7C66.7 1.8 69.3 1.9 72 2C74.7 2.1 77.3 2.1 80 2.2C82.7 2.2 85.3 2.2 88 2.1C90.7 2.1 93.3 2 96 1.9C98.7 1.8 101.3 1.6 104 1.5C106.7 1.3 109.3 1.2 112 1.1C114.7 1 117.3 0.9 120 0.8C122.7 0.8 125.3 0.8 128 0.8C130.7 0.8 133.3 0.9 136 0.9C138.7 1 141.3 1.1 144 1.2C146.7 1.3 149.3 1.4 152 1.4C154.7 1.5 157.3 1.5 160 1.5C162.7 1.5 165.3 1.5 168 1.5C170.7 1.4 173.3 1.4 176 1.3C178.7 1.3 181.3 1.2 184 1.2C186.7 1.1 189.3 1.1 192 1C194.7 1 197.3 1 200 1C202.7 1 205.3 1 208 1C210.7 1 213.3 1 216 1C218.7 0.9 221.3 0.9 224 0.8C226.7 0.8 229.3 0.7 232 0.6C234.7 0.5 237.3 0.4 240 0.3C242.7 0.2 245.3 0.1 248 0C250.7 -0.1 253.3 -0.1 256 -0.1C258.7 -0.1 261.3 -0.1 264 0C266.7 0.1 269.3 0.2 272 0.4C274.7 0.5 277.3 0.7 280 0.9C282.7 1 285.3 1.2 288 1.3C290.7 1.5 293.3 1.6 296 1.7C298.7 1.7 301.3 1.8 304 1.8C306.7 1.8 309.3 1.7 312 1.7C314.7 1.6 317.3 1.5 320 1.5C322.7 1.4 325.3 1.4 328 1.3C330.7 1.3 333.3 1.3 336 1.4C338.7 1.4 341.3 1.5 344 1.6C346.7 1.6 349.3 1.8 352 1.9C354.7 2 357.3 2.2 360 2.3C362.7 2.4 365.3 2.5 368 2.6C370.7 2.7 373.3 2.8 376 2.9C378.7 2.9 381.3 2.9 384 3C386.7 3 389.3 3 392 3C394.7 3.1 397.3 3.1 400 3.1C402.7 3.2 405.3 3.2 408 3.3C410.7 3.3 413.3 3.4 416 3.4C418.7 3.5 421.3 3.5 424 3.6C426.7 3.6 429.3 3.6 432 3.5C434.7 3.5 437.3 3.4 440 3.3C442.7 3.2 445.3 3.1 448 2.9C450.7 2.8 453.3 2.6 456 2.5C458.7 2.3 461.3 2.1 464 2C466.7 1.9 469.3 1.8 472 1.7C474.7 1.6 477.3 1.6 480 1.6C482.7 1.6 485.3 1.7 488 1.7C490.7 1.8 493.3 1.9 496 2C498.7 2 501.3 2.1 504 2.1C506.7 2.1 509.3 2.1 512 2.1C514.7 2.1 517.3 2 520 1.9C522.7 1.8 525.3 1.6 528 1.5C530.7 1.3 533.3 1.2 536 1C538.7 0.9 541.3 0.8 544 0.7C546.7 0.6 549.3 0.5 552 0.4C554.7 0.4 557.3 0.4 560 0.4C562.7 0.4 565.3 0.4 568 0.4C570.7 0.4 573.3 0.5 576 0.5C578.7 0.5 581.3 0.5 584 0.5C586.7 0.5 589.3 0.5 592 0.5C594.7 0.5 598.7 -0.8 600 0.5C601.3 1.7 599.6 5.4 599.5 8C599.5 10.6 599.5 13.3 599.6 16C599.7 18.7 599.8 21.3 599.9 24C600 26.7 600.2 29.3 600.3 32C600.3 34.7 600.4 37.3 600.3 40C600.3 42.7 600.1 45.3 600 48C599.8 50.7 599.6 53.3 599.5 56C599.4 58.7 599.3 61.3 599.3 64C599.2 66.7 599.3 69.3 599.4 72C599.4 74.7 599.5 77.3 599.4 80C599.3 82.7 599.2 85.3 598.9 88C598.6 90.7 598.2 93.3 597.8 96C597.5 98.7 597 101.3 596.7 104C596.5 106.7 596.3 109.3 596.2 112C596.2 114.7 596.4 117.3 596.6 120C596.7 122.7 597.1 125.3 597.2 128C597.4 130.7 597.6 133.3 597.6 136C597.6 138.7 597.5 141.3 597.4 144C597.3 146.7 597.1 149.3 597 152C596.9 154.7 596.9 157.3 596.9 160C597 162.7 597.2 165.3 597.4 168C597.6 170.7 597.9 173.3 598.2 176C598.4 178.7 598.6 181.3 598.7 184C598.8 186.7 598.9 189.3 598.9 192C599 194.7 599 197.3 599 200C599.1 202.7 599.2 205.3 599.4 208C599.5 210.7 599.7 213.3 599.9 216C600 218.7 600.2 221.3 600.2 224C600.2 226.7 600 229.3 599.9 232C599.7 234.7 599.4 237.3 599.2 240C598.9 242.7 598.7 245.3 598.6 248C598.5 250.7 598.5 253.3 598.6 256C598.6 258.7 598.9 261.3 599.1 264C599.2 266.7 599.4 269.3 599.4 272C599.5 274.7 599.4 277.3 599.2 280C599 282.7 598.6 285.3 598.3 288C598 290.7 597.6 293.3 597.4 296C597.2 298.7 597.1 301.3 597.1 304C597.1 306.7 597.2 309.3 597.4 312C597.5 314.7 597.7 317.3 597.9 320C598 322.7 598.1 325.3 598.1 328C598.1 330.7 597.9 333.3 597.9 336C597.8 338.7 597.7 341.3 597.7 344C597.6 346.7 597.7 349.3 597.7 352C597.8 354.7 598 357.3 598.1 360C598.1 362.7 598.3 365.3 598.3 368C598.3 370.7 598.2 373.3 598.1 376C598.1 378.7 597.9 381.3 597.8 384C597.8 386.7 597.7 389.3 597.8 392C597.9 394.7 599.3 399.6 598.3 400C597.4 400.4 594.4 395.2 592 394.2C589.6 393.3 586.7 394.3 584 394.4C581.3 394.5 578.7 394.6 576 394.6C573.3 394.7 570.7 394.8 568 394.8C565.3 394.9 562.7 394.9 560 395C557.3 395 554.7 395.1 552 395.2C549.3 395.3 546.7 395.4 544 395.5C541.3 395.7 538.7 395.8 536 396.1C533.3 396.3 530.7 396.6 528 396.9C525.3 397.2 522.7 397.6 520 397.9C517.3 398.3 514.7 398.7 512 399.1C509.3 399.5 506.7 399.9 504 400.2C501.3 400.5 498.7 400.8 496 401C493.3 401.2 490.7 401.4 488 401.4C485.3 401.5 482.7 401.4 480 401.3C477.3 401.1 474.7 400.9 472 400.5C469.3 400.2 466.7 399.8 464 399.3C461.3 398.9 458.7 398.4 456 397.9C453.3 397.4 450.7 396.8 448 396.4C445.3 395.9 442.7 395.5 440 395.1C437.3 394.8 434.7 394.5 432 394.3C429.3 394.1 426.7 394 424 393.9C421.3 393.9 418.7 393.9 416 394C413.3 394.1 410.7 394.2 408 394.4C405.3 394.6 402.7 394.8 400 395C397.3 395.1 394.7 395.3 392 395.5C389.3 395.6 386.7 395.8 384 395.9C381.3 396 378.7 396 376 396.1C373.3 396.1 370.7 396.1 368 396.2C365.3 396.2 362.7 396.2 360 396.2C357.3 396.3 354.7 396.3 352 396.4C349.3 396.5 346.7 396.6 344 396.8C341.3 397 338.7 397.2 336 397.4C333.3 397.7 330.7 398 328 398.3C325.3 398.6 322.7 398.9 320 399.2C317.3 399.4 314.7 399.7 312 399.9C309.3 400.1 306.7 400.2 304 400.3C301.3 400.3 298.7 400.3 296 400.2C293.3 400.1 290.7 399.8 288 399.6C285.3 399.3 282.7 398.9 280 398.5C277.3 398.2 274.7 397.7 272 397.3C269.3 396.9 266.7 396.4 264 396C261.3 395.7 258.7 395.3 256 395.1C253.3 394.8 250.7 394.6 248 394.6C245.3 394.5 242.7 394.5 240 394.6C237.3 394.7 234.7 394.8 232 395.1C229.3 395.3 226.7 395.6 224 395.8C221.3 396.1 218.7 396.4 216 396.7C213.3 396.9 210.7 397.2 208 397.4C205.3 397.5 202.7 397.7 200 397.7C197.3 397.8 194.7 397.7 192 397.7C189.3 397.6 186.7 397.4 184 397.3C181.3 397.1 178.7 396.9 176 396.7C173.3 396.5 170.7 396.3 168 396.2C165.3 396 162.7 395.9 160 395.9C157.3 395.8 154.7 395.8 152 395.9C149.3 395.9 146.7 396.1 144 396.2C141.3 396.4 138.7 396.6 136 396.9C133.3 397.1 130.7 397.4 128 397.6C125.3 397.8 122.7 398 120 398.2C117.3 398.3 114.7 398.4 112 398.5C109.3 398.5 106.7 398.5 104 398.4C101.3 398.3 98.7 398.2 96 398C93.3 397.8 90.7 397.5 88 397.3C85.3 397.1 82.7 396.8 80 396.6C77.3 396.5 74.7 396.3 72 396.2C69.3 396.1 66.7 396 64 396C61.3 396.1 58.7 396.2 56 396.4C53.3 396.5 50.7 396.8 48 397C45.3 397.3 42.7 397.6 40 397.9C37.3 398.1 34.7 398.4 32 398.7C29.3 398.9 26.7 399.1 24 399.2C21.3 399.2 18.7 399.3 16 399.2C13.3 399.1 10.7 398.9 8 398.6C5.3 398.4 0.9 398.8 0 397.7C-0.9 396.5 2.1 394.3 2.4 392C2.7 389.7 2.1 386.7 1.9 384C1.8 381.3 1.6 378.7 1.5 376C1.4 373.3 1.3 370.7 1.2 368C1.1 365.3 1 362.7 0.9 360C0.8 357.3 0.7 354.7 0.7 352C0.6 349.3 0.5 346.7 0.5 344C0.4 341.3 0.4 338.7 0.4 336C0.4 333.3 0.4 330.7 0.4 328C0.5 325.3 0.6 322.7 0.7 320C0.8 317.3 1 314.7 1.1 312C1.3 309.3 1.5 306.7 1.7 304C1.8 301.3 2 298.7 2.2 296C2.3 293.3 2.4 290.7 2.5 288C2.6 285.3 2.6 282.7 2.6 280C2.6 277.3 2.6 274.7 2.6 272C2.5 269.3 2.4 266.7 2.4 264C2.3 261.3 2.2 258.7 2.1 256C2.1 253.3 2 250.7 2 248C2 245.3 2 242.7 2 240C2 237.3 2 234.7 2 232C2 229.3 2 226.7 2 224C1.9 221.3 1.8 218.7 1.7 216C1.6 213.3 1.4 210.7 1.2 208C1.1 205.3 0.8 202.7 0.6 200C0.4 197.3 0.2 194.7 0.1 192C-0.1 189.3 -0.2 186.7 -0.3 184C-0.3 181.3 -0.3 178.7 -0.2 176C-0.1 173.3 0.1 170.7 0.4 168C0.6 165.3 0.9 162.7 1.3 160C1.6 157.3 2 154.7 2.3 152C2.6 149.3 2.9 146.7 3.1 144C3.4 141.3 3.5 138.7 3.6 136C3.7 133.3 3.6 130.7 3.5 128C3.4 125.3 3.2 122.7 3 120C2.8 117.3 2.5 114.7 2.3 112C2.1 109.3 1.8 106.7 1.6 104C1.4 101.3 1.2 98.7 1.1 96C1 93.3 0.9 90.7 0.9 88C0.9 85.3 1 82.7 1 80C1.1 77.3 1.2 74.7 1.3 72C1.3 69.3 1.4 66.7 1.4 64C1.4 61.3 1.4 58.7 1.4 56C1.3 53.3 1.2 50.7 1.1 48C1 45.3 0.9 42.7 0.7 40C0.6 37.3 0.5 34.7 0.5 32C0.4 29.3 0.4 26.7 0.4 24C0.5 21.3 0.6 18.7 0.7 16C0.9 13.3 1.5 10.3 1.4 8C1.2 5.7 -1.1 3.1 0 2.1Z'/%3E%3C/svg%3E");
  /* one binder hole: circle + slit to the top edge (repeated along the note) */
  --note-hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 46'%3E%3Cpath d='M15.4 -2H22.4L21 17.2A14 14 0 1 1 17 17.2Z'/%3E%3C/svg%3E");
}

/* ---------- section + paper background ---------- */
.about {
  --pu: var(--u); /* page scale unit (header/logo) */
  position: relative;
  z-index: 2;
  color: var(--ink);
  padding-bottom: 60px;
}
.about-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("../images/shapes/tickets-lines.svg") 0 calc(330 * var(--u)) / 100%
      auto no-repeat,
    url("../images/backgrounds/page-texture.png") 0 0 / calc(728 * var(--u))
      auto repeat,
    var(--paper);
  background-blend-mode: normal, overlay, normal;
  /* torn paper: logo tab top-left, wavy top (same as the booking page) */
  clip-path: polygon(
    0 calc(272 * var(--u)),
    calc(285 * var(--u)) calc(268 * var(--u)),
    calc(311 * var(--u)) calc(257 * var(--u)),
    calc(322 * var(--u)) calc(232 * var(--u)),
    calc(325 * var(--u)) calc(150 * var(--u)),
    calc(333 * var(--u)) calc(117 * var(--u)),
    calc(352 * var(--u)) calc(103 * var(--u)),
    calc(430 * var(--u)) calc(98 * var(--u)),
    calc(520 * var(--u)) calc(104 * var(--u)),
    calc(610 * var(--u)) calc(96 * var(--u)),
    calc(705 * var(--u)) calc(102 * var(--u)),
    calc(800 * var(--u)) calc(95 * var(--u)),
    calc(905 * var(--u)) calc(101 * var(--u)),
    calc(1000 * var(--u)) calc(94 * var(--u)),
    calc(1105 * var(--u)) calc(100 * var(--u)),
    calc(1200 * var(--u)) calc(95 * var(--u)),
    calc(1305 * var(--u)) calc(101 * var(--u)),
    100% calc(96 * var(--u)),
    100% 100%,
    0 100%
  );
}

/* ---------- 1440 stage ---------- */
.about-inner {
  max-width: 1440px;
  margin: 0 auto;
  container-type: inline-size;
}
.about-stage {
  /* scale factor: container width / 1440, never above 1 */
  --k: min(1, tan(atan2(100cqw, 1440px)));
  /* above 1440 the header/logo tab keeps growing: move the collage down by the extra height */
  --shift: max(0px, calc(272 * var(--pu) - 272px));
  position: relative;
  width: 1440px;
  height: 1040px;
  margin-top: var(--shift);
  margin-bottom: calc(1040px * var(--k) - 1040px);
  transform: scale(var(--k));
  transform-origin: 0 0;
}
.about-stage > * {
  position: absolute;
  margin: 0;
}

/* photos (cut-outs exported at 2x; sizes and positions in Figma px) */
.about-photo {
  display: block;
  height: auto;
  pointer-events: none;
}
.about-photo--hall {
  left: 997.5px;
  top: 171px;
  width: 397px;
  z-index: 1;
}
.about-photo--wall {
  left: 659px;
  top: 749.5px;
  width: 369.5px;
  z-index: 1;
}
.about-photo--lanes {
  left: 150px;
  top: 283px;
  width: 389.5px;
  z-index: 4;
}
.about-photo--airbag {
  left: 951px;
  top: 630.5px;
  width: 295px;
  z-index: 4;
}

/* ---------- title ---------- */
.about-title {
  left: 566px;
  top: 240px;
  z-index: 3;
  transform: rotate(-7deg);
  transform-origin: left top;
  font-family: Bungee, sans-serif;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.about-title h1 {
  margin: 0;
  font-weight: 400;
}
.about-title__area {
  display: block;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.about-title__unit {
  margin-left: 8px;
  font-size: 56px;
  vertical-align: 12px;
  text-transform: uppercase;
}
.about-title__text {
  display: block;
  margin-top: 1px;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
}
.about-title__address {
  margin: 28px 0 0 -2px;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- notes (torn paper with binder holes) ---------- */
.about-note {
  z-index: 2;
  box-sizing: border-box;
  padding: 0 19px; /* hole row runs inside the side padding */
  background:
    url("../images/backgrounds/page-texture.png") 0 0 / 728px auto repeat,
    var(--note);
  background-blend-mode: soft-light, normal;
  -webkit-mask:
    var(--note-edge) 0 0 / 100% 100% no-repeat border-box border-box,
    var(--note-hole) 0 -2px / 38px 46px round no-repeat content-box content-box;
  -webkit-mask-composite: source-out;
  mask:
    var(--note-edge) 0 0 / 100% 100% no-repeat border-box border-box subtract,
    var(--note-hole) 0 -2px / 38px 46px round no-repeat content-box content-box;
}
/* dashed tear line under the holes */
.about-note::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 0;
  top: 71px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--dash) 0 14.5px,
    transparent 14.5px 24.5px
  );
  border-radius: 2px;
  transform: rotate(0.12deg);
}
.about-note--intro {
  left: 808px;
  top: 426px;
  width: 480px;
  height: 256px;
}
.about-note--intro p {
  margin: 113px 0 0 12px;
  font: 400 18px/27px Bungee, sans-serif;
  text-transform: uppercase;
}
.about-note--list {
  left: 67px;
  top: 545px;
  width: 612px;
  height: 412px;
}
.about-note--list h2 {
  margin: 102px 0 14px 17px;
  font: 400 18px/1.2 Bungee, sans-serif;
  text-transform: uppercase;
}
.about-note--list ul {
  margin: 0;
  padding: 0 10px 0 44px;
  font: 700 17px/22px Montserrat, Arial, sans-serif;
}
.about-note--list li + li {
  margin-top: 11px;
}

/* ---------- tapes over the paper's bottom edge ---------- */
.about-tapes.tapes {
  position: absolute;
  inset: auto 0 calc(-240 * var(--u));
  height: calc(260 * var(--u));
  margin: 0;
  z-index: 4;
  pointer-events: none;
}

.page-about .ask {
  margin-top: calc(230 * var(--u));
}

/* =====================================================================
   Below 1200px: single column (no separate Figma frame for this yet)
   ===================================================================== */
@media (max-width: 1199px) {
  .about-inner {
    max-width: 680px;
    padding: 200px 16px 0;
    container-type: normal;
  }
  .about-stage {
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    margin: 0;
    transform: none;
  }
  .about-stage > * {
    position: relative;
    left: auto;
    top: auto;
  }
  .about-photo--hall,
  .about-photo--wall {
    display: none;
  }
  .about-title {
    order: 1;
    align-self: center;
    margin: 20px 0 30px -20px;
  }
  .about-note--intro {
    order: 2;
    width: 100%;
    height: auto;
    padding-bottom: 50px;
  }
  .about-photo--lanes {
    order: 3;
    align-self: flex-start;
    width: min(390px, 80%);
    margin: 28px 0 -70px 4%;
  }
  .about-note--list {
    order: 4;
    width: 100%;
    height: auto;
    padding-bottom: 46px;
  }
  .about-photo--airbag {
    order: 5;
    align-self: flex-end;
    width: min(295px, 64%);
    margin: -36px 4% 0 0;
  }
  .about-tapes.tapes {
    bottom: -140px;
  }
  .page-about .ask {
    margin-top: 140px;
  }
}

/* small desktops: the scaled logo is ~157-217px tall */
@media (min-width: 901px) and (max-width: 1199px) {
  .about-inner {
    padding-top: calc(270 * var(--pu) + 24px);
  }
}

/* phones */
@media (max-width: 600px) {
  .about-inner {
    padding-top: 190px;
  }
  .about-paper {
    clip-path: polygon(
      0 176px,
      14% 172px,
      30% 178px,
      47% 171px,
      63% 177px,
      80% 172px,
      100% 176px,
      100% 100%,
      0 100%
    );
  }
  .about-title {
    margin: 36px 0 26px -10px;
  }
  .about-title__area {
    font-size: 54px;
  }
  .about-title__unit {
    font-size: 32px;
    vertical-align: 8px;
  }
  .about-title__text {
    font-size: 24px;
  }
  .about-title__address {
    font-size: 18px;
  }
  .about-note--intro p {
    margin-left: 4px;
    font-size: 16px;
    line-height: 24px;
  }
  .about-note--list h2 {
    margin-left: 4px;
    font-size: 16px;
  }
  .about-note--list ul {
    padding-left: 24px;
    font-size: 15px;
    line-height: 20px;
  }
}
