:root {
    --bg         : #0a0b0d;
    --bg2        : #111318;
    --fg         : #e8e9ec;
    --muted      : #8b9099;
    --accent     : #d4a24e;
    --accent-dim : #7a6236;
    --line       : #23262d;
    --radius     : 14px;
}

* {
    margin     : 0;
    padding    : 0;
    box-sizing : border-box;
}

html, body {
    height   : 100%;
    overflow : hidden;
}

body {
    background  : var(--bg);
    color       : var(--fg);
    font-family : "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    line-height : 1.5;
}

.viewport {
    position : relative;
    width    : 100%;
    height   : 100vh;
    height   : 100dvh;
    overflow : hidden;
}

.pages {
    display        : flex;
    flex-direction : column;
    width          : 100%;
    transition     : transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.view {
    position        : relative;
    width           : 100%;
    height          : 100vh;
    height          : 100dvh;
    flex-shrink     : 0;
    display         : flex;
    flex-direction  : column;
    align-items     : center;
    justify-content : center;
    z-index         : 1;
}

/* BRAND BAR — reminds you which clan this is once the hero scrolls out of view */
.brand-bar {
    position        : fixed;
    top             : 0;
    left            : 0;
    right           : 0;
    display         : flex;
    align-items     : center;
    justify-content : center;
    gap             : 0.55em;
    padding         : 0.9rem 1rem;
    font-family     : "Consolas", "SF Mono", monospace;
    font-size       : 1rem;
    font-weight     : 700;
    letter-spacing  : 0.14em;
    color           : var(--fg);
    background      : linear-gradient(to bottom, rgba(10, 11, 13, 0.85), transparent);
    border-bottom   : 1px solid transparent;
    opacity         : 0;
    transform       : translateY(-10px);
    transition      : opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
    pointer-events  : none;
    z-index         : 15;
}

.brand-bar .tag-inline {
    font-size   : 1.05em;
    text-shadow : 0 0 20px rgba(212, 162, 78, 0.55);
}

.brand-bar.visible {
    opacity             : 1;
    transform           : translateY(0);
    border-bottom-color : var(--line);
}

.bg-grid {
    position         : fixed;
    inset            : 0;
    z-index          : 0;
    background-image : linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size  : 42px 42px;
    mask-image       : radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
}

.bg-glow {
    position       : fixed;
    top            : -25%;
    left           : 50%;
    transform      : translateX(-50%);
    width          : 1100px;
    height         : 850px;
    z-index        : 0;
    background     : radial-gradient(circle, rgba(212, 162, 78, 0.18), transparent 65%);
    pointer-events : none;
    animation      : pulse 7s ease-in-out infinite;
}

.bg-glow-2 {
    top        : auto;
    bottom     : -30%;
    left       : 20%;
    width      : 700px;
    height     : 700px;
    background : radial-gradient(circle, rgba(212, 162, 78, 0.08), transparent 70%);
    animation  : pulse 9s ease-in-out infinite reverse;
}

.bg-vignette {
    position       : fixed;
    inset          : 0;
    z-index        : 0;
    background     : radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events : none;
}

.particles {
    position       : fixed;
    inset          : 0;
    z-index        : 0;
    pointer-events : none;
    overflow       : hidden;
}

.particle {
    position      : absolute;
    bottom        : -10px;
    width         : 3px;
    height        : 3px;
    border-radius : 50%;
    background    : var(--accent);
    box-shadow    : 0 0 6px 1px rgba(212, 162, 78, 0.8);
    opacity       : 0;
    animation     : rise linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity   : 1;
        transform : translateX(-50%) scale(1);
    }
    50% {
        opacity   : 0.7;
        transform : translateX(-50%) scale(1.12);
    }
}

@keyframes rise {
    0% {
        transform : translateY(0) translateX(0);
        opacity   : 0;
    }
    10% {
        opacity : 1;
    }
    90% {
        opacity : 0.6;
    }
    100% {
        transform : translateY(-100vh) translateX(var(--drift, 20px));
        opacity   : 0;
    }
}

/* HERO */
.view-hero {
    text-align : center;
    padding    : 5rem 1.5rem 5.5rem;
}

.logo-wrap {
    position        : relative;
    display         : flex;
    align-items     : center;
    justify-content : center;
    animation       : fadeUp 1s ease both;
}

