/* Direction A — CARBON */
/* Dark, refined, Linear/Stripe register */

/* Smooth-scroll for in-page anchors. Anchor offset compensates for the
   transparent absolute nav so the section heading isn't tucked under it.
   prefers-reduced-motion users get instant jumps. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cb-anchor { scroll-margin-top: 2rem; }

.cb-root {
  --mulberry: #9E1B4C;
  --mulberry-dark: #7A1438;
  --mulberry-glow: rgba(158, 27, 76, 0.15);
  --dark-bg: #0C0C0B;
  --carbon: #16161A;
  --charcoal: #1F1E1C;
  --graphite: #2A2926;
  --text: #F5F4EE;
  --body: rgba(245, 244, 238, 0.78);
  --muted: rgba(245, 244, 238, 0.45);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --max-w: 1240px;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  font-family: var(--display);
  background: var(--dark-bg);
  color: var(--body);
  position: relative;
  overflow-x: hidden;
}

.cb-density-airy { --pad-sec: 10rem; --pad-card: 2.4rem; }
.cb-root { --pad-sec: 7rem; --pad-card: 1.9rem; }
.cb-density-compact { --pad-sec: 5rem; --pad-card: 1.4rem; }

.cb-weight-300 h1, .cb-weight-300 h2, .cb-weight-300 h3 { font-weight: 300; }
.cb-weight-400 h1, .cb-weight-400 h2, .cb-weight-400 h3 { font-weight: 400; }
.cb-weight-500 h1, .cb-weight-500 h2, .cb-weight-500 h3 { font-weight: 500; }

.cb-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mulberry);
}
.cb-accent-quiet .cb-eyebrow { color: rgba(158,27,76,0.7); }
.cb-accent-loud .cb-eyebrow { color: #ff4b8e; }

/* NAV */
.cb-nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--gutter);
}
.cb-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.cb-brand-wm {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}
.cb-brand-wm em { font-style: normal; color: var(--mulberry); }
.cb-nav-links { display: flex; gap: 6px; }
.cb-nav-links a {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--body);
  cursor: pointer;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.cb-nav-links a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.cb-nav-actions { display: flex; align-items: center; gap: 10px; }
.cb-nav-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(158, 27, 76, 0.55);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  background: rgba(158, 27, 76, 0.06);
  transition: background .2s, border-color .2s, color .2s;
}
.cb-nav-login svg { color: var(--mulberry); transition: color .2s; }
.cb-nav-login:hover {
  background: var(--mulberry);
  border-color: var(--mulberry);
  color: var(--text);
}
.cb-nav-login:hover svg { color: var(--text); }
.cb-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.cb-nav-cta:hover { background: var(--mulberry); border-color: var(--mulberry); }

/* HERO */
.cb-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 30% 0%, #1a1320 0%, var(--dark-bg) 60%);
  overflow: hidden;
}
.cb-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255,255,255,0.025) 0%, transparent 60%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 55%, #050505 100%);
}
.cb-mesh-wrap { position: absolute; inset: 0; pointer-events: none; }
.cb-mesh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-mesh-band { pointer-events: auto; }

/* Live Network band — interactive synapse mesh */
.cb-live {
  position: relative;
  padding: 9rem var(--gutter);
  background: var(--dark-bg);
  border-block: 1px solid var(--border);
  overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.cb-live.in { opacity: 1; transform: none; }
.cb-live::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: none;
  z-index: 1;
}
.cb-live-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  text-align: center; pointer-events: none;
}
.cb-live-content .cb-eyebrow { display: block; margin-bottom: 1.25rem; }
.cb-live h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--text);
  margin-bottom: 1.25rem;
}
.cb-live h2 em { font-style: normal; color: var(--mulberry); }
.cb-live p { font-size: 1.1rem; color: var(--body); max-width: 50ch; margin: 0 auto; line-height: 1.6; }
.cb-live::after {
  content: '↑ MOVE CURSOR'; position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.32em; color: var(--muted);
  z-index: 2; pointer-events: none;
}
.cb-hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
}
.cb-hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--dark-bg) 100%);
}
.cb-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 11rem;
  padding-bottom: 6rem;
}
.cb-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  margin-bottom: 2.5rem;
}
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mulberry); animation: cbPulse 2s infinite; }
@keyframes cbPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.cb-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 2rem;
  font-weight: 500;
}
.cb-hero h1 em { font-style: normal; color: var(--mulberry); }
.cb-hero-content > p {
  font-size: 1.25rem;
  max-width: 50ch;
  color: var(--body);
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.cb-hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 4rem; position: relative; z-index: 4; }

.cb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.cb-btn-primary { background: var(--mulberry); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.cb-btn-primary:hover { background: var(--mulberry-dark); transform: translateY(-2px); }
.cb-btn-ghost { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.02); backdrop-filter: blur(8px); }
.cb-btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }

