/* Story page */
.st-founder {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 72px; align-items: end;
  width: 100%; max-width: 1080px; margin: 0 auto;
}
/* A portré alja a legalsó gombnál végződik (a 2048 px magas képen az 1892. px-nél, a gomb középpontja az 1852.-nél): a doboz
   9,65%-kal alacsonyabb, a kép és az emblem a dobozhoz képest ugyanott marad (a %-ok az eredeti 126,72% / 96% / -32% / -30%-ból
   átszámoltak), a kép alsó 156 px-ét a kerethez igazított levágás (negatív bottom) rejti. */
.st-portrait { position: relative; aspect-ratio: 18 / 22.587; width: 86%; justify-self: end; margin-top: 64px; }
.st-portrait__bg {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden; border: 1px solid var(--stroke);
  background: radial-gradient(110% 80% at 25% 100%, rgba(170, 138, 83, .12) 0%, rgba(170, 138, 83, 0) 62%), linear-gradient(90deg, #EEE9E1 0%, #F5F2EC 55%, #F9F7F3 100%);
}
html[data-mc-dark] .st-portrait__bg {
  background: radial-gradient(110% 80% at 25% 100%, rgba(198, 138, 74, .10) 0%, rgba(198, 138, 74, 0) 62%), linear-gradient(90deg, #150B0E 0%, #190F12 55%, #1C1316 100%);
}
.st-portrait__bg img {
  position: absolute; left: 62%; bottom: calc(-10.68% - 1.2px); transform: translateX(-50%); height: calc(140.26% + 2.8px); width: auto; max-width: none; /* +px: a háttér doboz 1 px-es kerete miatt a kivágott képpel pixelre fedi egymást */
  pointer-events: none; user-select: none; filter: grayscale(.45) contrast(.92); opacity: .5;
}
html[data-mc-dark] .st-portrait__bg img { opacity: .6; }
.st-portrait__logo { position: absolute; left: -85%; top: -33.21%; width: 240%; max-width: none; height: auto; pointer-events: none; user-select: none; opacity: .16; }
html[data-mc-dark] .st-portrait__logo { opacity: .3; }
.st-portrait__clip { position: absolute; left: 0; right: 0; bottom: 0; top: -35.42%; overflow: hidden; border-radius: 0 0 32px 32px; }
.st-portrait__clip img { position: absolute; left: 62%; bottom: -7.889%; transform: translateX(-50%); height: 103.57%; width: auto; max-width: none; display: block; filter: brightness(1) saturate(.78); }
html[data-mc-dark] .st-portrait__clip img { filter: brightness(.9) saturate(.72); }
.st-founder__copy { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
.st-role { margin: 0 0 28px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-body); }
.st-founder__txt { display: flex; flex-direction: column; gap: 18px; max-width: 52ch; }
.st-quote { margin: 14px 0 0; padding: 22px 0 0; border-top: 1px solid var(--stroke); font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
@media (max-width: 899px) {
  .st-founder { grid-template-columns: 1fr; gap: 36px; align-items: center; }
  .st-portrait { width: 100%; max-width: 480px; justify-self: start; margin-top: 104px; }
}
@media (max-width: 759px) { .st-portrait__bg, .st-portrait__clip { border-radius: 22px; } .st-portrait__clip { border-radius: 0 0 22px 22px; } .st-quote { font-size: 22px; } }

/* Timeline */
.st-timeline-wrap { position: relative; margin: 24px auto 0; max-width: 1000px; }
.st-rail { position: absolute; top: 8px; bottom: 8px; left: 50%; width: 1px; background: linear-gradient(180deg, transparent 0%, var(--stroke) 8%, var(--stroke) 92%, transparent 100%); }
.st-timeline { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-ms { position: relative; display: flex; }
.st-ms.is-left { justify-content: flex-start; }
.st-ms.is-right { justify-content: flex-end; }
.st-dot { position: absolute; top: 10px; left: calc(50% - 6px); width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.st-card { width: calc(50% - 56px); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.st-ms.is-left .st-card { align-items: flex-end; text-align: right; }
.st-year { margin: 0 0 8px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent-strong); }
.st-mtitle { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ink); }
.st-mbody { margin: 0 0 14px; max-width: 40ch; font-size: 15px; line-height: 1.72; color: var(--ink-body); text-wrap: pretty; }
.st-mbody.is-quote { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.55; color: var(--ink); }
.st-mimg + .st-mimg { margin-top: 14px; }
.st-mimg { position: relative; width: 100%; max-width: 380px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--img-bg); margin-top: 4px; }
@media (max-width: 899px) {
  .st-rail { left: 7px; }
  .st-timeline { gap: 36px; }
  .st-ms, .st-ms.is-right, .st-ms.is-left { justify-content: flex-start; padding-left: 36px; }
  .st-dot { left: 1px; }
  .st-card, .st-ms.is-left .st-card { width: 100%; align-items: flex-start; text-align: left; }
}
@media (max-width: 759px) { .st-year { font-size: 28px; } .st-mtitle { font-size: 21px; } .st-timeline-wrap { margin-top: 8px; } }

/* Album */
.al-book { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; }
.al-track { position: relative; perspective: 2600px; touch-action: pan-y; outline: none; padding: 16px 0 36px; display: grid; }
.al-page { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: rotateY(-12deg) translateX(2%); transform-origin: 0 50%; transition: opacity .6s ease, transform .9s cubic-bezier(.45, .05, .2, 1), visibility 0s linear .9s; }
.al-page.is-current { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .15s, transform .9s cubic-bezier(.45, .05, .2, 1), visibility 0s; }
.al-page.is-prev { transform: rotateY(12deg) translateX(-2%); }
.al-spread {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 6px 6px 8px 8px; overflow: hidden; background: var(--paper);
  box-shadow: 0 34px 60px -34px rgba(58, 40, 20, .45), 0 3px 8px rgba(58, 40, 20, .1), inset 0 0 0 1px rgba(120, 98, 62, .12);
}
html[data-mc-dark] .al-spread { filter: brightness(.84); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9), 0 3px 8px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(120, 98, 62, .12); }
.al-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: multiply; background-size: 220px 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .26  0 0 0 .5 0'/></filter><rect width='220' height='220' filter='url(%23p)' opacity='.35'/></svg>");
}
.al-gutter { position: absolute; top: 0; bottom: 0; left: 50%; width: 80px; margin-left: -40px; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(80,60,30,0) 0%, rgba(80,60,30,.07) 38%, rgba(60,44,20,.2) 49.5%, rgba(255,252,242,.35) 50.5%, rgba(80,60,30,.06) 62%, rgba(80,60,30,0) 100%); }
.al-photos { position: relative; height: 540px; }
.al-photo { position: absolute; margin: 0; padding: 8px 8px 0; background: #FCFBF7; box-shadow: 0 10px 18px -12px rgba(50, 34, 14, .55), 0 1px 2px rgba(50, 34, 14, .18); }
.al-photo__img { position: relative; display: block; width: 100%; overflow: hidden; background: #E6E1D5; }
.al-photo__img .mc-slot { color: rgba(42, 37, 28, .74); background: #E6E1D5; }
.al-corners {
  position: absolute; inset: -3px; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(40,32,22,.78) 0 50%, transparent 50%) left top / 18px 18px no-repeat,
    linear-gradient(225deg, rgba(40,32,22,.78) 0 50%, transparent 50%) right top / 18px 18px no-repeat,
    linear-gradient(45deg, rgba(40,32,22,.78) 0 50%, transparent 50%) left bottom / 18px 18px no-repeat,
    linear-gradient(315deg, rgba(40,32,22,.78) 0 50%, transparent 50%) right bottom / 18px 18px no-repeat;
}
.al-photo figcaption { min-height: 8px; padding: 6px 2px 8px; font-family: var(--serif-text); font-style: italic; font-size: 12px; line-height: 1.3; color: rgba(42, 37, 28, .72); position: relative; }
.al-text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px 64px 64px 72px; }
.al-year { margin: 0 0 10px; font-family: var(--serif); font-size: 56px; line-height: 1; color: #8A6A36; }
.al-title { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; color: #2A251C; }
.al-body { margin: 0 0 24px; max-width: 40ch; font-size: 15px; line-height: 1.75; color: rgba(42, 37, 28, .72); text-wrap: pretty; }
.al-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(42, 37, 28, .16); }
.al-notes li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(42, 37, 28, .16); font-size: 14px; line-height: 1.5; color: #2A251C; }
.al-note-date { font-family: var(--serif-text); font-style: italic; color: #735626; }
.al-folio { position: absolute; right: 28px; bottom: 22px; margin: 0; font-family: var(--serif-text); font-size: 12px; letter-spacing: .06em; color: rgba(42, 37, 28, .68); }
.al-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 4px; }
.al-arrow { appearance: none; background: transparent; cursor: pointer; padding: 0; margin: 0; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--stroke); color: var(--ink-body); display: flex; align-items: center; justify-content: center; transition: opacity .2s ease, border-color .2s ease; }
.al-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.al-arrow:disabled { opacity: .35; cursor: default; }
.al-dots { display: flex; align-items: center; gap: 2px; }
.al-dots button { appearance: none; background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; width: 32px; height: 44px; display: flex; align-items: center; justify-content: center; }
.al-dots button span { display: block; width: 10px; height: 2px; border-radius: 2px; background: var(--stroke); transition: width .26s ease, background .26s ease; }
.al-dots button[aria-current="true"] span { width: 24px; background: var(--accent); }
.al-layer { position: absolute; left: 0; right: 0; top: 16px; z-index: 3; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; transition: transform .95s cubic-bezier(.45, .05, .2, 1); }
.al-layer--under { z-index: 2; transition: none; }
.al-shade { position: absolute; inset: 0; pointer-events: none; border-radius: 6px; transition: opacity .95s cubic-bezier(.45, .05, .2, 1); }
.al-track.is-turning .al-page { transition: none !important; transform: none !important; }
@media (max-width: 1099px) { .al-photos { height: 460px; } .al-text { padding: 40px 40px 48px 48px; } }
@media (max-width: 759px) {
  .al-track { perspective: 1800px; padding: 12px 0 28px; }
  .al-layer { top: 12px; }
  .al-spread { grid-template-columns: 1fr; border-radius: 6px; }
  .al-gutter { display: none; }
  .al-photos { height: min(92vw, 420px); }
  .al-photo { padding: 6px 6px 0; }
  .al-text { padding: 28px 24px 26px; }
  .al-year { font-size: 40px; } .al-title { font-size: 24px; }
  .al-folio { position: static; margin: 20px 0 0; }
}

/* Today */
.st-today { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.st-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* the Story page footer mark is a little stronger in the design */
.mc-footer__mark { opacity: .36; }
html[data-mc-dark] .mc-footer__mark { opacity: .15; }

/* Mobil: a lapozó nyilak a blokk belsejében, a képek szélén (nem nyomják össze a tartalmat), a pöttyök közvetlenül alatta */
@media (max-width: 759px) {
  .al-track { padding-bottom: 10px; }
  .al-controls { margin-top: 0; gap: 0; }
  .al-arrow {
    position: absolute; z-index: 6; width: 40px; height: 40px; top: calc(12px + min(92vw, 420px) - 20px);
    background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
  }
  .al-arrow[data-al-prev] { left: -8px; }
  .al-arrow[data-al-next] { right: -8px; }
}

/* Tablet álló: kisebb founder kép (az emblem %-ban követi) */
@media (min-width: 760px) and (max-width: 899px) {
  .st-founder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: end; }
  .st-portrait { width: 100%; max-width: none; margin-top: 64px; justify-self: stretch; }
}

/* Az album lapjainak z-indexei ne keveredjenek a lapozó rétegekkel (különben a következő oldal egy képe előbb megjelenik) */
.al-page { isolation: isolate; }
