/* ==========================================================================
   MBZ Enterprise LLC — Design Tokens
   Concept: the visual language sits between an industrial control panel and
   a security operations console — two disciplines the business unifies.

   Palette:
     --graphite-950  #0D0F12  deepest bg
     --graphite-900  #14171C  header / hero
     --graphite-800  #1B1F26  cards on dark
     --copper        #C9793D  automation / industrial accent
     --copper-2      #E0995E  copper gradient end
     --teal          #2BB3A3  cybersecurity accent
     --teal-2        #4ED4C4  teal gradient end
     --ink           #14171C  heading text on light
     --slate         #5C6472  body text on light
     --mist          #F4F5F7  light section bg
     --line          #E3E5EA  hairline borders
   Type:
     Display -> 'Space Grotesk' (technical, slightly angular)
     Body    -> 'IBM Plex Sans'
     Mono    -> 'JetBrains Mono' (console / readout numerals & labels)
   ========================================================================== */

:root {
  --graphite-950: #0D0F12;
  --graphite-900: #14171C;
  --graphite-800: #1B1F26;
  --graphite-700: #262B34;
  --copper: #C9793D;
  --copper-2: #E0995E;
  --teal: #2BB3A3;
  --teal-2: #4ED4C4;
  --ink: #14171C;
  --slate: #5C6472;
  --slate-light: #8A93A0;
  --mist: #F4F5F7;
  --line: #E3E5EA;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

  --shadow-card: 0 1px 2px rgba(13, 15, 18, 0.04), 0 12px 28px -14px rgba(13, 15, 18, 0.16);
  --shadow-card-hover: 0 4px 10px rgba(13, 15, 18, 0.06), 0 24px 40px -16px rgba(13, 15, 18, 0.22);

  --max-width: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@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;
  }
  .tilt-card { transform: none !important; }
  .hero-spotlight { display: none; }
}

/* Soft cross-fade between pages where the browser supports it (no-op elsewhere) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--copper), var(--teal));
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(43, 179, 163, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(43, 179, 163, 0.5); }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.55); }
.btn-block { width: 100%; }
.btn-nav { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--graphite-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-mark-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--slate-light);
  text-transform: uppercase;
  line-height: 1.4;
}
.brand-sub-inline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  text-transform: uppercase;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--teal));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 10%, rgba(43, 179, 163, 0.18), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(201, 121, 61, 0.16), transparent 45%),
    var(--graphite-950);
  overflow: hidden;
  padding: 100px 0 76px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,0.9), transparent 75%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.75;
  pointer-events: none;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 20%), rgba(43, 179, 163, 0.14), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-2);
  border-left: 3px solid var(--teal-2);
  padding-left: 14px;
  margin-bottom: 28px;
}
.eyebrow-dark {
  color: var(--copper);
  border-left-color: var(--copper);
}

.hero-title {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin-bottom: 26px;
}
.accent-copper { color: var(--copper-2); }
.accent-teal { color: var(--teal-2); }
.hero-lead {
  color: rgba(255,255,255,0.7);
  font-size: 1.12rem;
  max-width: 58ch;
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.badge-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.badge-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--teal));
  flex-shrink: 0;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--mist);
}
.section-dark {
  background: var(--graphite-900);
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: 14px 0 16px;
}
.section-lead {
  color: var(--slate);
  font-size: 1.03rem;
}
.body-copy {
  color: var(--slate);
  font-size: 0.98rem;
  margin-top: 18px;
}
.body-copy--light {
  color: rgba(255,255,255,0.68);
}

/* ==========================================================================
   Convergence (About)
   ========================================================================== */
.convergence-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.convergence-copy h2 { margin: 14px 0 18px; }

.stat-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.stat-value {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.convergence-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}
.venn {
  fill-opacity: 0.16;
  stroke-width: 1.5;
  mix-blend-mode: multiply;
}
.venn-copper { fill: var(--copper); stroke: var(--copper); }
.venn-copper-2 { fill: var(--copper-2); stroke: var(--copper-2); }
.venn-teal { fill: var(--teal); stroke: var(--teal); }
.venn-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.venn-label-teal { fill: #0E7A6E; }

/* ==========================================================================
   Services
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-card-hover);
}
.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--white);
  margin-bottom: 18px;
}
.service-tag svg { display: block; }
.service-card--copper .service-tag { background: linear-gradient(135deg, var(--copper), var(--copper-2)); }
.service-card--teal .service-tag { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.service-card--copper { border-top: 3px solid var(--copper); }
.service-card--teal { border-top: 3px solid var(--teal); }
.service-card h3 {
  font-size: 1.06rem;
  margin-bottom: 16px;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-card ul li {
  font-size: 0.85rem;
  color: var(--slate);
  padding-left: 16px;
  position: relative;
}
.service-card--copper ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
}
.service-card--teal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ==========================================================================
   Industries
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: 18px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.industry-grid li:hover {
  box-shadow: var(--shadow-card-hover);
}
.industry-grid li:nth-child(even) {
  border-left-color: var(--teal);
}
.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--copper-2));
}
.industry-grid li:nth-child(even) .industry-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
}

/* ==========================================================================
   Trust / Compliance
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}
.trust-grid h2 { color: var(--white); margin: 14px 0 4px; }
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--graphite-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 22px;
}
.trust-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.trust-item h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.trust-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.86rem;
}

/* ==========================================================================
   Target Market
   ========================================================================== */
.market-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.market-grid h2 { margin: 14px 0 16px; }
.market-card {
  background: linear-gradient(155deg, var(--graphite-800), var(--graphite-950));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.market-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-top: 18px;
}
.market-label:first-child { margin-top: 0; }
.market-value {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-info h2 { margin-bottom: 14px; }
.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
}
.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.info-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  margin-bottom: 4px;
}
.info-value {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.map-embed iframe {
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--copper); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--mist);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--slate-light); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #D64545;
}
.field-error {
  color: #D64545;
  font-size: 0.78rem;
  margin-top: 6px;
  display: none;
}
.form-field.error .field-error { display: block; }

