@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');

/* Bio page background */
.work-bg {
    background: #000 !important;
    background-image: none !important;
}
.events-bg {
    background: #000 !important;
    background-image: none !important;
}
.info-bg {
    background: #000 !important;
    background-image: none !important;
}
.info-bg::after,
.info-bg-scrolled::after {
    display: none !important;
}
.info-bg .top-right-title {
    color: #fffef1 !important;
}
.info-bg .top-right-title a {
    color: #fffef1 !important;
}
.info-bg .top-right-menu {
    color: #fffef1 !important;
}
.info-bg .nav-link {
    color: #fffef1 !important;
}
.info-bg main:first-of-type {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 180px 20px 60px 65px;
    width: 100%;
}
.info-bg .bio-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 1200px;
}
.info-bg .bio-section {
    text-align: left !important;
    max-width: 500px;
    margin-top: 15px;
    margin-left: -140px;
    padding-left: 0;
    flex-shrink: 0;
}
.info-bg .bio-image {
    flex-shrink: 0;
    margin-left: 350px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.info-bg .bio-image img {
    max-width: 330px;
    margin-top: 110px;
    margin-left: -20px;
    height: auto;
    display: block;
}
.info-bg .bio-links {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    margin-left: 0;
    justify-content: center;
}
.info-bg .link-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.info-bg .link-title {
    font-family: "Inconsolata", monospace !important;
    font-size: 22pt !important;
    color: #ffffe2 !important;
    font-weight: 350 !important;
    margin-bottom: 2px;
}
.info-bg .link-subtitle {
    font-family: "Inconsolata", monospace !important;
    font-size: 14pt !important;
    color: #ffffe2 !important;
    font-weight: 200 !important;
    margin-top:-4px;
    text-decoration: none;
}
.info-bg .link-subtitle:hover {
    text-decoration: underline;
}
.info-bg .bio-section,
.info-bg .bio-section * {
    font-family: "Inconsolata", monospace !important;
    font-optical-sizing: auto;
    font-weight: 300;
    font-variation-settings:
        "wdth" 150;
    line-height: 1.4;
    font-size: 16pt !important;
    color: #ffffe2 !important;
}
.contact-bg {
    background: #000 !important;
    background-image: none !important;
}
/* Main page background */
html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* prevent horizontal scroll causing black gutter */
}

/* Force page and containers to black to avoid any white gaps */
html, body, .container, .woc-container, footer {
    background: #000 !important;
    color: #fff !important;
}

/* remove any default margins that can reveal the page background */
body, html { margin: 0; padding: 0; }

