/* ===== SHARED STYLES ===== */
/* Used by: home, blog, customer-stories */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #37B4A7;
  --teal-dark: #2a8e84;
  --teal-soft: #c2e0de;
  --teal-bg: #e8f5f3;
  --orange: #FF8D4E;
  --orange-dark: #e8742f;
  --orange-soft: #ffe0ca;
  --ink: #1a1f2e;
  --ink-2: #3a4152;
  --ink-3: #6b7180;
  --line: #eef0f2;
  --paper: #f8f9fa;
  --page-gutter: 32px;
  --max-width: 1180px;
  --section-spacing: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* ===== TYPOGRAPHY ===== */
.serif {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: -.03em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  display: none;
}

.hero,
.about-hero,
.services-hero,
.contact-hero,
.lab-hero,
.way-hero {
  padding: 180px 32px 100px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(48px, 6.5vw, 70px);
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
}

h3 {
  font-size: clamp(18px, 1.8vw, 22px);
}

.accent-o {
  color: var(--orange);
}

.accent-t {
  color: var(--teal);
}

.page-shell {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin: 0 auto;
}

/* ===== TOP ALERT ===== */
.top-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 38px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1001;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  padding: 8px 20px;
  text-align: center;
}

.top-alert .tag {
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
  white-space: nowrap;
}

.top-alert a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* ===== NAVIGATION ===== */
.nav-wrap {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: var(--nav-max-w, 1290px);
  transition: all .4s cubic-bezier(.2, .8, .2, 1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, var(--nav-bg-alpha, .3));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 100px;
  padding: var(--nav-pad, 10px 10px 10px 24px);
  box-shadow: 0 10px 40px -10px rgba(26, 31, 46, .07), 0 2px 6px rgba(26, 31, 46, .05), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transition: padding .4s cubic-bezier(.2, .8, .2, 1), background .4s cubic-bezier(.2, .8, .2, 1);
}

.logo-img {
  height: var(--logo-h, 28px);
  width: auto;
  display: block;
  transition: height .4s cubic-bezier(.2, .8, .2, 1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: var(--link-pad, 8px 14px);
  border-radius: 100px;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform .2s ease;
  pointer-events: none;
}

.nav-links > li:hover > a::after {
  transform: translateX(-50%) scale(1);
}

.nav-links > li.nav-active > a::after {
  transform: translateX(-50%) scale(1);
}

.nav-links a:hover,
.nav-item:hover>a {
  color: var(--ink);
  background: rgba(55, 180, 167, .08);
}

.nav-links svg {
  width: 10px;
  height: 10px;
  opacity: .6;
  transition: transform .2s;
}

.nav-item:hover > a > svg {
  transform: rotate(180deg);
}

.nav-item.nav-active > a,
li.nav-active > a {
  color: var(--orange);
  font-weight: 600;
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: all .3s cubic-bezier(.2, .8, .2, 1);
  padding: 24px;
  z-index: 1000;
  min-width: 220px;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mega Menu */
.mega-menu {
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 24px 18px;
}

.mega-menu--sm {
  width: 360px;
}

.mega-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mega-menu-header span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.mega-menu-header a {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.mega-menu-header a:hover { gap: 8px; }

.mega-list--cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.mega-list--cards.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mega-list--cards .mega-item {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.mega-list--cards .mega-item:hover {
  border-color: var(--teal);
  background: rgba(55, 180, 167, .04);
}

.mega-list--cards .mega-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.mega-list--cards .mega-icon svg {
  width: 15px;
  height: 15px;
}

.mega-list--cards .mega-info h5 {
  font-size: 12px;
  line-height: 1.3;
}

.mega-list--cards .mega-info p {
  font-size: 11px;
  margin-top: 1px;
}

.mega-col--engage {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.mega-col h4 {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  transition: all .2s;
  background: transparent;
}

.mega-item:hover {
  background: rgba(55, 180, 167, 0.05);
}

.mega-item.mega-active {
  background: rgba(55, 180, 167, 0.08);
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: .2s;
}

.mega-item:hover .mega-icon,
.mega-item.mega-active .mega-icon {
  background: var(--teal);
  transform: scale(1.05);
}

.mega-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  stroke-width: 1.5;
  fill: none;
  transition: .2s;
}

.mega-item:hover .mega-icon svg,
.mega-item.mega-active .mega-icon svg {
  stroke: #fff;
}

.mega-info h5 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
  transition: .2s;
}

.mega-item:hover h5,
.mega-item.mega-active h5 {
  color: var(--teal);
}

.mega-info p {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.drop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

/* Mobile Nav */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background: #f5f5f7;
}

/* CTA Button */
.cta {
  background: var(--orange);
  color: #fff;
  padding: var(--cta-pad, 11px 24px);
  border-radius: 100px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 141, 78, .25);
}

.cta svg {
  width: 14px;
  height: 14px;
  transition: .25s;
}

.cta:hover svg {
  transform: translate(3px, -3px);
}

.cta-orange {
  background: var(--orange);
}

.cta-orange:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 20px rgba(255, 141, 78, .25);
}

/* ===== FOOTER ===== */
footer {
  background: var(--teal);
  color: #fff;
  padding: 32px 32px 32px;
}

.footer-logo-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.footer-logo-svg {
  height: 24px;
  width: auto;
  display: block;
}

.footer-logo-svg path,
.footer-logo-svg rect,
.footer-logo-svg circle,
.footer-logo-svg polygon {
  fill: currentColor;
  stroke: currentColor;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr .9fr .7fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 18px;
}

.foot-col a {
  display: block;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  padding: 6px 0;
  transition: .2s;
}

.foot-col a:hover {
  color: #1a1f2e;
  transform: translateX(4px);
}

.foot-about p {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  max-width: 320px;
  margin-top: 18px;
}

.foot-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .05em;
}

