/* ================================================================
   DIP STUDIO — Premium Apple-Style Design System
   ================================================================ */

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

:root {
    --bg: #050507;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text: #f5f5f7;
    --text-muted: rgba(245,245,247,0.55);
    --accent: #6366f1;
    --accent-light: #a78bfa;
    --accent-glow: rgba(99,102,241,0.35);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'Space Grotesk', 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius: 20px;
    --radius-sm: 12px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: rgba(99,102,241,0.4); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* Accessibility: skip-to-content link (visible only on keyboard focus) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 800px; }

/* ==================== TYPOGRAPHY ==================== */
.label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.heading-xl {
    font-family: var(--display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.heading-lg {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.body-text { font-size: 1.1rem; line-height: 1.75; max-width: 560px; color: var(--text-muted); }
.body-text strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-muted); }
.center-text { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }
.accent { color: var(--accent-light); }

/* ==================== GLASSMORPHISM ==================== */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
}

.glass-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ==================== LOADER ==================== */
.loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
    font-family: var(--display);
    font-size: 2rem; font-weight: 700; letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.loader-bar { width: 120px; height: 2px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 2px; transition: width 0.3s ease; }

/* ==================== CURSOR ==================== */
.cursor, .cursor-dot { position: fixed; pointer-events: none; z-index: 9999; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor { width: 36px; height: 36px; border: 1.5px solid rgba(167,139,250,0.35); transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.3s ease; mix-blend-mode: difference; }
.cursor.hover { width: 56px; height: 56px; border-color: rgba(167,139,250,0.6); }
.cursor-dot { width: 5px; height: 5px; background: var(--accent-light); box-shadow: 0 0 12px rgba(167,139,250,0.5); }

@media (pointer: coarse) { .cursor, .cursor-dot { display: none !important; } }

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.5s var(--ease);
}
.nav.scrolled {
    background: rgba(5,5,7,0.8);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
    font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent) !important; color: #fff !important; padding: 0.5rem 1.25rem;
    border-radius: 100px; font-weight: 600 !important; transition: opacity 0.3s ease !important;
}
.nav-cta:hover { opacity: 0.9; }

.nav-toggle { display: none; background: none; border: none; width: 24px; height: 18px; position: relative; cursor: pointer; z-index: 1001; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; position: absolute; left: 0; transition: all 0.3s var(--ease); }
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }
.nav-toggle.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 2rem; background: var(--accent); color: #fff;
    font-size: 0.95rem; font-weight: 600; border-radius: 100px; border: none;
    transition: all 0.4s var(--ease);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-primary:hover { box-shadow: 0 8px 32px var(--accent-glow); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 2rem; background: transparent; color: var(--text);
    font-size: 0.95rem; font-weight: 500; border-radius: 100px;
    border: 1px solid var(--border); transition: all 0.4s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }

/* ==================== HERO SCROLL SEQUENCE (Split Layout) ==================== */
.hero-sequence { position: relative; z-index: 1; }
.hero-sequence-track { height: 500vh; position: relative; }
.hero-sequence-sticky {
    position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden;
}

.hero-split {
    display: grid; grid-template-columns: 1fr 1fr;
    height: 100%; align-items: center;
    padding: 0 max(2rem, 5vw);
    gap: 4rem;
}

/* Left column: portrait image */
.hero-image-col {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; padding: 5rem 0 2rem;
}

.hero-image-frame {
    position: relative; width: 100%; max-width: 420px;
    aspect-ratio: 3/4; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}

.seq-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.45s ease;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.seq-img:first-child {
    filter: blur(20px); transform: scale(1.05);
    transition: opacity 0.6s ease, filter 1s ease, transform 1s ease;
}
.seq-img.active { opacity: 1; }

.seq-meta {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 420px; margin-top: 1rem; padding: 0 0.25rem;
}

.seq-counter {
    font-family: var(--display); font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    letter-spacing: 0.1em;
}
.seq-current { font-size: 1.3rem; color: var(--text); }
.seq-sep { margin: 0 0.25rem; }