/* ensure footer doesn't add unexpected height or white background */
footer { background: transparent !important; margin: 0; padding: 0; }
/* Bottom navigation menu styles */
.bottom-menu {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
@font-face {
    font-family: 'Diatype';
    src: url('font/diatype/ABCDiatype-Heavy-Trial.woff2') format('woff2'),
         url('font/diatype/ABCDiatype-Heavy-Trial.woff') format('woff'),
         url('font/diatype/ABCDiatype-Heavy-Trial.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* Diatype font-face declarations */
@font-face {
    font-family: 'Diatype';
    src: url('font/diatype/ABCDiatype-Regular-Trial.woff2') format('woff2'),
         url('font/diatype/ABCDiatype-Regular-Trial.woff') format('woff'),
         url('font/diatype/ABCDiatype-Regular-Trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Diatype';
    src: url('font/diatype/ABCDiatype-Bold-Trial.woff2') format('woff2'),
         url('font/diatype/ABCDiatype-Bold-Trial.woff') format('woff'),
         url('font/diatype/ABCDiatype-Bold-Trial.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Diatype', Arial, sans-serif;
    font-weight: 900;
    line-height: 1.6;
    background: #000;
    cursor: url('images/cursor.png'), auto;
}

/* Custom cursor for all interactive elements */
*, *::before, *::after {
    cursor: url('images/cursor.png'), auto;
}

/* Animated background for main page */
body.main-bg {
    background: #000;
    background-image: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: transparent !important;
    position: relative;
}

header {
    text-align: center;
    padding: 40px 0;
}

/* Use Diatype Heavy for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Diatype', Arial, sans-serif;
    font-weight: 900;
    color: #333;
    margin-bottom: 20px;
}

.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.hero-image {
    max-width: 472px;
    height: auto;
    border-radius: 8px;
    animation: float 4s ease-in-out infinite; /* reduced animation time */
    transition: all 0.3s ease;
}

.hero-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0; /* sit behind content but above page background */
    background: #000;
    pointer-events: none; /* allow clicks to reach overlayed elements */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-40px); /* increased movement range */
    }
    100% {
        transform: translateY(0px);
    }
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 40px;
    background: transparent;
}

.footer-blue {
    color: blue;
}

.top-right-menu {  
    position: fixed;
    top: 80px;
    right: 140px;
    font-family: 'Inconsolata', monospace;
    font-size: 10.5pt;
    color: #222;
    display: flex;
    gap: 27px;
    z-index: 100;
}

.top-right-title {
    position: fixed;
    top: 80px;
    left: 65px; /* moved 200px further left from previous 120px */
    font-family: 'Inconsolata', monospace;
    font-size: 16pt;
    font-weight: 400;
    color: #e0dbef;
    line-height: 24px; /* align with 24px icon height */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    cursor: pointer;
}

.top-right-title .kr {
    font-size: 14pt;
}

.top-right-title-link {
    color: inherit;
    text-decoration: none;
}

.nav-link {
    font-family: 'Inconsolata', monospace;
    font-size: 16pt;
    font-weight: 300;
    color: #e0dbef;
    text-decoration: none;
    transition: opacity 0.7s ease;
    cursor: pointer;
    letter-spacing: 2.3px;
}

button.nav-link {
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-link:hover {
    opacity: 0.7;
}

.strudel-nav-trigger {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 6px;
    letter-spacing: 0.04em;
    animation: strudel-wave 3.22s ease-in-out infinite;
    transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.strudel-nav-trigger:hover,
.strudel-nav-trigger:focus-visible {
    background-color: #e9cbff;
    color: #21143a;
    opacity: 1;
    animation-play-state: paused;
}
.woc-info-btn {
    position: absolute;
    right: 60px; /* place where the original long text lived */
    top: 240px; /* align with title baseline */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inconsolata', monospace;
    font-weight: 700;
    cursor: pointer;
    z-index: 65;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    animation: woc-pulse 1.6s ease-in-out infinite alternate;
    opacity: 0.95;
    font-size: 20px; /* increased 'i' size */
    line-height: 1;
}
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.cv-details {
    max-width: 700px;
    margin: 180px auto 0 auto;
    text-align: center;
    color: #39FF14; /* neon green */
    font-weight: 900;
    font-size: 13pt; /* 본문 글자 크기 */
}

.cv-title {
    font-size: 2750px;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 2pt;
    color: #FFFF00; /* 형광노랑 */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-fill-color: initial;
}

.cv-section-title {
    font-size: 30px;
    font-weight: 900;
    display: block;
    margin: 18px 0 8px 0;
    color: #2E8B57; /* deep pastel green */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-year {
    display: block;
    font-size: 10pt; /* 년도만 10pt */
    margin-top: 2px;
    color: #39FF14;
    font-weight: 900; /* 굵게 */
}

.cv-subtext {
    font-size: 11pt;
    display: block;
    margin-bottom: 0;
    line-height: 1.1; /* 더 줄인 줄간격 */
}

.cv-subtext + .cv-subtext {
    margin-top: 0;
}

.works-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: 100vh;
    padding: 140px 24px 160px;
    box-sizing: border-box;
}

.works-list {
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 80px;
}

.work-item {
    width: 150%;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Bitcount Single", system-ui, sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "CRSV" 0.5,
        "ELSH" 0,
        "ELXP" 0;
    font-size: 70px;
    font-weight: 300;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    position: relative;
}

.work-item:hover,
.work-item:focus-visible {
    color: #e6e6e6;
    transform: translateY(-2px);
    text-decoration: underline;
    z-index: 140;
}

.work-flyout {
    position: absolute;
    min-width: 420px;
    max-width: 880px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: none;
    padding: 10px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6);
    font-family: "Bitcount Single", system-ui, sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "CRSV" 0.5,
        "ELSH" 0,
        "ELXP" 0;
    font-size: 12pt;
    font-weight: 300;
    letter-spacing: 0.6px;
    pointer-events: none;
    z-index: 120;
    border-radius: 8px;
    overflow: hidden;
}

.work-flyout iframe {
    display: block;
    width: 800px;
    height: 450px;
    max-width: 100%;
    border: 0;
    pointer-events: none;
    aspect-ratio: 16/9;
}

@media (max-width: 720px) {
    .work-flyout {
        left: 8px !important;
        right: 8px !important;
        width: auto;
        max-width: calc(100% - 16px);
    }

    .work-flyout iframe {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    .works-main {
        padding: 120px 18px 120px;
        gap: 14px;
    }

    .work-item {
        font-size: 30px;
    }
}

.bio-section,
.bio-section * {
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    font-variation-settings:
        "wdth" 100;
    color: #FFFAA0; /* brighter light yellow */
    font-size: 12pt;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    /* make <img> elements responsive across the site */
    max-width: 100%;
    height: auto;
    display: block;
}
.bottom-social-icons {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 100;
    background: transparent !important;
}

.social-icon {
    height: 22px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.social-icon:hover {
    opacity: 1;
}

.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contact-main {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 60px 120px 120px;
}

.contact-right {
    flex: 1;
    height: 700px;
    min-width: 400px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.welcome-message h2 {
    font-family: 'Inconsolata', monospace;
    font-size: 14pt;
    font-weight: 300;
    color: #fff;
    margin: 0;
    text-align: right;
    padding-right: 200px;
    padding-left: 0;
}



.player-header h2 {
    font-family: 'Inconsolata', monospace;
    font-size: 16pt;
    font-weight: 300;
    color: #fff;
    margin: 0;
}

.player-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.player-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    font-family: 'Inconsolata', monospace;
    font-size: 11pt;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: #fff;
    color: #000;
}

.player-btn:active {
    transform: translateY(1px);
}

.player-visualizer {
    width: 100%;
    height: 150px;
    background: #000;
    border: 1px solid #fff;
}

#audioCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.player-volume {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-volume label {
    font-family: 'Inconsolata', monospace;
    font-size: 11pt;
    font-weight: 300;
    color: #fff;
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: #444;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    cursor: pointer;
    border: 1px solid #fff;
}

/* Water of Connection page */
.woc-bg {
    background: none !important;
    background-image: none !important;
    color: inherit;
}

.woc-bg::before,
.woc-bg::after {
    display: none !important;
}

.woc-bg::before {
    top: -120px;
    left: -140px;
    background: #2f8f9a;
}

.woc-bg::after {
    bottom: -160px;
    right: -180px;
    background: #000000;
}

.woc-container {
    position: relative;
    z-index: 1;
    padding: 0; /* remove container padding so first still can sit flush at top */
    background: #000; /* ensure black backdrop */
}

.woc-main {
    min-height: 100vh;
    /* remove all padding so images truly fill from top to bottom */
    padding: 0;
    box-sizing: border-box;
}

.woc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 30px;
    align-items: end;
}

.woc-alt-desc {
    position: fixed;
    right: 164px; 
    top: 13px; /* start at top of the viewport when 4.png is visible */
    max-width: 420px;
    color: #fff;
    font-family: 'Inconsolata', monospace; /* match first paragraph */
    font-weight: 300; /* match weight of first paragraph */
    font-size: 14px; /* match .woc-title-desc */
    line-height: 1.35;
    text-align: right; /* right aligned */
    pointer-events: none;
    background: transparent;
    box-shadow: none;
    display: none;
    z-index: 1200;
}
.woc-alt-desc.visible { display: block; }
@media (max-width:900px){ .woc-alt-desc { left: 18px; right: 18px; top: auto; bottom: 80px; transform: none; text-align: left; } }
.woc-title { font-family: 'Diatype', Arial, sans-serif !important; font-weight: 900 !important; }
.woc-section-title { font-family: 'Diatype', Arial, sans-serif !important; font-weight: 900 !important; }
.woc-lede { font-family: 'Diatype', Arial, sans-serif !important; font-weight: 400 !important; }

.woc-lede {
    font-family: "Inconsolata", monospace;
    font-size: 13pt;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

/* WOC specific top title sizing/position per request */
.woc-title-top {
    position: absolute;
    right: 60px;
    top: 235px;
    font-family: "Bitcount Single", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 350;
    color: #fff;
    letter-spacing: 1.2px;
    z-index: 60;
    pointer-events: none;
    text-transform: uppercase;
}

.woc-alt-desc {
    position: fixed;
    right: 54px; /* increased gap from right as requested */
    top: 13px; /* start at top of the viewport when 4.png is visible */
    max-width: 420px;
    color: #fff;
    font-family: 'Inconsolata', monospace; /* match first paragraph */
    font-weight: 300; /* match weight of first paragraph */
    font-size: 14px; /* match .woc-title-desc */
    line-height: 1.35;
    text-align: right; /* right aligned */
    pointer-events: none;
    background: transparent;
    box-shadow: none;
    display: block; /* keep in DOM so opacity can animate */
    opacity: 0; /* start hidden */
    visibility: hidden;
    transition: opacity 1s ease; /* longer fade-in */
    z-index: 1200;
}
.woc-alt-desc.visible { opacity: 1; visibility: visible; }

.woc-detail-value {
    text-align: right;
    color: #ffffff;
}

.woc-section {
    margin-top: 44px;
}

.woc-section-title {
    font-family: "Inconsolata", monospace;
    font-size: 10pt;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.woc-image-grid {
    display: block; /* stack images vertically, full-width */
    margin: 0;
}

/* remove default section top margin on Water page so first image sits at very top */
.woc-bg .woc-section {
    margin-top: 0 !important;
    padding: 0 !important;
}

/* ensure no extra spacing around image grid */
.woc-image-grid, .woc-image-grid > * { padding: 0; margin: 0; }

/* ensure no rotation/tilt on Water page images */
.woc-bg .woc-image,
.woc-bg .woc-image:first-of-type {
    transform: none !important;
    -webkit-transform: none !important;
}

.woc-video-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* hide native <video> tiles so only the embed iframe appears */
.woc-video {
    display: none;
}

.woc-image {
    /* make full-bleed regardless of the centered .container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center center;
    border-radius: 0; /* sharp corners */
    box-shadow: none;
    display: block;
    position: relative; /* allow absolutely-positioned captions */
}

/* allow interactions on stills (needed for buttons/overlays) */
.woc-image { pointer-events: auto; }

/* small overlay caption placed on the first still (1.png) */
.woc-image .woc-overlay-caption {
    position: absolute;
    /* use relative positioning so caption scales with viewport */
    top: 60%;
    right: 3%;
    transform: translateY(-50%);
    font-size: 10pt;
    color: #ffffff;
    text-align: right;
    z-index: 999; /* ensure it sits above page elements */
    line-height: 1.05;
    text-shadow: 0 2px 6px rgba(0,0,0,0.85);
    pointer-events: none; /* allow clicks to pass through */
    padding: 0; /* remove background padding */
    background: transparent; /* remove background as requested */
    border-radius: 0;
    font-family: "Bitcount Single", system-ui, sans-serif; /* match .woc-title-top */
    font-weight: 400;
    text-shadow: none;
}

/* ensure info button and description popup can receive pointer events */
.woc-image .woc-info-btn,
.woc-image .woc-title-desc,
.woc-image #wocInfoBtn,
.woc-image #wocDesc {
    pointer-events: auto;
    cursor: default;
}

/* ensure the very first still anchors to the top */
.woc-image:first-of-type {
    background-position: top center;
}

/* ensure the first still always fills the viewport and sits flush */
.woc-bg .woc-image:first-of-type {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin-top: 0 !important;
    background-position: top center !important;
}

/* ensure the final still also fills the viewport to the bottom */
.woc-bg .woc-image:last-of-type {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin-bottom: 0 !important;
    background-position: center bottom !important;
}

/* remove extra spacing before the Back link so last image can reach bottom */
.woc-bg .woc-back {
    margin-top: 0 !important;
    position: relative;
}

/* pin Back to Works to the bottom-right as an overlay */
.woc-bg .woc-back {
    position: fixed !important;
    right: 28px !important;
    bottom: 24px !important;
    z-index: 420 !important;
    background: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    color: #fff !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.woc-bg .woc-back.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* dashed underline appearing under Back on hover (absolute so text doesn't move) */
.woc-bg .woc-back {
    display: inline-block !important;
    position: fixed !important; /* keep fixed positioning */
}
.woc-bg .woc-back::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 0;
    border-bottom: 2px solid currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 120ms linear;
    pointer-events: none;
}
.woc-bg .woc-back.visible:hover::after,
.woc-bg .woc-back:hover::after {
    transform: scaleX(1);
}
/* match Back button font to top-right title */
.woc-bg .woc-back {
    font-family: 'Inconsolata', monospace !important;
    font-weight: 300 !important;
}

/* remove container padding specifically on Water page so images touch edges */
.woc-bg .container {
    padding: 0 !important;
}

/* small fixed video overlay that sits on top of the first image */
.woc-video-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: min(420px, 56vw); /* increased size and moved to left */
    z-index: 330;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(255, 255, 255, 0.55);
    background: #000;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-8px);
    transform-origin: left bottom;
    transition: opacity 200ms ease, transform 150ms ease;
}
.woc-video-float.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.woc-video-float.visible:hover {
    transform: translateX(0) scale(1.38);
}
.woc-video-float iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

/* label shown above the floating video: same font as Back, no background, small gap */
.woc-video-label {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 8px;
    font-family: 'Inconsolata', monospace;
    font-size: 10pt;
    color: #fff;
    background: transparent;
    padding: 0;
    margin: 0;
    pointer-events: none;
    z-index: 50;
    letter-spacing: 0.02em;
}

/* per-image captions */
.woc-caption {
    position: absolute;
    top: 24px;
    left: 24px;
    color: #fff;
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
    line-height: 1.25;
    pointer-events: none;
    z-index: 40;
    text-shadow: 0 6px 18px rgba(0,0,0,0.6);
    max-width: calc(100vw - 48px);
}
.woc-caption.large {
    font-size: 15px; /* user's request */
    letter-spacing: 0.04em;
    font-weight: 600;
    text-transform: uppercase;
    right: 24px;
    left: auto;
    top: 60%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 420px;
}

/* description popup styling (controlled via .open/.closing) */
.woc-title-desc {
    position: absolute;
    right: calc(60px + 46px);
    top: 240px; /* align near the info button */
    background: transparent; /* keep background transparent */
    padding: 0; /* no extra padding */
    border-radius: 0;
    color: #fff; /* keep text visible */
    z-index: 520; /* sit above back/social overlays */
    pointer-events: none;
    max-width: 420px;
    box-shadow: none; /* remove shadow */
    opacity: 0; /* start hidden; visibility controlled via classes */
    visibility: hidden;
    transform: translateY(6px);
    transform-origin: unset;
    transition: opacity 700ms ease, transform 500ms ease, visibility 0s linear 700ms;
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-wrap;
}
.woc-title-desc.visible,
.woc-title-desc.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}
.woc-title-desc.closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* button discription */
.woc-title-left-block {
    position: absolute;
    left: 54px;
    top: 860px; /* below the title line */
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
    color: #fff;
    z-index: 60;
    pointer-events: none;
    font-size: 18.5px;
    line-height: 1.25;
    max-width: 420px;
    white-space: pre-wrap;
}
@media (max-width:900px){
    .woc-title-left-block { left: 18px; top: 140px; font-size: 11px; max-width: calc(100vw - 36px); }
}

