/* =====================================================
   KOHLHAASE FILMPRODUKTION - Screenplay Theme
   Movie Script Aesthetic with Cassette Navigation
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
    /* Paper & Ink Colors */
    --color-paper: #f8f6f1;
    --color-paper-aged: #f0ece3;
    --color-ink: #1a1a1a;
    --color-ink-light: #3a3a3a;
    --color-ink-faded: #666666;
    --color-punch-hole: #d4d0c7;

    /* Dark Background for Contrast */
    --color-bg-deep: #0a0a0c;
    --color-bg-dark: #0f0f12;
    --color-bg-surface: #151518;
    --color-surface: #1a1a1e;
    --color-surface-elevated: #222226;

    /* Accent Colors */
    --color-accent: #ffffff;
    --color-accent-dim: #a0a0a8;
    --color-accent-muted: #606068;
    --color-highlight: #c9a227;
    --color-brass: #b5913a;

    /* Text Colors */
    --color-text-primary: #f0f0f2;
    --color-text-secondary: #b8b8c0;
    --color-text-muted: #6a6a74;
    --color-text-dim: #4a4a52;

    /* Glow Effects */
    --glow-white: 0 0 20px rgba(255, 255, 255, 0.3);
    --glow-subtle: 0 0 40px rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-screenplay: 'Courier Prime', 'Courier New', monospace;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Screenplay Spacing (industry standard: 12pt Courier, 1.5" margins) */
    --script-margin: 1.5in;
    --script-line-height: 1.0;

    /* Wheel Dimensions */
    --wheel-radius: 280px;
    --reel-size: 120px;
    --content-padding: 60px;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-screenplay);
    background: var(--color-bg-deep);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Filmmaker's Desk Background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* Dark vignette overlay */
        radial-gradient(ellipse at center,
            rgba(10, 10, 12, 0.3) 0%,
            rgba(10, 10, 12, 0.7) 50%,
            rgba(10, 10, 12, 0.9) 100%),
        /* Desk image */
        url('../assets/filmmaker_desk_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Film Grain Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-highlight);
}

