

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --ink: #0a0f1c;
    --ink-l: #151c2e;
    --ink-xl: #1e2740;
    --parch: #faf8f3;
    --parch-d: #f0ece4;
    --ember: #2b6cb0;
    --ember-d: #1e5494;
    --teal: #1a7a6d;
    --teal-l: #22a08f;
    --gold: #ffffff;
    --gold-dim: rgba(255, 255, 255, 0.6);
    --t1: #faf8f3;
    --t2: #d0cdc6;
    --t3: #8585a0;
    --t4: #55556b;
    --font-display: 'Nunito', -apple-system, sans-serif;
    --font-primary: 'Nunito', -apple-system, sans-serif;
    --font-serif: 'Nunito', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; overflow: hidden; overflow-x: hidden; }
html::-webkit-scrollbar { display: none; }

body {
    font-family: var(--font-primary);
    background: var(--ink);
    color: var(--t1);
    overflow: hidden;
    overflow-x: hidden;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(255,255,255,0.2); color: var(--parch); }

#loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1), visibility 1.2s;
}
#loader.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-content {
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
}
.loader-logo {
    font-family: var(--font-primary);
    font-size: 4rem; font-weight: 800;
    color: var(--parch);
    letter-spacing: 0.2em;
    opacity: 0;
    animation: logoReveal 1.5s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.6) translateY(10px); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
.loader-line {
    width: 0; height: 1px; margin: 1.8rem 0 1.5rem;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: lineGrow 1.2s cubic-bezier(0.4,0,0.2,1) 0.8s forwards;
}
@keyframes lineGrow { 0%{width:0} 100%{width:160px} }

.loader-text {
    display: flex; gap: 0.5rem;
    font-family: var(--font-primary); font-size: 0.75rem;
    font-weight: 300; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--t3);
}
.lt-word {
    opacity: 0;
    animation: wordFade 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
    animation-delay: calc(1s + var(--d) * 0.2s);
}
@keyframes wordFade {
    0% { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.loader-bar {
    width: 100px; height: 1px; margin-top: 1.5rem;
    background: rgba(255,255,255,0.04); overflow: hidden;
    opacity: 0;
    animation: barAppear 0.5s ease 1.8s forwards;
}
@keyframes barAppear { to { opacity: 1; } }
.loader-bar-fill {
    height: 100%; width: 0;
    background: rgba(255,255,255,0.25);
    animation: loaderFill 1.5s cubic-bezier(0.4,0,0.2,1) 1.8s forwards;
}
@keyframes loaderFill { 0%{width:0} 50%{width:60%} 100%{width:100%} }

#experience { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

#supernova-overlay {
    position: fixed; inset: 0; z-index: 100; pointer-events: none;
    background: radial-gradient(circle at center, #fff, var(--gold), var(--ember), transparent);
    opacity: 0; transform: scale(0); mix-blend-mode: screen;
}

#grain-overlay {
    position: fixed; top:-50%; left:-50%; width:200%; height:200%;
    z-index: 9999; pointer-events: none; opacity: 0.022;
    mix-blend-mode: overlay; animation: grain .5s steps(4) infinite;
}
@keyframes grain {
    0%{transform:translate(0,0)} 25%{transform:translate(-2%,-3%)}
    50%{transform:translate(3%,1%)} 75%{transform:translate(-1%,3%)}
    100%{transform:translate(2%,-2%)}
}

#scan-line {
    position: fixed; top:0; left:0; width:100%; height:1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    z-index: 6; pointer-events: none; animation: scan 10s linear infinite;
}
@keyframes scan { 0%{top:-1px} 100%{top:100vh} }

#dust-layer { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.dust {
    position: absolute; left: var(--x); top: var(--y);
    width: var(--size); height: var(--size);
    background: var(--gold); border-radius: 50%; opacity: 0;
    animation: dusty var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes dusty {
    0%{opacity:0;transform:translate(0,0) scale(1)} 20%{opacity:var(--o)}
    50%{transform:translate(30px,-60px) scale(1.3)} 80%{opacity:var(--o)}
    100%{opacity:0;transform:translate(-20px,-120px) scale(.8)}
}

