/* =======================================================================
   Flowmatic website — shared site styles.
   Loads design tokens, defines page-level chrome (containers, sections,
   nav, hamburger overlay, footer), and a few reusable components.
   ======================================================================= */
@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-lg { padding: 160px 0; }
.dark { background: var(--neutral-1000); color: var(--fg-inverse); }
.amber { background: var(--amber-500); color: #000; }
.cream { background: #faf7f1; color: var(--fg-1); }

.divider { border: 0; border-top: 1px solid var(--border-1); margin: 0; }
.divider-strong { border: 0; border-top: 1px solid var(--neutral-1000); margin: 0; }
.dark .divider { border-top-color: rgba(255,255,255,0.12); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow .bar {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--amber-500);
}
.eyebrow .num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-1);
}
.dark .eyebrow { color: rgba(255,255,255,0.55); }
.dark .eyebrow .num { color: #fff; }

.display {
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}
.display-xl { font-size: clamp(64px, 11vw, 168px); }
.display-l  { font-size: clamp(56px, 9vw, 128px); }
.display-m  { font-size: clamp(40px, 6vw, 80px); }
.display-s  { font-size: clamp(32px, 4vw, 56px); }

.lead { font-size: 20px; line-height: 1.5; color: var(--fg-2); max-width: 60ch; }
.dark .lead { color: rgba(255,255,255,0.72); }

.version-stamp {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}
.dark .version-stamp { color: rgba(255,255,255,0.55); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 14px 22px;
  border: none;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0.7,0.3,1), color 120ms, transform 120ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber-500); color: #000; }
.btn-primary:hover { background: var(--amber-600); }
.btn-dark    { background: #000; color: #fff; }
.btn-dark:hover { background: var(--neutral-800); }
.btn-ghost   { background: transparent; color: var(--fg-1); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--neutral-100); }
.btn-ghost-inverse { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost-inverse:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 10px 14px; font-size: 13px; }

/* Skewed amber accent — echo of the 12° angle-of-repose line in the logo */
.skew-bar {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--amber-500);
  transform: skewX(-12deg);
}

/* ---------- Top nav (hamburger trigger + sticky bar) ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-1);
}
.topnav.dark-nav {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.topnav-logo img { height: 28px; width: auto; display: block; }
.topnav-logo .brand-logo,
.menu-overlay-top .logo .brand-logo { color: var(--fg-1); }
.dark-nav .topnav-logo .brand-logo,
.menu-overlay-top .logo .brand-logo,
.site-footer .brand-logo { color: #fff; }
.brand-logo { display: inline-block; }
.brand-logo svg { height: 100%; width: auto; display: block; }
.topnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.topnav-quick {
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.dark-nav .topnav-quick { color: rgba(255,255,255,0.7); }

.hamburger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--neutral-1000);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.hamburger:hover { background: var(--neutral-1000); color: #fff; }
.dark-nav .hamburger { border-color: rgba(255,255,255,0.3); color: #fff; }
.dark-nav .hamburger:hover { background: var(--amber-500); color: #000; border-color: var(--amber-500); }
.hamburger .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.hamburger .bars span {
  height: 2px;
  background: currentColor;
  display: block;
}
.hamburger .bars span:nth-child(2) { width: 70%; }

/* ---------- Full-screen menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms cubic-bezier(0.2,0.7,0.3,1);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.menu-overlay-top .logo img { height: 28px; }
.menu-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.menu-close:hover { background: var(--amber-500); color: #000; border-color: var(--amber-500); }
.menu-close .x { font-size: 18px; line-height: 1; transform: translateY(-1px); }

.menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  padding: 56px 64px;
  overflow-y: auto;
}

.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.menu-list a {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 14px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 160ms, padding-left 160ms;
}
.menu-list a:hover { color: var(--amber-500); padding-left: 16px; }
.menu-list .num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: none;
}

.menu-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.menu-side h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin: 0 0 12px;
}
.menu-side .row { display: flex; align-items: center; gap: 8px; }
.menu-side .row svg { width: 14px; height: 14px; }
.menu-side a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
.menu-side a:hover { color: var(--amber-500); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 96px 0 32px; }
.site-footer .container { padding-top: 0; }
.site-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 80px;
}
.site-footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 120ms; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer .muted { color: rgba(255,255,255,0.7); font-size: 14px; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Client roster row (typeset wordmarks + segment caption) ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-1);
  border-left: 1px solid var(--border-1);
}
.dark .clients { border-color: rgba(255,255,255,0.12); }
.client {
  position: relative;
  border-right: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-2);
  padding: 22px 24px 18px;
  transition: color 160ms, background 160ms;
}
.dark .client {
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.client:hover { color: var(--fg-1); background: var(--neutral-50); }
.dark .client:hover { color: #fff; background: rgba(255,255,255,0.04); }

.client-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  color: var(--fg-1);
  text-align: center;
}
.dark .client-wordmark { color: #fff; }

.client-caption {
  font: 600 9px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.dark .client-caption { color: rgba(255,255,255,0.5); }

.client[data-segment="government"] .client-caption { color: var(--amber-700); }
.dark .client[data-segment="government"] .client-caption { color: var(--amber-500); }

.client .serif { font-family: "Times New Roman", Georgia, serif; font-weight: 400; letter-spacing: 0.1em; }
.client .mark { font-weight: 800; font-size: 18px; letter-spacing: 0.1em; }
.client .stack { display:flex; flex-direction:column; align-items:center; line-height: 1.05; }
.client .stack .top { font-size: 11px; letter-spacing: 0.3em; }
.client .stack .mid { font-size: 16px; letter-spacing: 0.18em; font-weight: 700; }

/* ---------- Project card patterns ---------- */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.project-card .img-wrap {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  background: var(--bg-3);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.3,1);
}
.project-card:hover img { transform: scale(1.03); }
.project-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 14px;
}
.project-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}

