/* =========================================================
   Adamantus Business Solutions — stylesheet
   Design language: "engineered facets" — cut-corner panels,
   a faceted gem mark, angled section seams, mesh-gradient hero,
   navy + copper + teal on a cool paper canvas.
   ========================================================= */

:root {
  --canvas: #F6F7F9;
  --canvas-alt: #EDEFF3;
  --panel: #FFFFFF;
  --ink: #101826;
  --ink-soft: #4B5566;
  --navy: #13355E;
  --navy-deep: #0A1F3A;
  --navy-deeper: #071730;
  --copper: #B8722E;
  --copper-deep: #8F5A22;
  --copper-soft: #E7CDA9;
  --copper-bright: #D98F3F;
  --teal: #1E9E90;
  --teal-deep: #167A70;
  --teal-bright: #34C2B2;
  --indigo: #4C4796;
  --indigo-soft: #E4E2F6;
  --mist: #E1E6EC;
  --white: #FFFFFF;

  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --cut: 26px;
  --cut-sm: 14px;
  --radius: 4px;
  --container: 1180px;
  --shadow-soft: 0 8px 28px rgba(10, 31, 58, 0.10);
  --shadow-lift: 0 20px 48px rgba(10, 31, 58, 0.20);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Smooth cross-page transitions (supporting browsers; others navigate normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.18s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.28s ease both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
}
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
address { font-style: normal; }

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; z-index: 999;
  font-family: var(--font-mono); font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i-arrow { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease; }
a:hover > .i-arrow, .btn:hover .i-arrow { transform: translateX(3px); }

/* ---------- Text links ---------- */
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); border-bottom: 1.5px solid var(--copper-soft); padding-bottom: 3px; transition: color .15s ease, border-color .15s ease; }
.text-link:hover { color: var(--copper-deep); border-color: var(--copper); }
.text-link.on-dark { color: var(--white); border-color: rgba(231,205,169,0.5); }
.text-link.on-dark:hover { color: var(--copper-soft); }
.inline-link { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--copper); display: inline-block; }
.eyebrow.on-dark { color: var(--copper-soft); }
.eyebrow.tone-indigo { color: var(--indigo); }
.eyebrow.tone-indigo::before { background: var(--indigo); }

/* ---------- Gradient text ---------- */
.grad-text {
  background: linear-gradient(100deg, var(--copper-bright) 0%, var(--copper-soft) 45%, var(--teal-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--copper-deep); color: var(--white); box-shadow: 0 0 0 0 rgba(184,114,46,0); }
.btn-primary:hover { background: var(--copper-bright); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(184,114,46,0.35); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-outline.on-light { border-color: var(--navy); color: var(--navy); }
.btn-outline.on-light:hover { background: var(--navy); color: var(--white); }
.btn-indigo { background: var(--indigo); color: var(--white); }
.btn-indigo:hover { background: #5D57AF; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(76,71,150,0.35); }
.btn-block { width: 100%; }

/* ---------- Brand mark ---------- */
.mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.brand-word span { color: var(--copper); }
.brand-word.on-dark { color: var(--white); }

/* ---------- Cut-corner facet panel ---------- */
.facet { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); background: var(--panel); }
.facet-sm { clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 23, 48, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { background: rgba(7, 23, 48, 0.94); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height 0.3s ease; }
.site-header.scrolled .nav { height: 66px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,0.82);
  position: relative; padding: 6px 0; transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--copper), var(--teal-bright)); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--copper), var(--teal-bright)); }

