/* ==========================================================================
   DC ADVANCED ENGINEERING MATERIALS — DESIGN SYSTEM
   Signature motif: a hexagonal crystal-lattice grid (nods to wafer /
   crystalline material structure) used sparingly across hero backgrounds,
   dividers and hover states.
   ========================================================================== */

:root {
  /* Brand palette — fixed per brief */
  --white: #FFFFFF;
  --soft-white: #E6F2F2;
  --electric-blue: #1769FF;
  --deep-blue: #0B1F33;
  --cyan: #00B8D4;
  --light-cyan: #E6F9FC;
  --dark-text: #17202A;
  --secondary-text: #64748B;
  --border: #DCE3EA;

  /* Aliases matching the palette spec names 1:1 (same values as above) */
  --off-white: #E6F2F2;
  --navy: #0B1F33;
  --blue: #1769FF;
  --light-blue: #EAF2FF;
  --text: #17202A;
  --grey: #64748B;

  --gradient-primary: linear-gradient(120deg, var(--electric-blue), var(--cyan));
  --gradient-deep: linear-gradient(135deg, var(--deep-blue), var(--cyan));

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(23, 32, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(11, 31, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.14);

  --container-w: 1240px;
  --nav-h: 84px;
  --nav-h-scrolled: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--soft-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { line-height: 1.7; color: var(--secondary-text); margin: 0 0 1em; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--electric-blue); color: #fff;
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--deep-blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; background: var(--cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: linear-gradient(90deg, var(--deep-blue), var(--cyan)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--dark-text); }
.btn-outline:hover { border-color: var(--electric-blue); color: var(--electric-blue); transform: translateY(-2px); }
.btn-ghost { color: var(--electric-blue); padding-left: 0; padding-right: 0; }
.btn-ghost:hover span { transform: translateX(6px); }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  height: var(--nav-h-scrolled);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(23,32,42,0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { color: var(--electric-blue); display: flex; }
.brand-logo-img {
  display: block; max-width: 34px; max-height: 34px; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--dark-text); letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-text); }

.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  display: inline-block; padding: 10px 13px; font-size: 14px; font-weight: 600;
  color: var(--dark-text); border-radius: 999px; transition: color .25s, background .25s;
  position: relative; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--electric-blue); background: var(--light-cyan); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--dark-text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   PAGE / HERO SHELL
   ========================================================================== */
main { display: block; padding-top: var(--nav-h); }

.page-hero {
  position: relative; overflow: hidden;
  background: var(--soft-white);
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { color: var(--deep-blue); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 48px); max-width: 820px; }
.page-hero p.lead { font-size: 18px; max-width: 620px; }

.lattice-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
}

/* ==========================================================================
   HOME HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--soft-white);
  padding: 148px 0 120px;
  min-height: 92vh;
  display: flex; align-items: center;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.02em;
}
.hero-copy h1 .accent {
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p.lead { font-size: 19px; max-width: 480px; margin-bottom: 34px; color: var(--secondary-text); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat { border-left: 2px solid var(--border); padding-left: 16px; }
.hero-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--deep-blue); display: block; }
.hero-stat .label { font-size: 13px; color: var(--secondary-text); }

.hero-visual { position: relative; aspect-ratio: 1/1; }
.hero-visual svg { width: 100%; height: 100%; }

.hero-bg-glow {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none;
}
.glow-1 { width: 480px; height: 480px; background: var(--cyan); top: -140px; right: -120px; }
.glow-2 { width: 380px; height: 380px; background: var(--electric-blue); bottom: -160px; left: -100px; opacity: .18; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { position: relative; padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--soft-white); }
.section-dark {
  background: var(--gradient-deep); color: #fff;
}
.section-dark .eyebrow { color: var(--light-cyan); }
.section-dark .eyebrow::before { background: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.82); }
.section-dark .split-list li { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- About split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.split-media { position: relative; }
.split-media-accent {
  position: absolute; bottom: -28px; right: -28px; width: 42%;
  border-radius: var(--radius-md); overflow: hidden; border: 5px solid #fff;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5; z-index: 2;
}
.split-media-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .split-media-accent { width: 46%; bottom: -18px; right: -12px; }
}
.split-list { margin-top: 28px; display: grid; gap: 18px; }
.split-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--dark-text); font-weight: 600; }
.split-list li::before {
  content: ''; flex: none; width: 10px; height: 10px; margin-top: 6px; background: var(--gradient-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- Visual placeholder blocks (used where photography is not yet supplied) ---------- */
