/* =============================================
   NTE — Narodowy Teatr Edukacji
   Production Stylesheet
   Base: Mockup 83 (Immersive Fullscreen)
   ============================================= */

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #080810;
    --bg-alt: #0e0e18;
    --fg: #f0ece1;
    --dim: rgba(240, 236, 225, .4);
    --dim-strong: rgba(240, 236, 225, .6);
    --accent: #8b1a2b;
    --accent-hover: #a02040;
    --gold: #b8964a;
    --card: #111118;
    --border: rgba(240, 236, 225, .06);
    --border-hover: rgba(240, 236, 225, .12);
    --serif: 'Fraunces', serif;
    --sans: 'Outfit', sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 100px;
    --transition: .4s cubic-bezier(.22, .61, .36, 1);
    --gutter: clamp(2rem, 5vw, 5rem);
}

html {
    background: var(--bg);
    color: var(--fg);
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-color: var(--accent) var(--bg)
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover)
}

body {
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit;
    cursor: pointer
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--transition), transform .8s var(--transition)
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .8s var(--transition), transform .8s var(--transition)
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .8s var(--transition), transform .8s var(--transition)
}

.reveal-scale {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .8s var(--transition), transform .8s var(--transition)
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none
}

.reveal-d1 {
    transition-delay: .15s
}

.reveal-d2 {
    transition-delay: .3s
}

.reveal-d3 {
    transition-delay: .45s
}

.reveal-d4 {
    transition-delay: .6s
}

/* === NAV === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 80px;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .4s, border .4s, backdrop-filter .4s
}

nav.scrolled {
    background: rgba(8, 8, 16, .95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, .4)
}

nav.menu-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none
}

.nav-brand {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: .6rem;
    line-height: 1
}

.nav-brand-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(184, 150, 74, .25)
}

.nav-brand-sub {
    font-family: var(--serif);
    font-size: .95rem;
    color: var(--fg);
    font-weight: 300;
    font-style: italic;
    opacity: .7
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center
}

.nav-links a {
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dim);
    transition: color .3s;
    font-weight: 500
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fg)
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: .65rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all .3s !important;
    box-shadow: 0 4px 15px rgba(214, 73, 51, .2)
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(214, 73, 51, .3)
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    padding: .5rem;
    cursor: pointer
}

.toggle-icon {
    width: 22px;
    height: 22px
}

/* === HERO === */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden
}

@supports (height: 100dvh) {
    .hero { height: 100dvh }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 10s linear;
    transform: scale(1.05)
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.15)
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.5) contrast(1.1)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, var(--bg) 0%, transparent 50%)
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 100px var(--gutter) 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

.hero-text {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

/* Large hero logo */
.hero-logo {
    margin-bottom: 1.5rem
}

.hero-logo img {
    height: clamp(80px, 10vw, 160px);
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .5));
    transition: transform .6s
}

.hero-logo img:hover {
    transform: scale(1.04)
}

.hero-tag {
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-weight: 600
}

.hero-tag::before {
    content: '';
    width: 25px;
    height: 1px;
    background: var(--gold)
}

.hero-subtitle {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
    line-height: 1.15;
    margin-bottom: .2rem
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4.2vw, 5.5rem);
    line-height: .92;
    margin-bottom: .5rem;
    font-weight: 400
}

.hero-title em {
    font-style: italic;
    color: var(--gold)
}

.hero-location {
    font-family: var(--serif);
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dim);
    line-height: 1.2;
    margin-bottom: 2rem
}

.hero-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 2rem
}

.hero-desc {
    font-size: .95rem;
    color: var(--dim);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1.1rem 2.8rem;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .4s;
    border: none
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 25px rgba(214, 73, 51, .25)
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(214, 73, 51, .4)
}

.btn-ghost {
    border: 1px solid rgba(240, 236, 225, .15);
    color: var(--fg);
    background: transparent
}

.btn-ghost:hover {
    border-color: var(--fg);
    background: rgba(240, 236, 225, .03)
}

/* Hero dots */
.hero-dots {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--dim);
    cursor: pointer;
    transition: .3s;
    background: transparent
}

.dot.active {
    background: var(--fg);
    border-color: var(--fg);
    box-shadow: 0 0 10px rgba(240, 236, 225, .3)
}