/* ---------- Growth verticals (residential + government) ---------- */
.growth-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .growth-head { grid-template-columns: 1fr; gap: 24px; } }

.growth-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0;
  margin-bottom: 72px;
  border-top: 1px solid var(--neutral-1000);
  border-bottom: 1px solid var(--neutral-1000);
}
@media (max-width: 900px) {
  /* Two columns: keep every cell flush-left within its column so rows line up
     (the desktop :first-child/:last-child padding tweaks otherwise stagger them). */
  .growth-stats { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .growth-stats > div { padding-left: 0 !important; padding-right: 0 !important; }
  .growth-stats > div:nth-child(2) { border-right: none !important; }
}
@media (max-width: 540px) {
  /* One column: every stat flush-left so "50%" aligns with the rest. */
  .growth-stats { grid-template-columns: 1fr; }
  .growth-stats > div { border-right: none !important; border-bottom: 1px solid var(--border-1); padding: 0 0 24px !important; }
  .growth-stats > div + div { padding-top: 24px !important; }
  .growth-stats > div:last-child { border-bottom: none; padding-bottom: 0 !important; }
}
.growth-stats > div {
  padding: 0 32px;
  border-right: 1px solid var(--border-1);
}
.growth-stats > div:first-child { padding-left: 0; }
.growth-stats > div:last-child { border-right: none; padding-right: 0; }
.growth-stats .n {
  font: 800 56px/1 Montserrat, system-ui, sans-serif;
  letter-spacing: -0.025em;
}
.growth-stats .n .u {
  font-size: 28px;
  color: var(--amber-500);
  letter-spacing: 0;
  margin-left: 2px;
}
.growth-stats .l {
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 30ch;
}

.growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
@media (max-width: 1000px) { .growth-grid { grid-template-columns: 1fr; } }

.growth-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 48px 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.growth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--amber-500);
}
.growth-residential { background: linear-gradient(180deg, #fffbf2 0%, #fff 220px); }
.growth-gov         { background: linear-gradient(180deg, #faf7f1 0%, #fff 220px); }

.growth-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.growth-tag .skew-bar { width: 8px; height: 14px; transform: skewX(-12deg); display: inline-block; }

.growth-title {
  margin: 0;
  font: 700 44px/1.05 Montserrat, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
@media (max-width: 1200px) { .growth-title { font-size: 36px; } }

.growth-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 48ch;
}

.growth-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.growth-key {
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.growth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.growth-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-1);
  padding-left: 20px;
  position: relative;
}
.growth-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--amber-500);
}
.growth-list li b { font-weight: 700; }

.growth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-1);
  margin-top: auto;
}
.growth-stamp {
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.growth-link {
  font: 700 13px/1 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: var(--fg-1);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--neutral-1000);
  border-radius: 999px;
  transition: background 160ms, color 160ms;
}
.growth-link:hover { background: var(--neutral-1000); color: #fff; }

.growth-strip {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 36px 0 0;
  border-top: 1px solid var(--neutral-1000);
}
@media (max-width: 900px) { .growth-strip { grid-template-columns: 1fr; gap: 24px; } }
.growth-strip-key {
  font: 700 12px/1.3 ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.growth-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .growth-strip-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .growth-strip-grid { grid-template-columns: 1fr; } }
.growth-strip-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.growth-strip-grid b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.growth-strip-grid span {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
}
.atoll-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 1000px) {
  .atoll-grid { grid-template-columns: 1fr; gap: 48px; }
}