/* ---------- Services mega-menu ---------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.menu-toggle { background: none; border: none; color: rgba(255,255,255,0.75); width: 26px; height: 26px; padding: 4px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.menu-toggle:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.menu-toggle svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.mega {
  position: absolute; top: 100%; left: 50%; padding-top: 22px; width: 760px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu.open .menu-toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .has-menu:hover .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover .menu-toggle svg { transform: rotate(180deg); }
}
.mega-panel {
  background: var(--panel); color: var(--ink); box-shadow: 0 30px 60px rgba(7,23,48,0.35);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-top: 3px solid var(--copper);
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; padding: 26px 26px 14px; }
.mega-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-deep); margin: 0 0 6px; padding-left: 10px; }
.mega-col { margin-bottom: 10px; }
.nav-links .mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 4px; color: var(--ink); transition: background 0.15s ease; }
.nav-links .mega-link:hover { background: var(--canvas-alt); color: var(--ink); }
.nav-links .mega-link::after { display: none; }
.mega-icon { width: 34px; height: 34px; flex-shrink: 0; background: var(--navy); color: var(--copper-soft); display: flex; align-items: center; justify-content: center; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
.mega-icon svg { width: 19px; height: 19px; }
.mega-link strong { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mega-link small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 2px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 36px; background: var(--canvas-alt); font-size: 13.5px; color: var(--ink-soft); }
.nav-links .mega-foot a { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 13.5px; }
.nav-links .mega-foot a:hover { color: var(--copper-deep); }
.nav-links .mega-foot a::after { display: none; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--white); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--white); }

.mobile-panel {
  /* The header's backdrop-filter makes it the containing block, so size explicitly. */
  display: none; position: fixed; top: 100%; left: 0; right: 0; height: calc(100vh - 66px); height: calc(100dvh - 66px);
  background: var(--navy-deeper); z-index: 99; padding: 30px 24px; overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; font-family: var(--font-display); font-size: 26px; color: var(--white); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-panel .btn { margin-top: 26px; }
.mobile-panel a.btn { font-family: var(--font-body); font-size: 15px; font-weight: 600; padding: 14px 26px; border-bottom: none; text-align: center; }
.mobile-group { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-group summary { font-family: var(--font-display); font-size: 26px; color: var(--white); padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--copper-soft); }
.mobile-group[open] summary::after { content: "–"; }
.mobile-sub { padding: 0 0 14px 4px; }
.mobile-panel .mobile-sub a { font-family: var(--font-body); font-size: 16px; padding: 10px 0; color: rgba(255,255,255,0.8); border-bottom: none; }
.mobile-panel .mobile-sub a.mobile-all { color: var(--copper-soft); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 85% 8%, rgba(52,194,178,0.30), transparent 60%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(184,114,46,0.20), transparent 60%),
    linear-gradient(160deg, var(--navy-deeper) 0%, var(--navy-deep) 45%, var(--navy) 78%, #1B4A78 100%);
  padding: 176px 0 0;
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 2; padding-bottom: 90px; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.75rem); color: var(--white); max-width: 16ch; }
.hero-sub { font-size: 18.5px; color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.65); }
.hero-meta strong { color: var(--white); display: block; font-family: var(--font-display); font-size: 22px; }

.hero-art { position: relative; height: 440px; z-index: 1; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.facet-float { animation: float 7s ease-in-out infinite; }
.facet-float-slow { animation: float 9s ease-in-out infinite; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }

/* ---------- Marquee strip ---------- */
.marquee-wrap {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.14);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex; width: max-content;
  gap: 54px;
  animation: marquee 28s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
}
.marquee-track span::after { content: "◆"; color: var(--copper-bright); font-size: 9px; margin-left: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Angled section dividers (SVG)
   ========================================================= */
.divider { display: block; width: 100%; height: 64px; margin-top: -1px; }
.divider-to-canvas path { fill: var(--canvas); }
.divider-to-navy path { fill: var(--navy-deeper); }

/* =========================================================
   Section basics
   ========================================================= */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); }
.section-head p { font-size: 17px; }

.bg-alt { background: var(--canvas-alt); }
.bg-navy { background: var(--navy-deeper); color: var(--white); padding-top: 0; }
.bg-navy .inner-pad { padding-top: 96px; padding-bottom: 96px; }
.bg-navy .section-head p { color: rgba(255,255,255,0.68); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* =========================================================
   Services
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tilt-wrap { perspective: 1000px; }
.service-card {
  padding: 36px 30px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color .25s ease;
  border-top: 3px solid var(--mist);
  position: relative;
  will-change: transform;
  height: 100%;
}
.service-card:hover { box-shadow: var(--shadow-lift); border-top-color: var(--copper); }
.service-badge {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  margin-bottom: 20px;
}
.service-icon { width: 26px; height: 26px; color: var(--copper-soft); }
.service-code {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--teal-deep);
  background: rgba(30,158,144,0.10); padding: 5px 10px; display: inline-block; border-radius: 3px; margin-bottom: 16px;
}
.service-card h3 { font-size: 20.5px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 0; }
a.service-card { display: flex; flex-direction: column; align-items: flex-start; color: inherit; }
a.service-card p { flex-grow: 1; }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--navy); }
a.service-card:hover .card-more { color: var(--copper-deep); }
a.service-card:hover .card-more .i-arrow { transform: translateX(4px); }
.tilt-wrap[hidden] { display: none; }
.service-badge.lg { width: 64px; height: 64px; margin: 0; background: linear-gradient(135deg, var(--copper-deep), var(--copper)); }
.service-badge.lg .service-icon { width: 32px; height: 32px; color: var(--white); }
.service-code.on-dark { background: rgba(52,194,178,0.16); color: var(--teal-bright); margin: 0; }

