/* ==========================================================================
   Urban Economics (UEI) — site stylesheet
   Ported from the Claude Design handoff prototypes. Every dimension, colour
   and easing value here is lifted from the prototype's inline styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ue-black: #000;
  --ue-ink: #1d1d1f;
  --ue-panel: #f5f5f7;
  --ue-white: #fff;

  --ue-green: #0b6e50;
  --ue-green-hover: #0f7e5c;
  --ue-mint: #19c08a;

  --ue-on-dark: #f5f5f7;
  --ue-on-dark-soft: #a6aca8;
  --ue-on-dark-dim: #8a938e;
  --ue-on-dark-dimmer: #6e756f;
  --ue-on-light-soft: #6e6e73;

  --ue-nav-h: 52px;
  --ue-shell: 1024px;
  --ue-gutter: 22px;

  --ue-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ue-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ue-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Manrope", sans-serif;

  /* Reveal delay, overridden per-card by the .d* helpers. */
  --rd: 0s;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ue-sans);
  color: var(--ue-ink);
  background: var(--ue-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--ue-green);
  text-decoration: none;
}

a:hover {
  color: var(--ue-green-hover);
}

input,
textarea,
button {
  font-family: inherit;
}

::selection {
  background: var(--ue-green);
  color: var(--ue-white);
}

img,
svg {
  max-width: 100%;
}

.ue-site {
  background: var(--ue-black);
  overflow-x: hidden;
}

/* Contact page pins its footer to the bottom of short viewports. */
.ue-site--fill {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ue-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ue-green);
  color: var(--ue-white);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
}

.ue-skip:focus {
  left: 0;
  color: var(--ue-white);
}

/* --------------------------------------------------------------------------
   3. Keyframes
   -------------------------------------------------------------------------- */
@keyframes ueFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes ueGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.65;
  }
}

@keyframes uePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes ueFlow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--ue-travel, 120px));
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.ue-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--ue-nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 26, 23, 0.45);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background 0.4s ease, border-color 0.4s ease,
    transform 0.35s var(--ue-ease);
}