.cb-hero-meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cb-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cb-pulse { width: 8px; height: 8px; border-radius: 50%; background: #00d68f; animation: cbPulse 2s infinite; }

/* Floating 3D orbs — decorative depth */
.cb-hero-orbs {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  overflow: hidden;
}
.cb-orb {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #FFD3E1 0%, #F65595 22%, #9E1B4C 62%, #3A0A1F 100%);
  box-shadow:
    inset 0 -8px 16px rgba(0,0,0,0.4),
    inset 0 4px 8px rgba(255,255,255,0.18);
  animation: cbOrbFloat 14s ease-in-out infinite;
}
.cb-orb::after { display: none; }
.cb-orb-1 { width: 28px; height: 28px; top: 22%; right: 16%; animation-delay: 0s; }
.cb-orb-2 { width: 18px; height: 18px; top: 38%; right: 30%; animation-delay: -4s; opacity: 0.85; }
.cb-orb-3 { width: 42px; height: 42px; top: 60%; right: 8%; animation-delay: -8s; }
@keyframes cbOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-12px, -22px, 0); }
  50% { transform: translate3d(-6px, -8px, 0); }
  75% { transform: translate3d(14px, -18px, 0); }
}
@media (max-width: 800px) { .cb-hero-orbs { display: none; } }

.cb-hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.32em; color: var(--muted);
  z-index: 4;
}
.cb-scroll-line { width: 1px; height: 50px; background: linear-gradient(180deg, var(--mulberry), transparent); animation: cbScroll 2s infinite; }
@keyframes cbScroll { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.01% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* SECTION HEADING DEFAULT — centred */
.cb-root section h2 { text-align: center; }
.cb-root section h2 em { font-style: normal; color: var(--mulberry); }

/* MISSION */
.cb-mission { padding: var(--pad-sec) var(--gutter); background: var(--dark-bg); position: relative; }
.cb-mission::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mulberry), transparent);
}
.cb-mission-inner {
  max-width: 800px; margin: 0 auto; text-align: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.cb-mission-inner.in { opacity: 1; transform: none; }
.cb-mission-inner .cb-eyebrow { display: block; margin-bottom: 2rem; }
.cb-mission h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.cb-mission h2 em { font-style: normal; color: var(--mulberry); }
.cb-mission p { font-size: 1.15rem; color: var(--body); max-width: 50ch; margin: 0 auto; line-height: 1.6; }
.cb-mission-rule { width: 40px; height: 2px; background: var(--mulberry); margin: 2.5rem auto 0; }

/* COVERAGE — Total Connectivity, NZ network */
.cb-coverage {
  padding: var(--pad-sec) var(--gutter);
  background: var(--dark-bg);
  border-block: 1px solid var(--border);
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.cb-coverage.in { opacity: 1; transform: none; }
.cb-coverage-inner { max-width: var(--max-w); margin: 0 auto; }
.cb-coverage-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.cb-coverage-head .cb-eyebrow { display: block; margin-bottom: 1.25rem; }
.cb-coverage-head h2 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em; color: var(--text); line-height: 1;
  margin-bottom: 1.25rem;
}
.cb-coverage-head h2 em { font-style: normal; color: var(--mulberry); }
.cb-coverage-head p { font-size: 1.1rem; color: var(--body); line-height: 1.6; max-width: 56ch; margin: 0 auto; }

.cb-coverage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: stretch;
}
@media (max-width: 900px) { .cb-coverage-grid { grid-template-columns: 1fr; } }

.cb-coverage-side { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.cb-coverage-fact {
  padding: 2rem 2.2rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
}
.cb-coverage-num { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.cb-coverage-num span { font-size: 0.3em; font-family: var(--mono); letter-spacing: 0.16em; color: var(--mulberry); margin-left: 0.6em; text-transform: uppercase; }
.cb-coverage-fact .cb-eyebrow { font-size: 0.85rem; }

.cb-coverage-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 0; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.cb-coverage-list > div {
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.cb-coverage-list > div:nth-child(2n) { border-right: none; }
.cb-coverage-list > div:nth-last-child(-n+2) { border-bottom: none; }
.cb-coverage-list strong { font-size: 1.1rem; font-weight: 500; color: var(--text); letter-spacing: -0.005em; }
.cb-coverage-list span { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 500px) {
  .cb-coverage-list { grid-template-columns: 1fr; }
  .cb-coverage-list > div { border-right: none; }
}

.cb-coverage-map {
  position: relative;
}
.cb-coverage-stage {
  position: relative;
  aspect-ratio: 1; width: 100%; max-width: 580px; margin: 0 auto;
  background: radial-gradient(circle at center, var(--carbon), var(--dark-bg) 70%);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.cb-coverage-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.cb-coverage-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-coverage-floor { display: none; }

/* (old coverage rules superseded above) */


/* STATS */
.cb-stats {
  padding: 4rem var(--gutter) 6rem;
  background: var(--carbon);
  border-block: 1px solid var(--border);
  position: relative;
}
.cb-stats::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mulberry), transparent);
}
.cb-stats-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  /* Auto-flex so 1-4 stats all fill the row cleanly. Min 240px per cell. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}
.cb-stat {
  padding: 2.5rem 2rem;
  border-left: 1px solid var(--border);
  position: relative;
  transition: background .3s;
  /* Centre numbers + descriptive text within their grid cell */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cb-stat:first-child { border-left: none; }
.cb-stat:hover { background: rgba(255,255,255,0.02); }
.cb-stat-num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.cb-stat-num span { color: var(--mulberry); font-size: 0.5em; margin-left: 0.1em; }
.cb-stat-rule { width: 32px; height: 2px; background: var(--mulberry); margin: 1.25rem 0; }
.cb-stat-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 0.5rem; }
.cb-stat-sub { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 900px) { .cb-stats-grid { grid-template-columns: 1fr 1fr; } .cb-stat:nth-child(3) { border-left: none; } }