.dot-counter {
    font-size: .8rem;
    color: var(--dim);
    font-family: var(--serif);
    margin-top: .5rem
}

/* === SECTION SHARED === */
.section {
    padding: clamp(6rem, 12vh, 12rem) clamp(4rem, 10vw, 14rem)
}

.section-alt {
    background: var(--bg-alt)
}

.section-header {
    margin-bottom: clamp(3rem, 6vh, 5rem)
}

.section-tag {
    font-size: .65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.section-tag::before {
    content: '';
    width: 25px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0
}

.section-tag::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent)
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.05
}

.section-title em {
    font-style: italic;
    color: var(--gold)
}

.section-desc {
    font-size: 1.05rem;
    color: var(--dim);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
    margin-top: 1.5rem
}

/* Quick link under text */
.text-link {
    color: var(--fg);
    font-size: .8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: .3s
}

.text-link::after {
    content: '→';
    transition: transform .3s
}

.text-link:hover {
    color: var(--gold)
}

.text-link:hover::after {
    transform: translateX(5px)
}

/* === ABOUT (Nasza Misja — mockup-1 style) === */
.about-mission {
    display: grid;
    grid-template-columns: .5fr 1fr;
    gap: clamp(4rem, 6vw, 6rem);
    align-items: center
}

.about-images {
    position: relative
}

.about-year {
    position: absolute;
    top: 2rem;
    left: -1.5rem;
    font-family: var(--serif);
    font-size: 7rem;
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 150, 74, .25);
    line-height: 1;
    pointer-events: none;
    z-index: 2
}

.about-img-main {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative
}

.about-img-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 16, .6) 0%, rgba(8, 8, 16, .15) 40%, transparent 70%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 2s ease 1s
}

.about-images.visible .about-img-main::after {
    opacity: .7
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.3) brightness(.7);
    transition: filter 2.5s ease 1s
}

.about-images.visible .about-img-main img {
    filter: grayscale(.2) brightness(.55)
}

.about-img-secondary {
    position: absolute;
    width: 55%;
    aspect-ratio: 3/4;
    bottom: -3rem;
    right: -2rem;
    border: 4px solid var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 1
}

.about-img-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 16, .55) 0%, rgba(8, 8, 16, .1) 50%, transparent 80%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 2s ease 1.5s
}

.about-images.visible .about-img-secondary::after {
    opacity: .7
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.3) brightness(.65);
    transition: filter 2.5s ease 1.5s
}

.about-images.visible .about-img-secondary img {
    filter: grayscale(.2) brightness(.55)
}

.about-paragraph {
    font-size: .95rem;
    line-height: 1.9;
    color: var(--dim);
    font-weight: 300;
    margin-bottom: 1.5rem
}

.about-dim {
    color: var(--dim);
    font-style: italic;
    font-size: .85rem
}

.about-subheading {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gold);
    margin: 2rem 0 1rem
}

.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem
}

.about-list li {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--dim);
    font-weight: 300;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: .6rem
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold)
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem
}

.about-stat-val {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
    line-height: 1
}

.about-stat-lbl {
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dim)
}

/* === REPERTOIRE (Vertical list + accordion) === */
.play-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .5s
}

.play-item:last-of-type {
    border-bottom: 1px solid var(--border)
}

.play-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pi-bg) center/cover no-repeat;
    opacity: 0;
    transition: opacity .6s;
    z-index: 0;
    filter: brightness(.2) saturate(.5)
}

.play-item:hover::before {
    opacity: 1
}

.play-item.active::before {
    opacity: .6;
    filter: brightness(.15) saturate(.4)
}

.pi-num {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 300;
    color: rgba(240, 236, 225, .06);
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: .5s;
    text-align: center
}

.play-item:hover .pi-num {
    color: rgba(184, 150, 74, .3)
}

.pi-info {
    position: relative;
    z-index: 1
}

.pi-title {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    font-weight: 400;
    line-height: .92;
    transition: padding .4s
}

.play-item:hover .pi-title {
    padding-left: .8rem
}

.pi-meta {
    font-size: .7rem;
    color: var(--dim);
    letter-spacing: .1em;
    margin-top: .4rem;
    transition: .3s
}

