/* ===== COMIC ART PORTFOLIO - BLACK & WHITE ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #f6f1e7;
    --off-white: #efe8d8;
    --paper-texture: repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 3px);
    --light-gray: #e0e0e0;
    --mid-gray: #888888;
    --dark-gray: #222222;
    --border: #000000;
    --shadow: 4px 4px 0 var(--black);
    --shadow-lg: 8px 8px 0 var(--black);
    --shadow-white: 4px 4px 0 var(--white);
    --font-comic: 'Bangers', cursive;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--white) var(--paper-texture);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    image-orientation: from-image;
}

/* --- Halftone Background --- */
.halftone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* --- Header / Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--black);
    border-bottom: 3px solid var(--white);
    transition: transform 0.3s ease;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
}

.logo-burst {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-comic);
    font-size: 1.5rem;
    clip-path: polygon(50% 0%, 65% 20%, 100% 15%, 85% 45%, 100% 75%, 60% 65%, 50% 100%, 40% 65%, 0% 75%, 15% 45%, 0% 15%, 35% 20%);
}

.logo-text {
    font-family: var(--font-comic);
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--light-gray);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.nav-social a:visited {
    color: var(--white);
}

.nav-social a:hover {
    color: var(--light-gray);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-montage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 2px;
    z-index: 0;
}

.hero-montage-tile {
    overflow: hidden;
    background: var(--black);
}

.hero-montage-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.55;
    display: block;
    transition: opacity 0.9s ease;
    will-change: opacity;
    contain: paint;
}

.hero-montage-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 75%);
}

.hero-burst {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-comic);
    font-size: 1.2rem;
    letter-spacing: 2px;
    padding: 0.3rem 1.5rem;
    transform: rotate(-5deg);
    box-shadow: var(--shadow-white);
    margin-bottom: 1.5rem;
    clip-path: polygon(10% 0%, 90% 10%, 100% 50%, 90% 90%, 10% 100%, 0% 50%);
}

.hero-title {
    font-family: var(--font-comic);
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1;
    color: var(--white);
    letter-spacing: 3px;
    text-shadow: 4px 4px 0 var(--mid-gray);
}

.hero-sub {
    color: var(--white);
    text-shadow: 4px 4px 0 var(--mid-gray);
}

.hero-tagline {
    display: inline-block;
    position: relative;
    font-family: var(--font-comic);
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    letter-spacing: 1px;
    color: var(--white);
    margin: 1.5rem auto 2.25rem;
    padding-bottom: 14px;
    white-space: nowrap;
}

.hero-tagline::after {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Cpath d='M0,5 Q10,0 20,5 T40,5' stroke='%23f6f1e7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 10px;
    opacity: 0.85;
}

@media (max-width: 600px) {
    .hero-tagline {
        white-space: normal;
        max-width: 90vw;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border: 3px solid var(--black);
    box-shadow: var(--shadow);
    transition: all 0.15s;
    cursor: pointer;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

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

.btn-primary:hover {
    background: var(--off-white);
    color: var(--black);
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
    box-shadow: 4px 4px 0 rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: var(--white);
}

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

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

.btn-sm {
    font-size: 0.95rem;
    padding: 0.55rem 1.25rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--black);
}

.btn-sm:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--black);
}

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

/* --- Hero Scroll Indicator --- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-align: center;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px auto 0;
    position: relative;
    overflow: hidden;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--white);
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-comic);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--black);
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 var(--light-gray);
}

.section-bar {
    display: none;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 500px;
    margin: 0 auto;
}

.videos-header .section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.videos-header .section-title {
    margin: 0;
    line-height: 1;
}

.videos-header .youtube-cta-header .btn {
    line-height: 1;
    padding: 0.55rem 1.25rem;
}

.youtube-cta-header {
    margin: 0;
}

/* --- Gallery --- */
.gallery-section {
    position: relative;
    padding-bottom: 4rem;
    background: var(--white);
}

.comic-panels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.comic-panel {
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0 var(--black);
    overflow: hidden;
}

.comic-panel:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 var(--black);
}

.panel-frame {
    position: relative;
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 1;
}

.panel-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.comic-panel:hover .panel-frame img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.panel-caption {
    padding: 0.75rem;
    background: var(--white);
    border-top: 2px solid var(--black);
}

.panel-caption h3 {
    font-family: var(--font-comic);
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--black);
    line-height: 1.15;
}

.panel-caption p {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    color: var(--dark-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Videos --- */
.videos-section {
    position: relative;
    background: var(--black);
    padding-bottom: 4rem;
    overflow: hidden;
}

.videos-section .section-title {
    color: var(--white);
    text-shadow: 3px 3px 0 var(--dark-gray);
}

.videos-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.video-panel {
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 rgba(255,255,255,0.25);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-panel:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.15);
}

.video-frame {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--black);
}

.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(100%);
}

.video-frame:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 2px;
    fill: var(--black);
}

.video-frame:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--black);
}

.video-frame:hover .play-button svg {
    fill: var(--white);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.video-info {
    padding: 1rem 1.25rem;
    background: var(--white);
}

.video-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.youtube-cta {
    text-align: center;
    padding: 2rem 1.5rem 0;
    position: relative;
    z-index: 2;
}

/* --- About --- */
.about-section {
    position: relative;
    padding: 0 1.5rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem 0;
}

.about-portrait {
    position: relative;
}

.portrait-frame {
    border: 3px solid var(--black);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-3deg);
    background: var(--black);
}