/* PILLARS — centred header + editorial rows */
.cb-pillar {
  padding: var(--pad-sec) var(--gutter);
  background: var(--dark-bg);
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.cb-pillar:nth-of-type(even) { background: var(--carbon); }
.cb-pillar.in { opacity: 1; transform: none; }
.cb-pillar-inner { max-width: var(--max-w); margin: 0 auto; }
.cb-pillar-head {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.cb-pillar-head .cb-eyebrow { display: block; margin-bottom: 1.25rem; }
.cb-pillar-head h2 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em; color: var(--text); line-height: 0.95;
  margin: 0 auto 1rem;
}
.cb-pillar-head p {
  font-size: 1.15rem; color: var(--body); line-height: 1.6;
  max-width: 56ch; margin: 0 auto;
}

/* Editorial rows */
.cb-rows { display: flex; flex-direction: column; }
.cb-row {
  display: grid; grid-template-columns: 1fr 40px; gap: 2rem;
  align-items: center; padding: 1.8rem 1rem;
  border-top: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  color: var(--body);
  transition: background .3s, padding-left .3s var(--ease), color .3s;
  animation: cbRowIn .8s var(--ease) var(--di) backwards;
}
@keyframes cbRowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cb-row:last-child { border-bottom: 1px solid var(--border); }
.cb-row:hover { background: rgba(255,255,255,0.025); padding-left: 1.6rem; color: var(--text); }
.cb-row-idx {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--mulberry);
}
.cb-row-body h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text); margin-bottom: 0.5rem; }
.cb-row-body p { font-size: 0.95rem; color: var(--body); line-height: 1.55; max-width: 62ch; }
.cb-row-arrow { font-size: 1.4rem; color: var(--mulberry); transition: transform .25s var(--ease); justify-self: end; }
.cb-row:hover .cb-row-arrow { transform: translateX(6px); }
@media (max-width: 720px) {
  .cb-row { grid-template-columns: 1fr 40px; gap: 0.5rem 1rem; padding: 1.4rem 0.5rem; }
}

/* GALLERY */
.cb-gallery {
  padding: var(--pad-sec) var(--gutter);
  background: var(--dark-bg);
  border-block: 1px solid var(--border);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s, transform 1s;
}
.cb-gallery.in { opacity: 1; transform: none; }
.cb-gallery-inner { max-width: var(--max-w); margin: 0 auto; }
.cb-gallery-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.cb-gallery-head .cb-eyebrow { display: block; margin-bottom: 1.25rem; }
.cb-gallery-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.cb-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 1000px) { .cb-gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cb-gallery-grid { grid-template-columns: 1fr; } }
.cb-gallery-item {
  position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px rgba(0,0,0,0.4);
  animation: cbRowIn .8s var(--ease) var(--di) backwards;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.cb-gallery-item:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 40px 80px rgba(0,0,0,0.6); }
.cb-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cb-gallery-item:hover img { transform: scale(1.07); }
.cb-gallery-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(12,12,11,0.92));
  color: var(--text);
}
.cb-gallery-meta .cb-eyebrow { display: block; margin-bottom: 0.4rem; font-size: 0.65rem; }
.cb-gallery-meta strong { font-weight: 500; font-size: 0.95rem; }
.cb-break {
  padding: var(--pad-sec) var(--gutter);
  background: var(--dark-bg);
  opacity: 0; transition: opacity 1s;
}
.cb-break.in { opacity: 1; }
.cb-break-photo {
  position: relative; max-width: var(--max-w); margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--border);
}
.cb-break-photo img { width: 100%; height: 100%; object-fit: cover; }
.cb-break-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(12,12,11,0.85) 30%, rgba(12,12,11,0.2) 100%);
}
.cb-break-content {
  position: absolute; inset: 0;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cb-break-content .cb-eyebrow { margin-bottom: 1rem; }
.cb-break-content h3 {
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text);
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 2rem;
  max-width: 22ch;
}
.cb-break-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-break-tags span {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text);
  padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; backdrop-filter: blur(8px);
}

