/* Tegne Teater — style.css v3 — Refined Storybook Aesthetic */
:root {
  --deep: #0B0A1A;
  --night: #12112A;
  --plum: #1E1A3A;
  --curtain: #6B1E2F;
  --curtain-deep: #3D0F1A;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-muted: #9A7B3C;
  --cream: #F5F0E3;
  --cream-muted: rgba(245,240,227,.7);
  --blush: #D4A0A0;
  --sage: #8FAE8B;
  --warm: #C67D4A;
  --star: #E8D48B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  background: var(--deep);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--deep); padding: 8px 20px; border-radius: 0 0 8px 8px; z-index: 99999; font-weight: 600; text-decoration: none; transition: top .3s; }
.skip-link:focus { top: 0; }

/* ─── ANNOUNCEMENT BAR ─── */
.announce-bar { background: linear-gradient(90deg, var(--curtain-deep), var(--curtain), var(--curtain-deep)); color: var(--cream); text-align: center; padding: 8px 40px; font-size: .82rem; font-weight: 500; letter-spacing: .3px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.announce-bar button { background: none; border: none; color: inherit; font-size: .9rem; cursor: pointer; opacity: .5; transition: opacity .3s; }
.announce-bar button:hover { opacity: 1; }

/* ─── HEADER / NAV ─── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; }
.main-nav { padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(180deg, rgba(11,10,26,.95) 0%, rgba(11,10,26,.8) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(201,168,76,.1); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.6rem; }
.logo-text h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--gold-light); letter-spacing: .5px; line-height: 1; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--cream-muted); text-decoration: none; padding: 8px 16px; border-radius: 6px; transition: all .25s; letter-spacing: .2px; }
.nav-links a:hover { color: var(--cream); background: rgba(245,240,227,.06); }
.nav-links a.active { color: var(--gold-light); background: rgba(201,168,76,.1); }
.mobile-menu { display: none; }

/* ─── HERO ─── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px 0; overflow: hidden; background: var(--deep); }

/* Video / image background — starts below nav */
.hero-bg { position: absolute; top: 58px; left: 0; right: 0; bottom: 0; z-index: 0; background: var(--deep); }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-bg-overlay { position: absolute; inset: 0; background: #000; z-index: 1; pointer-events: none; opacity: 0; }
.hero-bg-fallback { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 20%, rgba(107,30,47,.15) 0%, transparent 50%),
  radial-gradient(ellipse at 30% 70%, rgba(76,60,120,.12) 0%, transparent 50%),
  radial-gradient(ellipse at 70% 60%, rgba(143,174,139,.06) 0%, transparent 40%),
  linear-gradient(180deg, var(--deep) 0%, var(--night) 50%, var(--plum) 100%);
}

/* Star field background */
.hero-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: 2px; height: 2px; background: var(--star); border-radius: 50%; animation: starPulse var(--dur, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); opacity: 0; }
.star.bright { width: 3px; height: 3px; box-shadow: 0 0 6px var(--star), 0 0 12px rgba(232,212,139,.3); }
@keyframes starPulse { 0%, 100% { opacity: 0; } 40%, 60% { opacity: var(--max-o, .6); } }

/* Curtain — subtle gradient at bottom only */
.hero-curtain { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; pointer-events: none; }
.hero-curtain-fabric {
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(11,10,26,.4) 40%,
    rgba(11,10,26,.85) 75%,
    var(--deep) 100%
  );
}

/* Hero content */
.hero-content { text-align: center; position: relative; z-index: 10; max-width: 720px; animation: heroIn 1s ease 3s both; display: flex; flex-direction: column; align-items: center; gap: 20px; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge { display: inline-block; padding: 6px 20px; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); border-radius: 100px; font-size: .8rem; font-weight: 500; color: var(--gold); letter-spacing: .5px; }
.hero h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; color: var(--cream); text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.hero h2 .line2 { display: block; font-style: italic; font-size: .5em; color: var(--gold-light); font-weight: 400; margin-top: 8px; text-shadow: 0 1px 20px rgba(0,0,0,.4); }
.hero-subtitle { font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--cream-muted); line-height: 1.7; max-width: 540px; font-weight: 400; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 100px; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .3s ease; letter-spacing: .2px; }
.btn-primary { background: var(--gold); color: var(--deep); box-shadow: 0 4px 20px rgba(201,168,76,.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,.3); background: var(--gold-light); }
.btn-secondary { background: rgba(245,240,227,.06); color: var(--cream); border: 1px solid rgba(245,240,227,.15); }
.btn-secondary:hover { background: rgba(245,240,227,.1); transform: translateY(-2px); }
.btn-icon { font-size: 1.1em; }

