/* ============================================================
   elMoondo site styles
   Layout and interaction patterns modelled on a modern agency site:
   announcement bar, charcoal header, image hero with a lead form,
   colour band, tabbed card, dark results slider, card grids, contact
   band and a colour footer. All code and artwork are original.
   ============================================================ */

:root {
  --charcoal: #26272c;
  --charcoal-2: #2e3138;
  --charcoal-3: #3a3d46;
  --grey: #f2f3f4;
  --white: #ffffff;
  --text: #26272c;
  --muted: #565862;
  --faint: #767983;
  --line: #e2e4e8;
  --sky: #7cd3ff;
  --sky-soft: #d9f1ff;
  --blue: #2f6fe4;
  --blue-dark: #2559c0;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 5px;
  --wrap: 1300px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.band-dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--sky);
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

/* ---------- Colour bands ---------- */
.band-dark {
  background: var(--charcoal);
  color: #f4f4f1;
  --text: #f4f4f1;
  --muted: #c3c5cd;
  --faint: #9a9ca7;
  --line: rgba(255, 255, 255, 0.14);
}
.band-grey {
  background: var(--grey);
}
.band-sky {
  background: var(--sky);
  color: #0e2433;
}

/* ---------- Headings with a highlighted phrase ---------- */
.sh {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.4rem;
  max-width: 62rem;
}
.sh.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.sh h2 {
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  margin: 0;
}
.sh .sub {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}
.sh .sub strong {
  font-weight: 700;
  color: var(--text);
}

.hl {
  background-image: linear-gradient(
    transparent calc(100% - 0.3em),
    var(--sky) calc(100% - 0.3em),
    var(--sky) calc(100% - 0.1em),
    transparent calc(100% - 0.1em)
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
  padding: 0 0.04em;
}
.in-view .hl,
.hl.in-view,
.hero .hl,
.page-hero .hl {
  background-size: 100% 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 1.6rem;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-blue,
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover,
.btn-primary:hover {
  background: var(--blue-dark);
}
.btn-sky {
  background: var(--sky);
  color: #0e2433;
}
.btn-sky:hover {
  background: #a6e3ff;
}
.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: currentColor;
}
.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(127, 127, 127, 0.12);
}
.btn-sm {
  height: 38px;
  padding: 0 1.1rem;
  font-size: 0.74rem;
}
.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
}
.band-dark .text-link {
  color: var(--sky);
}
.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--sky);
  color: #0e2433;
  font-size: 0.92rem;
  font-weight: 600;
}
.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  flex-wrap: wrap;
  text-align: center;
}
.announce .btn {
  height: 32px;
  padding: 0 1rem;
  font-size: 0.72rem;
  background: var(--blue);
  color: #fff;
}
.announce .btn:hover {
  background: var(--blue-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--charcoal);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}
