/* CSS Custom Properties mapping to allow per-page theme overrides */
:root {
    /* Fallback variable definitions. Each project page will override these in its own <style> block. */
    --bg-color: #ffffff;
    --text-main: #1B1B1B;
    --text-sub: #666666;
    --border-color: #eeeeee;
    --point-color: #33C5F4;
    --line-color: rgba(0, 0, 0, 0.15);
    
    /* Font weights for content (allows making text thinner on dark backgrounds) */
    --fw-semibold: 600;
    --fw-regular: 400;
    --fw-light: 300;
    --fw-extralight: 200;
    
    /* Specific components */
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: none;
    --logo-filter: none;
    --nav-text-color: var(--text-main);
    --nav-opacity: 0.8;
    
    --back-btn-bg: rgba(255, 255, 255, 0.48);
    --back-btn-border: var(--text-main);
    --back-btn-hover-bg: rgba(255, 255, 255, 0.9);
    --back-btn-hover-border: var(--text-main);
    
    --hero-bg: #f4f4f4;
    --banding-fix-bg: #f4f4f4;
    --banding-fix-opacity: 0.04;
    
    --body-en-color: #333;
    --center-sub-heading-color: #333;
    --quote-mark-color: #999;
    --canvas-blend: multiply;
}

/* Base layouts specific to project pages */
.back-nav-container {
    width: 100%; max-width: 100%; padding: 0 40px; margin: 0 auto;
    position: -webkit-sticky; position: sticky; top: 110px; z-index: 50; 
    height: 0; overflow: visible; pointer-events: none; transition: transform 0.3s ease-in-out;
}
.back-nav-container.nav-up { transform: translateY(-100px); }
.back-btn {
    display: flex; justify-content: center; align-items: center;
    width: 48px; height: 48px; border-radius: 50%; 
    border: 2px solid var(--back-btn-border); 
    background: var(--back-btn-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    text-decoration: none; color: var(--text-main); opacity: 1; 
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    cursor: pointer; pointer-events: auto; transform: translateY(20px); 
}
.back-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; transform: translateX(-1px); }
.back-btn:hover { transform: translateY(20px) translateX(-3px); background: var(--back-btn-hover-bg); border-color: var(--back-btn-hover-border); }

main { width: 100%; padding-top: 90px; position: relative; }
.hero-section { width: 100%; padding: 0; margin-bottom: 60px; }
.hero-image { width: 100%; height: auto; display: block; border-radius: 0; background-color: var(--hero-bg); object-fit: cover; object-position: center; min-height: 400px; }

.project-header { max-width: 1800px; margin: 0 auto 60px; padding: 0 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.project-title h1 { font-size: clamp(40px, 6vw, 100px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 0; color: var(--text-main); }
.project-specs { text-align: right; font-size: 14px; color: var(--text-sub); line-height: 1.6; }

.content-container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0; }
.full-image-block { margin-bottom: 60px; width: 100%; }
.full-image-block img { width: 100%; height: auto; display: block; border-radius: 0; margin-bottom: 20px; }
.full-image-block img.mobile-view-img { max-width: 1000px; width: 100%; display: block; margin: 0 auto 60px; }
.full-image-block video.locked-video { width: 100%; height: auto; display: block; border-radius: 0; margin-bottom: 20px; pointer-events: none; }
.full-image-block video.video-limit { max-width: 1000px; width: 100%; margin: 0 auto; display: block; }
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }

.banding-fix { position: relative; width: 100%; background-color: var(--banding-fix-bg); overflow: hidden; margin-bottom: 60px; }
.banding-fix video { display: block; width: 100%; height: auto; position: relative; z-index: 1; will-change: transform; transform: translate3d(0, 0, 0); }
.banding-fix::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: var(--banding-fix-opacity); mix-blend-mode: overlay; 
}

.graph-block { width: 100%; max-width: 800px; margin: 0 auto 40px; }
.graph-block video { width: 100%; height: auto; display: block; pointer-events: none; }
.web-constrained-img { width: 100%; max-width: 1200px; margin: 0 auto 20px; display: block; height: auto; }
.solution-logo, .seesaw-logo-img { width: 100%; max-width: 600px; padding: 0 40px; height: auto; display: block; margin: 40px auto 0; }
.seesaw-logo-img { max-width: 380px; padding: 0; margin-bottom: 30px; }