/* =========================================================
   Process
   ========================================================= */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { padding: 0 22px; position: relative; }
.process-step:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 100%; height: 1px;
  background: rgba(255,255,255,0.18); transform: translateX(-100%);
}
.process-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--copper-soft);
  border: 1px solid rgba(255,255,255,0.3); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: var(--navy-deeper); position: relative; z-index: 1;
}
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: rgba(255,255,255,0.68); }

/* =========================================================
   About / Why us
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.value-list { display: grid; gap: 22px; margin-top: 30px; }
.value-item { display: flex; gap: 16px; }
.value-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy); color: var(--copper-soft);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.value-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.value-item p { font-size: 14.5px; margin-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.stat-card { background: var(--navy-deeper); color: var(--white); padding: 26px 20px; text-align: left; }
.stat-card strong { font-family: var(--font-mono); font-size: 32px; color: var(--copper-soft); display: block; margin-bottom: 6px; }
.stat-card span { font-size: 13px; color: rgba(255,255,255,0.7); }

.industry-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip { font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border: 1px solid var(--mist); border-radius: 3px; color: var(--ink-soft); background: var(--panel); }

/* =========================================================
   Knowledge Culture (subsidiary) band
   ========================================================= */
.group-band { background: linear-gradient(135deg, var(--indigo-soft) 0%, #F1F0FA 60%, var(--canvas) 100%); }
.group-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: center; }
.group-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--indigo); color: var(--white); padding: 7px 14px; border-radius: 3px; margin-bottom: 18px;
}
.group-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.group-copy p { font-size: 16.5px; }
.group-art { position: relative; }
.group-art svg { width: 100%; height: auto; }