.pi-action {
    position: relative;
    z-index: 1;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(240, 236, 225, .2);
    transition: .4s;
    white-space: nowrap
}

.play-item:hover .pi-action {
    color: var(--gold)
}

.pi-arrow {
    display: inline-block;
    transition: .4s;
    margin-left: .5rem
}

.play-item:hover .pi-arrow {
    transform: translateX(8px)
}

/* Play detail accordion */
.play-detail-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .6s cubic-bezier(.23, 1, .32, 1)
}

.play-detail-wrap > * {
    overflow: hidden
}

.play-detail-wrap.open {
    grid-template-rows: 1fr
}

.play-detail-img,
.play-detail-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.23, 1, .32, 1)
}

.play-detail-wrap.open .play-detail-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .3s
}

.play-detail-wrap.open .play-detail-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .5s
}

.play-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-top: 1px solid var(--border);
    overflow: hidden
}


.play-detail-img {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    max-height: 506px
}

.play-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    filter: grayscale(.3) brightness(.6);
    transition: all 1.2s
}

.play-detail-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, var(--bg-alt));
    pointer-events: none
}

.play-detail-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem clamp(1.5rem, 2.5vw, 3rem)
}

.rep-feat-label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem
}

.rep-feat-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--gold)
}

.rep-feat-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: .6rem
}

.rep-feat-author {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: .85rem;
    margin-bottom: 1.2rem
}

.rep-feat-desc {
    font-size: .85rem;
    line-height: 1.6;
    color: var(--dim);
    font-weight: 300;
    max-width: 450px;
    margin-bottom: 1.5rem
}

.rep-feat-stats {
    display: flex;
    gap: 3rem
}

.rep-feat-stat-l {
    font-size: .625rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dim);
    display: block
}

.rep-feat-stat-v {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400
}

/* Repertoire Slideshow (detail view) */
.rep-slideshow {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%
}

.rep-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.05)
}

.rep-slide.active {
    opacity: 1
}

.rep-slide.zooming {
    transform: scale(1.15);
    transition: opacity 1.2s ease-in-out, transform 10s linear
}

.rep-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.4) brightness(.55)
}

.rep-slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
    z-index: 5
}

.rep-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(240, 236, 225, .5);
    background: transparent;
    cursor: pointer;
    transition: all .3s
}

.rep-dot.active {
    background: var(--fg);
    border-color: var(--fg);
    box-shadow: 0 0 8px rgba(240, 236, 225, .3)
}

/* === TEAM (Tabs) === */
.tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem
}

.tab-btn {
    padding: .8rem 2rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--dim);
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .3s
}

.tab-btn:hover {
    border-color: var(--fg);
    color: var(--fg)
}

.tab-btn.active {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg)
}

.tab-content {
    display: none
}

.tab-content.active {
    display: block
}

/* Team compact cards (small circular photos) */
.team-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 1.5rem
}

.team-grid-2 {
    grid-template-columns: repeat(2, 1fr)
}

.tc-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    background: linear-gradient(135deg, var(--card) 0%, #1a1520 50%, #151018 100%);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    border: 1px solid rgba(184, 150, 74, .2);
    transition: all .4s
}

.tc-card:hover {
    border-color: rgba(184, 150, 74, .45);
    box-shadow: 0 6px 24px rgba(184, 150, 74, .1), 0 8px 20px rgba(0, 0, 0, .3)
}

.tc-photo {
    width: 204px;
    height: 204px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(184, 150, 74, .4);
    box-shadow: 0 0 12px rgba(184, 150, 74, .15)
}

.tc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.5);
    transition: all .4s
}

.tc-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    background: rgba(255, 255, 255, .05);
    letter-spacing: 2px
}

.tc-card:hover .tc-photo img {
    filter: grayscale(0);
    transform: scale(1.1)
}

.tc-info {
    flex: 1
}

.tc-name {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: .2rem
}

.tc-role {
    font-size: .65rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 1.5px
}

.tc-card--has-bio {
    flex-wrap: wrap
}

.tc-bio-preview {
    width: 100%;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    margin-top: .4rem
}

.tc-bio-preview-text {
    font-size: .82rem;
    color: var(--dim);
    line-height: 1.6;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.tc-bio-more {
    display: inline-block;
    margin-top: .5rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    cursor: pointer;
    transition: color .3s;
    background: none;
    border: none;
    padding: 0
}

.tc-bio-more:hover {
    color: var(--fg)
}

/* Bio Modal */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s
}