.body-en { font-size: 16px; color: var(--body-en-color); line-height: 1.6; margin-bottom: 30px; font-weight: var(--fw-regular); }
.body-kr { font-size: 14px; color: var(--text-sub); line-height: 1.7; font-weight: var(--fw-light); }
.intro-lead { display: block; font-size: 24px; font-weight: 700; color: var(--text-main); line-height: 1.3; margin-bottom: 15px; }

.highlight-text { color: var(--point-color); font-weight: 700; font-style: italic; }
.highlight-orange, .blue-label, .highlight-blue { color: var(--point-color); font-weight: 700; }
.blue-label { font-size: 24px; margin-bottom: 15px; display: block; }

.title-group { width: 100%; text-align: center; padding: 100px 20px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vertical-line { width: 1px; height: 60px; background-color: var(--line-color); margin: 0 auto 20px auto; }
.horizontal-line { width: 100%; max-width: 400px; height: 1px; background-color: var(--line-color); margin: 0 auto 80px auto; }
.small-label { font-size: 16px; color: var(--text-sub); font-weight: var(--fw-regular); margin-bottom: 60px; letter-spacing: 0.05em; text-transform: uppercase; }

.main-quote { font-size: clamp(32px, 5vw, 72px); font-weight: var(--fw-light); color: var(--text-main); line-height: 1.3; letter-spacing: -0.02em; word-break: keep-all; }
.main-quote span.quote-mark { font-family: serif; color: var(--quote-mark-color); margin: 0 5px; }
.main-heading { font-size: 38px; font-weight: 700; color: var(--text-main); line-height: 1.2; margin-bottom: 15px; letter-spacing: -0.02em; }
.sub-heading { font-size: 18px; color: var(--text-sub); font-weight: var(--fw-semibold); margin-top: 5px; }
.center-heading { font-size: clamp(32px, 5vw, 64px); font-weight: 700; color: var(--text-main); line-height: 1.2; margin-bottom: 24px; letter-spacing: -0.03em; }
.center-sub-heading { font-size: clamp(18px, 2.5vw, 28px); font-weight: var(--fw-semibold); color: var(--center-sub-heading-color); margin-bottom: 30px; letter-spacing: -0.02em; }
.center-body-kr { font-size: 16px; font-weight: var(--fw-regular); color: var(--text-sub); line-height: 1.8; }

.juxtapose { width: 100%; margin: 0 auto; }
.text-section-split { display: flex; justify-content: space-between; align-items: flex-start; max-width: 1200px; width: 100%; margin: 0 auto 80px; padding: 0 40px; gap: 40px; }
.text-section-split.align-center { align-items: center; }
.text-left { flex: 0 0 40%; }
.text-right { flex: 1; padding-top: 10px; padding-left: 40px; padding-right: 40px; box-sizing: border-box; max-width: 1200px; margin: 0 auto 60px; }
.text-section-split.align-center .text-right { padding-top: 0; }
.image-text-split { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; width: 100%; margin: 0 auto 80px; padding: 0 40px; gap: 60px; }
.split-image { flex: 1; width: 50%; display: flex; justify-content: center; }
.split-image img, .split-image video { width: 100%; max-width: 550px; height: auto; display: block; border-radius: 0; }
.split-text { flex: 1; width: 50%; padding: 0 40px; box-sizing: border-box; text-align: left; }
.split-heading { font-size: 38px; font-weight: 700; color: var(--text-main); line-height: 1.2; margin-bottom: 15px; letter-spacing: -0.02em; }
.step-label { font-size: 20px; color: #888; font-weight: var(--fw-light); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.text-section-center { text-align: center; width: 100%; max-width: 1000px; margin: 100px auto; padding: 0 40px; }
.text-single-block { max-width: 800px; width: 100%; margin: 100px auto; padding: 0 40px; text-align: left; }
.text-single-block .body-en { margin-bottom: 24px; }
.detail-text { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: var(--body-en-color); max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px; font-weight: var(--fw-light); word-break: keep-all; }
.gif-grid-section { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 100%; margin: 0 auto 60px; gap: 0; }
.gif-item { width: 100%; position: relative; padding: 0; }
.gif-item img { width: 100%; height: auto; display: block; object-fit: cover; }
.zigzag-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; max-width: 1200px; width: 100%; margin: 0 auto 80px; padding: 0 40px; }
.zigzag-svg-wrapper { flex: 1; display: flex; justify-content: center; }
.zigzag-svg-wrapper svg { height: 300px; width: auto; }
.zigzag-text-wrapper { flex: 1; padding-top: 10px; }
.zigzag-path { fill: none; stroke: var(--text-main); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: url(#scribble); animation: morph-snappy 1.8s infinite alternate cubic-bezier(0.7, 0, 0.3, 1); }

@keyframes morph-snappy {
    0% { d: path("M 100 5 L 100 95 M 100 105 L 100 195 M 100 205 L 100 295 M 100 305 L 100 395 M 100 405 L 100 495 M 100 505 L 100 595"); }
    100% { d: path("M 73 64 L 127 136 M 127 144 L 73 216 M 73 224 L 127 296 M 127 304 L 73 376 M 73 384 L 127 456 M 127 464 L 73 536"); }
}

.stats-text-container { display: flex; justify-content: space-between; align-items: flex-start; max-width: 800px; width: 100%; margin: 0 auto 100px; padding: 0 20px; gap: 40px; }
.stats-text-item { flex: 1; width: 50%; text-align: left; }
.stats-title { font-size: 28px; font-weight: 700; color: var(--text-main); line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.02em; word-break: keep-all; }
.stats-title .highlight-text { color: var(--point-color); font-style: normal; }
.stats-sub { font-size: 15px; color: var(--text-sub); font-weight: var(--fw-regular); margin-bottom: 20px; }
.stats-source { font-size: 13px; color: #999999; font-weight: var(--fw-light); line-height: 1.4; }

.problem-define-section { width: 100%; max-width: 1200px; margin: 40px auto 60px; padding: 0 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.problem-label { font-size: 24px; font-weight: 700; font-style: italic; color: var(--point-color); margin-bottom: 20px; width: 100%; max-width: 800px; text-align: left; padding-left: 10px; }
.bracket-container { display: inline-block; position: relative; padding: 20px 60px; max-width: 90%; }
.bracket-container::before { content: ''; position: absolute; top: 0; left: 0; width: 30px; height: 100%; border-left: 6px solid var(--point-color); border-top: 6px solid var(--point-color); border-bottom: 6px solid var(--point-color); }
.bracket-container::after { content: ''; position: absolute; top: 0; right: 0; width: 30px; height: 100%; border-right: 6px solid var(--point-color); border-top: 6px solid var(--point-color); border-bottom: 6px solid var(--point-color); }
.bracket-text { font-size: clamp(40px, 5vw, 80px); font-weight: 700; color: var(--point-color); line-height: 1.2; text-align: center; margin: 0; letter-spacing: -0.02em; }
.problem-heading { font-size: 42px; font-weight: 700; color: var(--point-color); line-height: 1.2; margin-bottom: 30px; position: relative; display: inline-block; font-style: italic; }
.problem-heading::after { content: ''; display: block; width: 100%; height: 1px; background-color: #ddd; margin-top: 10px; }
.ref-text { font-size: 13px; color: #888; font-weight: var(--fw-light); margin-bottom: 30px; font-style: italic; }

.mission-section { text-align: center; width: 100%; max-width: 1200px; margin: 150px auto; padding: 0 20px; }
.mission-text-en { font-size: clamp(20px, 3.2vw, 40px); font-weight: var(--fw-light); color: var(--text-main); line-height: 1.4; margin: 0; letter-spacing: -0.02em; }
.mission-text-en .highlight-orange { font-size: clamp(24px, 4vw, 48px); font-weight: 700; color: var(--point-color); }
.mission-text-kr { font-size: 15px; color: var(--text-sub); font-weight: var(--fw-light); margin-top: 50px; line-height: 1.6; word-break: keep-all; }

.definition-section { display: flex; justify-content: center; align-items: center; max-width: 1400px; width: 100%; margin: 150px auto; padding: 0 40px; gap: 80px; }
.def-left { text-align: left; display: flex; flex-direction: column; justify-content: center; }
.def-lang { font-size: 16px; font-weight: var(--fw-light); color: #888; margin-bottom: 5px; display: block; }
.def-title { font-size: clamp(60px, 7vw, 120px); font-weight: var(--fw-extralight); color: var(--text-main); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.def-meaning { font-size: clamp(30px, 4vw, 50px); font-weight: 700; color: var(--point-color); font-style: italic; margin: 10px 0 0 0; line-height: 1; }
.def-divider { width: 1px; height: 140px; background-color: #ddd; }
.def-right { text-align: left; display: flex; flex-direction: column; justify-content: center; }
.slogan-sub { font-size: clamp(18px, 2.5vw, 32px); font-weight: var(--fw-light); color: var(--text-main); margin: 0 0 10px 0; line-height: 1.2; }
.slogan-main { font-size: clamp(40px, 6vw, 100px); font-weight: 700; color: var(--point-color); font-style: italic; line-height: 1; margin: 0; letter-spacing: -0.02em; }

.closing-section { max-width: 1200px; margin: 100px auto; padding: 0 20px; text-align: center; }
.closing-block { margin-bottom: 80px; }
.closing-section .mission-text-en { margin-bottom: 10px; }
.closing-section .mission-text-kr { margin-top: 10px; } 

.product-identity-section { max-width: 1400px; width: 100%; margin: 150px auto; padding: 0 40px; text-align: left; }
.identity-title { color: var(--point-color); font-style: italic; line-height: 1.1; margin-bottom: 60px; letter-spacing: -0.02em; text-align: left; }
.identity-desc { max-width: 800px; margin: 0; text-align: left; }
.product-identity-section.centered { text-align: center; }
.product-identity-section.centered .identity-title { text-align: center; }
.product-identity-section.centered .identity-desc { margin: 0 auto; text-align: center; }
.brand-bold { font-size: clamp(60px, 8vw, 120px); font-weight: 800; }
.brand-pipe { font-size: clamp(60px, 8vw, 120px); font-weight: var(--fw-extralight); margin: 0 10px; color: var(--point-color); vertical-align: top; }
.brand-thin { font-size: clamp(60px, 8vw, 120px); font-weight: var(--fw-extralight); display: block; }

.touching-space-section { max-width: 1400px; width: 100%; margin: 60px auto 100px; padding: 0 40px; text-align: left; }
.touching-title { font-size: clamp(48px, 6vw, 90px); font-weight: 800; color: var(--point-color); line-height: 1.1; margin-bottom: 10px; }
.touching-sub { font-size: clamp(24px, 3vw, 40px); font-weight: var(--fw-light); color: var(--text-main); margin-bottom: 10px; }
.touching-kr { font-size: 16px; color: #888; font-weight: var(--fw-light); margin-bottom: 40px; }
.touching-line { width: 200px; height: 1px; background-color: #ddd; }

.text-section-vertical-wide { width: 100%; max-width: 1800px; margin: 0 auto 80px; padding: 0 20px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.vertical-head { margin-bottom: 30px; width: 100%; }
.wide-logo-img { width: 100%; height: auto; max-width: 800px; display: block; }
.vertical-body { width: 100%; max-width: 100%; }
.hand-tracking-container { max-width: 1200px !important; margin: 0 auto 100px; width: 100%; padding: 0 40px; }

.credit-section { margin-top: 40px; border-top: 1px solid var(--border-color); padding: 40px 40px 0; max-width: 1800px; margin-left: auto; margin-right: auto; }
.credit-grid { display: grid; grid-template-columns: 180px 1fr; gap: 15px; margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.credit-label { font-weight: 700; color: var(--text-main); }
.credit-content { font-weight: var(--fw-light); color: var(--text-sub); }

.next-project { padding: 140px 40px; text-align: center; cursor: pointer; transition: transform 0.3s ease; margin-top: 60px; position: relative; overflow: hidden; color: #ffffff; isolation: isolate; z-index: 1; }
.next-project::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: var(--next-bg); background-size: cover; background-position: center; filter: blur(10px) brightness(0.6); z-index: -1; transform: scale(1.1); transition: filter 0.3s ease, transform 0.3s ease; }
.next-project:hover { transform: translateY(-5px); }
.next-project:hover::before { filter: blur(5px) brightness(0.7); transform: scale(1.05); }
.next-label { font-size: 16px; color: rgba(255, 255, 255, 0.8); margin-bottom: 15px; letter-spacing: 0.05em; text-transform: uppercase; }
.next-title { font-size: clamp(32px, 5vw, 72px); font-weight: 800; letter-spacing: -0.02em; }

@media (min-width: 769px) {
    .video-limit-small { max-width: 1000px !important; margin: 0 auto !important; }
    .hand-tracking-container.reverse-desktop { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 40px; }
    .hand-tracking-container .split-text { text-align: left; flex: 0 0 auto; width: auto; }
    .hand-tracking-container .split-image { flex: 1; display: flex; justify-content: flex-end; }
    .hand-tracking-container .split-image img, .hand-tracking-container .split-image video { max-width: 650px; width: 100%; height: auto; }
}

@media (max-width: 768px) {
    .back-nav-container { top: 150px; padding: 0 20px; }
    .project-header { flex-direction: column; align-items: flex-start; padding: 0 20px; margin-bottom: 60px; }
    .project-specs { text-align: left; margin-top: 20px; }
    .hero-image { height: 80vh; }
    .text-right { flex: 0 0 auto; width: 100%; padding: 0 20px; padding-top: 0; }
    .credit-section { padding: 40px 20px 0; }
    .credit-grid { grid-template-columns: 1fr; gap: 5px; margin-bottom: 30px; }
    .credit-label { margin-bottom: 5px; }
    .next-project { padding: 100px 20px; }
    .next-title { font-size: 40px; }
    .title-group { padding: 80px 20px 20px; }
    .vertical-line { height: 40px; }
    .small-label { margin-bottom: 40px; font-size: 14px; }
    .horizontal-line { max-width: 200px; margin-bottom: 50px; }
    .main-quote { font-size: 32px; margin-bottom: 10px; }
    .full-image-block { margin-bottom: 60px; }
    .full-image-block img.mobile-view-img { max-width: 100%; }
    .graph-block { margin-bottom: 20px; }
    .web-constrained-img { max-width: 100%; } 
    .solution-logo { padding: 0 20px; max-width: 80%; }
    .seesaw-logo-img { width: 70%; max-width: 400px; margin: 0 auto 30px auto; display: block; }
    .text-section-split { flex-direction: column; gap: 30px; padding: 0 20px; margin-bottom: 60px; }
    .text-left { flex: 0 0 auto; width: 100%; }
    .image-text-split { flex-direction: column; gap: 40px; padding: 0 20px; margin-bottom: 80px; }
    .split-image { width: 100%; padding: 0; }
    .split-image video { max-width: 100%; }
    .split-text { width: 100%; padding: 0; }
    .split-heading { font-size: 32px; margin-bottom: 10px; }
    .zigzag-container { flex-direction: column; gap: 30px; padding: 0 20px; margin-bottom: 60px; }
    .zigzag-svg-wrapper, .zigzag-text-wrapper { width: 100%; flex: 0 0 auto; }
    .zigzag-text-wrapper { padding-top: 0; }
    .zigzag-svg-wrapper svg { height: 250px; }
    .gif-grid-section { grid-template-columns: repeat(2, 1fr); }
    .main-heading { font-size: 32px; margin-bottom: 10px; }
    .blue-label { font-size: 20px; margin-bottom: 10px; }
    .text-section-center { margin: 60px auto; padding: 0 20px; }
    .text-single-block { margin: 60px auto; padding: 0 20px; max-width: 100%; }
    .detail-text { padding: 0 20px; }
    .full-image-block video.video-limit { max-width: 100%; }
    .stats-text-container { flex-direction: row !important; gap: 20px; padding: 0 20px; margin-bottom: 80px; }
    .stats-title { font-size: 16px; margin-bottom: 5px; }
    .stats-sub { font-size: 12px; margin-bottom: 10px; }
    .stats-source { font-size: 11px; letter-spacing: -0.05em; }
    .problem-define-section { margin: 20px auto 40px; padding: 0 20px; }
    .problem-label { font-size: 18px; text-align: center; padding-left: 0; margin-bottom: 15px; }
    .bracket-container { padding: 15px 30px; }
    .bracket-container::before, .bracket-container::after { width: 15px; border-width: 4px; }
    .problem-heading { font-size: 28px; margin-bottom: 20px; }
    .mission-section { margin: 100px auto; }
    .mission-text-en { line-height: 1.3; }
    .mission-text-kr { font-size: 13px; margin-top: 30px; padding: 0 10px; }
    .pc-break { display: none; }
    .definition-section { flex-direction: column; gap: 40px; margin: 100px auto; text-align: center; }
    .def-left, .def-right { text-align: center; align-items: center; }
    .def-divider { width: 60px; height: 1px; }
    .def-title { font-size: 80px; }
    .def-meaning { font-size: 32px; }
    .slogan-sub { font-size: 20px; }
    .slogan-main { font-size: 50px; }
    .product-identity-section { margin: 100px auto; padding: 0 20px; }
    .brand-bold, .brand-pipe, .brand-thin { font-size: 48px; }
    .touching-space-section { margin: 60px auto; padding: 0 20px; }
    .touching-title { font-size: 48px; }
    .touching-sub { font-size: 24px; }
    .touching-kr { font-size: 14px; }
    .hand-tracking-container .split-heading { font-size: 64px !important; line-height: 0.9; margin-bottom: 20px; }
    .hand-tracking-container .body-en { font-size: 28px !important; line-height: 1.2; }
    .hand-tracking-container .body-kr { font-size: 16px; }
}