/* focus and responsive rules will apply to the single .woc-info-btn definition above */
.woc-info-btn:focus { outline: 3px solid rgba(0,0,0,0.12); }
@media (max-width:900px){ .woc-info-btn { right:12px; top:96px; width:40px; height:40px; font-size:18px; } }

/* (previous visible description rules replaced by fixed-position variant above) */
@media (max-width:900px){ .woc-title-desc { left:auto; top:auto; font-size:13px; max-width: calc(100vw - 36px); } }

/* Fixed scroll-caption: appears under first still and hides mid-second still */
.woc-title-desc.scroll-caption {
    position: fixed;
    left: 50%;
    bottom: 56px; /* place slightly above bottom social icons */
    transform: translate(-50%, 0);
    max-width: calc(100% - 64px);
    text-align: center;
    padding: 0;
    pointer-events: none;
    background: transparent; /* ensure transparent */
    opacity: 1; /* visible when added */
    transition: none; /* disable transitions */
    z-index: 620;
    font-size: 16px;
    line-height: 1.25;
}
.woc-title-desc.scroll-caption.visible { opacity: 1; }

/* Position description at top of second still (2.png) */
.woc-title-desc.at-top {
    position: fixed; /* make visible relative to viewport */
    top: 150px; /* 13px from top as requested */
    left: 54px;
    right: auto;
    transform: none;
    max-width: 420px;
    text-align: left;
    padding: 0;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transition: none;
    z-index: 1200; /* ensure it's above other overlays */
    font-size: 14px;
    line-height: 1.35;
}
@media (max-width:900px){ .woc-title-desc.at-top { left: 18px; right: 18px; top: 13px; } }