.bio-modal.open {
    opacity: 1;
    pointer-events: auto
}

.bio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.bio-modal-content {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 1100px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(30px) scale(.97);
    transition: transform .4s cubic-bezier(.23, 1, .32, 1);
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr
}

.bio-modal.open .bio-modal-content {
    transform: translateY(0) scale(1)
}

.bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: var(--fg);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s
}

.bio-modal-close:hover {
    background: rgba(0, 0, 0, .8)
}

.bio-modal-header {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2.5rem;
    background: rgba(0, 0, 0, .2);
    border-right: 1px solid var(--border);
    text-align: center
}

.bio-modal-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(184, 150, 74, .4)
}

.bio-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.bio-modal-photo .tc-initials {
    font-size: 2.5rem
}

.bio-modal-name {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: .2rem
}

.bio-modal-role {
    font-size: .65rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600
}

.bio-modal-body {
    grid-column: 2;
    grid-row: 1 / -1;
    padding: 2.5rem 3rem;
    overflow-y: auto
}

.bio-modal-text {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--dim-strong);
    font-weight: 300;
    white-space: pre-line;
    columns: 2;
    column-gap: 2.5rem
}

/* === ACTORS (Large portrait grid with cascade) === */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem
}

.actor-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all .5s cubic-bezier(.22, .61, .36, 1)
}

.actor-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4)
}

.actor-card-photo {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden
}

.actor-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.3) brightness(.85);
    transition: all .7s cubic-bezier(.22, .61, .36, 1)
}

.actor-card:hover .actor-card-photo img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.03)
}

.actor-info {
    padding: 1.5rem 2rem
}

.actor-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: .3rem
}

.actor-since {
    font-size: .65rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto
}

.news-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .5s
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .4)
}

.news-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.3);
    transition: all .6s
}

.news-card:hover .news-card-img img {
    filter: grayscale(0);
    transform: scale(1.05)
}

.news-card-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: #fff;
    padding: .4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: .6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600
}

.news-card-body {
    padding: 2rem
}

.news-card-date {
    display: block;
    font-size: .7rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .8rem
}

.news-card-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: .8rem;
    line-height: 1.2
}

.news-card-excerpt {
    font-size: .9rem;
    color: var(--dim);
    line-height: 1.6;
    font-weight: 300
}


/* === GALLERY (3D Carousel + Filmstrip) === */
.gallery-slider {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 70px;
    overflow: hidden
}

.gallery-stage {
    position: relative;
    height: clamp(380px, 60vh, 650px);
    perspective: 1200px
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d
}

.gallery-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .7s cubic-bezier(.23, 1, .32, 1),
                opacity .5s ease,
                border-color .5s ease,
                box-shadow .5s ease;
    cursor: pointer;
    backface-visibility: hidden;
    border: 2px solid rgba(184, 150, 74, .3)
}

/* Blurred background fill (covers letterbox gaps) */
.gallery-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(30px) brightness(.4) saturate(1.2);
    transform: scale(1.15);
    z-index: 0;
    transition: filter .7s cubic-bezier(.23, 1, .32, 1)
}

/* Main image (no crop) */
.gallery-slide-main {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
    transition: filter .7s cubic-bezier(.23, 1, .32, 1),
                transform .7s cubic-bezier(.23, 1, .32, 1)
}

/* Subtle zoom on center image */
.gallery-slide[data-pos="0"] .gallery-slide-main {
    transform: scale(1)
}

.gallery-slide[data-pos="-1"] .gallery-slide-main,
.gallery-slide[data-pos="1"] .gallery-slide-main {
    transform: scale(.97)
}

/* Center slide */
.gallery-slide[data-pos="0"] {
    z-index: 3;
    transform: translate(-50%, -50%) translateZ(0);
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 20px rgba(184, 150, 74, .15)
}

/* Left slide */
.gallery-slide[data-pos="-1"] {
    z-index: 2;
    transform: translate(-50%, -50%) translateX(-72%) translateZ(-120px) rotateY(8deg) scale(.82);
    cursor: pointer;
    border-color: rgba(184, 150, 74, .15)
}