/* ─── SCROLL BANNER ─── */
.scroll-banner { background: var(--curtain-deep); padding: 14px 0; overflow: hidden; position: relative; border-top: 1px solid rgba(201,168,76,.1); border-bottom: 1px solid rgba(201,168,76,.1); }
.scroll-banner-track { display: flex; animation: sBanner 30s linear infinite; width: max-content; }
.scroll-banner-item { font-family: 'Playfair Display', serif; font-weight: 500; font-size: .85rem; color: var(--gold-muted); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 12px; letter-spacing: 1px; text-transform: uppercase; }
.scroll-banner-item .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; opacity: .5; flex-shrink: 0; }
@keyframes sBanner { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTIONS ─── */
section { padding: 100px 40px; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { font-size: .75rem; font-weight: 600; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--cream); line-height: 1.2; }
.section-title em { font-style: italic; color: var(--gold-light); }
.section-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-muted), transparent); margin: 20px auto 0; }

/* ─── MANIFESTO ─── */
.manifesto-section { background: linear-gradient(180deg, var(--deep), var(--night)); }
.manifesto-body { max-width: 600px; margin: 0 auto; text-align: center; font-size: 1rem; color: var(--cream-muted); line-height: 1.9; }

/* ─── STORIES ─── */
.stories-section { background: linear-gradient(180deg, var(--night), var(--deep)); }
.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.story-card { background: rgba(245,240,227,.03); border: 1px solid rgba(245,240,227,.06); border-radius: 16px; padding: 32px 24px; text-align: center; transition: all .4s ease; cursor: pointer; }
.story-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.2); background: rgba(245,240,227,.05); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.story-card-img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.story-emoji { font-size: 2.4rem; margin-bottom: 14px; display: block; transition: transform .4s ease; }
.story-card:hover .story-emoji { transform: scale(1.15); }
.story-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.story-desc { font-size: .85rem; color: var(--cream-muted); line-height: 1.6; margin-bottom: 16px; }
.story-tag { display: inline-block; padding: 4px 14px; background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.12); border-radius: 100px; font-size: .72rem; color: var(--gold); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

/* ─── HOW ─── */
.how-section { background: linear-gradient(180deg, var(--deep), var(--night)); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.how-step { text-align: center; }
.step-number { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.how-step h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--cream); margin-bottom: 10px; }
.how-step p { font-size: .88rem; color: var(--cream-muted); line-height: 1.65; }

/* ─── PRESS ─── */
.press-section { background: var(--deep); padding: 60px 40px; }
.press-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.press-item img { height: 24px; filter: grayscale(1); opacity: .25; transition: all .3s; }
.press-item img:hover { filter: grayscale(0); opacity: .8; }
.press-item span { font-size: .8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--cream); opacity: .15; transition: opacity .3s; font-weight: 500; }
.press-item span:hover { opacity: .6; }

/* ─── ABOUT ─── */
.about-section { background: linear-gradient(180deg, var(--night), var(--deep)); }
.about-content { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: center; }
.about-portrait { width: 240px; height: 300px; border-radius: 16px; background: rgba(245,240,227,.03); border: 1px solid rgba(245,240,227,.08); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.about-portrait-inner { text-align: center; }
.about-portrait-emoji { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.about-portrait-label { font-size: .85rem; color: var(--gold-muted); font-weight: 500; }
.about-text h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--cream); margin-bottom: 14px; font-weight: 600; }
.about-text p { font-size: .9rem; color: var(--cream-muted); line-height: 1.8; margin-bottom: 12px; }
.about-text strong { color: var(--gold-light); font-weight: 600; }
.about-qualities { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.quality-badge { padding: 6px 14px; background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.12); border-radius: 100px; font-size: .78rem; color: var(--gold); font-weight: 500; }

/* ─── TESTIMONIALS ─── */
.testimonials-section { background: linear-gradient(180deg, var(--deep), var(--night)); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.testimonial-card { background: rgba(245,240,227,.025); border: 1px solid rgba(245,240,227,.05); border-radius: 16px; padding: 28px; }
.testimonial-card::before { content: '\201C'; font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--gold); opacity: .1; position: absolute; top: 12px; left: 20px; line-height: 1; }
.testimonial-text { font-size: .9rem; color: var(--cream-muted); line-height: 1.75; font-style: italic; margin-bottom: 20px; position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.15); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.testimonial-name { font-weight: 600; color: var(--cream); font-size: .85rem; }
.testimonial-role { font-size: .75rem; color: var(--cream-muted); opacity: .6; }

