/* Vantheara V5: progressive visual enhancements (keep original styles.css intact). */
:root{--v5-electric:#5f9cff;--v5-deep:#071426}
html{scroll-padding-top:100px}
body{isolation:isolate}
/* Layered visual art on all page intros; complements original navy gradients. */
.hero,.page-hero{isolation:isolate;position:relative;background-image:linear-gradient(96deg,rgba(5,15,34,.92),rgba(8,26,52,.78)),url('assets/ambient-wave.svg'),radial-gradient(circle at 78% 20%,#1f4d96,#071426 67%)!important;background-size:cover,cover,cover;background-position:center,center,center;}
.hero::after,.page-hero::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(circle at 76% 40%,rgba(71,140,255,.18),transparent 35%),linear-gradient(transparent 1px,rgba(8,22,45,.10) 1px);background-size:auto,100% 7px;opacity:.72}
.hero>.container,.page-hero>.container,.hero .hero-inner,.page-hero .container{z-index:2;position:relative}
.hero .hero-inner{position:relative}
.ambient-background-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22;pointer-events:none;z-index:0;filter:saturate(.7) brightness(.56)}
/* Subtle ambient images and vignette on alternating sections. */
main>.section.bg-alt{background-image:linear-gradient(90deg,#0a1b32 11%,rgba(10,27,50,.94)),url('assets/ambient-wave.svg');background-position:center,right center;background-size:cover,100% auto}
main>.section:not(.bg-alt){position:relative}
main>.section:not(.bg-alt):before{content:"";pointer-events:none;position:absolute;right:0;top:0;width:min(42vw,580px);height:100%;opacity:.065;background:url('assets/ambient-wave.svg') center/cover no-repeat;mask-image:linear-gradient(to left,#000,transparent)}
main>.section>.container{position:relative}
/* Scroll appearance: animation resets after leaving viewport for repeat on up/down scrolling. */
.v5-reveal{opacity:0;transform:translate3d(0,24px,0);transition:opacity .65s cubic-bezier(.2,.7,.2,1),transform .65s cubic-bezier(.2,.7,.2,1);transition-delay:var(--reveal-delay,0ms)}
.v5-reveal.is-visible{opacity:1;transform:translate3d(0,0,0)}
.v5-scroll-progress{position:fixed;z-index:250;top:0;left:0;right:0;height:3px;transform-origin:left center;transform:scaleX(0);pointer-events:none;background:linear-gradient(90deg,#2563eb,#8cc9ff,#c1e9ff);box-shadow:0 0 13px #398dff}
/* Hover and microinteractions */
.btn,.nav-cta,.text-link,.footer-links a,.service-card,.work-card,.details-panel,.youtube-card{transition:transform .25s ease,box-shadow .3s ease,border-color .3s ease,background-color .25s ease,color .25s ease}
@media(hover:hover) and (pointer:fine){.btn:hover,.nav-cta:hover{transform:translateY(-3px);box-shadow:0 13px 34px rgba(31,111,251,.2)}.service-card:hover,.work-card:hover,.details-panel:hover,.youtube-card:hover{transform:translateY(-6px);border-color:rgba(124,182,255,.42);box-shadow:0 19px 44px rgba(0,8,27,.2)}.footer-links a:hover{transform:translateX(3px)}.portrait-frame img{transition:transform 1.1s cubic-bezier(.22,.61,.36,1)}.portrait-frame:hover img{transform:scale(1.055)}}
.v5-cursor-halo{position:fixed;pointer-events:none;z-index:110;width:400px;height:400px;left:0;top:0;border-radius:50%;background:radial-gradient(circle,rgba(69,136,255,.09),rgba(55,109,229,.025) 35%,transparent 70%);mix-blend-mode:screen;opacity:0;will-change:transform;transition:opacity .25s ease}
/* Floating language control, shared on every page */
.v5-lang-switch{position:fixed;bottom:22px;right:20px;z-index:310;display:flex;align-items:center;gap:2px;padding:5px;border-radius:999px;border:1px solid rgba(154,196,255,.44);background:rgba(7,22,45,.92);backdrop-filter:blur(18px);box-shadow:0 12px 32px rgba(0,0,0,.45)}
.v5-lang-switch a{color:#d5e5ff;font-size:12px;font-weight:800;text-decoration:none;display:flex;align-items:center;justify-content:center;min-width:45px;min-height:39px;border-radius:999px;padding:5px 9px;transition:color .2s,background .2s}
.v5-lang-switch a[aria-current=page]{background:#2365d8;color:#fff;box-shadow:0 2px 11px rgba(43,116,240,.36)}
.v5-lang-switch a:hover{background:#2556a8;color:#fff}
.v5-lang-switch .v5-world{display:grid;place-items:center;padding-left:9px;color:#91bfff}.v5-world svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.v5-to-top{position:fixed;right:25px;bottom:92px;z-index:300;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(12,34,65,.95);border:1px solid rgba(144,188,253,.44);color:#fff;box-shadow:0 10px 22px rgba(0,0,0,.28);opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.v5-to-top svg{height:18px;width:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.v5-to-top.show{opacity:1;transform:translateY(0);pointer-events:auto}
.v5-to-top:hover{background:#205dd5}
/* Social quick links; move into footer on small screens instead of obstructing form */
.v5-social-dock{position:fixed;left:18px;bottom:22px;z-index:230;display:flex;flex-direction:column;gap:10px;padding:7px;background:rgba(8,25,51,.8);border:1px solid rgba(132,170,234,.22);border-radius:22px;box-shadow:0 10px 28px rgba(0,0,0,.22);backdrop-filter:blur(12px)}
.v5-social-dock a{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;color:#b9d6ff;transition:transform .2s ease,color .2s,background .2s}
.v5-social-dock a:hover{background:#245bb7;color:#fff;transform:scale(1.06)}
.v5-social-dock svg,.v5-contact-icons svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v5-contact-icons{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.v5-contact-icons a{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(125,177,254,.25);border-radius:12px;color:#dcecff;background:rgba(43,100,180,.07);font-size:13px;font-weight:700}
.v5-contact-icons a:hover{border-color:#64a4ff;background:rgba(61,119,225,.16)}
.v5-contact-icons svg{width:18px;height:18px;flex-shrink:0}
/* Welcome popup: dialog manages focus, escape and inert background natively */
dialog.v5-welcome{color:#edf4ff;position:fixed;inset:0;border:1px solid rgba(148,191,255,.38);background:linear-gradient(140deg,#0b2449,#06172d 72%);padding:0;border-radius:25px;width:min(860px,calc(100vw - 34px));max-width:860px;max-height:min(92svh,820px);overflow:auto;box-shadow:0 32px 120px rgba(0,0,0,.65)}
dialog.v5-welcome::backdrop{background:rgba(1,9,23,.83);backdrop-filter:blur(10px)}
.v5-welcome-grid{display:grid;grid-template-columns:1.02fr .98fr;min-height:440px}
.v5-welcome-content{padding:clamp(30px,5vw,58px);display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.v5-welcome-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.22em;color:#88beff;font-weight:900;margin:0 0 18px}
.v5-welcome h2{font-size:clamp(2.3rem,5.6vw,4rem);line-height:1.12;letter-spacing:-.055em;margin:0 0 16px;color:#fff;font-family:Manrope,'Noto Sans Khmer',sans-serif}
.v5-welcome h2 span{color:#79b0ff}
.v5-welcome p{font-size:15px;line-height:1.75;color:#b4cae8;max-width:440px}
.v5-welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.v5-welcome-actions a,.v5-welcome-actions button{min-height:44px;padding:11px 18px;border-radius:12px;font-size:13px;font-weight:800;text-decoration:none;border:1px solid rgba(131,182,255,.35);background:transparent;color:#eff7ff}
.v5-welcome-actions a{background:#2563eb;border-color:#2563eb;color:white}
.v5-welcome-actions a:hover,.v5-welcome-actions button:hover{background:#3476f3;border-color:#3476f3;color:#fff}
.v5-welcome-art{min-height:430px;background:radial-gradient(circle at 50% 32%,#3669b5,transparent 66%),url('assets/ambient-wave.svg') center/cover;position:relative;overflow:hidden;display:flex;align-items:end;justify-content:center}
.v5-welcome-art:before{content:"";position:absolute;inset:15% 12%;border:1px solid rgba(180,215,255,.22);border-radius:230px 230px 22px 22px;transform:rotate(-6deg)}
.v5-welcome-art .v5-welcome-portrait{height:96%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 20px 35px rgba(0,0,0,.3));position:relative;z-index:2}
.v5-welcome-stamp{position:absolute;bottom:20px;right:18px;z-index:3;font-size:10px;letter-spacing:.24em;color:#fff;background:rgba(5,21,45,.72);border:1px solid rgba(170,207,255,.25);padding:12px;border-radius:8px}
.v5-welcome-close{position:absolute;right:14px;top:14px;z-index:10;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(166,205,255,.35);color:#fff;background:rgba(5,16,37,.82);border-radius:50%;font-size:24px;line-height:1;transition:background .2s,transform .2s}
.v5-welcome-close:hover{background:#2a66d4;transform:rotate(90deg)}
.v5-welcome-custom-poster,.v5-welcome-video{display:block;width:100%;height:100%;object-fit:contain;background:#061326}
.v5-welcome-custom-poster[hidden],.v5-welcome-video[hidden],.v5-welcome-default[hidden]{display:none!important}
.v5-welcome-video{max-height:72svh}
.v5-dialog-open{overflow:hidden}
/* Exiting duplicate header language controls: persistent floating toggle replaces them. */
.site-header .language-dropdown,.site-header .lang-quick{display:none!important}
/* Slightly improve text legibility on smaller screens */
@media(max-width:860px){.v5-social-dock{display:flex;flex-direction:row;left:10px;bottom:10px;gap:3px;padding:4px;border-radius:999px}.v5-social-dock a{width:40px;height:40px;border-radius:50%}.v5-lang-switch{right:10px;bottom:10px}.v5-to-top{right:17px;bottom:80px}.v5-welcome-grid{grid-template-columns:1fr}.v5-welcome-content{order:2;padding:28px 27px 35px}.v5-welcome-art{min-height:240px;height:240px;order:1}.v5-welcome-art .v5-welcome-portrait{height:113%}.v5-welcome h2{font-size:clamp(2rem,8vw,3.1rem)}}
@media(max-width:600px){.v5-welcome{border-radius:18px!important}.v5-welcome-art{height:195px;min-height:195px}.v5-welcome-content{padding:25px 23px 30px}.v5-welcome h2{font-size:clamp(1.8rem,8vw,2.5rem)}.v5-welcome p{font-size:14px}.v5-welcome-close{width:42px;height:42px}.v5-welcome-actions a,.v5-welcome-actions button{flex:1;text-align:center}.v5-lang-switch a{min-width:43px;min-height:40px}.mini-label,.eyebrow{font-size:12px}.float-card small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.v5-reveal{opacity:1!important;transform:none!important;transition:none!important}.v5-cursor-halo{display:none!important}.btn,.work-card,.service-card,.v5-welcome-close{transition:none!important}.ambient-background-video{display:none!important}}

/* V6 — Contact/footer clarity; no duplicate links above the three icon buttons. */
.site-footer .footer-main>div:has(.v5-contact-icons) .footer-links a[href^="mailto:"],
.site-footer .footer-main>div:has(.v5-contact-icons) .footer-links a[href^="https://t.me/"],
.site-footer .footer-main>div:has(.v5-contact-icons) .footer-links a[href^="https://www.youtube.com/"],
.site-footer .footer-main>div:has(.v5-contact-icons) .footer-links span {display:none!important}
/* Always-on controls, independent from mobile navigation and the language in the header. */
.v5-lang-switch,.v5-social-dock{display:flex!important;visibility:visible!important;opacity:1!important}
.v5-lang-switch{z-index:1000;white-space:nowrap;max-width:calc(100vw - 16px)}
.v5-social-dock{z-index:990}
.v5-lang-switch a,.v5-social-dock a{line-height:1.2;white-space:nowrap}
.v5-lang-switch a:focus-visible,.v5-social-dock a:focus-visible,.v5-contact-icons a:focus-visible{outline:3px solid #9dccff;outline-offset:3px}
@media(max-width:860px){
 .v5-social-dock{flex-direction:row;left:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:4px;gap:3px;border-radius:999px}
 .v5-social-dock a{width:40px;height:40px;min-width:40px;min-height:40px;border-radius:50%}
 .v5-lang-switch{right:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:4px}
 .v5-lang-switch a{min-width:40px;min-height:40px;padding:4px 7px;font-size:12px}
 .v5-lang-switch .v5-world{padding-left:6px}
 .v5-to-top{bottom:90px}
}
@media(max-width:350px){
 .v5-social-dock{left:6px;gap:0;padding:3px}
 .v5-social-dock a{width:38px;min-width:38px;height:40px}
 .v5-lang-switch{right:6px;padding:3px;gap:0}
 .v5-lang-switch a{min-width:37px;padding:3px 5px}
 .v5-lang-switch .v5-world{padding-left:4px}
}
@media(prefers-reduced-motion:reduce){.v5-reveal{opacity:1!important;transform:none!important;transition:none!important}}

/* Footer: contact actions are only the three visible icon buttons. */
.site-footer .footer-main>div:has(.v5-contact-icons)>.footer-links{display:none!important}

/* Leave room to reach the bottom of the footer on phones with fixed quick actions. */
@media(max-width:860px){.site-footer{padding-bottom:calc(86px + env(safe-area-inset-bottom))}}

/* V7: Single active popup media, stable navigation, customizable popup layout. */
.v5-welcome-default[hidden],.v5-welcome-custom-poster[hidden],.v5-welcome-video[hidden]{display:none!important}
.site-header{z-index:1500}
.mobile-toggle{position:relative;z-index:1502;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mobile-toggle[aria-expanded="true"]{background:#12335b;border-color:#79b0ff;color:#fff}
@media(max-width:1100px){
 .site-header .primary-nav{z-index:1501;max-height:calc(100dvh - 75px);overflow-y:auto;overscroll-behavior:contain}
 .site-header .primary-nav.is-open{display:flex!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important}
}
.v5-welcome h2 span{color:var(--v7-popup-accent,#79b0ff)}
.v7-align-center .v5-welcome-content{text-align:center;align-items:center}
.v7-media-only.v5-welcome{width:min(950px,calc(100vw - 28px));max-width:950px;overflow:hidden}
.v7-media-only .v5-welcome-grid{grid-template-columns:minmax(0,1fr);min-height:0}
.v7-media-only .v5-welcome-content{display:none!important}
.v7-media-only .v5-welcome-art{width:100%;height:min(78dvh,780px);min-height:0;background:#051222;display:grid;place-items:center}
.v7-media-only .v5-welcome-art::before{display:none}
.v7-media-only .v5-welcome-custom-poster,.v7-media-only .v5-welcome-video{width:100%;height:100%;max-height:none;object-position:center;min-height:0}
.v7-media-only .v5-welcome-default{width:100%;height:100%}
.v7-media-only .v5-welcome-default .v5-welcome-portrait{max-width:100%;height:100%;object-fit:contain}
.v7-media-only .v5-welcome-close{position:absolute;right:12px;top:12px;background:#071426e8;z-index:30}
@media(max-width:600px){
 .v7-media-only.v5-welcome{width:calc(100vw - 22px)}
 .v7-media-only .v5-welcome-art{height:min(76dvh,670px);min-height:220px}
 .v7-media-only .v5-welcome-close{right:9px;top:9px}
}