/* Left-side alt description shown during 4.png (idx 3) */
.woc-alt-desc {
    position: fixed;
    right: 120px; /* moved inward from the edge */
    top: 70%;
    transform: translateY(-50%);
    max-width: 420px;
    color: #fff;
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    line-height: 1.45;
    text-align: right;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
    display: none;
    z-index: 1200;
}
.woc-alt-desc.visible { display: block; }
@media (max-width:900px){ .woc-alt-desc { left: 18px; right: 18px; top: auto; bottom: 80px; transform: none; } }

/* Final override: ensure alt desc does not shift images — keep text inward from edge */
.woc-alt-desc { right: 120px !important; text-align: right !important; }

@keyframes woc-pulse {
    0% { opacity: 0.45; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.52); }
}

/* Centered live-performance text shown over images 6-8 */
.woc-live-text {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 920px;
    width: min(92vw, 920px);
    color: #fff;
    text-align: center;
    font-family: 'Inconsolata', monospace;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.45;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 800ms ease, visibility 0s linear 800ms;
    z-index: 650;
}
.woc-live-text.visible { opacity: 1; visibility: visible; transition: opacity 800ms ease; }
@media (max-width: 900px) {
    .woc-live-text { font-size: 15px; padding: 0 18px; }
}

/* Staggered paragraph fade-ins inside the live text block */
.woc-live-text p {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 1000ms ease, transform 500ms ease;
}
.woc-live-text.visible p:nth-child(1) {
    transition-delay: 90ms;
    opacity: 1;
    transform: translateY(0);
}
.woc-live-text.visible p:nth-child(2) {
    transition-delay: 600ms;
    opacity: 1;
    transform: translateY(0);
}
.woc-live-text.visible p:nth-child(3) {
    transition-delay: 1000ms;
    opacity: 1;
    transform: translateY(0);
}