.logo {
    max-width  : clamp(100px, 17vh, 300px);
    max-height : clamp(100px, 17vh, 300px);
    filter     : drop-shadow(0 0 40px rgba(212, 162, 78, 0.35));
    position   : relative;
    z-index    : 1;
}

.logo-fallback {
    width           : clamp(100px, 17vh, 138px);
    height          : clamp(100px, 17vh, 138px);
    border-radius   : 50%;
    border          : 1px solid var(--line);
    background      : linear-gradient(145deg, #16181d, #0c0d10);
    display         : flex;
    align-items     : center;
    justify-content : center;
    box-shadow      : 0 0 55px rgba(212, 162, 78, 0.18), inset 0 0 24px rgba(0, 0, 0, 0.4);
    position        : relative;
    z-index         : 1;
}

.logo-fallback-tag {
    font-weight    : 700;
    letter-spacing : 0.05em;
    color          : var(--accent);
    font-size      : 1.3rem;
}

@keyframes ringPulse {
    0%, 100% {
        transform : scale(1);
        opacity   : 0.5;
    }
    50% {
        transform : scale(1.08);
        opacity   : 0.9;
    }
}

h1 {
    font-size      : clamp(2.1rem, min(8vh, 11vw), 6.8rem);
    font-weight    : 800;
    letter-spacing : -0.03em;
    line-height    : 1;
}

h1 span {
    background              : linear-gradient(180deg, #ffffff 20%, #cfd2d8 60%, var(--accent-dim) 130%);
    -webkit-background-clip : text;
    background-clip         : text;
    -webkit-text-fill-color : transparent;
    color                   : transparent;
    filter                  : drop-shadow(0 0 40px rgba(212, 162, 78, 0.2));
    display                 : inline-block;
}

.tag {
    display        : inline-flex;
    align-items    : center;
    gap            : 0.6em;
    color          : var(--accent);
    font-family    : "Consolas", "SF Mono", monospace;
    font-size      : 1.5rem;
    font-weight    : 700;
    letter-spacing : 0.3em;
    margin-top     : 1rem;
    text-shadow    : 0 0 18px rgba(212, 162, 78, 0.45);
}

.tag::before,
.tag::after {
    content    : "";
    width      : 22px;
    height     : 1px;
    background : linear-gradient(90deg, transparent, var(--accent-dim));
}

.tag::after {
    background : linear-gradient(90deg, var(--accent-dim), transparent);
}

.years {
    margin-top  : clamp(1.2rem, 4vh, 3rem);
    font-size   : clamp(1.4rem, 4vh, 2.6rem);
    font-weight : 300;
    color       : var(--muted);
    display     : flex;
    align-items : center;
    gap         : 0.9rem;
}

.years span:not(.dash) {
    color       : var(--fg);
    font-weight : 600;
}

.years .dash {
    color : var(--accent-dim);
}

.farewell {
    margin-top : clamp(1rem, 3vh, 2.2rem);
    max-width  : 520px;
    color      : var(--muted);
    font-size  : clamp(0.95rem, 2.4vh, 1.15rem);
}

.reveal {
    opacity   : 0;
    animation : fadeUp 1s ease both;
}

h1 .reveal, h1 {
    animation-delay : 0s;
}

.tag.reveal {
    animation-delay : 0.35s;
}

.years.reveal {
    animation-delay : 0.55s;
}

.farewell.reveal {
    animation-delay : 0.8s;
}

.scroll-hint.reveal {
    animation-delay : 1.4s;
}

.scroll-hint {
    position       : absolute;
    bottom         : 1.75rem;
    left           : 0;
    right          : 0;
    width          : fit-content;
    margin         : 0 auto;
    display        : flex;
    flex-direction : column;
    align-items    : center;
    gap            : 0.6rem;
    color          : var(--muted);
    font-size      : 0.75rem;
    letter-spacing : 0.15em;
    background     : none;
    border         : none;
    font-family    : inherit;
    cursor         : pointer;
    transition     : color 0.2s;
}

.scroll-hint:hover {
    color : var(--accent);
}

.scroll-hint .scroll-line {
    width            : 1px;
    height           : 28px;
    background       : linear-gradient(to bottom, var(--accent-dim), transparent);
    animation        : scrollLine 2s ease-in-out infinite;
    transform-origin : top;
}

.scroll-hint svg {
    animation : bounce 2.4s ease-in-out infinite;
    color     : var(--accent);
}

@keyframes scrollLine {
    0% {
        transform : scaleY(0);
        opacity   : 0;
    }
    40% {
        transform : scaleY(1);
        opacity   : 1;
    }
    100% {
        transform : scaleY(1);
        opacity   : 0;
    }
}

@keyframes fadeUp {
    from {
        opacity   : 0;
        transform : translateY(24px);
    }
    to {
        opacity   : 1;
        transform : translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform : translateY(0);
        opacity   : 0.6;
    }
    50% {
        transform : translateY(6px);
        opacity   : 1;
    }
}

/* CHRONIK VIEW */
.view-chronik {
    padding : 4vh 1.5rem 5.5rem;
}

/* TIMELINE */
.timeline-section {
    width      : 100%;
    max-width  : 780px;
    text-align : center;
}

.timeline-section h2,
.founders h2,
.closing h2 {
    font-size   : clamp(1.7rem, 4vh, 2.2rem);
    font-weight : 600;
    line-height : 1.15;
}

.timeline-section h2 {
    margin-bottom : clamp(0.6rem, 1.5vh, 0.9rem);
}

.chronik-intro {
    color         : var(--muted);
    font-size     : clamp(0.9rem, 2vh, 1rem);
    margin-bottom : clamp(1.4rem, 3.5vh, 2.2rem);
}

.timeline-viewport {
    position      : relative;
    height        : clamp(220px, 38vh, 340px);
    overflow      : hidden;
    border-radius : var(--radius);
    border        : 1px solid var(--line);
    background    : linear-gradient(160deg, #14161b, #0d0e11);
    box-shadow    : 0 20px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 162, 78, 0.06) inset;
}

.timeline-track {
    display    : flex;
    height     : 100%;
    transition : transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.tl-slide {
    min-width       : 100%;
    height          : 100%;
    display         : flex;
    flex-direction  : column;
    align-items     : center;
    justify-content : center;
    padding         : 1.5rem 2rem;
    gap             : 0.7rem;
}

.tl-slide {
    animation : fadeUp 0.5s ease both;
}

.tl-year {
    font-size      : clamp(2.2rem, 6vh, 3.4rem);
    font-weight    : 800;
    color          : var(--accent);
    letter-spacing : -0.02em;
    text-shadow    : 0 0 30px rgba(212, 162, 78, 0.3);
}

.tl-title {
    font-size   : clamp(1.05rem, 2.8vh, 1.3rem);
    font-weight : 600;
}

.tl-desc {
    color     : var(--muted);
    font-size : clamp(0.85rem, 2.2vh, 1rem);
    max-width : 480px;
}

.timeline-dots {
    display         : flex;
    justify-content : center;
    align-items     : center;
    gap             : 0.1rem;
    margin-top      : clamp(1rem, 2.5vh, 1.4rem);
}

.timeline-dots button {
    width           : 24px;
    height          : 24px;
    padding         : 0;
    border          : none;
    background      : transparent;
    cursor          : pointer;
    display         : flex;
    align-items     : center;
    justify-content : center;
}

.timeline-dots button::after {
    content       : "";
    width         : 8px;
    height        : 8px;
    border-radius : 50%;
    background    : var(--line);
    transition    : background 0.25s, transform 0.25s;
}

.timeline-dots button.active::after {
    background : var(--accent);
    transform  : scale(1.3);
}

.timeline-controls {
    display         : flex;
    justify-content : center;
    align-items     : center;
    gap             : 1.2rem;
    margin-top      : clamp(1rem, 2.5vh, 1.6rem);
}

.timeline-controls button {
    background      : transparent;
    border          : 2px solid var(--line);
    color           : var(--fg);
    width           : 40px;
    height          : 40px;
    border-radius   : 50%;
    font-size       : 1.1rem;
    cursor          : pointer;
    display         : flex;
    align-items     : center;
    justify-content : center;
    transition      : border-color 0.2s, color 0.2s;
}

.timeline-controls button:hover {
    border-color : var(--accent);
    color        : var(--accent);
}

.timeline-controls button.tl-play-icon-play {
    padding-left : 2px;
}

.timeline-controls button[aria-pressed="true"] {
    color        : var(--accent);
    border-color : var(--accent);
}

/* MEMBERS (visually separated from founders) */
.members-block {
    width          : 100%;
    margin-top     : clamp(2.6rem, 6vh, 4.5rem);
    display        : flex;
    flex-direction : column;
    align-items    : center;
    gap            : clamp(0.9rem, 2vh, 1.3rem);
}

.members-label {
    display         : flex;
    flex-wrap       : wrap;
    align-items     : center;
    justify-content : center;
    gap             : 0.6rem 0.8rem;
    width           : 100%;
    padding         : 0 1rem;
    color           : var(--muted);
    font-size       : clamp(0.7rem, 1.6vh, 0.8rem);
    letter-spacing  : 0.15em;
    text-transform  : uppercase;
    text-align      : center;
}

.members-line {
    flex       : 0 0 34px;
    width      : 34px;
    height     : 1px;
    background : linear-gradient(90deg, transparent, var(--accent-dim));
}

.members-label .members-line:last-child {
    background : linear-gradient(90deg, var(--accent-dim), transparent);
}

/* MARQUEE */
.marquee-wrap {
    width          : calc(100% + 3rem);
    margin-left    : -1.5rem;
    margin-right   : -1.5rem;
    display        : flex;
    flex-direction : column;
    gap            : 0.5rem;
}

.marquee {
    position      : relative;
    overflow      : hidden;
    padding       : 0.6rem 0;
    border-top    : 1px solid var(--line);
    border-bottom : 1px solid var(--line);
    background    : rgba(255, 255, 255, 0.015);
    mask-image    : linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.marquee-row-2 {
    opacity : 0.65;
}

.marquee-track {
    display     : flex;
    width       : max-content;
    gap         : 1.1rem;
    white-space : nowrap;
}

.marquee-row-1 .marquee-track {
    animation : marqueeScroll 90s linear infinite;
}

.marquee-row-2 .marquee-track {
    animation : marqueeScroll 72s linear infinite;
}

.marquee-item {
    color          : var(--muted);
    font-size      : clamp(0.75rem, 1.8vh, 0.9rem);
    letter-spacing : 0.06em;
    opacity        : 0.6;
}

.marquee-dot {
    color       : var(--accent-dim);
    margin-left : 1.1rem;
}

@keyframes marqueeScroll {
    from {
        transform : translateX(0);
    }
    to {
        transform : translateX(calc(-1 * var(--shift, 50%)));
    }
}

/* FOUNDERS VIEW */
.view-founders {
    padding : 4vh 1.5rem 5.5rem;
}

.founders {
    width      : 100%;
    max-width  : 640px;
    margin     : 0 auto;
    text-align : center;
}

.founders h2 {
    margin-bottom : 0.7rem;
}

.founders-intro {
    color         : var(--muted);
    margin-bottom : clamp(1.4rem, 3.2vh, 2.2rem);
    font-size     : clamp(0.9rem, 2vh, 1rem);
}

.founders-list {
    list-style            : none;
    display               : grid;
    grid-template-columns : repeat(auto-fit, minmax(130px, 1fr));
    gap                   : 0.7rem;
    max-width             : 600px;
    margin                : 0 auto;
}

.founders-list li {
    display         : flex;
    align-items     : baseline;
    justify-content : center;
    gap             : 0.5rem;
    padding         : 0.55rem 0.5rem;
    border-bottom   : 1px solid var(--line);
    font-size       : clamp(0.95rem, 2.2vh, 1.15rem);
    font-weight     : 600;
    letter-spacing  : 0.02em;
    color           : var(--fg);
    opacity         : 0;
    transform       : translateY(10px);
    transition      : color 0.2s, border-color 0.2s;
}

.founders-list li::before {
    content        : attr(data-index);
    font-family    : "Consolas", "SF Mono", monospace;
    font-size      : 0.7rem;
    color          : var(--accent-dim);
    letter-spacing : 0.05em;
}

.founders-list.in-view li {
    animation : founderIn 0.6s ease both, founderGlow 5s ease-in-out infinite;
}

.founders-list.in-view li:nth-child(1) {
    animation-delay : 0s, 0.4s;
}

.founders-list.in-view li:nth-child(2) {
    animation-delay : 0.08s, 1.1s;
}

.founders-list.in-view li:nth-child(3) {
    animation-delay : 0.16s, 1.8s;
}

.founders-list.in-view li:nth-child(4) {
    animation-delay : 0.24s, 0.9s;
}

.founders-list.in-view li:nth-child(5) {
    animation-delay : 0.32s, 2.4s;
}

.founders-list.in-view li:nth-child(6) {
    animation-delay : 0.4s, 1.5s;
}

.founders-list.in-view li:nth-child(7) {
    animation-delay : 0.48s, 0.2s;
}

.founders-list li:hover {
    color        : var(--accent);
    border-color : var(--accent-dim);
}

@keyframes founderIn {
    from {
        opacity   : 0;
        transform : translateY(10px);
    }
    to {
        opacity   : 1;
        transform : translateY(0);
    }
}

@keyframes founderGlow {
    0%, 100% {
        color : var(--fg);
    }
    50% {
        color : var(--accent);
    }
}

/* CLOSING */
.view-closing {
    padding         : 3vh 1.5rem 2rem;
    justify-content : center;
}

.closing {
    padding    : 0 1.5rem;
    max-width  : 560px;
    margin     : 0 auto;
    text-align : center;
}

.divider {
    width      : 60px;
    height     : 1px;
    background : var(--line);
    margin     : 0 auto clamp(1.2rem, 3vh, 3rem);
}

.closing h2 {
    margin-bottom : clamp(0.8rem, 2vh, 1.2rem);
}

.closing p {
    color         : var(--muted);
    margin-bottom : clamp(0.7rem, 1.8vh, 1rem);
    font-size     : clamp(0.9rem, 2vh, 1rem);
}

.signoff {
    color      : var(--fg);
    font-style : italic;
    margin-top : clamp(0.9rem, 2vh, 1.4rem);
}

.contact {
    display         : inline-block;
    margin-top      : 2rem;
    color           : var(--accent);
    text-decoration : none;
    border-bottom   : 1px solid var(--accent-dim);
    padding-bottom  : 2px;
    font-size       : 1.05rem;
    transition      : color 0.2s, border-color 0.2s, opacity 0.2s;
}

.contact:hover {
    color        : var(--fg);
    border-color : var(--fg);
    opacity      : 0.9;
}

footer {
    text-align : center;
    padding    : 1.5rem 1.5rem 0;
    margin-top : clamp(1.5rem, 4vh, 3rem);
    border-top : 1px solid var(--line);
    width      : 100%;
    max-width  : 560px;
}

.copyright {
    display        : inline-flex;
    align-items    : center;
    gap            : 0.55em;
    font-family    : "Consolas", "SF Mono", monospace;
    font-size      : 0.78rem;
    letter-spacing : 0.08em;
    color          : var(--muted);
}

.copyright .years-inline {
    color       : var(--fg);
    font-weight : 600;
}

.tag-inline {
    color          : var(--accent);
    font-weight    : 700;
    letter-spacing : 0.04em;
    text-shadow    : 0 0 16px rgba(212, 162, 78, 0.35);
}

/* PAGE DOTS */
.page-dots {
    position       : fixed;
    right          : clamp(1rem, 3vw, 2rem);
    top            : 50%;
    transform      : translateY(-50%);
    display        : flex;
    flex-direction : column;
    gap            : 0.7rem;
    z-index        : 20;
}

.page-dots button {
    width         : 8px;
    height        : 8px;
    border-radius : 50%;
    border        : 1px solid var(--accent-dim);
    background    : transparent;
    cursor        : pointer;
    padding       : 0;
    transition    : background 0.25s, transform 0.25s, border-color 0.25s;
}

.page-dots button.active {
    background   : var(--accent);
    border-color : var(--accent);
    transform    : scale(1.3);
}

/* PERSISTENT IMPRESSUM/DATENSCHUTZ — always visible, any view (legal requirement) */
.legal-corner {
    position    : fixed;
    bottom      : 1.1rem;
    right       : 1.3rem;
    z-index     : 30;
    display     : flex;
    align-items : center;
    gap         : 0.6rem;
}

.legal-corner button {
    color           : var(--muted);
    font-size       : 0.75rem;
    letter-spacing  : 0.05em;
    text-decoration : none;
    border          : none;
    border-bottom   : 1px solid transparent;
    background      : none;
    font-family     : inherit;
    cursor          : pointer;
    padding         : 0;
    transition      : color 0.2s, border-color 0.2s;
}

.legal-corner button:hover {
    color        : var(--accent);
    border-color : var(--accent-dim);
}

.legal-sep {
    color     : var(--line);
    font-size : 0.75rem;
}

/* LEGAL MODALS (Impressum, Datenschutz) — overlay dialogs styled to match
   the rest of the one-pager, reachable from the persistent footer links. */
.modal-overlay {
    position        : fixed;
    inset           : 0;
    z-index         : 100;
    display         : flex;
    align-items     : center;
    justify-content : center;
    padding         : 1.5rem;
    background      : rgba(10, 11, 13, 0.75);
    backdrop-filter : blur(6px);
    animation       : modalFadeIn 0.25s ease both;
}

.modal-overlay[hidden] {
    display : none;
}

.modal-card {
    position      : relative;
    width         : 100%;
    max-width     : 680px;
    max-height    : 85vh;
    overflow-y    : auto;
    background    : var(--bg2);
    border        : 1px solid var(--line);
    border-radius : var(--radius);
    padding       : 2.6rem 2.2rem;
    box-shadow    : 0 20px 60px rgba(0, 0, 0, 0.5);
    animation     : modalSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-close {
    position        : absolute;
    top             : 1rem;
    right           : 1rem;
    width           : 32px;
    height          : 32px;
    display         : flex;
    align-items     : center;
    justify-content : center;
    background      : transparent;
    border          : 2px solid var(--line);
    border-radius   : 50%;
    color           : var(--muted);
    cursor          : pointer;
    transition      : color 0.2s, border-color 0.2s;
}

.modal-close:hover {
    color        : var(--accent);
    border-color : var(--accent-dim);
}

.modal-card h2 {
    font-size      : clamp(1.5rem, 4vw, 2rem);
    font-weight    : 800;
    letter-spacing : -0.02em;
    margin-bottom  : 1.4rem;
    padding-right  : 2rem;
}

.modal-card h3 {
    font-size     : 1.05rem;
    font-weight   : 700;
    color         : var(--accent);
    margin-top    : 1.8rem;
    margin-bottom : 0.6rem;
}

.modal-card h3:first-of-type {
    margin-top : 0;
}

.modal-card h4 {
    font-size     : 0.95rem;
    font-weight   : 700;
    color         : var(--fg);
    margin-top    : 1.4rem;
    margin-bottom : 0.4rem;
}

.modal-card h5 {
    font-size     : 0.88rem;
    font-weight   : 700;
    color         : var(--fg);
    margin-top    : 1rem;
    margin-bottom : 0.3rem;
}

.modal-card p,
.modal-card li {
    color         : var(--muted);
    font-size     : 0.92rem;
    line-height   : 1.6;
    margin-bottom : 0.85rem;
}

.modal-card ul {
    padding-left  : 1.2rem;
    margin-bottom : 0.85rem;
}

.modal-card a {
    color           : var(--accent);
    text-decoration : none;
    border-bottom   : 1px solid var(--accent-dim);
}

.modal-card a:hover {
    color : var(--fg);
}

body.modal-open {
    overflow : hidden;
}

@keyframes modalFadeIn {
    from {
        opacity : 0;
    }
    to {
        opacity : 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity   : 0;
        transform : translateY(16px) scale(0.98);
    }
    to {
        opacity   : 1;
        transform : translateY(0) scale(1);
    }
}

/* MOBILE — normal document scrolling instead of paged wheel/touch flipping */
@media (max-width : 640px) {
    html, body {
        height   : auto;
        overflow : auto;
    }

    .viewport {
        height   : auto;
        overflow : visible;
    }

    .pages {
        transition : none;
        transform  : none !important;
    }

    .view {
        height     : auto;
        min-height : 100vh;
        min-height : 100dvh;
    }

    .page-dots {
        display : none;
    }

    .scroll-hint {
        display : none;
    }

    .modal-card {
        padding    : 2.2rem 1.4rem;
        max-height : 90vh;
    }

    .timeline-section h2,
    .founders h2,
    .closing h2 {
        font-size   : clamp(1.5rem, 4vh, 1.8rem);
        line-height : 1.15;
    }

    .timeline-viewport {
        height : clamp(200px, 30vh, 280px);
    }

    .tl-slide {
        padding : 1.4rem 1.6rem 1.9rem;
        gap     : 0.5rem;
    }

    .tl-year {
        font-size : clamp(1.7rem, 4.6vh, 2.4rem);
    }

    .tl-title {
        line-height : 1.25;
    }

    .tl-desc {
        line-height : 1.4;
    }
}
