@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Italianno&family=Mozilla+Text:wght@200..700&family=Pinyon+Script&family=Rosarivo:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Redaction+70:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cagliostro&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Foldit:wght@100..900&family=League+Gothic&family=Nothing+You+Could+Do&display=swap');

/* The whole site is drawn at 137.5% on desktop-sized windows (125%, then one
   more 110% step; the same look as zooming the browser in). --zoom lets viewport-based sizes compensate. */
:root {
    --zoom: 1;
}

@media (min-width: 1200px) {
    :root {
        --zoom: 1.375;
    }

    html {
        zoom: 1.375;
    }
}

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

body {
    background-color: #000;
    color: #fff;
    font-family: "IBM Plex Mono", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0 auto;
    /* Room for the footer, which sits at the bottom of the page and never
       higher than the bottom of the screen */
    position: relative;
    min-height: calc(100vh / var(--zoom));
    /* Page gutter: top and both sides (the bottom is room for the footer) */
    --page-pad: 40px;
    --page-top: 30px;
    /* thin grey rule: sidebar divider, form panel edge, lines between films */
    --rule: #2e2e2e;
    /* brushed-silver fill for nav and headings */
    --silver: linear-gradient(180deg, #ffffff 0%, #d6d6d6 28%, #8f8f8f 52%, #e9e9e9 72%, #a9a9a9 100%);
    /* Width of the main content column on every page */
    --content-width: 1000px;
    /* bottom: room for the footer */
    padding: var(--page-top) var(--page-pad) 90px var(--page-pad);
}


a {
    text-decoration: none;
}

h2 {
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 18px;
    font-optical-sizing: auto;
    color: #d2d2d2;
    margin-bottom: 10px;
}

/* Matrix Background Canvas: switched off, the site background is plain black.
   (Delete the "display: none" line to bring the falling characters back.) */
#matrix-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* ===== BANNER ===== */
/* Full-width "COMMISSIONS OPEN" ticker across the top of the page;
   the whole strip links to the commissions page */
.top-banner {
    display: block;
    overflow: hidden;
    /* laid over the top edge of the page, so the header stays exactly where
       it is on every other page */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 5px 0 4px 0;
    background: #dfb93f;
    color: #111111;
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.top-banner-track {
    display: inline-flex;
    /* two identical halves: sliding by exactly one half loops seamlessly */
    animation: bannerScroll 40s linear infinite;
}

.top-banner-track span {
    padding: 0 22px;
}

.top-banner:hover .top-banner-track {
    animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
    .top-banner-track {
        animation: none;
    }
}

/* ===== TITLE + NAV ===== */
/* Left: title with a lettered sub-navigation under it.
   Right: nav links with a row of small social icons under them. */
.site-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(24px, calc(4vw / var(--zoom)), 60px);
    /* title position and size match the home page (.hero in index.html) */
    padding: 20px 0 10px 0;
    margin-bottom: 104px;
}

/* Same title artwork as the home page */
.site-logo {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.site-logo img {
    height: clamp(65px, calc(8.2vw / var(--zoom)), 110px);
    display: block;
}

.site-logo img.logo-spin {
    margin: 0 -2px;
}

.site-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px clamp(16px, calc(3vw / var(--zoom)), 44px);
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-nav a {
    display: block;
    font-size: clamp(0.95rem, calc(1.75vw / var(--zoom)), 1.6rem);
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    white-space: nowrap;
    opacity: 0.8;
    /* silver lettering with a soft glow */
    color: #d0d0d0;
    background: var(--silver);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.4));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
}

/* The current page sits inside tall, thin parentheses */
.site-nav a.active::before,
.site-nav a.active::after {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 1.9em;
    line-height: 0;
    vertical-align: -0.14em;
    opacity: 0.75;
}

.site-nav a.active::before {
    content: "(";
    margin-right: 0.22em;
}

.site-nav a.active::after {
    content: ")";
    margin-left: 0.22em;
}

