@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ──────────────────────────────────────────
   DESIGN TOKENS
────────────────────────────────────────── */
:root {
  /* Dark backgrounds */
  --ink:          #060d1e;
  --ink-2:        #0c1a36;
  --ink-3:        #112850;

  /* PRIMARY BLUE (deep navy — used for ALL buttons & interactive CTAs) */
  --blue:         #1d4ed8;
  --blue-hover:   #1e40af;
  --blue-light:   #3b82f6;
  --blue-pale:    #eff6ff;

  /* CYAN — decorative accents, glows, kickers ONLY (not buttons) */
  --cyan:         #06b6d4;
  --cyan-dim:     #0891b2;
  --cyan-glow:    rgba(6,182,212,0.15);

  /* Gold */
  --gold:         #f59e0b;
  --gold-light:   #fcd34d;

  /* Neutrals */
  --white:        #ffffff;
  --off:          #f0f6ff;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --border-dark:  rgba(6,182,212,0.15);

  /* Shadows */
  --btn-shadow:        0 4px 18px rgba(29,78,216,0.35);
  --btn-hover-shadow:  0 10px 32px rgba(29,78,216,0.5);
  --card-shadow:       0 2px 16px rgba(0,0,0,0.05);
  --card-hover-shadow: 0 12px 40px rgba(29,78,216,0.12);

  /* Radii */
  --r-sm:  8px;
  --r:     14px;
  --r-xl:  24px;
}

/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'IBM Plex Sans Thai', sans-serif;
  background:var(--white);
  color:#1e293b;
  line-height:1.75;
  overflow-x:hidden;
}
img { max-width:100%; display:block; }
a  { color:inherit; }

/* ──────────────────────────────────────────
   SCROLL REVEAL
────────────────────────────────────────── */
.reveal {
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.65s cubic-bezier(0.16,1,0.3,1),
             transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:.10s; }
.reveal-d2 { transition-delay:.20s; }
.reveal-d3 { transition-delay:.30s; }
.reveal-d4 { transition-delay:.40s; }
.reveal-d5 { transition-delay:.50s; }

/* ──────────────────────────────────────────
   HERO BOTTOM ELEMENTS (Hero.txt inspired)
   Two elements added inside every hero:
   1. .hero-arc   — large radial ellipse glow at center-bottom (curved horizon)
   2. .hero-fade  — gradient overlay that melts hero into the section below
────────────────────────────────────────── */

/* Radial arc — adapted from Hero.txt's rounded bottom accent.
   Original = white ellipse on light bg; here = blue/cyan radial glow on dark bg */
.hero-arc {
  position:absolute;
  bottom:-80px; left:50%;
  transform:translateX(-50%);
  width:130%; height:340px;
  border-radius:50%;
  background:
    radial-gradient(ellipse 65% 55% at 50% 100%,
      rgba(29,78,216,.28)  0%,
      rgba(6,182,212,.10)  35%,
      transparent          70%);
  pointer-events:none;
  z-index:1;
  animation:arcPulse 6s ease-in-out infinite;
}
@keyframes arcPulse {
  0%,100% { opacity:.8; transform:translateX(-50%) scaleX(1);   }
  50%      { opacity:1;  transform:translateX(-50%) scaleX(1.04); }
}

/* Bottom fade — gradient from the page's next-section colour to transparent.
   Two variants: dark (→ next dark strip) and light (→ white article body) */
