* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--story-intro); color: var(--story-color); font-family: var(--story-font); }
body, .story-site { overflow-x: clip; }
.story-site { width: 100%; margin-inline: auto; }
body[data-profile="mobile"] .story-site { max-width: 480px; }
.story-frame { position: relative; isolation: isolate; }
.story-wallpaper { position: absolute; inset: 0; background-color: var(--story-background); pointer-events: none; z-index: -2; }
.story-wallpaper-intro { will-change: transform; }
.story-veil, .story-events-veil { position: absolute; inset: 0; background: #000; opacity: var(--story-overlay); pointer-events: none; z-index: -1; }
.story-placement { display: flex; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.story-placement[data-position^="top"] { align-items: flex-start; }
.story-placement[data-position^="center"] { align-items: center; }
.story-placement[data-position^="bottom"] { align-items: flex-end; }
.story-placement[data-position$="left"] { justify-content: flex-start; }
.story-placement[data-position$="right"] { justify-content: flex-end; }
.story-placement[data-position$="center"], .story-placement[data-position="center"] { justify-content: center; }
.story-intro, .story-contact-placement { min-height: 100svh; }
.story-intro { background: var(--story-intro); color: #000; }
.story-intro h1 { font-size: 48px; overflow-wrap: anywhere; }
.story-logo { display: block; height: auto; max-height: calc(100svh - 48px); object-fit: contain; filter: brightness(0); }
.story-mask { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.story-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; max-width: 100%; max-height: calc(100svh - 64px); overflow: auto; scrollbar-width: thin; padding: 8px; }
.story-contacts a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: inherit; text-decoration: none; max-width: 100%; transition: transform .2s; }
.story-contacts a:hover { transform: translateY(-4px); }
.story-contacts a:focus-visible, .story-event:focus-visible, .story-scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.story-contacts img { width: var(--story-icon); height: var(--story-icon); object-fit: contain; border-radius: 12px; filter: drop-shadow(0 3px 10px #0005); }
.story-contact-icon { flex: 0 0 auto; }
.story-contact-fallback { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.story-contact-label { display: block; min-width: 0; max-width: 160px; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.story-contacts.has-contact-text[data-layout="column"] { flex-wrap: nowrap; align-items: stretch; }
.story-contacts.has-contact-text[data-layout="column"] a { gap: 12px; justify-content: flex-start; }
.story-contacts.has-contact-text[data-layout="column"] .story-contact-label { text-align: left; }
.story-contacts.has-contact-text[data-layout="row"] a { flex-direction: column; gap: 8px; width: max(var(--story-icon), 112px); }
.story-scroll { display: none; position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #000; }
.is-animated .story-frame { position: sticky; top: 0; height: 100svh; overflow: clip; }
.is-animated .story-intro { display: none; }
.is-animated .story-mask { display: block; }
.is-animated .story-contact-placement { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); will-change: opacity, transform; }
.is-animated .story-contact-label { opacity: var(--story-label-opacity, 0); transform: translateY(var(--story-label-shift, 12px)); }
.is-animated .story-contacts[data-layout="column"] .story-contact-label { transform: translateX(var(--story-label-shift, 12px)); }
.is-animated .story-scroll { display: block; }
.story-events { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; }
.story-wallpaper-events { transform: scale(var(--story-zoom)); }
.story-events-inner { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: 64px 40px 28px; max-width: 1280px; margin-inline: auto; text-align: var(--story-align); }
.story-event-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.story-event-heading h2 { flex: 1; min-width: 0; margin: 0; font-size: var(--story-heading); line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
.story-next-poster { display: block; width: 140px; height: 170px; object-fit: contain; }
.story-heading-asset { width: 64px; height: 48px; object-fit: contain; }
.story-event-list { width: 100%; }
.story-event { display: grid; grid-template-columns: 110px minmax(0, 1fr) 26px; align-items: baseline; gap: 24px; padding: 24px 0; border-top: 1px solid #ffffff45; color: inherit; text-decoration: none; font-size: var(--story-event); line-height: 1.4; transition: opacity .2s; }
.story-event:hover { opacity: .8; }
.story-event time { font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: left; }
.story-event-name { min-width: 0; overflow-wrap: anywhere; }
.story-event-arrow { text-align: right; }
.story-today { color: #ff3b3b; font-size: 14px; padding-left: 8px; white-space: nowrap; }
.story-copyright { margin-top: auto; padding-top: 64px; font-size: var(--story-copyright); line-height: 1.5; overflow-wrap: anywhere; }
.story-empty { opacity: .8; font-size: 18px; }
@media (max-width: 600px) {
    .story-events-inner { padding: 48px 24px 24px; }
    .story-event-heading { gap: 12px; margin-bottom: 28px; }
    .story-next-poster { width: 84px; height: 110px; }
    .story-heading-asset { width: 32px; height: 32px; }
    .story-event { grid-template-columns: 68px minmax(0,1fr) 16px; gap: 10px; padding-block: 20px; }
    .story-event time { font-size: 13px; }
    .story-contacts { gap: 16px; }
}
body[data-profile="mobile"] .story-events-inner { padding: 48px 24px 24px; }
body[data-profile="mobile"] .story-event { grid-template-columns: 68px minmax(0,1fr) 16px; gap: 10px; }
body[data-profile="mobile"] .story-event time { font-size: 13px; }
body[data-profile="mobile"] .story-next-poster { width: 84px; height: 110px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