/* CONTACT */
.cb-contact {
  padding: var(--pad-sec) var(--gutter);
  background: var(--carbon);
  border-block: 1px solid var(--border);
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s, transform 1s;
}
.cb-contact.in { opacity: 1; transform: none; }
.cb-contact h2 em { font-style: normal; color: var(--mulberry); }
.cb-contact-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: start;
}
@media (max-width: 800px) { .cb-contact-inner { grid-template-columns: 1fr; } }
.cb-contact-left .cb-eyebrow { display: block; margin-bottom: 1.5rem; }
.cb-contact-left h2 {
  font-size: clamp(2.4rem, 5vw, 4rem); color: var(--text);
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.5rem;
}
.cb-contact-left p { font-size: 1.1rem; color: var(--body); margin-bottom: 2.5rem; line-height: 1.6; max-width: 40ch; }

.cb-contact-row {
  display: grid; grid-template-columns: 110px 1fr; align-items: baseline;
  padding: 1.4rem 0; border-top: 1px solid var(--border);
  gap: 1.5rem;
}
.cb-contact-row:last-of-type { border-bottom: 1px solid var(--border); }
.cb-contact-row span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.cb-contact-row strong { font-size: 1rem; color: var(--text); font-weight: 400; }
.cb-accred { margin-top: 2.5rem; }
.cb-accred .cb-eyebrow { display: block; margin-bottom: 1rem; }
.cb-accred-row { display: flex; gap: 1.5rem; align-items: center; }
.cb-accred-row img { height: 60px; background: rgba(255,255,255,0.95); border-radius: 8px; padding: 6px; }

/* Contact right column — project-intake card */
.cb-contact-right { display: flex; align-items: flex-start; }
.cb-contact-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}
.cb-contact-card .cb-eyebrow { display: block; margin-bottom: 1rem; }
.cb-contact-card h3 {
  font-size: 1.4rem; color: var(--text);
  letter-spacing: -0.01em; margin: 0 0 1.5rem;
}
.cb-contact-list {
  list-style: none; padding: 0; margin: 0 0 2rem;
  font-size: 0.92rem; color: var(--body); line-height: 1.55;
}
.cb-contact-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-top: 1px solid var(--border);
}
.cb-contact-list li:last-child { border-bottom: 1px solid var(--border); }
.cb-contact-list li::before {
  content: "—";
  position: absolute; left: 0; top: 0.55rem;
  color: var(--mulberry); font-family: var(--mono);
}
.cb-btn-block { display: flex; width: 100%; justify-content: center; margin-top: 0.6rem; }

