/* variables.css */
:root {
  /* ── Backgrounds ── */
  --color-bg:           #F7F6F2;   /* warm off-white — not sterile, has warmth */
  --color-bg-alt:       #EEECEA;   /* alternate section bg */
  --color-surface:      #FFFFFF;   /* cards / elevated surfaces */
  --color-surface-2:    #F2F1ED;   /* hover surface */

  /* ── Brand green ── */
  --color-accent:       #00A86B;   /* primary green — buttons, badges, decorative */
  --color-accent-dark:  #007844;   /* text on light bg — better contrast */
  --color-accent-deep:  #005330;   /* body-size accent text */
  --color-accent-dim:   rgba(0, 168, 107, 0.10);  /* tinted fills */
  --color-accent-glow:  rgba(0, 168, 107, 0.18);

  /* ── Typography ── */
  --color-text:         #111210;   /* near-black, slight warmth */
  --color-text-muted:   #5D635A;   /* subdued body text; AA on light/tinted surfaces */
  --color-text-faint:   #A8AFA8;   /* dividers, placeholders, captions */

  /* ── Glass / surfaces ── */
  --color-glass:        rgba(255, 255, 255, 0.72);
  --color-glass-hover:  rgba(255, 255, 255, 0.92);
  --color-glass-border: rgba(0, 0, 0, 0.08);
  --color-glass-border-hover: rgba(0, 120, 68, 0.36);

  /* ── Fonts ── */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Shadows (lighter — light mode) ── */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg:     0 24px 56px rgba(0, 0, 0, 0.13);
  --shadow-green:  0 0 32px rgba(0, 168, 107, 0.16);
  --shadow-green-strong: 0 0 64px rgba(0, 168, 107, 0.22);

  /* ── Borders ── */
  --border-subtle:  1px solid rgba(0, 0, 0, 0.08);
  --border-green:   1px solid rgba(0, 0, 0, 0.15);
  --border-green-hover: 1px solid var(--color-accent-dark);

  /* ── Radii ── */
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-xl:  28px;

  /* ── Transitions ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-enter:  650ms var(--ease-out-expo);

  /* ── Z-index ── */
  --z-navbar:  100;
}

/* base.css */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 217, 126, 0.18),
    0 0 0 1px rgba(15, 15, 14, 0.16);
}

a:focus-visible {
  border-radius: 999px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-enter),
              transform var(--transition-enter);
}

.animations-ready .reveal {
  opacity: 0;
  transform: translateY(36px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--transition-enter),
              transform var(--transition-enter);
}

.animations-ready .reveal-left {
  opacity: 0;
  transform: translateX(-36px);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--transition-enter),
              transform var(--transition-enter);
}

.animations-ready .reveal-right {
  opacity: 0;
  transform: translateX(36px);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }

/* Large translateY reveal — for big display headings */
.reveal-up-lg {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.animations-ready .reveal-up-lg {
  opacity: 0;
  transform: translateY(64px);
}
.reveal-up-lg.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up-lg,
  .animations-ready .reveal,
  .animations-ready .reveal-left,
  .animations-ready .reveal-right,
  .animations-ready .reveal-up-lg {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  background: var(--color-accent);
  color: #062211;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 168, 107, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base),
              color var(--transition-base),
              background var(--transition-base);
}

.btn-ghost:hover {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
  background: rgba(0, 168, 107, 0.07);
}

.btn-ghost:active {
  background: rgba(0, 168, 107, 0.12);
}

/* ── Section label pill ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: rgba(0, 168, 107, 0.08);
  border: 1px solid rgba(0, 120, 68, 0.20);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

@media (min-width: 1280px) {
  .container { padding: 0 3rem; }
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 280ms ease;
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.18);
}

.whatsapp-fab:active {
  transform: scale(0.96);
}

.whatsapp-fab svg {
  display: block;
}

@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* ── Scroll-to-top FAB ─────────────────────────────────────────────────── */
.scroll-top-fab {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.7);
  color: #0F0F0E;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.88);
  transition: opacity 320ms cubic-bezier(0.16,1,0.3,1),
              transform 320ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 240ms ease;
}