.nav-links > a,
.nav-links > .has-menu > button {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.92rem;
  color: #d3d5dc;
  padding: 0.5rem 0.85rem;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
}
.nav-links > a:hover,
.nav-links > a.active,
.nav-links > .has-menu > button:hover,
.nav-links > .has-menu:focus-within > button {
  color: #fff;
}
.nav-links > a.active {
  box-shadow: inset 0 -3px 0 var(--sky);
  border-radius: 0;
}
.has-menu {
  position: relative;
}
.has-menu > button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: var(--charcoal-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #dfe1e7;
}
.menu a small {
  display: block;
  color: #9a9ca7;
  font-size: 0.78rem;
  margin-top: 0.1rem;
}
.menu a:hover {
  background: var(--charcoal-3);
  color: #fff;
}
.has-menu:hover > .menu,
.has-menu:focus-within > .menu,
.has-menu.open > .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-menu:hover > button svg,
.has-menu.open > button svg {
  transform: rotate(180deg);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 80px 0 0 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.2rem 32px 2rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    margin-left: 0;
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links > a,
  .nav-links > .has-menu > button {
    font-size: 1.2rem;
    padding: 0.95rem 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }
  .nav-links > a.active {
    box-shadow: none;
    color: var(--sky);
  }
  .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.6rem 0.8rem;
    display: none;
  }
  .has-menu.open > .menu {
    display: block;
  }
  .has-menu:hover > .menu {
    display: none;
  }
  .has-menu.open:hover > .menu {
    display: block;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta .btn {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal) url("../assets/art/hero.svg") center / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 39, 44, 0.92) 0%, rgba(38, 39, 44, 0.6) 55%, rgba(38, 39, 44, 0.25) 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: 560px;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.8vw, 3.7rem);
  max-width: none;
  margin: 0;
}
.hero h1 .hl {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lede {
  font-size: 1.12rem;
  font-weight: 300;
  max-width: 56ch;
  margin: 0;
  color: #e6e7ec;
}
.form-status {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  max-width: 880px;
}
.form-status.show {
  display: block;
}
.form-status.ok {
  background: rgba(124, 211, 255, 0.18);
  border: 1px solid var(--sky);
  color: #eaf8ff;
}
.form-status.err {
  background: rgba(255, 140, 120, 0.16);
  border: 1px solid #ff8c78;
  color: #ffdcd5;
}
.light-form .form-status.ok {
  color: #0b4a73;
  background: rgba(47, 111, 228, 0.1);
  border-color: var(--blue);
}
.light-form .form-status.err {
  color: #8a2a1a;
}
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin-top: 0.4rem;
}
.creds span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #e6e7ec;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Colour band with numbers ---------- */
.numbers-band .wrap {
  display: flex;
  align-items: center;
  gap: 2rem 3rem;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.numbers-band .n {
  display: flex;
  flex-direction: column;
}
.numbers-band .n strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.numbers-band .n span {
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ---------- Tabbed card ---------- */
.tabs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 2rem 2.2rem;
  box-shadow: 0 10px 40px rgba(38, 39, 44, 0.07);
}
.tab-list {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.tab-list button {
  flex: 1;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--faint);
  background: none;
  border: 0;
  border-bottom: 4px solid transparent;
  padding: 0.9rem 0.5rem;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab-list button:hover {
  color: var(--text);
}
.tab-list button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--sky);
}
.tab-panel {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.tab-panel[hidden] {
  display: none;
}
.tab-items {
  display: flex;
  flex-direction: column;
}
.tab-items li {
  border-bottom: 1px solid var(--line);
}
.tab-items li:last-child {
  border-bottom: 0;
}
.tab-items a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 1rem 0;
  align-items: center;
}
.tab-items strong {
  font-size: 1.12rem;
  font-weight: 700;
}
.tab-items span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}
.tab-items svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  color: var(--blue);
  transition: transform 0.15s ease;
}
.tab-items a:hover svg {
  transform: translateX(4px);
}
.tab-items a:hover strong {
  color: var(--blue);
}
.tab-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 412 / 386;
}
.tab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .tab-panel {
    grid-template-columns: 1fr;
  }
  .tab-media {
    display: none;
  }
  .tabs-card {
    padding: 1.2rem 1.1rem 1.6rem;
  }
  .tab-list button {
    font-size: 0.92rem;
  }
}

/* ---------- Results slider (dark band) ---------- */
.results .stats {
  position: relative;
  margin: 0 -32px;
}
.stat-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 32px 1rem;
  scrollbar-width: none;
}
.stat-track::-webkit-scrollbar {
  display: none;
}
.stat-card {
  flex: 0 0 min(300px, 78%);
  scroll-snap-align: start;
  background: var(--charcoal-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.stat-card .num {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sky);
  letter-spacing: -0.02em;
}
.stat-card p {
  margin: 0;
  color: #cfd1d9;
  font-weight: 300;
  font-size: 1rem;
}
.slider-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.slider-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slider-controls button:hover {
  background: var(--sky);
  color: #0e2433;
  border-color: var(--sky);
}
.slider-controls svg {
  width: 18px;
  height: 18px;
}
.testi-slider {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 2.2rem;
}
.testi-panels {
  min-height: 150px;
}
.testi-panel[hidden] {
  display: none;
}
.testi-panel blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: #f4f4f1;
}
.testi-panel cite {
  font-style: normal;
  font-weight: 700;
  color: var(--sky);
}
.testi-panel cite span {
  display: block;
  font-weight: 300;
  color: #b9bbc5;
  font-size: 0.9rem;
}
.testi-slider > button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.testi-slider > button:hover {
  background: var(--sky);
  color: #0e2433;
  border-color: var(--sky);
}
.testi-slider svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  .testi-slider {
    grid-template-columns: 1fr;
  }
  .testi-slider > button {
    display: none;
  }
}