.hero-fade {
  position:absolute;
  bottom:0; left:0; right:0; height:200px;
  background:linear-gradient(to top, var(--ink) 0%, transparent 100%);
  pointer-events:none;
  z-index:2;
}
/* Article pages: hero fades into white content below */
.hero-fade-light {
  position:absolute;
  bottom:0; left:0; right:0; height:160px;
  background:linear-gradient(to top, #ffffff 0%, transparent 100%);
  pointer-events:none;
  z-index:2;
}

/* Ensure all hero content containers render above arc + fade layers */
.home-hero-inner,
.bec-hero-inner,
.em-hero-inner,
.port-hero-inner,
.blog-hero-inner,
.article-hero-inner {
  position:relative;
  z-index:5;
}

/* ──────────────────────────────────────────
   NAV
────────────────────────────────────────── */
nav#main-nav {
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 5%;
  transition:all 0.35s ease;
}
nav#main-nav.scrolled {
  background:rgba(6,13,30,0.97);
  backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid rgba(6,182,212,0.12);
  box-shadow:0 4px 32px rgba(0,0,0,0.3);
}
.nav-logo {
  display:flex; align-items:center; gap:12px; text-decoration:none;
}
.nav-logo-mark {
  width:38px; height:38px; border-radius:9px;
  background:linear-gradient(135deg, var(--blue), var(--blue-light));
  display:flex; align-items:center; justify-content:center;
  color:var(--white); flex-shrink:0;
  box-shadow:0 0 16px rgba(29,78,216,0.4);
}
.nav-logo-mark svg { width:18px; height:18px; }
.nav-logo-text { color:var(--white); }
.nav-logo-title { font-size:0.84rem; font-weight:600; line-height:1.15; }
.nav-logo-sub {
  font-family:'IBM Plex Mono', monospace; font-size:0.59rem;
  color:var(--cyan); letter-spacing:.1em;
}
.nav-links {
  display:flex; align-items:center; gap:22px;
}
.nav-links a {
  color:rgba(255,255,255,.6); font-size:.83rem; text-decoration:none;
  transition:color .2s; position:relative;
}
.nav-links a:hover { color:var(--white); }
.nav-links a.active { color:var(--white); }
.nav-links a.active::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height:2px; background:var(--cyan); border-radius:2px;
}
.nav-cta {
  background:var(--blue) !important;
  color:var(--white) !important;
  padding:8px 18px !important; border-radius:7px !important;
  font-weight:600 !important; font-size:.82rem !important;
  transition:all .2s !important;
  box-shadow:0 0 14px rgba(29,78,216,.3);
}
.nav-cta:hover {
  background:var(--blue-hover) !important;
  box-shadow:0 4px 18px rgba(29,78,216,.5) !important;
  transform:translateY(-1px);
}
.nav-cta.active::after { display:none; }

/* Mobile toggle */
.mobile-toggle {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; padding:8px; z-index:210;
}
.mobile-toggle span {
  width:22px; height:2px; background:var(--white);
  border-radius:2px; transition:all .3s;
}
.mobile-toggle.active span:nth-child(1){ transform:rotate(45deg)  translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2){ opacity:0; }
.mobile-toggle.active span:nth-child(3){ transform:rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display:none; position:fixed; top:64px; left:0; right:0;
  background:rgba(6,13,30,.99); backdrop-filter:blur(24px);
  padding:20px 5%; flex-direction:column;
  border-bottom:1px solid rgba(6,182,212,.12);
  transform:translateY(-8px); opacity:0;
  transition:all .3s ease;
}
.mobile-menu.active { transform:translateY(0); opacity:1; }
.mobile-menu a {
  color:rgba(255,255,255,.78); font-size:.95rem; text-decoration:none;
  padding:14px 0; border-bottom:1px solid rgba(255,255,255,.05);
  display:flex; align-items:center; justify-content:space-between;
  transition:all .2s;
}
.mobile-menu a:last-child { border-bottom:none; }
.mobile-menu a:hover { color:var(--white); padding-left:6px; }
.mobile-menu .nav-cta { margin-top:12px; justify-content:center; padding:13px 20px !important; }

@media(max-width:960px) {
  .nav-links      { display:none; }
  .mobile-toggle  { display:flex; }
  .mobile-menu    { display:flex; }
}