.seq-caption-inline {
    font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em;
    opacity: 0; transition: opacity 0.5s ease;
}
.seq-caption-inline.visible { opacity: 1; }

/* Right column: text */
.hero-text-col {
    display: flex; flex-direction: column; justify-content: center;
    height: 100%; position: relative;
}

.hero-content { max-width: 520px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--text-muted); margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 6px; height: 6px; background: #22c55e; border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 8px rgba(34,197,94,0.5);
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
    font-family: var(--display); font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1.5rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.hero-title .word.visible { transform: translateY(0); }
.hero-title .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--text-muted);
    max-width: 440px; line-height: 1.7; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-hint {
    position: absolute; bottom: 2.5rem; left: 0;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
    opacity: 0.6; animation: hint-bob 2s ease infinite;
}
.scroll-arrow { width: 1px; height: 28px; background: linear-gradient(to bottom, var(--accent-light), transparent); }
@keyframes hint-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ==================== SECTIONS ==================== */
.section { position: relative; padding: 10rem 0; z-index: 1; }

/* ==================== INTRO ==================== */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.intro-text .body-text { margin-bottom: 1rem; }

.duo-frame { position: relative; aspect-ratio: 3/4; max-height: 600px; }
.duo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; border-radius: var(--radius); }
.duo-img.active { opacity: 1; }
.duo-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; }
.duo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); transition: all 0.3s ease; }
.duo-dot.active { background: var(--accent-light); box-shadow: 0 0 10px rgba(167,139,250,0.5); transform: scale(1.2); }

/* ==================== CONSISTENCY (3 ANGLES) ==================== */
.angles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.angle-card { position: relative; aspect-ratio: 3/4; }
.angle-card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.angle-label {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    background: rgba(5,5,7,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 0.35rem 1rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ==================== HORIZONTAL SCROLL (BRAND) ==================== */
.hscroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-top: 3rem; padding: 1rem 0; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll-track { display: flex; gap: 1.25rem; padding: 0 max(2rem, calc((100vw - 1200px) / 2)); }
.hscroll-card {
    flex: 0 0 auto; width: 320px; aspect-ratio: 3/4; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    transition: transform 0.5s var(--ease), border-color 0.3s ease;
}
.hscroll-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--border-hover); }
.hscroll-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hscroll-card:hover img { transform: scale(1.05); }

/* ==================== CINEMATIC SLIDER ==================== */
.slider { position: relative; max-width: 560px; margin: 3rem auto 0; padding: 0 2rem; transition: max-width 0.5s var(--ease); }
.slider-viewport {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
    background: var(--bg); max-height: 80vh;
}
.slider-track { display: flex; transition: transform 0.6s var(--ease); }
.slider-img { flex: 0 0 100%; width: 100%; max-height: 80vh; object-fit: contain; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(5,5,7,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border); color: var(--text); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.3s ease; z-index: 3;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: -1.5rem; }
.slider-next { right: -1.5rem; }

.slider-bottom { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }

.slider-counter {
    font-family: var(--display); font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.1em;
}
#sliderCurrent { color: var(--text); font-size: 1.1rem; font-weight: 600; }

.slider-fit-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem; border-radius: 100px; cursor: pointer;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted);
    transition: all 0.3s ease;
}
.slider-fit-btn:hover { color: var(--text); border-color: var(--border-hover); }
.slider-fit-btn .fit-icon-shrink { display: none; }
.slider.fitted .slider-fit-btn .fit-icon-expand { display: none; }
.slider.fitted .slider-fit-btn .fit-icon-shrink { display: block; }

.slider.fitted { max-width: 1000px; }
.slider.fitted .slider-viewport { max-height: none; }
.slider.fitted .slider-img { max-height: none; object-fit: cover; aspect-ratio: 3/4; }
.slider.fitted .slider-prev { left: 0.5rem; }
.slider.fitted .slider-next { right: 0.5rem; }