.scroll-top-fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.8);
}

.scroll-top-fab:active {
  transform: scale(0.94);
}

@media (max-width: 768px) {
  .scroll-top-fab {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 46px;
    height: 46px;
  }
}

/* ── Frosted pill breadcrumb (shared across pages) ─────────── */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}
.page-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.page-breadcrumb__list li { display: flex; align-items: center; }
.page-breadcrumb__list [aria-hidden="true"] {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
  line-height: 1;
}
.page-breadcrumb a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 150ms ease;
}
.page-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.page-breadcrumb [aria-current="page"] {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
/* Light bg variant */
.page-breadcrumb--light {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
}
.page-breadcrumb--light .page-breadcrumb__list [aria-hidden="true"] { color: rgba(0,0,0,0.25); }
.page-breadcrumb--light a { color: rgba(0,0,0,0.45); }
.page-breadcrumb--light a:hover { color: rgba(0,0,0,0.85); }
.page-breadcrumb--light [aria-current="page"] { color: rgba(0,0,0,0.70); }

/* navbar.css */
/* ========================
   NAVBAR — Floating Pill (Light Mode)
   ======================== */

/*
  Floating pill, centered.
  Light mode: white frosted glass, dark text, green active/hover states.
  Contracts on scroll-down, expands on scroll-up.
*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
  transition: padding 500ms var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 0.75rem 1.5rem;
}

/* ── The pill itself ── */
.navbar__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: all;
  position: relative;

  width: calc(100% - 1rem);
  max-width: clamp(780px, 88vw, 1260px);
  padding: 0.65rem 0.65rem 0.65rem 1.5rem;

  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;

  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 -1px 0 rgba(0, 0, 0, 0.03) inset;

  transition:
    max-width       550ms var(--ease-out-expo),
    padding         500ms var(--ease-out-expo),
    background      400ms ease,
    border-color    400ms ease,
    box-shadow      400ms ease;
}

/* Top-edge shimmer — white → green → white */
.navbar__pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 25%,
    rgba(0, 168, 107, 0.45) 50%,
    rgba(0, 0, 0, 0.08) 75%,
    transparent 100%
  );
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 400ms ease, left 550ms var(--ease-out-expo), right 550ms var(--ease-out-expo);
}

/* Contracted state */
.navbar.scrolled .navbar__pill {
  max-width: 1050px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.60);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.80) inset;
}

.navbar.scrolled .navbar__pill::after {
  left: 18%;
  right: 18%;
  opacity: 1;
}

/* ── Over-dark section: invert to light text + dark glass ── */
.navbar.over-dark .navbar__pill {
  background: rgba(15, 15, 14, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

.navbar.over-dark .navbar__nav a {
  color: rgba(255, 255, 255, 0.70);
}

.navbar.over-dark .navbar__nav a:hover {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.42rem;
}

.navbar.over-dark .navbar__nav a.active,
.navbar.over-dark .navbar__nav a.active:hover {
  color: var(--color-accent);
  background: rgba(0, 168, 107, 0.18);
  text-decoration: none;
}

.navbar.over-dark .navbar__hamburger {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.08);
}

.navbar.over-dark .navbar__hamburger span {
  background: #ffffff;
}

/* Logo swap is handled in JS (src attribute) */

/* ── Logo ── */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo-img {
  width: auto;
  height: 36px;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  display: block;
  transition: height 500ms var(--ease-out-expo), opacity 200ms ease;
}

.navbar__logo:hover .navbar__logo-img {
  opacity: 0.75;
}

.navbar.scrolled .navbar__logo-img {
  height: 28px;
}

/* ── Desktop nav ── */
.navbar__nav {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .navbar__nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }
}