.foot-big {
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 400;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, rgba(55, 180, 167, .22), rgba(55, 180, 167, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: .85;
  text-align: center;
  margin: 40px 0 -20px;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
}

.is-hidden {
  display: none !important;
}

.standards-contributions {
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.standards-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--teal-soft);
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  transition: .25s ease;
  cursor: pointer;
  text-decoration: none;
}

.project-pill:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(55, 180, 167, .15);
  color: var(--teal);
}

.pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.github-pill .pill-icon {
  background: var(--ink);
  color: #fff;
}

.membership-panel {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid var(--teal-soft);
  background: linear-gradient(115deg, var(--teal-bg) 60%, rgba(55, 180, 167, .06));
  align-items: center;
}

.membership-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  border-right: 2px solid var(--teal);
  padding-right: 28px;
  white-space: nowrap;
  color: var(--ink);
}

.member-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.member-card:hover {
  border-color: var(--teal-soft);
  box-shadow: 0 4px 16px rgba(55, 180, 167, .12);
}

.member-card span {
  font-size: 11px;
  color: var(--ink-3);
  display: block;
  margin-bottom: 3px;
}

.member-card strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.member-logo {
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--paper);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid var(--teal-soft);
}

/* ===== ANIMATED GLOBE ===== */
.globe-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

svg.globe {
  width: min(100%, 100vh);
  height: auto;
  max-width: 480px;
  max-height: 480px;
  display: block;
  overflow: visible;
}

#tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 141, 78, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: opacity 220ms ease;
  will-change: opacity, left, top;
}

.city-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.18);
}

.city-tag.hub {
  border-color: rgba(43, 182, 115, 0.55);
  background: #f3fbf6;
  color: #114a30;
  font-weight: 700;
}

.city-tag.hub::before {
  background: #2BB673;
  box-shadow: 0 0 0 2px rgba(43, 182, 115, 0.22);
}

.globe-legend {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 16px;
}

.globe-legend strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 15px;
  }

  .dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    padding: 10px 0 10px 20px;
    display: none;
    width: 100%;
    background: transparent;
  }

  .nav-item.active .dropdown {
    display: flex;
    flex-direction: column;
  }

  .mega-list--cards,
  .mega-list--cards.cols-2 {
    grid-template-columns: 1fr;
  }

  .nav .cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    padding: 8px 8px 8px 20px;
  }

  .top-alert {
    font-size: 10px;
    gap: 8px;
  }

  .nav-wrap {
    top: 60px;
  }
}

@media (max-width: 820px) {
  :root {
    --page-gutter: 20px;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ─── Blog article blockquotes ─────────────────────────────────────────────── */
.entry-content blockquote {
  margin: 32px 0;
  padding: 24px 28px 24px 32px;
  border-left: 4px solid var(--teal);
  background: rgba(55, 180, 167, .05);
  border-radius: 0 14px 14px 0;
}
.entry-content blockquote p.quote-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  margin: 0 !important;
}
.entry-content blockquote p.quote-author {
  margin: 12px 0 0 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-dark);
  font-style: normal;
}

.article-title,
.article-title .accent-t,
.article-title .accent-o {
  color: #1a1f2e !important;
}