/* ==========================================================================
   COMPONENTS — Nirman Engineers Associates
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--azure);
  --btn-fg: #041220;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 0 var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Light sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.38) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }

.btn--primary {
  background: linear-gradient(135deg, var(--azure-bright), var(--azure) 45%, var(--azure-deep));
  box-shadow: var(--shadow-azure);
}
.btn--primary:hover { box-shadow: var(--shadow-azure-lg); }
.btn--primary:active { transform: translateY(1px) scale(0.99); }

.btn--ghost {
  background: transparent;
  color: var(--text-hi);
  border: 1px solid var(--hairline-hi);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--azure);
  color: var(--azure-bright);
  background: var(--azure-08);
}

.btn--brass {
  background: linear-gradient(135deg, var(--brass-soft), var(--brass));
  color: #1A1403;
  box-shadow: 0 8px 24px rgba(201,162,39,0.26), 0 2px 6px rgba(201,162,39,0.20);
}

.btn--light {
  background: var(--text-ink);
  color: var(--concrete);
}
.btn--light:hover { background: var(--azure-deep); color: #fff; }

.btn--sm { min-height: 44px; padding: 0 var(--sp-5); font-size: var(--fs-xs); }
.btn--lg { min-height: 60px; padding: 0 var(--sp-7); font-size: var(--fs-body); }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* Click ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: ripple-out 620ms var(--ease-out) forwards;
  pointer-events: none;
}

/* ==========================================================================
   2. TOP UTILITY BAR
   ========================================================================== */
.topbar {
  position: relative;
  z-index: var(--z-header);
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  transition: transform var(--dur-mid) var(--ease-out);
}
.topbar.is-hidden { transform: translateY(-100%); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 44px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.topbar__item svg { width: 14px; height: 14px; color: var(--azure); flex-shrink: 0; }
a.topbar__item:hover { color: var(--azure-bright); }

.topbar__divider { width: 1px; height: 14px; background: var(--hairline); }

.social-row { display: flex; align-items: center; gap: var(--sp-2); }
.social-row__link {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.social-row__link svg { width: 14px; height: 14px; }
.social-row__link:hover {
  color: var(--azure-bright);
  border-color: var(--azure);
  background: var(--azure-08);
}

@media (max-width: 860px) {
  .topbar__group--secondary { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ==========================================================================
   3. HEADER + NAV
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              backdrop-filter var(--dur-mid) var(--ease-out);
}
.header.is-stuck {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 12px 40px rgba(0,0,0,0.42);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 84px;
}

/* --- LOGO: image only. No hardcoded company-name text anywhere here. --- */
.logo { display: flex; align-items: center; flex-shrink: 0; cursor: pointer; }
.logo img {
  /* The mark stacks gear over wordmark (807x690), so it needs more height than a
     typical wide logo before "ENGINEER'S ASSOCIATES" becomes legible. */
  height: 68px;
  width: auto;
  transition: transform var(--dur-mid) var(--ease-out), filter var(--dur-mid) var(--ease-out);
}
.logo:hover img { transform: scale(1.04); filter: drop-shadow(0 4px 16px var(--azure-40)); }
.footer .logo img { height: 76px; }

/* --- Primary nav --- */
.nav { display: flex; align-items: center; gap: var(--sp-2); }

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--text-hi); }
.nav__link.is-active { color: var(--azure); }

.nav__link::after {
  content: '';
  position: absolute;
  left: var(--sp-4); right: var(--sp-4);
  bottom: 6px;
  height: 1.5px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__caret {
  width: 12px; height: 12px;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* --- Mega menu --- */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: min(92vw, 880px);
  padding: var(--sp-6);
  background: var(--glass-hi);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              visibility var(--dur-mid);
}
.mega::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure-40), transparent);
}
.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega--sm { width: min(92vw, 460px); }

.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.mega--sm .mega__grid { grid-template-columns: 1fr 1fr; }

.mega__link {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.mega__link:hover { background: var(--azure-08); border-color: var(--azure-24); }

.mega__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-tech);
  background: var(--azure-14);
  color: var(--azure);
}
.mega__icon svg { width: 17px; height: 17px; }

.mega__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.3;
}
.mega__desc {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.45;
  margin-top: 2px;
}