/* ----- Portfolio Container ----- */
.portfolio-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ===== CASSETTE NAVIGATION (KEPT FROM ORIGINAL) ===== */
.cassette-wheel-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* ===== CASSETTE TAPE BODY ===== */
.cassette-body {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 200px;
    background: linear-gradient(180deg, #2a2a2e 0%, #1a1a1e 50%, #121215 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

/* Cassette label area */
.cassette-label {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 55px;
    background: linear-gradient(180deg, #f5f5f0 0%, #e8e8e0 100%);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cassette-label-title {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-align: center;
}

.cassette-label-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 6px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cassette tape window */
.cassette-window {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 70px;
    background: linear-gradient(180deg,
            rgba(20, 20, 25, 0.95) 0%,
            rgba(15, 15, 18, 0.98) 100%);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.cassette-window::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg,
            #1a1a1e 0%,
            #8B4513 10%,
            #8B4513 90%,
            #1a1a1e 100%);
    opacity: 0.6;
}

/* ===== TAPE REELS ===== */
.tape-reel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            #3a3a40 0%,
            #2a2a30 30%,
            #1a1a1e 70%,
            #0f0f12 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tape-reel.left {
    left: 30px;
}

.tape-reel.right {
    right: 30px;
}

.tape-reel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #0a0a0c;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.tape-reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.tape-reel.spinning {
    animation: reelSpin 1.2s ease-out;
}

@keyframes reelSpin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.reel-spokes {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
}

.reel-spokes::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.reel-spokes::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

/* Screw holes */
.cassette-screw {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #0a0a0c 40%, #1a1a1e 100%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.cassette-screw.top-left {
    top: 8px;
    left: 8px;
}

.cassette-screw.top-right {
    top: 8px;
    right: 8px;
}

.cassette-screw.bottom-left {
    bottom: 8px;
    left: 8px;
}

.cassette-screw.bottom-right {
    bottom: 8px;
    right: 8px;
}

.cassette-screw.center-left {
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
}

.cassette-screw.center-right {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

/* Bottom grip */
.cassette-grip {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.cassette-grip-line {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
}

/* ===== RADIAL NAVIGATION LINKS ===== */
.wheel-links-container {
    position: absolute;
    left: 200px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 280px;
    pointer-events: none;
}

.wheel-link {
    position: absolute;
    left: 0;
    width: 180px;
    height: 44px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    transform-origin: -100px 50%;
    pointer-events: auto;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.wheel-link-label {
    font-family: var(--font-screenplay);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
    transition: all var(--transition-smooth);
    position: relative;
}

.wheel-link:nth-child(1) {
    top: 20px;
    transform: rotate(-25deg);
}

.wheel-link:nth-child(2) {
    top: 90px;
    transform: rotate(-8deg);
}

.wheel-link:nth-child(3) {
    top: 160px;
    transform: rotate(8deg);
}

.wheel-link:nth-child(4) {
    top: 230px;
    transform: rotate(25deg);
}

.wheel-link:hover .wheel-link-label {
    color: var(--color-text-primary);
    padding-left: 10px;
}

.wheel-link.active .wheel-link-label {
    color: var(--color-accent);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.wheel-link.active::before {
    content: '>';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    font-family: var(--font-screenplay);
    font-weight: 700;
}

/* ===== SCREENPLAY CONTENT STAGE ===== */
.screenplay-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: calc(var(--wheel-radius) + 100px);
    position: relative;
    padding: 40px;
}

/* Three-hole punch marks */
.punch-holes {
    position: fixed;
    left: calc(var(--wheel-radius) + 120px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 180px;
    z-index: 50;
    opacity: 0.6;
}

.punch-hole {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ===== SCRIPT PAGE STYLING ===== */
.script-page {
    background: linear-gradient(135deg,
            var(--color-paper) 0%,
            var(--color-paper-aged) 100%);
    color: var(--color-ink);
    max-width: 8.5in;
    min-height: 11in;
    margin: 40px auto;
    padding: 1in 1.5in 1in 1.75in;
    position: relative;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.02);
    border-radius: 2px;
    font-family: var(--font-screenplay);
    font-size: 12pt;
    line-height: 1.0;
}

/* Paper texture overlay */
.script-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    border-radius: 2px;
}

/* Left margin line */
.script-page::after {
    content: '';
    position: absolute;
    left: 1.5in;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(200, 50, 50, 0.15);
}

/* Page number */
.page-number {
    position: absolute;
    top: 0.5in;
    right: 1in;
    font-family: var(--font-screenplay);
    font-size: 12pt;
    color: var(--color-ink);
}

/* ===== TITLE PAGE ===== */
.title-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 3in;
}

.title-block {
    margin-bottom: 3in;
}

.fade-direction {
    font-family: var(--font-screenplay);
    font-size: 12pt;
    text-transform: uppercase;
    margin-bottom: 3em;
    color: var(--color-ink);
    letter-spacing: 0.05em;
}

.fade-direction.end {
    margin-top: 4em;
    text-align: right;
    padding-right: 2em;
}

.screenplay-title {
    font-family: var(--font-screenplay);
    font-size: 24pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.25em;
    color: var(--color-ink);
}

.screenplay-subtitle {
    font-family: var(--font-screenplay);
    font-size: 18pt;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-ink-light);
    margin-bottom: 2em;
}

.title-meta {
    margin-top: 2em;
}

.title-meta p {
    font-size: 12pt;
    line-height: 2;
}

.writer-name {
    font-weight: 700;
    font-size: 14pt !important;
}

.contact-block {
    margin-top: 4em;
    font-size: 11pt;
}

.contact-block p {
    line-height: 1.8;
    color: var(--color-ink-light);
}

.services-action {
    max-width: 4in;
    margin-top: 2em;
    padding: 1em;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.action-text {
    font-style: italic;
    color: var(--color-ink-faded);
    font-size: 11pt;
    line-height: 1.6;
}

/* ===== SCENE HEADING (SLUGLINE) ===== */
.scene-heading {
    margin-bottom: 2em;
}

.slugline {
    font-family: var(--font-screenplay);
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-ink);
    display: block;
    margin-left: -0.5in;
}

/* Subheader */
.subheader {
    margin-bottom: 2em;
    text-align: center;
}

.subheader-text {
    font-family: var(--font-screenplay);
    font-size: 14pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-ink);
    border-bottom: 2px solid var(--color-ink);
    padding-bottom: 0.3em;
}

/* ===== ACTION BLOCKS ===== */
.action-block {
    margin: 2em 0;
    margin-left: -0.25in;
    color: var(--color-ink);
}

.action-block p {
    font-size: 12pt;
    line-height: 1.5;
    max-width: 6in;
}

.action-block.narrator p {
    font-style: italic;
}

/* ===== DIALOGUE BLOCKS ===== */
.dialogue-block {
    margin: 2em auto;
    max-width: 4in;
    text-align: center;
}

.character-name {
    font-family: var(--font-screenplay);
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    color: var(--color-ink);
}

.parenthetical {
    font-family: var(--font-screenplay);
    font-size: 11pt;
    color: var(--color-ink-faded);
    margin: 0.3em 0;
}

.dialogue-text {
    font-family: var(--font-screenplay);
    font-size: 12pt;
    line-height: 1.5;
    color: var(--color-ink);
    margin-top: 0.5em;
    text-align: center;
}

/* Character intro for About section */
.character-intro {
    margin: 2em auto;
    text-align: center;
}

.character-description {
    font-size: 11pt;
    color: var(--color-ink-faded);
}

.dialogue-block.bio {
    max-width: 3.5in;
    margin-top: 1em;
}

/* ===== TRANSITION DIRECTIONS ===== */
.transition-direction {
    text-align: right;
    margin: 3em 0;
    padding-right: 1in;
}

.transition-direction span {
    font-family: var(--font-screenplay);
    font-size: 12pt;
    text-transform: uppercase;
    color: var(--color-ink);
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
    width: 100%;
    max-width: 5in;
    aspect-ratio: 16/9;
    margin: 2em auto;
    background: #1a1a1a;
    border: 3px solid var(--color-ink);
    position: relative;
    display: none;
    box-shadow:
        4px 4px 0 var(--color-ink),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-container.active {
    display: block;
}

.video-container::before {
    content: '▶ PLAY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-screenplay);
    font-size: 14pt;
    color: white;
    letter-spacing: 0.2em;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* ===== SCENE INDEX (Project List) ===== */
.scene-index {
    margin: 3em 0;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.scene-index-label {
    display: block;
    font-family: var(--font-screenplay);
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-ink-faded);
    margin-bottom: 1em;
}

.scene-link {
    font-family: var(--font-screenplay);
    font-size: 11pt;
    color: var(--color-ink);
    background: none;
    border: none;
    padding: 0.5em 1em;
    margin: 0.25em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.scene-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-ink-faded);
}

.scene-link.active {
    background: var(--color-ink);
    color: var(--color-paper);
    font-weight: 700;
}

/* ===== SCRIPT NAVIGATION ===== */
.script-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.script-nav-btn {
    font-family: var(--font-screenplay);
    font-size: 10pt;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-ink-faded);
    background: none;
    border: 1px solid var(--color-ink-faded);
    padding: 0.75em 1.5em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.script-nav-btn:hover {
    color: var(--color-ink);
    border-color: var(--color-ink);
    background: rgba(0, 0, 0, 0.03);
}

.script-divider {
    color: var(--color-ink-faded);
}

/* ===== SCENE BREAKDOWN (Timeline) ===== */
.scene-breakdown {
    margin-top: 3em;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--color-ink);
}

.breakdown-title {
    font-family: var(--font-screenplay);
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-ink);
    margin-bottom: 1.5em;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 80px 60px 1fr;
    gap: 1em;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.breakdown-number {
    font-family: var(--font-screenplay);
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-ink-faded);
}