/* FOOTER */
.cb-foot {
  background: #08080a;
  padding: 5rem var(--gutter) 2rem;
  border-top: 1px solid var(--border);
}
.cb-foot-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  margin-bottom: 4rem;
}
.cb-foot-brand { display: flex; align-items: center; gap: 16px; }
.cb-foot-wm { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.18em; color: var(--text); }
.cb-foot-wm em { font-style: normal; color: var(--mulberry); }
.cb-foot-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.cb-foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.cb-foot-cols h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; font-family: var(--mono); font-weight: 400; }
.cb-foot-cols a { display: block; font-size: 0.85rem; color: var(--body); padding: 4px 0; cursor: pointer; transition: color .2s; }
.cb-foot-cols a:hover { color: var(--mulberry); }
.cb-foot-bar {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.cb-foot-bar-link {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color .2s;
}
.cb-foot-bar-link:hover,
.cb-foot-bar-link:focus-visible {
  color: var(--body);
  outline: none;
}
@media (max-width: 800px) { .cb-foot-inner { grid-template-columns: 1fr; gap: 2.5rem; } .cb-foot-cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* card style overrides on root */
.cb-root.cb-card-glass .cb-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); backdrop-filter: blur(20px); }
.cb-root.cb-card-glass .cb-card:hover { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.cb-root.cb-card-lifted .cb-grid { background: transparent; border: none; gap: 1rem; }
.cb-root.cb-card-lifted .cb-card { background: var(--graphite); border-radius: 12px; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px rgba(0,0,0,0.4); }
.cb-root.cb-card-lifted .cb-card:hover { transform: translateY(-4px); background: var(--charcoal); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 60px rgba(0,0,0,0.5); }

/* accent intensity */
.cb-root.cb-accent-loud { --mulberry: #FF2D7C; --mulberry-glow: rgba(255,45,124,0.25); }
.cb-root.cb-accent-quiet { --mulberry: #7A1438; --mulberry-glow: rgba(142,20,80,0.1); }

/* ============================================================
   LIGHT SECTIONS — break the wall of black.
   Off-white #F5F4EE bands on alternating sections so the page
   reads as a sandwich (dark hero / light / dark / light / dark...).
   Re-skin via CSS variable overrides so all descendants inherit
   without per-element rules.
   ============================================================ */
.cb-mission,
.cb-coverage,
.cb-gallery,
.cb-contact {
  /* invert the text/body/muted/border tokens so children pick up dark-on-light */
  --text:         #0C0C0B;
  --body:         rgba(12, 12, 11, 0.78);
  --muted:        rgba(12, 12, 11, 0.45);
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  background: #F5F4EE !important;
  color: var(--body);
}

/* Headings + eyebrows in light sections render dark, with mulberry accent intact */
.cb-mission h2, .cb-coverage h2, .cb-gallery h2, .cb-contact h2,
.cb-mission h3, .cb-coverage h3, .cb-gallery h3, .cb-contact h3 {
  color: var(--text);
}
.cb-mission p, .cb-coverage p, .cb-gallery p, .cb-contact p {
  color: var(--body);
}
.cb-mission .cb-eyebrow,
.cb-coverage .cb-eyebrow,
.cb-gallery .cb-eyebrow,
.cb-contact .cb-eyebrow {
  /* mulberry stays mulberry — accent intensity classes still win via specificity */
  color: var(--mulberry);
}

/* Mission rule (mulberry hairline below the headline) stays mulberry — no override needed */

/* Coverage facts grid — borders need the dark-on-light treatment */
.cb-coverage-fact { border-color: var(--border); }
.cb-coverage-num, .cb-coverage-num span { color: var(--text); }

/* Gallery items — meta strip + image card borders */
.cb-gallery-item { border: 1px solid var(--border); }
.cb-gallery-meta { color: var(--body); }
.cb-gallery-meta strong { color: var(--text); }

/* Contact rows: dark borders on light bg */
.cb-contact-row { border-top-color: var(--border); }
.cb-contact-row:last-of-type { border-bottom-color: var(--border); }
.cb-contact-row strong { color: var(--text); }
.cb-contact-row span { color: var(--muted); }
.cb-contact-row strong a { color: var(--text); }
.cb-contact-row strong a:hover { color: var(--mulberry); }

/* Contact card on the right column — invert from the dark glass treatment to a light card */
.cb-contact .cb-contact-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  backdrop-filter: none;
}
.cb-contact .cb-contact-card h3 { color: var(--text); }
.cb-contact .cb-contact-list { color: var(--body); }
.cb-contact .cb-contact-list li { border-top-color: var(--border); }
.cb-contact .cb-contact-list li:last-child { border-bottom-color: var(--border); }

/* CTAs in light sections: ghost button needs a dark outline instead of white */
.cb-contact .cb-btn-ghost {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text);
}
.cb-contact .cb-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--mulberry);
}

/* Accreditations row card backing reads correctly on light too */
.cb-accred-row img { background: rgba(0, 0, 0, 0.04); }

/* ============================================================
   IN-THE-FIELD VIDEO SECTION  — replaced the old Live Network band.
   Same dark surface treatment as the surrounding stats / pillars
   sections so the visual rhythm stays consistent.
   ============================================================ */
.cb-video {
  padding: var(--pad-sec) var(--gutter);
  background: var(--dark-bg);
  border-block: 1px solid var(--border);
  position: relative;
}
.cb-video-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.cb-video-inner .cb-eyebrow {
  display: block;
  margin-bottom: 1.25rem;
}
.cb-video h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text);
  margin: 0 0 3rem;
  font-weight: 400;
}
.cb-video h2 em {
  font-style: normal;
  color: var(--mulberry);
}
.cb-video-frame {
  /* Portrait 9:16-ish container — sized to the helicopter footage (492x868).
     If the source video is swapped for landscape later, change max-width
     to ~1080 and aspect-ratio to 16/9. */
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 492 / 868;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.cb-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* Coverage right column — single-sentence callout next to the network map */
.cb-coverage-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36ch;
}
.cb-coverage-text p {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.005em;
  margin: 0;
}
.cb-coverage-text em {
  font-style: normal;
  color: var(--mulberry);
}
@media (max-width: 900px) {
  .cb-coverage-text { max-width: none; text-align: center; }
}

/* ============================================================
   Pillar collapse — clickable heading + chevron + max-height
   transition on the rows. Default closed; clicking the heading
   toggles. All three pillars (Technology/Engineering/Construction)
   share this behaviour for visual consistency.
   ============================================================ */
.cb-pillar-head {
  /* Strip default button chrome so the heading still reads like a heading */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cb-pillar-head:hover .cb-pillar-chevron,
.cb-pillar-head:focus-visible .cb-pillar-chevron {
  color: var(--mulberry);
}
.cb-pillar-head:focus-visible {
  outline: 2px solid var(--mulberry);
  outline-offset: 6px;
}
.cb-pillar-head-text { flex: 1; min-width: 0; }
.cb-pillar-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.2s;
  flex-shrink: 0;
}
.cb-pillar-open .cb-pillar-chevron {
  transform: rotate(180deg);
  color: var(--mulberry);
}