.mega__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
}

/* --- Header actions / burger --- */
.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0 12px;
  border-radius: var(--r-tech);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.burger span:nth-child(1) { width: 24px; }
.burger span:nth-child(2) { width: 18px; }
.burger span:nth-child(3) { width: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

@media (max-width: 1100px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: flex; }
  .header__inner { min-height: 72px; }
  .logo img { height: 46px; }
}

/* --- Mobile overlay menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--ink);
  padding: var(--sp-8) var(--gutter) var(--sp-9);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out), visibility var(--dur-mid);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--blueprint);
  background-size: 64px 64px;
  opacity: 0.5;
  pointer-events: none;
}
.mobile-menu__inner { position: relative; max-width: 640px; margin-inline: auto; }

.mobile-menu__close {
  position: absolute;
  top: calc(-1 * var(--sp-5)); right: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text-hi);
  cursor: pointer;
}
.mobile-menu__close svg { width: 18px; height: 18px; }

.mobile-menu__list { margin-top: var(--sp-7); }
.mobile-menu__row { border-bottom: 1px solid var(--hairline); }

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
}
.mobile-menu.is-open .mobile-menu__link {
  animation: menu-in 480ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 100ms);
}
.mobile-menu__link svg { width: 16px; height: 16px; color: var(--azure); transition: transform var(--dur-mid) var(--ease-out); }
.mobile-menu__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-mid) var(--ease-out);
}
.mobile-menu__sub > div { overflow: hidden; }
.mobile-menu__row.is-open .mobile-menu__sub { grid-template-rows: 1fr; }
.mobile-menu__sub a {
  display: block;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  border-left: 1px solid var(--hairline);
  margin-left: var(--sp-2);
}
.mobile-menu__sub a:hover { color: var(--azure); border-left-color: var(--azure); }

.mobile-menu__cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-7); }

.mobile-menu__meta {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
  display: grid; gap: var(--sp-3);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  /* Grid, not flex: a flex item shrink-wraps to its content, which would stop
     .container filling the viewport and pull the hero copy off the page grid. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: clamp(3.25rem, 7vh, 5.5rem) clamp(3rem, 7vh, 5rem);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -3;
  will-change: transform;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Two stacked scrims multiply, so each is kept light enough that the plant
     photography still reads while text keeps a >7:1 contrast ratio on the left. */
  background:
    linear-gradient(180deg, rgba(8,11,17,0.88) 0%, rgba(8,11,17,0.44) 45%, rgba(8,11,17,0.88) 100%),
    linear-gradient(90deg, rgba(8,11,17,0.92) 0%, rgba(8,11,17,0.30) 62%, rgba(8,11,17,0.62) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--blueprint);
  background-size: 64px 64px;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 10%, transparent 75%);
  will-change: transform;
}

.hero__gear {
  position: absolute;
  top: 50%; right: -12%;
  translate: 0 -50%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  z-index: -1;
  color: var(--azure);
  opacity: 0.10;
  animation: spin 60s linear infinite;
  pointer-events: none;
}

.hero__content { position: relative; max-width: 1040px; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text-hi);
  margin-bottom: var(--sp-5);
}
.hero__title .hl {
  /* Italic glyphs overhang their advance width, so the background-clip:text
     paint box cuts the last letter. `box-decoration-break: clone` applies the
     padding to EVERY line fragment, not just the element's final one — without
     it, any line that happens to end mid-phrase still gets clipped. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: 0.12em;
  margin-right: -0.06em;
  background: linear-gradient(100deg, var(--azure-bright), var(--azure) 40%, var(--brass-soft) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 7s ease-in-out infinite;
}

/* Word-by-word 3D entrance */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > span {
  display: inline-block;
  transform: translateY(100%) rotateX(-70deg);
  opacity: 0;
  transform-origin: bottom center;
}
.is-loaded .hero__title .word > span {
  animation: word-up 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 250ms);
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-mid);
  max-width: 58ch;
  margin-bottom: var(--sp-5);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-6); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  max-width: 760px;
}

.stat-card {
  padding: var(--sp-4) var(--sp-4);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brass-soft);
}
.stat-card__label {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: var(--sp-5);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue__line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--azure), transparent);
  animation: cue 2.2s var(--ease-inout) infinite;
  transform-origin: top;
}