/* ──────────────────────────────────────────
   SECTION SHELL
────────────────────────────────────────── */
.section       { padding:72px 5%; }
.section-dark  { background:linear-gradient(160deg,#040b1a 0%,#07152a 100%); }
.section-light { background:var(--off); }
.container     { max-width:1100px; margin:0 auto; }

/* ──────────────────────────────────────────
   TYPOGRAPHY UTILITIES
────────────────────────────────────────── */
.kicker {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace; font-size:.67rem;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--blue); margin-bottom:14px;
}
.kicker::before { content:''; width:20px; height:1px; background:currentColor; }
.kicker-cyan  { color:var(--cyan); }
.kicker-white { color:var(--cyan); }

.h2 {
  font-size:clamp(1.75rem,3vw,2.6rem); font-weight:700;
  line-height:1.22; margin-bottom:14px; letter-spacing:-.02em; color:#0f172a;
}
.h2-white { color:var(--white); }

.lead {
  font-size:.97rem; color:var(--muted); max-width:540px;
  margin-bottom:52px; line-height:1.8;
}
.lead-white { color:rgba(255,255,255,.7); }

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn-primary {
  background:var(--blue);
  color:var(--white); padding:14px 28px; border-radius:9px;
  font-weight:600; font-size:.92rem; text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:var(--btn-shadow);
  transition:all .3s ease; position:relative; overflow:hidden;
}
.btn-primary::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);
  transform:translateX(-100%); transition:transform .5s;
}
.btn-primary:hover {
  background:var(--blue-hover);
  transform:translateY(-3px);
  box-shadow:var(--btn-hover-shadow);
}
.btn-primary:hover::before { transform:translateX(100%); }

.btn-ghost {
  border:1.5px solid rgba(255,255,255,.22); color:rgba(255,255,255,.88);
  padding:14px 26px; border-radius:9px; font-size:.92rem;
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  transition:all .3s; backdrop-filter:blur(4px);
}
.btn-ghost:hover {
  border-color:rgba(255,255,255,.5);
  color:var(--white);
  background:rgba(255,255,255,.06);
  transform:translateY(-2px);
}

.btn-outline {
  border:1.5px solid var(--blue); color:var(--blue);
  padding:11px 22px; border-radius:9px; font-size:.88rem;
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  transition:all .3s; font-weight:600;
}
.btn-outline:hover { background:var(--blue); color:var(--white); transform:translateY(-2px); }

.btn-gold {
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:var(--ink); padding:14px 28px; border-radius:9px;
  font-weight:700; font-size:.92rem; text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 4px 18px rgba(245,158,11,.35);
  transition:all .3s;
}
.btn-gold:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(245,158,11,.45); }

/* ──────────────────────────────────────────
   BADGES / TAGS
────────────────────────────────────────── */
.badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(29,78,216,.08); border:1px solid rgba(29,78,216,.2);
  color:var(--blue); padding:4px 12px; border-radius:100px;
  font-family:'IBM Plex Mono',monospace; font-size:.7rem; letter-spacing:.07em;
}
.badge-cyan { background:rgba(6,182,212,.1);  border-color:rgba(6,182,212,.25); color:var(--cyan); }
.badge-gold { background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.3); color:var(--gold); }
.badge-green{ background:rgba(34,197,94,.1);  border-color:rgba(34,197,94,.25); color:#16a34a; }

.tag {
  font-family:'IBM Plex Mono',monospace; font-size:.65rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--blue);
  background:rgba(29,78,216,.07); border:1px solid rgba(29,78,216,.18);
  padding:3px 10px; border-radius:4px; display:inline-block;
}
.tag-cyan { color:var(--cyan); background:rgba(6,182,212,.07); border-color:rgba(6,182,212,.2); }
.tag-gold { color:var(--gold); background:rgba(245,158,11,.08); border-color:rgba(245,158,11,.25); }

/* ──────────────────────────────────────────
   CARDS
────────────────────────────────────────── */
.card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--r); padding:28px 24px;
  transition:all .3s cubic-bezier(0.16,1,0.3,1);
  position:relative; overflow:hidden;
}
.card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--blue),var(--cyan));
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s;
}
.card:hover { border-color:rgba(29,78,216,.25); box-shadow:var(--card-hover-shadow); transform:translateY(-4px); }
.card:hover::before { transform:scaleX(1); }

.card-dark {
  background:rgba(255,255,255,.028); border:1px solid rgba(6,182,212,.12);
  border-radius:var(--r); padding:28px 22px;
  transition:all .3s cubic-bezier(0.16,1,0.3,1); position:relative;
}
.card-dark::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--blue),var(--cyan));
  transform:scaleX(0); transform-origin:left; transition:transform .35s;
}
.card-dark:hover {
  background:rgba(29,78,216,.08); border-color:rgba(29,78,216,.3);
  transform:translateY(-5px); box-shadow:0 16px 48px rgba(0,0,0,.35);
}
.card-dark:hover::before { transform:scaleX(1); }