/* Capability row with a photo — landscape thumbnail left of body text.
   Items without the `img` field use the regular 2-col layout. */
.cb-row-imaged {
  grid-template-columns: 180px 1fr 40px;
}
.cb-row-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 720px) {
  .cb-row-imaged { grid-template-columns: 100px 1fr 40px; }
  .cb-row-img { aspect-ratio: 1 / 1; }
}
/* ============================================================
   Pillar body — collapsible wrapper for rows + photo stack.
   Single-column when no photos. Two-column (rows | photos)
   when the pillar has a `photos` array.
   ============================================================ */
.cb-pillar-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.3s var(--ease);
}
.cb-pillar-open .cb-pillar-body {
  max-height: 3500px;
  opacity: 1;
}

/* Two-column variant — capability rows narrower on the left, photo stack on the right */
.cb-pillar-body-with-photos {
  display: block;     /* default; grid only when open */
}
.cb-pillar-open .cb-pillar-body-with-photos {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   Photo stack — feature photo + overlapping inset photo.
   Big photo anchored right side of its column; inset photo
   absolute-positioned top-left, overlapping the big photo's
   upper-left edge. Subtle shadow on the inset lifts it off
   the feature. Mulberry hairline border for brand cohesion.
   ============================================================ */
.cb-pillar-stack {
  position: relative;
  width: 100%;
  /* Container height driven by feature photo's intrinsic ratio */
  padding-top: 1rem;
  min-height: 520px;
}
.cb-pillar-stack-feature {
  display: block;
  width: 80%;
  margin-left: auto;     /* anchor to right */
  aspect-ratio: 1 / 1.55;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.cb-pillar-stack-inset {
  position: absolute;
  left: 0;
  top: 8%;
  width: 52%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  border-radius: 4px;
  /* Dark frame around the inset so it reads as "lifted off" the feature */
  border: 2px solid var(--dark-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

@media (max-width: 900px) {
  /* Stack columns vertically — rows above photos */
  .cb-pillar-open .cb-pillar-body-with-photos {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cb-pillar-stack { min-height: 400px; }
  .cb-pillar-stack-feature { width: 78%; aspect-ratio: 3 / 4; }
  .cb-pillar-stack-inset { width: 50%; aspect-ratio: 4 / 3; top: 6%; }
}

/* Engineering pillar — both photos are landscape (drive-test report + RF
   heat-map), so override the portrait feature aspect to keep them readable. */
#engineering .cb-pillar-stack-feature {
  /* Match image native aspect (1600x900 = 16:9) so nothing gets cropped.
     Width bumped to 90% so the drive-test doc dominates the column. */
  aspect-ratio: 16 / 9;
  width: 90%;
}
#engineering .cb-pillar-stack-inset {
  /* Coverage map overhangs the drive-test doc's bottom-right corner
     so most of the inset sits BEYOND the doc — keeps the drive-test
     trail in Wellington / Kapiti area visible underneath. */
  left: auto;
  top: auto;
  right: -6%;
  bottom: -8%;
  width: 40%;
  aspect-ratio: 2 / 1;
}
#engineering .cb-pillar-stack { min-height: 380px; }

/* Construction pillar — feature is 16:9 landscape (concrete pad with rebar),
   inset is PORTRAIT (crane lifting a monopole). Position the inset top-left
   like Technology's layout but with portrait aspect, so it reads as a
   different composition from the other two pillars. */
#construction .cb-pillar-stack-feature {
  aspect-ratio: 16 / 9;
  width: 90%;
}
#construction .cb-pillar-stack-inset {
  /* Bottom-right corner of the concrete pad — portrait crane-lift photo
     anchored to the bottom-right edge of the feature. */
  left: auto;
  top: auto;
  right: 0;
  bottom: 0;
  width: 28%;
  aspect-ratio: 3 / 4;
}
#construction .cb-pillar-stack { min-height: 480px; }

/* Gallery items become buttons (click to enlarge) — strip default button chrome */
button.cb-gallery-item {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  display: block;
  width: 100%;
}
button.cb-gallery-item:focus-visible {
  outline: 2px solid var(--mulberry);
  outline-offset: 4px;
}

/* Lightbox — fullscreen dark overlay with centered enlarged image */
.cb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  cursor: zoom-out;
  animation: cbLightboxIn 0.25s var(--ease);
}
.cb-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  cursor: default;
}
.cb-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cb-lightbox-close:hover,
.cb-lightbox-close:focus-visible {
  background: var(--mulberry);
  border-color: var(--mulberry);
  color: var(--text);
  outline: none;
}
@keyframes cbLightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (max-width: 720px) {
  .cb-lightbox { padding: 2rem 1rem; }
  .cb-lightbox-close { top: 1rem; right: 1rem; }
}

