/* ============================================================
   Maggick — black & white, theatrical
   ============================================================ */

:root {
    --black: #0a0a0a;
    --near-black: #111111;
    --white: #fafafa;
    --paper: #f4f2ee;
    --grey: #8a8a8a;
    --grey-dark: #3a3a3a;
    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(10, 10, 10, 0.14);
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--white);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

::selection { background: var(--white); color: var(--black); }

/* ------------------------------------------------------------
   Type helpers
   ------------------------------------------------------------ */

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.88);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.brand-mark {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-nav a:hover { color: var(--white); }

.nav-cta {
    color: var(--black) !important;
    background: var(--white);
    padding: 9px 20px;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
    position: relative;
    min-height: min(100svh, 1080px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 48px) 0 96px;
    overflow: hidden;
}

.hero-spotlight {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 52% 44% at 50% 34%, rgba(255, 255, 255, 0.13), transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 255, 255, 0.05), transparent 65%);
    pointer-events: none;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-title {
    font-size: clamp(2.5rem, 8.5vw, 6.25rem);
    margin: 28px 0;
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--grey);
    max-width: 560px;
    margin: 0 auto 44px;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-light {
    background: var(--white);
    color: var(--black);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(255, 255, 255, 0.28);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-hint-line {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(var(--white), transparent);
    animation: drip 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes drip {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 0.9; }
}

/* ------------------------------------------------------------
   Marquee
   ------------------------------------------------------------ */

.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    background: var(--near-black);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 36s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
    padding-right: 0.5em;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   Reel
   ------------------------------------------------------------ */

.reel { padding: 112px 0; }

.reel-frame {
    position: relative;
    aspect-ratio: 16 / 8;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 255, 255, 0.07), transparent 70%),
        var(--near-black);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.reel-frame:hover,
.reel-frame:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    outline: none;
}

.reel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.reel-play {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    padding-left: 4px;
    transition: transform 0.35s ease;
}

.reel-frame:hover .reel-play { transform: scale(1.08); }

.reel-frame figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.reel-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey);
}

.reel-note {
    font-family: var(--font-display);
    font-size: 1.4rem;
    transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------
   Acts (light section)
   ------------------------------------------------------------ */

.acts {
    background: var(--paper);
    color: var(--black);
    padding: 128px 0 136px;
}

.eyebrow-dark { color: rgba(10, 10, 10, 0.5); }

.section-head { max-width: 640px; margin-bottom: 72px; }

.section-head h2 {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    margin-top: 20px;
}

.acts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-dark);
}

.act {
    padding: 44px 36px 52px 0;
    border-bottom: 1px solid var(--line-dark);
    transition: transform 0.35s ease;
}

.act + .act { padding-left: 36px; border-left: 1px solid var(--line-dark); }

.act:hover { transform: translateY(-6px); }

.act-number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(10, 10, 10, 0.45);
}

.act h3 {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 14px 0 14px;
}

.act p { color: var(--grey-dark); }

/* ------------------------------------------------------------
   Statement
   ------------------------------------------------------------ */

.statement {
    padding: 152px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 255, 255, 0.07), transparent 70%),
        var(--black);
}

.statement blockquote { max-width: 820px; margin: 0 auto; }

.statement p {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1.3;
    text-wrap: balance;
}

.statement em { font-style: italic; font-weight: 300; }

.statement cite {
    display: block;
    margin-top: 32px;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 120px 0 48px;
    background: var(--near-black);
}

.footer-cta {
    text-align: center;
    margin-bottom: 112px;
}

.footer-cta h2 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    margin: 24px 0 32px;
}

.footer-email {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}

.footer-email:hover { border-bottom-color: var(--white); }

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 36px;
    font-size: 0.9rem;
    color: var(--grey);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .brand-mark { height: 32px; width: 32px; border-radius: 8px; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
    color: var(--grey);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--white); }

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track, .scroll-hint-line { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 860px) {
    .acts-grid { grid-template-columns: 1fr; }
    .act, .act + .act { padding: 36px 0; border-left: none; }
}

@media (max-width: 600px) {
    .hero-title br { display: none; }
}

@media (max-width: 720px) {
    .menu-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 24px 28px;
        background: rgba(10, 10, 10, 0.97);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .site-nav a {
        font-size: 1.1rem;
        padding: 10px 0;
    }

    .nav-cta { margin-top: 8px; }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