@media (max-width: 900px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__gear { right: -35%; opacity: 0.07; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

/* Page banner (interior pages) */
.page-hero {
  position: relative;
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3.5rem, 7vh, 5.5rem);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,17,0.92), rgba(8,11,17,0.82) 55%, var(--graphite) 100%),
    var(--blueprint);
  background-size: auto, 64px 64px;
}
.page-hero h1 { max-width: 20ch; margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--fs-lead); max-width: 62ch; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.crumbs a { transition: color var(--dur-fast) var(--ease-out); }
.crumbs a:hover { color: var(--azure); }
.crumbs svg { width: 11px; height: 11px; opacity: 0.5; }
.crumbs [aria-current="page"] { color: var(--azure); }

/* ==========================================================================
   5. CARDS (3D tilt)
   ========================================================================== */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
  will-change: transform;
}
.tilt__inner { transform: translateZ(30px); transform-style: preserve-3d; }

/* Specular sheen following the pointer */
.tilt__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.10), transparent 70%);
  transition: opacity var(--dur-mid) var(--ease-out);
}
.tilt:hover .tilt__sheen { opacity: 1; }

.card {
  position: relative;
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--slate), var(--graphite));
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure-40), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.card:hover { border-color: var(--azure-24); box-shadow: var(--shadow-lift), var(--shadow-azure); }
.card:hover::before { opacity: 1; }

.card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  color: var(--azure);
  opacity: 0.7;
}

.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-card);
  background: linear-gradient(140deg, var(--azure-24), var(--azure-08));
  border: 1px solid var(--azure-24);
  color: var(--azure-bright);
  transition: transform var(--dur-mid) var(--ease-spring), box-shadow var(--dur-mid) var(--ease-out);
}
.card__icon svg { width: 25px; height: 25px; }
.card:hover .card__icon { transform: scale(1.08); box-shadow: var(--shadow-azure); }

.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-sm); color: var(--text-mid); }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
}
.card__more svg { width: 13px; height: 13px; transition: transform var(--dur-mid) var(--ease-out); }
.card:hover .card__more svg { transform: translateX(5px); }

/* Bento service grid — deliberately asymmetric */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
.bento > *:nth-child(1) { grid-column: span 4; }
.bento > *:nth-child(2) { grid-column: span 2; }
.bento > *:nth-child(3) { grid-column: span 2; }
.bento > *:nth-child(4) { grid-column: span 2; }
.bento > *:nth-child(5) { grid-column: span 2; }
.bento > *:nth-child(6) { grid-column: span 3; }
.bento > *:nth-child(7) { grid-column: span 3; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 1 !important; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
}

/* Service card with media */
.card--media { padding: 0; display: flex; flex-direction: column; }
.card--media .card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card--media .card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.card--media:hover .card__media img { transform: scale(1.07); filter: brightness(1.1); }
.card--media .card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8,11,17,0.85));
}
.card--media .card__body { padding: var(--sp-5) var(--sp-6) var(--sp-6); flex: 1; display: flex; flex-direction: column; }

/* ==========================================================================
   6. MARQUEE (client ticker)
   ========================================================================== */
.marquee {
  position: relative;
  padding-block: var(--sp-6);
  border-block: 1px solid var(--hairline);
  background: var(--ink);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--dur-mid) var(--ease-out);
}
.marquee__item:hover { color: var(--text-hi); }
.marquee__item::before {
  content: '';
  width: 6px; height: 6px;
  rotate: 45deg;
  background: var(--azure);
  opacity: 0.7;
}

/* ==========================================================================
   7. PROCESS TIMELINE (3D flip)
   ========================================================================== */
.timeline { position: relative; }
.timeline__line {
  position: absolute;
  top: 34px; left: 0;
  height: 2px; width: 100%;
  background: var(--hairline);
  overflow: hidden;
}
.timeline__line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--azure), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out);
}
.timeline.in-view .timeline__line::after { transform: scaleX(1); }

.timeline__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }

.step { perspective: 1000px; min-height: 300px; cursor: pointer; }
.step__inner {
  position: relative;
  width: 100%; height: 100%;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-inout);
}
.step:hover .step__inner, .step:focus-within .step__inner { transform: rotateY(180deg); }