.form-note {
  text-align: center;
  color: var(--slate-light);
  font-size: 0.85rem;
  margin-top: 16px;
}
.form-note.success {
  color: #1F9254;
  font-weight: 600;
}

/* ==========================================================================
   Interactive ICS/OT Architecture Diagram
   ========================================================================== */
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-layer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.arch-layer:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.arch-layer.active {
  border-left-color: var(--teal);
  background: linear-gradient(90deg, rgba(43,179,163,0.08), transparent);
  box-shadow: var(--shadow-card);
}
.arch-layer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-2);
  font-weight: 600;
}
.arch-layer-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.arch-detail {
  position: sticky;
  top: 100px;
  background: var(--graphite-950);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 220px;
  transition: opacity 0.15s ease;
  color: var(--white);
}
.arch-detail-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-2);
  border: 1px solid var(--teal-2);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.arch-detail h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--white);
}
.arch-detail p {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ==========================================================================
   Team Members Page
   ========================================================================== */
.hero--compact {
  padding: 76px 0 64px;
}
.hero--compact .hero-inner {
  max-width: 720px;
}

.main-nav a.active-link {
  color: var(--white);
}
.main-nav a.active-link::after {
  transform: scaleX(1);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  box-shadow: var(--shadow-card-hover);
}
.team-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--graphite-900);
  overflow: hidden;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-body {
  padding: 22px 22px 26px;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--copper), var(--teal)) 1;
}
.team-card-name {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.team-card-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.team-card-desc {
  color: var(--slate);
  font-size: 0.9rem;
}
.team-empty {
  text-align: center;
  color: var(--slate-light);
  padding: 40px 0;
}

/* ==========================================================================
   Projects Page
   ========================================================================== */
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: var(--shadow-card-hover);
}
.project-card-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--copper), var(--teal));
}
.project-card-body {
  padding: 24px 22px 26px;
}
.project-card-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-card-client {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.project-card-desc {
  color: var(--slate);
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact info links + honeypot + form error state
   ========================================================================== */
.info-link {
  transition: color 0.15s ease;
}
.info-link:hover {
  color: var(--teal);
}
.form-field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}
.form-note.error-note {
  color: #D64545;
  font-weight: 600;
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--teal));
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Tilt cards (service / industry / project / team)
   ========================================================================== */
.tilt-card {
  transform: perspective(900px) translateY(var(--tilt-lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.15s ease-out, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================================================
   Back to top button
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--teal));
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(43, 179, 163, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  z-index: 150;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(43, 179, 163, 0.6);
}

/* ==========================================================================
   Scroll-reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero content fades/slides in on page load, not on scroll */
.hero-load {
  opacity: 0;
  transform: translateY(16px);
  animation: heroLoadIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--hero-delay, 0s);
}
@keyframes heroLoadIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle animated pulse on the hero background grid */
.hero-grid {
  animation: gridPulse 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Typewriter effect on the hero eyebrow tag */
.hero .eyebrow.typewriter {
  display: inline-block;
  border-right: 2px solid var(--copper);
  white-space: nowrap;
  overflow: hidden;
  animation: typewriterBlink 0.8s step-end infinite;
}
@keyframes typewriterBlink {
  0%, 100% { border-color: var(--copper); }
  50% { border-color: transparent; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--graphite-950);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--teal-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .convergence-grid,
  .trust-grid,
  .market-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .convergence-diagram { order: -1; max-width: 320px; margin: 0 auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-diagram { grid-template-columns: 1fr; }
  .arch-detail { position: static; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: var(--graphite-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .service-grid,
  .industry-grid,
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .hero { padding: 76px 0 56px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .stat-item { flex-direction: column; gap: 4px; }
}