#ambient-leaks { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.leak { position: absolute; border-radius: 50%; filter: blur(100px); }
.leak-1 { width:500px;height:500px;background:rgba(43,108,176,0.05);top:10%;left:-10%;animation:ld1 22s ease-in-out infinite; }
.leak-2 { width:400px;height:400px;background:rgba(255,255,255,0.03);top:50%;right:-10%;animation:ld2 28s ease-in-out infinite; }
.leak-3 { width:600px;height:600px;background:rgba(26,122,109,0.025);bottom:-20%;left:30%;animation:ld3 32s ease-in-out infinite; }
@keyframes ld1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,40px)} }
@keyframes ld2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-60px,-50px)} }
@keyframes ld3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-70px)} }

.corner { position: fixed; width: 20px; height: 20px; z-index: 11; pointer-events: none; }
.corner::before, .corner::after { content:''; position: absolute; background: var(--gold); opacity: 0.1; }
.corner-tl { top:24px;left:24px; } .corner-tl::before { width:20px;height:1px; } .corner-tl::after { width:1px;height:20px; }
.corner-tr { top:24px;right:24px; } .corner-tr::before { right:0;width:20px;height:1px; } .corner-tr::after { right:0;width:1px;height:20px; }
.corner-bl { bottom:24px;left:24px; } .corner-bl::before { bottom:0;width:20px;height:1px; } .corner-bl::after { bottom:0;width:1px;height:20px; }
.corner-br { bottom:24px;right:24px; } .corner-br::before { bottom:0;right:0;width:20px;height:1px; } .corner-br::after { bottom:0;right:0;width:1px;height:20px; }

#chapter-indicator {
    position: fixed; top:1.8rem; left:50%; transform:translateX(-50%); z-index:15;
    display:flex; align-items:center; gap:0.75rem;
    padding:0.45rem 1.4rem;
    background:rgba(10,15,28,0.5);
    backdrop-filter:blur(20px) saturate(1.3);
    -webkit-backdrop-filter:blur(20px) saturate(1.3);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:100px;
    font-family:var(--font-mono); font-size:0.6rem;
    letter-spacing:0.2em; text-transform:uppercase;
    color:var(--t4); opacity:0;
    transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
#chapter-indicator.visible { opacity:1; }
.ci-number { color:var(--gold); font-weight:700; }
.ci-divider { opacity:0.2; }

#chapter-nav {
    position:fixed; right:2rem; top:50%; transform:translateY(-50%); z-index:25;
    display:flex; flex-direction:column; align-items:center; gap:18px;
}
.nav-track {
    position:absolute; width:1px; top:-8px; bottom:-8px;
    background:linear-gradient(to bottom,transparent,rgba(255,255,255,0.06),transparent);
}
.nav-dot {
    width:6px; height:6px; border-radius:50%;
    background:rgba(250,248,243,0.1);
    border:none; cursor:pointer; position:relative;
    transition:all 0.4s cubic-bezier(0.4,0,0.2,1); padding:0;
}
.nav-dot:hover {
    transform:scale(2); background:var(--gold);
    box-shadow:0 0 16px rgba(255,255,255,0.3);
}
.nav-dot.active {
    width:6px; height:16px; border-radius:3px;
    background:var(--gold);
    box-shadow:0 0 12px rgba(255,255,255,0.25);
    animation:dotpulse 4s ease-in-out infinite;
}
.nav-dot::after {
    content:attr(data-label); position:absolute; right:22px; top:50%;
    transform:translateY(-50%) translateX(6px);
    font-family:var(--font-primary); font-size:0.65rem; font-weight:600;
    letter-spacing:0.06em; text-transform:uppercase;
    color:var(--gold); white-space:nowrap; opacity:0;
    transition:all 0.3s; pointer-events:none;
}
.nav-dot:hover::after { opacity:1; transform:translateY(-50%) translateX(0); }
@keyframes dotpulse { 0%,100%{box-shadow:0 0 12px rgba(255,255,255,0.25)} 50%{box-shadow:0 0 20px rgba(255,255,255,0.4)} }