.atoll-map { display: block; color: var(--fg-1); }
.atoll-map-stage {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
@media (max-width: 720px) {
  .atoll-map-stage { grid-template-columns: 1fr; gap: 24px; }
}

.atoll-svg-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  position: relative;
}
.dark .atoll-svg-wrap { background: transparent; border: none; }

.atoll-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  overflow: visible;
}

/* —— Chrome inside the SVG (compass, footer index) —— */
.atoll-compass circle { fill: rgba(255,255,255,0.55); stroke: rgba(0,0,0,0.55); stroke-width: 3; }
.atoll-compass line   { stroke: #000; stroke-width: 5; }
.atoll-compass polygon { fill: var(--amber-500); stroke: #000; stroke-width: 3; stroke-linejoin: round; }
.atoll-cmono {
  font: 700 34px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em;
  fill: #000;
  paint-order: stroke fill;
  stroke: rgba(250,247,241,0.7);
  stroke-width: 4;
}
.dark .atoll-compass circle { fill: rgba(0,0,0,0.5); stroke: rgba(255,255,255,0.5); }
.dark .atoll-compass line   { stroke: #fff; }
.dark .atoll-cmono { fill: #fff; stroke: rgba(0,0,0,0.6); }

.atoll-foot line { stroke: rgba(0,0,0,0.4); stroke-width: 4; }
.atoll-foot text {
  font: 700 32px/1 ui-monospace, monospace;
  letter-spacing: 0.2em;
  fill: rgba(0,0,0,0.65);
}
.dark .atoll-foot line { stroke: rgba(255,255,255,0.4); }
.dark .atoll-foot text { fill: rgba(255,255,255,0.65); }

/* —— Pins on top of served atolls —— */
.atoll-node { cursor: pointer; outline: none; }
.atoll-hit { fill: transparent; }
.atoll-ring {
  fill: #fff;
  stroke: #000;
  stroke-width: 4;
  transition: r 200ms cubic-bezier(.2,.7,.2,1.3);
}
.atoll-pin {
  fill: var(--amber-500);
  stroke: #000;
  stroke-width: 2;
  transition: r 200ms cubic-bezier(.2,.7,.2,1.3);
}
.atoll-label {
  font: 800 38px/1 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.02em;
  fill: #111;
  paint-order: stroke fill;
  stroke: rgba(250,247,241,0.95);
  stroke-width: 8;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: opacity 200ms;
}
.dark .atoll-label { fill: #fff; stroke: rgba(10,10,10,0.85); }

.atoll-node:hover .atoll-ring,
.atoll-node:focus-visible .atoll-ring,
.atoll-node.is-active .atoll-ring { r: 30; }
.atoll-node:hover .atoll-pin,
.atoll-node:focus-visible .atoll-pin,
.atoll-node.is-active .atoll-pin { r: 22; }
.atoll-node:hover .atoll-label,
.atoll-node:focus-visible .atoll-label,
.atoll-node.is-active .atoll-label { opacity: 1; }

/* HQ — bigger, inverted */
.atoll-node.is-hq .atoll-ring { fill: #000; stroke: var(--amber-500); stroke-width: 6; }
.atoll-node.is-hq .atoll-pin  { fill: var(--amber-500); stroke: #000; stroke-width: 3; }
.atoll-node.is-hq:hover .atoll-ring,
.atoll-node.is-hq:focus-visible .atoll-ring,
.atoll-node.is-hq.is-active .atoll-ring { r: 38; }
.atoll-node.is-hq:hover .atoll-pin,
.atoll-node.is-hq:focus-visible .atoll-pin,
.atoll-node.is-hq.is-active .atoll-pin { r: 28; }

.atoll-pulse {
  fill: none;
  stroke: var(--amber-500);
  stroke-width: 6;
  transform-box: fill-box;
  transform-origin: center;
  animation: atoll-pulse 2.4s ease-out infinite;
}
@keyframes atoll-pulse {
  0%   { r: 28; opacity: 0.85; }
  100% { r: 110; opacity: 0;    }
}

/* —— Reveal entry animation —— */
.atoll-map .atoll-node {
  opacity: 0;
  transform: translateY(6px);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 480ms ease-out, transform 480ms cubic-bezier(.2,.7,.2,1.2);
}
.atoll-map.is-revealed .atoll-node { opacity: 1; transform: translateY(0); }
.atoll-map.is-revealed .atoll-node:nth-child(1) { transition-delay: 200ms; }
.atoll-map.is-revealed .atoll-node:nth-child(2) { transition-delay: 320ms; }
.atoll-map.is-revealed .atoll-node:nth-child(3) { transition-delay: 440ms; }
.atoll-map.is-revealed .atoll-node:nth-child(4) { transition-delay: 560ms; }
.atoll-map.is-revealed .atoll-node:nth-child(5) { transition-delay: 680ms; }
.atoll-map.is-revealed .atoll-node:nth-child(6) { transition-delay: 800ms; }
.atoll-map.is-revealed .atoll-node:nth-child(7) { transition-delay: 920ms; }
.atoll-map.is-revealed .atoll-node:nth-child(8) { transition-delay: 1040ms; }
.atoll-map.is-revealed .atoll-node:nth-child(9) { transition-delay: 1160ms; }
.atoll-map.is-revealed .atoll-node:nth-child(10) { transition-delay: 1280ms; }

/* —— Info card —— */
.atoll-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 24px 24px 22px;
  min-height: 260px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: border-color 200ms, transform 200ms;
}
.atoll-card.is-sticky {
  border-color: #000;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18);
}
.cream .atoll-card { background: #fffdf8; }
.dark .atoll-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); color: #fff; }

.atoll-card-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 700 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-1);
  opacity: 0.7;
}
.atoll-card-eyebrow .bar {
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--amber-500);
}
.dark .atoll-card-eyebrow { color: rgba(255,255,255,0.7); }

.atoll-card-hint {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 32ch;
}
.dark .atoll-card-hint { color: rgba(255,255,255,0.65); }

.atoll-legend {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: 600 12px/1.3 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.dark .atoll-legend { border-top-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
.atoll-legend > div { display: flex; align-items: center; gap: 10px; }
.atoll-legend .sw {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #000;
}
.atoll-legend .sw-pin    { background: var(--amber-500); }
.atoll-legend .sw-hq     { background: #000; border-color: var(--amber-500); border-width: 2px; }
.atoll-legend .sw-other  { background: #ede2c8; }
.dark .atoll-legend .sw       { border-color: #fff; }
.dark .atoll-legend .sw-hq    { border-color: var(--amber-500); }
.dark .atoll-legend .sw-other { background: rgba(255,255,255,0.18); }

.atoll-card-name {
  margin-top: 14px;
  font: 700 28px/1.05 Montserrat, system-ui, sans-serif;
  letter-spacing: -0.015em;
}
.atoll-card-stat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-1);
}
.dark .atoll-card-stat { border-top-color: rgba(255,255,255,0.12); }
.atoll-card-stat > div:first-child {
  font: 700 40px/1 Montserrat, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.atoll-card-stat em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-left: 8px;
}
.js-segchip {
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid #000;
  border-radius: 999px;
}
.dark .js-segchip { border-color: rgba(255,255,255,0.4); }

.atoll-card-sample {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}
.dark .atoll-card-sample { color: rgba(255,255,255,0.7); }

.atoll-card-fill {
  animation: atoll-card-in 320ms cubic-bezier(.2,.7,.2,1.1);
}
@keyframes atoll-card-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .atoll-map .atoll-node,
  .atoll-card-fill { transition: none !important; animation: none !important; }
  .atoll-pulse { animation: none; }
  .atoll-map .atoll-node { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.dark .kicker { color: rgba(255,255,255,0.55); }

.tagline-strip {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Stop body scroll when overlay open */
body.no-scroll { overflow: hidden; }

/* =======================================================================
   Interactive enhancements (paired with interact.js)
   ======================================================================= */

/* ── Scroll progress bar ────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--amber-500);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* ── Reveal-on-scroll ──────────────────────────────────────── */
/* Transitions are always defined; the hidden state ONLY applies once JS
   marks the body as ready. That way: (a) screenshot tools / no-JS still
   see the content, and (b) above-the-fold elements are pre-revealed by
   JS before the hidden rules engage so there is no FOUC. */
[data-reveal] {
  transition: opacity 760ms cubic-bezier(.2,.7,.2,1), transform 760ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
body.is-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(28px);
}
body.is-ready [data-reveal="fade"]:not(.is-revealed) { transform: none; }
body.is-ready [data-reveal="left"]:not(.is-revealed) { transform: translateX(-28px); }
body.is-ready [data-reveal="right"]:not(.is-revealed) { transform: translateX(28px); }
body.is-ready [data-reveal="zoom"]:not(.is-revealed) { transform: scale(0.96); }
[data-reveal][data-reveal-delay="80"]  { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="160"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="240"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="320"] { transition-delay: 320ms; }
[data-reveal][data-reveal-delay="400"] { transition-delay: 400ms; }
[data-reveal][data-reveal-delay="480"] { transition-delay: 480ms; }
[data-reveal][data-reveal-delay="560"] { transition-delay: 560ms; }
[data-reveal][data-reveal-delay="640"] { transition-delay: 640ms; }
[data-reveal][data-reveal-delay="720"] { transition-delay: 720ms; }
[data-reveal][data-reveal-delay="800"] { transition-delay: 800ms; }

/* ── Magnetic buttons ─────────────────────────────────────── */
[data-magnetic] {
  transition: transform 360ms cubic-bezier(.2,.7,.2,1.15);
  will-change: transform;
}

/* ── Tilt on hover ────────────────────────────────────────── */
[data-tilt] {
  perspective: 1400px;
  transform-style: preserve-3d;
}
[data-tilt] .tilt-inner {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 480ms cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}

/* ── Cursor-following amber bar (service rows) ─────────────── */
[data-cursor-bar] { position: relative; }
[data-cursor-bar]::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: var(--cx, -10px);
  width: 2px;
  background: var(--amber-500);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
[data-cursor-bar]:hover::before { opacity: 0.85; }

/* ── Marquee strip ───────────────────────────────────────── */
.marquee {
  background: var(--neutral-1000);
  color: #fff;
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.marquee-viewport {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  flex-shrink: 0;
  padding-right: 56px;
  white-space: nowrap;
  font: 800 clamp(28px, 4.6vw, 56px)/1 Montserrat, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: marq 32s linear infinite;
}
.marquee-track .sep {
  color: var(--amber-500);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  font-size: 0.7em;
}
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── Leadership / team grid ──────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  isolation: isolate;
}
.team-card .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1200ms cubic-bezier(.2,.7,.3,1),
              filter   600ms cubic-bezier(.2,.7,.3,1);
  filter: saturate(0.88) contrast(1.05) brightness(0.96);
}
.team-card:hover .photo,
.team-card:focus-visible .photo {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.08) brightness(1);
}
.team-card .num {
  position: absolute;
  top: 14px; left: 14px;
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
  color: #000;
  background: var(--amber-500);
  padding: 6px 8px;
  border-radius: 4px;
  z-index: 2;
}
.team-card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 75%);
  color: #fff;
  z-index: 1;
}
.team-card .role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-500);
}
.team-card .name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-top: 6px;
  color: #fff;
}
.team-card .arrow {
  position: absolute;
  right: 14px; top: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 2;
  opacity: 0;
  transform: translate(6px, -6px);
  transition: opacity 240ms, transform 360ms cubic-bezier(.2,.7,.2,1.2);
}
.team-card:hover .arrow,
.team-card:focus-visible .arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Team modal (deep-bio overlay) ───────────────────────── */
.team-modal {
  position: fixed; inset: 0;
  z-index: 220;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(.2,.7,.2,1);
}
.team-modal.open { opacity: 1; pointer-events: auto; }
.team-modal-panel {
  width: min(640px, 100%);
  background: #fff;
  color: var(--fg-1);
  padding: 56px 56px 40px;
  overflow-y: auto;
  transform: translateX(40px);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.team-modal.open .team-modal-panel { transform: translateX(0); }
.team-modal-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid var(--neutral-1000);
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px;
}
.team-modal-close:hover { background: #000; color: #fff; }
.team-modal-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 10px;
  margin-bottom: 24px;
}
.team-modal-role {
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: 0.2em;
  color: var(--amber-700);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-modal-name {
  font: 800 clamp(40px, 4.4vw, 56px)/1 Montserrat, sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.team-modal-bio {
  font-size: 16px; line-height: 1.65; color: var(--fg-2);
}
.team-modal-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.team-modal-tags .tag {
  font: 600 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--neutral-100);
  border: 1px solid var(--border-1);
  color: var(--fg-1);
}

@media (prefers-reduced-motion: reduce) {
  .team-card .photo,
  .team-modal,
  .team-modal-panel { transition: none !important; }
}

/* ============================================================
   MOBILE RESPONSIVE FIXES  (additive — desktop unchanged)
   Every rule is inside a max-width query, so widths above the
   breakpoint render exactly as before. Collapses the grids,
   hides the header tagline, and lowers the heading clamp()
   floors that previously had no mobile breakpoint. The page
   used overflow-x:clip to hide this overflow; these rules fix
   the underlying layout so nothing gets chopped off.
   ============================================================ */
@media (max-width: 860px) {
  .topnav-quick { display: none; }                 /* tagline can't share the bar with logo + Menu */
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 56px; }
  .menu-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }   /* nav overlay */
}
@media (max-width: 768px) {
  .page-hero h1 { font-size: clamp(38px, 12vw, 64px) !important; }
  .svc-hero h1  { font-size: clamp(34px, 11vw, 56px) !important; }
  .display-xl   { font-size: clamp(38px, 12vw, 168px); }
  .display-l    { font-size: clamp(34px, 9vw, 128px); }
  .cta-grid     { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .topnav-inner { padding: 0 20px; }
  .menu-overlay-top { padding: 0 20px; }
  .display-m { font-size: clamp(30px, 8vw, 80px); }
  .site-footer { padding-top: 64px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer-bottom { flex-direction: column; gap: 8px; }
  .menu-list a { font-size: clamp(30px, 9vw, 48px); padding: 12px 0; gap: 12px; }
  .growth-card { padding: 32px 22px 28px; }
  .growth-title { font-size: 30px; }
  .growth-stats .n { font-size: 44px; }
}
