/* ============================================================
   LEIMOND — Light Premium Glass UI
   #FFF700  yellow accent
   #cdcdcd  mid gray
   #4b4b4b  ink dark
   ============================================================ */

@font-face{
  font-family:'Anuphan';
  src:url('assets/fonts/Anuphan-Variable.ttf') format('truetype');
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}

:root{
  color-scheme:light;
  --bg-0:#ffffff;
  --bg-1:#f6f6f6;
  --bg-2:#ececec;
  --ink-0:#4b4b4b;
  --ink-1:#4b4b4b;
  --ink-2:#6a6a6a;
  --ink-3:#9a9a9a;
  --ink-4:#cdcdcd;
  --accent:#FFF700;
  --accent-soft:#fffbb0;
  --accent-deep:#e6d800;
  --accent-2:#7e7eff;
  --accent-3:#3ed4a8;
  --line:rgba(75,75,75,0.10);
  --line-2:rgba(75,75,75,0.18);
  --glass:rgba(255,255,255,0.18);
  --glass-2:rgba(255,255,255,0.2);
  --glass-strong:rgba(255,255,255,0.22);
  --glass-edge:rgba(255,255,255,0.72);
  --glass-inner:rgba(255,255,255,0.42);
  --shadow-soft:rgba(75,75,75,.22);
  --surface-text:#3a3a3a;
  --body-text:#555555;
  --nav-bg:rgba(255,255,255,0.18);
  --nav-bg-scrolled:rgba(255,255,255,0.26);
  --font-heading-en:'Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-body-en:'Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-heading-th:'Helvetica Neue Thai','Helvetica Thai','Anuphan',Tahoma,Arial,sans-serif;
  --font-body-th:'Helvetica Neue Thai','Helvetica Thai','Anuphan',Tahoma,Arial,sans-serif;
  --blur:22px;
  --radius:22px;
  --radius-sm:14px;
  --max:1280px;
  --pad:clamp(20px,4vw,56px);
}

html[data-theme="night"]{
  color-scheme:dark;
  --bg-0:#090a0c;
  --bg-1:#111318;
  --bg-2:#1b1f26;
  --ink-0:#f2f4f6;
  --ink-1:#d9dde2;
  --ink-2:#aeb5bd;
  --ink-3:#7f8790;
  --ink-4:#454b54;
  --accent:#FFF700;
  --accent-soft:#fffb85;
  --accent-deep:#fff700;
  --line:rgba(255,255,255,0.12);
  --line-2:rgba(255,255,255,0.2);
  --glass:rgba(255,255,255,0.065);
  --glass-2:rgba(255,255,255,0.055);
  --glass-strong:rgba(255,255,255,0.085);
  --glass-edge:rgba(255,255,255,0.14);
  --glass-inner:rgba(255,255,255,0.07);
  --shadow-soft:rgba(0,0,0,.52);
  --surface-text:#f2f4f6;
  --body-text:#c6cbd1;
  --nav-bg:rgba(6,7,10,0.42);
  --nav-bg-scrolled:rgba(6,7,10,0.56);
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html,body{background:var(--bg-0);color:var(--ink-0);font-family:var(--font-body-en);font-weight:400;line-height:1.5;overflow-x:hidden;transition:background .35s,color .35s}
html[lang="th"] body{font-family:var(--font-body-th)}
html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea,
html[lang="en"] .hero-title,
html[lang="en"] .section-title,
html[lang="en"] .contact-title,
html[lang="en"] .page-tab span,
html[lang="en"] .section-eyebrow,
html[lang="en"] .stat-num,
html[lang="en"] .stat-plus,
html[lang="en"] .service-card h3,
html[lang="en"] .service-group-head,
html[lang="en"] .service-detail,
html[lang="en"] .eco-node text,
html[lang="en"] .eco-stat b,
html[lang="en"] .flow-step,
html[lang="en"] .auto-card b,
html[lang="en"] .story-card,
html[lang="en"] .footer-cols b{
  font-family:var(--font-body-en) !important;
}
html[lang="th"] body,
html[lang="th"] button,
html[lang="th"] input,
html[lang="th"] select,
html[lang="th"] textarea,
html[lang="th"] .hero-title,
html[lang="th"] .section-title,
html[lang="th"] .contact-title,
html[lang="th"] .page-tab span,
html[lang="th"] .section-eyebrow,
html[lang="th"] .stat-num,
html[lang="th"] .stat-plus,
html[lang="th"] .service-card h3,
html[lang="th"] .service-group-head,
html[lang="th"] .service-detail,
html[lang="th"] .eco-node text,
html[lang="th"] .eco-stat b,
html[lang="th"] .flow-step,
html[lang="th"] .auto-card b,
html[lang="th"] .story-card,
html[lang="th"] .footer-cols b{
  font-family:var(--font-body-th) !important;
}
body{min-height:100vh;position:relative}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font-family:inherit;border:0;background:transparent;color:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;color:var(--ink-0);background:transparent;border:0;outline:0;font-size:15px;width:100%;resize:none}
input::placeholder,textarea::placeholder{color:rgba(75,75,75,0.35)}
::selection{background:var(--accent);color:var(--ink-0)}

/* ============== BACKGROUND LAYERS ============== */
#bg-gradient{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(58% 48% at 58% 25%, rgba(205,216,224,0.26), transparent 62%),
    radial-gradient(42% 38% at 12% 85%, rgba(75,75,75,0.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(247,248,248,.96));
  transition:background .45s;
}
#bg-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.96}
#bg-grid{position:fixed;inset:0;z-index:2;pointer-events:none;opacity:.35;
  background-image:
    linear-gradient(rgba(75,75,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,75,75,0.04) 1px, transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image:radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

main, header{position:relative;z-index:10}

html[data-theme="night"] #bg-gradient{
  background:
    radial-gradient(58% 50% at 58% 18%, rgba(130,145,158,0.16), transparent 64%),
    radial-gradient(48% 42% at 12% 84%, rgba(255,255,255,0.045), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,1), rgba(7,8,10,.98));
}
html[data-theme="night"] #bg-grid{
  opacity:.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
}
html[data-theme="night"] #bg-canvas{opacity:.9}
html.webgl-fallback #bg-canvas{display:none}
html.webgl-fallback #bg-gradient{
  opacity:1;
  background:
    radial-gradient(ellipse at 50% 42%,rgba(185,193,201,.24),transparent 36%),
    radial-gradient(ellipse at 68% 58%,rgba(70,76,84,.16),transparent 42%),
    var(--bg-0);
}
@media(prefers-reduced-motion:reduce){
  #bg-canvas{opacity:.48 !important}
  #cursor-glow{display:none}
}
html[data-theme="night"] .hero-title,
html[data-theme="night"] .nav-links a,
html[data-theme="night"] .hero-eyebrow{
  text-shadow:0 2px 20px rgba(0,0,0,.92), 0 0 4px rgba(0,0,0,.74);
}
html[data-theme="night"] .hero-title .gradient-text{
  background:linear-gradient(120deg, #fff700 0%, #fff700 38%, #b9bdff 72%, #f6f8fb 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:none;
  filter:drop-shadow(0 2px 16px rgba(0,0,0,.82));
}

/* ============== PRELOADER ============== */
#preloader{position:fixed;inset:0;background:var(--bg-0);z-index:9999;display:flex;align-items:center;justify-content:center;transition:opacity .8s ease,visibility .8s ease,background .35s;animation:preloaderAutoHide .8s ease 2.6s forwards}
#preloader.done{opacity:0;visibility:hidden}
.preloader-inner{text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}
.preloader-logo{width:180px;opacity:.95;filter:drop-shadow(0 0 30px rgba(255,247,0,.45))}
.preloader-bar{width:220px;height:2px;background:var(--line);border-radius:2px;overflow:hidden}
.preloader-bar span{display:block;height:100%;background:linear-gradient(90deg,transparent,var(--accent-deep),transparent);animation:loadBar 1.4s infinite}
.preloader-text{color:var(--ink-2);font-size:12px;letter-spacing:.18em;text-transform:uppercase}
@keyframes loadBar{0%{transform:translateX(-100%)}100%{transform:translateX(220px)}}
@keyframes preloaderAutoHide{to{opacity:0;visibility:hidden}}

/* ============== CURSOR GLOW ============== */
#cursor-glow{position:fixed;width:480px;height:480px;border-radius:50%;pointer-events:none;z-index:3;
  background:radial-gradient(circle, rgba(255,255,255,0.34) 0%, rgba(205,216,224,.18) 36%, transparent 64%);
  transform:translate(-50%,-50%);mix-blend-mode:multiply;transition:opacity .3s;opacity:0}
@media(hover:hover){#cursor-glow{opacity:1}}

/* ============== GLASS PRIMITIVES ============== */
.glass{
  background:
    linear-gradient(135deg, var(--glass) 0%, rgba(255,255,255,0.04) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  -webkit-backdrop-filter:blur(50px) saturate(180%);
  backdrop-filter:blur(50px) saturate(180%);
  border:1px solid var(--glass-edge);
  border-radius:var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -1px 0 var(--glass-inner),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 1px 2px rgba(75,75,75,.04),
    0 18px 40px -16px var(--shadow-soft),
    0 50px 100px -36px var(--shadow-soft);
  transition:background .35s,border-color .35s,box-shadow .35s,color .35s;
}
.glass-strong{
  background:linear-gradient(180deg, var(--glass-strong), rgba(255,255,255,0.06));
  -webkit-backdrop-filter:blur(50px) saturate(180%) brightness(1.1);
  backdrop-filter:blur(50px) saturate(180%) brightness(1.1);
  border:1px solid var(--glass-edge);
  border-radius:28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 0 0 1px var(--glass-inner),
    0 2px 4px rgba(75,75,75,.05),
    0 24px 60px -20px var(--shadow-soft),
    0 60px 120px -30px var(--shadow-soft);
}
.glass-chip{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 16px;border-radius:999px;
  background:var(--glass-2);
  border:1px solid var(--line-2);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  font-size:12.5px;letter-spacing:.04em;color:var(--ink-1);
  box-shadow:0 4px 12px -4px rgba(75,75,75,.1)
}
.glass-btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 22px;border-radius:999px;
  background:var(--glass-2);
  border:1px solid var(--line-2);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  font-size:14.5px;font-weight:500;letter-spacing:.01em;
  color:var(--ink-0);
  transition:transform .35s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, box-shadow .4s;
  position:relative;overflow:hidden
}
.glass-btn{border-color:var(--glass-edge);background:var(--glass-2);box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(75,75,75,.05), 0 6px 16px -8px var(--shadow-soft)}
.glass-btn:hover{transform:translateY(-2px);background:var(--glass-strong);border-color:var(--line-2);box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(75,75,75,.05), 0 18px 40px -16px var(--shadow-soft)}
.btn-primary{background:#fff700;border-color:rgba(255,247,0,.92);color:#3a3a3a;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(75,75,75,.06), 0 10px 28px -10px rgba(255,247,0,.65)}
.btn-primary:hover{transform:translateY(-2px);background:#fff700;box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(75,75,75,.06), 0 18px 40px -10px rgba(255,247,0,.85)}
.btn-primary.lg{padding:16px 26px;font-size:15.5px}
.btn-ghost{color:var(--ink-1)}

.gradient-text{
  background:linear-gradient(120deg, var(--ink-0) 0%, var(--accent-deep) 40%, #6a6aff 80%, var(--ink-0) 100%);
  background-size:200% 200%;
  -webkit-background-clip:text;background-clip:text;
  color:transparent;
  animation:shine 8s ease infinite
}
@keyframes shine{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

.pulse-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-deep);box-shadow:0 0 12px var(--accent);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.7)}}

/* ============== NAV ============== */
.nav{
  position:fixed;top:18px;left:50%;transform:translateX(-50%);
  width:min(calc(100% - 36px), 1180px);
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px 12px 22px;
  z-index:100;
  border-radius:999px;
  background:var(--nav-bg);
  transition:background .35s,border-color .35s,box-shadow .35s;
}
.nav.scrolled{background:var(--nav-bg-scrolled)}
.nav-brand{display:flex;align-items:center}
.nav-brand img{height:30px;width:auto;opacity:1;filter:drop-shadow(0 0 14px rgba(255,247,0,.16));transition:filter .35s,opacity .35s}
html[data-theme="night"] .nav-brand img,
html[data-theme="night"] .footer-brand img,
html[data-theme="night"] .preloader-logo{filter:drop-shadow(0 0 18px rgba(255,247,0,.32))}
.nav-links{display:flex;gap:6px}
.nav-links a{padding:10px 14px;font-size:13.5px;color:var(--ink-1);border-radius:999px;transition:color .25s, background .25s;font-weight:500}
.nav-links a:hover{color:var(--ink-0);background:var(--glass-2)}
.nav-cta{padding:10px 16px;font-size:13.5px;background:#fff700;color:#3a3a3a;border-color:rgba(255,247,0,.9);font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 10px 24px -12px rgba(255,247,0,.72)}
.nav-cta:hover{background:#fff700;border-color:#fff700;color:#262626;box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 16px 34px -12px rgba(255,247,0,.9)}
.lang-switch{display:flex;align-items:center;gap:4px;padding:4px;border-radius:999px;background:var(--glass-2);border:1px solid var(--line-2);box-shadow:0 8px 20px -16px var(--shadow-soft)}
.lang-switch button{min-width:36px;height:28px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--ink-2);transition:background .25s,color .25s,box-shadow .25s}
.lang-switch button.active{background:linear-gradient(140deg,#FFF700,#e6d800);color:#3a3a3a;box-shadow:0 8px 18px -12px rgba(230,216,0,.9)}
.theme-switch{width:38px;height:38px;border-radius:999px;display:grid;place-items:center;background:var(--glass-2);border:1px solid var(--line-2);color:var(--ink-0);box-shadow:0 8px 20px -16px var(--shadow-soft);transition:background .25s,border-color .25s,color .25s,transform .25s}
.theme-switch:hover{transform:translateY(-1px);border-color:rgba(255,247,0,.7);color:#3a3a3a;background:#fff700}
.theme-icon{grid-area:1/1;display:grid;place-items:center;transition:opacity .25s,transform .25s}
.theme-moon{opacity:0;transform:scale(.72) rotate(-20deg)}
html[data-theme="night"] .theme-sun{opacity:0;transform:scale(.72) rotate(20deg)}
html[data-theme="night"] .theme-moon{opacity:1;transform:scale(1) rotate(0)}
.nav-toggle{display:none;width:38px;height:38px;border-radius:999px;background:var(--glass-2);border:1px solid var(--line-2);flex-direction:column;align-items:center;justify-content:center;gap:5px}
.nav-toggle span{width:16px;height:1.5px;background:var(--ink-0);border-radius:2px}

@media (max-width:900px){
  .nav-links,.nav-cta{display:none}
  .nav-toggle{display:flex}
  .lang-switch{margin-left:auto;margin-right:8px}
}

/* ============== PAGE TABS ============== */
.page-tabs{
  position:fixed;left:18px;top:50%;transform:translateY(-50%);
  z-index:90;width:142px;padding:10px;border-radius:20px;
  display:flex;flex-direction:column;gap:6px;
}
.page-tab{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;padding:10px 9px;border-radius:14px;color:var(--ink-2);transition:background .25s,color .25s,transform .25s}
.page-tab:hover,.page-tab.active{background:rgba(255,247,0,.18);color:var(--ink-0);transform:translateX(2px)}
.page-tab span{font-family:'Space Grotesk',sans-serif;font-size:11px;font-weight:800;color:var(--accent-deep)}
.page-tab b{font-size:12px;line-height:1.2;font-weight:800}

@media(max-width:1180px){.page-tabs{display:none}}

/* ============== SECTION SHELL ============== */
.section{
  position:relative;
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:140px var(--pad) 80px;
}
.section-head{text-align:center;max-width:780px;margin:0 auto 64px}
.section-eyebrow{display:inline-block;font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent-deep);font-weight:700;margin-bottom:18px;font-family:'Space Grotesk',sans-serif}
.section-eyebrow.center{display:block}
.section-title{font-family:var(--font-heading-en);font-size:clamp(34px,5vw,64px);line-height:1.05;letter-spacing:0;font-weight:600;margin-bottom:20px;color:var(--ink-0)}
html[lang="th"] .section-title{font-family:var(--font-heading-th)}
.section-sub{font-size:clamp(15px,1.4vw,17.5px);color:var(--ink-2);line-height:1.6;max-width:620px;margin:0 auto}
html[lang="th"] .section-head{max-width:920px}
html[lang="th"] .section-title{font-size:clamp(28px,4vw,52px);line-height:1.45;font-weight:650;overflow-wrap:anywhere;padding-block:.12em;margin-bottom:32px;word-break:keep-all}
html[lang="th"] .section-title .gradient-text{line-height:1.45;display:inline-block;padding-block:.05em}
html[lang="th"] .section-sub{font-size:clamp(14.5px,1.25vw,16.5px);line-height:1.85;max-width:760px;margin-top:8px}

/* ============== HERO ============== */
.hero{
  min-height:100vh;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;
  padding-top:150px;padding-bottom:80px;
}
.hero-eyebrow{margin-bottom:32px}
.hero-title{
  font-family:var(--font-heading-en);
  font-weight:700;
  font-size:clamp(42px,6vw,86px);
  line-height:1.02;
  letter-spacing:0;
  max-width:920px;
  color:var(--ink-0);
}
.hero .hero-title,
.hero .hero-title .gradient-text{
  color:#fff777 !important;
  -webkit-text-fill-color:#fff777 !important;
  background:none !important;
  background-image:none !important;
  animation:none !important;
}
html[data-theme="day"] .hero .hero-title,
html[data-theme="day"] .hero .hero-title .gradient-text{
  color:#4b4b4b !important;
  -webkit-text-fill-color:#4b4b4b !important;
}
html[lang="th"] .hero-title{font-family:var(--font-heading-th)}
.hero-title .line{display:block;overflow:hidden}
html[lang="th"] .hero-title{font-size:clamp(34px,4.8vw,68px);line-height:1.38;max-width:1040px;padding-block:.1em;word-break:keep-all}
html[lang="th"] .hero-title .line{overflow:visible;padding-block:.05em}
.hero-sub{
  margin:28px 0 0;
  max-width:760px;
  padding:18px 22px;
  border-left:4px solid var(--accent-deep);
  border-radius:0 18px 18px 0;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 20px 48px -34px rgba(75,75,75,.32);
  font-size:clamp(16px,1.35vw,18px);
  color:#3f3f3f;
  line-height:1.75;
  font-weight:500;
}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-start;margin-top:36px}

.hero-stats{
  display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:18px;
  width:min(100%,1180px);max-width:1180px;margin:72px auto 0;
  justify-content:center;
}
.stat{min-height:176px;padding:28px 22px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;position:relative;overflow:hidden;transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s}
.stat::after{content:'';position:absolute;top:0;right:0;width:36px;height:36px;background:radial-gradient(circle at top right, rgba(255,247,0,.45), transparent 70%);pointer-events:none}
.stat:hover{transform:translateY(-3px);border-color:rgba(205,205,205,0.6);box-shadow:0 1px 2px rgba(75,75,75,.05), 0 18px 36px -14px rgba(75,75,75,.18)}
.stat-num{display:inline-block;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:clamp(28px,3.4vw,44px);color:var(--ink-0);letter-spacing:-.02em}
.stat-plus{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:clamp(20px,2vw,28px);color:var(--accent-deep);margin-left:2px;vertical-align:top}
.stat-label{color:var(--ink-2);font-size:12.5px;letter-spacing:.04em}

@media(min-width:1181px){
  .hero{padding-left:clamp(150px,11vw,180px)}
  .hero-title{font-size:clamp(42px,5.6vw,80px);max-width:900px}
  html[lang="th"] .hero-title{font-size:clamp(34px,4.7vw,64px);max-width:860px}
  .hero-sub{max-width:720px}
}

@media(max-width:980px){.hero-stats{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:760px){.hero-stats{grid-template-columns:repeat(2,1fr)}}

.scroll-indicator{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--ink-3);font-size:11px;letter-spacing:.22em;text-transform:uppercase}
.scroll-line{width:1px;height:50px;background:linear-gradient(180deg,var(--accent-deep),transparent);position:relative;overflow:hidden}
.scroll-line::after{content:'';position:absolute;top:-50%;left:0;width:100%;height:50%;background:var(--ink-0);animation:scrollDot 2s infinite}
@keyframes scrollDot{0%{top:-50%}100%{top:100%}}

@media(max-width:760px){
  .hero{padding-top:130px}
  .hero-title{font-size:clamp(36px,11vw,56px)}
  .hero-stats{margin-top:52px}
}

/* ============== ABOUT / CONTENT GROUPS ============== */
.split-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px;align-items:stretch}
.value-list{display:grid;gap:14px}
.about-doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.value-item{padding:24px}
.value-item b{display:block;font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:20px;color:#3a3a3a;margin-bottom:8px}
.value-item span{display:block;color:#555555;font-size:14.5px;line-height:1.7;font-weight:500}

@media(max-width:860px){.split-grid,.about-doc-grid{grid-template-columns:1fr}}

/* ============== SERVICES ============== */
.services{padding-top:80px}
.services-orbit{position:relative;margin-top:40px}
.orbit-core{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:200px;height:200px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle, rgba(255,247,0,.55) 0%, rgba(255,247,0,.12) 40%, transparent 70%);
  pointer-events:none;z-index:0;
}
.orbit-core-inner{
  width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #ffffff, var(--accent) 50%, var(--accent-deep) 90%);
  border:1px solid var(--accent-deep);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 0 60px rgba(255,247,0,.55);
  font-family:'Space Grotesk',sans-serif;
  color:var(--ink-0);
}
.orbit-core-inner span{font-size:26px;font-weight:700;letter-spacing:-.02em}
.orbit-core-inner small{font-size:10px;letter-spacing:.2em;color:var(--ink-2);text-transform:uppercase;margin-top:2px}
.orbit-ring{position:absolute;border-radius:50%;border:1px dashed rgba(255,247,0,.45);top:50%;left:50%;transform:translate(-50%,-50%);animation:spin 60s linear infinite}
.r1{width:340px;height:340px}
.r2{width:540px;height:540px;animation-duration:90s;animation-direction:reverse}
.r3{width:740px;height:740px;animation-duration:120s}
@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg)}}