/* When live text is showing, subtly dim the marquee/fish glyphs to 20% opacity */
.woc-marquee { transition: opacity 260ms ease; }
.woc-live-active .woc-marquee { opacity: 0.2 !important; }

/* marquee: centered wavy, scrolling right-to-left */
.woc-marquee-wrapper {
    position: fixed; /* persist while scrolling */
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    overflow: hidden;
    pointer-events: auto; /* allow hover to pause */
    z-index: 200; /* keep above images and video */
    display: flex;
    justify-content: center;
    align-items: center;
}
.woc-marquee {
    white-space: nowrap;
    display: inline-block;
    font-family: "Inconsolata", monospace; /* match Back to Works */
    font-size: 36pt; /* slightly larger per request */
    font-weight: 500; /* medium weight */
    color: rgba(255,255,255,0.95);
    will-change: transform;
    pointer-events: none; /* allow interactions under the marquee */
    animation: woc-marquee 17s linear infinite;
}
.woc-marquee span { display:inline-block; transform-origin: center; }
/* wider sine-like wave: larger amplitude, longer period and smaller phase-step for wider wavelength */
.woc-marquee span { animation: woc-wave 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.02s); }

/* marquee track and copy styles for seamless non-overlapping scroll */
.woc-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}
.woc-marquee-copy { display: inline-block; }