/* ---------- Post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(38, 39, 44, 0.13);
}
.post-card .post-img {
  aspect-ratio: 390 / 250;
  background: var(--charcoal);
  overflow: hidden;
}
.post-card .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-img img {
  transform: scale(1.04);
}
.post-card .post-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--faint);
}
.pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(47, 111, 228, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}
.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.98rem;
}
.post-card .byline {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.post-card .byline b {
  color: var(--text);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.badge-new {
  position: absolute;
  top: 14px;
  left: -34px;
  width: 130px;
  text-align: center;
  transform: rotate(-45deg);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0;
  z-index: 2;
}
.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.8rem;
}
@media (max-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Icon cards ---------- */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.icon-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.icon-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.icon-card .icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
}
.icon-card .icon svg {
  width: 100%;
  height: 100%;
}
.icon-card h3 {
  font-size: 1.25rem;
  margin: 0.4rem 0 0;
}
.icon-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.97rem;
}
.icon-card .text-link {
  margin-top: auto;
  padding-top: 0.6rem;
}
@media (max-width: 980px) {
  .icon-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .icon-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact band ---------- */
.cb-row {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}
.cb-card {
  flex: 1 1 66%;
  background: var(--charcoal-2);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
}
.cb-media {
  flex: 0 0 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-3);
}
.cb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cb-form .full {
  grid-column: 1 / -1;
}
.cb-form label,
.light-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c3c5cd;
  margin-bottom: 0.35rem;
}
.cb-form input,
.cb-form textarea,
.cb-form select {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  height: 46px;
  padding: 0 0.9rem;
  color: var(--charcoal);
}
.cb-form textarea {
  height: 110px;
  padding: 0.7rem 0.9rem;
  resize: vertical;
}
.cb-form .hp {
  position: absolute;
  left: -9999px;
}
.cb-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #b9bbc5;
}
.cb-consent input {
  width: auto;
  height: auto;
  margin-top: 0.2rem;
}
@media (max-width: 860px) {
  .cb-row {
    flex-direction: column;
  }
  .cb-media {
    display: none;
  }
  .cb-form {
    grid-template-columns: 1fr;
  }
  .cb-card {
    padding: 1.4rem 1.2rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sky);
  color: #0e2433;
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
}
.site-footer .brand img {
  filter: none;
}
.site-footer p {
  max-width: 34ch;
  font-weight: 400;
}
.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer li {
  margin-bottom: 0.55rem;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(14, 36, 51, 0.25);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--charcoal) url("../assets/art/hero.svg") center / cover no-repeat;
  color: #fff;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 39, 44, 0.94), rgba(38, 39, 44, 0.65));
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.8rem, 5vw, 4.2rem);
  padding-bottom: clamp(2.8rem, 5vw, 4.2rem);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  max-width: 20ch;
  margin-bottom: 0.7rem;
}
.page-hero .lede {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 60ch;
  color: #e6e7ec;
  margin: 0;
}
.crumbs {
  font-size: 0.85rem;
  color: #b9bbc5;
  margin-bottom: 1.1rem;
}
.crumbs a:hover {
  color: var(--sky);
}
.page-hero .post-meta {
  color: #c3c5cd;
  margin-bottom: 0.9rem;
}
.page-hero .pill {
  background: rgba(124, 211, 255, 0.18);
  color: var(--sky);
}