.services-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
  position:relative;z-index:2;
}
.service-card{padding:28px 24px;transition:transform .5s cubic-bezier(.2,.8,.2,1), background .4s, border-color .4s, box-shadow .5s;position:relative;overflow:hidden}
.service-card::before{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(255,247,0,.14), transparent 50%);opacity:0;transition:opacity .4s;pointer-events:none}
.service-card:hover{transform:translateY(-8px);border-color:rgba(205,205,205,0.6);background:#ffffff;box-shadow:0 1px 2px rgba(75,75,75,.04), 0 18px 40px -14px rgba(75,75,75,.16), 0 40px 80px -22px rgba(75,75,75,.2)}
.service-card:hover::before{opacity:1}
.service-card:hover .svc-icon{background:linear-gradient(140deg, #FFF700 0%, #e6d800 100%);transform:rotate(-4deg) scale(1.06);box-shadow:0 12px 28px -8px rgba(255,247,0,.55), inset 0 1px 0 rgba(255,255,255,.7)}
.service-card.featured{background:linear-gradient(180deg, rgba(255,247,0,.14), rgba(255,255,255,.85));border-color:rgba(230,216,0,0.4)}
.service-card.featured .svc-icon{background:linear-gradient(140deg, #FFF700 0%, #e6d800 100%);box-shadow:0 10px 24px -8px rgba(255,247,0,.5), inset 0 1px 0 rgba(255,255,255,.7)}
.svc-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(140deg, #fffde6 0%, #fff7a8 100%);border:1px solid rgba(230,216,0,0.35);display:flex;align-items:center;justify-content:center;color:var(--ink-0);margin-bottom:20px;box-shadow:0 6px 16px -6px rgba(255,247,0,.45), inset 0 1px 0 rgba(255,255,255,.8);transition:transform .5s cubic-bezier(.2,.8,.2,1), background .4s, box-shadow .4s}
.svc-icon svg{width:22px;height:22px;stroke-width:1.8}
.service-card h3{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:17px;font-weight:700;letter-spacing:0;margin-bottom:8px;color:#3a3a3a}
.service-card p{font-size:13.5px;color:#555555;line-height:1.55;font-weight:500}
.mode-grid{grid-template-columns:repeat(4,1fr)}
.mode-kicker{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-deep);font-weight:800;margin-bottom:6px}
.mode-grid .service-card h3{font-size:22px}
.mode-grid .service-card p{font-size:14px;line-height:1.7}
.tag-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.tag-row span{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.65);border:1px solid rgba(205,205,205,.75);font-size:11.5px;color:#4b4b4b;font-weight:700}

@media(max-width:1024px){.services-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1024px){.mode-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.services-grid{grid-template-columns:repeat(2,1fr)} .orbit-core{display:none}}
@media(max-width:720px){.mode-grid{grid-template-columns:1fr}}
@media(max-width:460px){.services-grid{grid-template-columns:1fr}}

.service-catalog{display:grid;gap:22px}
.service-group{padding:26px;overflow:hidden;position:relative}
.service-group::before{content:'';position:absolute;inset:auto -10% -30% auto;width:360px;height:260px;background:radial-gradient(circle,rgba(255,247,0,.22),transparent 68%);pointer-events:none}
.service-group-head{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;margin-bottom:22px;position:relative}
.service-group-head>span{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(140deg,#FFF700,#e6d800);font-family:'Space Grotesk',sans-serif;font-size:18px;font-weight:800;color:#3a3a3a;box-shadow:0 14px 30px -16px rgba(230,216,0,.9), inset 0 1px 0 rgba(255,255,255,.65)}
.service-group-head h3{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:clamp(24px,3vw,36px);line-height:1.1;color:#3a3a3a;margin-bottom:8px}
.service-group-head p{max-width:760px;color:#666;font-size:14.5px;line-height:1.7;font-weight:500}
.service-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;position:relative}
.service-detail-grid.compact{grid-template-columns:minmax(280px,560px);justify-content:center}
.service-detail{padding:20px;border-radius:16px;background:rgba(255,255,255,.48);border:1px solid rgba(255,255,255,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 18px 38px -28px rgba(75,75,75,.28)}
.service-detail h4{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:18px;line-height:1.25;color:#3a3a3a;margin-bottom:8px}
.service-detail p{color:#555;font-size:13.5px;line-height:1.65;font-weight:500;margin-bottom:14px}
.service-detail b{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-deep);margin-bottom:8px;font-family:'Space Grotesk',sans-serif}
.service-detail ul{list-style:none;display:flex;flex-wrap:wrap;gap:7px}
.service-detail li{padding:7px 9px;border-radius:999px;background:#fffbe8;border:1px solid rgba(230,216,0,.32);color:#4b4b4b;font-size:12px;font-weight:700;line-height:1.25}

@media(max-width:1060px){.service-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){
  .service-group{padding:20px}
  .service-group-head{grid-template-columns:1fr}
  .service-detail-grid{grid-template-columns:1fr}
}

/* ============== ECOSYSTEM ============== */
.ecosystem{
  max-width:none;
  padding-left:clamp(18px,4vw,72px);
  padding-right:clamp(18px,4vw,72px);
}
.ecosystem-canvas{padding:40px;position:relative}
.ai-core-map{
  width:min(100%,1240px);
  min-height:680px;
  margin:0 auto;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 38%,rgba(255,255,255,.82),rgba(255,255,255,.22) 30%,transparent 50%),
    radial-gradient(circle at 20% 18%,rgba(255,255,255,.42),transparent 30%),
    radial-gradient(circle at 82% 20%,rgba(255,255,255,.38),transparent 26%),
    linear-gradient(180deg,rgba(255,255,255,.48),rgba(255,255,255,.22));
  border-color:rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(34px) saturate(155%);
  backdrop-filter:blur(34px) saturate(155%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 90px rgba(255,255,255,.2),0 36px 86px -42px rgba(45,45,45,.38);
}
.ai-core-map::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.38;background-image:linear-gradient(90deg,rgba(205,205,205,.22) 1px,transparent 1px),linear-gradient(rgba(205,205,205,.18) 1px,transparent 1px);background-size:70px 70px;mask-image:radial-gradient(ellipse at center,#000 26%,transparent 76%);-webkit-mask-image:radial-gradient(ellipse at center,#000 26%,transparent 76%)}
.ai-core-map::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.42;background:linear-gradient(115deg,transparent 0 15%,rgba(255,255,255,.54) 15.2% 15.5%,transparent 15.7% 100%),linear-gradient(65deg,transparent 0 72%,rgba(255,255,255,.46) 72.2% 72.5%,transparent 72.7% 100%)}
.eco-svg{position:relative;z-index:1;width:100%;height:auto;display:block;margin:0 auto;max-height:640px}
.eco-svg .eco-lines path{stroke:rgba(255,247,0,.72);stroke-width:2.6;stroke-linecap:round;filter:drop-shadow(0 0 7px rgba(255,247,0,.5)) drop-shadow(0 0 15px rgba(255,255,255,.42))}
.eco-node{color:#28313a}
.eco-node .model-orb{fill:rgba(255,255,255,.38);stroke:rgba(255,255,255,.9);stroke-width:2.5;filter:drop-shadow(0 18px 28px rgba(45,45,45,.2)) drop-shadow(0 0 20px rgba(255,255,255,.36))}
.eco-node .model-base{fill:url(#luxBase);opacity:.8;filter:blur(.3px)}
.eco-node .model-shine{fill:#fff;opacity:.86;filter:drop-shadow(0 0 7px rgba(255,255,255,.9))}
.eco-node .node-glow{fill:none;stroke:rgba(255,255,255,.72);stroke-width:3;filter:drop-shadow(0 0 12px rgba(255,255,255,.78));animation:nodeBreath 4.8s ease-in-out infinite}
.model-node path,.model-node rect,.model-node ellipse:not(.model-base),.model-node circle:not(.model-orb):not(.node-glow):not(.model-shine){transform:translateY(-12px);transform-box:fill-box;transform-origin:center;transition:stroke .25s,fill .25s,filter .25s}
.model-node:hover path,.model-node:hover rect,.model-node:hover ellipse:not(.model-base),.model-node:hover circle:not(.model-orb):not(.node-glow):not(.model-shine){stroke:var(--accent-deep);fill:transparent;filter:drop-shadow(0 0 9px rgba(255,247,0,.78))}
.model-node:hover circle:not(.model-orb):not(.node-glow):not(.model-shine){fill:var(--accent-deep)}
.eco-node text{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:18px;font-weight:700;fill:#28313a}
.core-node circle:nth-child(2){fill:rgba(255,255,255,.38);filter:drop-shadow(0 0 20px rgba(255,255,255,.74)) drop-shadow(0 22px 32px rgba(75,75,75,.22))}
.core-node text:first-of-type{font-family:'Space Grotesk','Noto Sans Thai',sans-serif}
.eco-pulses circle{filter:drop-shadow(0 0 9px rgba(255,255,255,.9))}
@keyframes nodeBreath{0%,100%{opacity:.68;stroke-width:3}50%{opacity:1;stroke-width:5}}
.eco-stats{
  position:relative;z-index:2;
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  width:min(920px,92%);margin:-36px auto 10px;
  padding:24px 24px;border-radius:24px;
  background:rgba(255,255,255,.52);
  border:1px solid rgba(255,255,255,.82);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  backdrop-filter:blur(22px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),inset 0 0 0 1px rgba(255,247,0,.12),0 28px 58px -30px rgba(75,75,75,.34),0 0 36px rgba(255,247,0,.18);
}
.eco-stat{text-align:center;padding:0 18px;border-right:1px solid rgba(205,205,205,.75)}
.eco-stat:last-child{border-right:0}
.eco-stat b{display:block;font-family:'Space Grotesk',sans-serif;font-size:42px;line-height:1;color:var(--ink-0);font-weight:800}
.eco-stat span{display:block;margin-top:8px;font-size:13px;color:#4b4b4b;letter-spacing:.02em;font-weight:600}

@media(max-width:720px){
  .ecosystem-canvas{padding:18px}
  .eco-stats{grid-template-columns:1fr;gap:14px;margin-top:10px}
  .eco-stat{border-right:0;border-bottom:1px solid rgba(205,205,205,.6);padding-bottom:14px}
  .eco-stat:last-child{border-bottom:0;padding-bottom:0}
}

/* ============== AUTOMATION ============== */
.auto-flow{padding:32px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
.auto-flow::-webkit-scrollbar{display:none;width:0;height:0}
.flow-track{display:flex;align-items:stretch;gap:12px;width:100%}
.flow-step{flex:1 1 0;min-width:0;padding:22px 18px;border-radius:16px;background:rgba(255,255,255,0.25);-webkit-backdrop-filter:blur(40px) saturate(180%) brightness(1.08);backdrop-filter:blur(40px) saturate(180%) brightness(1.08);border:1px solid rgba(255,255,255,0.55);position:relative;transition:transform .4s cubic-bezier(.2,.8,.2,1), background .4s, border-color .4s, box-shadow .4s;box-shadow:inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 1px rgba(205,205,205,0.4), 0 1px 2px rgba(75,75,75,.05), 0 12px 26px -12px rgba(75,75,75,.15)}
.flow-step:hover{transform:translateY(-6px);background:rgba(255,255,255,0.45);border-color:rgba(255,255,255,0.7);box-shadow:inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1px rgba(205,205,205,0.5), 0 1px 2px rgba(75,75,75,.05), 0 22px 50px -16px rgba(75,75,75,.22)}
.flow-step:hover .step-num{background:linear-gradient(140deg, #FFF700, #e6d800);color:var(--ink-0);box-shadow:0 6px 16px -4px rgba(255,247,0,.5)}
.step-num{display:inline-block;font-family:'Space Grotesk',sans-serif;font-size:11.5px;color:var(--ink-0);background:#fffbe0;letter-spacing:.1em;margin-bottom:14px;font-weight:700;padding:5px 10px;border-radius:6px;border:1px solid rgba(230,216,0,.4);transition:background .4s, color .4s, box-shadow .4s}
.flow-step h4{font-family:'Space Grotesk',sans-serif;font-size:15.5px;margin-bottom:8px;letter-spacing:-.01em;color:#3a3a3a;font-weight:700}
.flow-step p{font-size:12.5px;color:#555555;line-height:1.55;font-weight:500}
.flow-arrow{flex:0 0 24px;display:flex;align-items:center;justify-content:center;position:relative;height:auto;align-self:center}
.flow-arrow::before{content:'';width:100%;height:1px;background:linear-gradient(90deg,transparent,var(--accent-deep),transparent);position:relative}
.flow-arrow::after{content:'';position:absolute;width:6px;height:6px;background:var(--accent-deep);border-radius:50%;box-shadow:0 0 12px var(--accent);animation:flowPulse 2s infinite}
@keyframes flowPulse{0%{transform:translateX(-12px);opacity:0}50%{opacity:1}100%{transform:translateX(12px);opacity:0}}

@media(max-width:900px){
  .auto-flow{padding:20px}
  .flow-track{flex-direction:column;gap:10px}
  .flow-step{flex:1 1 auto;width:100%}
  .flow-arrow{flex:0 0 24px;width:24px;height:24px;transform:rotate(90deg);margin:0 auto}
}

.auto-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:24px}
.auto-card{padding:28px;text-align:center}
.auto-card b{display:block;font-family:'Space Grotesk',sans-serif;font-size:42px;font-weight:700;color:var(--ink-0);letter-spacing:-.02em}
.auto-card span{display:block;margin-top:6px;color:#555555;font-size:13px;letter-spacing:.04em;font-weight:500}

@media(max-width:680px){.auto-metrics{grid-template-columns:1fr}}

/* ============== DASHBOARD ============== */
.dash-wrap{perspective:1800px}
.dash-window{padding:18px;transform-style:preserve-3d}
.dash-toolbar{display:flex;align-items:center;gap:8px;padding:6px 10px 14px;border-bottom:1px solid var(--line);margin-bottom:18px;position:relative}
.dot{width:11px;height:11px;border-radius:50%}
.dot.r{background:#ff5f57}.dot.y{background:#febc2e}.dot.g{background:#28c840}
.dash-url{position:absolute;left:50%;top:50%;transform:translate(-50%,calc(-50% - 4px));font-size:12px;color:var(--ink-2);letter-spacing:.04em;background:#ffffff;padding:6px 14px;border-radius:999px;border:1px solid var(--line)}

.dash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;grid-auto-rows:minmax(140px,auto)}
.dash-card{padding:20px;border-radius:16px;display:flex;flex-direction:column;justify-content:space-between;background:rgba(255,255,255,0.32);-webkit-backdrop-filter:blur(40px) saturate(180%) brightness(1.08);backdrop-filter:blur(40px) saturate(180%) brightness(1.08);border:1px solid rgba(255,255,255,0.55);box-shadow:inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 1px rgba(205,205,205,0.4), 0 1px 2px rgba(75,75,75,.05), 0 12px 30px -14px rgba(75,75,75,.15)}
.dash-card.lg{grid-column:span 2;grid-row:span 2}
.dash-card.md{grid-column:span 2}
.dc-head{display:flex;justify-content:space-between;align-items:center;color:#555555;font-size:12.5px;letter-spacing:.03em;font-weight:600}
.dc-value{font-family:'Space Grotesk',sans-serif;font-size:36px;font-weight:700;letter-spacing:-.02em;margin-top:8px;color:#3a3a3a}
.dc-value.sm{font-size:26px}
.dc-value small{font-size:14px;color:var(--ink-3);font-weight:500}
.dc-chart{width:100%;height:100px;margin-top:12px}
.dc-line{stroke-dasharray:600;stroke-dashoffset:600;animation:drawLine 2.4s ease forwards .4s;stroke:var(--accent-deep)!important}
@keyframes drawLine{to{stroke-dashoffset:0}}
.dc-bar{width:100%;height:6px;background:var(--bg-2);border-radius:3px;overflow:hidden;margin-top:14px}
.dc-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-deep));border-radius:3px;animation:barFill 1.6s ease forwards}
@keyframes barFill{from{width:0!important}}
.badge{padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.02em}
.badge.up{background:rgba(62,212,168,.15);color:#1f8a64;border:1px solid rgba(62,212,168,.35)}
.badge.down{background:rgba(255,122,212,.15);color:#b54590;border:1px solid rgba(255,122,212,.35)}
.dc-list{list-style:none;display:flex;flex-direction:column;gap:10px;margin-top:12px;font-size:13px}
.dc-list li{display:flex;align-items:center;gap:10px;color:var(--ink-1)}
.li-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-deep);box-shadow:0 0 8px var(--accent)}
.spark{display:flex;align-items:flex-end;gap:5px;height:60px;margin-top:14px}
.spark span{flex:1;background:linear-gradient(180deg,var(--accent-deep),rgba(255,247,0,.3));border-radius:3px;height:var(--h);animation:sparkRise 1s ease forwards}
@keyframes sparkRise{from{height:0!important}}
.ring{position:relative;width:120px;height:120px;margin:6px auto 0}
.ring svg{width:100%;height:100%}
.ring-fg{stroke-dasharray:314;stroke-dashoffset:314;animation:ringFill 2s ease forwards .5s;stroke:var(--accent-deep)!important}
.ring svg>circle:first-child{stroke:var(--bg-2)!important}
@keyframes ringFill{to{stroke-dashoffset:60}}
.ring-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-label b{font-family:'Space Grotesk',sans-serif;font-size:28px;font-weight:700;color:var(--ink-0)}
.ring-label span{font-size:11px;color:var(--ink-2);letter-spacing:.1em}
.dc-note{font-size:12.5px;color:var(--ink-2);line-height:1.55;margin-top:10px}

@media(max-width:900px){.dash-grid{grid-template-columns:repeat(2,1fr)} .dash-card.lg,.dash-card.md{grid-column:span 2;grid-row:auto}}
@media(max-width:520px){.dash-grid{grid-template-columns:1fr} .dash-card.lg,.dash-card.md{grid-column:span 1}}

.tech-grid{grid-template-columns:repeat(4,1fr);grid-auto-rows:auto}
.tech-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tech-list span{padding:8px 10px;border-radius:10px;background:#fffbe8;border:1px solid rgba(230,216,0,.35);font-size:12px;color:#4b4b4b;font-weight:800}

@media(max-width:900px){.tech-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.tech-grid{grid-template-columns:1fr}}

/* ============== STORIES ============== */
.stories-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.story-card{padding:32px 28px;display:flex;flex-direction:column;gap:18px;position:relative;transition:transform .5s, border-color .4s, background .4s, box-shadow .4s}
.story-card:hover{transform:translateY(-8px);border-color:rgba(205,205,205,0.6);box-shadow:0 1px 2px rgba(75,75,75,.04), 0 18px 40px -14px rgba(75,75,75,.16), 0 40px 80px -22px rgba(75,75,75,.2)}
.story-card.featured{background:linear-gradient(180deg, rgba(255,247,0,.14), rgba(255,255,255,.85));border-color:rgba(230,216,0,0.35)}
.quote-mark{font-family:'Space Grotesk',sans-serif;font-size:72px;line-height:.6;color:transparent;background:linear-gradient(140deg, #FFF700, #e6d800);-webkit-background-clip:text;background-clip:text;opacity:.95}
.story-card p{font-size:15px;line-height:1.6;color:#3a3a3a;font-weight:500}
.story-card h3{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:20px;line-height:1.25;color:#3a3a3a}
.author{display:flex;align-items:center;gap:12px;margin-top:auto}
.avatar{width:44px;height:44px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #ffffff, 0 0 0 3.5px var(--accent), 0 6px 14px -4px rgba(255,247,0,.5)}
.author b{display:block;font-size:13.5px;font-weight:600;color:var(--ink-0)}
.author span{display:block;font-size:12px;color:var(--ink-2)}
.result{padding-top:18px;border-top:1px dashed rgba(205,205,205,0.9);display:flex;align-items:baseline;gap:10px}
.result b{font-family:'Space Grotesk',sans-serif;font-size:26px;font-weight:700;background:linear-gradient(140deg, #4b4b4b 0%, #4b4b4b 60%, #e6d800 100%);-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:-.02em}
.result span{font-size:12px;color:var(--ink-2);letter-spacing:.04em}

.logos{margin-top:64px;text-align:center}
.logos>span{display:block;font-size:11.5px;color:var(--ink-3);letter-spacing:.22em;text-transform:uppercase;margin-bottom:18px}
.logos-row{display:flex;flex-wrap:wrap;justify-content:center;gap:40px;font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:15px;letter-spacing:.18em;color:var(--ink-3)}
.logos-row span{transition:color .3s}
.logos-row span:hover{color:var(--ink-0)}

@media(max-width:900px){.stories-grid{grid-template-columns:1fr}}

.industry-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:34px}
.industry-grid span{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.58);border:1px solid rgba(205,205,205,.8);box-shadow:0 10px 22px -18px rgba(75,75,75,.3);font-size:13px;color:#4b4b4b;font-weight:700}

.portfolio-lang[hidden]{display:none!important}
.portfolio-catalog{display:grid;gap:22px}
.portfolio-tech{margin-top:0}
.industry-detail-grid,.process-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.industry-detail-grid article,.process-mini-grid article{padding:18px;border-radius:16px;background:rgba(255,255,255,.48);border:1px solid rgba(255,255,255,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 18px 38px -28px rgba(75,75,75,.28)}
.industry-detail-grid b,.process-mini-grid b{display:block;font-family:'Space Grotesk','Noto Sans Thai',sans-serif;color:#3a3a3a;font-size:15px;margin-bottom:7px}
.industry-detail-grid span,.process-mini-grid span{display:block;color:#5d5d5d;font-size:13px;line-height:1.6;font-weight:500}

@media(max-width:900px){.industry-detail-grid,.process-mini-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.industry-detail-grid,.process-mini-grid{grid-template-columns:1fr}}

.why-grid{grid-template-columns:repeat(5,1fr)}
.why-grid .auto-card{padding:24px 18px}
.why-grid .auto-card b{font-size:28px;color:var(--accent-deep)}
.why-grid .auto-card span{line-height:1.55}

@media(max-width:980px){.why-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.why-grid{grid-template-columns:1fr}}

/* ============== CONTACT ============== */
.contact{padding-bottom:140px}
.contact-card{padding:clamp(32px,5vw,64px);text-align:center;max-width:920px;margin:0 auto}
.contact-title{font-family:'Space Grotesk','Noto Sans Thai',sans-serif;font-size:clamp(34px,4.5vw,56px);line-height:1.05;letter-spacing:0;font-weight:700;margin:18px 0 18px;color:var(--ink-0)}
.contact-sub{color:var(--ink-2);max-width:520px;margin:0 auto 36px}
.contact-methods{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 24px;text-align:left}
.method{padding:18px;border-radius:14px;display:flex;flex-direction:column;gap:5px}
.method b{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-deep);font-family:'Space Grotesk',sans-serif}
.method span{font-size:13px;color:#4b4b4b;font-weight:700;line-height:1.45}
.contact-form{display:flex;flex-direction:column;gap:12px;text-align:left}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{padding:14px 18px;border-radius:12px;display:flex;flex-direction:column;gap:6px;transition:border-color .3s, box-shadow .3s;background:rgba(255,255,255,0.55);-webkit-backdrop-filter:blur(20px) saturate(170%);backdrop-filter:blur(20px) saturate(170%);border:1px solid rgba(255,255,255,0.6);box-shadow:inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 1px rgba(205,205,205,0.4), 0 1px 2px rgba(75,75,75,.04)}
.field:focus-within{border-color:var(--accent-deep);box-shadow:0 0 0 4px rgba(255,247,0,.25), 0 1px 2px rgba(75,75,75,.04)}
.field span{font-size:11px;letter-spacing:.12em;color:var(--ink-2);text-transform:uppercase;font-weight:600}
.field.full{grid-column:span 2}
.field select option{background:#ffffff;color:var(--ink-0)}
.contact-form .btn-primary{margin-top:14px;justify-content:center;width:100%}
.form-success{margin-top:14px;padding:14px;border-radius:12px;background:rgba(62,212,168,.12);border:1px solid rgba(62,212,168,.4);color:#1f8a64;text-align:center;font-size:14px;display:none;font-weight:600}
.form-success.show{display:block}
.faq-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:26px;text-align:left}
.faq-item{padding:18px;border-radius:14px}
.faq-item b{display:block;color:#3a3a3a;font-size:14px;margin-bottom:6px}
.faq-item span{display:block;color:#666;font-size:13px;line-height:1.6}
@media(max-width:900px){.contact-methods{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.form-row,.contact-methods,.faq-grid{grid-template-columns:1fr} .field.full{grid-column:span 1}}

/* ============== FOOTER ============== */
.footer{position:relative;z-index:10;padding:60px var(--pad) 30px;max-width:var(--max);margin:0 auto;border-top:1px solid var(--line)}
.footer-inner{display:grid;grid-template-columns:1.3fr 2fr;gap:40px;padding-bottom:40px}
.footer-brand img{height:28px;margin-bottom:14px}
.footer-brand p{font-size:13.5px;color:var(--ink-2);max-width:280px;line-height:1.6}
.footer-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.footer-cols b{display:block;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-deep);margin-bottom:14px;font-family:'Space Grotesk',sans-serif}
.footer-cols a{display:block;color:var(--ink-2);font-size:13.5px;padding:5px 0;transition:color .25s}
.footer-cols a:hover{color:var(--ink-0)}
.footer-bottom{display:flex;justify-content:space-between;padding-top:24px;border-top:1px solid var(--line);font-size:12px;color:var(--ink-3);letter-spacing:.04em;flex-wrap:wrap;gap:10px}
@media(max-width:760px){.footer-inner{grid-template-columns:1fr} .footer-cols{grid-template-columns:repeat(3,1fr)}}

/* ============== THEME + FONT NORMALIZATION ============== */
html[lang="en"] .section-eyebrow,
html[lang="en"] .stat-num,
html[lang="en"] .stat-plus,
html[lang="en"] .page-tab span,
html[lang="en"] .service-group-head>span,
html[lang="en"] .service-group-head h3,
html[lang="en"] .service-card h3,
html[lang="en"] .service-detail h4,
html[lang="en"] .service-detail b,
html[lang="en"] .eco-node text,
html[lang="en"] .eco-stat b,
html[lang="en"] .step-num,
html[lang="en"] .flow-step h4,
html[lang="en"] .auto-card b,
html[lang="en"] .dc-value,
html[lang="en"] .story-card h3,
html[lang="en"] .result b,
html[lang="en"] .contact-title,
html[lang="en"] .method b,
html[lang="en"] .footer-cols b{font-family:var(--font-heading-en)}

html[data-theme="night"] input::placeholder,
html[data-theme="night"] textarea::placeholder{color:rgba(240,244,248,0.45)}

.value-item b,
.service-card h3,
.service-group-head h3,
.service-detail h4,
.story-card h3,
.faq-item b,
.method span,
.contact-title,
.dc-value,
.ring-label b,
.flow-step h4{color:var(--surface-text)}

.value-item span,
.service-card p,
.service-detail p,
.flow-step p,
.story-card p,
.faq-item span,
.contact-sub,
.dc-note,
.footer-brand p,
.footer-cols a,
.section-sub,
.stat-label,
.auto-card span,
.eco-stat span,
.dc-head,
.dc-value small,
.dc-list li,
.ring-label span,
.result span{color:var(--body-text)}

.field,
.flow-step,
.dash-card,
.industry-detail-grid article,
.process-mini-grid article{
  background:linear-gradient(135deg, var(--glass) 0%, rgba(255,255,255,.04) 100%);
  border-color:var(--glass-edge);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 14px 32px -22px var(--shadow-soft);
}

html[data-theme="night"] .gradient-text{
  background:linear-gradient(120deg, #f7f8fb 0%, #fff700 42%, #9ea5ff 78%, #ffffff 100%);
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

html[data-theme="night"] .hero-sub{
  background:rgba(10,12,16,.28);
  color:var(--ink-1);
  box-shadow:0 22px 54px -34px rgba(0,0,0,.75);
}

html[data-theme="night"] .nav-toggle span{background:var(--ink-0)}
html[data-theme="night"] .mobile-open{
  background:rgba(12,14,18,0.72)!important;
  border-color:var(--line-2)!important;
  box-shadow:0 20px 50px -20px rgba(0,0,0,.75)!important;
}

/* ============== REVEAL ============== */
.reveal{opacity:0;transform:translateY(40px);transition:opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1)}
.reveal.in{opacity:1;transform:translateY(0)}

/* ============================================================
   NIGHT MODE — CARD VISIBILITY PATCH
   Cards must stand out from dark bg + text must stay punchy
   ============================================================ */
html[data-theme="night"] .glass,
html[data-theme="night"] .glass-strong{
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%),
    linear-gradient(180deg, rgba(28,32,40,0.55), rgba(18,22,28,0.65));
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,.5),
    0 22px 50px -18px rgba(0,0,0,.7),
    0 60px 120px -36px rgba(0,0,0,.7);
}

/* ----- Service cards ----- */
html[data-theme="night"] .service-card h3,
html[data-theme="night"] .service-group-head h3,
html[data-theme="night"] .service-detail h4,
html[data-theme="night"] .value-item b,
html[data-theme="night"] .flow-step h4,
html[data-theme="night"] .dc-value,
html[data-theme="night"] .story-card h3,
html[data-theme="night"] .industry-detail-grid b,
html[data-theme="night"] .process-mini-grid b,
html[data-theme="night"] .faq-item b{color:#f4f6f8}

html[data-theme="night"] .service-card p,
html[data-theme="night"] .service-group-head p,
html[data-theme="night"] .value-item span,
html[data-theme="night"] .flow-step p,
html[data-theme="night"] .auto-card span,
html[data-theme="night"] .dc-head,
html[data-theme="night"] .story-card p,
html[data-theme="night"] .method span,
html[data-theme="night"] .faq-item span,
html[data-theme="night"] .eco-stat span,
html[data-theme="night"] .industry-detail-grid span,
html[data-theme="night"] .process-mini-grid span{color:#c8cdd3;font-weight:500}

/* ----- Process / Industry / Method / FAQ cards — solid dark surface ----- */
html[data-theme="night"] .industry-detail-grid article,
html[data-theme="night"] .process-mini-grid article,
html[data-theme="night"] .method,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .value-item{
  background:linear-gradient(180deg, rgba(30,34,42,0.85), rgba(20,24,30,0.92));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 1px 2px rgba(0,0,0,.5),
    0 16px 38px -18px rgba(0,0,0,.6);
}
html[data-theme="night"] .industry-detail-grid article:hover,
html[data-theme="night"] .process-mini-grid article:hover,
html[data-theme="night"] .method:hover,
html[data-theme="night"] .faq-item:hover,
html[data-theme="night"] .value-item:hover{
  background:linear-gradient(180deg, rgba(38,42,52,0.92), rgba(24,28,36,0.96));
  border-color:rgba(255,247,0,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 1px 2px rgba(0,0,0,.5),
    0 22px 48px -16px rgba(255,247,0,.15),
    0 28px 60px -20px rgba(0,0,0,.65);
}

/* Method eyebrow stays gold-readable */
html[data-theme="night"] .method b{color:#FFF700}

/* ----- Pill / tag chips ----- */
html[data-theme="night"] .tag-row span,
html[data-theme="night"] .industry-grid span{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18);
  color:#e8ebef;
  box-shadow:0 8px 18px -14px rgba(0,0,0,.6);
}

/* ----- Service detail parent cards — solid dark surface ----- */
html[data-theme="night"] .service-detail{
  background:linear-gradient(180deg, rgba(30,34,42,0.85), rgba(20,24,30,0.92));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 1px 2px rgba(0,0,0,.5),
    0 16px 38px -18px rgba(0,0,0,.6);
}
html[data-theme="night"] .service-detail:hover{
  background:linear-gradient(180deg, rgba(38,42,52,0.92), rgba(24,28,36,0.96));
  border-color:rgba(255,247,0,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 1px 2px rgba(0,0,0,.5),
    0 22px 48px -16px rgba(255,247,0,.15),
    0 28px 60px -20px rgba(0,0,0,.65);
}
html[data-theme="night"] .service-detail h4{color:#f4f6f8}
html[data-theme="night"] .service-detail p{color:#c8cdd3;font-weight:500}
html[data-theme="night"] .service-detail b{color:#FFF700}

/* ----- Highlight chips: dark pill + bright gold text ----- */
html[data-theme="night"] .service-detail li,
html[data-theme="night"] .tech-list span{
  background:rgba(15,18,24,0.75);
  border:1px solid rgba(255,247,0,0.55);
  color:#FFF700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 12px -6px rgba(0,0,0,.6);
}
html[data-theme="night"] .service-detail li:hover,
html[data-theme="night"] .tech-list span:hover{
  background:linear-gradient(140deg, #FFF700, #e6d800);
  border-color:#FFF700;
  color:#1a1a1a;
  box-shadow:0 8px 20px -8px rgba(255,247,0,.65);
}

/* ----- Service group head circular badge — stays gold ----- */
html[data-theme="night"] .service-group-head>span{
  color:#1a1a1a;
  box-shadow:0 14px 30px -14px rgba(255,247,0,.55), inset 0 1px 0 rgba(255,255,255,.55);
}

/* ----- Dashboard / flow / auto cards: solid surface for readability ----- */
html[data-theme="night"] .flow-step,
html[data-theme="night"] .dash-card,
html[data-theme="night"] .auto-card{
  background:linear-gradient(180deg, rgba(30,34,42,0.72), rgba(18,22,28,0.78));
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 1px 2px rgba(0,0,0,.5),
    0 18px 40px -16px rgba(0,0,0,.65);
}
html[data-theme="night"] .flow-step:hover,
html[data-theme="night"] .dash-card:hover,
html[data-theme="night"] .auto-card:hover{
  background:linear-gradient(180deg, rgba(38,42,52,0.82), rgba(22,26,34,0.85));
  border-color:rgba(255,247,0,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 1px 2px rgba(0,0,0,.5),
    0 26px 56px -18px rgba(255,247,0,.18),
    0 30px 70px -20px rgba(0,0,0,.7);
}

/* ----- Auto-card big numbers ----- */
html[data-theme="night"] .auto-card b{color:#FFF700;text-shadow:0 0 24px rgba(255,247,0,.25)}

/* ----- Ring labels (NPS etc.) ----- */
html[data-theme="night"] .ring-label b{color:#f4f6f8}
html[data-theme="night"] .ring-label span{color:#aeb5bd}

/* ----- Form fields ----- */
html[data-theme="night"] .field{
  background:linear-gradient(180deg, rgba(30,34,42,0.7), rgba(18,22,28,0.75));
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.18);
}
html[data-theme="night"] .field span{color:#aeb5bd}
html[data-theme="night"] .field input,
html[data-theme="night"] .field select,
html[data-theme="night"] .field textarea{color:#f4f6f8}
html[data-theme="night"] .field:focus-within{
  border-color:rgba(255,247,0,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 4px rgba(255,247,0,.18);
}
html[data-theme="night"] .field select option{background:#1a1d23;color:#f4f6f8}

/* ----- Result accent (story-card +38%) keep gold visible ----- */
html[data-theme="night"] .result b{
  background:linear-gradient(140deg, #f4f6f8 0%, #f4f6f8 55%, #FFF700 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* ----- Story-card featured (highlight glow) ----- */
html[data-theme="night"] .story-card.featured{
  background:linear-gradient(180deg, rgba(255,247,0,0.10), rgba(18,22,28,0.72));
  border-color:rgba(255,247,0,0.4);
}

/* ----- Quote mark gold gradient (already CSS-cliped) keep glowing ----- */
html[data-theme="night"] .quote-mark{opacity:1;filter:drop-shadow(0 0 16px rgba(255,247,0,.25))}

/* ----- Avatar ring on dark bg ----- */
html[data-theme="night"] .avatar{
  box-shadow:0 0 0 2px #0f1218, 0 0 0 3.5px var(--accent), 0 6px 14px -4px rgba(255,247,0,.55);
}

/* ----- Service icon (yellow chip) — keep punchy on dark ----- */
html[data-theme="night"] .svc-icon{
  background:linear-gradient(140deg, #FFF700 0%, #e6d800 100%);
  border:1px solid rgba(255,247,0,.6);
  color:#1a1a1a;
  box-shadow:0 10px 26px -10px rgba(255,247,0,.6), inset 0 1px 0 rgba(255,255,255,.7);
}

/* ----- Step-num pill ----- */
html[data-theme="night"] .step-num{
  background:rgba(255,247,0,0.14);
  border:1px solid rgba(255,247,0,0.4);
  color:#FFF700;
}
html[data-theme="night"] .flow-step:hover .step-num{
  background:linear-gradient(140deg, #FFF700, #e6d800);
  color:#1a1a1a;
}

/* ----- Section eyebrow / dash-url / dash-toolbar ----- */
html[data-theme="night"] .dash-url{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.14);
  color:#c8cdd3;
}

/* ----- Ecosystem canvas overrides ----- */
html[data-theme="night"] .eco-svg .eco-lines{stroke:rgba(255,255,255,0.22)!important}
html[data-theme="night"] .eco-svg .eco-nodes text{fill:#f4f6f8!important}
html[data-theme="night"] .eco-svg .eco-nodes g circle:not([class]){
  fill:rgba(30,34,42,0.85);
  stroke:rgba(255,255,255,0.32);
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.5));
}
html[data-theme="night"] .eco-svg .eco-nodes g:hover circle:not([class]){
  fill:#FFF700;
  stroke:#FFF700;
  filter:drop-shadow(0 6px 18px rgba(255,247,0,.55));
}

/* ----- Form success message ----- */
html[data-theme="night"] .form-success{
  background:rgba(62,212,168,0.14);
  border:1px solid rgba(62,212,168,0.4);
  color:#7affd4;
}

/* ----- Nav (transparent → readable on dark) ----- */
html[data-theme="night"] .nav-links a{color:#d9dde2}
html[data-theme="night"] .nav-links a:hover{color:#FFF700;background:rgba(255,247,0,0.08)}

/* ============================================================
   THAI TYPOGRAPHY FIX — heading line-height + breathing room
   ============================================================ */
html[lang="th"] .contact-title,
html[lang="th"] .case-title,
html[lang="th"] .manifesto-title{
  line-height:1.42;
  padding-block:.1em;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
html[lang="th"] .service-group-head h3,
html[lang="th"] .story-card h3,
html[lang="th"] .service-card h3,
html[lang="th"] .flow-step h4,
html[lang="th"] .service-detail h4,
html[lang="th"] .value-item b,
html[lang="th"] .industry-detail-grid b,
html[lang="th"] .process-mini-grid b,
html[lang="th"] .faq-item b{
  line-height:1.4;
  padding-block:.05em;
  word-break:keep-all;
}
html[lang="th"] .hero-eyebrow,
html[lang="th"] .section-eyebrow{line-height:1.6;padding-block:.05em}
html[lang="th"] .service-card p,
html[lang="th"] .flow-step p,
html[lang="th"] .story-card p,
html[lang="th"] .service-group-head p,
html[lang="th"] .value-item span,
html[lang="th"] .auto-card span{line-height:1.75}

/* Disable GSAP section-title parallax overlap on Thai (smaller swing) */
html[lang="th"] .section-title,
html[lang="th"] .case-title,
html[lang="th"] .manifesto-title{will-change:auto}
html[lang="th"] .section-head,
html[lang="th"] .case-hero,
html[lang="th"] .manifesto-grid{padding-block:.5em}

/* ============================================================
   NIGHT MODE - Reference Clear Glass
   Final override: transparent surfaces like the Lovable reference
   ============================================================ */
html[data-theme="night"] .page-tabs,
html[data-theme="night"] .glass,
html[data-theme="night"] .glass-strong,
html[data-theme="night"] .glass-chip,
html[data-theme="night"] .glass-btn,
html[data-theme="night"] .hero-sub,
html[data-theme="night"] .stat,
html[data-theme="night"] .service-group,
html[data-theme="night"] .service-card,
html[data-theme="night"] .service-detail,
html[data-theme="night"] .story-card,
html[data-theme="night"] .auto-card,
html[data-theme="night"] .dash-card,
html[data-theme="night"] .flow-step,
html[data-theme="night"] .field,
html[data-theme="night"] .method,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .value-item,
html[data-theme="night"] .industry-detail-grid article,
html[data-theme="night"] .process-mini-grid article{
  background:
    linear-gradient(135deg, rgba(255,255,255,.024), rgba(255,255,255,.004) 62%, rgba(255,255,255,.014)),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.002)) !important;
  border-color:rgba(255,255,255,.09) !important;
  -webkit-backdrop-filter:blur(34px) saturate(156%) brightness(1.08) !important;
  backdrop-filter:blur(34px) saturate(156%) brightness(1.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(255,255,255,.032),
    0 1px 1px rgba(255,255,255,.03),
    0 16px 46px -34px rgba(0,0,0,.76) !important;
}

html[data-theme="night"] .nav{
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.014)),
    rgba(5,6,9,.38) !important;
  border-color:rgba(255,255,255,.12) !important;
  -webkit-backdrop-filter:blur(30px) saturate(150%) brightness(1.04) !important;
  backdrop-filter:blur(30px) saturate(150%) brightness(1.04) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 18px 48px -30px rgba(0,0,0,.7) !important;
}

html[data-theme="night"] .nav.scrolled{
  background:
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
    rgba(5,6,9,.46) !important;
}

html[data-theme="night"] .hero-sub{
  color:rgba(245,247,250,.9);
  background:
    linear-gradient(135deg, rgba(255,255,255,.026), rgba(255,255,255,.004)),
    rgba(8,9,12,.012) !important;
  box-shadow:
    inset 4px 0 0 var(--accent),
    inset 0 1px 0 rgba(255,255,255,.13),
    0 18px 44px -34px rgba(0,0,0,.74) !important;
}

html[data-theme="night"] .page-tabs{
  background:
    linear-gradient(135deg, rgba(255,255,255,.036), rgba(255,255,255,.006)),
    rgba(8,10,14,.05) !important;
}

html[data-theme="night"] .nav-cta,
html[data-theme="night"] .btn-primary{
  background:#fff700 !important;
  border-color:#fff700 !important;
  color:#2a2a2a !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 0 0 1px rgba(255,247,0,.18),
    0 14px 34px -14px rgba(255,247,0,.86) !important;
}

html[data-theme="night"] .service-card:hover,
html[data-theme="night"] .service-detail:hover,
html[data-theme="night"] .story-card:hover,
html[data-theme="night"] .auto-card:hover,
html[data-theme="night"] .dash-card:hover,
html[data-theme="night"] .flow-step:hover,
html[data-theme="night"] .method:hover,
html[data-theme="night"] .faq-item:hover,
html[data-theme="night"] .value-item:hover,
html[data-theme="night"] .industry-detail-grid article:hover,
html[data-theme="night"] .process-mini-grid article:hover{
  background:
    linear-gradient(135deg, rgba(255,255,255,.042), rgba(255,255,255,.008) 60%, rgba(255,247,0,.028)),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.004)) !important;
  border-color:rgba(255,247,0,.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(255,255,255,.045),
    0 22px 58px -32px rgba(0,0,0,.78),
    0 0 34px -24px rgba(255,247,0,.75) !important;
}

html[data-theme="night"] .service-detail li,
html[data-theme="night"] .tech-list span,
html[data-theme="night"] .tag-row span,
html[data-theme="night"] .industry-grid span,
html[data-theme="night"] .dash-url{
  background:rgba(255,255,255,.018) !important;
  border-color:rgba(255,255,255,.10) !important;
  -webkit-backdrop-filter:blur(18px) saturate(140%) !important;
  backdrop-filter:blur(18px) saturate(140%) !important;
  color:rgba(242,244,246,.88) !important;
}

html[data-theme="night"] .service-detail li:hover,
html[data-theme="night"] .tech-list span:hover{
  background:rgba(255,247,0,.92) !important;
  border-color:#fff700 !important;
  color:#101114 !important;
}

/* Ultra-clear card mode: no visible fill, only glass edge and blur */
html[data-theme="night"] .page-tabs,
html[data-theme="night"] .glass,
html[data-theme="night"] .glass-strong,
html[data-theme="night"] .glass-chip,
html[data-theme="night"] .glass-btn,
html[data-theme="night"] .hero-sub,
html[data-theme="night"] .stat,
html[data-theme="night"] .service-group,
html[data-theme="night"] .service-card,
html[data-theme="night"] .service-detail,
html[data-theme="night"] .story-card,
html[data-theme="night"] .auto-card,
html[data-theme="night"] .dash-card,
html[data-theme="night"] .flow-step,
html[data-theme="night"] .field,
html[data-theme="night"] .method,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .value-item,
html[data-theme="night"] .industry-detail-grid article,
html[data-theme="night"] .process-mini-grid article{
  background:transparent !important;
  border-color:rgba(255,255,255,.095) !important;
  -webkit-backdrop-filter:blur(22px) saturate(138%) brightness(1.04) !important;
  backdrop-filter:blur(22px) saturate(138%) brightness(1.04) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(255,255,255,.03),
    0 14px 42px -38px rgba(0,0,0,.78) !important;
}

html[data-theme="night"] .nav{
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.014)),
    rgba(5,6,9,.38) !important;
}

html[data-theme="night"] .hero-sub{
  text-shadow:0 1px 12px rgba(0,0,0,.42);
  box-shadow:
    inset 4px 0 0 var(--accent),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 14px 42px -38px rgba(0,0,0,.78) !important;
}

html[data-theme="night"] .stat::after{opacity:.2}

/* Edge-only glass cards: remove blurred panels so surfaces blend into the scene */
html[data-theme="night"] .page-tabs,
html[data-theme="night"] .hero-sub,
html[data-theme="night"] .stat,
html[data-theme="night"] .service-group,
html[data-theme="night"] .service-card,
html[data-theme="night"] .service-detail,
html[data-theme="night"] .story-card,
html[data-theme="night"] .auto-card,
html[data-theme="night"] .dash-card,
html[data-theme="night"] .flow-step,
html[data-theme="night"] .field,
html[data-theme="night"] .method,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .value-item,
html[data-theme="night"] .industry-detail-grid article,
html[data-theme="night"] .process-mini-grid article{
  background:transparent !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  border-color:rgba(255,255,255,.105) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(255,255,255,.035),
    0 0 0 1px rgba(255,255,255,.018) !important;
}

html[data-theme="night"] .hero-sub{
  text-shadow:0 1px 16px rgba(0,0,0,.62), 0 0 4px rgba(0,0,0,.48);
  box-shadow:
    inset 4px 0 0 var(--accent),
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 1px rgba(255,255,255,.018) !important;
}

html[data-theme="night"] .stat::after{opacity:.08}

html[data-theme="night"] .nav-cta,
html[data-theme="night"] .btn-primary{
  background:#fff700 !important;
  border-color:#fff700 !important;
  color:#2a2a2a !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 0 0 1px rgba(255,247,0,.2),
    0 16px 38px -13px rgba(255,247,0,.9) !important;
}

/* DAY MODE - Edge-only clear glass to match night mode transparency */
html[data-theme="day"] .page-tabs,
html[data-theme="day"] .hero-sub,
html[data-theme="day"] .stat,
html[data-theme="day"] .service-group,
html[data-theme="day"] .service-card,
html[data-theme="day"] .service-detail,
html[data-theme="day"] .story-card,
html[data-theme="day"] .auto-card,
html[data-theme="day"] .dash-card,
html[data-theme="day"] .flow-step,
html[data-theme="day"] .field,
html[data-theme="day"] .method,
html[data-theme="day"] .faq-item,
html[data-theme="day"] .value-item,
html[data-theme="day"] .industry-detail-grid article,
html[data-theme="day"] .process-mini-grid article{
  background:transparent !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  border-color:rgba(75,75,75,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -1px 0 rgba(75,75,75,.055),
    0 0 0 1px rgba(255,255,255,.24) !important;
}

html[data-theme="day"] .glass,
html[data-theme="day"] .glass-strong,
html[data-theme="day"] .glass-chip,
html[data-theme="day"] .glass-btn{
  background:transparent !important;
  border-color:rgba(75,75,75,.14) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -1px 0 rgba(75,75,75,.055),
    0 0 0 1px rgba(255,255,255,.24) !important;
}

html[data-theme="day"] .hero-sub{
  text-shadow:0 1px 12px rgba(255,255,255,.72), 0 0 4px rgba(255,255,255,.62);
  box-shadow:
    inset 4px 0 0 var(--accent-deep),
    inset 0 1px 0 rgba(255,255,255,.5),
    0 0 0 1px rgba(75,75,75,.035) !important;
}

html[data-theme="day"] .stat::after{opacity:.08}

html[data-theme="day"] .service-card:hover,
html[data-theme="day"] .service-detail:hover,
html[data-theme="day"] .story-card:hover,
html[data-theme="day"] .auto-card:hover,
html[data-theme="day"] .dash-card:hover,
html[data-theme="day"] .flow-step:hover,
html[data-theme="day"] .method:hover,
html[data-theme="day"] .faq-item:hover,
html[data-theme="day"] .value-item:hover,
html[data-theme="day"] .industry-detail-grid article:hover,
html[data-theme="day"] .process-mini-grid article:hover{
  background:rgba(255,255,255,.035) !important;
  border-color:rgba(75,75,75,.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -1px 0 rgba(75,75,75,.06),
    0 0 0 1px rgba(255,247,0,.12) !important;
}

html[data-theme="day"] .nav-cta,
html[data-theme="day"] .btn-primary{
  background:#fff700 !important;
  border-color:#fff700 !important;
  color:#3a3a3a !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 0 0 1px rgba(255,247,0,.22),
    0 16px 38px -14px rgba(255,247,0,.76) !important;
}

/* FINAL - All cards are clear glass in both themes */
html[data-theme] .page-tabs,
html[data-theme] .glass,
html[data-theme] .glass-strong,
html[data-theme] .glass-chip,
html[data-theme] .glass-btn,
html[data-theme] .hero-sub,
html[data-theme] .stat,
html[data-theme] .service-group,
html[data-theme] .service-card,
html[data-theme] .service-detail,
html[data-theme] .story-card,
html[data-theme] .auto-card,
html[data-theme] .dash-card,
html[data-theme] .flow-step,
html[data-theme] .field,
html[data-theme] .method,
html[data-theme] .faq-item,
html[data-theme] .value-item,
html[data-theme] .industry-detail-grid article,
html[data-theme] .process-mini-grid article{
  background:transparent !important;
  background-image:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
}

html[data-theme="day"] .page-tabs,
html[data-theme="day"] .glass,
html[data-theme="day"] .glass-strong,
html[data-theme="day"] .glass-chip,
html[data-theme="day"] .glass-btn,
html[data-theme="day"] .hero-sub,
html[data-theme="day"] .stat,
html[data-theme="day"] .service-group,
html[data-theme="day"] .service-card,
html[data-theme="day"] .service-detail,
html[data-theme="day"] .story-card,
html[data-theme="day"] .auto-card,
html[data-theme="day"] .dash-card,
html[data-theme="day"] .flow-step,
html[data-theme="day"] .field,
html[data-theme="day"] .method,
html[data-theme="day"] .faq-item,
html[data-theme="day"] .value-item,
html[data-theme="day"] .industry-detail-grid article,
html[data-theme="day"] .process-mini-grid article{
  border-color:rgba(75,75,75,.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -1px 0 rgba(75,75,75,.075),
    0 0 0 1px rgba(255,255,255,.35) !important;
}

html[data-theme="night"] .page-tabs,
html[data-theme="night"] .glass,
html[data-theme="night"] .glass-strong,
html[data-theme="night"] .glass-chip,
html[data-theme="night"] .glass-btn,
html[data-theme="night"] .hero-sub,
html[data-theme="night"] .stat,
html[data-theme="night"] .service-group,
html[data-theme="night"] .service-card,
html[data-theme="night"] .service-detail,
html[data-theme="night"] .story-card,
html[data-theme="night"] .auto-card,
html[data-theme="night"] .dash-card,
html[data-theme="night"] .flow-step,
html[data-theme="night"] .field,
html[data-theme="night"] .method,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .value-item,
html[data-theme="night"] .industry-detail-grid article,
html[data-theme="night"] .process-mini-grid article{
  border-color:rgba(255,255,255,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(255,255,255,.045),
    0 0 0 1px rgba(255,255,255,.025) !important;
}

html[data-theme] .service-card:hover,
html[data-theme] .service-detail:hover,
html[data-theme] .story-card:hover,
html[data-theme] .auto-card:hover,
html[data-theme] .dash-card:hover,
html[data-theme] .flow-step:hover,
html[data-theme] .method:hover,
html[data-theme] .faq-item:hover,
html[data-theme] .value-item:hover,
html[data-theme] .industry-detail-grid article:hover,
html[data-theme] .process-mini-grid article:hover{
  background:transparent !important;
  background-image:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

html[data-theme="day"] .service-card:hover,
html[data-theme="day"] .service-detail:hover,
html[data-theme="day"] .story-card:hover,
html[data-theme="day"] .auto-card:hover,
html[data-theme="day"] .dash-card:hover,
html[data-theme="day"] .flow-step:hover,
html[data-theme="day"] .method:hover,
html[data-theme="day"] .faq-item:hover,
html[data-theme="day"] .value-item:hover,
html[data-theme="day"] .industry-detail-grid article:hover,
html[data-theme="day"] .process-mini-grid article:hover{
  border-color:rgba(75,75,75,.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 0 -1px 0 rgba(75,75,75,.09),
    0 0 0 1px rgba(255,247,0,.18) !important;
}

html[data-theme="night"] .service-card:hover,
html[data-theme="night"] .service-detail:hover,
html[data-theme="night"] .story-card:hover,
html[data-theme="night"] .auto-card:hover,
html[data-theme="night"] .dash-card:hover,
html[data-theme="night"] .flow-step:hover,
html[data-theme="night"] .method:hover,
html[data-theme="night"] .faq-item:hover,
html[data-theme="night"] .value-item:hover,
html[data-theme="night"] .industry-detail-grid article:hover,
html[data-theme="night"] .process-mini-grid article:hover{
  border-color:rgba(255,247,0,.36) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(255,247,0,.16) !important;
}

html[data-theme] .hero-sub{
  box-shadow:
    inset 4px 0 0 var(--accent-deep),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
}

html[data-theme] .nav-cta,
html[data-theme] .btn-primary{
  background:#fff700 !important;
  background-image:none !important;
  border-color:#fff700 !important;
  color:#2a2a2a !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 0 0 1px rgba(255,247,0,.22),
    0 16px 38px -14px rgba(255,247,0,.82) !important;
}

/* Balanced glass: preserve the animated backdrop while keeping copy readable */
html[data-theme="night"] .glass,
html[data-theme="night"] .glass-strong,
html[data-theme="night"] .hero-sub,
html[data-theme="night"] .stat,
html[data-theme="night"] .service-group,
html[data-theme="night"] .service-card,
html[data-theme="night"] .service-detail,
html[data-theme="night"] .story-card,
html[data-theme="night"] .auto-card,
html[data-theme="night"] .dash-card,
html[data-theme="night"] .flow-step,
html[data-theme="night"] .field,
html[data-theme="night"] .method,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .value-item,
html[data-theme="night"] .industry-detail-grid article,
html[data-theme="night"] .process-mini-grid article{
  background:linear-gradient(135deg, rgba(12,15,19,.24), rgba(8,10,13,.14)) !important;
  background-image:linear-gradient(135deg, rgba(12,15,19,.24), rgba(8,10,13,.14)) !important;
  -webkit-backdrop-filter:blur(15px) saturate(122%) brightness(.92) !important;
  backdrop-filter:blur(15px) saturate(122%) brightness(.92) !important;
  border-color:rgba(255,255,255,.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.055),
    0 16px 38px -30px rgba(0,0,0,.72) !important;
}

html[data-theme="day"] .glass,
html[data-theme="day"] .glass-strong,
html[data-theme="day"] .hero-sub,
html[data-theme="day"] .stat,
html[data-theme="day"] .service-group,
html[data-theme="day"] .service-card,
html[data-theme="day"] .service-detail,
html[data-theme="day"] .story-card,
html[data-theme="day"] .auto-card,
html[data-theme="day"] .dash-card,
html[data-theme="day"] .flow-step,
html[data-theme="day"] .field,
html[data-theme="day"] .method,
html[data-theme="day"] .faq-item,
html[data-theme="day"] .value-item,
html[data-theme="day"] .industry-detail-grid article,
html[data-theme="day"] .process-mini-grid article{
  background:linear-gradient(135deg, rgba(255,255,255,.32), rgba(245,248,250,.17)) !important;
  background-image:linear-gradient(135deg, rgba(255,255,255,.32), rgba(245,248,250,.17)) !important;
  -webkit-backdrop-filter:blur(14px) saturate(118%) brightness(1.04) !important;
  backdrop-filter:blur(14px) saturate(118%) brightness(1.04) !important;
  border-color:rgba(255,255,255,.66) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 -1px 0 rgba(75,75,75,.075),
    0 16px 38px -32px rgba(75,75,75,.3) !important;
}

html[data-theme="night"] .service-card:hover,
html[data-theme="night"] .service-detail:hover,
html[data-theme="night"] .story-card:hover,
html[data-theme="night"] .auto-card:hover,
html[data-theme="night"] .dash-card:hover,
html[data-theme="night"] .flow-step:hover,
html[data-theme="night"] .method:hover,
html[data-theme="night"] .faq-item:hover,
html[data-theme="night"] .value-item:hover{
  background:linear-gradient(135deg, rgba(22,26,32,.3), rgba(10,12,16,.18)) !important;
  background-image:linear-gradient(135deg, rgba(22,26,32,.3), rgba(10,12,16,.18)) !important;
}

html[data-theme="day"] .service-card:hover,
html[data-theme="day"] .service-detail:hover,
html[data-theme="day"] .story-card:hover,
html[data-theme="day"] .auto-card:hover,
html[data-theme="day"] .dash-card:hover,
html[data-theme="day"] .flow-step:hover,
html[data-theme="day"] .method:hover,
html[data-theme="day"] .faq-item:hover,
html[data-theme="day"] .value-item:hover{
  background:linear-gradient(135deg, rgba(255,255,255,.42), rgba(246,249,250,.22)) !important;
  background-image:linear-gradient(135deg, rgba(255,255,255,.42), rgba(246,249,250,.22)) !important;
}

html[data-theme] .hero-sub{
  box-shadow:
    inset 4px 0 0 var(--accent-deep),
    inset 0 1px 0 rgba(255,255,255,.24),
    0 16px 38px -30px var(--shadow-soft) !important;
}

/* Final theme accent colors */
html[data-theme="night"]{
  --accent:#fff777;
  --accent-soft:#fff9a8;
  --accent-deep:#fff777;
}

html[data-theme="night"] .gradient-text,
html[data-theme="night"] .page-tab span,
html[data-theme="night"] .section-eyebrow,
html[data-theme="night"] .stat-plus,
html[data-theme="night"] .mode-kicker,
html[data-theme="night"] .service-detail b,
html[data-theme="night"] .why-grid .auto-card b,
html[data-theme="night"] .method b,
html[data-theme="night"] .footer-cols b,
html[data-theme="night"] .nav-links a:hover{
  color:#fff777 !important;
  -webkit-text-fill-color:#fff777 !important;
}

html[data-theme="night"] .gradient-text{
  background:none !important;
  background-image:none !important;
}

html[data-theme="night"] .nav-cta,
html[data-theme="night"] .btn-primary,
html[data-theme="night"] .lang-switch button.active,
html[data-theme="night"] .theme-switch:hover,
html[data-theme="night"] .service-group-head>span,
html[data-theme="night"] .service-card:hover .svc-icon,
html[data-theme="night"] .service-card.featured .svc-icon,
html[data-theme="night"] .flow-step:hover .step-num{
  background:#fff777 !important;
  background-image:none !important;
  border-color:#fff777 !important;
}

html[data-theme="day"] .gradient-text,
html[data-theme="day"] .page-tab span,
html[data-theme="day"] .section-eyebrow,
html[data-theme="day"] .stat-plus,
html[data-theme="day"] .mode-kicker,
html[data-theme="day"] .service-detail b,
html[data-theme="day"] .why-grid .auto-card b,
html[data-theme="day"] .method b,
html[data-theme="day"] .footer-cols b{
  color:#4b4b4b !important;
  -webkit-text-fill-color:#4b4b4b !important;
}

html[data-theme="day"] .gradient-text{
  background:none !important;
  background-image:none !important;
}

html[data-theme="day"] .nav-cta,
html[data-theme="day"] .btn-primary,
html[data-theme="day"] .lang-switch button.active,
html[data-theme="day"] .theme-switch:hover,
html[data-theme="day"] .service-group-head>span,
html[data-theme="day"] .service-card:hover .svc-icon,
html[data-theme="day"] .service-card.featured .svc-icon,
html[data-theme="day"] .flow-step:hover .step-num{
  background:#fff777 !important;
  background-image:none !important;
  border-color:#fff777 !important;
  color:#2a2a2a !important;
}

/* Keep typography consistent across every component and SVG label. */
html[lang="en"] body,
html[lang="en"] body *{
  font-family:var(--font-body-en) !important;
}

html[lang="th"] body,
html[lang="th"] body *{
  font-family:var(--font-body-th) !important;
}

/* ============================================================
   DOCUMENT-SOURCED PAGE CONTENT
   ============================================================ */
.page-lang[hidden]{display:none !important}
.doc-page-section,
.document-home{
  min-height:auto;
  padding-top:clamp(130px,12vw,180px);
  padding-bottom:clamp(90px,10vw,150px);
}
.document-home{
  display:block;
}
.hero-copy,
.page-lang,
.doc-page-intro,
.doc-page-body,
.home-document-content{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}
.hero-copy{
  min-height:clamp(620px,82vh,820px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  position:relative;
  z-index:2;
}
.hero-copy .hero-title{
  max-width:980px;
}
.hero-copy .hero-sub{
  max-width:760px;
}
.home-document-content,
.doc-page-body{
  display:grid;
  gap:clamp(80px,9vw,130px);
}
.doc-page-intro{
  min-height:clamp(430px,62vh,650px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  position:relative;
  z-index:2;
  margin-bottom:clamp(70px,9vw,120px);
}
.doc-page-intro .section-title{
  max-width:980px;
  margin-bottom:24px;
}
.doc-lead{
  max-width:840px;
  display:grid;
  gap:14px;
  color:var(--ink-1);
  font-size:clamp(16px,1.45vw,19px);
  line-height:1.75;
}
.doc-content-group{
  width:100%;
}
.doc-group-heading{
  max-width:900px;
  margin-bottom:32px;
}
.doc-group-heading h2,
.contact-closing h2{
  color:var(--ink-0);
  font-size:clamp(30px,4.2vw,54px);
  line-height:1.12;
  font-weight:600;
  letter-spacing:0;
  margin-bottom:16px;
}
.doc-group-heading .doc-copy{
  max-width:760px;
}
.doc-copy{
  display:grid;
  gap:10px;
  color:var(--ink-2);
  font-size:15.5px;
  line-height:1.72;
}
.doc-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.doc-card-grid:has(> :only-child){
  grid-template-columns:1fr;
}
.doc-card{
  padding:clamp(24px,3vw,38px);
  border-radius:var(--radius);
  color:var(--ink-0);
  min-width:0;
}
.doc-card h3{
  color:var(--ink-0);
  font-size:clamp(20px,2vw,28px);
  line-height:1.25;
  font-weight:650;
  margin-bottom:14px;
}
.doc-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}
.doc-detail{
  min-width:0;
  padding-top:18px;
  border-top:1px solid var(--line-2);
}
.doc-detail h4{
  color:var(--ink-0);
  font-size:17px;
  line-height:1.35;
  margin-bottom:10px;
}
.doc-list{
  list-style:none;
  display:grid;
  gap:9px;
  margin-top:14px;
}
.doc-list li{
  position:relative;
  padding-left:18px;
  color:var(--ink-2);
  line-height:1.55;
}
.doc-list li::before{
  content:'';
  position:absolute;
  left:0;
  top:.72em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 14px color-mix(in srgb,var(--accent) 65%,transparent);
}
.doc-contact-methods{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.doc-contact-methods .method{
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:7px;
}
.doc-contact-methods .method b{
  color:var(--ink-0);
  font-size:15px;
  text-transform:none;
  letter-spacing:0;
}
.doc-contact-methods .method span{
  display:block;
  color:var(--ink-2);
}
.doc-contact-form{
  margin-top:34px;
}
.doc-contact-form h3{
  color:var(--ink-0);
  font-size:clamp(22px,2.5vw,32px);
  margin-bottom:24px;
}
.doc-contact-form .field{
  background:var(--glass) !important;
}
.doc-contact-form select option{
  color:#202226;
  background:#fff;
}
.contact-closing{
  padding:clamp(36px,6vw,78px);
  text-align:center;
}
.contact-closing h2{
  max-width:900px;
  margin-inline:auto;
}
.contact-closing .doc-copy{
  max-width:780px;
  margin-inline:auto;
}
.footer-doc-links,
.footer-contact{
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  align-items:center;
}
.footer-contact{
  justify-content:flex-end;
  color:var(--ink-2);
}
.footer-brand img{
  width:180px;
  height:auto;
}
html[lang="th"] .doc-group-heading h2,
html[lang="th"] .contact-closing h2,
html[lang="th"] .doc-card h3,
html[lang="th"] .doc-detail h4{
  line-height:1.5;
}
html[lang="th"] .doc-copy,
html[lang="th"] .doc-lead,
html[lang="th"] .doc-list li{
  line-height:1.85;
}
@media (max-width:900px){
  .doc-card-grid,
  .doc-contact-methods{
    grid-template-columns:1fr;
  }
  .doc-detail-grid{
    grid-template-columns:1fr;
  }
  .footer-inner{
    align-items:flex-start;
  }
  .footer-contact{
    justify-content:flex-start;
  }
}

/* Jellyfish visual system */
:root{
  --accent:#dceeff;
  --accent-soft:#edf7ff;
  --accent-deep:#8dbce4;
  --accent-2:#d6b995;
  --accent-3:#a8d5ed;
  --line:rgba(93,137,174,.13);
  --line-2:rgba(112,157,194,.25);
  --glass-edge:rgba(205,230,248,.72);
}
html[data-theme="night"]{
  --accent:#dceeff;
  --accent-soft:#bcdcf5;
  --accent-deep:#9bcbed;
  --accent-2:#d8ba96;
  --accent-3:#a8d9ef;
  --line:rgba(191,222,244,.14);
  --line-2:rgba(201,231,250,.24);
  --glass-edge:rgba(204,232,250,.28);
}
#bg-gradient{
  background:
    radial-gradient(52% 46% at 64% 28%,rgba(175,215,243,.27),transparent 64%),
    radial-gradient(38% 34% at 28% 68%,rgba(218,188,153,.12),transparent 68%),
    linear-gradient(180deg,#ffffff,rgba(244,249,252,.97));
}
html[data-theme="night"] #bg-gradient{
  background:
    radial-gradient(56% 50% at 64% 24%,rgba(105,163,208,.18),transparent 66%),
    radial-gradient(44% 38% at 26% 72%,rgba(191,151,112,.09),transparent 68%),
    linear-gradient(180deg,#020509,#07101a);
}
html:not(.webgl-fallback) #bg-canvas{
  opacity:var(--mercury-opacity,.76)!important;
  filter:contrast(1.06) saturate(1.04);
}
html[data-theme="night"]:not(.webgl-fallback) #bg-canvas{
  opacity:var(--mercury-opacity,.86)!important;
  filter:contrast(1.08) brightness(.96) saturate(1.08);
}
.btn-primary,
.nav-cta,
.lang-switch button.active,
.service-card.featured .svc-icon,
.service-card:hover .svc-icon,
.service-group-head>span{
  background:linear-gradient(140deg,#f4fbff 0%,#cfe8fa 58%,#b5d7ef 100%)!important;
  border-color:rgba(139,190,228,.72)!important;
  color:#21384b!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 12px 30px -12px rgba(97,164,211,.72)!important;
}
.btn-primary:hover,
.nav-cta:hover{
  background:linear-gradient(140deg,#ffffff,#c8e4f7)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 18px 40px -12px rgba(103,174,221,.88)!important;
}
.gradient-text,
html[data-theme="night"] .gradient-text,
html[data-theme="night"] .hero-title .gradient-text{
  background:linear-gradient(120deg,var(--ink-0) 0%,#9ecbec 38%,#d7b995 70%,#edf8ff 100%)!important;
  background-size:200% 200%!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
html[data-theme="night"] .hero .hero-title,
html[data-theme="night"] .hero .hero-title .line{
  color:#e8f5ff!important;
  -webkit-text-fill-color:#e8f5ff!important;
}
.pulse-dot,
.flow-arrow::after,
.li-dot{
  background:#a8d7f4!important;
  box-shadow:0 0 14px rgba(153,207,242,.9)!important;
}
.field:focus-within{
  border-color:#91c5e9!important;
  box-shadow:0 0 0 4px rgba(151,201,235,.2),0 1px 2px rgba(75,75,75,.04)!important;
}
.page-tab:hover,
.page-tab.active{
  background:rgba(181,218,242,.24)!important;
}
.theme-switch:hover{
  border-color:rgba(148,198,232,.75)!important;
  background:#dceeff!important;
}
.service-card.featured,
.story-card.featured{
  background:linear-gradient(180deg,rgba(198,228,247,.2),rgba(255,255,255,.78))!important;
  border-color:rgba(146,197,231,.42)!important;
}
html[data-theme="night"] .service-card.featured,
html[data-theme="night"] .story-card.featured{
  background:linear-gradient(180deg,rgba(132,185,224,.13),rgba(12,21,31,.46))!important;
}
::selection{
  background:#b9dcf3;
  color:#162b3c;
}
@media(max-width:760px){
  html:not(.webgl-fallback) #bg-canvas{
    opacity:var(--mercury-opacity,.66)!important;
    filter:contrast(1.04) saturate(1.02);
  }
  html[data-theme="night"]:not(.webgl-fallback) #bg-canvas{
    opacity:var(--mercury-opacity,.76)!important;
  }
}
@media (max-width:640px){
  .hero-copy,
  .page-lang,
  .doc-page-intro,
  .doc-page-body,
  .home-document-content{
    width:min(100% - 28px,1180px);
  }
  .hero-copy{
    min-height:680px;
  }
  .doc-page-section,
  .document-home{
    padding-top:110px;
  }
  .doc-page-intro{
    min-height:440px;
  }
  .doc-card{
    padding:22px;
  }
}


/* ============================================================
   SPA TAB ROUTER — each page shows ONLY its own data
   ============================================================ */
.page-section{display:none}
.page-section.page-active{display:block;animation:pageFadeIn .45s cubic-bezier(.2,.8,.2,1)}
@keyframes pageFadeIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* Active nav link */
.nav-links a.is-active{color:var(--ink-0);background:rgba(255,247,0,.18);font-weight:650}
html[data-theme="night"] .nav-links a.is-active{color:#FFF700;background:rgba(255,247,0,.14)}
.footer-doc-links a.is-active{color:var(--accent-deep)}

/* ============================================================
   CARD POLISH — uniform layout + subtle backdrop blur
   ============================================================ */
.doc-card,
.doc-detail{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.doc-card-grid{
  align-items:stretch;
}
.doc-card-grid > .doc-card{
  height:100%;
}
.doc-content-group + .doc-content-group{
  margin-top:64px;
}
.doc-detail-grid{
  align-items:start;
}

/* Light mode: glass blur so cards lift gently from bg */
.doc-card{
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.58));
  -webkit-backdrop-filter:blur(22px) saturate(170%);
  backdrop-filter:blur(22px) saturate(170%);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 1px 2px rgba(75,75,75,.04),
    0 18px 38px -18px rgba(75,75,75,.22),
    0 40px 80px -36px rgba(75,75,75,.25);
}

/* Dark mode card surface */
html[data-theme="night"] .doc-card{
  background:linear-gradient(180deg, rgba(30,34,42,.78), rgba(18,22,28,.85));
  -webkit-backdrop-filter:blur(22px) saturate(170%);
  backdrop-filter:blur(22px) saturate(170%);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 1px 2px rgba(0,0,0,.5),
    0 22px 50px -18px rgba(0,0,0,.7),
    0 50px 110px -36px rgba(0,0,0,.55);
}
html[data-theme="night"] .doc-card:hover{
  border-color:rgba(255,247,0,.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 1px 2px rgba(0,0,0,.5),
    0 26px 56px -16px rgba(255,247,0,.18),
    0 30px 70px -20px rgba(0,0,0,.7);
}

/* Doc detail (nested inside cards) — clean separator */
.doc-detail{
  padding:16px 0 0;
  border-top:1px dashed rgba(75,75,75,.18);
}
html[data-theme="night"] .doc-detail{
  border-top-color:rgba(255,255,255,.10);
}
.doc-detail:first-child{
  border-top:0;
  padding-top:0;
}
.doc-detail h4{
  color:var(--ink-0);
  font-size:15px;
  font-weight:650;
  line-height:1.35;
  margin-bottom:6px;
}
html[data-theme="night"] .doc-detail h4{color:#f4f6f8}

/* Doc lists (short paragraphs -> clean checklist) */
.doc-list{
  list-style:none;
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  padding:0;
  margin:10px 0 0;
}
.doc-list li{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:9px 0;
  background:none;
  border:0;
  border-bottom:1px dashed rgba(75,75,75,.14);
  border-radius:0;
  font-size:13.5px;
  font-weight:500;
  color:#4b4b4b;
  line-height:1.5;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.doc-list li:last-child{border-bottom:0}
.doc-list li::before{
  content:'';
  position:static;
  flex:none;
  margin-top:3px;
  width:16px;
  height:16px;
  border-radius:5px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>") center/11px no-repeat,
    linear-gradient(140deg,#FFF700,#e6d800);
  box-shadow:0 4px 10px -4px rgba(230,216,0,.7);
}
html[data-theme="night"] .doc-list li{
  background:none;
  border:0;
  border-bottom:1px dashed rgba(255,255,255,.10);
  color:#d4d8dd;
}
html[data-theme="night"] .doc-list li:last-child{border-bottom:0}

/* Doc copy paragraphs */
.doc-copy p,
.doc-lead p{
  color:var(--ink-1);
  line-height:1.7;
  font-size:14.5px;
}
.doc-copy p + p,
.doc-lead p + p{margin-top:10px}
html[data-theme="night"] .doc-copy p,
html[data-theme="night"] .doc-lead p{color:#c8cdd3}

/* Group heading harmonized */
.doc-group-heading{margin-bottom:28px}
.doc-group-heading h2{
  font-size:clamp(24px,3vw,38px);
  line-height:1.25;
  margin-bottom:14px;
}
html[data-theme="night"] .doc-group-heading h2{color:#f4f6f8}

@media(max-width:900px){
  .doc-card-grid{grid-template-columns:1fr}
  .doc-detail-grid{grid-template-columns:1fr}
}

/* ============================================================
   PAGE SUBTITLE (under big H1)
   ============================================================ */
.doc-page-subtitle{
  font-size:clamp(17px,1.7vw,21px);
  line-height:1.45;
  color:var(--ink-1);
  font-weight:500;
  margin:-6px 0 18px;
  max-width:780px;
}
html[lang="th"] .doc-page-subtitle{line-height:1.6;padding-block:.05em}
html[data-theme="night"] .doc-page-subtitle{color:#d9dde2}

/* ============================================================
   TEAM SECTION (About page)
   ============================================================ */
.team-section{margin-top:64px}
.team-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.team-card{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:flex-start;
  border-radius:20px;
  text-align:left;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.team-card:hover{transform:translateY(-4px)}
.team-card b{
  font-family:'Space Grotesk','Noto Sans Thai',sans-serif;
  font-size:16px;
  font-weight:700;
  color:#3a3a3a;
  line-height:1.25;
}
.team-card span{
  font-size:13px;
  color:#5a5a5a;
  line-height:1.5;
  font-weight:500;
}
.team-avatar{
  width:64px;
  height:64px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:#1a1a1a;
  font-family:'Space Grotesk',sans-serif;
  font-weight:800;
  font-size:20px;
  letter-spacing:.04em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 14px 28px -14px rgba(75,75,75,.45);
}
.team-avatar span{color:#fff;mix-blend-mode:plus-lighter;font-weight:800;font-size:22px}
html[data-theme="night"] .team-card b{color:#f4f6f8}
html[data-theme="night"] .team-card span{color:#c8cdd3}
html[data-theme="night"] .team-card:hover{border-color:rgba(255,247,0,.4)}

@media(max-width:980px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.team-grid{grid-template-columns:1fr}}

/* ============================================================
   CONTACT — LINE QR Code inside method card
   ============================================================ */
.method-line{position:relative}
.line-qr{
  margin-top:14px;
  padding:10px;
  background:#ffffff;
  border-radius:14px;
  width:fit-content;
  box-shadow:0 12px 24px -12px rgba(75,75,75,.3), 0 0 0 1px rgba(75,75,75,.08);
}
.line-qr img{
  display:block;
  width:140px;
  height:140px;
  border-radius:8px;
}
html[data-theme="night"] .line-qr{
  background:#ffffff;
  box-shadow:0 14px 30px -10px rgba(0,0,0,.55), 0 0 0 1px rgba(255,247,0,.4);
}

/* ============================================================
   FOOTER — tagline + brand block
   ============================================================ */
/* ============================================================
   DOC LAYOUT POLISH — icons, numbered groups, tidy grids
   ============================================================ */

/* --- Group heading: numbered badge + text --- */
.doc-group-heading{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin-bottom:32px;
}
.doc-group-num{
  flex:none;
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(140deg,#FFF700,#e6d800);
  color:#1a1a1a;
  font-family:'Space Grotesk',sans-serif;
  font-size:17px;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 14px 30px -16px rgba(230,216,0,.9), inset 0 1px 0 rgba(255,255,255,.65);
}
.doc-group-text{min-width:0;flex:1}
.doc-group-text h2{margin-bottom:10px}
.doc-group-text .doc-copy{max-width:760px}

/* --- Card head: icon chip + title in one row --- */
.doc-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:4px;
}
.doc-card-head h3{margin-bottom:0!important;flex:1;min-width:0}
.card-icon{
  flex:none;
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(140deg,#fffde6 0%,#fff7a8 100%);
  border:1px solid rgba(230,216,0,.4);
  color:#6b6400;
  box-shadow:0 8px 18px -8px rgba(255,247,0,.5), inset 0 1px 0 rgba(255,255,255,.85);
}
.card-icon svg{width:22px;height:22px}
.doc-card:hover .card-icon{
  background:linear-gradient(140deg,#FFF700 0%,#e6d800 100%);
  color:#1a1a1a;
  transform:rotate(-4deg) scale(1.05);
  transition:transform .4s cubic-bezier(.2,.8,.2,1), background .35s, color .35s;
}
.card-icon{transition:transform .4s cubic-bezier(.2,.8,.2,1), background .35s, color .35s}
html[data-theme="night"] .card-icon{
  background:rgba(255,247,0,.12);
  border-color:rgba(255,247,0,.45);
  color:#FFF700;
}
html[data-theme="night"] .doc-card:hover .card-icon{
  background:linear-gradient(140deg,#FFF700,#e6d800);
  color:#1a1a1a;
}

/* --- 3-column grid option --- */
.doc-card-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1060px){.doc-card-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.doc-card-grid.cols-3{grid-template-columns:1fr}}

/* --- Detail rows: small icon + label --- */
.doc-detail h4{
  display:flex;
  align-items:center;
  gap:10px;
}
.doc-detail h4 > span:last-child{flex:1;min-width:0}
.detail-icon{
  flex:none;
  width:30px;
  height:30px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:rgba(255,247,0,.16);
  border:1px solid rgba(230,216,0,.35);
  color:#6b6400;
}
.detail-icon svg{width:16px;height:16px}
html[data-theme="night"] .detail-icon{
  background:rgba(255,247,0,.10);
  border-color:rgba(255,247,0,.4);
  color:#FFF700;
}

/* --- Contact method cards: icon on top --- */
.doc-contact-methods{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}
.method{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:24px;
  border-radius:18px;
  align-items:flex-start;
}
.method-icon{
  width:44px;
  height:44px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:linear-gradient(140deg,#FFF700,#e6d800);
  color:#1a1a1a;
  box-shadow:0 10px 22px -10px rgba(230,216,0,.85), inset 0 1px 0 rgba(255,255,255,.6);
  margin-bottom:6px;
}
.method-icon svg{width:21px;height:21px}
.method b{font-size:14.5px;font-weight:700}
.method span{font-size:13.5px;line-height:1.6}

/* --- FAQ: Q badge --- */
.faq-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.faq-item{
  padding:24px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.faq-item b{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.45;
}
.faq-q-mark{
  flex:none;
  width:26px;
  height:26px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:linear-gradient(140deg,#FFF700,#e6d800);
  color:#1a1a1a;
  font-family:'Space Grotesk',sans-serif;
  font-size:13px;
  font-weight:800;
}
.faq-item span{padding-left:36px;line-height:1.65}
@media(max-width:760px){.faq-grid{grid-template-columns:1fr}}

/* --- Contact form polish --- */
.doc-contact-form{
  padding:clamp(24px,3.5vw,40px);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.5));
  -webkit-backdrop-filter:blur(24px) saturate(170%);
  backdrop-filter:blur(24px) saturate(170%);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 24px 50px -24px rgba(75,75,75,.28);
}
.doc-contact-form h3{
  font-family:'Space Grotesk','Noto Sans Thai',sans-serif;
  font-size:20px;
  margin-bottom:20px;
}
html[data-theme="night"] .doc-contact-form{
  background:linear-gradient(180deg, rgba(30,34,42,.78), rgba(18,22,28,.85));
  border-color:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 24px 50px -20px rgba(0,0,0,.7);
}
html[data-theme="night"] .doc-contact-form h3{color:#f4f6f8}

/* --- Contact closing card --- */
.contact-closing{
  margin-top:64px;
  padding:clamp(28px,4vw,48px);
  border-radius:22px;
  text-align:center;
}
.contact-closing h2{
  font-family:'Space Grotesk','Noto Sans Thai',sans-serif;
  font-size:clamp(22px,2.8vw,32px);
  margin-bottom:14px;
}
.contact-closing .doc-copy{max-width:640px;margin:0 auto}
html[data-theme="night"] .contact-closing h2{color:#f4f6f8}

/* --- Page intro: glass hero panel --- */
.doc-page-intro{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  width:min(100%, 920px);
  margin-left:auto;
  margin-right:auto;
  padding:clamp(36px,5vw,64px) clamp(24px,4vw,56px);
  border-radius:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42));
  -webkit-backdrop-filter:blur(34px) saturate(175%);
  backdrop-filter:blur(34px) saturate(175%);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(75,75,75,.05),
    0 30px 70px -28px rgba(75,75,75,.3);
}
.doc-page-intro::before{
  content:'';
  display:block;
  width:46px;
  height:4px;
  border-radius:99px;
  background:linear-gradient(90deg,#FFF700,#e6d800);
  margin-bottom:16px;
  box-shadow:0 4px 14px -2px rgba(230,216,0,.8);
}
html[data-theme="night"] .doc-page-intro{
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  -webkit-backdrop-filter:blur(26px) saturate(160%) brightness(1.06);
  backdrop-filter:blur(26px) saturate(160%) brightness(1.06);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 1px 2px rgba(0,0,0,.4),
    0 30px 70px -30px rgba(0,0,0,.6);
}
.doc-page-intro .doc-lead{max-width:720px}
.doc-page-intro .doc-lead p{font-size:15.5px}

/* --- Mobile: group heading stacks --- */
@media(max-width:640px){
  .doc-group-heading{gap:14px}
  .doc-group-num{width:42px;height:42px;border-radius:13px;font-size:14px}
  .doc-card-head{gap:12px}
  .card-icon{width:40px;height:40px;border-radius:12px}
}

/* ============================================================
   FOOTER — tagline + brand block
   ============================================================ */
.footer-brand-block{display:flex;flex-direction:column;gap:12px}
.footer-tagline{
  font-size:13.5px;
  line-height:1.65;
  color:var(--ink-2);
  max-width:320px;
  margin:0;
}
html[lang="th"] .footer-tagline{line-height:1.75}
html[data-theme="night"] .footer-tagline{color:#aeb5bd}
/* Nav must stay readable above scrolling chips */
.nav{background:var(--nav-bg, rgba(255,255,255,.55))}
html[data-theme="night"] .nav{background:rgba(10,12,16,.62)}

/* ============================================================
   CONTENT LAYOUT REFINEMENTS
   ============================================================ */
#services .doc-card-grid.cols-3,
#portfolio .doc-card-grid.cols-3{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#services .doc-card-head h3,
#portfolio .doc-card-head h3{
  white-space:nowrap;
  font-size:16px;
  line-height:1.25;
}
.standalone-doc-card{
  display:flex;
  align-items:flex-start;
  gap:20px;
  width:100%;
}
.standalone-doc-card .doc-group-num{
  margin-top:2px;
}
.standalone-card-content{
  flex:1;
  min-width:0;
}
.standalone-card-content .doc-card-head{
  margin-bottom:14px;
}
.standalone-card-content .doc-card-head h2{
  margin:0;
  color:var(--ink-0);
  font-size:clamp(24px,3vw,38px);
  line-height:1.2;
  font-weight:650;
}
.doc-contact-methods{
  grid-template-columns:repeat(5,minmax(0,1fr));
  padding:clamp(22px,3vw,34px);
  gap:0;
  border-radius:var(--radius);
}
.doc-contact-methods .method{
  min-height:180px;
  padding:18px 22px;
  border-radius:0;
  border-right:1px solid var(--line-2);
  background:transparent !important;
  box-shadow:none !important;
}
.doc-contact-methods .method:last-child{
  border-right:0;
}
.doc-contact-methods .method-line{
  min-width:0;
}
.doc-contact-methods .line-qr{
  width:96px;
  height:96px;
  margin-top:8px;
}
.doc-contact-methods .line-qr img{
  width:100%;
  height:100%;
}
html[data-theme="day"] .doc-contact-methods{
  background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(245,248,250,.18)) !important;
  border:1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
  backdrop-filter:blur(18px) saturate(130%);
}
html[data-theme="night"] .doc-contact-methods{
  background:linear-gradient(135deg,rgba(22,26,32,.36),rgba(10,12,16,.2)) !important;
  border:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
  backdrop-filter:blur(18px) saturate(130%);
}
@media(max-width:1060px){
  #services .doc-card-grid.cols-3,
  #portfolio .doc-card-grid.cols-3{
    grid-template-columns:1fr;
  }
  .doc-contact-methods{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .doc-contact-methods .method{
    border-right:0;
    border-bottom:1px solid var(--line-2);
  }
  .doc-contact-methods .method:nth-last-child(-n+2){
    border-bottom:0;
  }
}

/* Premium mercury scene: restore the Three.js layer hidden by legacy reference CSS. */
#bg-canvas{
  display:block !important;
  opacity:.52 !important;
  filter:contrast(1.12) saturate(.82);
  transition:opacity .5s ease,filter .5s ease;
}
#bg-gradient{
  display:block !important;
  opacity:.72;
}
#bg-grid{
  display:block !important;
  opacity:.06;
}
html[data-theme="night"] #bg-canvas{
  opacity:.68 !important;
  filter:contrast(1.16) brightness(.92) saturate(.76);
}
html[data-theme="night"] #bg-gradient{
  opacity:.58;
}
html.webgl-fallback #bg-canvas{
  display:none !important;
}
@media(max-width:760px){
  #bg-canvas{
    opacity:.38 !important;
    filter:contrast(1.06) saturate(.76);
  }
  html[data-theme="night"] #bg-canvas{
    opacity:.48 !important;
  }
}

/* ============================================================
   EXACT REFERENCE GEOMETRY - chrome-visionary-craft
   ============================================================ */
:root{
  --vision-width:1152px;
}
#bg-canvas,
#bg-gradient,
#bg-grid,
#cursor-glow{
  display:none !important;
}
body{
  color:#111214;
  background:#f7f8f9 !important;
}
html[data-theme="night"] body{
  color:#f8f8f8;
  background:#050505 !important;
}
.glass,
.doc-card,
.reference-lead-card,
.reference-cta,
.contact-project-card,
.contact-info-card,
.contact-hours-card,
.contact-map-card,
.faq-item,
.contact-closing{
  background:rgba(255,255,255,.72) !important;
  border:1px solid rgba(15,18,22,.1) !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:blur(12px) !important;
  backdrop-filter:blur(12px) !important;
}
html[data-theme="night"] .glass,
html[data-theme="night"] .doc-card,
html[data-theme="night"] .reference-lead-card,
html[data-theme="night"] .reference-cta,
html[data-theme="night"] .contact-project-card,
html[data-theme="night"] .contact-info-card,
html[data-theme="night"] .contact-hours-card,
html[data-theme="night"] .contact-map-card,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .contact-closing{
  background:rgba(255,255,255,.035) !important;
  border-color:rgba(255,255,255,.11) !important;
}
.nav{
  top:14px;
  width:min(1280px,calc(100% - 32px));
  min-height:54px;
  padding:6px 10px 6px 18px;
  background:rgba(255,255,255,.76) !important;
  border:1px solid rgba(15,18,22,.1) !important;
  box-shadow:none !important;
}
html[data-theme="night"] .nav{
  background:rgba(5,5,5,.82) !important;
  border-color:rgba(255,255,255,.12) !important;
}
.nav-brand img{max-width:116px}
.nav-brand{
  flex:none;
  display:flex;
  align-items:center;
}
.nav-brand img{
  display:block;
  width:auto !important;
  height:22px !important;
  max-width:none !important;
  object-fit:contain;
  object-position:left center;
  aspect-ratio:805 / 130;
}
.footer-brand{
  display:inline-flex;
  align-items:center;
  width:max-content;
}
.footer-brand img{
  display:block;
  width:auto !important;
  height:26px !important;
  max-width:none !important;
  margin:0 !important;
  object-fit:contain;
  object-position:left center;
  aspect-ratio:805 / 130;
}
.nav-links a{font-size:12px;padding:8px 13px}
.nav-cta{min-height:38px;font-size:12px}
.document-home,
.doc-page-section{
  padding-top:0;
  padding-bottom:0;
}
.hero-copy,
.page-lang,
.doc-page-intro,
.doc-page-body,
.home-document-content{
  width:min(var(--vision-width),calc(100% - 32px));
}
.hero-copy{
  min-height:600px;
  padding-top:192px;
  justify-content:flex-start;
}
.hero-copy .hero-title{
  max-width:780px;
  font-size:clamp(64px,7vw,88px);
  line-height:.98;
}
.hero-copy .hero-title .line:first-child{
  color:#17181a !important;
  -webkit-text-fill-color:#17181a !important;
}
html[data-theme="night"] .hero-copy .hero-title .line:first-child{
  color:#f8f8f8 !important;
  -webkit-text-fill-color:#f8f8f8 !important;
}
.hero-copy .hero-title .line:nth-child(2){
  color:#fff777 !important;
  -webkit-text-fill-color:#fff777 !important;
  background:none !important;
}
.hero-copy .hero-sub{
  max-width:580px;
  margin-top:24px;
}
.home-document-content{
  gap:128px;
  padding-bottom:128px;
}
.hero-cta .btn-primary{
  opacity:1 !important;
  color:#17181a !important;
  background:#fff777 !important;
  border-color:#fff777 !important;
  box-shadow:0 12px 30px -12px rgba(255,247,0,.8) !important;
}
.doc-page-intro{
  min-height:478px;
  padding:176px 0 0;
  margin-bottom:0;
  justify-content:flex-start;
}
.doc-page-intro .section-title{
  max-width:930px;
  font-size:clamp(52px,5.5vw,74px);
  line-height:1.03;
}
.doc-page-intro .doc-lead{
  max-width:680px;
}
.doc-page-body{
  gap:96px;
  padding-bottom:96px;
}
.reference-lead-card{
  min-height:102px;
  display:flex;
  align-items:center;
  padding:24px;
  border-radius:24px;
  color:var(--ink-1);
  font-size:15px;
  line-height:1.65;
}
.doc-content-group{
  margin:0 !important;
}
.doc-group-heading{
  margin-bottom:40px;
}
.doc-group-num{
  padding-top:0;
  font-size:28px;
  line-height:1;
}
.doc-group-heading h2,
.portfolio-solutions > h2,
.contact-map-section > h2{
  font-size:clamp(40px,4vw,52px);
  line-height:1.08;
}
.doc-group-kicker,
.section-eyebrow{
  padding:6px 12px;
  border:1px solid rgba(127,127,127,.25);
  border-radius:999px;
}
.section-eyebrow i{
  width:6px;
  height:6px;
  margin-right:8px;
  border-radius:50%;
  background:#fff700;
  box-shadow:0 0 10px #fff700;
}
.doc-card-grid,
.doc-card-grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.doc-card{
  padding:24px;
  border-radius:24px;
}
.doc-card-head{
  gap:16px;
}
.doc-card-head h3{
  font-size:17px;
}
.card-icon{
  width:44px;
  height:44px;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  line-height:0;
}
.card-icon svg,
.industry-icon svg,
.contact-info-icon svg,
.detail-icon svg{
  display:block;
  margin:auto;
  transform:none !important;
}

/* Home: exact six-section composition. */
#hero .doc-card-grid,
#hero .doc-card-grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#hero .doc-group-1 .doc-card{
  min-height:218px;
}
#hero .industry-pill-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
#hero .industry-pill{
  min-height:62px;
}
#hero .doc-group-3{
  grid-template-columns:1fr 1fr;
  gap:40px;
}
#hero .doc-group-3 .doc-card{
  min-height:210px;
}
#hero .doc-group-4 .doc-card{
  min-height:176px;
}
#hero .editorial-callout .standalone-doc-card{
  min-height:460px;
  border-radius:28px;
}

/* About: hero + two intro cards + three grids + CTA. */
.about-reference-body{gap:96px}
.about-page-intro .section-title span{
  color:#fff777;
}
.about-intro-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.about-intro-grid .doc-card{
  min-height:182px;
}
.about-section{
  display:grid;
  gap:16px;
}
.about-section > h2{
  max-width:900px;
  margin:0 0 24px;
  color:var(--ink-0);
  font-size:clamp(40px,4vw,52px);
  line-height:1.08;
}
.about-why-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.about-why-grid .doc-card{
  min-height:200px;
  align-items:flex-start;
}
.about-why-grid .card-icon,
.about-industry-grid .card-icon{
  color:#d8ce00 !important;
  background:linear-gradient(180deg,#ffffff 0%,#d9dde1 100%) !important;
  border-color:rgba(255,255,255,.88) !important;
  box-shadow:inset 0 1px 0 #fff,0 8px 18px -12px rgba(255,255,255,.72) !important;
}

/* Contact icons: lock the glyph to the exact optical center. */
.contact-info-row,
.contact-hours-content{
  grid-template-columns:48px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:16px !important;
}
.contact-info-icon{
  position:relative !important;
  width:48px !important;
  min-width:48px !important;
  height:48px !important;
  min-height:48px !important;
  padding:0 !important;
  margin:0 !important;
  align-self:center !important;
  justify-self:center !important;
  display:block !important;
  border-radius:50% !important;
  line-height:0 !important;
  overflow:hidden;
}
.contact-info-icon svg{
  position:absolute !important;
  inset:50% auto auto 50% !important;
  display:block !important;
  width:20px !important;
  height:20px !important;
  margin:0 !important;
  transform:translate(-50%,-50%) !important;
  transform-origin:center !important;
  overflow:visible;
}
.about-why-grid .doc-card h3,
.about-industry-grid .doc-card h3,
.about-team-grid .doc-card h3{
  margin:0;
  color:var(--ink-0);
  font-size:16px;
  line-height:1.3;
}
.about-industry-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.about-industry-grid .doc-card{
  min-height:136px;
  align-items:flex-start;
  justify-content:center;
}
.about-team-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.team-reference-card{
  min-height:180px;
  align-items:center !important;
  justify-content:center;
  text-align:center;
}
.team-reference-avatar{
  width:132px;
  height:132px;
  display:block;
  object-fit:cover;
  object-position:center 25%;
  border-radius:50%;
  background:linear-gradient(180deg,#fff,#b8bcc1);
  border:1px solid var(--vision-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 18px 36px -24px rgba(0,0,0,.55);
}
.team-reference-avatar-2{
  object-position:center 30%;
}
.team-reference-avatar-3{
  object-position:center 24%;
}
.team-reference-card .doc-copy{
  text-align:center;
}
.reference-cta{
  min-height:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:48px;
  border-radius:28px;
  text-align:center;
}
.reference-cta h2{
  max-width:760px;
  color:var(--ink-0);
  font-size:clamp(36px,4vw,52px);
  line-height:1.08;
}
.reference-cta p{
  max-width:640px;
  color:var(--ink-1);
  line-height:1.65;
}
.reference-cta > div{
  display:flex;
  gap:10px;
}

/* Services: four numbered groups, 10 wide cards, custom + CTA. */
.services-reference-body{
  gap:96px;
}
#services .doc-card-grid,
#services .doc-card-grid.cols-3{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
#services .doc-card{
  min-height:400px;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  padding:32px;
  border-radius:24px;
}
#services .doc-card-head h3{
  font-size:28px !important;
  line-height:1.12;
}
#services .doc-detail-grid{
  min-height:260px;
  padding:24px;
  border-radius:18px;
}
#services .standalone-doc-card{
  min-height:414px;
  padding:48px;
}

/* Portfolio: exactly 11 cards in a 3-column grid and one CTA. */
.portfolio-reference-body{
  gap:64px;
}
.portfolio-solutions > .doc-group-kicker{
  margin-bottom:16px;
}
.portfolio-solutions > h2{
  margin-bottom:40px;
}
.portfolio-reference-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.portfolio-reference-grid .doc-card{
  min-height:440px;
}
.portfolio-reference-grid .doc-list{
  margin-top:auto;
}

/* Contact: exact five-section stack. */
#contact .doc-page-intro{
  min-height:378px;
}
#contact .doc-page-body{
  gap:96px;
}
.contact-layout{
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:24px;
}
.contact-project-card{
  min-height:602px;
  padding:36px;
}
.contact-side{
  gap:16px;
}
.contact-info-card{
  min-height:315px;
}
.contact-hours-card{
  min-height:175px;
}
.contact-map-section{
  display:grid;
  gap:16px;
}
.contact-map-card{
  min-height:460px;
  display:flex;
  align-items:flex-end;
  padding:28px;
  border-radius:28px;
  overflow:hidden;
  background:
    linear-gradient(135deg,transparent 35%,rgba(255,247,0,.08)),
    repeating-linear-gradient(45deg,rgba(127,127,127,.05) 0 1px,transparent 1px 28px) !important;
}
.contact-map-card span{
  padding:10px 14px;
  border:1px solid rgba(127,127,127,.25);
  border-radius:999px;
  color:var(--ink-0);
}
#contact .doc-content-group .doc-group-heading{
  margin-bottom:40px;
}
.faq-grid{
  grid-template-columns:1fr !important;
  gap:12px;
}
.faq-item{
  min-height:92px;
  display:block;
  padding:0;
  overflow:hidden;
}
.faq-item summary{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:26px 32px;
  color:var(--ink-0);
  cursor:pointer;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{
  display:none;
}
.faq-item summary b{
  font-size:15px;
  line-height:1.45;
}
.faq-chevron{
  flex:none;
  transition:transform .25s ease;
}
.faq-item[open] .faq-chevron{
  transform:rotate(180deg);
}
.faq-answer{
  display:grid;
  gap:8px;
  padding:0 32px 28px;
  color:var(--ink-2);
  font-size:14px;
  line-height:1.65;
}
.contact-closing{
  min-height:392px;
}
.footer{
  width:min(1152px,calc(100% - 32px));
  margin-top:0;
}

@media(max-width:900px){
  .doc-card-grid,
  .doc-card-grid.cols-3,
  #hero .doc-card-grid,
  #hero .doc-card-grid.cols-3,
  #about .doc-card-grid,
  #about .doc-card-grid.cols-3,
  #about .doc-content-group:nth-of-type(3) .doc-card-grid,
  .about-why-grid,
  .about-team-grid,
  .portfolio-reference-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .about-industry-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #services .doc-card{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .hero-copy{
    min-height:1876px;
    padding:144px 16px 0;
    justify-content:flex-start;
  }
  .hero-copy .hero-title{
    font-size:56px;
  }
  .home-document-content{
    gap:128px;
    padding-bottom:96px;
  }
  .doc-page-intro{
    min-height:458px;
    padding:144px 16px 0;
  }
  .doc-page-intro .section-title{
    font-size:44px;
  }
  .doc-page-body,
  .about-reference-body,
  .services-reference-body{
    gap:96px;
  }
  .doc-card-grid,
  .doc-card-grid.cols-3,
  #hero .doc-card-grid,
  #hero .doc-card-grid.cols-3,
  #hero .industry-pill-grid,
  #about .doc-card-grid,
  #about .doc-card-grid.cols-3,
  #about .doc-content-group:nth-of-type(3) .doc-card-grid,
  .about-why-grid,
  .about-industry-grid,
  .about-team-grid,
  .about-intro-grid,
  .portfolio-reference-grid{
    grid-template-columns:1fr;
  }
  #hero .doc-group-3{
    grid-template-columns:1fr;
  }
  #hero .doc-group-1 .doc-card,
  #hero .doc-group-3 .doc-card,
  #hero .doc-group-4 .doc-card,
  #about .doc-card{
    min-height:220px;
  }
  #services .doc-card{
    min-height:680px;
    padding:24px;
  }
  #services .doc-card-head h3{
    font-size:25px !important;
  }
  #services .doc-detail-grid{
    min-height:250px;
  }
  .portfolio-reference-grid .doc-card{
    min-height:430px;
  }
  #contact .doc-page-intro{
    min-height:386px;
  }
  .contact-layout{
    grid-template-columns:1fr;
  }
  .contact-project-card{
    min-height:820px;
  }
  .contact-map-card{
    min-height:500px;
  }
  .reference-cta > div{
    width:100%;
    flex-direction:column;
  }
  .reference-cta a{
    width:100%;
  }
}

/* ============================================================
   CONTACT PAGE — editorial two-column layout
   ============================================================ */
#contact .doc-page-body{
  width:min(1280px,calc(100% - 40px));
}
.contact-layout{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);
  gap:24px;
  align-items:start;
}
.contact-project-card,
.contact-info-card,
.contact-hours-card{
  border-radius:24px;
}
.contact-project-card{
  padding:clamp(28px,4vw,52px);
}
.contact-project-heading{
  margin-bottom:30px;
}
.contact-project-heading h2{
  color:var(--ink-0);
  font-size:clamp(26px,3vw,40px);
  line-height:1.2;
  margin-bottom:12px;
}
.contact-project-heading .doc-copy{
  max-width:700px;
}
.contact-form-flat{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
.contact-form-flat h3{
  display:none;
}
.contact-form-flat .form-row{
  gap:18px;
}
.contact-form-flat{
  gap:18px;
}
.contact-form-flat .field{
  min-height:78px;
  padding:14px 20px;
  border-radius:999px;
  justify-content:center;
}
.contact-form-flat .field.full{
  min-height:190px;
  border-radius:28px;
  justify-content:flex-start;
  padding-top:20px;
}
.contact-form-flat .field span{
  margin-bottom:2px;
}
.contact-form-flat textarea{
  min-height:125px;
}
.contact-form-flat .btn-primary{
  width:auto;
  min-width:190px;
  align-self:flex-end;
  padding-inline:30px;
}
.contact-side{
  display:grid;
  gap:24px;
}
.contact-info-card,
.contact-hours-card{
  padding:clamp(26px,3vw,38px);
}
.contact-card-label{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:7px 13px;
  border:1px solid var(--line-2);
  border-radius:999px;
  color:var(--ink-1);
  font-size:13px;
  margin-bottom:26px;
}
.contact-card-label i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 12px var(--accent);
}
.contact-info-list{
  display:grid;
  gap:22px;
}
.contact-info-row,
.contact-hours-content{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:15px;
  align-items:start;
}
.contact-info-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-2);
  border-radius:50%;
  color:var(--ink-0);
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}
.contact-info-icon svg{
  width:20px;
  height:20px;
}
.contact-info-row b,
.contact-hours-content b{
  display:block;
  color:var(--ink-2);
  font-size:11px;
  line-height:1.3;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:2px 0 5px;
}
.contact-info-row span,
.contact-hours-content span{
  display:block;
  color:var(--ink-0);
  font-size:15px;
  line-height:1.55;
}
.line-add-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:max-content;
  margin-top:12px;
  padding:11px 18px;
  border-radius:999px;
  background:#06c755;
  color:#fff !important;
  font-size:14px;
  font-weight:700;
  box-shadow:0 12px 28px -16px rgba(6,199,85,.9);
  transition:transform .25s,box-shadow .25s,filter .25s;
}
.line-add-button:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
  box-shadow:0 16px 32px -14px rgba(6,199,85,.95);
}
.line-add-button span{
  display:inline !important;
  color:inherit !important;
  font-size:15px !important;
}
html[data-theme="day"] .contact-project-card,
html[data-theme="day"] .contact-info-card,
html[data-theme="day"] .contact-hours-card{
  background:linear-gradient(145deg,rgba(255,255,255,.48),rgba(245,248,250,.22)) !important;
  border:1px solid rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(22px) saturate(135%);
  backdrop-filter:blur(22px) saturate(135%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 26px 60px -34px rgba(75,75,75,.34);
}
html[data-theme="night"] .contact-project-card,
html[data-theme="night"] .contact-info-card,
html[data-theme="night"] .contact-hours-card{
  background:linear-gradient(145deg,rgba(24,28,34,.58),rgba(9,11,15,.3)) !important;
  border:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(22px) saturate(130%);
  backdrop-filter:blur(22px) saturate(130%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 28px 64px -34px rgba(0,0,0,.85);
}
@media(max-width:940px){
  .contact-layout{
    grid-template-columns:1fr;
  }
  .contact-side{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  #contact .doc-page-body{
    width:min(100% - 28px,1280px);
  }
  .contact-project-card,
  .contact-info-card,
  .contact-hours-card{
    border-radius:20px;
  }
  .contact-project-card{
    padding:24px 18px;
  }
  .contact-side{
    grid-template-columns:1fr;
  }
  .contact-form-flat .form-row{
    grid-template-columns:1fr;
  }
  .contact-form-flat .field.full{
    grid-column:auto;
  }
  .contact-form-flat .btn-primary{
    width:100%;
  }
}
@media(max-width:640px){
  #services .doc-card-head h3,
  #portfolio .doc-card-head h3{
    font-size:14px;
  }
  .standalone-doc-card{
    gap:14px;
  }
  .standalone-card-content .doc-card-head{
    align-items:flex-start;
  }
  .standalone-card-content .doc-card-head h2{
    font-size:22px;
  }
  .doc-contact-methods{
    grid-template-columns:1fr;
  }
  .doc-contact-methods .method,
  .doc-contact-methods .method:nth-last-child(-n+2){
    border-bottom:1px solid var(--line-2);
  }
  .doc-contact-methods .method:last-child{
    border-bottom:0;
  }
}

/* ============================================================
   COMPACT CARD SYSTEM - consistent rhythm across every page
   ============================================================ */
.home-document-content,
.doc-page-body{
  gap:clamp(48px,6vw,78px);
}
.doc-content-group + .doc-content-group{
  margin-top:clamp(28px,4vw,48px);
}
.doc-page-intro{
  min-height:auto;
  padding:clamp(28px,4vw,46px);
  margin-bottom:clamp(42px,5vw,68px);
  border-radius:22px;
}
.doc-page-intro .section-title{
  margin-bottom:18px;
}
.doc-card-grid{
  gap:14px;
}
.doc-card{
  gap:11px;
  padding:clamp(19px,2.2vw,28px);
  border-radius:19px;
}
.doc-group-heading{
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.doc-group-num{
  width:44px;
  height:44px;
  border-radius:13px;
  font-size:15px;
}
.doc-group-heading h2{
  font-size:clamp(24px,3vw,36px);
  margin-bottom:8px;
}
.doc-card-head{
  gap:12px;
  margin-bottom:2px;
}
.card-icon{
  width:40px;
  height:40px;
  border-radius:12px;
}
.card-icon svg{
  width:20px;
  height:20px;
}
.doc-copy{
  gap:8px;
  font-size:14.5px;
  line-height:1.65;
}
.doc-copy p,
.doc-lead p{
  font-size:14.5px;
  line-height:1.65;
}
.doc-detail-grid{
  gap:10px;
  margin-top:16px;
}
.doc-detail{
  gap:10px;
  padding-top:13px;
}
.doc-detail h4{
  margin-bottom:4px;
}
.detail-icon{
  width:28px;
  height:28px;
  border-radius:8px;
}
.doc-list{
  margin-top:7px;
}
.doc-list li{
  gap:9px;
  padding:7px 0;
  line-height:1.45;
}
.standalone-doc-card{
  padding:clamp(20px,2.4vw,30px);
  border-radius:19px;
}
.standalone-card-content .doc-card-head h2{
  font-size:clamp(22px,2.6vw,32px);
}

/* Contact cards: tighter layout with perfectly centered icons. */
.contact-layout{
  gap:18px;
}
.contact-project-card,
.contact-info-card,
.contact-hours-card{
  border-radius:20px;
}
.contact-project-card{
  padding:clamp(24px,3vw,36px);
}
.contact-project-heading{
  margin-bottom:22px;
}
.contact-project-heading h2{
  font-size:clamp(24px,2.8vw,34px);
  margin-bottom:8px;
}
.contact-form-flat,
.contact-form-flat .form-row{
  gap:14px;
}
.contact-form-flat .field{
  min-height:66px;
  padding:11px 17px;
}
.contact-form-flat .field.full{
  min-height:154px;
  padding-top:16px;
  border-radius:22px;
}
.contact-form-flat textarea{
  min-height:94px;
}
.contact-form-flat .btn-primary{
  min-width:170px;
  padding-inline:24px;
}
.contact-side{
  gap:18px;
}
.contact-info-card,
.contact-hours-card{
  padding:clamp(22px,2.4vw,30px);
}
.contact-card-label{
  margin-bottom:19px;
}
.contact-info-list{
  gap:15px;
}
.contact-info-row,
.contact-hours-content{
  grid-template-columns:40px minmax(0,1fr);
  gap:13px;
  align-items:center;
}
.contact-info-icon{
  width:40px;
  height:40px;
  align-self:center;
}
.contact-info-icon svg{
  width:18px;
  height:18px;
}
.contact-info-row b,
.contact-hours-content b{
  margin:0 0 4px;
}
.contact-info-row span,
.contact-hours-content span{
  font-size:14.5px;
  line-height:1.45;
}
.line-add-button{
  margin-top:9px;
  padding:10px 16px;
}

@media(max-width:640px){
  .home-document-content,
  .doc-page-body{
    gap:42px;
  }
  .doc-page-intro{
    padding:24px 18px;
    margin-bottom:40px;
    border-radius:18px;
  }
  .doc-card{
    padding:18px;
    border-radius:17px;
  }
  .doc-group-heading{
    align-items:flex-start;
  }
  .doc-group-num{
    width:40px;
    height:40px;
  }
  .contact-project-card{
    padding:22px 17px;
  }
  .contact-info-card,
  .contact-hours-card{
    padding:21px 18px;
  }
  .contact-info-list{
    gap:14px;
  }
}

/* ============================================================
   VISIONARY EDITORIAL LAYOUT
   Adapted from the approved Lovable reference across all pages.
   ============================================================ */
:root{
  --vision-width:1100px;
  --vision-card:rgba(255,255,255,.58);
  --vision-border:rgba(75,75,75,.14);
}
html[data-theme="night"]{
  --vision-card:rgba(13,15,18,.76);
  --vision-border:rgba(255,255,255,.12);
}
body{
  background:#f6f7f8;
}
html[data-theme="night"] body{
  background:#050607;
}
#bg-canvas{
  opacity:.08;
  filter:saturate(.55) contrast(1.08);
}
html[data-theme="night"] #bg-canvas{
  opacity:.11;
  filter:saturate(.45) contrast(1.15) brightness(.72);
}
#bg-gradient{
  background:linear-gradient(180deg,rgba(246,247,248,.72),rgba(246,247,248,.9));
}
html[data-theme="night"] #bg-gradient{
  background:linear-gradient(180deg,rgba(5,6,7,.7),rgba(5,6,7,.92));
}
.nav{
  top:14px;
  width:min(var(--vision-width),calc(100% - 32px));
  min-height:56px;
  padding:7px 10px 7px 18px;
  border-radius:999px;
}
.nav-brand img{
  max-width:132px;
}
.nav-links{
  gap:2px;
}
.nav-links a{
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
}
.nav-cta{
  min-height:40px;
  padding:0 18px;
}
.doc-page-section,
.document-home{
  padding-top:118px;
  padding-bottom:92px;
}
.hero-copy,
.page-lang,
.doc-page-intro,
.doc-page-body,
.home-document-content{
  width:min(var(--vision-width),calc(100% - 40px));
}
.hero-copy{
  min-height:520px;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.hero-copy .hero-title{
  max-width:760px;
  font-size:clamp(58px,7.2vw,94px);
  line-height:.98;
}
.hero-copy .hero-sub{
  max-width:580px;
  margin-top:24px;
  font-size:16px;
  line-height:1.65;
}
.hero-eyebrow,
.section-eyebrow,
.doc-group-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;
  color:var(--ink-1);
  font-size:11px;
  line-height:1;
  letter-spacing:.04em;
}
.hero-cta{
  justify-content:center;
  gap:10px;
  margin-top:26px;
}
.btn-secondary{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 22px;
  border:1px solid var(--vision-border);
  border-radius:999px;
  color:var(--ink-0);
  background:rgba(255,255,255,.08);
  font-size:14px;
  font-weight:650;
}
.home-document-content,
.doc-page-body{
  gap:112px;
}
.doc-page-intro{
  min-height:400px;
  padding:46px;
  margin-bottom:52px;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
.doc-page-intro::before{
  display:none;
}
.doc-page-intro .section-title{
  max-width:900px;
  margin-bottom:20px;
  font-size:clamp(48px,6vw,78px);
  line-height:1.02;
}
.doc-page-subtitle{
  max-width:820px;
  margin:0 0 18px;
  font-size:clamp(24px,3vw,38px);
  line-height:1.15;
  font-weight:700;
}
.doc-page-intro .doc-lead{
  max-width:690px;
  margin-inline:auto;
}
.doc-content-group + .doc-content-group{
  margin-top:0;
}
.doc-group-heading{
  max-width:none;
  align-items:flex-start;
  gap:12px;
  margin-bottom:30px;
}
.doc-group-num{
  width:auto;
  height:auto;
  padding-top:4px;
  border-radius:0;
  color:var(--accent-deep);
  background:transparent;
  box-shadow:none;
  font-size:24px;
}
html[data-theme="night"] .doc-group-num{
  color:#fff777;
}
.doc-group-text{
  display:grid;
  gap:8px;
}
.doc-group-kicker{
  order:-1;
  padding:7px 11px;
  border:1px solid var(--vision-border);
  border-radius:999px;
}
.doc-group-heading h2{
  max-width:760px;
  margin:0;
  font-size:clamp(34px,4.2vw,54px);
  line-height:1.06;
  font-weight:700;
}
.doc-group-heading .doc-copy{
  max-width:640px;
}
.doc-card-grid,
.doc-card-grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.doc-card{
  padding:22px;
  border-radius:22px;
  gap:16px;
  background:var(--vision-card) !important;
  border:1px solid var(--vision-border) !important;
  box-shadow:0 18px 50px -38px rgba(0,0,0,.55) !important;
  -webkit-backdrop-filter:blur(14px) saturate(120%) !important;
  backdrop-filter:blur(14px) saturate(120%) !important;
}
.doc-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,247,0,.42) !important;
}
.doc-card-main{
  min-width:0;
}
.doc-card-head{
  display:grid;
  justify-items:start;
  gap:14px;
  margin-bottom:12px;
}
.doc-card-head h3{
  width:100%;
  font-size:16px;
  line-height:1.25;
}
.card-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  color:#4b4b4b;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(225,229,232,.76));
  border:1px solid rgba(255,255,255,.84);
}
.doc-copy p,
.doc-lead p{
  font-size:14px;
  line-height:1.62;
}
.doc-card .doc-list li{
  padding:6px 0;
  font-size:13px;
}

/* Home: pill industries, split value section, compact process cards. */
#hero .doc-group-2 .doc-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.industry-pill-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.industry-pill{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 15px;
  border:1px solid var(--vision-border);
  border-radius:999px;
  color:var(--ink-0);
  background:var(--vision-card);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
  font-size:13px;
  font-weight:650;
}
.industry-icon{
  flex:none;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#4b4b4b;
  background:linear-gradient(145deg,#fff,#dfe3e6);
}
.industry-icon svg{
  width:17px;
  height:17px;
}
#hero .doc-group-2 .doc-card{
  min-height:58px;
  display:flex;
  flex-direction:row;
  align-items:center;
  padding:10px 16px;
  border-radius:999px;
}
#hero .doc-group-2 .doc-card-head{
  display:flex;
  align-items:center;
  margin:0;
}
#hero .doc-group-2 .card-icon{
  width:34px;
  height:34px;
}
#hero .doc-group-2 .doc-copy,
#hero .doc-group-2 .doc-list{
  display:none;
}
#hero .doc-group-3{
  display:grid;
  grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);
  gap:54px;
  align-items:start;
}
#hero .doc-group-3 .doc-group-heading{
  position:sticky;
  top:110px;
}
#hero .doc-group-3 .doc-card-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#hero .doc-group-4 .doc-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#hero .doc-group-4 .doc-card{
  min-height:150px;
}
#hero .standalone-card-group .standalone-doc-card{
  min-height:380px;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:54px;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,247,0,.18),transparent 42%),
    var(--vision-card) !important;
}
#hero .standalone-card-group .doc-group-num{
  display:none;
}
#hero .standalone-card-group .doc-card-head{
  justify-items:center;
}
#hero .standalone-card-group .doc-card-head h2{
  max-width:700px;
  font-size:clamp(36px,4vw,54px);
}
#hero .standalone-card-group .doc-copy{
  max-width:660px;
  margin-inline:auto;
}

/* Service page: wide editorial cards with a structured detail panel. */
#services .doc-card-grid,
#services .doc-card-grid.cols-3{
  grid-template-columns:1fr;
  gap:16px;
}
#services .doc-content-group{
  display:grid;
  gap:26px;
}
#services .doc-group-heading{
  margin-bottom:0;
}
#services .doc-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
  gap:28px;
  padding:28px;
}
#services .doc-card-head{
  display:flex;
  align-items:center;
}
#services .doc-card-head h3{
  font-size:clamp(21px,2.4vw,30px) !important;
  white-space:normal;
}
#services .doc-detail-grid{
  grid-template-columns:1fr;
  align-self:stretch;
  margin:0;
  padding:18px 20px;
  border:1px solid var(--vision-border);
  border-radius:16px;
  background:rgba(255,255,255,.04);
}
#services .doc-detail{
  padding-top:10px;
}
#services .standalone-doc-card{
  min-height:300px;
}

/* About and portfolio use the same restrained reference grids. */
#about .doc-card-grid,
#about .doc-card-grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#about .doc-group-2 .doc-card{
  min-height:90px;
}
#portfolio .doc-card-grid,
#portfolio .doc-card-grid.cols-3{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#portfolio .doc-card{
  min-height:250px;
}

/* Contact: reference form composition plus FAQ and closing callout. */
#contact .doc-page-body{
  width:min(var(--vision-width),calc(100% - 40px));
  gap:88px;
}
.contact-layout{
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);
  gap:18px;
}
.contact-project-card,
.contact-info-card,
.contact-hours-card,
.faq-item,
.contact-closing{
  background:var(--vision-card) !important;
  border:1px solid var(--vision-border) !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:blur(14px) saturate(120%) !important;
  backdrop-filter:blur(14px) saturate(120%) !important;
}
.contact-project-card{
  padding:32px;
}
.contact-project-heading h2{
  font-size:28px;
}
.contact-form-flat .field{
  min-height:58px;
  border-radius:999px;
}
.contact-form-flat .field.full{
  min-height:140px;
  border-radius:18px;
}
.contact-info-card,
.contact-hours-card{
  padding:24px;
}
.faq-grid{
  display:grid;
  gap:12px;
}
.faq-item{
  display:grid;
  gap:10px;
  padding:24px 28px;
  border-radius:20px;
}
.faq-item b{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink-0);
}
.faq-item > span{
  color:var(--ink-2);
  font-size:14px;
  line-height:1.6;
}
.faq-q-mark{
  flex:none;
  width:28px;
  min-width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#1a1a1a;
  background:#fff777;
}
.contact-closing{
  min-height:330px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px;
  border-radius:24px;
  text-align:center;
}
.contact-closing h2{
  max-width:700px;
  font-size:clamp(34px,4vw,50px);
}
.contact-closing .doc-copy{
  max-width:650px;
}
.footer{
  width:min(var(--vision-width),calc(100% - 32px));
  margin:0 auto 28px;
  border:1px solid var(--vision-border);
  border-radius:24px;
  background:var(--vision-card);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

@media(max-width:900px){
  .nav-links{
    display:none;
  }
  .doc-card-grid,
  .doc-card-grid.cols-3,
  .industry-pill-grid,
  #hero .doc-group-2 .doc-card-grid,
  #hero .doc-group-4 .doc-card-grid,
  #about .doc-card-grid,
  #about .doc-card-grid.cols-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #hero .doc-group-3{
    grid-template-columns:1fr;
    gap:24px;
  }
  #hero .doc-group-3 .doc-group-heading{
    position:static;
  }
  #services .doc-card{
    grid-template-columns:1fr;
  }
  #portfolio .doc-card-grid,
  #portfolio .doc-card-grid.cols-3{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .doc-page-section,
  .document-home{
    padding-top:92px;
    padding-bottom:64px;
  }
  .hero-copy,
  .page-lang,
  .doc-page-intro,
  .doc-page-body,
  .home-document-content{
    width:min(100% - 28px,var(--vision-width));
  }
  .hero-copy{
    min-height:520px;
  }
  .hero-copy .hero-title{
    font-size:clamp(48px,16vw,68px);
  }
  .hero-copy .hero-sub{
    font-size:14px;
  }
  .hero-cta{
    width:100%;
    flex-direction:column;
  }
  .hero-cta a{
    width:100%;
  }
  .home-document-content,
  .doc-page-body{
    gap:72px;
  }
  .doc-page-intro{
    min-height:360px;
    padding:26px 8px;
  }
  .doc-page-intro .section-title{
    font-size:clamp(42px,13vw,58px);
  }
  .doc-page-subtitle{
    font-size:25px;
  }
  .doc-group-heading{
    gap:9px;
  }
  .doc-group-num{
    font-size:18px;
  }
  .doc-group-heading h2{
    font-size:32px;
  }
  .doc-card-grid,
  .doc-card-grid.cols-3,
  .industry-pill-grid,
  #hero .doc-group-2 .doc-card-grid,
  #hero .doc-group-3 .doc-card-grid,
  #hero .doc-group-4 .doc-card-grid,
  #about .doc-card-grid,
  #about .doc-card-grid.cols-3{
    grid-template-columns:1fr;
  }
  .doc-card{
    padding:20px;
  }
  #hero .standalone-card-group .standalone-doc-card{
    min-height:330px;
    padding:34px 22px;
  }
  #services .doc-card{
    padding:21px;
    gap:18px;
  }
  #services .doc-card-head{
    align-items:flex-start;
  }
  #services .doc-detail-grid{
    min-width:0;
    padding:15px;
  }
  .contact-layout{
    grid-template-columns:1fr;
  }
  .contact-project-card{
    padding:22px 18px;
  }
  .contact-closing{
    min-height:300px;
    padding:32px 20px;
  }
}

/* Requested content and alignment refinements. */
.hero-copy .hero-sub{
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

.about-team-grid{
  align-items:stretch;
}
.team-reference-card{
  width:100%;
  min-height:310px;
  height:100%;
  padding:30px 24px;
  gap:18px;
}
.team-reference-card .team-reference-avatar{
  flex:none;
}

#services .doc-group-5 .standalone-doc-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  text-align:left !important;
}
#services .doc-group-5 .standalone-card-content{
  width:100%;
  max-width:780px;
  margin:0;
}
#services .doc-group-5 .doc-card-head{
  justify-items:start !important;
  text-align:left !important;
}