/* =========================================================
   Outcomes (bento layout — replaces generic testimonials)
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 18px; }
.bento-card {
  padding: 28px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
a.bento-card { color: inherit; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease; }
a.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bento-card:not(.bento-1) { background: var(--panel); }
.bento-card h3 { font-size: 19px; margin-bottom: 6px; }
.bento-card p { font-size: 14.5px; margin-bottom: 0; }
.bento-1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, var(--navy-deeper), var(--navy)); color: var(--white); }
.bento-1 p { color: rgba(255,255,255,0.72); }
.bento-1 .bento-num { font-family: var(--font-mono); font-size: 40px; color: var(--copper-soft); }
.bento-2 { grid-column: span 2; grid-row: span 1; border-top: 3px solid var(--teal); }
.bento-3 { grid-column: span 1; grid-row: span 1; border-top: 3px solid var(--copper); }
.bento-4 { grid-column: span 1; grid-row: span 1; border-top: 3px solid var(--indigo); }
.bento-5 { grid-column: span 4; grid-row: span 1; border-top: 3px solid var(--teal); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: linear-gradient(120deg, var(--copper-deep), var(--copper-bright)); color: var(--white); text-align: center; padding: 80px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 50ch; margin: 0 auto 30px; }
.cta-band .btn-primary { background: var(--navy-deeper); }
.cta-band .btn-primary:hover { background: var(--navy); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.office-card { padding: 28px 26px; box-shadow: var(--shadow-soft); margin-bottom: 20px; border-left: 3px solid var(--teal); }
.office-card .tag { font-family: var(--font-mono); font-size: 12px; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.office-card h3 { font-size: 18px; margin-bottom: 8px; }
.office-card address { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.contact-details { display: grid; gap: 14px; margin-top: 24px; }
.contact-details a, .contact-details span { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--ink); font-weight: 500; transition: color .15s ease; }
.contact-details a:hover { color: var(--teal-deep); }
.contact-details svg { width: 18px; height: 18px; color: var(--teal-deep); flex-shrink: 0; }

.contact-form { padding: 34px; box-shadow: var(--shadow-soft); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.field input, .field select { height: 48px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--mist); border-radius: var(--radius); padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px; background: var(--canvas); color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal-bright); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none; background: rgba(30,158,144,0.12); border: 1px solid var(--teal); color: var(--teal-deep);
  padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: rgba(184,58,58,0.10); border: 1px solid #B83A3A; color: #8F2C2C;
  padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px;
}
.form-error.show { display: block; }
.form-error a { color: #8F2C2C; text-decoration: underline; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* =========================================================
   Inner pages — hero, breadcrumbs, shared section helpers
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(ellipse 55% 70% at 90% 0%, rgba(52,194,178,0.26), transparent 60%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgba(184,114,46,0.20), transparent 60%),
    linear-gradient(160deg, var(--navy-deeper) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  padding: 150px 0 84px;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: 40px; width: 380px; height: 380px; opacity: 0.16; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,6 90,38 74,94 26,94 10,38' fill='none' stroke='%23E7CDA9' stroke-width='0.6'/%3E%3Cpolygon points='50,6 90,38 50,50' fill='%23B8722E'/%3E%3Cpolygon points='50,50 90,38 74,94' fill='%231E9E90'/%3E%3C/svg%3E") no-repeat center / contain;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-inner > * { max-width: 860px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); color: var(--white); max-width: 22ch; }
.page-lead { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 62ch; margin-bottom: 30px; }
.page-hero .hero-actions { margin-bottom: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.55); margin: 0 0 26px; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,0.3); }
.breadcrumbs a { color: rgba(255,255,255,0.75); }
.breadcrumbs a:hover { color: var(--copper-soft); }
.breadcrumbs [aria-current] { color: var(--copper-soft); }
.detail-badge-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.not-found { min-height: 72vh; display: flex; align-items: center; }

section.tight-top { padding-top: 64px; }
.h2 { font-size: clamp(1.7rem, 2.9vw, 2.3rem); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row .text-link { flex-shrink: 0; margin-bottom: 8px; }
.bento-1 h3 { color: var(--white); }

/* ---------- Services hub: filter, problem finder, connections ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: var(--panel); border: 1.5px solid var(--mist); border-radius: 999px; padding: 9px 18px;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s ease;
}
.filter-chip span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); background: var(--canvas-alt); border-radius: 999px; padding: 1px 8px; }
.filter-chip:hover { border-color: var(--navy); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-chip[aria-pressed="true"] span { background: rgba(255,255,255,0.16); color: var(--copper-soft); }

.problem-list { display: grid; gap: 12px; }
.problem-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--panel); padding: 20px 26px; border-left: 3px solid var(--copper); box-shadow: 0 2px 10px rgba(10,31,58,0.05);
}
.problem-text { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); margin: 0; }
.problem-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--teal-deep); background: rgba(30,158,144,0.10); padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.pill-link:hover { background: var(--teal-deep); color: var(--white); }

.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.connect-list { display: grid; gap: 10px; }
.connect-list li { display: grid; grid-template-columns: 1fr auto 1.4fr; align-items: center; gap: 14px; padding: 16px 20px; background: var(--panel); box-shadow: var(--shadow-soft); font-size: 14.5px; }
.connect-list li span:first-child { font-family: var(--font-mono); font-size: 13px; color: var(--navy); font-weight: 500; }
.connect-list li i { font-style: normal; color: var(--copper); font-weight: 700; }
.connect-list li span:last-child { color: var(--ink-soft); }

/* ---------- Service detail ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--panel); padding: 28px 26px; box-shadow: var(--shadow-soft); border-top: 3px solid var(--mist); transition: border-color .2s ease, transform .2s ease; }
.feature-card:hover { border-top-color: var(--teal); transform: translateY(-3px); }
.feature-num { font-family: var(--font-mono); font-size: 13px; color: var(--copper-deep); display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; }

.detail-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.check-list { display: grid; gap: 16px; margin-top: 26px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; color: var(--ink); }
.check-list svg { width: 26px; height: 26px; flex-shrink: 0; padding: 4px; background: var(--teal); color: var(--white); border-radius: 50%; margin-top: 1px; }
.glance { padding: 30px 28px; box-shadow: var(--shadow-soft); border-top: 3px solid var(--copper); position: sticky; top: 96px; }
.glance-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 14px; }
.glance dl { margin: 0 0 24px; }
.glance dl > div { padding: 12px 0; border-bottom: 1px solid var(--mist); }
.glance dt { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 3px; }
.glance dd { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.glance dd a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

.process-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--panel); box-shadow: 0 2px 10px rgba(10,31,58,0.06); border-left: 3px solid var(--mist); transition: border-color .2s ease; }
.faq[open] { border-left-color: var(--teal); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; border-radius: 50%; background: var(--canvas-alt); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--navy); transition: transform .2s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq p { padding: 0 24px 22px; margin: 0; font-size: 15.5px; }

/* ---------- About / contact helpers ---------- */
.chips-title { margin-top: 34px; font-weight: 600; color: var(--ink); }
.office-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office-row .office-card { margin-bottom: 0; background: var(--panel); }
.form-title { font-size: 22px; margin-bottom: 22px; }
.next-steps { margin-bottom: 30px; }
.next-steps ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.next-steps li::before {
  content: "0" counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px;
  background: var(--navy-deeper); color: var(--copper-soft);
}
.next-steps strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.next-steps span { font-size: 14.5px; color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-deeper); color: rgba(255,255,255,0.75); padding-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding: 70px 0 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 14.5px; margin-top: 16px; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-soft); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.72); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-size: 14.5px; color: rgba(255,255,255,0.72); line-height: 1.7; }