.breakdown-year {
    font-family: var(--font-screenplay);
    font-size: 11pt;
    font-weight: 700;
    color: var(--color-ink);
}

.breakdown-details strong {
    display: block;
    font-size: 12pt;
    margin-bottom: 0.5em;
}

.breakdown-details p {
    font-size: 11pt;
    line-height: 1.5;
    color: var(--color-ink-light);
}

/* ===== CONTACT PAGE ===== */
.contact-page .dialogue-block.contact {
    margin: 3em auto;
}

.contact-address {
    margin: 3em auto;
    text-align: center;
}

.contact-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-top: 2.5em;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 220px;
    max-width: 400px;
    padding: 1em 0.75em;
    background: var(--color-ink);
    color: var(--color-paper) !important;
    text-decoration: none;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
    background: #333;
    border-color: var(--color-highlight);
}

.contact-label {
    display: block;
    font-size: 9pt;
    letter-spacing: 0.2em;
    margin-bottom: 0.5em;
    opacity: 0.7;
}

.contact-email {
    font-size: 11pt;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-break: break-all;
}

/* ===== FOOTER ===== */
.script-footer {
    text-align: center;
    padding: 3em 2em;
    margin-top: 2em;
}

.end-title {
    font-family: var(--font-screenplay);
    font-size: 14pt;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.3em;
    margin-bottom: 1em;
}