/* ==================== PHOTO GRID (REALISM) ==================== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 4rem; }
.photo-cell {
    border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border);
    transition: transform 0.5s var(--ease), border-color 0.3s ease; cursor: pointer;
}
.photo-cell:hover { transform: translateY(-4px) scale(1.02); border-color: var(--border-hover); }
.photo-cell img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo-cell:hover img { transform: scale(1.06); }

/* ==================== PAIR ==================== */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.pair-card { aspect-ratio: 3/4; }
.pair-card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ==================== PRODUCTS ==================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 4rem; }
.product-card { position: relative; aspect-ratio: 1; }
.product-card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.product-angle {
    position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
    background: rgba(5,5,7,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 0.3rem 0.85rem; border-radius: 100px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ==================== MOSAIC (VERSATILITY) ==================== */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; }
.mosaic-cell {
    border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border);
    transition: transform 0.5s var(--ease); cursor: pointer;
}
.mosaic-cell:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic-cell:hover { transform: scale(1.02); }
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 0.6s var(--ease); }
.mosaic-cell:nth-child(1) img { aspect-ratio: auto; height: 100%; }
.mosaic-cell:hover img { transform: scale(1.05); }

/* ==================== WORKFLOWS ==================== */
.workflow-card { padding: 4rem; border-radius: 24px; margin-top: 2rem; }
.workflow-card .heading-lg { margin-top: 0.5rem; }
.workflow-card .body-text { max-width: 100%; margin-bottom: 2.5rem; }
.workflow-features { display: grid; gap: 1.5rem; }
.wf-feature { display: flex; gap: 1rem; align-items: flex-start; }
.wf-icon { width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.15); border-radius: 12px; font-size: 1.2rem; }
.wf-feature strong { font-weight: 600; color: var(--text); display: block; margin-bottom: 0.15rem; }

/* ==================== ESHOP SCROLL-PAN ==================== */
.eshop-pan { position: relative; z-index: 1; }
.eshop-pan-track { height: 400vh; position: relative; }
.eshop-pan-sticky {
    position: sticky; top: 0; height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.eshop-pan-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
    padding: 0 max(2rem, 5vw);
    width: 100%; max-width: 1200px;
    height: 80vh;
}

.eshop-pan-viewport {
    position: relative; width: 100%; height: 100%;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
    background: var(--bg-card);
}

.eshop-pan-img {
    position: absolute; top: 0; left: 0; width: 100%;
    will-change: transform;
}

.eshop-pan-info {
    display: flex; flex-direction: column; justify-content: center;
    max-width: 420px;
}
.eshop-pan-info .heading-lg { margin-top: 0.5rem; margin-bottom: 1rem; }
.eshop-pan-info .body-text { margin-bottom: 2rem; }