.navbar__nav a,
.navbar__services-trigger {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease, text-decoration-color 200ms ease;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar__services {
  display: flex;
  align-items: center;
}

.navbar__nav a:hover,
.navbar__services-trigger:hover,
.navbar__services.open .navbar__services-trigger {
  color: var(--color-text);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.42rem;
}

.navbar__nav a.active,
.navbar__services-trigger.active,
.navbar__nav a.active:hover,
.navbar__services-trigger.active:hover {
  color: var(--color-accent-dark);
  background: rgba(0, 168, 107, 0.10);
  text-decoration: none;
}

.navbar__services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar__services-trigger span {
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

.navbar__services.open .navbar__services-trigger span {
  transform: rotate(180deg);
}

.navbar__mega {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  width: min(1180px, calc(100vw - 3rem));
  padding: 1.35rem 1.35rem 0.9rem;
  border: 1px solid rgba(16, 24, 20, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(8, 20, 14, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  color: #141a17;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navbar__services.open .navbar__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.navbar__mega-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.navbar__mega-column {
  min-width: 0;
  padding: 0 0.85rem;
  border-right: 1px solid rgba(16, 24, 20, 0.08);
}

.navbar__mega-column:last-child {
  border-right: 0;
}

.navbar__mega-group + .navbar__mega-group {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 24, 20, 0.08);
}

.navbar__nav .navbar__mega-family {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 2.8em;
  padding: 0;
  border-radius: 0;
  color: #101612;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
}

.navbar__nav .navbar__mega-family:hover {
  color: var(--color-accent-dark);
  background: transparent;
}

.navbar__mega-group ul {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.5rem;
}

.navbar__nav .navbar__mega-group li a {
  display: block;
  padding: 0.36rem 0;
  border-radius: 0;
  color: #58615c;
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: normal;
}

.navbar__nav .navbar__mega-group li a:hover {
  color: #101612;
  background: transparent;
}

.navbar__nav .navbar__mega-all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.72rem;
  border-top: 1px solid rgba(16, 24, 20, 0.08);
  border-radius: 0;
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.navbar__nav .navbar__mega-all:hover {
  background: rgba(0, 168, 107, 0.06);
}

.navbar.over-dark .navbar__services-trigger {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.over-dark .navbar__services-trigger:hover,
.navbar.over-dark .navbar__services.open .navbar__services-trigger {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.42rem;
}

.navbar.over-dark .navbar__services-trigger.active,
.navbar.over-dark .navbar__services-trigger.active:hover {
  color: var(--color-accent);
  background: rgba(0, 168, 107, 0.18);
  text-decoration: none;
}

.navbar.over-dark .navbar__mega .navbar__mega-family {
  color: #101612;
}

.navbar.over-dark .navbar__mega .navbar__mega-group li a {
  color: #58615c;
}

.navbar.over-dark .navbar__mega .navbar__mega-family:hover,
.navbar.over-dark .navbar__mega .navbar__mega-group li a:hover {
  color: var(--color-accent-dark);
  background: transparent;
}

/* ── CTA ── */
.navbar__cta {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .navbar__cta {
    display: block;
  }
}

.navbar__cta-btn {
  padding: 0.6rem 1.25rem !important;
  font-size: 0.8125rem !important;
  border-radius: 999px !important;
  gap: 0.4rem !important;
  letter-spacing: 0.005em;
  transition:
    background     200ms ease,
    transform      200ms ease,
    box-shadow     200ms ease !important;
}

.navbar__cta-btn:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 0 20px rgba(0, 168, 107, 0.30) !important;
}

/* ── Hamburger ── */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  transition: border-color 200ms ease, background 200ms ease;
}

@media (min-width: 1024px) {
  .navbar__hamburger {
    display: none;
  }
}

.navbar__hamburger:hover {
  border-color: var(--color-accent-dark);
  background: rgba(0, 168, 107, 0.08);
}

.navbar__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 0 auto;
  transition:
    transform 300ms var(--ease-out-expo),
    opacity   300ms ease,
    background 200ms ease;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--color-accent-dark);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--color-accent-dark);
}