/* ──────────────────────────────────────────
   MARQUEE STRIP
────────────────────────────────────────── */
.strip {
  background:linear-gradient(90deg,var(--blue-hover),var(--blue),var(--blue-hover));
  padding:10px 0; overflow:hidden; position:relative;
}
.strip::before,.strip::after {
  content:''; position:absolute; top:0; bottom:0; width:60px; z-index:2;
}
.strip::before { left:0;  background:linear-gradient(90deg, var(--blue-hover),transparent); }
.strip::after  { right:0; background:linear-gradient(-90deg,var(--blue-hover),transparent); }
.strip-track   { display:flex; width:max-content; animation:ticker 22s linear infinite; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.strip-item {
  white-space:nowrap; color:rgba(255,255,255,.88);
  font-family:'IBM Plex Mono',monospace; font-size:.74rem; letter-spacing:.07em;
  padding:0 28px; display:flex; align-items:center;
  border-right:1px solid rgba(255,255,255,.2);
}

/* ──────────────────────────────────────────
   STATS BAR
────────────────────────────────────────── */
.stats-bar { background:var(--off); padding:48px 5%; border-bottom:1px solid var(--border); }
.stats-inner {
  max-width:1000px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
@media(max-width:768px){ .stats-inner{ grid-template-columns:repeat(2,1fr); } }
.stat-item   { text-align:center; padding:16px; }
.stat-num {
  font-family:'IBM Plex Mono',monospace;
  font-size:2.2rem; font-weight:700; line-height:1; margin-bottom:6px;
  background:linear-gradient(135deg,var(--ink-2),var(--blue));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.stat-label  { font-size:.8rem; color:var(--muted); font-weight:500; }
.stat-divider{ width:36px;height:2px; background:linear-gradient(90deg,var(--blue),var(--cyan)); margin:8px auto 0; border-radius:2px; }

/* ──────────────────────────────────────────
   CONTACT SECTION
────────────────────────────────────────── */
.contact-wrap {
  background:linear-gradient(160deg,#040b1a 0%,#07152a 100%);
  padding:72px 5%; position:relative; overflow:hidden;
}
.contact-wrap::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(6,182,212,.025) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(6,182,212,.025) 1px,transparent 1px);
  background-size:48px 48px;
}
.contact-orb {
  position:absolute; width:400px;height:400px; border-radius:50%;
  background:radial-gradient(circle,rgba(29,78,216,.14) 0%,transparent 70%);
  right:-80px; top:-80px; pointer-events:none; filter:blur(60px);
}
.contact-inner {
  max-width:1000px; margin:0 auto; position:relative;
  display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;
}
@media(max-width:768px){ .contact-inner{ grid-template-columns:1fr; gap:40px; } }
.contact-left h2 {
  font-size:2.1rem; font-weight:700; color:var(--white);
  margin-bottom:14px; line-height:1.25; letter-spacing:-.02em;
}
.contact-left p { color:rgba(255,255,255,.7); font-size:.95rem; line-height:1.8; margin-top:14px; }
.contact-pill {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(29,78,216,.15); border:1px solid rgba(29,78,216,.3);
  color:#93c5fd; padding:6px 14px; border-radius:100px;
  font-size:.77rem; font-weight:500; margin-top:20px;
}
.contact-right { display:flex; flex-direction:column; gap:14px; }
.c-card {
  background:rgba(255,255,255,.04); border:1px solid rgba(29,78,216,.2);
  border-radius:14px; padding:20px 22px;
  display:flex; align-items:center; gap:16px;
  text-decoration:none; color:var(--white); transition:all .25s;
}
.c-card:hover { background:rgba(29,78,216,.1); border-color:rgba(29,78,216,.4); transform:translateX(6px); }
.c-icon {
  width:48px; height:48px; border-radius:12px;
  background:linear-gradient(135deg,rgba(29,78,216,.3),rgba(29,78,216,.1));
  border:1px solid rgba(29,78,216,.25);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; flex-shrink:0;
}
.c-label { font-size:.72rem; color:rgba(255,255,255,.4); margin-bottom:3px; letter-spacing:.05em; }
.c-value  { font-size:1.05rem; font-weight:600; }
.qr-row {
  background:rgba(255,255,255,.04); border:1px solid rgba(29,78,216,.2);
  border-radius:14px; padding:20px 22px;
  display:flex; align-items:center; gap:16px;
}
.qr-img {
  width:80px; height:80px; border-radius:10px;
  object-fit:cover; flex-shrink:0;
  border:2px solid rgba(29,78,216,.35);
  box-shadow:0 0 20px rgba(29,78,216,.15);
}
.qr-info            { color:rgba(255,255,255,.6); font-size:.85rem; }
.qr-info strong     { color:var(--white); display:block; margin-bottom:3px; font-size:.95rem; }
.qr-hint            { font-size:.72rem; color:rgba(255,255,255,.3); margin-top:4px; display:block; }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
footer {
  background:#020811;
  padding:20px 5%;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  border-top:1px solid rgba(29,78,216,.1);
}
footer p    { font-size:.78rem; color:rgba(255,255,255,.25); }
.footer-mono{ font-family:'IBM Plex Mono',monospace; font-size:.65rem; color:rgba(29,78,216,.45); letter-spacing:.08em; }

/* ──────────────────────────────────────────
   FLOAT BUTTON
────────────────────────────────────────── */
.float-btn {
  position:fixed; bottom:22px; right:22px; z-index:50;
  background:var(--blue); color:var(--white);
  padding:13px 22px; border-radius:100px;
  font-weight:600; font-size:.85rem; text-decoration:none;
  display:flex; align-items:center; gap:8px;
  box-shadow:0 4px 24px rgba(29,78,216,.5);
  animation:fadeUp .8s 1.2s ease both;
  transition:all .25s;
}
.float-btn:hover { background:var(--blue-hover); transform:translateY(-3px); box-shadow:0 10px 36px rgba(29,78,216,.6); }
.float-pulse { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.8); animation:ping 1.8s infinite; }

/* ──────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes ping {
  0%,100%{ transform:scale(1);   opacity:1; }
  50%    { transform:scale(1.3); opacity:.7; }
}
@keyframes shimmer  { 100%{ transform:translateX(100%); } }
@keyframes orbFloat {
  0%,100%{ transform:translate(0,0)    scale(1); }
  50%    { transform:translate(24px,16px) scale(1.08); }
}
@keyframes gridDrift {
  0%  { transform:translate(0,0); }
  100%{ transform:translate(56px,56px); }
}
@keyframes ticker   { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes scanLine {
  0%  { top:0%;   opacity:0; }
  5%  { opacity:1; }
  95% { opacity:.5; }
  100%{ top:100%; opacity:0; }
}

/* ──────────────────────────────────────────
   BLOG CARDS (shared)
────────────────────────────────────────── */
.blog-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--r); overflow:hidden;
  transition:all .3s cubic-bezier(0.16,1,0.3,1);
  text-decoration:none; color:inherit; display:block;
}
.blog-card:hover { border-color:rgba(29,78,216,.25); box-shadow:var(--card-hover-shadow); transform:translateY(-4px); }
.blog-card-img {
  width:100%; height:200px; object-fit:cover;
  background:linear-gradient(135deg,var(--ink-2),var(--ink-3));
  display:flex; align-items:center; justify-content:center;
  font-size:2.5rem;
}
.blog-card-body { padding:22px 20px; }
.blog-card-meta {
  display:flex; align-items:center; gap:12px; margin-bottom:10px;
  font-size:.75rem; color:var(--muted);
}
.blog-card h3 {
  font-size:1rem; font-weight:700; color:#0f172a;
  margin-bottom:8px; line-height:1.4;
}
.blog-card p { font-size:.85rem; color:var(--muted); line-height:1.7; }
.blog-card-link {
  display:inline-flex; align-items:center; gap:6px;
  color:var(--blue); font-size:.82rem; font-weight:600;
  margin-top:14px; text-decoration:none; transition:gap .2s;
}
.blog-card-link:hover { gap:10px; }