.eshop-pan-meter {
    width: 100%; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.06);
    overflow: hidden; margin-bottom: 0.6rem;
}
.eshop-meter-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px; transition: width 0.1s linear;
}
.eshop-meter-label {
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ==================== MODEL PAN ==================== */
.model-pan { position: relative; z-index: 1; }
.model-pan-track { height: 350vh; position: relative; }
.model-pan-sticky {
    position: sticky; top: 0; height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.model-pan-layout {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 3rem; align-items: center;
    padding: 0 max(1.5rem, 3vw);
    width: 100%; max-width: 1600px;
    height: 90vh;
}
.model-pan-viewport {
    position: relative; width: 100%; height: 100%;
    border-radius: var(--radius); overflow: hidden;
    background: #000;
}
.model-pan-img {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; transition: opacity 0.6s ease;
    will-change: transform, opacity;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.model-pan-img.active { opacity: 1; }
.model-pan-info {
    display: flex; flex-direction: column; justify-content: center;
    max-width: 380px;
}
.model-pan-info .heading-lg { margin-top: 0.5rem; margin-bottom: 1rem; }
.model-pan-info .body-text { margin-bottom: 2rem; }

/* ==================== SERVICES ==================== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.service-card { padding: 2.5rem; }
.service-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.25rem; }
.badge-a { background: rgba(99,102,241,0.12); color: var(--accent-light); border: 1px solid rgba(99,102,241,0.2); }
.badge-b { background: rgba(34,197,94,0.08); color: #4ade80; border: 1px solid rgba(34,197,94,0.12); }
.service-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.service-card p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.service-card li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.service-card li::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ==================== STANDARDS ==================== */
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 4rem; }
.std-card { padding: 2rem; }
.std-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.15); border-radius: 12px; font-size: 1.2rem; margin-bottom: 1rem; }
.std-card h4 { font-family: var(--display); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.std-card p { font-size: 0.85rem; line-height: 1.6; }

/* ==================== FAQ ==================== */
.faq-list { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0; background: none; border: none; cursor: pointer;
    font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
    transition: color 0.3s ease;
}
.faq-q:hover { color: var(--accent-light); }
.faq-icon {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%;
    font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0;
    transition: all 0.4s var(--ease-spring);
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: rgba(99,102,241,0.12); color: var(--accent-light); border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-item.active .faq-a { max-height: 250px; }
.faq-a p { padding-bottom: 1.5rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ==================== CONTACT ==================== */
.contact { padding-bottom: 8rem; }
.contact .heading-xl { margin-bottom: 1rem; }
.contact .heading-xl .accent { display: block; }
.contact-actions { margin-top: 2rem; margin-bottom: 2.5rem; }
.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-link {
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text-muted); transition: all 0.4s var(--ease);
}
.contact-link:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

/* ==================== FOOTER ==================== */
.footer { padding: 2.5rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { font-size: 0.8rem; }
.footer-badges { display: flex; gap: 0.75rem; }
.footer-badge { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.6rem; border-radius: 4px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); }

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm);
    transform: scale(0.9); transition: transform 0.5s var(--ease-spring);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.25s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
    .angles-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .standards-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .mosaic { grid-template-columns: repeat(2, 1fr); }
    .mosaic-cell:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    .section { padding: 6rem 0; }
    .container { padding: 0 1.25rem; }

    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(5,5,7,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center; gap: 2rem; padding: 2rem;
        transition: right 0.4s var(--ease); border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }
    .nav-toggle { display: block; }

    /* Hero scroll sequence — keep sticky on mobile */
    .hero-sequence-track { height: 350vh; }
    .hero-sequence-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
    .hero-split {
        grid-template-columns: 1fr; gap: 1rem; padding: 0 1.5rem;
        height: 100%; justify-content: flex-start; padding-top: 4rem; padding-bottom: 2rem;
    }
    .hero-image-col { padding: 0 0 0; }
    .hero-image-frame { max-width: 240px; }
    .hero-text-col { justify-content: flex-start; padding-bottom: 0; }
    .hero-badge { margin-bottom: 0.75rem; }
    .hero-title { margin-bottom: 1rem; }
    .hero-sub { margin-bottom: 1.25rem; }
    .hero-actions { margin-bottom: 1rem; }
    .hero-scroll-hint { position: relative; bottom: auto; margin-top: 1rem; }
    .intro { padding-top: 4rem; padding-bottom: 4rem; }
    .intro-grid { gap: 2rem; }

    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .pair-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .standards-grid { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: 1fr 1fr; }

    .workflow-card { padding: 2rem; }
    .eshop-pan-layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.25rem; height: auto; }
    .eshop-pan-viewport { height: 50vh; }
    .eshop-pan-info { padding-bottom: 2rem; }
    .eshop-pan-track { height: 300vh; }
    .model-pan-layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.25rem; height: auto; }
    .model-pan-viewport { height: 60vh; }
    .model-pan-info { padding-bottom: 2rem; }
    .model-pan-track { height: 300vh; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .contact-links { flex-direction: column; align-items: center; }
    .hscroll-card { width: 260px; }
    .slider { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .heading-lg { font-size: 2rem; }
    .heading-xl { font-size: 2.5rem; }
    .hero-image-col { padding: 3.5rem 0 0; }
    .hero-image-frame { max-width: 200px; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { justify-content: center; width: 100%; }
    .angles-grid { grid-template-columns: 1fr; }
}

/* ==================== INTRODUCTION GUIDE ==================== */

/* Corner trigger */
.guide-trigger {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.guide-trigger:hover { color: var(--text); border-color: var(--accent); transform: scale(1.1); }
.guide-trigger svg { pointer-events: none; }
.guide-hero-btn { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Overlay */
.guide-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(2,2,4,0.97);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s ease;
}
.guide-overlay.active { display: flex; }
.guide-overlay.visible { opacity: 1; }

/* Canvas background */
#guideCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* Progress bar */
.guide-progress {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255,255,255,0.05); z-index: 3; overflow: hidden;
}
.guide-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.8s var(--ease);
}

/* Close button */
.guide-close {
    position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.4rem; line-height: 1;
    border: 1px solid var(--border); transition: all 0.3s ease;
}
.guide-close:hover { color: var(--text); border-color: var(--accent); transform: rotate(90deg); }

/* Sound toggle */
.guide-sound {
    position: absolute; top: 1.5rem; left: 1.5rem; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.guide-sound:hover { color: var(--text); border-color: var(--accent); }
.guide-sound.muted .guide-sound-wave { opacity: 0.2; }
.guide-sound.muted { opacity: 0.5; }

/* Stage (image area) — uses absolute positioning so image + grid don't fight for layout */
.guide-stage {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 4.5rem 2rem 10rem;
    pointer-events: none;
}

.guide-visual {
    max-width: 380px; width: 100%; aspect-ratio: 3/4;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    opacity: 0; transform: scale(0.94) translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}
.guide-visual.show { opacity: 1; transform: scale(1) translateY(0); }

.guide-img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}

/* Narrator bar — fixed at bottom */
.guide-narrator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2; width: calc(100% - 3rem); max-width: 680px;
    padding: 1.2rem 1.75rem 1rem;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border); border-radius: 16px;
    min-height: 72px;
    opacity: 0; transform: translateX(-50%) translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.guide-narrator.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.guide-narrator-inner { display: flex; flex-direction: column; gap: 0.35rem; }