.copyright {
    font-family: var(--font-screenplay);
    font-size: 10pt;
    color: var(--color-text-dim);
    margin-bottom: 0.5em;
}

.registration {
    font-family: var(--font-screenplay);
    font-size: 9pt;
    color: var(--color-text-dim);
    opacity: 0.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .script-page {
        max-width: 95%;
        padding: 0.75in 1in 0.75in 1.25in;
    }

    .punch-holes {
        display: none;
    }
}

@media (max-width: 1200px) {
    :root {
        --wheel-radius: 220px;
    }

    .screenplay-stage {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    :root {
        --wheel-radius: 180px;
    }

    .script-page {
        padding: 0.5in 0.75in;
        font-size: 11pt;
        min-height: auto;
    }

    .slugline {
        margin-left: 0;
    }

    .action-block {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .screenplay-stage {
        margin-left: 0;
        padding: 10px;
        padding-bottom: 100px;
    }

    .script-page {
        margin: 20px auto;
        padding: 1.5em;
    }

    .script-page::after {
        display: none;
    }

    .page-number {
        position: relative;
        top: auto;
        right: auto;
        text-align: right;
        margin-bottom: 1em;
    }

    .title-page {
        padding-top: 2em;
    }

    .title-block {
        margin-bottom: 2em;
    }

    .screenplay-title {
        font-size: 18pt;
        letter-spacing: 0.1em;
    }

    .screenplay-subtitle {
        font-size: 14pt;
    }

    .breakdown-item {
        grid-template-columns: 1fr;
        gap: 0.5em;
    }

    /* Mobile cassette nav */
    .cassette-wheel-nav {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        padding: 16px 20px;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        pointer-events: auto;
    }

    .cassette-body {
        display: none;
    }

    .wheel-links-container {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .wheel-link {
        position: static;
        transform: none !important;
        width: auto;
        height: auto;
        padding: 12px 16px;
    }

    .wheel-link::before {
        display: none;
    }

    .wheel-link-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .screenplay-title {
        font-size: 14pt;
    }

    .screenplay-subtitle {
        font-size: 12pt;
    }

    .wheel-link-label {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }

    .scene-link {
        font-size: 9pt;
        padding: 0.4em 0.6em;
    }

    .script-nav {
        flex-direction: column;
        gap: 1em;
    }

    .script-divider {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.script-page {
    animation: fadeSlideUp 0.6s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter cursor effect for active elements */
.character-name::after {
    content: '_';
    animation: blink 1s infinite;
    opacity: 0;
}

.dialogue-block:hover .character-name::after {
    opacity: 1;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* Print styles for actual script printing */
@media print {
    body {
        background: white;
    }

    .cassette-wheel-nav,
    .punch-holes,
    .script-nav,
    .video-container {
        display: none !important;
    }

    .screenplay-stage {
        margin-left: 0;
        padding: 0;
    }

    .script-page {
        box-shadow: none;
        margin: 0;
        page-break-after: always;
    }
}