/* =========================================================
   BIC – Business Intelligence Consulting Co., Ltd.
   ========================================================= */
:root {
  --navy: #061B3C;
  --navy-deep: #03142F;
  --blue: #0057B8;
  --blue-electric: #009DFF;
  --gold: #FFC247;
  --gold-dark: #E9A92A;
  --white: #FFFFFF;
  --light: #F5F8FC;
  --text: #071D43;
  --muted: #4A5A75;
  --line: #DCE5F0;
  --max: 1360px;
  --header-h: 76px;
  --radius: 14px;
  --font: "Manrope", "Noto Sans Thai", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.ico, .pillar-ico, .chk, .panel-icon svg, .pf svg, .ind-label svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico { width: 18px; height: 18px; flex: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 32px; }
.text-gold { color: var(--gold); }

:focus-visible { outline: 2px solid var(--blue-electric); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px; border-radius: 6px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn-gold { background: linear-gradient(180deg, #FFCD5E, var(--gold) 55%, #F5B132); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 194, 71, .28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 194, 71, .42); }
.btn-outline { border-color: rgba(255,255,255,.85); color: var(--white); background: rgba(3,20,47,.25); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 40px; font-size: 16px; }

/* ---------- Eyebrows ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 44px; height: 3px; border-radius: 2px; background: var(--gold); }
.eyebrow-left { justify-content: flex-start; }
.eyebrow-left::after { display: none; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-left.eyebrow-gold::before { display: none; }
.eyebrow-left.eyebrow-gold::after { display: block; }
.eyebrow-h { font-size: 17px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(3,20,47,.85), rgba(3,20,47,0));
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(3,20,47,.96); box-shadow: 0 6px 24px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { flex: none; }
.brand img { width: 186px; }
.main-nav { margin-left: auto; margin-right: auto; }
.main-nav ul { display: flex; gap: 44px; }
.main-nav a {
  position: relative; display: block; padding: 8px 0; color: var(--white);
  font-size: 15px; font-weight: 600; transition: color .2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 28px; flex: none; }
.lang { display: flex; gap: 8px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); }
.lang a { transition: color .2s ease; }
.lang a:hover { color: var(--gold); }
.lang-sep { opacity: .5; }
.lang .is-current { color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: 560px; padding-top: var(--header-h);
  background: radial-gradient(120% 90% at 15% 30%, #0A2D63 0%, var(--navy) 45%, var(--navy-deep) 100%);
  display: flex; align-items: center;
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; filter: brightness(1.18) saturate(1.25); }
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-nodes circle { animation: pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.net-nodes circle:nth-child(2n) { animation-delay: -1.5s; }
.net-nodes circle:nth-child(3n) { animation-delay: -2.7s; }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(3,20,47,.96) 30%, rgba(3,20,47,.55) 44%, rgba(3,20,47,0) 62%),
    linear-gradient(0deg, rgba(3,20,47,.95) 0%, rgba(3,20,47,0) 28%),
    linear-gradient(180deg, rgba(3,20,47,.55) 0%, rgba(3,20,47,0) 22%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 22px 52px; }
.hero-copy { max-width: 600px; }
.hero-copy .eyebrow { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(44px, 4.7vw, 70px); line-height: .98; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 20px; text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-sub { font-size: clamp(19px, 1.65vw, 24px); font-weight: 500; margin-bottom: 10px; }
.hero-desc { font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 26px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-buttons .btn { min-width: 180px; }

.hero-badge {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 18px;
  padding: 26px 64px 26px 120px;
  background: linear-gradient(135deg, rgba(6,27,60,.92), rgba(3,20,47,.97));
  clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
}
.hero-badge::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  clip-path: polygon(70px 0, 76px 0, 6px 100%, 0 100%);
}
.hero-badge::after { content: ""; position: absolute; left: 76px; right: 0; top: 0; height: 3px; background: var(--gold); }
.badge-num { font-size: 64px; font-weight: 800; font-style: italic; line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.badge-text { font-size: 19px; font-weight: 600; line-height: 1.15; }

/* =========================================================
   PILLARS
   ========================================================= */
.pillars {
  position: relative; color: var(--white);
  background: linear-gradient(180deg, var(--navy-deep) 0%, #05214A 60%, var(--navy) 100%);
  border-top: 1px solid rgba(0,157,255,.25);
}
.pillars::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-electric), transparent); opacity: .8;
}
.pillar-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.pillar { text-align: center; padding: 24px 18px 26px; position: relative; }
.pillar + .pillar::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: rgba(255,255,255,.18); }
.pillar-ico { width: 48px; height: 48px; color: var(--gold); margin: 0 auto 10px; stroke-width: 1.4; transition: transform .3s ease; }
.pillar:hover .pillar-ico { transform: translateY(-4px); }
.pillar h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 190px; margin-inline: auto; line-height: 1.45; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 30px 0 56px; background: linear-gradient(180deg, #FFFFFF 0%, var(--light) 100%); }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.01em; margin: 8px 0 12px; line-height: 1.2; }
.section-sub { color: var(--text); font-size: 16.5px; max-width: 900px; margin-inline: auto; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { border-radius: var(--radius); padding: 20px 24px 22px; display: flex; flex-direction: column; box-shadow: 0 14px 40px rgba(7,29,67,.12); }
.panel-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.panel-icon { flex: none; width: 66px; height: 66px; border-radius: 10px; display: grid; place-items: center; }
.panel-icon svg { width: 38px; height: 38px; }
.panel-head h3 { font-size: 23px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.panel-head p { font-size: 15px; }
.panel-body { display: grid; grid-template-columns: 38% 1fr; gap: 24px; align-items: center; flex: 1; }
.panel-media { border-radius: 10px; overflow: hidden; align-self: stretch; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }

.svc-list { display: grid; gap: 11px; }
.svc-list li { display: flex; gap: 14px; align-items: flex-start; }
.svc-list strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.svc-list span { display: block; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.chk { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke-width: 3; }

.panel-light { background: linear-gradient(135deg, #EAF3FF 0%, #FFFFFF 55%); border: 1px solid #E1ECF9; }
.panel-light .panel-icon { background: linear-gradient(145deg, #0A6BDB, var(--blue)); color: var(--white); box-shadow: 0 8px 18px rgba(0,87,184,.3); }
.panel-light .panel-head p, .panel-light .svc-list span { color: var(--muted); }
.panel-light .chk { color: var(--navy); }
.panel-light .panel-media { position: relative; align-self: center; aspect-ratio: 2 / 3; }
.panel-light .panel-body { grid-template-columns: 42% 1fr; }
.panel-light .panel-media img { position: absolute; inset: 0; object-position: 30% center; }

.panel-dark {
  color: var(--white);
  background:
    radial-gradient(70% 70% at 25% 55%, rgba(0,157,255,.22), transparent 70%),
    linear-gradient(145deg, #0A2B5E 0%, var(--navy) 50%, var(--navy-deep) 100%);
  border: 1px solid rgba(0,157,255,.25);
}
.panel-dark .panel-icon { background: linear-gradient(145deg, #0A6BDB, #0547A0); color: var(--white); border: 1px solid rgba(127,212,255,.5); box-shadow: 0 0 22px rgba(0,157,255,.45); }
.panel-dark .panel-head p { color: rgba(255,255,255,.85); }
.panel-dark .panel-body { grid-template-columns: 34% 1fr; }
.panel-dark .svc-list { gap: 8px; }
.panel-dark .svc-list span { color: rgba(255,255,255,.75); font-size: 12.5px; }
.panel-dark .chk { color: var(--gold); }
.shield-art { display: grid; place-items: center; overflow: visible; }
.shield-art svg { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 0 18px rgba(0,157,255,.35)); }

/* ---------- Portfolio ---------- */
.portfolio { margin-top: 36px; }
.portfolio .eyebrow { margin-bottom: 20px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.pf {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 16px 4px 14px; text-align: center; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(7,29,67,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pf svg { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.5; transition: color .25s ease, transform .25s ease; }
.pf span { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--text); }
.pf:hover { transform: translateY(-5px); border-color: rgba(0,157,255,.45); box-shadow: 0 12px 26px rgba(0,87,184,.15); }
.pf:hover svg { color: var(--blue-electric); transform: scale(1.08); }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries {
  position: relative; color: var(--white); padding: 26px 0 30px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(0,87,184,.35), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.ind-head { margin-bottom: 22px; }
.ind-head .eyebrow { margin-bottom: 8px; }
.ind-head h2 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 700; line-height: 1.25; }
.ind-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding-inline: 26px; }
.ind {
  --skew: -12deg;
  position: relative; height: 230px; overflow: hidden; border-radius: 4px;
  transform: skewX(var(--skew));
  border-bottom: 3px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.ind img {
  position: absolute; inset: 0 -30%; width: 160%; max-width: none; height: 100%; object-fit: cover;
  transform: skewX(calc(var(--skew) * -1)) scale(1.02); transition: transform .5s ease;
}
.ind::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,20,47,0) 0%, rgba(3,20,47,.2) 45%, rgba(3,20,47,.92) 100%),
              linear-gradient(0deg, rgba(0,87,184,.15), rgba(0,87,184,.15));
}
.ind-label {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: skewX(calc(var(--skew) * -1)); text-align: center;
  font-size: 15px; font-weight: 700; line-height: 1.25; min-height: 82px; justify-content: flex-end;
}
.ind-label svg { width: 36px; height: 36px; color: var(--gold); stroke-width: 1.5; }
.ind:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.ind:hover img { transform: skewX(calc(var(--skew) * -1)) scale(1.08); }

/* =========================================================
   CERTIFICATIONS
   ========================================================= */
.certs { padding: 22px 0 28px; background: linear-gradient(180deg, #FFFFFF 0%, var(--light) 100%); }
.certs .eyebrow { margin-bottom: 14px; }
.certs-grid { display: grid; grid-template-columns: 250px 1fr 230px; gap: 32px; align-items: center; }
.certs-intro { border-left: 4px solid var(--gold); padding-left: 18px; }
.certs-intro h3 { font-size: 21px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.certs-intro p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.certs-main { display: flex; align-items: stretch; justify-content: center; gap: 26px; }
.cert-group { display: flex; flex-direction: column; align-items: center; }
.cert-group-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue);
  margin-bottom: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: center;
}
.cert-group-org { padding-right: 26px; border-right: 1px solid var(--line); }
.cert-row { display: flex; gap: 22px; }
.cert { width: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert-cap { margin-top: 8px; font-size: 11.5px; line-height: 1.3; color: var(--muted); font-weight: 600; }
.cert-group-org .cert-cap { font-size: 13px; color: var(--text); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

.badge {
  width: 86px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; line-height: 1; transition: transform .25s ease;
}
.cert:hover .badge { transform: translateY(-3px); }
.badge span { font-size: 21px; letter-spacing: .01em; }
.badge small { font-size: 9px; font-weight: 700; margin-bottom: 4px; letter-spacing: .04em; opacity: .9; }
.badge-crest { width: 110px; background: none; color: var(--navy); }
.crest-word { font-size: 34px !important; font-weight: 800; letter-spacing: .02em !important; border-top: 3px solid var(--blue); border-bottom: 3px solid var(--blue-electric); padding: 10px 2px; }
.badge-cissp { background: linear-gradient(160deg, #1F8A5B, #146A44); border-radius: 8px; box-shadow: 0 6px 14px rgba(20,106,68,.25); }
.badge-cissp span { font-size: 20px; font-weight: 600; }
.badge-hex { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); width: 96px; }
.badge-oscp { background: linear-gradient(160deg, #F7892B, #E2611A); }
.badge-oswp { background: linear-gradient(160deg, #1D5FC0, #0D3C8C); }
.badge-shield { clip-path: path("M43 0 L86 12 L86 46 C86 70 66 82 43 86 C20 82 0 70 0 46 L0 12 Z"); background: linear-gradient(170deg, #1C2C52, #0B1630); position: relative; }
.badge-crtp { padding-bottom: 8px; }
.badge-crtp small { color: #FF8A8A; }

.certs-more { border-left: 1px solid var(--line); padding-left: 28px; }
.more-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.certs-more ul { display: grid; grid-template-columns: auto auto; gap: 8px 26px; }
.certs-more li { position: relative; padding-left: 16px; font-size: 13.5px; font-weight: 600; }
.certs-more li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative; overflow: hidden; color: var(--white); padding: 34px 0;
  background: linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 45%, #08306A 100%);
}
.cta-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.2; }
.cta-text { font-size: 16px; color: rgba(255,255,255,.88); max-width: 380px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); }
.cta-phone:hover { color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--white); color: var(--text); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding-block: 26px; }
.footer-brand img { width: 170px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 14px; font-weight: 600; padding-left: 40px; border-left: 1px solid var(--line); }
.footer-nav a:hover { color: var(--blue); }
.footer-contact { font-style: normal; font-size: 13px; line-height: 1.45; display: grid; gap: 4px; max-width: 360px; }
.footer-contact strong { font-size: 14px; }
.footer-contact span { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.footer-contact .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--blue); }
.footer-contact a:hover { color: var(--blue); }
.footer-bottom { background: var(--light); border-top: 1px solid var(--line); padding: 12px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Thai typography ---------- */
html[lang="th"] body { line-height: 1.65; }
html[lang="th"] .hero h1 { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.22; }
html[lang="th"] .hero-sub, html[lang="th"] .section-head h2, html[lang="th"] .ind-head h2,
html[lang="th"] .cta h2, html[lang="th"] .certs-intro h3, html[lang="th"] .panel-head h3 { line-height: 1.4; }
html[lang="th"] .badge-text { line-height: 1.3; font-size: 17px; }
html[lang="th"] .svc-list strong, html[lang="th"] .svc-list span, html[lang="th"] .pf span,
html[lang="th"] .ind-label, html[lang="th"] .pillar p { line-height: 1.5; }
html[lang="th"] .eyebrow { letter-spacing: 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--navy);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .ico { width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .ind.reveal { transform: skewX(var(--skew)) translateY(18px); }
.js .ind.reveal.is-in { transform: skewX(var(--skew)); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .main-nav ul { gap: 28px; }
  .header-actions { gap: 18px; }
  .panel { padding: 22px 22px 24px; }
  .panel-body { grid-template-columns: 1fr; }
  .panel-dark .panel-body, .panel-light .panel-body { grid-template-columns: 1fr; }
  .panel-media, .panel-light .panel-media { height: 220px; aspect-ratio: auto; align-self: stretch; }
  .shield-art { height: 220px; }
  .shield-art svg { height: 100%; width: auto; }
  .portfolio-grid { grid-template-columns: repeat(6, 1fr); }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .certs-main { grid-column: 1 / -1; grid-row: 2; }
  .certs-more { border-left: 0; padding-left: 0; }
}

@media (max-width: 1100px) {
  .lang { display: none; }
  .main-nav ul { gap: 22px; }
  .main-nav a { font-size: 14px; }
  .header-cta { display: none; }
  .ind-grid { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
  .cert-row { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .brand img { width: 160px; }
  .nav-toggle { display: block; }
  .header-actions .lang { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    background: rgba(3,20,47,.98); padding: 24px 32px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--gold); }
  .nav-mobile-extra { display: block; margin-top: 28px; }
  .nav-mobile-extra .btn { width: 100%; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  body.nav-open { overflow: hidden; }

  .hero { min-height: 560px; }
  .hero-media { width: 80%; }
  .pillar-list { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(4)::before { display: none; }
  .panels { grid-template-columns: 1fr; }
  .panel-body, .panel-dark .panel-body, .panel-light .panel-body { grid-template-columns: 38% 1fr; }
  .panel-media, .shield-art { height: auto; }
  .panel-light .panel-media { aspect-ratio: 4 / 5; align-self: center; }
  .cta-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .cta-text { margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 22px; }
  .footer-nav { border-left: 0; padding-left: 0; }
  .footer-contact { justify-items: center; }
  .footer-contact span { justify-content: center; }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero-media { width: 100%; opacity: .55; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,20,47,.7) 0%, rgba(3,20,47,.55) 50%, rgba(3,20,47,.95) 100%); }
  .hero-inner { padding-block: 40px 30px; }
  .hero-badge { position: relative; align-self: flex-end; padding: 18px 28px 18px 80px; }
  .badge-num { font-size: 48px; }
  .badge-text { font-size: 15px; }
  .pillar-list { grid-template-columns: repeat(2, 1fr); }
  .pillar { padding: 24px 10px; }
  .pillar + .pillar::before { display: none; }
  .pillar:nth-child(odd):last-child { grid-column: 1 / -1; }
  .pillar { border-top: 1px solid rgba(255,255,255,.1); }
  .services { padding-top: 40px; }
  .panel-body, .panel-dark .panel-body, .panel-light .panel-body { grid-template-columns: 1fr; }
  .panel-media, .panel-light .panel-media { height: 220px; aspect-ratio: auto; align-self: stretch; }
  .shield-art { height: 200px; }
  .shield-art svg { height: 100%; width: auto; }
  .panel-head { gap: 16px; }
  .panel-icon { width: 54px; height: 54px; }
  .panel-head h3 { font-size: 20px; }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .industries { padding: 40px 0; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 0; gap: 12px; }
  .ind { --skew: 0deg; height: 190px; border-radius: 10px; }
  .ind img { inset: 0; width: 100%; }
  .ind:last-child { grid-column: 1 / -1; }
  .certs { padding: 40px 0; }
  .certs-grid { grid-template-columns: 1fr; gap: 26px; }
  .certs-main { grid-row: auto; flex-direction: column; align-items: center; gap: 20px; }
  .cert-group-org { padding-right: 0; border-right: 0; }
  .cert-row { gap: 14px 18px; }
  .cert { width: 130px; }
  .certs-more { text-align: left; }
  .cta { padding: 44px 0; }
}

@media (max-width: 480px) {
  .brand img { width: 140px; }
  .header-actions { gap: 6px; }
  .header-actions .lang { font-size: 13px; }
  .hero h1 { font-size: 44px; }
  .hero-buttons { flex-direction: column; gap: 14px; }
  .hero-buttons .btn { width: 100%; }
  .hero-badge { align-self: stretch; justify-content: flex-end; }
  .pillar h3 { font-size: 16px; }
  .pillar p { font-size: 13px; }
  .panel { padding: 18px 16px 20px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pf span { font-size: 12px; }
  .ind { height: 160px; }
  .ind-label { font-size: 14px; }
  .cert-row { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
  .cta-actions .btn { width: 100%; }
  .cta-actions { align-items: stretch; }
  .cta-phone { justify-content: center; }
  .footer-nav { gap: 10px 20px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .ind.reveal { opacity: 1; transform: none; }
  .js .ind.reveal { transform: skewX(var(--skew)); }
}