/* Second row: social icons */
.site-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-social a img {
    width: 20px;
    height: 20px;
    display: block;
    filter: invert(0.8);
    opacity: 0.8;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.site-social a:hover img {
    filter: invert(1);
    opacity: 1;
}

/* Silver headings */
.section-heading,
.commissions-title,
.commissions-form-title,
.video-title,
.collab-card-name {
    color: #d0d0d0;
    background: var(--silver);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar + form panel layout shared by About and Commissions */
.side-layout {
    display: flex;
    align-items: stretch;
    gap: 50px;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

/* sidebar, with a thin rule down its right side */
.side-layout > .side-col {
    flex: 0 0 290px;
    padding-right: 50px;
    border-right: 1px solid var(--rule);
}

.form-panel {
    flex: 1;
    min-width: 0;
    align-self: flex-start;
    padding: 30px 34px 34px 34px;
    background: #000000;
    border: 1px solid var(--rule);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.form-panel .commissions-form-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 26px;
}

.form-panel .commission-form {
    max-width: none;
}

.form-panel .form-input,
.form-panel .form-textarea {
    border: 1px solid rgba(240, 122, 40, 0.4);
    border-radius: 0;
}

.form-panel .form-input:focus,
.form-panel .form-textarea:focus {
    border-color: #f07a28;
    box-shadow: none;
}

.form-panel .form-input.error,
.form-panel .form-textarea.error {
    border-color: #ff4444;
}

/* ===== POPUP (shop items and films share this) =====
   A thin-bordered box: media on the left, a rule, details on the right,
   bare chevrons either side, x in the corner. */
.view-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    height: 100%;
    padding: 20px;
}

.view-box {
    position: relative;
    display: flex;
    align-items: stretch;
    width: min(1000px, 100%);
    padding: 52px 48px;
    background: #000000;
    border: 0.5px solid rgba(240, 122, 40, 0.5);
}

.view-box .close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 28px;
    font-weight: normal;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.8;
    transform: none;
    transition: opacity 0.2s ease;
}

.view-box .close:hover {
    opacity: 1;
    background: none;
    transform: none;
}

.view-media {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.view-media img {
    width: 100%;
    max-height: calc(62vh / var(--zoom));
    object-fit: contain;
    display: block;
}

/* 16:9 player */
.view-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.view-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.view-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40px;
    padding-left: 40px;
    border-left: 0.5px solid rgba(240, 122, 40, 0.5);
}

.view-title {
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #d0d0d0;
    background: var(--silver);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-title.accent {
    background: none;
    color: #f07a28;
    -webkit-text-fill-color: #f07a28;
}

.view-sub {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #888888;
}

.view-sub.caps {
    text-transform: uppercase;
}

.view-sub.year {
    font-style: italic;
}

.view-desc {
    margin-top: 16px;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #cccccc;
}

.view-price {
    margin: 20px 0 30px 0;
    font-size: 1.9rem;
    font-style: italic;
    line-height: 1.2;
    color: #ffffff;
}

/* bare chevrons */
.view-nav {
    flex: 0 0 auto;
    padding: 6px 10px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.view-nav:hover {
    opacity: 1;
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .view-modal {
        gap: 2px;
        padding: 6px;
    }

    .view-box {
        flex-direction: column;
        padding: 44px 18px 24px 18px;
    }

    .view-media {
        flex: none;
    }

    .view-info {
        margin: 22px 0 0 0;
        padding: 20px 0 0 0;
        border-left: none;
        border-top: 0.5px solid rgba(240, 122, 40, 0.5);
    }

    .view-nav {
        padding: 4px;
        font-size: 2.2rem;
    }
}

/* Sidebar page title ("Commissions", "Animations") */
.side-title {
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #d0d0d0;
    background: var(--silver);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar tabs (the film list): same text style as the contact links */
.side-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.side-tabs button {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: "IBM Plex Mono", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
    transition: color 0.3s ease;
}

.side-tabs button:hover {
    color: #f07a28;
}

.side-tabs button.active {
    color: #f07a28;
}

/* Film list: hangs off the right edge of the sidebar, year beside each
   title; on hover the row spreads out and an arrow appears */
.side-tabs.to-right {
    align-items: flex-end;
}

.side-tabs.to-right button {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.side-tabs .tab-year {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #555555;
    transition: color 0.3s ease;
}

.side-tabs .tab-arrow {
    display: inline-block;
    width: 0;
    overflow: hidden;
    opacity: 0;
    letter-spacing: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.side-tabs.to-right button:hover {
    letter-spacing: 0.2em;
}

.side-tabs.to-right button:hover .tab-year {
    color: #aaaaaa;
}

.side-tabs.to-right button:hover .tab-arrow,
.side-tabs.to-right button.active .tab-arrow {
    width: 1.2em;
    opacity: 1;
}

@media (max-width: 768px) {
    .side-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 22px;
    }
}

/* Contact links (About and Commissions sidebars): site text style, dimmed,
   with a small "opens in a new window" mark */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "IBM Plex Mono", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

/* the email address stays on one line: lowercase and tighter than the other links */
.contact-links a[href^="mailto"] {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.74rem;
    overflow-wrap: normal;
    white-space: nowrap;
}

.contact-links a:hover {
    color: #ffffff;
}

/* same icons, size and brightness as the contact icons in the header */
.contact-links a > img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: invert(0.8);
    opacity: 0.8;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.contact-links a:hover > img {
    filter: invert(1);
    opacity: 1;
}

.ext-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.8;
}

.commission-success p {
    color: #ccc;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .side-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .side-layout > .side-col {
        flex: none;
        padding-right: 0;
        border-right: none;
    }

    .form-panel {
        padding: 22px 18px 24px 18px;
    }
}

/* Page / section titles ("Films", "Animations", "Clothing") */
.section-heading {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding-bottom: 14px;
    border-bottom: 1px solid #333;
    font-family: "Redaction 70", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2rem;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.5rem;
    }
}

/* ===== END TOP NAV ===== */

.title {
    margin-left: 10%;
    margin-top: 50px;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #858585;
    border-bottom: solid 1px #858585;
}

/* Hide old icon systems */
.email-link,
.fa.fa-envelope,
.fa.fa-instagram,
.desktop-icons,
.mobile-icons,
.mobile-contact-btn {
    display: none !important;
}

/* Glitch Animation Keyframes */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #f07a28;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 5px #f07a28;
}

.container {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content-art {
    position: relative;
    margin: 5% auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modal-art-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.modal-art-info {
    margin-top: 30px;
    text-align: center;
    color: #fff;
    pointer-events: auto;
}

.modal-art-title {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.modal-art-year {
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    font-weight: normal;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.close:hover {
    opacity: 0.7;
}

.modal-nav-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
}

/* ===== footer ===== */
.footer {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    padding: 0 var(--page-pad);
    border-top: 0.5px solid rgba(255, 255, 255, 0.7);

}

/* Social links row */
.footer-row-bottom {
    display: flex;
    justify-content: left;
    flex: 1;
    align-items: stretch;
}

.footer-row-bottom a {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-family: "Edu AU VIC WA NT Arrows", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    margin: 10px 60px 10px 0;
}

.footer-row-bottom a:hover {
    color: #f07a28;
}

.footer-row-bottom a img {
    width: 20px;
    height: 20px;
    filter: invert(0.8);
    margin-right: 6px;
    transition: filter 0.2s ease;
}

.footer-row-bottom a:hover img {
    filter: invert(1);
}

.footer-note{
    float: right;
    font-family: "Edu AU VIC WA NT Arrows", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.15em;
    font-weight: normal;
    bottom: 0;
    padding: 0;
    white-space: nowrap;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        width: 100%;
    }

    .site-top {
        flex-direction: column;
        align-items: center;
        margin-bottom: 52px;
        padding: 0 0 6px 0;
        gap: 16px;
    }

    .site-logo img {
        height: 65px;
    }

    .site-menu {
        align-items: center;
        gap: 12px;
    }

    .site-nav {
        justify-content: center;
    }

    .top-banner {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-nav {
        gap: 8px 16px;
    }

    .site-nav a {
        font-size: 0.95rem;
    }

    .site-social {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body {
        --page-pad: 14px;
        --page-top: 16px;
        padding: var(--page-top) var(--page-pad) 130px var(--page-pad);
    }

    .footer {
        height: 130px;
        flex-direction: column;
        justify-content: center;
    }

    .footer-row-bottom {
        flex: 0 0 auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-row-bottom a {
        margin: 6px 12px;
        font-size: 0.9rem;
    }

    .footer-note {
        padding: 6px 0 0 0;
        font-size: 12px;
    }
}