/* ============================================================
   MOBILE OPTIMISATION - hamburger nav + responsive cleanup.
   Mobile-first overrides at <=720px and narrower.
   Desktop layout untouched.
   ============================================================ */

/* Hamburger button - hidden on desktop, shown <=720px */
.cb-nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .2s, border-color .2s;
}
.cb-nav-burger:hover { background: rgba(255,255,255,0.04); }
.cb-nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.cb-nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.cb-nav-burger.is-open span:nth-child(2) { opacity: 0; }
.cb-nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.cb-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.cb-mobile-drawer.is-open { pointer-events: auto; opacity: 1; }
.cb-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 11, 0.7);
  backdrop-filter: blur(8px);
}
.cb-mobile-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(82vw, 360px);
  background: #0F0F0E;
  border-left: 1px solid var(--border);
  padding: 5.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -30px 0 60px rgba(0,0,0,0.5);
}
.cb-mobile-drawer.is-open .cb-mobile-panel { transform: translateX(0); }
.cb-mobile-panel > a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.cb-mobile-panel > a:hover,
.cb-mobile-panel > a:focus-visible { color: var(--mulberry); padding-left: 6px; outline: none; }
.cb-mobile-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 1.5rem 0 1rem; }
.cb-mobile-login {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 18px !important;
  background: rgba(158, 27, 76, 0.08);
  border: 1px solid rgba(158, 27, 76, 0.55);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text) !important;
  border-bottom: 1px solid rgba(158, 27, 76, 0.55) !important;
}
.cb-mobile-login:hover { background: var(--mulberry) !important; border-color: var(--mulberry) !important; padding-left: 18px !important; }
.cb-mobile-login svg { color: var(--mulberry); }
.cb-mobile-login:hover svg { color: var(--text); }
.cb-mobile-meta {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cb-mobile-meta a { color: var(--body); }
.cb-mobile-meta a:hover { color: var(--mulberry); }

/* Show hamburger / hide horizontal nav on small screens */
@media (max-width: 720px) {
  .cb-nav-links,
  .cb-nav-actions { display: none; }
  .cb-nav-burger { display: inline-flex; }
  .cb-nav { padding: 1.1rem var(--gutter); }
}

/* HERO - tighten typography + padding for phones */
@media (max-width: 720px) {
  .cb-hero-content { padding-top: 7rem; padding-bottom: 4rem; }
  .cb-hero-eyebrow { margin-bottom: 1.5rem; font-size: 0.66rem; padding: 6px 11px; }
  .cb-hero h1 { font-size: clamp(2.6rem, 11vw, 5.2rem); line-height: 1.02; margin-bottom: 1.4rem; }
  .cb-hero-content > p { font-size: 1.02rem; line-height: 1.5; margin-bottom: 1.8rem; }
  .cb-hero-cta-row { gap: 10px; margin-bottom: 2.5rem; }
  .cb-btn { padding: 12px 20px; font-size: 0.82rem; }
  .cb-hero-meta { gap: 1.2rem 1.8rem; font-size: 0.68rem; }
  .cb-hero-scroll { display: none; }
}

@media (max-width: 420px) {
  .cb-hero-cta-row .cb-btn { flex: 1 1 100%; justify-content: center; }
}

/* STATS - single column on very narrow phones */
@media (max-width: 520px) {
  .cb-stats-grid { grid-template-columns: 1fr; }
  .cb-stats { padding: 3rem var(--gutter) 4rem; }
  .cb-stat { border-left: none; border-top: 1px solid var(--border); padding: 2rem 1rem; }
  .cb-stat:first-child { border-top: none; }
}

/* Section headings - tighter clamp floors on phones */
@media (max-width: 720px) {
  .cb-mission, .cb-coverage, .cb-video, .cb-pillar, .cb-gallery { padding: 5rem var(--gutter); }
  .cb-mission h2, .cb-coverage-head h2, .cb-video h2, .cb-pillar-head h2, .cb-gallery-head h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .cb-mission p, .cb-coverage-head p { font-size: 1rem; }
}

/* Pillar photo stack - safe corner on phones, no negative offsets */
@media (max-width: 900px) {
  .cb-pillar-head { gap: 1rem; margin-bottom: 2.5rem; padding-bottom: 2rem; }
  .cb-pillar-chevron svg { width: 24px; height: 24px; }
}
@media (max-width: 720px) {
  .cb-pillar-stack { min-height: 0; padding-top: 0.5rem; }
  .cb-pillar-stack-feature { width: 100%; margin: 0 auto; aspect-ratio: 4 / 3; }
  .cb-pillar-stack-inset,
  #engineering .cb-pillar-stack-inset,
  #construction .cb-pillar-stack-inset {
    position: absolute;
    left: auto !important;
    right: 4% !important;
    top: auto !important;
    bottom: -6% !important;
    width: 42% !important;
    aspect-ratio: 4 / 3 !important;
  }
  #engineering .cb-pillar-stack-feature,
  #construction .cb-pillar-stack-feature { aspect-ratio: 16 / 9; width: 100%; }
  .cb-pillar-open .cb-pillar-body-with-photos { padding-bottom: 2rem; }
}