#progress-bar {
    position:fixed; bottom:0; left:0; right:0; height:2px;
    background:rgba(250,248,243,0.02); z-index:50;
}
#progress-fill {
    height:100%; width:0%;
    background:linear-gradient(90deg,var(--gold),var(--ember),var(--gold));
    background-size:200% 100%; animation:shimmer 4s linear infinite;
    transition:width 0.6s cubic-bezier(0.4,0,0.2,1);
    position:relative;
}
#progress-fill::after {
    content:''; position:absolute; right:0; top:-2px;
    width:6px; height:6px; background:var(--gold); border-radius:50%;
    box-shadow:0 0 8px var(--gold),0 0 16px rgba(255,255,255,0.2);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

#hud {
    position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:10;
    display:flex; gap:2.5rem; opacity:0; transition:opacity 0.8s;
}
#hud.visible { opacity:1; }
.hud-item { display:flex; flex-direction:column; align-items:center; gap:0.2rem; }
.hud-label { font-family:var(--font-mono); font-size:0.5rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--t4); }
.hud-value {
    font-family:var(--font-mono); font-size:0.85rem; font-weight:400;
    color:var(--t2); font-variant-numeric:tabular-nums;
    transition:color 0.3s,text-shadow 0.3s;
}
.hud-value.pulse { color:var(--gold); text-shadow:0 0 12px rgba(255,255,255,0.25); }

#scroll-container {
    position: relative; z-index: 2; height: 100vh;
    overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
}
#scroll-container::-webkit-scrollbar { display: none; }

.section {
    height: 100vh; scroll-snap-align: start; scroll-snap-stop: always;
    display: flex; align-items: center; justify-content: center; position: relative;
}

.section-inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; max-width: 860px; width: 100%; padding: 3rem;
    position: relative;
    background: radial-gradient(ellipse 70% 60% at center, rgba(10,15,28,0.8) 0%, rgba(10,15,28,0.4) 60%, transparent 100%);
}

.watermark {
    position: absolute;
    font-family: var(--font-primary); font-size: clamp(7rem, 18vw, 15rem);
    font-weight: 700; font-style: italic;
    color: rgba(255,255,255,0.015);
    pointer-events: none; user-select: none; line-height: 1; z-index: -1;
    right: -5%; top: 10%;
}

.approaching-text {
    opacity: 0; transform: scale(0.4) translateY(20px);
    filter: blur(12px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}
.approaching-delay-1 { transition-delay: 0.3s; }
.approaching-delay-2 { transition-delay: 0.6s; }
.approaching-delay-3 { transition-delay: 0.9s; }

.section.active .approaching-text {
    opacity: 1; transform: scale(1) translateY(0); filter: blur(0);
}
.section.leaving .approaching-text {
    opacity: 0; transform: scale(1.6) translateY(-20px);
    filter: blur(10px);
    transition: all 0.7s cubic-bezier(0.4, 0, 1, 1);
}

.section[data-section="1"] .approaching-text { transition: all 1.6s cubic-bezier(0.16, 1, 0.3, 1); }
.section[data-section="1"] .approaching-delay-1 { transition-delay: 0.4s; }
.section[data-section="1"] .approaching-delay-2 { transition-delay: 0.9s; }

.section-label {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.5em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.8rem;
    position: relative; padding: 0 1.5rem;
}
.section-label::before,
.section-label::after {
    content: ''; position: absolute; top: 50%;
    width: 20px; height: 1px; background: var(--gold); opacity: 0.3;
}
.section-label::before { left: -10px; }
.section-label::after { right: -10px; }

.section-desc {
    font-family: var(--font-primary); font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 300; line-height: 1.9;
    color: var(--t2); max-width: 560px; margin-top: 1rem;
    letter-spacing: 0.01em;
}

.hero-logo {
    width: 70px; height: 70px; margin-bottom: 2.5rem;
    animation: logofloat 8s ease-in-out infinite;
    opacity: 0; transition: opacity 1.2s 0.3s;
}
.hero-logo svg { width: 100%; height: 100%; }
.section.active .hero-logo { opacity: 0.8; }
@keyframes logofloat { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-8px) rotate(2deg)} }