.step__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-card);
}
.step__face--front { background: linear-gradient(160deg, var(--slate), var(--graphite)); }
.step__face--back {
  background: linear-gradient(160deg, var(--azure-deep), var(--graphite) 80%);
  transform: rotateY(180deg);
  justify-content: center;
}
.step__num {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  margin-bottom: auto;
  border-radius: 50%;
  border: 1px solid var(--azure-24);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azure);
}
.step__face--front h3 { margin-top: var(--sp-5); }
.step__hint {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.step__face--back p { color: var(--text-hi); font-size: var(--fs-sm); }

@media (max-width: 1000px) {
  .timeline__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline__line { display: none; }
}
@media (max-width: 560px) {
  .timeline__grid { grid-template-columns: 1fr; }
  .step, .step__inner { min-height: 260px; }
}

/* ==========================================================================
   8. SPLIT / CHECKLIST
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--sticky { align-items: start; }
.split__media { position: relative; border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-lift); }
.split--sticky .split__media { position: sticky; top: 120px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid var(--hairline-hi);
  pointer-events: none;
}
.split__badge {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  padding: var(--sp-3) var(--sp-5);
  background: var(--glass-hi);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-hi);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--sticky .split__media { position: static; }
  .split--rev .split__media { order: -1; }
}

.checklist { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--azure);
  border-radius: var(--r-tech);
  font-size: var(--fs-sm);
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.checklist li:hover { transform: translateX(6px); border-left-color: var(--brass); }
.checklist svg { width: 18px; height: 18px; color: var(--azure); flex-shrink: 0; margin-top: 2px; }

.section--light .checklist li { background: #fff; border-color: var(--hairline-lt); border-left-color: var(--azure); }

/* ==========================================================================
   9. STAT STRIP
   ========================================================================== */
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline); border-block: 1px solid var(--hairline); }
.stat-strip__cell {
  padding: var(--sp-6) var(--sp-4);
  background: var(--graphite);
  text-align: center;
  transition: background-color var(--dur-mid) var(--ease-out);
}
.stat-strip__cell:hover { background: var(--slate); }
.stat-strip__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brass-soft);
}
.stat-strip__label {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. REVIEWS
   ========================================================================== */
.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}
.rating-block { display: flex; align-items: center; gap: var(--sp-5); }
.rating-block__score {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brass-soft);
}
.rating-block__meta { font-size: var(--fs-sm); }
.rating-block__meta .mono { display: block; color: var(--text-dim); margin-top: 4px; }

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 17px; height: 17px; color: var(--brass); }
.stars--sm svg { width: 14px; height: 14px; }

/* Category tabs */
.tabs {
  position: relative;
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2);
  margin-bottom: var(--sp-6);
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__pill {
  position: absolute;
  top: var(--sp-2); left: 0;
  height: calc(100% - var(--sp-4));
  background: var(--azure-14);
  border: 1px solid var(--azure-24);
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform var(--dur-mid) var(--ease-out), width var(--dur-mid) var(--ease-out);
  pointer-events: none;
}
.tab {
  position: relative;
  z-index: 1;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.tab:hover { color: var(--text-mid); }
.tab[aria-selected="true"] { color: var(--azure-bright); font-weight: 600; }

.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 1000px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .reviews__grid { grid-template-columns: 1fr; } }

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
}
.review:hover { transform: translateY(-6px); border-color: var(--azure-24); box-shadow: var(--shadow-lift); }
.review.is-hiding { opacity: 0; transform: scale(0.94); }

.review__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.review__who { display: flex; align-items: center; gap: var(--sp-3); }
.review__avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--azure), var(--azure-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.review__name { font-family: var(--font-display); font-weight: 600; color: var(--text-hi); font-size: var(--fs-sm); }
.review__date { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-dim); }
.review__source { width: 22px; height: 22px; flex-shrink: 0; }
.review__text { font-size: var(--fs-sm); color: var(--text-mid); flex: 1; }
.review__chip {
  align-self: flex-start;
  padding: 5px var(--sp-3);
  background: var(--azure-08);
  border: 1px solid var(--azure-24);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure);
}