.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.22); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: linear-gradient(135deg, var(--copper), var(--teal-bright)); border-color: transparent; transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; color: var(--white); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--white); }
.footer-brand .brand { margin-bottom: 0; }
.visitor-counter { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px; }
.visitor-counter[hidden] { display: none; }
.visitor-counter svg { width: 15px; height: 15px; color: var(--teal-bright); }
.visitor-counter strong { color: var(--copper-soft); font-weight: 500; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  background: var(--copper-deep); color: var(--white); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background .2s ease;
  z-index: 90;
}
.back-to-top:hover { background: var(--copper-bright); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
/* Only hidden when JS is running, so content never disappears if a script fails. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 300px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-step:nth-child(3)::before, .process-step:nth-child(1)::before { display: none; }
  .group-grid { grid-template-columns: 1fr; }
  .group-art { order: -1; max-width: 360px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento-1 { grid-column: span 2; }
  .bento-5 { grid-column: span 2; }
  .nav-links { gap: 24px; }
  .mega { width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-split, .faq-wrap, .connect-grid { grid-template-columns: 1fr; gap: 36px; }
  .glance { position: static; }
  .process-row.cols-3 { grid-template-columns: 1fr; row-gap: 34px; }
  .process-row.cols-3 .process-step::before { display: none; }
  .page-hero::after { width: 260px; height: 260px; opacity: 0.1; }
  /* Odd card count in a 2-column grid: let the last card span the row */
  .services-grid > .tilt-wrap:last-child:nth-child(odd) { grid-column: span 2; }
}

/* Mega menu needs room; below this width the hamburger menu takes over */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  section { padding: 76px 0; }
  .hero { padding: 130px 0 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card { min-height: 140px; }
  .bento-1, .bento-2, .bento-5 { grid-column: span 1; }
  .services-grid > .tilt-wrap:last-child:nth-child(odd) { grid-column: auto; }
  .page-hero { padding: 120px 0 64px; }
  section.tight-top { padding-top: 44px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 40px; }
  .feature-grid, .office-row { grid-template-columns: 1fr; }
  .problem-row { padding: 18px 20px; }
  .problem-text { font-size: 16.5px; }
  .connect-list li { grid-template-columns: 1fr; gap: 4px; }
  .connect-list li i { display: none; }
  .faq summary { font-size: 16px; padding: 18px 20px; }
  .footer-bottom { align-items: flex-start; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero h1 { max-width: none; }
}