.hero-main-title {
    font-family: var(--font-primary); font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 800; letter-spacing: 0.08em;
    background: linear-gradient(175deg, var(--parch) 20%, var(--gold) 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.8rem; line-height: 1.1;
}

.hero-tagline {
    font-family: var(--font-primary); font-size: clamp(0.9rem, 2vw, 1.25rem);
    font-weight: 300; color: var(--t3);
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 3rem;
}

.glitch-char {
    display: inline-block;
    position: relative;
}
.glitch-char.scrambling {
    animation: glitchFlicker var(--gd, 0.08s) steps(1) infinite;
    color: rgba(255,255,255,0.5);
    text-shadow: 0 0 8px rgba(43,108,176,0.5), 0 0 2px rgba(255,255,255,0.3);
}
.glitch-char.resolved {
    animation: charResolve 0.3s ease-out forwards;
}
@keyframes glitchFlicker {
    0% { opacity: 0.3; transform: translateY(-1px) translateX(1px); }
    20% { opacity: 1; transform: translateY(1px) translateX(-1px); }
    40% { opacity: 0.2; transform: translateY(0) translateX(2px); }
    60% { opacity: 0.9; transform: translateY(-1px) translateX(0); }
    80% { opacity: 0.4; transform: translateY(1px) translateX(-1px); }
    100% { opacity: 0.6; transform: translateY(0) translateX(1px); }
}
@keyframes charResolve {
    0% { opacity: 0.9; text-shadow: 0 0 6px rgba(43,108,176,0.4); }
    100% { opacity: 1; text-shadow: none; transform: none; color: inherit; animation: none; }
}

.hero-line {
    width: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 2s cubic-bezier(0.4,0,0.2,1) 1s;
    margin-bottom: 2.5rem; opacity: 0.4;
}
.section.active .hero-line { width: 180px; }

.scroll-prompt { display:flex; flex-direction:column; align-items:center; gap:0.8rem; opacity:0; transition:opacity 1s 2s; }
.section.active .scroll-prompt { opacity:0.35; }
.scroll-mouse { width:18px; height:28px; border:1.5px solid rgba(250,248,243,0.2); border-radius:9px; position:relative; }
.scroll-wheel {
    width:2px; height:5px; background:var(--gold); border-radius:1px;
    position:absolute; top:5px; left:50%; transform:translateX(-50%);
    animation:wheelscroll 2.5s ease-in-out infinite;
}
@keyframes wheelscroll { 0%{top:5px;opacity:1} 100%{top:15px;opacity:0} }
.scroll-prompt span { font-family:var(--font-primary); font-size:0.6rem; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; color:var(--t4); }
.scroll-line-down { width:1px; height:24px; background:linear-gradient(to bottom,rgba(255,255,255,0.2),transparent); animation:linep 2.5s ease-in-out infinite; }
@keyframes linep { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.2;transform:scaleY(0.5)} }

.section-inner h2 {
    font-family: var(--font-primary); font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
    max-width: 650px;
}

.services-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; width: 100%; max-width: 680px; margin-top: 2rem;
}

.service-card {
    text-align: left; padding: 1.6rem 1.5rem;
    background: rgba(250,248,243,0.015);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}