.ue-nav.is-scrolled,
.ue-nav--solid {
  background: rgba(20, 26, 23, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ue-nav.is-hidden {
  transform: translateY(-100%);
}

.ue-nav__inner {
  width: 100%;
  max-width: var(--ue-shell);
  padding: 0 var(--ue-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ue-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ue-on-dark);
  text-decoration: none;
}

.ue-brand:hover {
  color: var(--ue-on-dark);
}

.ue-brand__name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ue-brand__tag {
  font-family: var(--ue-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ue-on-dark-dim);
  text-transform: uppercase;
}

.ue-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ue-nav__link,
.ue-nav__link:hover {
  color: var(--ue-on-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.ue-nav__link:hover {
  opacity: 1;
}

.ue-nav__link.is-active,
.ue-nav__link.is-active:hover {
  color: var(--ue-mint);
  font-weight: 600;
  opacity: 1;
}

.ue-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  align-items: center;
}

.ue-burger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ue-on-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ue-burger.is-open .ue-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ue-burger.is-open .ue-burger__bar:nth-child(2) {
  opacity: 0;
}

.ue-burger.is-open .ue-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ue-mobile-menu {
  position: fixed;
  top: var(--ue-nav-h);
  left: 0;
  width: 100%;
  z-index: 99;
  background: rgba(20, 26, 23, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  padding: 12px var(--ue-gutter) var(--ue-gutter);
}

.ue-mobile-menu.is-open {
  display: flex;
}

.ue-mobile-menu__link,
.ue-mobile-menu__link:hover {
  color: var(--ue-on-dark);
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ue-mobile-menu__link.is-active,
.ue-mobile-menu__link.is-active:hover {
  color: var(--ue-mint);
  font-weight: 600;
}

.ue-mobile-menu__cta,
.ue-mobile-menu__cta:hover {
  background: var(--ue-green);
  color: var(--ue-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 980px;
  text-align: center;
  margin-top: 16px;
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   5. Buttons & inline links
   -------------------------------------------------------------------------- */
.ue-pill,
.ue-pill:hover {
  background: var(--ue-green);
  color: var(--ue-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 980px;
  display: inline-block;
}

.ue-pill:hover {
  background: var(--ue-green-hover);
}

.ue-pill--cta,
.ue-pill--cta:hover {
  padding: 14px 28px;
}

.ue-pill--sm,
.ue-pill--sm:hover {
  font-size: 13px;
  padding: 7px 15px;
}

.ue-pill--download,
.ue-pill--download:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  padding: 11px 20px;
}

.ue-link-mint,
.ue-link-mint:hover {
  color: var(--ue-mint);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.ue-link-mint--sm,
.ue-link-mint--sm:hover {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   6. Section shells & type scale
   -------------------------------------------------------------------------- */
.ue-section {
  padding: 120px var(--ue-gutter);
}

.ue-section--dark {
  background: var(--ue-black);
  color: var(--ue-on-dark);
}

.ue-section--light {
  background: var(--ue-white);
  color: var(--ue-ink);
}

.ue-section--panel {
  background: var(--ue-panel);
  color: var(--ue-ink);
}

.ue-section--110 {
  padding-top: 110px;
  padding-bottom: 110px;
}

.ue-shell {
  max-width: var(--ue-shell);
  margin: 0 auto;
}

/* Hero: extra top padding clears the fixed nav. */
.ue-hero {
  background: var(--ue-black);
  color: var(--ue-on-dark);
  position: relative;
  overflow: hidden;
  padding: 150px var(--ue-gutter) 90px;
}

.ue-hero--inner {
  padding-bottom: 80px;
}

.ue-hero--contact {
  padding-bottom: 120px;
  flex: 1;
}

.ue-hero__shell {
  position: relative;
  max-width: var(--ue-shell);
  margin: 0 auto;
}

.ue-hero__shell--center {
  text-align: center;
}

/* Ambient radial glow behind the hero copy. */
.ue-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  max-width: 120vw;
  height: 460px;
  background: radial-gradient(
    closest-side,
    rgba(13, 160, 116, 0.24),
    rgba(13, 160, 116, 0)
  );
  animation: ueGlow 7s ease-in-out infinite;
  pointer-events: none;
}

.ue-glow--home {
  top: 8%;
  width: 900px;
  height: 620px;
  background: radial-gradient(
    closest-side,
    rgba(13, 160, 116, 0.32),
    rgba(13, 160, 116, 0)
  );
}

.ue-eyebrow {
  font-family: var(--ue-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ue-mint);
  margin-bottom: 20px;
}

.ue-eyebrow--18 {
  margin-bottom: 18px;
}

.ue-eyebrow--light {
  font-size: 12px;
  color: var(--ue-green);
  margin-bottom: 16px;
}

.ue-eyebrow--scene {
  font-size: 12px;
  margin-bottom: 18px;
}

.ue-eyebrow--case {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ue-green);
  margin-bottom: 14px;
}

.ue-h1 {
  font-weight: 700;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  text-wrap: balance;
}

.ue-h1--home {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.03;
  margin-bottom: 22px;
}

.ue-h1--contact {
  font-size: clamp(38px, 5.5vw, 64px);
  margin: 0 0 20px;
}

.ue-h2 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto;
  text-wrap: balance;
}

.ue-h2--lg {
  font-size: clamp(30px, 4.5vw, 50px);
}

.ue-h2--scene {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.06;
  margin-bottom: 14px;
}

.ue-h2--cta {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
}

.ue-h2--case {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.08;
  margin: 0 0 16px;
}

/* Left-aligned block heads: no auto side margins to pull the measure in. */
.ue-h2--flush {
  margin: 0;
}

.ue-lede {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.42;
  color: var(--ue-on-dark-soft);
  margin: 0 auto 34px;
  font-weight: 400;
  text-wrap: pretty;
}

.ue-lede--inner {
  font-size: clamp(17px, 2.2vw, 22px);
  margin-bottom: 0;
}

.ue-lede--light {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  color: var(--ue-on-light-soft);
  margin: 22px auto 0;
}

.ue-lede--light-sm {
  font-size: clamp(16px, 1.9vw, 20px);
}

.ue-lede--geo {
  font-size: clamp(16px, 1.9vw, 20px);
}

.ue-cta-copy {
  font-size: 18px;
  color: var(--ue-on-dark-soft);
  line-height: 1.45;
  margin: 0 auto 34px;
}

/* Measure helpers — the prototype sets these per-heading in ch units. */
.mw-15ch { max-width: 15ch; }
.mw-16ch { max-width: 16ch; }
.mw-18ch { max-width: 18ch; }
.mw-20ch { max-width: 20ch; }
.mw-30ch { max-width: 30ch; }
.mw-34ch { max-width: 34ch; }
.mw-40ch { max-width: 40ch; }
.mw-42ch { max-width: 42ch; }
.mw-46ch { max-width: 46ch; }
.mw-48ch { max-width: 48ch; }

.ue-center { text-align: center; }
.ue-stack-center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   7. Scroll reveal
   -------------------------------------------------------------------------- */
/* Scoped to .ue-js (set by an inline script in <head>) so that if scripting
   is off — or site.js fails to load — the content is simply visible rather
   than stranded at opacity 0. */
.ue-js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ue-ease) var(--rd),
    transform 0.9s var(--ue-ease) var(--rd);
}

.ue-js [data-reveal].rv-24 {
  transform: translateY(24px);
  transition-duration: 0.8s;
}

.ue-js [data-reveal].rv-20 {
  transform: translateY(20px);
  transition-duration: 0.8s;
}

.ue-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.d05 { --rd: 0.05s; }
.d06 { --rd: 0.06s; }
.d08 { --rd: 0.08s; }
.d10 { --rd: 0.1s; }
.d12 { --rd: 0.12s; }
.d13 { --rd: 0.13s; }
.d16 { --rd: 0.16s; }
.d18 { --rd: 0.18s; }
.d19 { --rd: 0.19s; }

/* --------------------------------------------------------------------------
   8. Home — hero pipeline card
   -------------------------------------------------------------------------- */
.ue-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.ue-hero__figure {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.ue-pipeline {
  position: relative;
  width: min(620px, 92vw);
  animation: ueFloat 6s ease-in-out infinite;
}

.ue-pipeline__card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  padding: 26px 26px 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ue-pipeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.ue-pipeline__label {
  font-family: var(--ue-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ue-on-dark-dim);
}

.ue-pipeline__label--mint {
  color: var(--ue-mint);
  letter-spacing: normal;
}

.ue-pipeline__rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(25, 192, 138, 0.5),
    transparent
  );
  margin-bottom: 14px;
}

.ue-pipeline__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ue-step {
  border-radius: 12px;
  background: rgba(25, 192, 138, 0.1);
  border: 1px solid rgba(25, 192, 138, 0.28);
  padding: 16px 14px;
  text-align: left;
}

.ue-step__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ue-mint);
  margin-bottom: 12px;
  animation: uePulse 2.6s ease-in-out infinite;
}

.ue-step:nth-child(2) .ue-step__dot {
  animation-delay: 0.5s;
}

.ue-step:nth-child(3) .ue-step__dot {
  animation-delay: 1s;
}

.ue-step__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ue-on-dark);
}