.reviews__note {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border: 1px dashed var(--hairline-hi);
  border-radius: var(--r-card);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.reviews__note svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   11. STATE CHIPS / SECTORS
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip {
  padding: var(--sp-3) var(--sp-4);
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--r-tech);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}
.chip.in-view { color: var(--azure); border-color: var(--azure-24); background: var(--azure-08); }
.chip:hover { transform: translateY(-3px); color: var(--azure-bright); border-color: var(--azure); }

.sectors { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.sector {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--graphite);
  transition: background-color var(--dur-mid) var(--ease-out), padding-left var(--dur-mid) var(--ease-out);
}
.sector:hover { background: var(--slate); padding-left: var(--sp-6); }
.sector__id {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  color: var(--azure);
  opacity: 0.75;
  flex-shrink: 0;
}
.sector__name { font-family: var(--font-display); font-weight: 600; color: var(--text-hi); font-size: var(--fs-sm); }

/* ==========================================================================
   12. PROJECTS
   ========================================================================== */
.project {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.project:hover img { transform: scale(1.08); }
.project::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,17,0.05) 30%, rgba(8,11,17,0.92));
  transition: background var(--dur-mid) var(--ease-out);
}
.project:hover::after { background: linear-gradient(180deg, rgba(11,111,196,0.20) 10%, rgba(8,11,17,0.94)); }

.project__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: var(--sp-6);
  transform: translateY(12px);
  transition: transform var(--dur-mid) var(--ease-out);
}
.project:hover .project__body { transform: translateY(0); }
.project__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
}
.project__title { font-size: var(--fs-h4); color: var(--text-hi); }
.project__scope {
  font-size: var(--fs-xs);
  color: var(--text-mid);
  margin-top: var(--sp-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out);
}
.project:hover .project__scope { max-height: 80px; opacity: 1; }

.project--tall { aspect-ratio: 3 / 4; }
.project--wide { aspect-ratio: 16 / 9; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.filter {
  padding: var(--sp-3) var(--sp-5);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter:hover { color: var(--text-hi); border-color: var(--hairline-hi); }
.filter[aria-pressed="true"] { background: var(--azure-14); border-color: var(--azure); color: var(--azure-bright); font-weight: 600; }

/* ==========================================================================
   13. GALLERY
   ========================================================================== */
.gallery-grid { columns: 3; column-gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  break-inside: avoid;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.gallery-item img { width: 100%; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.12); }
.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  background: linear-gradient(180deg, transparent, rgba(8,11,17,0.92));
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hi);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out);
}
.gallery-item:hover .gallery-item__cap { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out), visibility var(--dur-mid);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 84vh;
  width: auto;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  transform: scale(0.94);
  transition: transform var(--dur-mid) var(--ease-spring);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline-hi);
  background: var(--glass);
  color: var(--text-hi);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--azure-24); border-color: var(--azure); }
.lightbox__close { top: var(--gutter); right: var(--gutter); }
.lightbox__nav--prev { left: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox svg { width: 20px; height: 20px; }
.lightbox__count {
  position: absolute;
  bottom: var(--gutter); left: 50%;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  color: var(--text-mid);
}

/* ==========================================================================
   14. FORMS
   ========================================================================== */
.form-card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift);
}
.section--light .form-card {
  background: #fff;
  border-color: var(--hairline-lt);
  box-shadow: var(--shadow-light);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { position: relative; }

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 56px;
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-tech);
  color: var(--text-hi);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.section--light .field__input,
.section--light .field__select,
.section--light .field__textarea {
  background: var(--concrete);
  border-color: var(--hairline-lt);
  color: var(--text-ink);
}
.field__textarea { min-height: 140px; resize: vertical; }
.field__select { cursor: pointer; appearance: none; padding-right: var(--sp-8); }

.field__label {
  position: absolute;
  top: 18px; left: calc(var(--sp-4) + 1px);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label,
.field__textarea:focus ~ .field__label,
.field__textarea:not(:placeholder-shown) ~ .field__label,
.field__select:focus ~ .field__label,
.field__select[data-filled="true"] ~ .field__label {
  transform: translateY(-11px) scale(0.78);
  color: var(--azure);
}
.field__textarea ~ .field__label { top: 18px; }

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px var(--azure-14), var(--shadow-azure);
}