.service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--gold);
    border-radius: 0 0 2px 0; transition: height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(250,248,243,0.03);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.sc-index {
    font-family: var(--font-primary); font-size: 0.85rem;
    font-style: italic; color: var(--gold); opacity: 0.4;
    margin-bottom: 0.8rem;
}
.service-card h3 {
    font-family: var(--font-primary); font-size: 1rem; font-weight: 700;
    letter-spacing: 0.02em; margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.service-card:hover h3 { color: var(--gold); }
.service-card p {
    font-family: var(--font-primary); font-size: 0.85rem; font-weight: 300;
    color: var(--t3); line-height: 1.65;
}

.process-list {
    display: flex; flex-direction: column; gap: 0;
    width: 100%; max-width: 560px; margin-top: 2rem;
}
.process-item {
    display: flex; align-items: flex-start; gap: 1.8rem;
    padding: 2rem 0; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.process-item:last-child { border-bottom: none; }

.process-item::before {
    content: ''; position: absolute;
    left: 13px; top: 3.2rem; bottom: -0.5rem;
    width: 1px; background: rgba(255,255,255,0.06);
}
.process-item:last-child::before { display: none; }

.pi-num {
    font-family: var(--font-primary); font-size: 0.9rem; font-weight: 700;
    font-style: italic; color: var(--gold); opacity: 0.5;
    min-width: 28px; padding-top: 0.1rem;
}
.process-item h3 {
    font-family: var(--font-primary); font-size: 1rem; font-weight: 700;
    margin-bottom: 0.4rem;
}
.process-item p {
    font-family: var(--font-primary); font-size: 0.85rem; font-weight: 300;
    color: var(--t3); line-height: 1.7;
}

.features-list {
    display: flex; flex-direction: column; gap: 0;
    width: 100%; max-width: 560px; margin-top: 2rem;
}
.feature-item {
    padding: 2rem 0; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative; padding-left: 1.5rem;
}
.feature-item:last-child { border-bottom: none; }

.feature-item::before {
    content: ''; position: absolute; left: 0; top: 2.4rem;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); opacity: 0.4;
}
.feature-item h3 {
    font-family: var(--font-primary); font-size: 1.05rem; font-weight: 700;
    margin-bottom: 0.5rem; letter-spacing: 0.01em;
}
.feature-item p {
    font-family: var(--font-primary); font-size: 0.85rem; font-weight: 300;
    color: var(--t3); line-height: 1.7;
}

.contact-form {
    width: 100%; max-width: 600px; margin-top: 2rem;
    padding: 2.2rem 2.2rem 1.8rem;
    background: linear-gradient(165deg, rgba(21,28,46,0.7) 0%, rgba(10,15,28,0.6) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 4px 50px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(250,248,243,0.03);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.form-group { text-align: left; }
.form-group.full { margin-bottom: 1.2rem; }

.form-group label {
    display: block; font-family: var(--font-primary);
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--t3); margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 0.85rem 1rem;
    background: rgba(250,248,243,0.03);
    border: 1px solid rgba(250,248,243,0.06);
    border-radius: 10px; color: var(--parch);
    font-family: var(--font-primary); font-size: 0.9rem; font-weight: 400;
    outline: none; transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(250,248,243,0.05);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--t4); font-weight: 300; }

.contact-form select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23e2c87a' stroke-width='1' stroke-opacity='0.3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.contact-form select option { background: var(--ink); color: var(--parch); }

.contact-form textarea { resize: vertical; min-height: 80px; }

.btn-cinematic {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-d) 100%);
    border: none; border-radius: 10px;
    color: var(--parch); font-family: var(--font-primary);
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.04em; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    margin-top: 0.8rem; position: relative; overflow: hidden;
}
.btn-cinematic::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.btn-cinematic span { position: relative; z-index: 1; }
.btn-cinematic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(43,108,176,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
.btn-cinematic:active { transform: translateY(0); }

.footer-info {
    display: flex; gap: 3rem; margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-col { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-label { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--t4); }
.footer-value { font-family: var(--font-primary); font-size: 0.85rem; font-weight: 400; color: var(--t2); }
.copyright {
    margin-top: 1.5rem; font-family: var(--font-primary);
    font-size: 0.65rem; font-weight: 300;
    color: var(--t4); opacity: 0.5; letter-spacing: 0.05em;
}

.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; margin-top:2rem; max-width:550px; }
.stat-item { text-align: center; }
.stat-num { font-family:var(--font-primary); font-size:clamp(2.5rem,5vw,3.5rem); font-weight:700; color:var(--gold); }
.stat-label { font-family:var(--font-mono); font-size:0.6rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--t4); margin-top:0.3rem; }