/* ---------- Article / content layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.prose {
  max-width: 70ch;
  font-size: 1.04rem;
  font-weight: 300;
  color: #3b3d45;
}
.prose h2 {
  font-size: 1.7rem;
  margin: 2.2rem 0 0.7rem;
  color: var(--text);
}
.prose h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.5rem;
  color: var(--text);
}
.prose strong {
  font-weight: 700;
  color: var(--text);
}
.prose ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0 0 1.2rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
}
.side {
  position: sticky;
  top: 110px;
  background: var(--grey);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.side h4 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.side li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.side li:last-child {
  border-bottom: 0;
}
.side .btn {
  margin-top: 1.1rem;
}
.cover-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 7;
  background: var(--charcoal);
}
.cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Feature rows (blog index) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.feature .f-img {
  min-height: 320px;
  background: var(--charcoal);
}
.feature .f-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature .f-body {
  padding: 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}
.feature.flip .f-img {
  order: 2;
}
.feature h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  margin: 0;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature.flip .f-img {
    order: 0;
  }
  .feature .f-img {
    min-height: 200px;
  }
  .feature .f-body {
    padding: 1.6rem;
  }
}
.chip-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.chip-nav a,
.chip-nav button {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.chip-nav a[aria-current="true"],
.chip-nav button[aria-pressed="true"] {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

/* ---------- Generic card grids ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.band-grey .card {
  border-color: transparent;
}
.card h3 {
  font-size: 1.2rem;
  margin: 0;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.97rem;
}
.band-dark .card {
  background: var(--charcoal-2);
  border-color: rgba(255, 255, 255, 0.1);
}
.band-dark .card p {
  color: #c3c5cd;
}
.step {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.band-dark .step {
  color: var(--sky);
}
.big-num {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.case-card .big-num {
  margin: 0.4rem 0 0.2rem;
}
.case-card .label {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0;
}
.case-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.case-feature .nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.case-feature .nums div {
  background: var(--charcoal-2);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.case-feature .nums strong {
  display: block;
  font-size: 2.2rem;
  color: var(--sky);
  line-height: 1.05;
}
.case-feature .nums span {
  font-size: 0.88rem;
  color: #c3c5cd;
  font-weight: 300;
}
@media (max-width: 860px) {
  .case-feature {
    grid-template-columns: 1fr;
  }
}

/* ---------- Careers ---------- */
.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.3rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}
.role-row h4 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.role-row span {
  color: var(--faint);
  font-size: 0.88rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hl {
    transition: none;
    background-size: 100% 100%;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
}

/* ---------- Misc ---------- */
.actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.sh.center .actions,
.center-actions {
  justify-content: center;
}
.cta-section .sh {
  margin-bottom: 1.6rem;
}
.filter-empty {
  color: var(--muted);
  padding: 2rem 0;
}
[hidden] {
  display: none !important;
}
.info-card h3 {
  font-size: 1.05rem;
}
.cb-form select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2326272c' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 12px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-row label {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
.chip-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip-row span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.86rem;
  color: #dcdee5;
}
.chip-row input:checked + span {
  background: var(--sky);
  border-color: var(--sky);
  color: #0e2433;
  font-weight: 600;
}
.chip-row input:focus-visible + span {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.icon-cards.two {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .icon-cards.two {
    grid-template-columns: 1fr;
  }
}

/* ---------- Boost band: heading, intro and one-row form card ---------- */
.boost {
  padding: clamp(3rem, 5vw, 3.75rem) 0;
}
.boost-inner {
  max-width: 1118px;
  margin: 0 auto;
}
.boost-main {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}
.boost-head {
  display: flex;
  gap: clamp(2rem, 6vw, 6.25rem);
  align-items: flex-start;
}
.boost-head h2 {
  flex: 0 1 501px;
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.boost-head p {
  flex: 0 1 441px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #e6e7ec;
}
.boost-form {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
}
.boost-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.boost-field input {
  width: 100%;
  height: 53px;
  padding: 20px 20px 6px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  background: #fff;
  color: #161c2d;
  font-size: 1rem;
}
.boost-field input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(47, 111, 228, 0.25);
  outline-offset: 0;
}
.boost-field label {
  position: absolute;
  left: 20px;
  top: 14px;
  font-size: 1rem;
  color: #555862;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.boost-field input:focus + label,
.boost-field input:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 0.72rem;
  color: var(--blue);
}
.boost-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.boost-form .btn {
  flex: 0 0 200px;
  height: 53px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
}
.boost-form .btn:hover {
  background: var(--blue-dark);
}
.boost-form .btn svg {
  width: 16px;
  height: 16px;
}
.boost-note {
  font-size: 0.84rem;
  color: #b9bbc5;
  margin: -0.9rem 0 0;
}
.boost-done {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.4rem 0;
  color: var(--sky);
}
.boost-done h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}
.boost-done p {
  margin: 0;
  font-size: 1.25rem;
  color: #e6e7ec;
}
[data-boost].is-done .boost-main {
  display: none;
}
[data-boost].is-done .boost-done {
  display: flex;
}
@media (max-width: 860px) {
  .boost-head {
    flex-direction: column;
    gap: 1rem;
  }
  .boost-head h2,
  .boost-head p {
    flex: 0 0 auto;
  }
  .boost-form {
    flex-direction: column;
  }
  .boost-form .btn {
    flex-basis: auto;
    width: 100%;
  }
}