.field__caret {
  position: absolute;
  right: var(--sp-4); top: 50%;
  translate: 0 -50%;
  width: 14px; height: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.field__error {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--danger);
}
.field.is-invalid .field__input,
.field.is-invalid .field__select,
.field.is-invalid .field__textarea { border-color: var(--danger); }
.field.is-invalid { animation: shake 380ms var(--ease-out); }
.field.is-valid .field__input,
.field.is-valid .field__select,
.field.is-valid .field__textarea { border-color: var(--success); }

/* Error text carries an icon so colour is never the sole indicator */
.field__error:not(:empty)::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: -2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--azure);
  cursor: pointer;
  flex-shrink: 0;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-tech);
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(46,204,113,0.10); border: 1px solid rgba(46,204,113,0.35); color: var(--success); }
.form-status--err { background: rgba(255,90,90,0.10); border: 1px solid rgba(255,90,90,0.35); color: var(--danger); }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ==========================================================================
   15. ACCORDION (FAQ)
   ========================================================================== */
.accordion { display: grid; gap: var(--sp-3); }
.acc {
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.acc.is-open { border-color: var(--azure-24); background: var(--slate-hi); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
}
.acc__sign {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.acc__sign::before, .acc__sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: var(--azure);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out);
}
.acc__sign::before { width: 14px; height: 2px; }
.acc__sign::after  { width: 2px; height: 14px; }
.acc.is-open .acc__sign::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-mid) var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-sm); }

.section--light .acc { background: #fff; border-color: var(--hairline-lt); }
.section--light .acc__btn { color: var(--text-ink); }

/* ==========================================================================
   16. CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--azure-deep), var(--ink) 60%);
  border: 1px solid var(--azure-24);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--blueprint);
  background-size: 64px 64px;
  opacity: 0.8;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 22ch; }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding-top: var(--sp-9);
  background: var(--ink);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure-40), transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--sp-8);
}
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer__grid { grid-template-columns: 1fr; } }

.footer__about p { font-size: var(--fs-sm); margin: var(--sp-5) 0; }

.footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: var(--sp-5);
}
.footer__list { display: grid; gap: var(--sp-3); }
.footer__list a {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.footer__list a:hover { color: var(--azure-bright); padding-left: 6px; }

.footer__contact { display: grid; gap: var(--sp-4); font-size: var(--fs-sm); }
.footer__contact-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.footer__contact-item svg { width: 16px; height: 16px; color: var(--azure); flex-shrink: 0; margin-top: 3px; }

.footer__map {
  margin-top: var(--sp-4);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  filter: grayscale(1) invert(0.92) contrast(0.88);
  transition: filter var(--dur-slow) var(--ease-out);
}
.footer__map:hover { filter: grayscale(0) invert(0) contrast(1); }
.footer__map iframe { display: block; width: 100%; height: 180px; border: 0; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.footer-credit a {
  color: var(--azure);
  position: relative;
  font-weight: 500;
}
.footer-credit a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.footer-credit a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   18. STICKY MOBILE ACTION BAR
   ========================================================================== */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  gap: 1px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass-hi);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--hairline-hi);
  box-shadow: var(--shadow-up);
  transform: translateY(110%);
  transition: transform 420ms var(--ease-spring);
}
.mobile-bar.is-visible { transform: translateY(0); }

.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 56px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.mobile-bar__btn svg { width: 19px; height: 19px; }
.mobile-bar__btn--call { background: linear-gradient(135deg, var(--azure), var(--azure-deep)); }
.mobile-bar__btn--wa   { position: relative; background: var(--whatsapp); color: #04331A; }

.mobile-bar__btn--wa::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  animation: pulse-ring 4s var(--ease-out) infinite;
  pointer-events: none;
}

@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   19. DEMO POPUP
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out), visibility var(--dur-mid);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.modal__card {
  position: relative;
  width: min(100%, 540px);
  max-height: 88svh;
  overflow-y: auto;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: linear-gradient(165deg, var(--glass-hi), rgba(8,11,17,0.94));
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift), 0 0 90px rgba(42,157,246,0.16);
  transform: scale(0.9) rotateX(8deg);
  opacity: 0;
  transition: transform 420ms var(--ease-spring), opacity 320ms var(--ease-out);
}
.modal.is-open .modal__card { transform: scale(1) rotateX(0); opacity: 1; }
.modal__card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  background: linear-gradient(90deg, var(--azure-deep), var(--azure), var(--brass), var(--azure));
  background-size: 300% 100%;
  animation: sweep 5s linear infinite;
}

