:root {
    --site-highlight: #ff8900;
    --header-height: 80px;
    --max-content-width: 1200px;
    --submenu-icon-size: 32px;
    --submenu-child-icon-size: 32px;
    --submenu-grandchild-icon-size: 18px;
    --submenus-min-width: 250px;
    --submenu-transition-duration: .2s;
    --menu-item-hover-color-duration: 0.2s;
    --spacing-a: 2px;
    --spacing-b: 4px;
    --spacing-c: 8px;
    --spacing-d: 10px;
    --spacing-e: 12px;
    --spacing-f: 16px;
    --spacing-g: 22px;
    --spacing-h: 22px;
    --min-page-height: 101vh;
    --gallery-piece-title-bg: white;
    --gallery-border-width: 3px;
    --description-gradient-height: 20%;
    --piece-text-padding-bottom: 40%;
    --piece-title-icon-size: 18px;
    --footer-social-icon-size: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: Roboto, sans-serif;
    overflow-x: hidden;
    min-height: var(--min-page-height);
    display: flex;
    flex-direction: column;
}

#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    padding: 10%;
}

#animation-container.hidden {
    display: none;
}

#typewriter-text {
    font-size: 3vw;
    font-weight: 400;
    color: black;
    position: relative;
    white-space: nowrap;
    width: 1px;
    right: 18%;
}

#typewriter-text .text-content {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: black;
    margin-left: var(--spacing-a);
    vertical-align: text-bottom;
    animation: blink 0.7s infinite;
}

.cursor.typing {
    animation: none;
    opacity: 1;
}

.cursor.hidden {
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes slideUp {
    to {
        transform: translateY(-150%);
        opacity: 0;
    }
}

.slide-up {
    animation: slideUp 0.8s ease-in forwards;
}

@keyframes stamp {
    0% {
        font-weight: 400;
        transform: scale(1);
    }
    40% {
        font-weight: 900;
        transform: scale(0.85);
    }
    100% {
        font-weight: 900;
        transform: scale(1);
    }
}

.stamp-effect {
    animation: stamp 0.5s ease-out forwards;
}

header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 3px solid black;
    z-index: 1000;
    transition: top 0.5s ease-out;
}

header.visible {
    top: 0;
}

.header-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-g);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-f);
}

.logo-wrapper {
    height: 58px;
    text-decoration: none;
    color: black;
    display: block;
    transition: color 0.3s;
    cursor: pointer;
}

.logo-svg {
    width: 134px;
    height: 58px;
}

.logo-svg text {
    font-family: Roboto, sans-serif;
    fill: currentColor;
}

.logo-name {
    font-size: 14px;
    letter-spacing: 4.5px;
    font-weight: 400;
}

.logo-designs {
    font-size: 32px;
    font-weight: 900;
    line-height: 0.9;
}

.logo-url {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 400;
}

.logo-wrapper:hover {
    color: var(--site-highlight);
}

nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-g);
}

.nav-item {
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: color var(--menu-item-hover-color-duration);
    position: relative;
    user-select: none;
}

.nav-item:hover,
.nav-item.active {
    color: var(--site-highlight);
}

.nav-item.has-submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 50px;
}

.nav-item.has-submenu:hover::before {
    width: max(100%, var(--submenus-min-width));
}

.nav-item.has-submenu:hover > .submenu {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: all;
}

.submenu {
    position: absolute;
    top: calc(100% + var(--spacing-d));
    left: 0;
    background: white;
    border: 2px solid black;
    min-width: var(--submenus-min-width);
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--submenu-transition-duration) ease, opacity var(--submenu-transition-duration) ease;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-e);
    padding: var(--spacing-d) var(--spacing-f);
    color: black;
    text-decoration: none;
    transition: background var(--menu-item-hover-color-duration), color var(--menu-item-hover-color-duration);
    user-select: none;
    position: relative;
}

.submenu-item:hover {
    background: var(--site-highlight);
    color: white;
}

.submenu-item:hover > .submenu-icon {
    fill: white;
}