/* ── Mobile fullscreen menu (Athos Dark) ── */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.95);
  z-index: calc(var(--z-navbar) + 10);
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.navbar__mobile-menu.open {
  display: flex;
}

/* Background blur layer */
.navbar__mobile-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(0, 168, 107, 0.15), transparent 70%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: -1;
}

/* Internal header (matching original bar logo position) */
.navbar__mobile-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__mobile-header .navbar__logo {
  display: flex;
  align-items: center;
  min-width: 108px;
  min-height: 44px;
}

.navbar__mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  flex-shrink: 0;
}

.navbar__mobile-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar__mobile-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
}

/* Catalog-driven mobile navigation. Services opens one family chooser; a
   family then replaces it with one leaf panel, keeping every service within
   two taps while avoiding nested accordions. */
.navbar__mobile-links {
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navbar__mobile-link-wrap {
  flex: 0 0 auto;
}

.navbar__mobile-link-wrap > a,
.navbar__mobile-services > summary {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 750;
  color: #fafaf8;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.navbar__mobile-services > summary,
.navbar__mobile-family-choice,
.navbar__mobile-service-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.65rem 0;
  cursor: pointer;
  list-style: none;
}

.navbar__mobile-services summary::-webkit-details-marker,
.navbar__mobile-services > summary::marker {
  display: none;
}

.navbar__mobile-services > summary > span {
  color: var(--color-accent);
  transition: transform 180ms ease;
}

.navbar__mobile-services[open] > summary > span {
  transform: rotate(45deg);
}

.navbar__mobile-all-services {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--color-accent) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.navbar__mobile-service-browser {
  min-height: min(61vh, 31rem);
  margin: 0.15rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.navbar__mobile-service-intro,
.navbar__mobile-service-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.8rem 0.9rem;
  background: #101216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar__mobile-service-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.navbar__mobile-service-intro p,
.navbar__mobile-service-panel-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar__mobile-families,
.navbar__mobile-service-links {
  display: grid;
  padding: 0.35rem 0.55rem;
}

.navbar__mobile-family-choice {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.91rem;
  font-weight: 650;
}

.navbar__mobile-family-choice > span:last-child {
  color: var(--color-accent);
  font-size: 0.75rem;
  white-space: nowrap;
}

.navbar__mobile-family-choice:last-child,
.navbar__mobile-service-links > a:last-child {
  border-bottom: 0;
}

.navbar__mobile-service-panel {
  max-height: min(61vh, 31rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navbar__mobile-service-panel[hidden],
.navbar__mobile-service-root[hidden] {
  display: none;
}

.navbar__mobile-service-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.navbar__mobile-service-panel-head h2 {
  margin: 0.12rem 0 0;
  color: #fafaf8;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.15;
}

.navbar__mobile-service-back {
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.navbar__mobile-service-back span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar__mobile-service-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.3;
}

.navbar__mobile-service-links > .navbar__mobile-family-hub {
  color: var(--color-accent);
  font-weight: 650;
}

.navbar__mobile-link-wrap {
  overflow: hidden;
}

.navbar__mobile-menu a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #FAFAF8;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(100%);
  transition: color 250ms ease;
}

.navbar__mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
  /* GSAP will handle the staggered animation, but this is a fallback */
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__mobile-menu a:hover,
.navbar__mobile-menu a.active {
  color: var(--color-accent);
}

/* The legacy `.navbar__mobile-menu a` display rule sits later in this file with
   equal specificity, so the catalog panel links must out-specify it or they
   render at 2.75rem and only three services fit on a phone. */
.navbar__mobile-menu .navbar__mobile-service-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 44px;
  padding: 0.6rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

.navbar__mobile-menu .navbar__mobile-service-links > a > span {
  flex: 0 0 auto;
  color: var(--color-accent);
  opacity: 0.85;
}

.navbar__mobile-menu .navbar__mobile-service-links > .navbar__mobile-family-hub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.navbar__mobile-menu .navbar__mobile-all-services {
  font-size: 0.78rem !important;
}

/* Keep nested catalog links compact after the legacy mobile-link defaults. */
.navbar__mobile-menu .navbar__mobile-link-wrap > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Menu footer/CTA */
.navbar__mobile-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) 300ms,
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

.navbar__mobile-menu.open .navbar__mobile-footer {
  opacity: 1;
  transform: translateY(0);
}

.navbar__mobile-footer .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 60px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 100px;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 168, 107, 0.35);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.navbar__mobile-footer .btn-primary:hover {
  background: #007844;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 168, 107, 0.45);
}

/* Adjust original hamburger for Z-index when open */
.navbar__hamburger.open {
  z-index: calc(var(--z-navbar) + 20);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .navbar__mobile-menu a {
    font-size: 2.25rem;
  }

  .navbar__mobile-menu .navbar__mobile-link-wrap > a {
    font-size: 1.35rem;
  }

  .navbar__mobile-service-browser,
  .navbar__mobile-service-panel {
    min-height: min(58vh, 29rem);
    max-height: min(58vh, 29rem);
  }
}

/* footer.css */
/* ============================================================
   FOOTER & FOOTER CTA — Shared Styles
   SmartR Spaces 2026
   ============================================================ */

.footer__directory {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 2.75rem;
  padding-top: 1.25rem;
}

.footer__directory summary {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  display: flex;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.02em;
  list-style: none;
  min-height: 44px;
}

.footer__directory summary::-webkit-details-marker { display: none; }

.footer__directory summary span {
  color: var(--color-accent);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.footer__directory[open] summary span { transform: rotate(45deg); }

.footer__directory-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1.75rem 0 1rem;
}

.footer__directory-family h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0 0 0.7rem;
}