.footer-inner{
  display:grid !important;
  grid-template-columns:minmax(230px,1.2fr) minmax(300px,1fr) minmax(220px,.85fr) !important;
  align-items:start !important;
  gap:40px !important;
}
.footer-doc-links{
  justify-content:center;
  align-content:flex-start;
}
.footer-contact{
  display:grid !important;
  grid-template-columns:1fr;
  justify-content:stretch !important;
  justify-items:start;
  align-content:start;
  gap:10px !important;
}
.footer-contact > *{
  width:100%;
  line-height:1.45;
}

/* Keep card content readable and prevent CTA controls from crowding text. */
.doc-card,
.reference-cta,
.contact-project-card,
.contact-info-card,
.contact-hours-card,
.contact-closing{
  min-width:0;
}
.doc-card h2,
.doc-card h3,
.doc-card h4,
.doc-card p,
.doc-card li,
.reference-cta h2,
.reference-cta p,
.contact-closing h2,
.contact-closing p{
  max-width:100%;
  overflow-wrap:anywhere;
}
.contact-closing{
  gap:0 !important;
}
.contact-closing h2{
  margin:0 0 18px !important;
}
.contact-closing .doc-copy{
  width:100%;
  margin:0 auto !important;
}
.contact-closing .doc-copy p{
  margin:0;
}
.contact-closing > .btn-primary{
  margin-top:30px !important;
  flex:none;
}