.submenu-item.has-submenu:hover > .submenu {
    opacity: 1;
    transform: scaleX(1);
    pointer-events: all;
}

.submenu-item .submenu {
    top: -1px;
    left: 100%;
    transform-origin: left center;
    transform: scaleX(0);
}

.submenu-icon {
    width: var(--submenu-icon-size);
    height: var(--submenu-icon-size);
    fill: black;
    flex-shrink: 0;
    transition: fill var(--menu-item-hover-color-duration);
}

.submenu .submenu .submenu-icon {
    width: var(--submenu-child-icon-size);
    height: var(--submenu-child-icon-size);
}

.submenu .submenu .submenu .submenu-icon {
    width: var(--submenu-grandchild-icon-size);
    height: var(--submenu-grandchild-icon-size);
}

.submenu-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-a);
}

.submenu .submenu-label {
    font-weight: 500;
    white-space: nowrap;
}

.submenu-description {
    font-size: 12px;
    opacity: 0.8;
}

.bullet-separator {
    width: 8px;
    height: 8px;
    background: black;
    border-radius: 50%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-f);
}

.social-icons {
    display: flex;
    gap: var(--spacing-f);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: black;
    transition: fill 0.3s;
    user-select: none;
}

.social-icon:hover {
    fill: var(--site-highlight);
}

.phone-box {
    border: 2px solid black;
    padding: var(--spacing-c) var(--spacing-f);
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
}

.mobile-phone {
    display: none;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    border-right: 3px solid black;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: var(--spacing-g);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-item {
    display: block;
    padding: var(--spacing-f) 0;
    color: black;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
    user-select: none;
}

.mobile-nav-item:hover {
    color: var(--site-highlight);
}

.mobile-nav-item.has-submenu {
    cursor: pointer;
}

.mobile-submenu {
    padding-left: var(--spacing-g);
    margin-top: var(--spacing-d);
    display: none;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu.nested {
    padding-left: var(--spacing-g);
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-d);
    margin-left: -var(--spacing-g);
    padding: var(--spacing-d) var(--spacing-g);
    width: calc(100% + var(--spacing-g));
    color: black;
    text-decoration: none;
    font-size: 16px;
    transition: background var(--menu-item-hover-color-duration), color var(--menu-item-hover-color-duration);
    user-select: none;
}

.mobile-submenu-item:hover {
    background: var(--site-highlight);
    color: white;
}

.mobile-submenu-item:hover > .submenu-icon {
    fill: white;
}

.mobile-submenu-item.has-submenu {
    cursor: pointer;
}

.mobile-submenu.nested .submenu-icon {
    width: var(--submenu-child-icon-size);
    height: var(--submenu-child-icon-size);
}

.mobile-submenu.nested .mobile-submenu.nested .submenu-icon {
    width: var(--submenu-grandchild-icon-size);
    height: var(--submenu-grandchild-icon-size);
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-g);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
}

.mobile-menu-close-icon {
    width: 30px;
    height: 30px;
    fill: black;
}

.mobile-menu .logo-wrapper {
    margin-bottom: 0;
    align-self: flex-start;
}

main {
    flex: 1;
    margin-top: var(--header-height);
    padding: var(--spacing-g) var(--spacing-g);
}

.main-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.gallery-wrapper {
    scroll-margin-top: calc(var(--header-height) + var(--spacing-g));
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-h);
}

.home-media-row {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-h);
    align-items: flex-start;
}

.video-wrapper {
    flex: 0 0 auto;
    width: calc((100vh - var(--header-height) - 96px) * (9/16));
    max-width: calc(800px * (9/16));
}

.gallery-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.home-media-row .gallery-widget {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.gallery-header {
    margin-bottom: var(--spacing-g);
}

.gallery-header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-d);
}

.gallery-header-icon {
    width: 30px;
    height: 30px;
    fill: black;
}

.gallery-header h2 {
    margin: 0;
}

.gallery-header p {
    margin-top: var(--spacing-d);
}