.ue-step__meta {
  font-size: 11.5px;
  color: var(--ue-on-dark-dim);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   9. Home — discipline cards, split cards, stat grid, question cards
   -------------------------------------------------------------------------- */
.ue-block-head {
  text-align: center;
  margin-bottom: 64px;
}

.ue-block-head--52 {
  margin-bottom: 52px;
}

.ue-block-head--56 {
  margin-bottom: 56px;
}

.ue-block-head--60 {
  margin-bottom: 60px;
}

.ue-block-head--left {
  text-align: left;
  margin-bottom: 52px;
}

.ue-grid {
  display: grid;
  gap: 22px;
}

.ue-grid--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ue-grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ue-grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ue-grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ue-grid--220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.ue-card {
  background: var(--ue-panel);
  border-radius: 20px;
  padding: 34px 30px;
}

.ue-card--white {
  background: var(--ue-white);
}

.ue-card--22 {
  border-radius: 22px;
}

.ue-card__kicker {
  font-family: var(--ue-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ue-green);
  margin-bottom: 16px;
}

.ue-card__title {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.ue-card__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ue-on-light-soft);
  margin: 0 0 20px;
}

.ue-card__stat {
  font-family: var(--ue-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ue-ink);
}

.ue-card__stat span {
  font-size: 15px;
  color: var(--ue-on-light-soft);
}

