/* IMAS Thailand — additions on top of the approved V2 design (style.css + v2.css) */
nb{white-space:nowrap}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.brand.brand-chip{display:inline-flex;align-items:center;background:#fff;border-radius:8px;padding:4px 10px;width:auto;height:auto;min-height:0}
.brand.brand-chip img{height:44px;width:auto;display:block}
footer .brand.brand-chip{margin-bottom:16px}
footer .brand.brand-chip img{height:52px}
@media(max-width:600px){.brand.brand-chip img{height:38px}}
/* dropdown navigation */
nav{display:flex;align-items:center}
.nav-item{position:relative;display:inline-flex;align-items:center;height:100%}
.nav-item .dd{display:none;position:absolute;top:100%;left:-16px;min-width:300px;background:#101625;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:8px;z-index:60;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.nav-item:hover .dd,.nav-item:focus-within .dd{display:block}
.nav-item .dd a{display:block;padding:10px 14px;border-radius:8px;color:#C9D1D9;white-space:nowrap;margin:0}
.nav-item .dd a:hover{background:rgba(1,195,142,.12);color:#fff}
.mobile-nav .mob-group{display:block;padding:14px 24px 4px;color:#01C38E;font:600 12px Montserrat,sans-serif;letter-spacing:.16em;text-transform:uppercase}
.mobile-nav a.mob-sub{padding-left:40px}
@media(max-width:1000px){nav{display:none}}
/* notes and formulas inside content */
blockquote.note{margin:24px 0;padding:16px 20px;border-left:3px solid #01C38E;background:rgba(1,195,142,.07);border-radius:0 10px 10px 0}
blockquote.note p{margin:0}
.article-content blockquote.note{background:#eef8f4;color:#1A1E29}
/* interactive widgets */
.widget-section .widget-frame{display:block;width:100%;height:1200px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:#0B0F1A;margin-top:24px}
/* blog index */
.blog-grid .blog-card{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.blog-grid .card-photo{aspect-ratio:16/9;overflow:hidden}
.blog-grid .card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.blog-grid .card-body h3{font-size:19px;line-height:1.45}
.blog-grid .card-body p{font-size:15.5px;color:#8A94A6}
.article-cover img,.content-image img{width:100%;height:auto;display:block;border-radius:10px}
.form-status{margin-top:16px;font-weight:500}
.form-status.err{color:#b3261e}
a.floating-chat{display:flex;align-items:center;justify-content:center;text-decoration:none}
/* hero image always fills the band at every width */
.hero.spatial-hero{background-size:100% 100%,cover!important;background-position:center,right center!important}
/* keep hero text on a dark zone at tablet / small-laptop widths */
@media(min-width:601px) and (max-width:1250px){.hero{background-image:linear-gradient(90deg,#0b0f1af7 0%,#0b0f1ae6 44%,#0b0f1a59 72%,#0b0f1a26 100%),var(--hero)!important}}
/* long tables and code never push the article wider than the screen */
.article-content{min-width:0;overflow-wrap:anywhere}
.article-content table{display:block;max-width:100%;overflow-x:auto}
.article-shell{max-width:100%}
@media(min-width:1001px) and (max-width:1180px){.article-shell{grid-template-columns:220px minmax(0,1fr);gap:32px;padding-left:24px;padding-right:24px}}

/* ===== richer visuals: icons, diagram, motion ===== */
.ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;margin-bottom:14px;color:#01C38E;background:linear-gradient(145deg,rgba(1,195,142,.18),rgba(91,155,255,.08));border:1px solid rgba(1,195,142,.35);box-shadow:0 0 22px rgba(1,195,142,.14)}
.ico svg{width:24px;height:24px}
.article-content .ico,.light .ico{box-shadow:none}
.space-copy .ico{width:38px;height:38px;border-radius:10px;margin-bottom:10px}
.space-copy .ico svg{width:20px;height:20px}
.card{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.card:hover{transform:translateY(-4px);border-color:rgba(1,195,142,.55);box-shadow:0 18px 44px rgba(0,0,0,.4),0 0 0 1px rgba(1,195,142,.15)}
/* animated pipeline diagram */
.pipeline{margin:8px 0 40px;padding:22px 12px 10px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:radial-gradient(80% 140% at 50% 0%,rgba(1,195,142,.07),rgba(11,15,26,0) 70%),#0d1322;overflow:hidden}
.pipeline svg{display:block;width:100%;height:auto}
.pd-link{stroke:rgba(1,195,142,.35);stroke-width:1.5;stroke-dasharray:5 7;animation:pdflow 1.2s linear infinite}
@keyframes pdflow{to{stroke-dashoffset:-24}}
.pd-dot{fill:#01C38E;filter:drop-shadow(0 0 6px #01C38E)}.pd-dot.dim{fill:#5B9BFF;filter:drop-shadow(0 0 5px #5B9BFF)}
.pd-ring{fill:#0b111e;stroke:#01C38E;stroke-width:1.5}
.pd-halo{fill:rgba(1,195,142,.08);animation:pdpulse 3s ease-in-out infinite;animation-delay:calc(var(--i)*.45s);transform-box:fill-box;transform-origin:center}
@keyframes pdpulse{0%,100%{transform:scale(.85);opacity:.5}50%{transform:scale(1.12);opacity:1}}
.pd-ico{stroke:#01C38E}
.pd-t{fill:#fff;font:600 19px Prompt,sans-serif;text-anchor:middle}
.pd-s{fill:#8A94A6;font:400 15px "IBM Plex Sans Thai",sans-serif;text-anchor:middle}
@media(max-width:760px){.pipeline{display:none}}
/* hero: live data layer + optional video */
.hero{position:relative;overflow:hidden}
.hero>.container{position:relative;z-index:3}
.hero-fx{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;mix-blend-mode:screen}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero-video-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#0b0f1af2 0%,#0b0f1ad9 40%,#0b0f1a66 62%,#0b0f1a1a 100%)}
.hero-hud{position:absolute;z-index:2;right:28px;bottom:24px;font:600 10.5px Montserrat,sans-serif;letter-spacing:.2em;color:rgba(201,209,217,.7);pointer-events:none;text-align:right;line-height:1.9}
.hero-hud b{color:#01C38E}
.hero-hud i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#01C38E;margin-right:8px;animation:hudblink 1.6s infinite}
@keyframes hudblink{50%{opacity:.2}}
@media(max-width:600px){.hero-hud{display:none}}
/* scroll reveal (class added by JS only) */
.rv{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0ms)}
.rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.rv{opacity:1;transform:none;transition:none}.pd-link,.pd-halo{animation:none}}
/* section glow accents */
.intelligence-section,.sensor-showcase,.widget-section{position:relative}
.intelligence-section::before,.widget-section::before{content:"";position:absolute;left:50%;top:0;width:min(900px,90%);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(1,195,142,.6),transparent)}
.stage-visual,.sensor-pair figure,.space-photo{position:relative;overflow:hidden}
.stage-visual::after,.sensor-pair figure::after{content:"";position:absolute;left:0;right:0;top:-40%;height:40%;background:linear-gradient(180deg,transparent,rgba(1,195,142,.10),transparent);animation:scanline 4.5s linear infinite;pointer-events:none}
@keyframes scanline{to{top:110%}}
@media(prefers-reduced-motion:reduce){.stage-visual::after,.sensor-pair figure::after{display:none}}
/* FAQ question row: text wraps inside its own box, toggle stays at the right */
.faq summary{display:flex;align-items:flex-start;gap:16px}
.faq summary .q{order:1;flex:1 1 auto;min-width:0}
.faq summary .tg{order:2;flex:none;margin-left:auto}
/* project venue photos with credit */
.project-card{overflow:hidden}
.project-photo{margin:0;position:relative}
.project-photo img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:0}
.project-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:18px 14px 6px;font-size:11.5px;line-height:1.4;color:rgba(255,255,255,.82);background:linear-gradient(180deg,rgba(7,10,18,0),rgba(7,10,18,.82))}
.photo-credits p,.photo-credits li{font-size:14px;color:#8A94A6}
.photo-credits h2{font-size:20px}
.photo-credits li{overflow-wrap:anywhere}

/* ---------- icons & symbols (UX pass 18 Nov) ---------- */
.hico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;margin-bottom:12px;color:#01C38E;background:linear-gradient(145deg,rgba(1,195,142,.16),rgba(91,155,255,.08));border:1px solid rgba(1,195,142,.32)}
.hico svg{width:22px;height:22px}
.h2-ico{display:flex;align-items:flex-start;gap:12px}
.aico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-top:.1em;border-radius:10px;color:#01C38E;background:rgba(1,195,142,.12);border:1px solid rgba(1,195,142,.3)}
.aico svg{width:19px;height:19px}
li.li-ico{list-style:none;display:flex;gap:12px;align-items:flex-start;margin-left:-1.2em;margin-bottom:12px}
.lico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;color:#5B9BFF;background:rgba(91,155,255,.12);border:1px solid rgba(91,155,255,.28);margin-top:.05em}
.lico svg{width:16px;height:16px}
.floor-split ul li:not(.li-ico),.section-body ul li:not(.li-ico),.card-body ul li:not(.li-ico),.article-content ul li:not(.li-ico),.space-copy ul li:not(.li-ico){list-style:none;position:relative;padding-left:26px;margin-left:-1.2em}
.floor-split ul li:not(.li-ico)::before,.section-body ul li:not(.li-ico)::before,.card-body ul li:not(.li-ico)::before,.article-content ul li:not(.li-ico)::before,.space-copy ul li:not(.li-ico)::before{content:"";position:absolute;left:0;top:.42em;width:16px;height:16px;background:#01C38E;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.6 2.6L16 9.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.6 2.6L16 9.5'/%3E%3C/svg%3E") center/contain no-repeat}
.tdh{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.tdh svg{width:18px;height:18px;flex:0 0 auto;color:#01C38E}
.bico{display:inline-flex;margin-left:8px;transition:transform .2s}
.bico svg{width:18px;height:18px}
.button:hover .bico{transform:translateX(3px)}
.button.small svg{width:16px;height:16px;margin-right:6px;vertical-align:-3px}
.nico{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 auto;border-radius:8px;color:#01C38E;background:rgba(1,195,142,.1)}
.nico svg{width:16px;height:16px}
.dd a,.mobile-nav a{display:flex!important;align-items:center;gap:10px}
.layer-indicator span svg{width:16px;height:16px;margin-right:6px;vertical-align:-3px;opacity:.55}
.layer-indicator span.active svg{opacity:1;color:#01C38E}
.layer-indicator span i{display:none}
.fline{display:flex;gap:10px;align-items:flex-start}
.fline svg{width:18px;height:18px;flex:0 0 auto;margin-top:.2em;color:#01C38E}
.toc-title~a{counter-increment:toc;display:flex;gap:10px;align-items:baseline}
.toc-title~a::before{content:counter(toc,decimal-leading-zero);flex:0 0 auto;margin-right:10px;font:600 12px/1 Montserrat,Inter,sans-serif;color:#01C38E;letter-spacing:.04em}
.toc-title{counter-reset:toc}

/* ---------- image balance & effects (18 Nov) ---------- */
/* photos were dimmed to 45–65% brightness; keep them natural and add a soft bottom shade instead */
.card-photo img,.space-photo img,.content-image img,.space-photo img[src*=retail]{filter:none!important}
.card-photo,.space-photo,.project-photo{position:relative;overflow:hidden;background:linear-gradient(110deg,#111826 30%,#1a2333 50%,#111826 70%);background-size:200% 100%;animation:shimmer 1.6s linear infinite}
.card-photo::after,.space-photo::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(11,15,26,0) 55%,rgba(11,15,26,.55));}
/* one shape for every card photo, centred crop (the old 165% shift left an empty dark band) */
.card-photo img{width:100%;aspect-ratio:16/10;height:auto;object-fit:cover;object-position:center}
.space-photo img,.space-photo img[src*=kv1],.space-photo img[src*=kv4],.space-photo img[src*=kv5],.space-photo img[src*=kv7],.space-photo img[src*=kv11]{width:100%!important;height:100%;max-width:100%;transform:none!important;object-fit:cover;object-position:center}
.project-photo{margin:0}
.project-photo img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.project-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:8px 14px;font-size:11px;color:#c9d1d9;background:linear-gradient(0deg,rgba(11,15,26,.85),rgba(11,15,26,0))}
.project-visual{position:relative;aspect-ratio:16/9;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 30% 20%,rgba(1,195,142,.22),transparent 60%),radial-gradient(ellipse at 80% 90%,rgba(91,155,255,.18),transparent 55%),#0f1624;border-bottom:1px solid rgba(255,255,255,.08)}
.pv-grid{position:absolute;inset:0;background-image:radial-gradient(rgba(1,195,142,.35) 1px,transparent 1.4px);background-size:22px 22px;mask-image:linear-gradient(180deg,#000,transparent 85%);-webkit-mask-image:linear-gradient(180deg,#000,transparent 85%);animation:drift 14s linear infinite}
.pv-ico{position:relative;display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:24px;color:#01C38E;background:rgba(11,15,26,.6);border:1px solid rgba(1,195,142,.4);box-shadow:0 0 40px rgba(1,195,142,.25);backdrop-filter:blur(6px)}
.pv-ico svg{width:40px;height:40px}
/* images fade in when they arrive instead of popping */
img.fx{opacity:0;transition:opacity .35s ease,transform 1.2s cubic-bezier(.2,.7,.2,1)}
img.fx.ld{opacity:1;transform:none}
/* friendly hover: lift, glow, slow zoom */
.card,.space-card,.blog-card,.project-card{transition:transform .35s cubic-bezier(.2,.7,.2,1),border-color .25s,box-shadow .35s}
.card:hover,.space-card:hover{transform:translateY(-6px);border-color:rgba(1,195,142,.55);box-shadow:0 18px 40px rgba(0,0,0,.35),0 0 30px rgba(1,195,142,.12)}
.card-photo img,.space-photo img,.project-photo img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1),opacity .6s}
.card:hover .card-photo img,.space-card:hover .space-photo img,.project-card:hover .project-photo img{transform:scale(1.06)!important}
.card:hover .ico,.space-card:hover .ico{transform:translateY(-2px) rotate(-4deg);box-shadow:0 0 30px rgba(1,195,142,.35)}
.ico{transition:transform .35s,box-shadow .35s}
.card::before,.space-card::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.07) 50%,transparent 65%);background-size:250% 100%;background-position:120% 0;transition:background-position .9s}
.card,.space-card{position:relative}
.card:hover::before,.space-card:hover::before{background-position:-20% 0}
.button{transition:transform .2s,box-shadow .25s,background .2s}
.button:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(1,195,142,.3)}
.hico{animation:pulse-ring 3.2s ease-in-out infinite}
@keyframes pulse-ring{0%,100%{box-shadow:0 0 0 0 rgba(1,195,142,.0)}50%{box-shadow:0 0 0 6px rgba(1,195,142,.08),0 0 22px rgba(1,195,142,.18)}}
@keyframes shimmer{to{background-position:-200% 0}}
@keyframes drift{to{background-position:22px 22px}}
@media (prefers-reduced-motion:reduce){.card-photo,.space-photo,.project-photo,.pv-grid,.hico{animation:none}img.fx{opacity:1;transform:none}.card:hover,.space-card:hover{transform:none}}
.img-ready{animation:none!important;background:#111826!important}
.space-photo img[src*="key-visuals/imas-kv"],.card-photo img[src*="key-visuals/imas-kv"]{object-position:74% 50%!important}
.card-photo img[src*="kv2-sensor-hero"]{object-position:50% 40%!important}

/* stage links: keep the label together, arrow pushed right */
.stage-link{justify-content:flex-start;gap:6px}.stage-link>span{margin-left:auto}

.td-link{display:inline-flex;align-items:center;gap:6px;color:#01c38e!important;font-weight:500;white-space:nowrap}.td-link .bico svg{width:16px;height:16px}.td-link:hover .bico{transform:translateX(3px)}

footer .fline a{color:inherit}footer .fline a:hover{color:#01c38e}.fsmall{font-size:13px;color:#8a94a6;margin-top:14px}.fsmall a{color:#aeb9c6;text-decoration:underline}
.privacy h2{font-size:24px;margin:36px 0 12px}.privacy li{margin:6px 0}

/* language switch */
.lang{display:inline-flex;align-items:center;gap:6px;font:600 12px/1 Montserrat,Inter,sans-serif;letter-spacing:1px;margin-right:14px}.lang .lang-on{color:#01c38e}.lang .lang-switch{color:#8a94a6;padding:6px 4px}.lang .lang-switch:hover{color:#fff}.lang>*+*:before{content:"/";color:#3a4556;margin-right:6px}
@media(max-width:600px){.lang{margin-right:8px}}