.guide-label {
    font-family: var(--display); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); opacity: 0.7;
}

.guide-text {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem); line-height: 1.6;
    color: var(--text); font-weight: 400; min-height: 1.6em;
}

.guide-caret {
    display: inline-block; width: 2px; height: 1.05em;
    background: var(--accent); margin-left: 2px;
    animation: guideBlink 0.8s ease infinite;
    vertical-align: text-bottom;
}
@keyframes guideBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.guide-hint {
    display: block; margin-top: 0.4rem;
    font-size: 0.6rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-muted); opacity: 0.4;
}

/* Multi-image grid in guide */
.guide-grid {
    display: grid; gap: 0.75rem; max-width: 560px; width: 100%;
    opacity: 0; transform: scale(0.94) translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}
.guide-grid.show { opacity: 1; transform: scale(1) translateY(0); }
.guide-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.guide-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.guide-grid img {
    display: block; width: 100%; border-radius: 10px; border: 1px solid var(--border);
    object-fit: cover; aspect-ratio: 3/4;
}

/* Eshop auto-scroll preview in guide */
.guide-eshop-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
    width: 100%; max-width: 820px;
    opacity: 0; transform: scale(0.94) translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}
.guide-eshop-layout.show { opacity: 1; transform: scale(1) translateY(0); }

.guide-eshop-viewport {
    position: relative; width: 100%; height: 60vh;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    background: var(--bg-card);
}
.guide-eshop-img { display: block; width: 100%; will-change: transform; }

.guide-eshop-info { display: flex; flex-direction: column; justify-content: center; }
.guide-eshop-title {
    font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem;
}
.guide-eshop-title span { color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
    .guide-narrator { max-width: calc(100% - 2rem); padding: 1rem 1.25rem; bottom: 1.25rem; }
    .guide-visual { max-width: 260px; }
    .guide-stage { padding: 4rem 1.5rem 9rem; }
    .guide-trigger { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }
    .guide-grid { max-width: 340px; }
    .guide-eshop-layout { grid-template-columns: 1fr; max-width: 320px; gap: 1.5rem; }
    .guide-eshop-viewport { height: 40vh; }
    .guide-eshop-info { text-align: center; align-items: center; }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .cursor, .cursor-dot { display: none !important; }
    .seq-img:first-child { filter: none; transform: none; }
}
