/* =====================================================
   PT. BERKAT MARGA SEMESTA — Design System
   Technology + AI + Industrial Engineering + Creative
   ===================================================== */

:root {
  --ink-900: #060a14;
  --ink-800: #0a1020;
  --ink-700: #0d1526;
  --ink-600: #111c33;
  --ink-500: #16223c;

  --line-dark: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);

  --paper: #f5f7fb;
  --card: #ffffff;

  --text-light: #f2f6ff;
  --text-muted-dark: rgba(226, 232, 255, 0.62);
  --text-dark: #0b1220;
  --muted: #5b6b85;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --amber: #fbbf24;
  --green: #34d399;

  --grad-main: linear-gradient(120deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
  --grad-cta: linear-gradient(120deg, #0b0f22 0%, #10233f 40%, #1d2b55 100%);
  --grad-cta-glow: linear-gradient(120deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.55));

  --font-display: "Space Grotesk", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-1: 0 10px 30px rgba(6, 10, 26, 0.08);
  --shadow-2: 0 24px 60px rgba(6, 10, 26, 0.18);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.35);

  --container: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
main { overflow-wrap: break-word; }

::selection {
  background: rgba(59, 130, 246, 0.25);
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
}

.section {
  padding: 110px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  max-width: 640px;
}
.section-head p.sub {
  color: var(--muted);
  max-width: 460px;
  font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 17px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(59, 130, 246, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--line-dark);
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink-800);
  color: var(--text-light);
}
.btn-dark:hover {
  background: var(--ink-600);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--ink-800);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(6, 10, 26, 0.2);
}

.btn-sm { padding: 11px 20px; font-size: 13.5px; }

/* =====================================================
   NAVBAR (dark, glassy)
   ===================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: rgba(6, 10, 20, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 20, 0.92);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-main);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer .brand-logo {
  height: 56px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; }
.brand-name span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  position: relative;
  color: rgba(226, 232, 255, 0.78);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-main);
  transition: width 0.28s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: #fff; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 89;
  background: rgba(6, 10, 20, 0.98);
  border-bottom: 1px solid var(--line-dark);
  display: none;
  flex-direction: column;
  padding: 22px 24px 34px;
  gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(226, 232, 255, 0.85);
  padding: 14px 8px;
  font-size: 17px;
  font-family: var(--font-display);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(59, 130, 246, 0.12); color: #fff; }

/* =====================================================
   BLUEPRINT GRID BACKDROP
   ===================================================== */
.grid-bg {
  position: relative;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 480px at 95% 10%, rgba(139, 92, 246, 0.14), transparent 60%);
}
.grid-bg > * { position: relative; z-index: 1; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  padding: calc(var(--nav-h) + 40px) 0 90px;
  position: relative;
  overflow: hidden;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(600px 400px at 60% 100%, rgba(59, 130, 246, 0.1), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  color: #fff;
  margin-bottom: 22px;
  max-width: 720px;
}
.hero h1 .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--text-muted-dark);
  font-size: 17.5px;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: #fff;
}
.hero-stat span {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted-dark);
}

/* hero visual (SVG panel) */
.hero-visual {
  position: relative;
}
.hero-panel {
  border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(6px);
}
.hero-panel svg { width: 100%; height: auto; }

/* =====================================================
   TICKER (positioning marquee)
   ===================================================== */
.ticker {
  background: var(--ink-900);
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 54px;
  padding-right: 54px;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(226, 232, 255, 0.55);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.ticker span::before {
  content: "◆";
  font-size: 9px;
  color: var(--cyan);
  opacity: 0.8;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.svc-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  cursor: pointer;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2);
  border-color: rgba(59, 130, 246, 0.25);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: rgba(11, 18, 32, 0.08);
  transition: color 0.3s ease;
}
.svc-card:hover .svc-num { color: rgba(59, 130, 246, 0.18); }

.svc-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 22px;
  transition: transform 0.4s ease;
}
.svc-card:hover .svc-icon {
  transform: rotate(-6deg) scale(1.05);
  background: var(--grad-main);
  box-shadow: var(--shadow-glow);
}
.svc-icon svg { width: 30px; height: 30px; stroke: var(--blue); transition: stroke 0.3s ease; }
.svc-card:hover .svc-icon svg { stroke: #fff; }

.svc-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink-800);
}
.svc-card .svc-blurb {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}
.svc-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* =====================================================
   MODALS
   ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.32s ease;
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--ink-800); }

/* modal content dark header strip */
.modal-head {
  background: var(--ink-800);
  padding: 64px 76px 40px 48px;
  color: var(--text-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.modal-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 10% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(400px 240px at 95% 5%, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
}
.modal-head > * { position: relative; z-index: 1; }
.modal-head .m-num { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.24em; color: var(--cyan); text-transform: uppercase; margin-bottom: 12px; }
.modal-head h3 { font-size: clamp(24px, 3.4vw, 34px); color: #fff; max-width: 600px; }
.modal-head .m-icon { margin-top: 24px; }

.modal-body { padding: 40px 48px 48px; }
.modal-body h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 26px 0 14px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.modal-body li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 9px;
}
.modal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-main);
}
.modal-body ul.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}
.modal-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

/* =====================================================
   WHY CHOOSE BMS
   ===================================================== */