.footer__directory-family h3 a { color: #fff; }

.footer__directory-family ul {
  display: grid;
  gap: 0.42rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__directory-family li,
.footer__directory-family a {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer__directory-family a:hover,
.footer__directory-family a:focus-visible { color: #fff; }

@media (max-width: 900px) {
  .footer__directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer__directory-grid { grid-template-columns: 1fr; }
}

/* ── PRE-FOOTER CTA ─────────────────────────────────────── */
.footer-cta {
  background: #0D0D0C;
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,168,107,0.2);
}

/* Dot grid texture */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Green ambient glow */
.footer-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,168,107,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Label pill */
.footer-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0,168,107,0.08);
  border: 1px solid rgba(0,168,107,0.2);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.footer-cta__label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(0,168,107,0.9);
}

/* Heading */
.footer-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

/* Sub */
.footer-cta__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.48);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

/* Actions */
.footer-cta__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 0.875rem 2rem;
  border-radius: 100px;
  transition: background 220ms ease, transform 220ms cubic-bezier(0.16,1,0.3,1), box-shadow 220ms ease;
  box-shadow: 0 4px 20px rgba(0,168,107,0.3);
}

.footer-cta__btn-primary:hover {
  background: #007844;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,168,107,0.42);
}

.footer-cta__btn-primary:active { transform: translateY(0); }

.footer-cta__btn-ghost {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 220ms ease, gap 220ms ease;
}

.footer-cta__btn-ghost:hover {
  color: #FFFFFF;
  gap: 0.625rem;
}

/* Right: Constellation */
.footer-cta__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-cta__constellation {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.footer-cta__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hub */
.footer-cta__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0,168,107,0.1);
  border: 1px solid rgba(0,168,107,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  z-index: 2;
}

.footer-cta__hub::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0,168,107,0.12);
  animation: hub-pulse 3s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.4; }
}