.visual-block {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--light-cyan), var(--soft-white));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4/3;
}
.visual-block.square { aspect-ratio: 1/1; }
.visual-block.tall { aspect-ratio: 3/4; }
.visual-block .placeholder-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(23,32,42,0.72); color: #fff; font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .02em;
}
.visual-block svg { width: 60%; height: 60%; color: var(--electric-blue); opacity: .85; }
.visual-block svg.illustration-svg { width: 100%; height: 100%; opacity: 1; }
.visual-block img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards: materials / capabilities / industries ---------- */
/* ---------- Materials industry filter ---------- */
.materials-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border);
  background: #fff; color: var(--secondary-text); cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--electric-blue); color: var(--electric-blue); }
.filter-btn.is-active { background: var(--gradient-primary); border-color: transparent; color: #fff; }
.product-card.is-hidden { display: none; }

/* ---------- Google Maps embed cards ---------- */
.map-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.map-card h3 { font-size: 17px; padding: 22px 24px 4px; margin-bottom: 4px; }
.map-card .map-address { padding: 0 24px 20px; font-size: 13.5px; color: var(--secondary-text); }
.map-embed { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--soft-white); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(23,105,255,0.25); }

.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card .visual-block { border-radius: 0; border: none; border-bottom: 1px solid var(--border); }
.product-card .card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.product-card h3 { font-size: 20px; margin-bottom: 10px; }
.product-card p { font-size: 14.5px; margin-bottom: 18px; flex: 1; }

.icon-badge {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--light-cyan); color: var(--electric-blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Industries scroller ---------- */
.industry-scroller {
  display: flex; gap: 24px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: thin;
}
.industry-card {
  scroll-snap-align: start; flex: 0 0 340px; border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 3/4; border: 1px solid var(--border);
}
.industry-card .visual-block { position: absolute; inset: 0; border-radius: 0; border: none; }
.industry-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,31,51,0.88) 0%, rgba(11,31,51,0.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff;
}
.industry-card .overlay h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.industry-card .overlay p { color: rgba(255,255,255,0.82); font-size: 14px; margin-bottom: 16px; }
.industry-card .overlay a { color: #fff; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block { text-align: center; padding: 8px; }
.stat-block .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 46px); color: var(--electric-blue); display:block; }
.stat-block .label { font-size: 14px; color: var(--secondary-text); margin-top: 6px; }
.section-dark .stat-block .num { color: #fff; }
.section-dark .stat-block .label { color: rgba(255,255,255,.78); }

/* ---------- Timeline (projects) ---------- */
.project-list { display: grid; gap: 22px; }
.project-row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: center;
  padding: 20px 30px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.project-row:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(23,105,255,.25); }
.project-row-media { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.project-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-row-media svg { width: 100%; height: 100%; display: block; color: var(--electric-blue); }
.project-row-media .p-industry { position: absolute; top: 10px; left: 10px; margin: 0; }
.project-row .p-industry { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-blue); background: var(--light-cyan); padding: 8px 12px; border-radius: 999px; text-align: center; }
.project-row h3 { font-size: 19px; margin-bottom: 6px; }
.project-row p { margin: 0; font-size: 14.5px; }
.project-row .p-markets { font-size: 12.5px; color: var(--cyan); font-weight: 700; }