@media (max-width: 768px) {

    #chapter-nav, #dust-layer, #ambient-leaks, #scan-line, .scroll-prompt { display: none; }


    .section { overflow: hidden; }
    .section-inner {
        padding: 1.2rem 1.2rem;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-top: 3rem;
    }


    .hero-main-title { font-size: clamp(1.8rem, 8vw, 3rem); letter-spacing: 0.04em; }
    .hero-tagline { font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
    .section-inner h2 { font-size: clamp(1.2rem, 5vw, 1.7rem); }
    .section-label { font-size: 0.55rem; letter-spacing: 0.3em; margin-bottom: 1rem; }
    .section-desc { font-size: 0.85rem; line-height: 1.7; }


    .watermark { font-size: clamp(4rem, 14vw, 7rem); right: 0; opacity: 0.5; }


    .hero-logo { width: 50px; height: 50px; margin-bottom: 1.5rem; }
    .hero-line { margin-bottom: 1.5rem; }


    .services-grid { grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1rem; }
    .service-card { padding: 1rem 1rem; }
    .service-card h3 { font-size: 0.9rem; }
    .service-card p { font-size: 0.8rem; }
    .sc-index { font-size: 0.75rem; margin-bottom: 0.5rem; }


    .process-list { margin-top: 1rem; }
    .process-item { padding: 1.2rem 0; gap: 1rem; }
    .process-item h3 { font-size: 0.9rem; }
    .process-item p { font-size: 0.8rem; }
    .process-item::before { left: 10px; }


    .features-list { margin-top: 1rem; }
    .feature-item { padding: 1.2rem 0 1.2rem 1.2rem; }
    .feature-item h3 { font-size: 0.9rem; }
    .feature-item p { font-size: 0.8rem; }


    .section-post-nova .section-inner {
        padding: 1rem 1rem;
        justify-content: flex-start;
        padding-top: 1.5rem;
    }
    .section-post-nova .watermark { display: none; }
    .section-post-nova .section-label { margin-bottom: 0.3rem; font-size: 0.5rem; }
    .section-post-nova h2 { font-size: 1.1rem; margin-bottom: 0; }
    .section-post-nova .section-desc { display: none; }


    .contact-form {
        padding: 0.8rem;
        border-radius: 10px;
        margin-top: 0.6rem;
        max-width: 100%;
    }
    .contact-form::before { display: none; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
    .form-group label { font-size: 0.5rem; margin-bottom: 0.2rem; }
    .contact-form input,
    .contact-form textarea { font-size: 16px; padding: 0.5rem 0.6rem; border-radius: 6px; }
    .contact-form textarea { min-height: 40px; }
    .form-group.full { margin-bottom: 0.4rem; }
    .btn-cinematic { padding: 0.7rem 1rem; font-size: 0.8rem; margin-top: 0.2rem; border-radius: 6px; }


    .footer-info { margin-top: 0.5rem; padding-top: 0.4rem; }
    .footer-label { font-size: 0.45rem; }
    .footer-value { font-size: 0.75rem; }
    .copyright { margin-top: 0.3rem; font-size: 0.5rem; }


    #chapter-indicator { font-size: 0.5rem; padding: 0.35rem 1rem; top: 1rem; }


    #progress-fill::after { width: 4px; height: 4px; top: -1px; }
}

@media (max-width: 380px) {
    .hero-main-title { font-size: 1.5rem; letter-spacing: 0.02em; }
    .section-inner { padding: 1.2rem 0.8rem; }
    .service-card { padding: 0.8rem; }
    .contact-form { padding: 1rem 0.8rem 0.8rem; }
}

@supports (-webkit-touch-callout: none) {
    body, .section, #scroll-container { height: -webkit-fill-available; }
}