/* Tags */
.footer-cta__tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  z-index: 2;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.footer-cta__tag svg {
  color: var(--color-accent);
  opacity: 0.75;
  flex-shrink: 0;
}

.footer-cta__tag:hover {
  border-color: rgba(0,168,107,0.28);
  color: rgba(255,255,255,0.88);
  background: rgba(0,168,107,0.06);
}

/* 8-node octagonal constellation (hub at 210,210 in 420×420) */
.footer-cta__tag--lighting   { top: 49px;  left: 158px; }  /* top */
.footer-cta__tag--climate    { top: 91px;  left: 261px; }  /* top-right */
.footer-cta__tag--security   { top: 194px; left: 303px; }  /* right */
.footer-cta__tag--audio      { top: 297px; left: 261px; }  /* bottom-right */
.footer-cta__tag--networking { top: 339px; left: 158px; }  /* bottom */
.footer-cta__tag--switching  { top: 297px; left: 55px;  }  /* bottom-left */
.footer-cta__tag--video      { top: 194px; left: 13px;  }  /* left */
.footer-cta__tag--access     { top: 91px;  left: 55px;  }  /* top-left */

/* Scroll reveal */
.footer-cta__left  { transition-delay: 0ms; }
.footer-cta__right { transition-delay: 120ms; }

.footer-cta__phone {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-accent);
  transition: color 0.3s ease;
}

