/* The first visit's story (templates/public/_story.html, static/js/story.js; loaded after tamsme.css by
   public/home.html, so these rules win over the older ones there).

   Yana, 2026-11-24, redone after deckerj.com's "Many hats, one job" section: one soft ombre ground the
   whole way (`.story-bg`, like crm.bamya.co's first scroll animation), the chosen event filling it as
   the background, no frame; the steps are labels in a row, the one we are on lit, a two-word label on
   two lines; each step's own thing comes in front of the event (the scene); "Ясно, не показвай пак"
   at the very bottom. */

/* The handwritten note's font (Caveat, with Cyrillic; OFL, static/fonts/LICENSE-caveat.txt). */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/caveat-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/caveat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.story-step-1 { --st: #0b8573; --st-tint: #e6faf5; }
.story-step-2 { --st: #b45309; --st-tint: #fff3df; }
.story-step-3 { --st: #5636c7; --st-tint: #f0ebff; }
.story-step-4 { --st: #0369a1; --st-tint: #e3f2fc; }
.story-step-5 { --st: #0b8573; --st-tint: #e6faf5; }
.story-step-6 { --st: #be185d; --st-tint: #fdeaf3; }

/* ------------------------------------------------------------------ the soft ombre ground
   Behind the card, over the faded list (story.js toggles `is-on`). Fixed, so it is the still ground
   while the scene plays on it; the top bar (the filter navigation) paints over it, staying in view.
   The same ombre as the first scroll animation on crm.bamya.co: thin mint lines, two soft glows. */
.story-bg { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; opacity: 0; pointer-events: none;
  transition: opacity .55s ease;
  background:
    linear-gradient(180deg, #fff 0, rgba(255, 255, 255, 0) 32%),
    repeating-linear-gradient(90deg, rgba(11, 133, 115, .08) 0 1px, transparent 1px 7px),
    radial-gradient(1100px 560px at 26% 102%, #dcf7ef, rgba(220, 247, 239, 0) 70%),
    radial-gradient(1100px 560px at 76% 102%, #e9e2fd, rgba(233, 226, 253, 0) 70%),
    #f6fdfb; }
.story-bg.is-on { opacity: 1; }

/* ------------------------------------------------------------------ the labels row
   Held above the card. A label per step; a two-word label on two lines. The one we are on is lit: its
   pill filled, its icon in its colour and a touch turned (deckerj); the ones before plain, the ones
   to come pale. A thin line between pills fills once the step is passed. */
.story { left: 0; right: 0; }
.story-panel { align-items: center; text-align: center; padding: 2px 0 4px; max-height: none; overflow: visible; background: transparent; }
.story-steps { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: stretch;
  margin: 0 auto; padding: 0; list-style: none; }
.story-step { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 7px; border-radius: 999px;
  border: 1.5px solid transparent; background: transparent; box-shadow: none; color: #aab0b8;
  transition: color .4s ease, background-color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.st-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: inherit;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 24, 32, .08);
  transition: color .4s ease, background-color .4s ease, box-shadow .4s ease, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.st-icon svg { display: block; width: 17px; height: 17px; }
.st-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.02; text-align: left; }
.st-label b { font-size: clamp(13px, 1vw, 14.5px); font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.st-label i { font-size: clamp(13px, 1vw, 14.5px); font-weight: 700; font-style: normal; letter-spacing: -.015em; white-space: nowrap; }
.story-step.is-on { color: #596069; }
.story-step.is-now { color: var(--st); background: #fff; border-color: var(--st);
  box-shadow: 0 3px 0 var(--st), 0 10px 22px -12px rgba(16, 24, 32, .4); transform: rotate(-1.4deg); }
.story-step.is-now .st-icon { color: #fff; background: var(--st); box-shadow: none; transform: rotate(-8deg) scale(1.06); }
.story-step.is-now .st-label b { color: var(--ink); }
.story-step.is-now .st-label i { color: var(--dim); }
/* Between two labels, outside them, a short line that fills ("loads") once the step is passed (Yana,
   2026-11-24, as deckerj's row). */
.story-steps .st-bar { position: relative; align-self: center; flex: none; width: 22px; height: 3px; margin: 0 4px; border-radius: 3px;
  background: #dfe4e8; overflow: hidden; }
.story-steps .st-bar b { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s cubic-bezier(.6, .05, .3, 1); }
.story-step.is-on:not(.is-now) + .st-bar b { transform: scaleX(1); }
/* Where the row has not room for all its words (a narrower computer): the icons all, the words of the
   one we are on only, so it never wraps or runs under the edges. */
.story-flow, .story-panel { container-type: inline-size; }
@media (min-width: 960px) {
  @container (max-width: 1080px) {
    .story-step:not(.is-now) .st-label { display: none; }
    .story-step:not(.is-now) { padding: 7px; }
  }
}

/* ------------------------------------------------------------------ the acting card: the background
   1: it glides to the middle and grows to fill the screen (story.js), becoming its wide self
   (`.st-event`); a gentle pop as it is chosen (no frame, owner). From 2 on it stays behind the scene. */
.upcoming .rows > li.st-stage { transition: opacity .5s ease; }
.st-stage.st-pop { animation: st-pop .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes st-pop { 0% { translate: 0 0; } 34% { translate: 0 -8px; } 62% { translate: 0 0; } 82% { translate: 0 -2px; } 100% { translate: 0 0; } }

/* The rectangle (Yana, 2026-11-24: "цялото в един правоъгълник както е на примерите"): the card grows
   into it (story.js cuts the card to the rectangle with a clip, so one shape is seen all the way) and
   the event fills it as the card Yana sent shows an event: its picture across the top, under it the
   day, the title, the organiser, the place and the two buttons. Every length is the rectangle's own
   (cqw), so any card, grown by any much, draws the same. */
.upcoming .rows > li.st-stage.st-grown { overflow: visible; border-color: transparent; box-shadow: none; }
.st-looks { position: absolute; left: 0; right: 0; top: 0; z-index: 4; pointer-events: none; visibility: hidden;
  transition: opacity .5s ease; }
.st-looks::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: var(--ground, 0); }
.st-leaving .st-looks { opacity: 0; }
.st-covered > :not(.st-looks) { visibility: hidden; }
.st-look { position: absolute; inset: 0; overflow: hidden; opacity: 0; container-type: size; }
.st-look b { font-weight: 700; }
.st-event { display: flex; flex-direction: column; background: #fff; color: var(--ink); text-align: left; }
.ev2-pic { flex: 1 1 0; display: grid; place-items: center; min-height: 0; overflow: hidden;
  background: linear-gradient(135deg, #a78bfa, #38d9be); color: #fff; font-size: 8cqw; font-weight: 800; letter-spacing: -.03em; }
.ev2-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev2-words { flex: none; display: flex; flex-direction: column; gap: .7cqw; min-width: 0; padding: 2.2cqw 3cqw 2.6cqw; }
.ev2-when { font-size: 2cqw; font-weight: 700; color: var(--ink-2); }
.ev2-title { font-size: 2.9cqw; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev2-org { display: flex; align-items: center; gap: .8cqw; font-size: 1.65cqw; color: var(--dim); white-space: nowrap; overflow: hidden; }
.ev2-org:has([data-fill="org"][hidden]) { display: none; }
.ev2-org-pic { display: inline-grid; place-items: center; flex: none; width: 2.4cqw; height: 2.4cqw; overflow: hidden; border-radius: 50%;
  background: #e8ecef; font-size: 1cqw; font-weight: 700; color: #5b6470; }
.ev2-org-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev2-place { font-size: 1.65cqw; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev2-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw; margin-top: 1cqw; }
.ev2-btns i { padding: 1.25cqw 0; border-radius: 999px; border: .12cqw solid var(--line-strong); text-align: center; font-style: normal;
  font-size: 1.8cqw; font-weight: 600; color: var(--ink); background: #fff; }
@media (max-width: 959px) {
  .ev2-words { gap: 1.6cqw; padding: 4cqw 4.4cqw 5cqw; }
  .ev2-when { font-size: 3.9cqw; }
  .ev2-title { font-size: 5cqw; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ev2-org, .ev2-place { font-size: 3.4cqw; }
  .ev2-org-pic { width: 5cqw; height: 5cqw; font-size: 2cqw; }
  .ev2-btns { gap: 2.4cqw; margin-top: 2cqw; }
  .ev2-btns i { padding: 2.8cqw 0; font-size: 3.7cqw; border-width: 1px; }
}
/* 2: the "Ще отида" button grows and glows, drawing the eye; it fades as the картичка grows from it. */
.ev2-going { position: relative; z-index: 1; transform: scale(calc(1 + .14 * var(--go, 0))); opacity: var(--gofade, 1);
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease; }
.st-event.is-confirm .ev2-going { border-color: var(--mint); background: var(--mint-tint); color: var(--mint-deep);
  box-shadow: 0 0 0 calc(.5cqw * var(--go, 0)) rgba(56, 217, 190, .3), 0 1cqw 2.2cqw -1.2cqw rgba(7, 94, 81, .7); }
.st-event.is-confirm .ev2-btns i:not(.ev2-going) { opacity: .4; }

/* ------------------------------------------------------------------ the scene, inside the rectangle
   story.js lays the wrap exactly over the rectangle (it clips at its edges: what flies in comes from
   them, nothing leaves it; its shadow is the rectangle's) and moves each thing with transforms and
   opacity only. The sizes are the rectangle's own units, so a computer and a phone hold one drawing. */
.st-wrap { --in: 0; position: absolute; z-index: 7; pointer-events: none; overflow: hidden; overflow: clip; visibility: hidden;
  box-shadow: 0 0 0 1px rgba(12, 14, 16, calc(.07 * var(--in))), 0 40px 80px -44px rgba(12, 14, 16, calc(.55 * var(--in))),
    0 12px 28px -18px rgba(12, 14, 16, calc(.3 * var(--in))); }
.story.is-on .st-wrap { visibility: visible; }
.story.is-done .st-wrap { opacity: 0; transition: opacity .4s ease; }
.st-scene { position: absolute; inset: 0; container-type: size; }
.sc-veil { position: absolute; inset: 0; background: #fff; opacity: 0; }
.sc-prop { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transform-origin: 50% 50%; container-type: inline-size; }
.st-avatar { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: #e8ecef; }
.st-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-qr { display: block; flex: none; }
.st-qr svg { display: block; width: 100%; height: 100%; }

/* 3: the "Там съм!" картичка, its light style as static/js/kit.js draws it on 1080 x 1350 (every
   length below the kit's own, over 10.8: one `cqw` is ten of the kit's pixels). */
.sc-share { width: min(70cqh, 74cqw); aspect-ratio: 4 / 5; }
.sk-face { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; padding: 7cqw; border-radius: 3.2cqw;
  color: #15171a; text-align: left;
  background:
    linear-gradient(180deg, #fff, rgba(255, 255, 255, 0) 34%),
    repeating-linear-gradient(90deg, rgba(11, 133, 115, .09) 0 .19cqw, transparent .19cqw 1.11cqw),
    radial-gradient(83cqw 52cqw at 26% 104%, #c9f3e8, rgba(201, 243, 232, 0)),
    radial-gradient(83cqw 52cqw at 80% 104%, #ddd3fc, rgba(221, 211, 252, 0)),
    #f4fdfb;
  box-shadow: 0 0 0 1px rgba(12, 14, 16, .06), 0 34px 60px -30px rgba(12, 14, 16, .55), 0 10px 24px -14px rgba(12, 14, 16, .25); }
.sk-top { display: flex; align-items: flex-start; justify-content: space-between; }
.sk-pill { display: inline-flex; align-items: center; gap: 1.3cqw; height: 5.9cqw; padding: 0 2.4cqw 0 1.9cqw; border-radius: 999px;
  background: #fff; border: .19cqw solid #e7e9ec; font-size: 2.8cqw; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.sk-pill em { font-style: normal; font-weight: 500; color: #0b8573; }
.sk-dot { flex: none; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #38d9be; box-shadow: 0 0 0 .5cqw rgba(56, 217, 190, .25); }
.sk-by { display: flex; flex-direction: column; align-items: flex-end; font-size: 2cqw; line-height: 1.3; color: #5b6470; }
.sk-by b { font-size: 2.6cqw; font-weight: 600; color: #15171a; }
.sk-head { margin: 4cqw 0 0 -.8cqw; font-size: 19cqw; line-height: .9; font-weight: 600; letter-spacing: -.05em; }
.sk-event { display: flex; flex-direction: column; gap: 1cqw; margin-top: auto; padding: 3.5cqw 4.1cqw; border-radius: 2.8cqw; background: #fff;
  border: .19cqw solid #e4e7ea; box-shadow: 0 2.4cqw 5.6cqw -2.4cqw rgba(16, 40, 50, .18); min-width: 0; }
.sk-tag { font-size: 2.4cqw; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #0b8573; }
.sk-title { font-size: 5.9cqw; line-height: 1.07; font-weight: 600; letter-spacing: -.03em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-when { font-size: 2.8cqw; color: #5b6470; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-org { display: flex; align-items: center; gap: 1.5cqw; margin-top: .6cqw; font-size: 2.4cqw; font-weight: 500; color: #5b6470;
  white-space: nowrap; overflow: hidden; }
.sk-org:has([data-fill="org"][hidden]) { display: none; }
.sk-org-pic { display: inline-grid; place-items: center; flex: none; width: 4.4cqw; height: 4.4cqw; overflow: hidden; border-radius: 50%;
  background: #e8ecef; font-size: 1.8cqw; font-weight: 700; color: #5b6470; }
.sk-org-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sk-person { display: flex; align-items: center; gap: 2.8cqw; margin-top: 4.4cqw; min-width: 0; }
.sk-person .st-avatar { width: 11.8cqw; height: 11.8cqw; box-shadow: 0 0 0 .6cqw #fff; }
.sk-who { display: flex; flex-direction: column; min-width: 0; }
.sk-who b { font-size: 4.8cqw; line-height: 1.1; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-who small { font-size: 2.8cqw; color: #5b6470; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-qr { width: 17.6cqw; height: 17.6cqw; margin-left: auto; padding: 1.3cqw; border-radius: 2cqw; background: #fff; border: .19cqw solid #e4e7ea; }
.sk-ask { align-self: flex-start; margin: 4cqw 0 0; padding: 1.9cqw 3cqw; border-radius: 999px; background: #f0ebff; border: .19cqw solid #cfc2fb;
  color: #5636c7; font-size: 3cqw; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
/* LinkedIn and Facebook pop out at its sides once it has landed, and float there. */
.sc-social { position: absolute; display: grid; place-items: center; width: 17cqw; height: 17cqw; border-radius: 30%; background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 14, 16, .06), 0 16px 28px -14px rgba(12, 14, 16, .55); opacity: 0; transform: scale(.2) rotate(-25deg); }
.sc-social svg { width: 58%; height: 58%; }
.sc-li { right: -8cqw; top: 15%; --tilt: 8deg; }
.sc-fb { left: -7.5cqw; top: 55%; border-radius: 50%; --tilt: -8deg; }
.sc-share.is-pop .sc-social { animation: sc-pop .6s cubic-bezier(.3, 1.6, .5, 1) both, sc-float 3.2s ease-in-out .6s infinite alternate; }
.sc-share.is-pop .sc-fb { animation-delay: .14s, .74s; }
@keyframes sc-pop { from { opacity: 0; transform: scale(.2) rotate(-25deg); } to { opacity: 1; transform: scale(1) rotate(var(--tilt)); } }
@keyframes sc-float { from { opacity: 1; transform: scale(1) rotate(var(--tilt)) translateY(0); }
  to { opacity: 1; transform: scale(1) rotate(calc(var(--tilt) * .4)) translateY(-2.6cqw); } }

/* 4 and 5: QR визитки, as a person's card draws itself (a banner, the photo over its edge, the name,
   the QR); yours is scanned (a gentle shimmer), the others fly in beside it. */
.sc-vcard { width: min(84cqw, 470px, 86cqh); aspect-ratio: 1.72; }
.sc-vcard::before { content: ""; position: absolute; inset: 0; border-radius: 4cqw; background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 14, 16, .07), 0 26px 44px -26px rgba(12, 14, 16, .6), 0 6px 14px -8px rgba(12, 14, 16, .2); }
.vc-band { position: absolute; left: 0; right: 0; top: 0; height: 40%; border-radius: 4cqw 4cqw 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 55%),
    repeating-linear-gradient(90deg, rgba(11, 133, 115, .08) 0 1px, transparent 1px 6px),
    radial-gradient(70% 140% at 18% 140%, #c9f3e8, rgba(201, 243, 232, 0) 70%),
    radial-gradient(70% 140% at 84% 140%, #ddd3fc, rgba(221, 211, 252, 0) 70%), #f4fdfb; }
.sc-v2 .vc-band { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 140% at 20% 140%, #e3d9ff, rgba(227, 217, 255, 0) 70%), radial-gradient(70% 140% at 85% 140%, #c7ecff, rgba(199, 236, 255, 0) 70%), #f6f4ff; }
.sc-v3 .vc-band { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 140% at 20% 140%, #ffe7bf, rgba(255, 231, 191, 0) 70%), radial-gradient(70% 140% at 85% 140%, #ffd9e8, rgba(255, 217, 232, 0) 70%), #fffaf2; }
.sc-v4 .vc-band { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 140% at 20% 140%, #c7ecff, rgba(199, 236, 255, 0) 70%), radial-gradient(70% 140% at 85% 140%, #c9f3e8, rgba(201, 243, 232, 0) 70%), #f3fafe; }
.vc-body { position: absolute; left: 6cqw; right: 39cqw; top: 15cqw; display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  text-align: left; color: var(--ink); }
.vc-avatar { width: 17cqw; height: 17cqw; box-shadow: 0 0 0 1cqw #fff; }
.vc-name { max-width: 100%; margin-top: 2.6cqw; font-size: 5.4cqw; line-height: 1.15; font-weight: 700; letter-spacing: -.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-role { max-width: 100%; margin-top: .6cqw; font-size: 3.3cqw; line-height: 1.25; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-qr { position: absolute; right: 6cqw; top: 15.5cqw; width: 28cqw; height: 28cqw; padding: 1.8cqw; box-sizing: border-box; overflow: hidden;
  border-radius: 2.8cqw; background: #fff; border: 1px solid var(--line); }
.vc-qr .st-qr { width: 100%; height: 100%; }
.vc-beam { position: absolute; left: 0; right: 0; top: 0; height: 22%; opacity: 0;
  background: linear-gradient(180deg, rgba(56, 217, 190, 0), rgba(56, 217, 190, .5) 72%, #38d9be 75%, rgba(56, 217, 190, 0) 78%); }
.sc-v1.is-scan .vc-beam { animation: vc-beam .6s ease-in-out .2s 2 alternate both; }
.sc-v1.is-scan .vc-qr { animation: vc-ring 1.6s ease both; }
@keyframes vc-beam { 0% { opacity: 1; transform: translateY(-30%); } 100% { opacity: 1; transform: translateY(380%); } }
@keyframes vc-ring { 0%, 70% { box-shadow: 0 0 0 0 rgba(56, 217, 190, 0); border-color: var(--line); }
  85% { box-shadow: 0 0 0 1.1cqw rgba(56, 217, 190, .4); border-color: var(--mint); }
  100% { box-shadow: 0 0 0 0 rgba(56, 217, 190, 0); border-color: var(--mint); } }

/* The handwritten note that points at your QR визитка (owner, 2026-11-24: deckerj's "if we're being
   formal"): a cursive line and a drawn arrow, outside the card. */
.sc-note { position: absolute; left: 0; top: 0; width: min(46cqw, 230px); opacity: 0; visibility: hidden; transform-origin: 50% 50%;
  color: #5636c7; text-align: center; pointer-events: none; }
.sc-note-text { display: block; font-family: "Caveat", cursive; font-weight: 600; font-size: clamp(22px, 3.6cqw, 34px); line-height: .98; }
.sc-note-arrow { display: block; width: 46%; height: auto; margin: 2px auto 0 18%; overflow: visible; }
.sc-note-arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Step 2's word: the arrow on the left, its point down left on the "Ще отида" button, the word right. */
.sc-note2 { display: flex; align-items: flex-start; width: max-content; max-width: 70cqw; text-align: left; color: var(--mint-deep, #075e51); }
.sc-note2 .sc-note-arrow { flex: none; width: clamp(64px, 11cqw, 110px); margin: 0; }
.sc-note2 .sc-note-text { margin: -.3em 0 0 .3em; white-space: nowrap; }

/* 6: the portal (Yana, 2026-11-24: "реален портал пълен със събития", not a calendar): the site in
   small, filling the rectangle: its bar (the wordmark, the filters as plain pills) and the page's own
   first events as tiles with their pictures, four across (a phone: two). */
.sc-portal { position: absolute; inset: 0; display: flex; flex-direction: column; visibility: hidden; opacity: 0; background: #fafbfb;
  color: var(--ink); text-align: left; }
.pt-bar { flex: none; display: flex; align-items: center; gap: 2.4cqw; margin: 0; padding: 1.5cqw 2.6cqw; background: #fff; border-bottom: 1px solid var(--line); }
.pt-brand { display: inline-flex; align-items: center; gap: .7cqw; font-family: "Rubik", var(--font); font-size: 2.2cqw; font-weight: 700; letter-spacing: -.02em; }
.pt-brand b { color: var(--mint-text); font-weight: 600; }
.pt-brand .sk-dot { width: .9cqw; height: .9cqw; box-shadow: 0 0 0 .3cqw rgba(56, 217, 190, .25); }
.pt-pills { display: inline-flex; gap: .8cqw; }
.pt-pills i { width: 7cqw; height: 2.6cqw; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; }
.pt-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.6cqw;
  margin: 0; padding: 2cqw 2.6cqw 2.4cqw; list-style: none; min-height: 0; }
.pt-tile { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-radius: 1.4cqw; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1.4cqw 2.4cqw -2cqw rgba(12, 14, 16, .35); opacity: 0; }
.pt-pic { flex: 1 1 0; display: grid; place-items: center; min-height: 0; overflow: hidden; color: #fff; font-size: 3cqw; font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #38d9be); }
.pt-c1 { background: linear-gradient(135deg, #38d9be, #0b8573); }
.pt-c2 { background: linear-gradient(135deg, #fbbf24, #f472b6); }
.pt-c3 { background: linear-gradient(135deg, #7dd3fc, #5636c7); }
.pt-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-when { flex: none; padding: .9cqw 1.1cqw 0; font-size: 1.25cqw; font-weight: 700; color: var(--mint-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-title { flex: none; padding: .2cqw 1.1cqw 0; font-size: 1.45cqw; line-height: 1.2; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-where { flex: none; padding: .1cqw 1.1cqw 1cqw; font-size: 1.2cqw; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 959px) {
  .pt-bar { gap: 3cqw; padding: 3cqw 4cqw; }
  .pt-brand { font-size: 4.8cqw; gap: 1.4cqw; }
  .pt-brand .sk-dot { width: 1.8cqw; height: 1.8cqw; }
  .pt-pills { gap: 1.6cqw; }
  .pt-pills i { width: 11cqw; height: 5.4cqw; }
  .pt-pills i:nth-child(4) { display: none; }
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2.6cqw; padding: 3.4cqw 4cqw 4cqw; }
  .pt-tile:nth-child(n+7) { display: none; }
  .pt-tile { border-radius: 2.8cqw; }
  .pt-when { padding: 1.8cqw 2.2cqw 0; font-size: 2.9cqw; }
  .pt-title { padding: .4cqw 2.2cqw 0; font-size: 3.2cqw; }
  .pt-where { padding: .2cqw 2.2cqw 1.8cqw; font-size: 2.7cqw; }
}

/* The last word, popping up in front of the portal as the картичка does (Yana, 2026-11-24). */
.pt-veil { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-msg { width: min(76cqw, 620px); margin: 0; padding: 5.5cqw 6cqw; box-sizing: border-box; border-radius: 4cqw; background: #fff; color: var(--ink);
  text-align: center; font-size: clamp(19px, 5.2cqw, 34px); line-height: 1.22; font-weight: 700; letter-spacing: -.03em; text-wrap: balance;
  box-shadow: 0 0 0 1px rgba(12, 14, 16, .06), 0 34px 60px -28px rgba(12, 14, 16, .6), 0 10px 24px -14px rgba(12, 14, 16, .3); }
.sc-msg mark { background: linear-gradient(180deg, transparent 56%, var(--mint) 56% 94%, transparent 94%); color: inherit; padding: 0 .1em; white-space: nowrap; }

/* ------------------------------------------------------------------ the foot: "Към събитията"
   Fixed at the very bottom, out of the way (owner). The final line (`story.cap_*`, "business network"
   marked) pops up in the scene (`.sc-msg`), and no line of explanation stands here (Yana, 2026-11-24:
   no narration under the rectangle; review 2026-11-24, frontend-copy 6). */
.story-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 253, 251, 0), rgba(246, 253, 251, .9) 42%, #f6fdfb); opacity: 0;
  transition: opacity .4s ease; }
.story.is-on .story-foot { opacity: 1; }
.story.is-done .story-foot { opacity: 0; }
/* Hidden and taking no clicks until the story plays (review 2026-11-24, frontend-copy 1, as the
   2026-11-20 review's M21 in tamsme.css): see-through in the foot, it lay over the first row's cards
   and their "Може би" / "Ще ходя", and a tap there led to the home page. */
.story-ok { position: static; align-self: center; pointer-events: none; margin: 0; gap: 8px; min-width: 200px; max-width: 100%; height: 46px;
  min-height: 46px; padding: 0 24px; font-size: 15.5px; text-decoration: none; opacity: 1; visibility: hidden; }
.story.is-on .story-ok { pointer-events: auto; visibility: visible; }
.story.is-end .story-ok { width: auto; height: 46px; }

/* ------------------------------------------------------------------ the layout while it is due
   The first card is half the list wide on a computer (room to grow to the middle), and over the rest
   while it plays: it grows to fill the screen (story.js), the rest of the list stepping away. */
.upcoming.story-on .rows > li.st-stage { z-index: 3; }
.upcoming .group-title, .upcoming .pinned-label { transition: opacity .5s ease; }
.upcoming.story-on .rows > li:not(.st-stage), .upcoming.story-on .group-title, .upcoming.story-on .pinned-label { opacity: 0; pointer-events: none; }
@media (min-width: 960px) {
  .upcoming-grid.story-due .group:not([data-tiles]) > .rows > li { grid-column: span 3; }
  .upcoming-grid.story-due .group:not([data-tiles]) > .rows > li.st-stage { grid-column: span 6; }
}

/* ------------------------------------------------------------------ a phone or a tablet
   Owner, 2026-11-23: "in mobile they should show on top 1 step at a time and the action should be
   below": the labels hold the one we are on; the acting card is the whole width (the event background);
   a row of the steps' icons sits in the foot beside "Ясно". */
.st-track { display: none; }
@media (max-width: 959px) {
  .story-panel { padding: 10px 12px 6px; }
  .story-steps { display: grid; }
  .story-step { grid-area: 1 / 1; justify-self: center; opacity: 0; transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease; border-color: var(--st); background: #fff; color: var(--st);
    box-shadow: 0 3px 0 var(--st), 0 10px 22px -12px rgba(16, 24, 32, .4); }
  .story-step.is-now { opacity: 1; transform: none; }
  .story-step.is-on:not(.is-now) { opacity: 0; transform: translateY(-8px); }
  .story-steps .st-bar { display: none; }
  .st-track { display: flex; align-items: center; justify-content: center; }
  .st-track [data-track] { display: inline-grid; place-items: center; }
  .st-track .st-icon { width: 26px; height: 26px; color: #aab0b8; }
  .st-track .st-icon svg { width: 14px; height: 14px; }
  .st-track .st-bar { flex: none; width: 14px; height: 2px; margin: 0 3px; border-radius: 2px; background: #e1e5e9; overflow: hidden; }
  .st-track .st-bar b { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .4s ease; }
  .st-track [data-track].is-on .st-icon { color: var(--dim); }
  .st-track [data-track].is-now .st-icon { color: #fff; background: var(--st); box-shadow: none; }
  .st-track [data-track].is-on:not(.is-now) + .st-bar b { transform: scaleX(1); }
  .story-foot { gap: 8px; }
  .story.is-end .st-track { display: none; }
  .upcoming.story-on .rows > li.st-stage { opacity: 1; pointer-events: none; }
  .upcoming.story-due .group:not([data-tiles]) > .rows > li.st-stage { grid-column: 1 / -1; }
  .upcoming.story-due .group-pinned[data-tiles] > .rows { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upcoming.story-due .group-pinned[data-tiles] > .rows > li.st-stage { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .story-step, .st-icon, .story-bg, .story-foot, .st-track .st-bar b { transition: none; }
  .st-stage.st-pop { animation: none; }
  .sc-share.is-pop .sc-social { animation: none; opacity: 1; transform: scale(1) rotate(var(--tilt)); }
  .sc-v1.is-scan .vc-beam, .sc-v1.is-scan .vc-qr { animation: none; }
}