/* Two big linked cards — one black, one green. */
.ue-split {
  text-decoration: none;
  border-radius: 24px;
  padding: 44px 38px;
  display: block;
}

.ue-split--dark,
.ue-split--dark:hover {
  background: var(--ue-black);
  color: var(--ue-on-dark);
}

.ue-split--green,
.ue-split--green:hover {
  background: var(--ue-green);
  color: var(--ue-white);
}

.ue-split__kicker {
  font-family: var(--ue-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ue-mint);
  margin-bottom: 18px;
}

.ue-split--green .ue-split__kicker {
  color: rgba(255, 255, 255, 0.85);
}

.ue-split__title {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.ue-split__body {
  font-size: 15.5px;
  color: var(--ue-on-dark-soft);
  line-height: 1.55;
  margin: 0 0 22px;
}

.ue-split--green .ue-split__body {
  color: rgba(255, 255, 255, 0.9);
}

.ue-split__more {
  color: var(--ue-mint);
  font-size: 15px;
  font-weight: 500;
}

.ue-split--green .ue-split__more {
  color: var(--ue-white);
  font-weight: 600;
}

/* Hairline-separated stat grid: 1px gaps expose the container background. */
.ue-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
}

.ue-stat {
  background: var(--ue-black);
  padding: 36px 26px;
}

.ue-stat__value {
  font-family: var(--ue-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ue-stat__value--mint {
  color: var(--ue-mint);
}

.ue-stat__value span {
  font-size: 17px;
  color: var(--ue-on-dark-dim);
}

.ue-stat__label {
  font-size: 13.5px;
  color: var(--ue-on-dark-dim);
  margin-top: 9px;
}

.ue-stats-more {
  text-align: center;
  margin-top: 34px;
}

.ue-question__title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ue-question__body {
  font-size: 15px;
  color: var(--ue-on-light-soft);
  line-height: 1.55;
  margin: 0;
}

.ue-cta-shell {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Analytics — cluster scroll scene
   -------------------------------------------------------------------------- */
.ue-scene {
  background: var(--ue-black);
  color: var(--ue-on-dark);
  scroll-margin-top: 60px;
}

/* 180vh of scroll drives the sticky viewport-height stage inside it. */
.ue-scene__track {
  height: 180vh;
  position: relative;
}

.ue-scene__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--ue-gutter);
}

.ue-scene__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.ue-scene__lede {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--ue-on-dark-soft);
  max-width: 42ch;
  margin: 0 auto 44px;
  line-height: 1.45;
}

.ue-scene__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.ue-scene__count {
  font-family: var(--ue-mono);
  font-size: clamp(56px, 11vw, 120px);
  font-weight: 600;
  line-height: 1;
  color: var(--ue-mint);
  letter-spacing: -0.02em;
}

.ue-scene__count-label {
  font-family: var(--ue-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ue-on-dark-dim);
  margin-top: 6px;
}

.ue-scene__gridwrap {
  max-width: 400px;
  width: 100%;
}

.ue-cluster-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  transform-origin: center;
  transform: scale(0.72);
  transition: transform 0.25s ease-out;
}

.ue-cluster-grid__cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #2a3230;
  transition: background 0.4s ease, opacity 0.4s ease;
}

.ue-scene__caption {
  font-size: 16px;
  color: var(--ue-on-dark);
  font-weight: 500;
  min-height: 24px;
  transition: color 0.3s;
}