@keyframes woc-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.keyframes-placeholder{}
@keyframes woc-wave {
    0% { transform: translateY(0px); }
    12.5% { transform: translateY(-18px); }
    25% { transform: translateY(-12px); }
    37.5% { transform: translateY(-6px); }
    50% { transform: translateY(0px); }
    62.5% { transform: translateY(6px); }
    75% { transform: translateY(12px); }
    87.5% { transform: translateY(18px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .woc-marquee { font-size: 20pt; }
    .woc-marquee-wrapper { top: 52%; }
}

/* pause marquee and wave on hover */
.woc-marquee-wrapper:hover .woc-marquee,
.woc-marquee-wrapper:hover .woc-marquee span {
    animation-play-state: paused !important;
}
.woc-caption.small {
    font-size: 10px; /* user's request */
    white-space: pre-wrap;
}

/* small circular white toggle button inside the floating video */
.woc-video-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    display: none; /* shown on right-click */
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: 16px;
}
.woc-video-toggle { z-index: 12; }
.woc-video-float.show-toggle .woc-video-toggle {
    display: inline-flex;
}

/* collapsed state: hide iframe and shrink to a small square */
.woc-video-float.collapsed {
    width: 64px !important;
    height: 64px !important;
    overflow: visible;
    padding: 8px !important;
}
.woc-video-float.collapsed iframe {
    display: none;
}
.woc-video-float.collapsed .woc-video-toggle {
    right: 8px;
    top: 8px;
}

/* bottom social icons for Water page (show only when last image is visible) */
.woc-bg .bottom-social-icons {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 420;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.woc-bg .bottom-social-icons.visible {
    opacity: 1;
    pointer-events: auto;
}

/* keep the main page bottom icons background-free */
.main-bg .bottom-social-icons {
    background: none !important;
}

.strudel-widget {
    position: fixed;
    right: 18px;
    top: 33%;
    transform: translateY(-50%);
    --strudel-line-height: 24px;
    --strudel-visible-lines: 15;
    z-index: 120;
}

@keyframes strudel-wave {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2.5px) rotate(-1.2deg);
    }
    50% {
        transform: translateY(0.6px) rotate(0.8deg);
    }
    75% {
        transform: translateY(-1px) rotate(-0.7deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.strudel-widget-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(760px, 74vw);
    height: min(calc(var(--strudel-line-height) * var(--strudel-visible-lines) + 24px), 78vh);
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: #000;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 260ms ease;
}

.strudel-widget.is-open .strudel-widget-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.strudel-widget-frame {
    width: 100%;
    flex: 1;
    border: 0;
    border-radius: 0;
    background: #131114;
}

@media (max-width: 1100px) {
    .strudel-widget-panel {
        width: min(680px, 82vw);
        height: min(calc(var(--strudel-line-height) * var(--strudel-visible-lines) + 24px), 74vh);
    }
}

@media (max-width: 820px) {
    .strudel-widget {
        top: auto;
        right: 4px;
        bottom: 92px;
        transform: none;
    }

    .strudel-widget-panel {
        top: auto;
        right: 0;
        bottom: calc(100% + 10px);
        width: min(92vw, 640px);
        height: min(calc(var(--strudel-line-height) * var(--strudel-visible-lines) + 24px), 46vh);
        transform: translateX(0) translateY(12px);
    }

    .strudel-widget.is-open .strudel-widget-panel {
        transform: translateX(0) translateY(0);
    }
}



.woc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-family: "Inconsolata", monospace;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11pt;
}

.woc-back:hover {
    opacity: 0.7;
}

/* visual overlay disabled - show stills in document flow instead */
.works-visual { display: none !important; }
.works-visual__track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    gap: 0; /* no spacing between images */
    align-items: stretch;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.22,0.61,0.36,1); /* smooth the motion */
}
.works-visual__item {
    flex: 0 0 100vw; /* each item fills viewport width */
    width: 100vw;
    height: 100vh; /* fill viewport height */
    background-size: cover; /* maintain aspect ratio and cover */
    background-position: center center;
    border-radius: 0; /* no gap rounding */
    box-shadow: none;
}