/* Hero version of the form card */
.hero-boost {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
}
.hero-boost .boost-main {
  gap: 1rem;
}
.hero-boost .boost-note {
  margin: 0;
}
.hero-boost .boost-done {
  align-items: flex-start;
  text-align: left;
  padding: 0.5rem 0;
}
.hero-boost .boost-done h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}
.hero-boost .boost-done p {
  font-size: 1.1rem;
}

/* Result card whose headline is a phrase rather than a number */
.stat-card .num.num-text {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Numbers band on phones: an even two-column grid, everything left-aligned */
@media (max-width: 860px) {
  .numbers-band .wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.9rem 1.25rem;
    align-items: start;
    padding-top: 2.2rem;
    padding-bottom: 2.4rem;
    justify-content: stretch;
  }
  .numbers-band .n strong {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .numbers-band .n span {
    line-height: 1.3;
  }
}

/* Announcement bar on phones: text and button share one compact row */
@media (max-width: 640px) {
  .announce {
    font-size: 0.8rem;
  }
  .announce .wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: left;
    gap: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .announce span {
    line-height: 1.3;
  }
  .announce .btn {
    flex-shrink: 0;
    height: 30px;
    padding: 0 0.85rem;
  }
}

/* ---------- Hero globe ---------- */
.hero-globe {
  position: absolute;
  top: 50%;
  right: -12%;
  width: min(46rem, 62vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero-globe {
    top: 3.5rem;
    right: -42%;
    width: 30rem;
    max-width: none;
    transform: none;
    opacity: 0.55;
  }
}

.numbers-band .n strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- Cover headline figure ---------- */
.post-card .post-img,
.cover-img,
.feature .f-img {
  position: relative;
}
.cover-fig {
  position: absolute;
  left: 1.1rem;
  bottom: 0.9rem;
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sky);
  text-shadow: 0 2px 14px rgba(38, 39, 44, 0.9);
  pointer-events: none;
}
.feature .cover-fig {
  font-size: 2.6rem;
  left: 1.6rem;
  bottom: 1.4rem;
}
.cover-img .cover-fig {
  font-size: 2.8rem;
  left: 1.6rem;
  bottom: 1.3rem;
}
@media (max-width: 640px) {
  .cover-img .cover-fig {
    font-size: 1.9rem;
  }
}

/* ---------- Photo covers ---------- */
.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(38, 39, 44, 0.5), rgba(38, 39, 44, 0) 55%);
  pointer-events: none;
}
.has-photo .cover-fig {
  z-index: 1;
}
.photo-credit {
  margin: -1.3rem 0 1.8rem;
  font-size: 0.8rem;
  color: var(--muted, #6b6f7a);
}
.photo-credit a {
  text-decoration: underline;
}

/* ---------- News ---------- */
.news-day {
  margin-top: 2.4rem;
}
.news-day[hidden] {
  display: none;
}
.news-date {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--charcoal);
}
.news-list {
  display: block;
}
.news-item {
  display: block;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.news-item[hidden] {
  display: none;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--faint);
}
.news-item h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.25;
}
.news-item:hover h3 {
  color: var(--blue);
}
.news-item p {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
}
.band-grey .news-item {
  border-bottom-color: #d6d9de;
}
.news-more {
  margin-top: 1.4rem;
}