.gallery-slide[data-pos="-1"] .gallery-slide-main {
    filter: brightness(.35) grayscale(.4)
}

.gallery-slide[data-pos="-1"] .gallery-slide-bg {
    filter: blur(30px) brightness(.2) saturate(.5)
}

/* Right slide */
.gallery-slide[data-pos="1"] {
    z-index: 2;
    transform: translate(-50%, -50%) translateX(72%) translateZ(-120px) rotateY(-8deg) scale(.82);
    cursor: pointer;
    border-color: rgba(184, 150, 74, .15)
}

.gallery-slide[data-pos="1"] .gallery-slide-main {
    filter: brightness(.35) grayscale(.4)
}

.gallery-slide[data-pos="1"] .gallery-slide-bg {
    filter: blur(30px) brightness(.2) saturate(.5)
}

/* Hidden slides */
.gallery-slide[data-pos="-2"],
.gallery-slide[data-pos="2"] {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    border-color: transparent
}

.gallery-slide[data-pos="-2"] {
    transform: translate(-50%, -50%) translateX(-110%) translateZ(-250px) scale(.6)
}

.gallery-slide[data-pos="2"] {
    transform: translate(-50%, -50%) translateX(110%) translateZ(-250px) scale(.6)
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(8, 8, 16, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(240, 236, 225, .15);
    color: var(--fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    padding: 0;
    opacity: 0;
    line-height: 1
}

.gallery-slider:hover .gallery-arrow {
    opacity: 1
}

.gallery-arrow:hover {
    background: rgba(8, 8, 16, .85);
    border-color: var(--gold);
    color: var(--gold)
}

.gallery-arrow svg {
    width: 20px;
    height: 20px
}

.gallery-prev {
    left: -60px
}

.gallery-next {
    right: -60px
}

.gallery-caption {
    text-align: center;
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--dim);
    margin-top: 1.2rem;
    min-height: 1.6em;
    transition: opacity .3s
}

.gallery-counter {
    text-align: center;
    font-size: .75rem;
    color: var(--dim);
    letter-spacing: 2px;
    margin-top: .3rem
}

.gallery-filmstrip {
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative
}

.gallery-filmstrip::before,
.gallery-filmstrip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none
}

.gallery-filmstrip::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent)
}

.gallery-filmstrip::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent)
}

.gallery-filmstrip-track {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scroll-behavior: smooth
}

.gallery-filmstrip-track::-webkit-scrollbar {
    display: none
}

.gallery-thumb {
    flex: 0 0 90px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .5;
    transition: all .3s;
    position: relative
}

.gallery-thumb:hover {
    opacity: .8
}

.gallery-thumb.active {
    border-color: var(--gold);
    opacity: 1;
    box-shadow: 0 0 12px rgba(184, 150, 74, .3)
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* News Modal */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s
}

.news-modal.open {
    opacity: 1;
    pointer-events: auto
}

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.news-modal-content {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px) scale(.97);
    transition: transform .4s cubic-bezier(.23, 1, .32, 1)
}

.news-modal.open .news-modal-content {
    transform: translateY(0) scale(1)
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: var(--fg);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s
}

.news-modal-close:hover {
    background: rgba(0, 0, 0, .8)
}

.news-modal-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0
}

.news-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.news-modal-cat {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(8, 8, 16, .7);
    padding: .4rem 1rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px)
}

.news-modal-body {
    padding: 2rem 2.5rem 2.5rem
}

.news-modal-date {
    display: block;
    font-size: .7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: .8rem
}

.news-modal-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem
}

.news-modal-text {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--dim-strong);
    font-weight: 300
}

.news-modal-text p {
    margin-bottom: 1.2rem
}

.news-modal-text h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    color: var(--fg)
}

.news-modal-text ol,
.news-modal-text ul {
    padding-left: 1.5rem;
    margin-bottom: 2rem
}

.news-modal-text ol li,
.news-modal-text ul li {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--dim-strong);
    margin-bottom: .6rem
}

.news-modal-text .som-full-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

.news-modal-text .som-full-link a {
    color: var(--gold);
    font-weight: 500;
    transition: color .3s
}

.news-modal-text .som-full-link a:hover {
    color: var(--accent-hover)
}

.news-modal-text a {
    color: var(--gold);
    transition: color .3s
}