.gallery-widget {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height) - 96px);
    max-height: 800px;
    background: black;
    display: flex;
    flex-direction: row;
    border: var(--gallery-border-width) solid black;
}

.gallery-widget .piece-info {
    flex: 0 0 25%;
    color: black;
    position: relative;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-widget .piece-title {
    background: var(--gallery-piece-title-bg);
    padding: var(--spacing-g);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gallery-widget .piece-title h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-c);
}

.gallery-widget .piece-title-icon {
    width: var(--piece-title-icon-size);
    height: var(--piece-title-icon-size);
    fill: black;
    flex-shrink: 0;
}

.gallery-widget .piece-text {
    flex: 1;
    padding: var(--spacing-g);
    padding-bottom: var(--piece-text-padding-bottom);
    overflow-y: auto;
    box-sizing: border-box;
    transition: opacity var(--fade-duration, 0.8s) ease-in-out;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: white;
    color: black;
    cursor: grab;
}

.gallery-widget .piece-text a {
    font-weight: 500;
    color: black;
    transition: color var(--menu-item-hover-color-duration);
}

.gallery-widget .piece-text a:hover {
    color: var(--site-highlight);
}

.gallery-widget .piece-text::-webkit-scrollbar {
    display: none;
}

.gallery-widget .description-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--description-gradient-height);
    background: linear-gradient(0deg, white 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.gallery-widget .piece-info.scrollable::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><use href="#hand-request"></use></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.5;
    z-index: 2;
}

.gallery-widget .gallery-viewer {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-widget:not(.vertical) .gallery-viewer {
    cursor: zoom-in;
}

.gallery-widget.vertical .gallery-viewer {
    cursor: grab;
}

.gallery-widget .gallery-viewer.dragging {
    cursor: grabbing;
}

.gallery-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: none;
}

.gallery-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: opacity var(--fade-duration, 0.8s) ease-in-out;
    pointer-events: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-b);
    padding: var(--spacing-d);
    transition: opacity 0.5s, transform 0.5s ease;
    user-select: none;
}

.gallery-widget .gallery-nav:active {
    transform: translateY(-50%) scale(1.25);
}

.gallery-nav.disabled {
    opacity: 0.3;
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-nav-icon {
    width: 48px;
    height: 48px;
    fill: white;
    filter: drop-shadow(-1px 1px 4px rgba(1,1,1,0.25));
}

.gallery-nav-text {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.gallery-fullscreen.active {
    display: flex;
}

.gallery-fullscreen .piece-info {
    display: none;
}

.gallery-fullscreen.inverted .piece-info {
    order: 2;
}

.gallery-fullscreen-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery-fullscreen-media {
    max-width: 95%;
    max-height: 95%;
}

.gallery-fullscreen-media img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.gallery-fullscreen-media iframe {
    width: 95vw;
    height: 95vh;
    border: 0;
}

.fullscreen-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-g);
}

.gallery-fullscreen .gallery-nav {
    position: static;
    transform: none;
    flex-direction: row;
    gap: var(--spacing-b);
}

.gallery-fullscreen .gallery-nav-icon {
    width: 40px;
    height: 40px;
}

.gallery-fullscreen .gallery-nav-text {
    font-size: 16px;
}

.fullscreen-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-b);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.fullscreen-close:hover {
    transform: scale(1.1);
}

.fullscreen-close-icon {
    width: 40px;
    height: 40px;
    fill: white;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.gallery-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    font-weight: 700;
    display: none;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    align-items: center;
    gap: var(--spacing-b);
}

.gallery-status.loading {
    display: flex;
}

.loading-icon {
    width: 16px;
    height: 16px;
    fill: #666;
}

.dot {
    opacity: 0;
}

.gallery-fullscreen .gallery-status {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

footer {
    width: 100%;
    background: black;
    color: white;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-container {
    text-align: center;
    font-size: 14px;
}

.footer-container a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
}

.footer-container a:hover {
    color: var(--site-highlight);
}

svg:has(use[href="#youtube"]) {
    width: 27px;
}

.footer-links {
    margin-top: var(--spacing-d);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-d);
    font-size: 14px;
}