/* ──────────────────────────────────────────
   ARTICLE PAGE
────────────────────────────────────────── */
.article-hero { background:linear-gradient(160deg,#040b1a 0%,#0c1a36 100%); padding:110px 5% 60px; }
.article-hero h1 { font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:700; color:var(--white); line-height:1.25; letter-spacing:-.02em; margin-bottom:16px; }
.article-hero .article-meta { display:flex; flex-wrap:wrap; gap:16px; color:rgba(255,255,255,.7); font-size:.82rem; }
.article-body {
  max-width:720px; margin:0 auto; padding:60px 5%;
  font-size:1rem; line-height:1.9; color:#374151;
}
.article-body h2 { font-size:1.55rem; font-weight:700; color:#0f172a; margin:40px 0 14px; letter-spacing:-.01em; }
.article-body h3 { font-size:1.2rem; font-weight:700; color:#0f172a; margin:28px 0 10px; }
.article-body p  { margin-bottom:18px; }
.article-body ul { padding-left:24px; margin-bottom:18px; }
.article-body li { margin-bottom:6px; }
.article-body strong { color:#0f172a; }
.article-body .highlight-box {
  background:var(--blue-pale); border-left:4px solid var(--blue);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  padding:18px 20px; margin:24px 0; font-size:.95rem; color:#1e40af;
}
.article-cta-banner {
  background:linear-gradient(135deg,var(--blue),var(--blue-hover));
  border-radius:var(--r); padding:32px 28px; margin:40px 0;
  color:var(--white); text-align:center;
}
.article-cta-banner h3 { margin-bottom:10px; color:var(--white); }
.article-cta-banner p  { color:rgba(255,255,255,.75); margin-bottom:20px; font-size:.92rem; }

/* ──────────────────────────────────────────
   BENTO GRID SERVICES (index.html)
────────────────────────────────────────── */
.bento-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:16px; margin-top:48px;
}
@media(max-width:960px){ .bento-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .bento-grid{ grid-template-columns:1fr; } }

.bento-item {
  background:var(--white); border:1px solid var(--border);
  border-radius:18px; padding:28px; position:relative; overflow:hidden;
  transition:all .35s cubic-bezier(.16,1,.3,1);
  display:flex; flex-direction:column;
}
.bento-item:hover {
  border-color:rgba(29,78,216,.28);
  box-shadow:0 16px 48px rgba(29,78,216,.12);
  transform:translateY(-4px);
}
.bento-item.featured {
  grid-column:span 2;
  background:linear-gradient(145deg,#f0f6ff,#eff6ff);
  border-color:rgba(29,78,216,.2);
}
@media(max-width:600px){ .bento-item.featured{ grid-column:span 1; } }
.bento-item.dark {
  background:linear-gradient(145deg,var(--ink-2),var(--ink));
  border-color:rgba(6,182,212,.15);
}
.bento-item.dark:hover { border-color:rgba(6,182,212,.35); box-shadow:0 16px 48px rgba(6,182,212,.12); }

.bento-accent {
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--blue),var(--blue-light));
  opacity:0; transition:opacity .3s;
}
.bento-item:hover .bento-accent,
.bento-item.featured .bento-accent { opacity:1; }
.bento-item.dark .bento-accent { background:linear-gradient(90deg,var(--cyan-dim),var(--cyan)); opacity:.6; }
.bento-item.dark:hover .bento-accent { opacity:1; }

.bento-icon {
  width:48px; height:48px; border-radius:13px; margin-bottom:18px;
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
  background:linear-gradient(135deg,rgba(29,78,216,.12),rgba(29,78,216,.04));
  border:1px solid rgba(29,78,216,.15); flex-shrink:0;
}
.bento-item.dark .bento-icon {
  background:linear-gradient(135deg,rgba(6,182,212,.2),rgba(6,182,212,.05));
  border-color:rgba(6,182,212,.2);
}

.bento-status {
  display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono',monospace; font-size:.64rem; letter-spacing:.08em;
  background:rgba(29,78,216,.08); border:1px solid rgba(29,78,216,.18);
  color:var(--blue); padding:3px 10px; border-radius:4px;
  margin-bottom:12px; align-self:flex-start;
}
.bento-dot { width:5px; height:5px; border-radius:50%; background:currentColor; animation:ping 2s infinite; }

.bento-title {
  font-size:1.05rem; font-weight:700; color:#0f172a; margin-bottom:8px; line-height:1.35;
}
.bento-item.dark .bento-title { color:var(--white); }

.bento-desc {
  font-size:.85rem; color:var(--muted); line-height:1.75; flex:1;
}
.bento-item.dark .bento-desc { color:rgba(255,255,255,.52); }

.bento-tags {
  display:flex; flex-wrap:wrap; gap:6px; margin-top:14px;
}
.bento-tag {
  font-size:.7rem; font-family:'IBM Plex Mono',monospace;
  padding:3px 9px; border-radius:4px;
  background:rgba(29,78,216,.06); border:1px solid rgba(29,78,216,.14);
  color:#3b82f6; letter-spacing:.04em;
}
.bento-item.dark .bento-tag {
  background:rgba(6,182,212,.08); border-color:rgba(6,182,212,.18); color:var(--cyan);
}

.bento-cta {
  display:inline-flex; align-items:center; gap:6px;
  font-size:.83rem; font-weight:600; margin-top:16px; text-decoration:none;
  color:var(--blue); transition:gap .2s;
}
.bento-cta:hover { gap:12px; }
.bento-item.dark .bento-cta { color:var(--cyan); }

.bento-img {
  width:100%; height:160px; border-radius:11px; overflow:hidden;
  margin-bottom:18px; border:1px solid rgba(0,0,0,.05);
}
.bento-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s ease; }
.bento-item:hover .bento-img img { transform:scale(1.04); }
.bento-item.featured .bento-img { height:200px; }

/* ──────────────────────────────────────────
   CREDENTIALS SECTION (index.html)
────────────────────────────────────────── */
.cred-grid {
  display:grid; grid-template-columns:1fr 420px; gap:56px; align-items:center;
}
@media(max-width:900px){ .cred-grid{ grid-template-columns:1fr; gap:40px; } }

.cred-profile { position:relative; border-radius:20px; overflow:hidden; }
.cred-profile-img {
  width:100%; aspect-ratio:3/4; object-fit:cover; display:block;
  border-radius:20px; border:1px solid var(--border);
  box-shadow:0 16px 56px rgba(0,0,0,.12);
}
.cred-seal {
  position:absolute; bottom:20px; right:20px;
  width:90px; height:90px;
  background:rgba(255,255,255,.95); border-radius:50%;
  border:2px solid var(--border);
  box-shadow:0 6px 24px rgba(0,0,0,.15);
  padding:4px; display:flex; align-items:center; justify-content:center;
}
.cred-seal img { width:100%; height:100%; object-fit:contain; border-radius:50%; }

.cred-tag {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:.7rem; letter-spacing:.1em;
  color:var(--blue); background:rgba(29,78,216,.07); border:1px solid rgba(29,78,216,.18);
  padding:4px 14px; border-radius:4px; margin-bottom:18px;
}
.cred-name { font-size:1.9rem; font-weight:700; color:#0f172a; line-height:1.2; margin-bottom:6px; letter-spacing:-.02em; }
.cred-title { font-size:.95rem; color:var(--muted); margin-bottom:22px; }
.cred-highlights { display:flex; flex-direction:column; gap:12px; margin-bottom:28px; }
.cred-hl {
  display:flex; align-items:center; gap:12px;
  padding:14px 18px; background:var(--off); border:1px solid var(--border); border-radius:11px;
}
.cred-hl-icon {
  width:36px; height:36px; border-radius:9px; flex-shrink:0;
  background:linear-gradient(135deg,var(--blue-pale),#dbeafe);
  display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.cred-hl-text h5 { font-size:.88rem; font-weight:700; color:#0f172a; margin-bottom:2px; }
.cred-hl-text p  { font-size:.78rem; color:var(--muted); line-height:1.5; }

/* ── WHY CARD PHOTO ── */
.why-card-photo { width:100%; height:100px; border-radius:10px; overflow:hidden; margin-bottom:16px; }
.why-card-photo img { width:100%; height:100%; object-fit:cover; display:block; }

/* ──────────────────────────────────────────
   ENHANCED FOOTER (from Footer.txt design)
────────────────────────────────────────── */
footer#main-footer {
  background:linear-gradient(180deg,var(--ink-2) 0%,var(--ink) 100%);
  border-top:1px solid rgba(6,182,212,.12);
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px;
  max-width:1100px; margin:0 auto; padding:56px 5% 40px;
}
@media(max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; } }
@media(max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }

.footer-brand-desc {
  font-size:.84rem; color:rgba(255,255,255,.4); line-height:1.8; margin-top:12px;
}
.footer-col-title {
  font-family:'IBM Plex Mono',monospace; font-size:.68rem; letter-spacing:.12em;
  color:rgba(255,255,255,.3); margin-bottom:14px; text-transform:uppercase;
}
.footer-links { display:flex; flex-direction:column; gap:8px; }
.footer-links a {
  font-size:.84rem; color:rgba(255,255,255,.65); text-decoration:none;
  transition:color .2s;
}
.footer-links a:hover { color:rgba(255,255,255,.85); }
.footer-social { display:flex; gap:10px; margin-top:16px; }
.footer-social-btn {
  width:36px; height:36px; border-radius:9px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  font-size:.95rem; text-decoration:none; transition:all .2s;
}
.footer-social-btn:hover { background:rgba(29,78,216,.3); border-color:rgba(29,78,216,.4); }
.footer-bottom {
  max-width:1100px; margin:0 auto; padding:18px 5%;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.footer-bottom-copy { font-size:.75rem; color:rgba(255,255,255,.28); }
.footer-bottom-mono { font-family:'IBM Plex Mono',monospace; font-size:.65rem; color:rgba(255,255,255,.2); letter-spacing:.06em; }

/* ──────────────────────────────────────────
   UTILITY CLASSES
────────────────────────────────────────── */
.text-center { text-align:center; }
.mt-sm { margin-top:24px; }
.mt-md { margin-top:40px; }
.mt-lg { margin-top:56px; }
.flex-center { display:flex; align-items:center; justify-content:center; gap:12px; }

/* ──────────────────────────────────────────
   GLOBAL MOBILE OVERRIDES
   Target: 360–430px (iPhone SE, iPhone 14,
   Samsung Galaxy, most Android)
────────────────────────────────────────── */
@media(max-width:640px) {
  /* Sections: tighter vertical rhythm */
  .section { padding:60px 5%; }
  .contact-wrap { padding:60px 5%; }

  /* Stats bar: 2×2 on small screens */
  .stats-inner { grid-template-columns:repeat(2,1fr) !important; gap:0; }
  .stat-item { padding:18px 8px; }
  .stat-num { font-size:1.7rem; }

  /* Contact */
  .contact-left h2 { font-size:1.7rem; }
  .c-card { padding:16px 18px; }

  /* Buttons: fill width on small screens */
  .home-hero-btns { flex-direction:column; }
  .home-hero-btns .btn-primary,
  .home-hero-btns .btn-ghost { width:100%; justify-content:center; }

  /* Nav float button: shorter label */
  .float-btn { padding:11px 18px; font-size:.8rem; }

  /* Typography */
  .h2 { font-size:1.6rem; }
  .lead { font-size:.9rem; margin-bottom:36px; }

  /* Why card photo — smaller on mobile */
  .why-card-photo { height:140px; }
}

@media(max-width:480px) {
  /* Hero section padding */
  .section { padding:48px 4%; }
  .contact-wrap { padding:48px 4%; }

  /* Blog cards */
  .blog-card-img { height:160px !important; }

  /* Credential visual stats */
  .cred-vstat { padding:0 10px; }
  .cred-vstat span { font-size:1rem; }

  /* Footer */
  .footer-grid { padding:40px 4% 32px; }
}