/* Home hero: remove the oversized empty band below the navigation. */
#hero .hero-copy{
  min-height:0 !important;
  padding-top:clamp(72px,8vh,104px);
  padding-bottom:clamp(64px,7vh,92px);
}

/* Home closing CTA: give the supporting copy and button room to breathe. */
#hero .editorial-callout .standalone-card-content > .btn-primary{
  margin-top:30px !important;
}

/* About hero accent in light mode. */
html[data-theme="day"] #about .about-page-intro .section-title span{
  color:#cdcdcd !important;
  -webkit-text-fill-color:#cdcdcd !important;
}

@media(max-width:900px){
  .contact-layout{
    grid-template-columns:1fr !important;
  }
  .contact-side{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .footer-inner{
    grid-template-columns:1fr 1fr !important;
  }
  .footer-brand-block{
    grid-column:1 / -1;
  }
  .footer-doc-links{
    justify-content:flex-start;
  }
}

@media(max-width:640px){
  #hero .hero-copy{
    padding-top:64px;
    padding-bottom:56px;
  }
  #hero .editorial-callout .standalone-card-content > .btn-primary{
    margin-top:24px !important;
  }
  .contact-side{
    grid-template-columns:1fr !important;
  }
  .footer-inner{
    grid-template-columns:1fr !important;
    gap:28px !important;
  }
  .footer-brand-block{
    grid-column:auto;
  }
  .contact-closing h2{
    margin-bottom:16px !important;
  }
  .contact-closing > .btn-primary{
    width:auto;
    max-width:100%;
    margin-top:24px !important;
  }
}