.footer-cta__phone:hover {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .footer-cta__inner { grid-template-columns: 1fr; }
  .footer-cta__right { display: none; }
  .footer-cta__heading { font-size: clamp(2rem, 8vw, 3rem); }
  .footer-cta__actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: #111210;
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1fr 1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__logo img {
  height: 80px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  max-width: 28ch;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 200ms ease;
  line-height: 1.4;
}

.footer__links a:hover { color: #FFFFFF; }

.footer__location {
  display: grid;
  gap: 0.25rem;
}

.footer__links .footer__location-name {
  color: rgba(255,255,255,0.76);
  font-weight: 600;
}

.footer__links .footer__location-map {
  color: rgba(255,255,255,0.46);
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer__contact-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.footer__contact-item:last-child { margin-bottom: 0; }

.footer__contact-item a {
  color: inherit;
  transition: color 200ms ease;
}

.footer__contact-item a:hover { color: rgba(255,255,255,0.85); }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.68);
}

.footer__copy a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__socials {
  display: flex;
  gap: 0.625rem;
}

.footer__social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.footer__social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 217, 126, 0.08);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* city-service-matrix.css */
:root{--csm-ink:#11120f;--csm-paper:#fbfaf6;--csm-line:#d9d8d0;--csm-accent:#b9d83c}
body{background:var(--csm-paper);color:var(--csm-ink)}
@media(max-width:720px){.csm-hero__media{width:min(100%,180px);margin-inline:auto}.csm-hero__media .csm-photo img{height:min(120px,calc((100vw - 2rem)*.666667))}.csm-lede{display:-webkit-box;overflow:hidden;font-size:1rem;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}}
.csm-visual-note{display:block;margin-top:.55rem;color:#5d655f;font-size:.78rem;font-weight:500}.csm-boundary{min-height:15rem;display:grid;grid-template-columns:repeat(7,auto);align-items:center;justify-content:center;gap:.65rem;padding:1.4rem;background:linear-gradient(145deg,#eef8f2,#f7f4ea)}.csm-boundary span{max-width:9rem;padding:.75rem;border:1px solid rgba(0,93,58,.16);border-radius:.7rem;background:#fff;color:#163c2c;font-size:.78rem;font-weight:700;line-height:1.35;text-align:center}.csm-boundary b{color:#008c59}.csm-subheading{margin-top:2.5rem}@media(max-width:720px){.csm-boundary{grid-template-columns:1fr}.csm-boundary span{max-width:none}.csm-boundary b{transform:rotate(90deg);text-align:center}}
.csm-wrap{width:min(1120px,calc(100% - 2rem));margin-inline:auto}.csm-reading{max-width:780px}.csm-hero{padding:9rem 0 5rem;background:#e8eadf}.csm-hero__grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(20rem,.95fr);align-items:center;gap:clamp(2rem,5vw,5rem)}.csm-hero__copy{order:1}.csm-hero__media{order:2}.csm-hero h1{max-width:900px;margin:.5rem 0 1rem;font-size:clamp(2.7rem,7vw,6.4rem);line-height:.94;letter-spacing:-.055em}.csm-lede{max-width:800px;font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.6}.csm-kicker,.csm-label{font-size:.76rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.csm-breadcrumbs ol{display:flex;gap:.55rem;flex-wrap:wrap;padding:0;margin:0 0 2rem;list-style:none}.csm-breadcrumbs a,.csm-text-link{color:inherit;text-underline-offset:.22em}.csm-actions{display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap;margin-top:2rem}.csm-button{display:inline-flex;padding:.9rem 1.3rem;border-radius:999px;background:#161713;color:#fff;text-decoration:none;font-weight:700}.csm-section{padding:clamp(3.5rem,7vw,6.5rem) 0;border-top:1px solid var(--csm-line)}.csm-section--tint{background:#f0f1e9}.csm-section--dark{background:#171815;color:#fff}.csm-section h2{max-width:780px;margin:.45rem 0 1.5rem;font-size:clamp(2rem,4vw,3.7rem);line-height:1.04;letter-spacing:-.035em}.csm-section p,.csm-section li,.csm-section address{line-height:1.7}.csm-grid,.csm-link-grid,.csm-diagrams,.csm-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.csm-card,.csm-link,.csm-notice,.csm-table-wrap{padding:1.4rem;border:1px solid var(--csm-line);border-radius:1rem;background:var(--csm-paper)}.csm-link{display:block;color:inherit;text-decoration:none}.csm-link:hover{text-decoration:underline}.csm-source-note{max-width:760px}.csm-diagram img{display:block;width:100%;height:auto;object-fit:contain;background:#fff;border-radius:.75rem}
/* City diagrams are still authored on the 1600-unit canvas, so a two-up grid
   renders their 22px labels at ~7px. Give each one the full column, and a
   scrollable floor on phones, until the generator is ported to 1200x600. */
.csm-diagrams{grid-template-columns:1fr}
@media(max-width:768px){.csm-diagram{overflow-x:auto;overscroll-behavior-x:contain}.csm-diagram img{min-width:44rem;width:44rem;max-width:none}.csm-diagram figcaption{position:sticky;left:0}}.csm-diagram figcaption,.csm-photo figcaption{margin-top:.65rem;line-height:1.5}.csm-photo{margin:0}.csm-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:.85rem}.csm-hero__media .csm-photo img{box-shadow:0 24px 60px rgba(0,0,0,.16)}.csm-table-wrap{overflow-x:auto}.csm-table{width:100%;border-collapse:collapse}.csm-table th,.csm-table td{padding:.85rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--csm-line)}.csm-notice{margin:1rem auto 0;background:#fff8db;border-color:#ded09a}.csm-local-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.csm-local-list>div{padding:1rem;border-left:3px solid var(--csm-accent)}.csm-branch{display:flex;align-items:end;justify-content:space-between;gap:2rem}.csm-branch address{font-style:normal;max-width:620px}.csm-button--light{background:#fff;color:#111}.csm-text-link--light{color:#fff}@media(max-width:720px){.csm-hero{padding-top:7.5rem}.csm-hero__grid,.csm-grid,.csm-link-grid,.csm-diagrams,.csm-photo-grid,.csm-local-list{grid-template-columns:1fr}.csm-hero__media{order:1}.csm-hero__copy{order:2}.csm-hero__media figcaption{font-size:.82rem}.csm-branch{display:block}}