.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-item {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.why-item:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}
.why-item .w-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.why-item .w-icon svg { width: 22px; height: 22px; stroke: #fff; }
.why-item h4 { color: var(--text-light); font-size: 17px; margin-bottom: 8px; }
.why-item p { color: var(--text-muted-dark); font-size: 14px; }

/* =====================================================
   PRODUCT CATALOG
   ===================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--card);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.cat-top {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--ink-800);
  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);
  background-size: 28px 28px;
  overflow: hidden;
}
.cat-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 140px at 50% 0%, rgba(34, 211, 238, 0.18), transparent 70%);
}
.cat-top svg {
  width: 74px;
  height: 74px;
  stroke: var(--cyan);
  opacity: 0.9;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.cat-card:hover .cat-top svg { transform: scale(1.12) rotate(-4deg); }
.cat-index {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.cat-body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-tag {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cat-body h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink-800); }
.cat-body .cat-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.cat-prods {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.cat-prods span {
  font-size: 12.5px;
  background: var(--paper);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--ink-600);
}
.cat-spec {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(11, 18, 32, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.cat-spec b { color: var(--ink-800); font-weight: 600; }
.cat-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cat-actions .btn { flex: 1; }

/* =====================================================
   CTA SECTION (final pre-footer, gradient)
   ===================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.cta-band .container {
  border-radius: var(--radius-lg);
  background: var(--grad-cta);
  padding: 78px 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  text-align: center;
  color: var(--text-light);
}
.cta-band .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 20% 0%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(560px 320px at 85% 100%, rgba(139, 92, 246, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band .cta-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  color: #fff;
  max-width: 760px;
  margin: 0 auto 18px;
}
.cta-band p {
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto 34px;
  font-size: 16.5px;
}
.cta-band .btn { margin-inline: 4px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--ink-900);
  color: var(--text-muted-dark);
  padding-top: 80px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer .brand { margin-bottom: 20px; }
.footer-desc { font-size: 14px; max-width: 320px; }
.footer h5 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--cyan); padding-left: 5px; }
.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 14px;
}
.footer-contact svg { width: 17px; height: 17px; stroke: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text-light);
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 12% 0%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(640px 360px at 88% 20%, rgba(139, 92, 246, 0.16), transparent 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero .crumb {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 18px;
}
.page-hero .crumb a { color: var(--cyan); }
.page-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  color: #fff;
  max-width: 780px;
}
.page-hero p {
  color: var(--text-muted-dark);
  font-size: 17px;
  max-width: 660px;
  margin-top: 18px;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy h3 { font-size: 26px; margin: 18px 0 14px; color: var(--ink-800); }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-copy .stats {
  display: flex;
  gap: 40px;
  padding: 26px 0;
  border-block: 1px solid rgba(11, 18, 32, 0.08);
  margin: 22px 0;
}
.about-copy .stats b { font-family: var(--font-display); font-size: 30px; color: var(--ink-800); }
.about-copy .stats span { font-size: 13px; color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.pillar {
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.pillar .p-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.pillar .p-icon svg { width: 23px; height: 23px; stroke: var(--blue); }
.pillar h4 { font-size: 16.5px; color: var(--ink-800); margin-bottom: 5px; }
.pillar p { font-size: 13.5px; color: var(--muted); }

/* ---------- Directors ---------- */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.director-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.director-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}
.director-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2);
  border-color: rgba(59, 130, 246, 0.25);
}
.director-card:hover::before { transform: scaleX(1); }
.director-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-800);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.director-card:hover .director-photo img { transform: scale(1.06); }
.director-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.55), transparent 45%);
  pointer-events: none;
}
.director-role-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: rgba(6, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
}
.director-info { padding: 26px 26px 30px; }
.director-info h3 { font-size: 21px; color: var(--ink-800); margin-bottom: 6px; }
.director-info .d-title { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.director-info p { font-size: 14.5px; color: var(--muted); }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: var(--card);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.news-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.news-thumb svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  stroke: var(--cyan);
  opacity: 0.85;
  transition: transform 0.4s ease;
}
.news-card:hover .news-thumb svg { transform: scale(1.15); }
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.news-body h3 { font-size: 19px; color: var(--ink-800); }
.news-body p { font-size: 14px; color: var(--muted); flex: 1; }
.news-body a.more { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; }
.news-body a.more svg { width: 15px; height: 15px; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--card);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-1);
}
.contact-card h3 {
  font-size: 22px;
  color: var(--ink-800);
  margin-bottom: 20px;
}
.contact-block {
  padding: 20px 0;
  border-bottom: 1px dashed rgba(11, 18, 32, 0.12);
}
.contact-block:last-of-type { border-bottom: 0; }
.contact-block h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.contact-block .addr { line-height: 1.7; color: var(--text-dark); font-size: 15px; }
.contact-block .addr b { display: block; margin-bottom: 6px; font-family: var(--font-display); color: var(--ink-800); }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 10px;
}
.contact-detail svg { width: 19px; height: 19px; stroke: var(--blue); flex-shrink: 0; }

.map-embed {
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.1);
  box-shadow: var(--shadow-1);
}
.map-embed iframe { width: 100%; height: 320px; display: block; border: 0; filter: grayscale(0.2); }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  font-family: var(--font-display);
}
.form-field label span { color: var(--blue); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 18, 32, 0.14);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  margin: 6px 0 24px;
  grid-column: 1 / -1;
}
.form-check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--green, #059669);
}

/* =====================================================
   REVEAL ANIMATION
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .svc-grid, .cat-grid, .why-list, .directors-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav .btn { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .svc-grid, .cat-grid, .why-list, .news-grid, .pillars, .directors-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 76px 0; }
  .modal-body { padding: 28px 22px 36px; }
  .modal-head { padding: 56px 56px 32px 24px; }
  .modal-body ul.two-col { grid-template-columns: 1fr; }
  .cta-band .container { padding: 52px 24px; }
}