/* Final scene visibility override. Keep this after all legacy layout rules. */
html:not(.webgl-fallback) #bg-canvas{
  display:block !important;
  opacity:var(--mercury-opacity, .72) !important;
  filter:contrast(1.08) saturate(1.16);
}
#bg-gradient{
  display:block !important;
  opacity:.72;
}
#bg-grid{
  display:block !important;
  opacity:.06;
}
html[data-theme="night"]:not(.webgl-fallback) #bg-canvas{
  opacity:var(--mercury-opacity, .80) !important;
  filter:contrast(1.1) brightness(.94) saturate(1.18);
}
html[data-theme="night"] #bg-gradient{
  opacity:.58;
}
html.webgl-fallback #bg-canvas{
  display:none !important;
}
@media(max-width:760px){
  html:not(.webgl-fallback) #bg-canvas{
    opacity:var(--mercury-opacity, .62) !important;
    filter:contrast(1.06) saturate(1.12);
  }
  html[data-theme="night"]:not(.webgl-fallback) #bg-canvas{
    opacity:var(--mercury-opacity, .70) !important;
  }
}

/* Final jellyfish palette override. Keep last. */
:root{
  --accent:#dceeff !important;
  --accent-soft:#edf7ff !important;
  --accent-deep:#8dbce4 !important;
  --accent-2:#d6b995 !important;
  --accent-3:#a8d5ed !important;
}
html[data-theme="night"]{
  --accent:#dceeff !important;
  --accent-soft:#bfdff6 !important;
  --accent-deep:#9bcbed !important;
  --accent-2:#d8ba96 !important;
  --accent-3:#a8d9ef !important;
}
#bg-gradient{
  background:
    radial-gradient(52% 46% at 66% 26%,rgba(159,207,240,.28),transparent 64%),
    radial-gradient(38% 34% at 26% 72%,rgba(216,184,148,.12),transparent 68%),
    linear-gradient(180deg,#fff,rgba(243,249,252,.98)) !important;
}
html[data-theme="night"] #bg-gradient{
  background:
    radial-gradient(58% 52% at 66% 24%,rgba(87,151,202,.2),transparent 66%),
    radial-gradient(44% 38% at 24% 72%,rgba(188,148,108,.1),transparent 68%),
    linear-gradient(180deg,#020509,#07111b) !important;
}
.btn-primary,
.nav-cta,
.lang-switch button.active,
.service-card.featured .svc-icon,
.service-card:hover .svc-icon,
.service-group-head>span,
.step-num,
.flow-step:hover .step-num{
  background:linear-gradient(140deg,#f7fcff 0%,#d5ebfa 52%,#b5d8f0 100%) !important;
  border-color:rgba(135,188,226,.74) !important;
  color:#20384b !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 14px 32px -13px rgba(86,156,207,.72) !important;
}
.btn-primary:hover,
.nav-cta:hover{
  background:linear-gradient(140deg,#fff,#c9e5f7) !important;
  color:#162d40 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 19px 42px -13px rgba(91,166,217,.9) !important;
}
.nav-links a.active,
.page-tab.active,
.page-tab:hover{
  background:rgba(181,219,243,.24) !important;
  color:var(--ink-0) !important;
}
.section-eyebrow,
.mode-kicker,
.service-detail b,
.footer-cols b,
.page-tab span,
.stat-plus,
.why-grid .auto-card b,
.method b{
  color:#79afd7 !important;
}
.pulse-dot,
.flow-arrow::after,
.li-dot{
  background:#a8d8f5 !important;
  box-shadow:0 0 14px rgba(147,205,242,.92) !important;
}
.service-card::before,
.service-group::before,
.stat::after{
  background:radial-gradient(circle,rgba(164,210,240,.25),transparent 68%) !important;
}
.service-card.featured,
.story-card.featured{
  background:linear-gradient(180deg,rgba(190,225,247,.23),rgba(255,255,255,.78)) !important;
  border-color:rgba(139,190,226,.44) !important;
}
html[data-theme="night"] .service-card.featured,
html[data-theme="night"] .story-card.featured{
  background:linear-gradient(180deg,rgba(116,176,219,.15),rgba(10,20,30,.48)) !important;
}
.field:focus-within{
  border-color:#8fc4e8 !important;
  box-shadow:0 0 0 4px rgba(145,197,233,.2),0 1px 2px rgba(75,75,75,.04) !important;
}
.theme-switch:hover{
  border-color:rgba(140,193,229,.78) !important;
  background:#dceeff !important;
  color:#21384b !important;
}
html:not(.webgl-fallback) #bg-canvas{
  opacity:var(--mercury-opacity,.76) !important;
  filter:contrast(1.08) saturate(1.08) !important;
}
html[data-theme="night"]:not(.webgl-fallback) #bg-canvas{
  opacity:var(--mercury-opacity,.86) !important;
  filter:contrast(1.1) brightness(.98) saturate(1.12) !important;
}
@media(max-width:760px){
  html:not(.webgl-fallback) #bg-canvas{
    opacity:var(--mercury-opacity,.66) !important;
  }
  html[data-theme="night"]:not(.webgl-fallback) #bg-canvas{
    opacity:var(--mercury-opacity,.76) !important;
  }
}