/* Responsive iframe embed for video */
.woc-video-embed {
    /* make the embedded video full-bleed like the stills */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 1920px;
    background: #000;
    box-sizing: border-box;
}
.woc-video-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

/* Ensure content sits above the visual track */
.container, .woc-container {
    position: relative;
    z-index: 1;
}

.woc-overlay-media {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
}
@media (max-width: 900px) {
    .woc-image {
        height: 60vh;
        min-height: 60vh;
    }
}
    /* Responsive overrides to prevent overlap and ensure fluid visuals */
    @media (max-width: 900px) {
        /* move header/menu inward and reduce sizes */
        .top-right-menu {
            top: 16px;
            right: 12px;
            gap: 12px;
            font-size: 12px;
        }
        .top-right-title {
            top: 12px;
            left: 12px;
            font-size: 12px;
            line-height: 1.1;
        }
        .nav-link { font-size: 12pt; letter-spacing: 1px; }

        /* shrink marquee and keep it from overlapping center content */
        .woc-marquee { font-size: clamp(18px, 4.5vw, 36px); top: 52%; }

        /* ensure overlay caption and titles are readable and don't overflow */
        .woc-image .woc-overlay-caption {
            right: 3%;
            left: auto;
            top: auto;
            bottom: 6vh;
            transform: none;
            text-align: right;
            font-size: 12px;
            max-width: calc(100vw - 36px);
        }

        .woc-title-top { right: 12px; top: 22vh; font-size: 14px; }

        .woc-alt-desc { left: 18px; right: 18px; top: auto; bottom: 80px; text-align: left; }

        /* make images shorter so content beneath becomes accessible */
        .woc-image { height: 60vh; min-height: 60vh; }

        /* ensure back button and floating controls are reachable */
        .woc-bg .woc-back { right: 12px !important; bottom: 16px !important; font-size: 12px; }
    }

    @media (max-width: 480px) {
        .top-right-menu { right: 8px; gap: 8px; font-size: 11px; }
        .top-right-title { left: 8px; top: 8px; font-size: 11px; }
        .nav-link { display: none; } /* hide secondary links to avoid overlap on very small screens */
        .woc-marquee { display: none; }
        .woc-image { height: 50vh; min-height: 50vh; }
        .woc-image .woc-overlay-caption { right: 6px; left: 6px; bottom: 4vh; font-size: 11px; text-align: center; }
        .woc-title-top { right: 8px; top: 18vh; font-size: 12px; }
    }