.ue-scene__hint {
  font-size: 13px;
  color: var(--ue-on-dark-dimmer);
  margin-top: 28px;
}

/* Cluster / Ensemble / Validate ledger under the scene. */
.ue-method-strip {
  background: var(--ue-black);
  color: var(--ue-on-dark);
  padding: 20px var(--ue-gutter) 120px;
}

.ue-method-strip__grid {
  max-width: var(--ue-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.ue-method {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
}

.ue-method__name {
  font-family: var(--ue-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--ue-on-dark);
}

.ue-method__body {
  font-size: 15px;
  color: var(--ue-on-dark-dim);
  margin-top: 8px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   11. Analytics — econometrics & geospatial diagrams
   -------------------------------------------------------------------------- */
.ue-anchor {
  scroll-margin-top: 60px;
  overflow: hidden;
}

.ue-beta {
  background: var(--ue-white);
  border-radius: 24px;
  padding: 40px 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
}

.ue-beta__cell {
  text-align: center;
}

.ue-beta__glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ue-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--ue-green);
  font-weight: 700;
  font-family: var(--ue-mono);
}

.ue-beta__glyph--dark {
  background: #0a0a0a;
  color: var(--ue-mint);
}

.ue-beta__title {
  font-weight: 600;
  font-size: 16px;
}

.ue-beta__body {
  font-size: 13px;
  color: var(--ue-on-light-soft);
  margin-top: 4px;
  line-height: 1.4;
}

.ue-beta__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ue-green);
}

.ue-beta__arrow-label {
  font-family: var(--ue-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ue-on-dark-dim);
}

.ue-beta__arrow-mark {
  font-size: 22px;
  display: inline-block;
}

.ue-fact {
  background: var(--ue-white);
  border-radius: 20px;
  padding: 30px 28px;
}

.ue-fact__value {
  font-family: var(--ue-mono);
  font-size: 44px;
  font-weight: 600;
  color: var(--ue-green);
  line-height: 1;
}

.ue-fact__body {
  font-size: 15px;
  color: var(--ue-on-light-soft);
  margin-top: 14px;
  line-height: 1.5;
}

.ue-fact__body strong {
  color: var(--ue-ink);
}

.ue-fact__title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.ue-fact__note {
  font-size: 15px;
  color: var(--ue-on-light-soft);
  line-height: 1.5;
}

.ue-geo {
  background: var(--ue-panel);
  border-radius: 24px;
  padding: 44px 34px;
}

.ue-geo__flow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.ue-geo__chip {
  font-family: var(--ue-mono);
  font-size: 13px;
  color: var(--ue-on-light-soft);
  border: 1px dashed #c7c7cc;
  border-radius: 10px;
  padding: 12px 16px;
}

.ue-geo__chip--solid {
  font-family: var(--ue-sans);
  font-weight: 600;
  font-size: 14px;
  background: var(--ue-green);
  color: var(--ue-white);
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
}

.ue-geo__wire {
  position: relative;
  width: 70px;
  height: 2px;
  background: #d2d2d7;
  overflow: hidden;
  border-radius: 2px;
}

.ue-geo__pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ue-green);
  --ue-travel: 62px;
  animation: ueFlow 2.2s linear infinite;
}

.ue-geo__panel {
  max-width: 520px;
  margin: 0 auto 30px;
  border: 1.5px solid var(--ue-green);
  border-radius: 16px;
  background: var(--ue-white);
  padding: 22px;
}

.ue-geo__panel-label {
  font-family: var(--ue-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ue-green);
  text-align: center;
  margin-bottom: 16px;
}

.ue-geo__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.ue-geo__step {
  width: 100%;
  text-align: center;
  background: var(--ue-panel);
  border-radius: 10px;
  padding: 12px;
}

.ue-geo__step strong {
  font-size: 14px;
}

.ue-geo__step span {
  font-family: var(--ue-mono);
  font-size: 11px;
  color: var(--ue-on-dark-dim);
}

.ue-geo__step--out {
  background: #e7f4ee;
  border: 1px solid #b3ddca;
}