.portrait-frame img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.about-portrait:hover .portrait-frame img {
    filter: grayscale(0%);
}

.speech-bubble {
    position: absolute;
    bottom: -20px;
    right: -30px;
    background: var(--white);
    border: 3px solid var(--black);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 180px;
    transform: rotate(3deg);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid var(--black);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid var(--white);
}

.speech-bubble p {
    font-family: var(--font-comic);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--black);
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: var(--black);
    color: var(--white);
    padding: 0.3rem 1rem;
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0 var(--mid-gray);
}

/* --- Contact --- */
.contact-section {
    position: relative;
    background: var(--black);
    padding-bottom: 4rem;
    overflow: hidden;
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
    text-shadow: 3px 3px 0 var(--dark-gray);
}

.contact-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-card {
    display: block;
    text-decoration: none;
    background: var(--dark-gray);
    border: 3px solid var(--white);
    box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--white);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.15);
    background: var(--white);
    color: var(--black);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    transition: color 0.2s;
}

.contact-card:hover .contact-icon {
    color: var(--black);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.contact-card:hover p {
    color: var(--dark-gray);
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-gray);
    border-top: 3px solid var(--white);
    padding: 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-comic);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* --- Video Modal --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    background: var(--black);
    border: 3px solid var(--white);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.2);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 rgba(255,255,255,0.5);
}

.modal-close:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Image Lightbox Modal --- */
.lightbox-trigger {
    cursor: zoom-in;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal.active {
    display: flex;
}

.modal-content-image {
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content-image img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    border: 3px solid var(--white);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.2);
    display: block;
}

.image-modal-caption {
    margin-top: 1rem;
    font-family: var(--font-comic);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--white);
    text-align: center;
}

/* --- Stories --- */
.stories-section {
    position: relative;
    padding-bottom: 4rem;
    background: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0 var(--black);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 var(--black);
}

.story-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--black);
    border-bottom: 2px solid var(--black);
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.story-card:hover .story-thumb img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.story-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.9rem 1rem 1rem;
}

.story-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.story-header h3 {
    font-family: var(--font-comic);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--black);
    line-height: 1.15;
}

.story-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--mid-gray);
    border: 1px solid var(--black);
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}

.story-excerpt {
    font-size: 0.85rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--black);
}

.story-actions .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* --- Recognition / Hall of Fame --- */
.recognition-section {
    position: relative;
    padding-bottom: 4rem;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.recognition-section .section-title {
    color: var(--white);
    text-shadow: 3px 3px 0 var(--dark-gray);
}

.recognition-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.legend-card {
    background: var(--darker);
    border: 3px solid var(--white);
    box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.legend-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.15);
}

.legend-frame {
    border: 3px solid var(--white);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
    aspect-ratio: 1;
    background: var(--black);
}

.legend-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.legend-card:hover .legend-frame img {
    filter: grayscale(0%);
}

.legend-info h3 {
    font-family: var(--font-comic);
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.legend-roles {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--light-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.legend-bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.legend-bio em {
    color: var(--white);
    font-style: italic;
    font-weight: 600;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 1rem 0;
    position: relative;
    z-index: 2;
}

.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 var(--black);
    min-width: auto;
}

.btn-small:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.page-current {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
    background: var(--black);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border: 3px solid var(--black);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.page-ellipsis {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--mid-gray);
    padding: 0 0.15rem;
}

.videos-section .pagination .btn-small {
    box-shadow: 3px 3px 0 rgba(255,255,255,0.3);
}

.videos-section .pagination .page-current {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    box-shadow: 3px 3px 0 rgba(255,255,255,0.2);
}

.videos-section .pagination .page-ellipsis {
    color: rgba(255,255,255,0.6);
}

/* --- Rendering performance for below-fold sections --- */
.videos-section,
.stories-section,
.recognition-section,
.about-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1200px;
}

/* --- Pen Sketch Overhaul --- */
.comic-panel,
.video-panel,
.story-card,
.legend-card,
.contact-card,
.btn,
.admin-card,
.post-item {
    border-style: dashed;
    border-radius: 4px 2px 5px 3px;
}

.comic-panel:nth-child(odd),
.story-card:nth-child(odd),
.legend-card:nth-child(odd),
.contact-card:nth-child(odd) {
    transform: rotate(-0.8deg);
}

.comic-panel:nth-child(even),
.story-card:nth-child(even),
.legend-card:nth-child(even),
.contact-card:nth-child(even) {
    transform: rotate(0.6deg);
}

.comic-panel:hover,
.story-card:hover,
.legend-card:hover,
.video-panel:hover,
.contact-card:hover,
.admin-card:hover,
.post-item:hover {
    transform: rotate(0deg) translateY(-4px);
}

.panel-frame,
.legend-frame,
.story-thumb,
.video-frame,
.about-portrait {
    border-style: dashed;
    border-radius: 3px 5px 4px 2px;
    overflow: hidden;
}

.section-bar {
    width: 100px;
    height: 4px;
    background: transparent;
    border-top: 4px dashed var(--black);
    margin: 1rem auto;
    box-shadow: none;
}

.story-header h3 a {
    color: inherit;
    text-decoration: none;
}

.story-header h3 a:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

h1, h2, h3 {
    text-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .comic-panels {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 3px solid var(--white);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -8px);
    }

    .comic-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .speech-bubble {
        right: 0;
        bottom: -15px;
    }
}