.contact-card {
    width: 100%;
    max-width: 520px;
    min-height: 520px;
    background: #000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 45px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
}

/* Global safeguards for very large display elements that cause overlap */
.cv-title {
    /* cap the absurdly large heading while allowing desktop scale */
    font-size: clamp(48px, 12vw, 2750px);
}

/* Make work items scale and avoid forcing overflow */
.work-item {
    font-size: clamp(20px, 6vw, 70px);
    width: auto; /* prevent 150% width forcing horizontal overflow on small screens */
}

/* Fallback smaller base font on narrow viewports to reduce overlap */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

/* Ensure background images that fill the viewport keep content visible */
.woc-image {
    background-position: center center;
    background-size: cover;
}


.contact-title {
    font-family: 'Inconsolata', monospace;
    font-size: 16pt;
    font-weight: 300;
    color: #fff;
    margin: 0 0 6px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.two-col {
    flex-wrap: wrap;
}

.form-field {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Inconsolata', monospace;
    font-size: 12pt;
    font-weight: 300;
    color: #fff;
}

.form-field span {
    letter-spacing: 0.3px;
    color: #fff;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1.5px solid #fff;
    border-radius: 0;
    padding: 12px 14px;
    background: #000;
    font-family: 'Inconsolata', monospace;
    font-size: 12pt;
    font-weight: 300;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
    background: #000;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-submit {
    margin-top: 8px;
    align-self: flex-start;
    padding: 12px 26px;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    border-radius: 0;
    font-family: 'Inconsolata', monospace;
    font-size: 12pt;
    font-weight: 300;
    letter-spacing: 0px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .contact-card {
        width: 100%;
        min-height: auto;
        padding: 26px;
    }

    .form-row,
    .two-col {
        flex-direction: column;
    }
}

.contact-footer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    padding: 40px 65px;
    margin-top: 60px;
    position: relative;
    background: transparent;
}

.footer-email {
    display: flex;
    align-items: center;
    position: absolute;
    right: 65px;
}

.footer-email a {
    font-family: 'Inconsolata', monospace;
    font-size: 12pt;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-email a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.footer-icon {
    width: 22px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.footer-icon:hover {
    opacity: 1;
}

/* Hide the circular info "i" button entirely (override) */
.woc-info-btn {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