.news-modal-text a:hover {
    color: var(--accent-hover)
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem
}

.lightbox.open {
    display: flex
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm)
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 510
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 510;
    transition: all .3s
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .5)
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px
}

.lightbox-prev {
    left: 2rem
}

.lightbox-next {
    right: 2rem
}

/* === TEATR ALERT (Profilaktyczny) === */
.alert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem
}

.alert-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .4s;
    overflow: hidden;
    cursor: pointer
}

.alert-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4)
}

.alert-card-img {
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative
}

.alert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.3) brightness(.7);
    transition: all .6s
}

.alert-card:hover .alert-card-img img {
    filter: grayscale(0) brightness(.85);
    transform: scale(1.05)
}

.alert-card-topic {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: .35rem .8rem;
    border-radius: var(--radius-pill)
}

.alert-card-body {
    padding: 1.5rem 1.8rem 1.8rem
}

.alert-card-age {
    font-size: .65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: .6rem
}

.alert-card-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: .3rem
}

.alert-card-author {
    font-family: var(--serif);
    font-style: italic;
    color: var(--dim);
    font-size: .8rem;
    margin-bottom: 1rem
}

.alert-card-desc {
    font-size: .85rem;
    color: var(--dim);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 1.2rem
}

.alert-card-files-badge {
    font-size: .7rem;
    font-weight: 500;
    color: var(--gold);
    padding: .5rem 1rem;
    border: 1px solid rgba(184, 150, 74, .25);
    border-radius: var(--radius-pill);
    display: inline-block
}

/* Alert Detail */
.alert-detail-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height .6s cubic-bezier(.23, 1, .32, 1)
}

.alert-detail-wrap.open {
    max-height: 100vh;
    margin-top: 2rem
}

.alert-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card)
}

.alert-detail-img {
    overflow: hidden
}

.alert-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px
}

.alert-detail-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.alert-detail-topic {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: .35rem .8rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    width: fit-content;
    margin-bottom: 1.2rem
}

.alert-detail-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    margin-bottom: .5rem
}

.alert-detail-author {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: .9rem;
    margin-bottom: .3rem
}

.alert-detail-meta {
    font-size: .75rem;
    color: var(--dim);
    margin-bottom: 1.5rem
}

.alert-detail-desc {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--dim-strong);
    font-weight: 300;
    margin-bottom: 2rem
}

.alert-detail-files {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem
}

.alert-files-heading {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem
}

.alert-file-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    margin-bottom: .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--fg);
    transition: all .3s
}

.alert-file-link:hover {
    border-color: var(--gold);
    background: rgba(184, 150, 74, .08)
}

.alert-file-link svg {
    color: var(--gold);
    flex-shrink: 0
}

/* === CAREER (Accordion — mockup-45 style) === */
.career-accordion {
    border-top: 1px solid var(--border)
}

.acc-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: background .5s
}

.acc-item:hover {
    background: rgba(184, 150, 74, .03)
}

.acc-header {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    transition: padding .4s
}

.acc-item.open .acc-header {
    padding-bottom: 1rem
}

.acc-num {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: rgba(184, 150, 74, .25);
    font-weight: 400;
    text-align: center;
    transition: color .3s
}

.acc-item:hover .acc-num,
.acc-item.open .acc-num {
    color: var(--gold)
}

.acc-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    transition: color .3s
}

.acc-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s;
    justify-self: end
}

.acc-item:hover .acc-toggle {
    border-color: rgba(184, 150, 74, .25)
}

.acc-item.open .acc-toggle {
    transform: rotate(45deg);
    border-color: var(--gold);
    background: var(--gold);
    color: var(--bg)
}

.acc-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s cubic-bezier(.23, 1, .32, 1), padding .4s;
    padding: 0 0 0 76px
}

.acc-item.open .acc-detail {
    max-height: 300px;
    padding: 0 0 2rem 76px
}

.acc-detail-inner {
    max-width: 600px
}

.acc-desc {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--dim);
    font-weight: 300;
    margin-bottom: 1.5rem
}

.acc-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 2rem;
    border: 1px solid rgba(184, 150, 74, .3);
    color: var(--gold);
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .4s
}

.acc-cta:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold)
}