.footer-links a {
    display: flex;
    align-items: center;
}

footer .social-icon {
    width: var(--footer-social-icon-size);
    height: var(--footer-social-icon-size);
    fill: white;
    transition: fill 0.3s;
}

footer .social-icon:hover {
    fill: var(--site-highlight);
}

@media (min-width: 1000px) {
     .gallery-widget.has-info {
        flex-direction: row;
    }

    .gallery-widget .piece-info {
        border-right: var(--gallery-border-width) solid black;
    }

    .gallery-widget .piece-title {
        border-bottom: var(--gallery-border-width) solid black;
    }

    .gallery-widget .piece-text {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-widget .piece-text::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 1000px) {
    nav {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    #typewriter-text {
        font-size: 5vw;
        right: 30%;
    }

    .home-content {
        gap: var(--spacing-h);
    }

    .video-wrapper {
        width: 100%;
        max-width: none;
    }

    .mobile-menu .logo-wrapper {
        display: flex;
    }

    .gallery-widget,
    .gallery-widget.has-info {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .gallery-widget.has-info .piece-info {
        flex: none;
        width: 100%;
        order: 2;
        height: 25vh;
    }

    .gallery-widget.has-info .gallery-viewer {
        order: 1;
        flex: 1;
    }

    .gallery-widget .gallery-viewer {
        aspect-ratio: 2550 / 1650;
        width: 100%;
        height: auto;
        max-height: 800px;
    }

    .gallery-widget .gallery-viewer .gallery-nav {
        display: none;
    }

    .gallery-widget .piece-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border-bottom: 3px solid black;
        border-top: 3px solid black;
    }

    .gallery-widget .piece-title h3 {
        flex: 1;
        text-align: center;
        margin: 0;
        font-size: 1rem;
        color: black;
        display: flex;
        align-items: center;
        gap: var(--spacing-c);
        justify-content: center;
    }

    .gallery-widget .piece-title .gallery-nav {
        position: static;
        transform: none;
        flex-direction: row;
        gap: var(--spacing-c);
    }

    .gallery-widget .piece-title .gallery-nav-icon {
        width: 24px;
        height: 24px;
        fill: black;
        filter: none;
    }

    .gallery-widget .piece-title .gallery-nav:hover {
        transform: none !important;
    }

    .gallery-widget .piece-title .gallery-nav:active {
        transform: scale(1.25);
    }

    .gallery-widget.vertical .gallery-media img {
        object-fit: cover !important;
    }

    .gallery-widget .piece-title-icon {
        display: none;
    }
}

@media (min-width: 501px) and (max-width: 1000px) {
    .logo-wrapper {
        display: flex;
    }
}

@media (max-width: 500px) {
    .phone-box {
        display: none;
    }

    .mobile-phone {
        display: block;
    }

    .header-right {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
}

.gallery-fullscreen-image-wrapper.zoomed {
    cursor: grab;
}

.gallery-fullscreen-image-wrapper.dragging {
    cursor: grabbing;
}

@media (hover: hover) {
    .gallery-widget .gallery-nav:hover {
        transform: translateY(-50%) scale(1.25);
    }
    .gallery-fullscreen .gallery-nav:hover {
        transform: scale(1.1);
    }
}

@media (min-width: 1001px) {
    .gallery-widget .piece-title .gallery-nav {
        display: none;
    }
}

@media (min-width: 1001px) {
    .gallery-widget.fade-buttons .gallery-nav {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-widget.fade-buttons .gallery-viewer:hover .gallery-nav {
        opacity: 1;
    }

    .has-video .piece-info {
        display: none;
    }
}

.gallery-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.gallery-wrapper.active {
    display: block;
    opacity: 1;
}

.custom-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1L7 7L13 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    padding: var(--spacing-e);
    padding-right: 52px;
    border: 2px solid black;
    font-size: 16px;
    box-sizing: border-box;
    width: 100%;
}