/* Rows - tighter padding + tap targets on phones */
@media (max-width: 720px) {
  .cb-row { padding: 1.2rem 0.25rem; gap: 0.5rem 0.75rem; }
  .cb-row:hover { padding-left: 0.5rem; }
  .cb-row-body h3 { font-size: 1.1rem; }
  .cb-row-body p { font-size: 0.88rem; }
  .cb-row-imaged { grid-template-columns: 80px 1fr 32px; }
  .cb-row-arrow { font-size: 1.2rem; }
}

/* Coverage - tighten map + facts */
@media (max-width: 720px) {
  .cb-coverage-head { margin-bottom: 2.5rem; }
  .cb-coverage-grid { gap: 2.5rem; }
  .cb-coverage-fact { padding: 1.4rem; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .cb-coverage-num { font-size: 2.6rem; }
  .cb-coverage-stage { max-width: 360px; }
  .cb-coverage-text p { font-size: 1.05rem; }
}

/* Video frame full width on mobile */
@media (max-width: 720px) {
  .cb-video h2 { margin: 0 0 2rem; }
  .cb-video-frame { max-width: 100%; }
}

/* Gallery */
@media (max-width: 720px) {
  .cb-gallery-head { margin-bottom: 2rem; }
  .cb-gallery-grid { gap: 0.75rem; }
}

/* Contact */
@media (max-width: 720px) {
  .cb-contact { padding: 5rem var(--gutter); }
  .cb-contact-inner { gap: 2.5rem; }
  .cb-contact-row { grid-template-columns: 90px 1fr; gap: 1rem; padding: 1.1rem 0; }
  .cb-contact-card { padding: 1.8rem 1.4rem; }
}

/* Footer */
@media (max-width: 600px) {
  .cb-foot { padding: 3.5rem var(--gutter) 1.5rem; }
  .cb-foot-inner { margin-bottom: 2.5rem; gap: 2rem; }
  .cb-foot-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .cb-foot-bar {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 1.5rem;
  }
}

/* MOBILE PILLAR PHOTO STACK -- PER-PILLAR MIN-HEIGHT FIX */
/* Per-pillar #engineering and #construction min-height rules from the
   desktop layout were still applying on mobile due to selector specificity,
   leaving a tall empty void below the feature image with the absolute
   inset anchored to the bottom of that void.
   This block resets the min-heights and tightens the overlap geometry
   so the inset sits on the feature's bottom-right corner. */
@media (max-width: 720px) {
  .cb-pillar-stack,
  #engineering .cb-pillar-stack,
  #construction .cb-pillar-stack {
    min-height: 0 !important;
    height: auto;
    padding-top: 0.5rem;
  }
  .cb-pillar-stack-feature,
  #engineering .cb-pillar-stack-feature,
  #construction .cb-pillar-stack-feature {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    display: block;
  }
  .cb-pillar-stack-inset,
  #engineering .cb-pillar-stack-inset,
  #construction .cb-pillar-stack-inset {
    position: absolute !important;
    left: auto !important;
    top: auto !important;
    right: 4% !important;
    bottom: -14% !important;
    width: 44% !important;
    aspect-ratio: 4 / 3 !important;
    z-index: 2;
  }
  .cb-pillar-open .cb-pillar-body-with-photos { padding-bottom: 5rem; }
}

/* MOBILE PILLAR HEAD -- CENTER ALIGNMENT FIX */
/* Desktop renders the pillar heading as a flex row with the chevron on
   the right. On mobile that pushed the title and description text to the
   left of the page, looking off-center. Stack the chevron BELOW the text
   on small screens and center everything. */
@media (max-width: 720px) {
  .cb-pillar-head {
    flex-direction: column;
    text-align: center !important;
    gap: 0.9rem;
    align-items: center;
    justify-content: center;
  }
  .cb-pillar-head-text {
    text-align: center !important;
    width: 100%;
  }
  .cb-pillar-head-text .cb-eyebrow,
  .cb-pillar-head h2,
  .cb-pillar-head p {
    text-align: center !important;
  }
  .cb-pillar-head h2,
  .cb-pillar-head p {
    margin-left: auto;
    margin-right: auto;
  }
  .cb-pillar-chevron {
    align-self: center;
    margin-top: 0.25rem;
    transform-origin: center;
  }
  .cb-pillar-open .cb-pillar-chevron {
    transform: rotate(180deg);
  }
}