.modal__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text-mid);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.modal__close:hover { color: var(--text-hi); border-color: var(--azure); transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; }

.modal__logo { height: 74px; width: auto; margin: 0 auto var(--sp-5); }
.modal__card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: var(--sp-4); }
.modal__card p { margin: 0 auto var(--sp-4); font-size: var(--fs-sm); max-width: 42ch; }
.modal__card .btn { margin-top: var(--sp-3); }

.modal__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
  background: var(--brass-14);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.modal__badge svg { width: 13px; height: 13px; }

.modal__later {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal__later:hover { color: var(--text-mid); }

/* ==========================================================================
   20. PRELOADER / PROGRESS / CURSOR
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: transform 700ms var(--ease-inout), visibility 700ms;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: var(--sp-5); }
.loader__logo { height: 92px; width: auto; animation: breathe 2.2s var(--ease-inout) infinite; }
.loader__track { width: 190px; height: 2px; background: var(--hairline); overflow: hidden; border-radius: 2px; }
.loader__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--azure), var(--brass)); transition: width 260ms var(--ease-out); }

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-loader);
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--azure), var(--brass));
}

.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.cursor {
  width: 34px; height: 34px;
  border: 1.5px solid var(--azure);
  transition: opacity var(--dur-mid) var(--ease-out), width 220ms var(--ease-out), height 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.cursor-dot { width: 5px; height: 5px; background: var(--azure-bright); }
.cursor.is-active { width: 54px; height: 54px; background: var(--azure-24); }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }

/* Custom cursor / tilt / pointer-parallax are pointer-only affordances */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none !important; }
}

/* ==========================================================================
   21. FLOATING AMBIENT SHAPES
   ========================================================================== */
.float-shape {
  position: absolute;
  color: var(--azure);
  opacity: 0.08;
  pointer-events: none;
  animation: float 14s var(--ease-inout) infinite alternate;
  z-index: 0;
}
.float-shape--2 { animation-duration: 19s; animation-delay: -4s; opacity: 0.06; }
.float-shape--3 { animation-duration: 24s; animation-delay: -9s; opacity: 0.05; color: var(--brass); }

/* ==========================================================================
   22. BLOG / CAREER / MISC
   ========================================================================== */
.post {
  display: flex;
  flex-direction: column;
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.post:hover { transform: translateY(-6px); border-color: var(--azure-24); box-shadow: var(--shadow-lift); }
.post__media { aspect-ratio: 16/9; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }

.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.job:hover { border-color: var(--azure-24); transform: translateX(6px); }
.job__meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-2); }

.note-panel {
  padding: var(--sp-6);
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brass);
  border-radius: var(--r-card);
}

/* Empty / placeholder state */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  border: 1px dashed var(--hairline-hi);
  border-radius: var(--r-panel);
}
.empty-state svg { width: 46px; height: 46px; color: var(--text-dim); }

/* ==========================================================================
   23. TOUCH TARGETS
   On coarse pointers every real control needs a >=44px hit area. Inline links
   inside running prose are exempt (they are read, not aimed at); these are the
   list-style and icon controls a finger actually targets.
   ========================================================================== */
@media (pointer: coarse) {
  .social-row__link { width: 44px; height: 44px; }

  .topbar__item,
  .footer__contact-item,
  .footer__list a,
  .aside-nav a,
  .crumbs a,
  .modal__later {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer__bottom nav a { min-height: 44px; display: inline-flex; align-items: center; }

  .modal__close { width: 44px; height: 44px; }

  .consent { min-height: 44px; }
  .consent input { width: 24px; height: 24px; }

  /* The whole card is the link target, so the inline "explore" cue only needs
     enough vertical room to be comfortably tappable on its own. */
  .card__more { min-height: 44px; align-items: center; }

  .tab, .filter { min-height: 44px; display: inline-flex; align-items: center; }

  /* Card heading links sit inside an already-tappable card, but still need a
     comfortable target of their own. */
  .card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
}