.ue-geo__step--out strong {
  color: var(--ue-green);
}

.ue-geo__step--out span {
  font-family: var(--ue-sans);
  font-size: 13px;
  color: var(--ue-on-light-soft);
}

.ue-geo__tick {
  color: #c7c7cc;
}

.ue-geo__note {
  text-align: center;
  font-family: var(--ue-mono);
  font-size: 11px;
  color: var(--ue-on-dark-dim);
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px dashed #d2d2d7;
}

.ue-geo__note strong {
  color: var(--ue-on-light-soft);
}

/* --------------------------------------------------------------------------
   12. Work — case rows and chart cards
   -------------------------------------------------------------------------- */
.ue-case-row {
  max-width: var(--ue-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 56px;
  align-items: center;
}

/* min-width:0 lets the SVG shrink instead of forcing the track wider. */
.ue-case-row > * {
  min-width: 0;
}

.ue-case__copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ue-on-light-soft);
  margin: 0 0 22px;
}

.ue-case__metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.ue-case__metric-value {
  font-family: var(--ue-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--ue-ink);
}

.ue-case__metric-label {
  font-size: 13px;
  color: var(--ue-on-dark-dim);
  margin-top: 2px;
}

.ue-chart-card {
  border-radius: 20px;
  background: #f7f9f8;
  border: 1px solid #e2e7e4;
  padding: 22px 22px 18px;
}

.ue-chart-card--white {
  background: var(--ue-white);
}

.ue-chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.ue-chart-card__title {
  font-family: var(--ue-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ue-green);
}

.ue-chart-card__meta {
  font-family: var(--ue-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ue-on-dark-dim);
}

.ue-chart-card__note {
  font-size: 11px;
  color: var(--ue-on-light-soft);
  line-height: 1.5;
  margin-top: 10px;
}

.ue-chart {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--ue-mono);
}

.ue-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.ue-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4b524e;
}