/* === FOOTER === */
footer {
    padding: 6rem clamp(4rem, 10vw, 14rem) 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden
}

footer::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse, rgba(139, 26, 43, .25) 0%, transparent 70%);
    pointer-events: none
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 400
}

.footer-desc {
    color: var(--dim);
    font-size: .95rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 360px
}

.footer-col-title {
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 600
}

.footer-link {
    display: block;
    color: var(--dim);
    font-size: .95rem;
    margin-bottom: 1rem;
    transition: color .3s;
    font-weight: 300
}

.footer-link:hover {
    color: var(--fg)
}

.footer-link--accent {
    color: var(--accent);
    font-weight: 500
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem
}

.footer-social {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    font-size: .85rem
}

.footer-social svg {
    width: 22px;
    height: 22px
}

.footer-social:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg)
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .65rem;
    color: var(--dim);
    letter-spacing: 1px;
    text-transform: uppercase
}

/* === POLEST Modal === */
.polest-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s
}

.polest-modal.open {
    opacity: 1;
    pointer-events: auto
}

.polest-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.polest-modal-content {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 860px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    transform: translateY(30px) scale(.97);
    transition: transform .4s cubic-bezier(.23, 1, .32, 1)
}

.polest-modal.open .polest-modal-content {
    transform: translateY(0) scale(1)
}

.polest-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: var(--fg);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s
}

.polest-modal-close:hover {
    background: rgba(0, 0, 0, .8)
}

.polest-modal-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--gold)
}

.polest-modal-body p {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--dim-strong);
    margin-bottom: 1.2rem
}

.polest-modal-body h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--fg)
}

.polest-dept {
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 2px solid var(--gold);
    background: rgba(184, 150, 74, .04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0
}

.polest-dept h4 {
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: .4rem
}

.polest-dept p {
    font-size: .85rem;
    margin-bottom: 0
}

.polest-founders,
.polest-goals {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem
}

.polest-founders li,
.polest-goals li {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--dim-strong);
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: .5rem
}

.polest-founders li::before,
.polest-goals li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold)
}

.polest-founders li strong {
    color: var(--fg)
}

.polest-note {
    font-style: italic;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

/* === RESPONSIVE === */
@media(max-width:1400px) {
    .hero-title {
        font-size: clamp(2.5rem, 4.5vw, 5rem)
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 1.6vw, 1.8rem)
    }

    .hero-location {
        font-size: clamp(1rem, 1.4vw, 1.6rem)
    }

    .hero-logo img {
        height: clamp(70px, 8vw, 120px)
    }

    .hero-logo {
        margin-bottom: 1rem
    }
}

@media(max-width:1200px) {
    .hero-title {
        font-size: clamp(2rem, 4vw, 3.5rem)
    }

    .hero-subtitle {
        font-size: clamp(1rem, 1.5vw, 1.5rem)
    }

    .hero-location {
        font-size: clamp(.9rem, 1.3vw, 1.3rem)
    }

    .hero-logo img {
        height: clamp(60px, 7vw, 100px)
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem
    }
}