/* ─── NEWSLETTER ─── */
.newsletter-section { background: linear-gradient(180deg, var(--night), var(--deep)); text-align: center; padding: 100px 40px; }
.newsletter-sub { font-size: .95rem; color: var(--cream-muted); margin-top: 12px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; max-width: 440px; margin: 30px auto 0; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 200px; padding: 12px 20px; border-radius: 100px; border: 1px solid rgba(245,240,227,.1); background: rgba(245,240,227,.04); color: var(--cream); font-size: .9rem; outline: none; transition: border-color .3s; }
.newsletter-form input[type=email]:focus { border-color: rgba(201,168,76,.4); }
.newsletter-form input[type=email]::placeholder { color: rgba(245,240,227,.3); }
.newsletter-gdpr { font-size: .72rem; color: rgba(245,240,227,.35); margin-top: 12px; }
.newsletter-gdpr a { color: var(--gold-muted); }
.newsletter-msg { margin-top: 15px; font-size: .9rem; min-height: 24px; }

/* ─── CTA ─── */
.cta-section { background: linear-gradient(180deg, var(--deep), var(--night)); text-align: center; padding: 100px 40px; }
.cta-subtitle { font-size: 1rem; color: var(--cream-muted); margin-bottom: 28px; }

/* ─── FOOTER ─── */
footer { background: #060510; border-top: 1px solid rgba(245,240,227,.05); padding: 50px 40px 25px; }
.footer-content { max-width: 1000px; margin: 0 auto 35px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 35px; }
.footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--cream); margin-bottom: 10px; font-weight: 600; }
.footer-brand p { font-size: .82rem; color: var(--cream-muted); opacity: .5; line-height: 1.6; }
.footer-col h4 { font-size: .75rem; color: var(--gold-muted); margin-bottom: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.footer-col a { display: block; color: var(--cream-muted); opacity: .5; text-decoration: none; font-size: .82rem; margin-bottom: 7px; transition: opacity .3s; }
.footer-col a:hover { opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(245,240,227,.04); padding-top: 18px; text-align: center; font-size: .78rem; color: rgba(245,240,227,.25); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── CURTAIN OPENING ANIMATION ─── */
.curtain-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; background: var(--curtain-deep); animation: curtainRise 2s cubic-bezier(.4,0,.2,1) 1.5s forwards; }
@keyframes curtainRise { to { transform: translateY(-100%); } }
.curtain-welcome { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10000; text-align: center; pointer-events: none; opacity: 0; animation: wIn .6s ease .3s forwards, wOut .4s ease 1.3s forwards; }
.curtain-welcome h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 3rem); color: var(--gold-light); font-weight: 600; }
.curtain-welcome .sparkle-text { font-size: clamp(.85rem, 2vw, 1.1rem); color: var(--gold-muted); display: block; margin-top: 8px; font-weight: 400; }
@keyframes wIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.9); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes wOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* ─── MOBILE NAV ─── */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000; opacity: 0; visibility: hidden; transition: all .3s; }
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-panel { position: fixed; top: 0; right: 0; width: 260px; height: 100%; background: linear-gradient(180deg, var(--night), var(--deep)); border-left: 1px solid rgba(201,168,76,.1); z-index: 10001; transform: translateX(100%); transition: transform .35s ease; padding: 70px 25px 25px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-panel.open { transform: translateX(0); }
.mobile-nav-panel a { font-size: 1rem; font-weight: 500; color: var(--cream-muted); text-decoration: none; padding: 12px 18px; border-radius: 10px; transition: all .2s; }
.mobile-nav-panel a:hover { background: rgba(245,240,227,.04); color: var(--cream); }
.mobile-nav-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--cream-muted); font-size: 1.2rem; cursor: pointer; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, .curtain-overlay, .curtain-welcome, .hero-content, .scroll-banner-track, .drift-line, .star, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .main-nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; background: none; border: 1px solid rgba(245,240,227,.15); border-radius: 8px; color: var(--cream-muted); padding: 7px 11px; font-size: 1rem; cursor: pointer; }
  section { padding: 70px 20px; }
  .how-steps { grid-template-columns: 1fr; gap: 30px; }
  .about-content { grid-template-columns: 1fr; text-align: center; }
  .about-portrait { margin: 0 auto; width: 180px; height: 220px; }
  .about-qualities { justify-content: center; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 25px; }
}
@media (max-width: 550px) {
  .hero h2 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .stories-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