/* ---------- Partners ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-tile {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--soft-white);
  display: flex; align-items: center; justify-content: center; padding: 26px 24px; min-height: 120px;
  font-family: var(--font-display); font-weight: 700; color: var(--secondary-text); text-align: center;
  transition: border-color .3s, color .3s, background .3s;
}
.partner-tile img { max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partner-tile:hover img { filter: grayscale(0); opacity: 1; }
.partner-tile:hover { border-color: var(--electric-blue); color: var(--electric-blue); background: var(--light-cyan); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; }
.news-card .meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--secondary-text); margin-bottom: 14px; }
.news-card .meta .cat { color: var(--electric-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); background: var(--gradient-deep); color: #fff;
  padding: 72px 64px; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cta-band .btn-primary { background: #fff; color: var(--deep-blue); }
.cta-band .btn-primary span { color: var(--deep-blue); }

/* ==========================================================================
   FORMS (contact)
   ========================================================================== */
.form-shell {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--dark-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; color: var(--dark-text); background: var(--soft-white);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--electric-blue); box-shadow: 0 0 0 4px var(--light-cyan); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--secondary-text); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #DC2626; background: #FEF2F2; }
.field.has-error .field-hint { color: #DC2626; }
.field-error-msg { display: none; font-size: 12px; color: #DC2626; margin-top: 6px; }
.field.has-error .field-error-msg { display: block; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 24px; font-weight: 600; }
.alert-success { background: var(--light-cyan); color: var(--deep-blue); border: 1px solid rgba(0,184,212,.35); }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FCA5A5; }

.contact-info-card { background: var(--soft-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14.5px; margin: 0; }
.map-link {
  color: var(--electric-blue); text-decoration: underline;
  text-decoration-color: rgba(23,105,255,.35); text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.map-link:hover { color: var(--deep-blue); text-decoration-color: var(--deep-blue); }
.map-link::after { content: '↗'; display: inline-block; margin-left: 4px; font-size: 12px; }

/* ==========================================================================
   SCROLL / REVEAL ANIMATION HOOKS (JS toggles .is-visible)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* Gradient ambient movement */
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.05); }
}
.glow-1 { animation: drift 14s ease-in-out infinite; }
.glow-2 { animation: drift 18s ease-in-out infinite reverse; }

/* Lattice rotate */
@keyframes lattice-spin { to { transform: rotate(360deg); } }
.lattice-rotate { animation: lattice-spin 60s linear infinite; transform-origin: center; }

/* Back to top */
.back-to-top {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: background .3s, transform .3s;
}
.back-to-top:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark-text); color: rgba(255,255,255,.72); padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-mark {
  color: var(--cyan); margin-bottom: 16px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); padding: 6px;
}
.footer-brand .brand-logo-img { max-width: 30px; max-height: 30px; mix-blend-mode: normal; }
.footer-tagline { color: rgba(255,255,255,.68); font-size: 14.5px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
  transition: background .3s, border-color .3s;
}
.footer-social a:hover { background: var(--electric-blue); border-color: var(--electric-blue); }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-nav ul { display: grid; gap: 12px; }
.footer-nav a { font-size: 14.5px; color: rgba(255,255,255,.68); transition: color .25s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-offices p { color: rgba(255,255,255,.68); font-size: 14px; margin-bottom: 16px; }
.footer-contact p { color: rgba(255,255,255,.68); font-size: 14px; }
.footer-email { color: var(--cyan); font-weight: 700; font-size: 15px; display: inline-block; margin-bottom: 20px; }
.footer-cta { border-color: rgba(255,255,255,.25); color: #fff; }
.footer-cta:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; }
.footer-bottom-inner p { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --nav-h: 76px; --nav-h-scrolled: 60px; }
  .hero { padding: 128px 0 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .cta-band { grid-template-columns: 1fr; text-align: left; padding: 52px 40px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: #fff; padding: 24px 28px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 16px 18px; font-size: 17px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr; text-align: left; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-shell { padding: 28px 22px; }
  .cta-band { padding: 40px 26px; }
  .hero-stats { gap: 24px; }
  .industry-card { flex-basis: 82vw; }
}