@media(max-width:1000px) {
    .hero {
        height: auto;
        min-height: auto
    }

    .hero-content {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 70px;
        padding-bottom: 2rem
    }

    .hero-dots {
        flex-direction: row
    }

    .about-mission {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .about-img-main {
        display: none
    }

    .about-img-secondary {
        position: relative;
        width: 100%;
        aspect-ratio: 3/2;
        bottom: auto;
        right: auto;
        border: none
    }

    .about-year {
        font-size: 4.5rem
    }

    .play-item {
        grid-template-columns: 40px 1fr auto;
        gap: 1rem;
        padding: 1.5rem 0
    }

    .pi-num {
        font-size: 1.8rem
    }

    .pi-title {
        font-size: clamp(1.3rem, 4vw, 2rem)
    }

    .play-detail {
        grid-template-columns: 1fr
    }


    .play-detail-img {
        height: 35vh
    }

    .play-detail-img::after {
        background: linear-gradient(to top, var(--bg-alt) 0%, transparent 40%)
    }

    .play-detail-text {
        padding: 2rem 1.5rem
    }

    .rep-slideshow {
        height: 35vh
    }

    .bio-modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-width: 600px
    }

    .bio-modal-header {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        text-align: left
    }

    .bio-modal-photo {
        width: 80px;
        height: 80px
    }

    .bio-modal-body {
        grid-column: 1;
        grid-row: 2
    }

    .bio-modal-text {
        columns: 1
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem
    }

    .alert-grid {
        grid-template-columns: 1fr
    }

    .alert-detail-inner {
        grid-template-columns: 1fr
    }

    .alert-detail-img img {
        min-height: 250px
    }

    .news-grid {
        grid-template-columns: 1fr
    }

    .gallery-slider {
        padding: 0;
        overflow: hidden
    }

    .gallery-stage {
        height: clamp(260px, 40vh, 400px);
        overflow: hidden
    }

    .gallery-slide {
        width: 65%
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        opacity: 1
    }

    .gallery-prev {
        left: .5rem
    }

    .gallery-next {
        right: .5rem
    }

    .gallery-thumb {
        flex: 0 0 70px;
        height: 48px
    }

    .acc-header {
        grid-template-columns: 40px 1fr 40px
    }

    .acc-detail {
        padding-left: 56px
    }

    .acc-item.open .acc-detail {
        padding-left: 56px
    }

    .team-compact-grid {
        grid-template-columns: 1fr
    }

    .tc-card {
        padding: .8rem 1rem;
        gap: .8rem
    }

    .tc-photo {
        width: 80px;
        height: 80px
    }

    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))
    }


    nav {
        height: 60px;
        padding: 0 1.2rem
    }

    .nav-brand-name {
        font-size: .85rem;
        letter-spacing: 1px
    }

    .nav-brand-sub {
        display: none
    }

    .nav-toggle {
        display: block;
        z-index: 1010
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        z-index: 1000
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        font-size: .85rem;
        letter-spacing: 2px
    }
}

@media(max-width:600px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem)
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.8rem)
    }

    .hero-location {
        font-size: clamp(1rem, 3vw, 1.5rem)
    }

    .hero-logo img {
        height: clamp(60px, 12vh, 90px)
    }

    .hero-btns .btn {
        padding: .9rem 2rem;
        font-size: .7rem
    }

    .hero-desc {
        font-size: .85rem;
        -webkit-line-clamp: 3
    }

    .about-mission {
        gap: 2rem
    }

    .about-img-secondary {
        aspect-ratio: 3/2
    }

    .about-year {
        font-size: 3rem;
        top: 1rem;
        left: -.5rem
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem
    }

    .about-stat-val {
        font-size: 2rem
    }

    .about-stat-lbl {
        font-size: .625rem
    }

    .about-paragraph {
        font-size: .85rem
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem)
    }

    .section {
        padding: 4rem 1.2rem
    }

    .play-item {
        grid-template-columns: 30px 1fr;
        gap: .8rem;
        padding: 1.2rem 0
    }

    .pi-num {
        font-size: 1.8rem
    }

    .pi-action {
        display: none
    }

    .play-detail-img {
        height: 30vh
    }

    .play-detail-text {
        padding: 1.5rem 1.2rem
    }

    .rep-feat-title {
        font-size: 1.5rem
    }

    .rep-feat-desc {
        font-size: .85rem
    }

    .rep-feat-stats {
        gap: 1.5rem;
        flex-wrap: wrap
    }

    .team-compact-grid {
        grid-template-columns: 1fr
    }

    .actors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem
    }

    .gallery-stage {
        height: clamp(220px, 35vh, 320px);
        overflow: hidden
    }

    .gallery-slide {
        width: 75%
    }

    .gallery-slide[data-pos="-1"] {
        transform: translate(-50%, -50%) translateX(-55%) translateZ(-80px) rotateY(5deg) scale(.7)
    }

    .gallery-slide[data-pos="1"] {
        transform: translate(-50%, -50%) translateX(55%) translateZ(-80px) rotateY(-5deg) scale(.7)
    }

    .gallery-thumb {
        flex: 0 0 60px;
        height: 42px
    }

    .gallery-caption {
        font-size: .85rem
    }

    footer {
        padding: 4rem 1.2rem 2rem
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .footer-bottom {
        flex-direction: column;
        gap: .5rem
    }

    .tabs {
        gap: .5rem
    }

    .tab-btn {
        padding: .6rem 1.2rem;
        font-size: .65rem
    }

}