/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.skip-link { position: absolute; top: -100%; left: 1rem; background: #fff; color: #0a0a0a; padding: .5rem 1rem; font-weight: 600; z-index: 9999; border-radius: 0 0 4px 4px; text-decoration: none; }
.skip-link:focus { top: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
:root { --border: rgba(255,255,255,0.07); }
body { background: #000000; color: #e0e0e0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 100px; background: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.65) 60%, transparent 100%); pointer-events: none; z-index: 999; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Navbar ── */
.header-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 24px; transition: padding .35s ease; }
.header-wrap.scrolled { padding: 10px 24px; }
header { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; padding: 0 24px; height: 66px; border-radius: 999px; border: 1px solid transparent; background: transparent; transition: background .35s, border-color .35s, backdrop-filter .35s, max-width .35s, box-shadow .35s; }
.header-wrap.scrolled header { background: rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.09); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 4px 32px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.05) inset; max-width: 900px; }
@media (max-width: 680px) { .header-wrap.scrolled header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,0.45); } }
header nav { display: flex; align-items: center; width: 100%; position: relative; }
.logo-container { display: flex; align-items: center; z-index: 1; }
.logo { color: rgba(255,255,255,.9); font-size: 1.1rem; font-weight: 700; text-decoration: none; white-space: nowrap; letter-spacing: -0.02em; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 8px 14px; transition: color .2s; outline: none; position: relative; display: inline-flex; align-items: center; }
.nav-links a:hover { color: #fff; }
.nav-links a::after { content: ''; position: absolute; bottom: 4px; left: 14px; width: calc(100% - 28px); height: 1px; background: rgba(255,255,255,0.5); transform: scaleX(0); transform-origin: left center; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; z-index: 1; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 1; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.7); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 998; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transform: scale(1.03); transition: opacity .28s ease, transform .28s ease; }
@media (max-width: 680px) { .nav-mobile { backdrop-filter: none; -webkit-backdrop-filter: none; background: #000000; } }
.nav-mobile.open { opacity: 1; transform: scale(1); pointer-events: all; }
.nav-mobile a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 1.4rem; font-weight: 600; padding: 14px 40px; transition: color .2s; position: relative; }
.nav-mobile a:hover { color: #fff; }
.nav-mobile a::after { content: ''; position: absolute; bottom: 8px; left: 40px; width: calc(100% - 80px); height: 1.5px; background: rgba(255,255,255,0.5); transform: scaleX(0); transform-origin: left center; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.nav-mobile a:hover::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; background: #fff; color: #000; text-decoration: none; font-weight: 600; font-size: .82rem; padding: 8px 18px; border-radius: 999px; transition: background .2s, transform .15s; white-space: nowrap; letter-spacing: -0.01em; border: none; cursor: pointer; font-family: inherit; }
.nav-cta:hover { background: rgba(255,255,255,.88); transform: translateY(-1px); }
@media (max-width: 680px) { .nav-links, .nav-cta { display: none; } .nav-hamburger { display: flex; } .nav-mobile { display: flex; } .header-wrap { padding: 14px 16px; } .header-wrap.scrolled { padding: 8px 16px; } #themeToggle { display: none; } }

/* ── Footer ── */
footer { padding: 48px 0 40px; text-align: center; border-top: 1px solid rgba(255,255,255,.04); margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #888; text-decoration: none; font-size: .85rem; font-weight: 500; transition: color .2s; position: relative; }
.footer-links a:hover { color: #bbb; }
.footer-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.footer-links a:hover::after { transform: scaleX(1); }
.copyright { display: inline-block; color: #444; font-size: .78rem; background: rgba(255,255,255,.03); border: 1px solid #222; border-radius: 999px; padding: 4px 16px; transition: color .3s, border-color .3s; }
footer:hover .copyright { color: #777; border-color: #333; }
#page-content { flex: 1; display: flex; flex-direction: column; }

/* ── Contact overlay ── */
.contact-overlay { position: fixed; inset: 0; z-index: 10000; background: #000000; clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .55s cubic-bezier(.77,0,.18,1); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; pointer-events: none; will-change: clip-path; transform: translateZ(0); }
.contact-overlay.open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); pointer-events: auto; }
.contact-overlay-inner { width: 100%; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 40px 0; position: relative; z-index: 1; }
.es-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.es-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(8px); transform: translateZ(0); }
.es-noise { position: absolute; inset: 0; background-image: url('/assets/img/bg-noise.png'); background-size: 220px; background-repeat: repeat; opacity: 0.055; pointer-events: none; }
.contact-close { position: fixed; top: 28px; right: 28px; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.7); transition: background .2s, color .2s; z-index: 10001; touch-action: manipulation; pointer-events: inherit; }
.contact-close:hover { background: rgba(255,255,255,0.13); color: #fff; }
.contact-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.contact-info { padding-top: 8px; }
.contact-info-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 18px; display: block; }
.contact-info-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.contact-info-sub { font-size: .95rem; color: rgba(255,255,255,.4); line-height: 1.75; margin-bottom: 36px; }
.contact-email-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.contact-email-link:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.contact-email-link svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 28px; letter-spacing: -0.02em; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.35); letter-spacing: .06em; text-transform: uppercase; }
.contact-field input, .contact-field textarea { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: #fff; font-family: inherit; font-size: .9rem; padding: 12px 16px; outline: none; resize: none; width: 100%; transition: border-color .2s, background .2s; }
.contact-field input:focus, .contact-field textarea:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,0.11); }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-field textarea { min-height: 110px; scrollbar-width: thin; scrollbar-color: #fff transparent; }
.contact-field textarea::-webkit-scrollbar { width: 4px; }
.contact-field textarea::-webkit-scrollbar-track { background: transparent; }
.contact-field textarea::-webkit-scrollbar-thumb { background: #fff; border-radius: 99px; }
.contact-error { display: none; margin: -2px 0 0; color: #fca5a5; font-size: .82rem; line-height: 1.45; }
.contact-error.visible { display: block; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #000; border: none; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .9rem; padding: 14px 28px; border-radius: 999px; margin-top: 6px; transition: background .2s, transform .15s, box-shadow .2s; letter-spacing: -0.01em; width: 100%; }
.contact-submit:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,255,255,0.1); }
.contact-success { display: none; text-align: center; padding: 40px 0; }
.contact-success svg { width: 48px; height: 48px; stroke: #4ade80; stroke-width: 1.5; fill: none; margin-bottom: 16px; }
.contact-success h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.contact-success p { color: rgba(255,255,255,.4); font-size: .9rem; }
.contact-form-wrap.sent .contact-form { display: none; }
.contact-form-wrap.sent .contact-form-title { display: none; }
.contact-form-wrap.sent .contact-success { display: block; }
.contact-privacy { font-size: .75rem; color: rgba(255,255,255,.28); line-height: 1.5; margin-top: 4px; }
.contact-privacy a { color: rgba(255,255,255,.42); text-decoration: underline; text-underline-offset: 2px; }
html.light .contact-privacy { color: rgba(0,0,0,.38); }
html.light .contact-privacy a { color: rgba(0,0,0,.52); }
@media (max-width: 760px) { .contact-overlay-inner { grid-template-columns: 1fr; gap: 36px; } .contact-info { padding-top: 20px; } }
@media (max-width: 680px) { .contact-overlay { clip-path: none !important; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .contact-overlay.open { opacity: 1; pointer-events: all; } }

/* ── Letter Swap ── */
.ls-char { display: inline-block; overflow: hidden; position: relative; vertical-align: top; line-height: inherit; }
.ls-a, .ls-b { display: block; will-change: transform; }
.ls-b { position: absolute; top: 0; left: 0; white-space: pre; transform: translateY(-100%); }

/* ── Text Effect ── */
.te-word { display: inline-block; white-space: pre; opacity: 0; transform: translateY(20px); filter: blur(12px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.7s cubic-bezier(0.16,1,0.3,1); }
.te-word.in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal].te-block { opacity: 0; transform: translateY(20px); filter: blur(8px); transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1), filter 0.85s cubic-bezier(0.16,1,0.3,1); }
[data-reveal].te-block.in { opacity: 1; transform: none; filter: blur(0); }

/* ── Theme Toggle ── */
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: none; border: none; padding: 0; color: rgba(255,255,255,0.45); cursor: pointer; flex-shrink: 0; transition: color .2s, opacity .2s; }
.theme-toggle:hover { color: rgba(255,255,255,0.85); }
.theme-toggle svg { width: 21px; height: 21px; }
.nav-mobile-theme { width: 48px; height: 48px; margin-top: 8px; }
.nav-mobile-theme svg { width: 28px; height: 28px; }
.ti { display: none; }
[data-theme="system"] .ti-system,
[data-theme="dark"]   .ti-dark,
[data-theme="light"]  .ti-light { display: block; }

/* ── Theme transition (only during active switch) ── */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease !important;
}

/* View Transition API — whole-page cross-fade when supported */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } to { opacity: 1; } }

/* ── Light Mode ── */
html.light body { background: #f2f2f2; color: #0a0a0a; }
html.light body::before { background: linear-gradient(to bottom, #f2f2f2 0%, rgba(242,242,242,0.65) 60%, transparent 100%); }
html.light :root { --border: rgba(0,0,0,0.07); }

/* nav — light */
html.light .logo { color: rgba(0,0,0,.9); }
html.light .nav-links a { color: rgba(0,0,0,.6); }
html.light .nav-links a:hover { color: #000; }
html.light .nav-links a::after { background: rgba(0,0,0,0.5); }
html.light .nav-hamburger span { background: rgba(0,0,0,.7); }
html.light .theme-toggle { color: rgba(0,0,0,0.45); }
html.light .theme-toggle:hover { color: rgba(0,0,0,0.85); }
html.light .header-wrap.scrolled header { background: rgba(255,255,255,0.82); border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 32px rgba(0,0,0,0.1), 0 1px 0 rgba(0,0,0,0.04) inset; }
html.light .nav-cta { background: #000; color: #fff; }
html.light .nav-cta:hover { background: rgba(0,0,0,.85); }
html.light .nav-mobile { background: rgba(242,242,242,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.light .nav-mobile a { color: rgba(0,0,0,.7); }
html.light .nav-mobile a:hover { color: #000; }
html.light .nav-mobile a::after { background: rgba(0,0,0,0.5); }
@media (max-width: 680px) { html.light .nav-mobile { background: #f2f2f2; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* footer — light */
html.light footer { border-top-color: rgba(0,0,0,.07); }
html.light .footer-links a { color: #555; }
html.light .footer-links a:hover { color: #222; }
html.light .copyright { color: #666; background: rgba(0,0,0,.03); border-color: #ddd; }
html.light footer:hover .copyright { color: #333; border-color: #bbb; }

/* contact overlay — light */
html.light .contact-overlay { background: #f2f2f2; }
html.light .contact-close { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,.6); }
html.light .contact-close:hover { background: rgba(0,0,0,0.12); color: #000; }
html.light .contact-info-label { color: rgba(0,0,0,.25); }
html.light .contact-info-title { color: #000; }
html.light .contact-info-sub { color: rgba(0,0,0,.5); }
html.light .contact-email-link { color: rgba(0,0,0,.65); border-bottom-color: rgba(0,0,0,.15); }
html.light .contact-email-link:hover { color: #000; border-bottom-color: rgba(0,0,0,.4); }
html.light .contact-field label { color: rgba(0,0,0,.45); }
html.light .contact-field input, html.light .contact-field textarea { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.12); color: #000; }
html.light .contact-field input:focus, html.light .contact-field textarea:focus { border-color: rgba(0,0,0,.3); background: rgba(0,0,0,0.11); }
html.light .contact-field input::placeholder, html.light .contact-field textarea::placeholder { color: rgba(0,0,0,.3); }
html.light .contact-field textarea { scrollbar-color: #000 transparent; }
html.light .contact-field textarea::-webkit-scrollbar-thumb { background: #000; }
html.light .contact-error { color: #b91c1c; }
html.light .contact-form-title { color: #000; }
html.light .contact-submit { background: #000; color: #fff; }
html.light .contact-submit:hover { background: rgba(0,0,0,.85); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
html.light .contact-success h3 { color: #000; }
html.light .contact-success p { color: rgba(0,0,0,.5); }
html.light .es-bg video { filter: invert(1) blur(4px); }
html.light .es-bg::after { content: ''; position: absolute; inset: 0; background: rgba(242,242,242,0.45); pointer-events: none; }