.ue-legend__swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ue-legend__swatch--1 { background: #19c08a; }
.ue-legend__swatch--2 { background: #2ed6a0; }
.ue-legend__swatch--3 { background: #0b6e50; }
.ue-legend__swatch--4 { background: #14996f; }

/* Team cards on the case-studies page sit a notch tighter than .ue-card. */
.ue-team-card {
  padding: 32px 28px;
}

.ue-team-card .ue-question__title {
  font-size: 19px;
}

.ue-team-card .ue-question__body {
  font-size: 14.5px;
}

/* The chart-card in the middle case row leads in source order but is
   painted second so a single-column stack reads copy-then-chart. */
.ue-order-1 { order: 1; }
.ue-order-2 { order: 2; }

/* SVG chart entrance animations, driven by .in-view on the revealed card. */
.ue-scatter circle {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.in-view .ue-scatter circle { opacity: 1; transform: scale(1); }
.ue-scatter .g1 circle { transition-delay: 0s; }
.ue-scatter .g2 circle { transition-delay: 0.12s; }
.ue-scatter .g3 circle { transition-delay: 0.24s; }
.ue-scatter .g4 circle { transition-delay: 0.36s; }

.ue-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s ease 0.15s;
}

.in-view .ue-line { stroke-dashoffset: 0; }

.ue-bar {
  transform: scaleY(0);
  transform-origin: top;
  transform-box: fill-box;
  transition: transform 0.8s var(--ue-ease);
}

.in-view .ue-bar { transform: scaleY(1); }

.ue-late {
  opacity: 0;
  transition: opacity 0.6s ease 0.75s;
}

.in-view .ue-late { opacity: 1; }

.b1 { transition-delay: 0s; }
.b2 { transition-delay: 0.1s; }
.b3 { transition-delay: 0.2s; }
.b4 { transition-delay: 0.3s; }
.b5 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   13. Contact — form
   -------------------------------------------------------------------------- */
.ue-contact-grid {
  position: relative;
  max-width: var(--ue-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 56px;
  align-items: start;
}

.ue-contact-grid > * {
  min-width: 0;
}

.ue-contact__lede {
  font-size: 18px;
  color: var(--ue-on-dark-soft);
  line-height: 1.5;
  margin: 0 0 40px;
  max-width: 40ch;
}

.ue-contact__details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ue-contact__label {
  font-family: var(--ue-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ue-on-dark-dim);
  margin-bottom: 6px;
}

.ue-contact__value,
.ue-contact__value:hover {
  color: var(--ue-on-dark);
  font-size: 17px;
  text-decoration: none;
}

.ue-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ue-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ue-input {
  background: #171c1a;
  border: 1px solid #333b38;
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--ue-on-dark);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
  width: 100%;
}

.ue-input::placeholder {
  color: var(--ue-on-dark-dimmer);
}

.ue-input:focus {
  border-color: var(--ue-mint);
}

textarea.ue-input {
  resize: vertical;
}

.ue-form__submit {
  background: var(--ue-green);
  color: var(--ue-white);
  border: none;
  border-radius: 980px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.ue-form__submit:hover {
  background: var(--ue-green-hover);
}

.ue-form__fine {
  font-size: 12px;
  color: var(--ue-on-dark-dimmer);
  line-height: 1.5;
  margin: 4px 0 0;
  text-align: center;
}

.ue-thanks {
  display: none;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 48px 34px;
  text-align: center;
}

.ue-thanks.is-visible {
  display: block;
}

.ue-thanks__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ue-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 30px;
  color: var(--ue-white);
}

.ue-thanks__title {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ue-on-dark);
}

.ue-thanks__body {
  font-size: 16px;
  color: var(--ue-on-dark-soft);
  margin: 0 auto;
  max-width: 34ch;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.ue-footer {
  background: var(--ue-black);
  color: var(--ue-on-dark-dim);
  padding: 44px var(--ue-gutter) 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ue-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-bottom: 34px;
}

.ue-footer__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.ue-footer__brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ue-on-dark);
  letter-spacing: -0.02em;
}

.ue-footer__brand-tag {
  font-family: var(--ue-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ue-on-dark-dimmer);
}

.ue-footer__blurb {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: 30ch;
}

.ue-footer__heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--ue-on-dark);
  margin-bottom: 12px;
}

.ue-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ue-footer__link,
.ue-footer__link:hover {
  color: var(--ue-on-dark-dim);
  font-size: 13px;
}

.ue-footer__link:hover {
  color: var(--ue-on-dark);
}

.ue-footer__link--mint,
.ue-footer__link--mint:hover {
  color: var(--ue-mint);
}

.ue-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 12px;
  color: var(--ue-on-dark-dimmer);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ue-footer__tagline {
  font-family: var(--ue-mono);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

/* The prototype swapped nav modes with JS at exactly 768px. */
@media (max-width: 767px) {
  .ue-nav__links {
    display: none;
  }

  .ue-burger {
    display: flex;
  }
}

@media (min-width: 768px) {
  .ue-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .ue-section,
  .ue-section--110 {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .ue-hero {
    padding-top: 128px;
  }

  .ue-pipeline__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ue-pipeline__steps {
    grid-template-columns: 1fr;
  }

  .ue-scene__row {
    gap: 20px;
  }

  /* 1fr auto 1fr collapses to a single column; the connector rotates so
     the flow still reads downward. */
  .ue-beta {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .ue-beta__arrow-mark {
    transform: rotate(90deg);
  }

  .ue-form__row {
    grid-template-columns: 1fr;
  }

  .ue-card,
  .ue-question {
    padding: 28px 24px;
  }

  .ue-split {
    padding: 34px 28px;
  }

  .ue-geo {
    padding: 32px 20px;
  }
}

/* --------------------------------------------------------------------------
   16. Reduced motion — opt-out for the looping ambient animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ue-pipeline,
  .ue-glow,
  .ue-step__dot,
  .ue-geo__pulse {
    animation: none;
  }

  .ue-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ue-scatter circle,
  .ue-line,
  .ue-bar,
  .ue-late {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    transition: none;
  }

  .ue-cluster-grid {
    transition: none;
  }
}
