@import 'tokens.css';

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* Navigation - floating iced-glass pill */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: var(--z-nav, 1000);
  padding: 0;
  pointer-events: none;
  background: transparent;
  transition: top 0.3s ease;
}

.nav.scrolled {
  top: 10px;
}

.nav__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 22px 40px;
  border-radius: var(--radius-pill);
  pointer-events: auto;
  transition: padding 0.3s ease;
}

/* Glass layer lives on a pseudo-element so backdrop-filter doesn't
   trap the fixed-position mobile panel inside the pill. */
.nav__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 45%, rgba(214, 215, 215, 0.14));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease;
}

.nav.scrolled .nav__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav.scrolled .nav__inner::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(33, 36, 49, 0.45) 55%, rgba(79, 93, 117, 0.18));
}

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

/* Logo lockup: tagline under the logo, same width, reads as part of the mark */
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.logo-tagline__r {
  font-size: 1.35em;
  letter-spacing: 0;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.3em;
  margin-left: 0.05em;
}

.logo-tagline {
  display: block;
  width: max-content;   /* measure the text itself, not the container (footer logo is a block-level box) */
  font-family: 'DM Sans', var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  color: var(--color-text-light, #F5F5F5);
  opacity: 0.85;
  pointer-events: none;
}

.nav__logo img {
  display: block;
  height: 32px;
  width: auto;
  transition: height 0.3s ease;
}

.nav.scrolled .nav__logo img {
  height: 27px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__links a,
.nav__link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.nav__links a:hover,
.nav__link-btn:hover {
  color: var(--color-accent);
}

.nav__links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav__links > li > a:hover::after {
  width: 100%;
}

.nav__link-btn__chevron {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform var(--transition-fast);
}

.nav__item--dropdown:hover .nav__link-btn__chevron,
.nav__item--dropdown:focus-within .nav__link-btn__chevron {
  transform: rotate(180deg);
}

/* Desktop dropdown panel - hover/focus reveal, no JS required */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px var(--color-card-shadow);
  padding: var(--space-md);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease 0.3s, transform 0.18s ease 0.3s, visibility 0s linear 0.48s;
  z-index: 10;
}

/* Invisible bridge under the tab itself (tab width only, never the panel width), so the
   pointer can reach the panel without the wide panel's footprint blocking neighbouring tabs. */
.nav__item--dropdown::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  height: 16px;
  pointer-events: none;
}

.nav__item--dropdown:hover::after,
.nav__item--dropdown:focus-within::after {
  pointer-events: auto;
}

.nav__dropdown--wide {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  /* read top to bottom, left column first: items 1 to 8 on the left, 9 to 16 on the right, the last one bottom right */
  grid-auto-flow: column;
  grid-template-rows: auto repeat(8, auto);
  min-width: 560px;
  max-width: 620px;
  gap: 2px var(--space-lg);
}

.nav__dropdown.nav__dropdown--wide a {
  white-space: normal;
  line-height: 1.3;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0.06s, 0.06s, 0s;
}

.nav__item--dropdown.is-suppressed .nav__dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.nav__dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-light);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__dropdown a:hover {
  background: var(--color-card-bg-alt);
  color: var(--color-accent);
}

.nav__dropdown--wide:has(> a[href="#services"]) {
  grid-template-rows: auto repeat(6, auto);   /* 11 services: 6 left, 5 right */
}

.nav__dropdown--wide a.nav__dropdown-all {
  grid-column: 1 / -1;
  grid-row: 1;
}

.nav__dropdown a.nav__dropdown-all {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  margin-bottom: 4px;
  padding-bottom: 12px;
}

/* Mobile full-screen panel */
.nav__mobile-panel {
  display: none;
}

.nav__cta {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav__cta:hover {
  background: var(--color-accent-hover);
  transform: scale(1.03);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .nav__inner {
    padding: 14px 14px 14px 26px;
  }

  .nav__links, .nav__cta {
    display: none;
  }

  .nav__mobile-toggle {
    display: block;
    position: relative;
    z-index: 1201;
  }

  .nav__mobile-toggle .icon-close {
    display: none;
  }

  .nav.mobile-open .nav__mobile-toggle .icon-open {
    display: none;
  }

  .nav.mobile-open .nav__mobile-toggle .icon-close {
    display: block;
  }

  .nav__mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--color-bg-dark);
    padding: 100px var(--space-lg) var(--space-2xl);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav.mobile-open .nav__mobile-panel {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__mobile-panel > a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
  }

  .nav__mobile-panel .nav__mobile-cta {
    display: block;
    margin-top: var(--space-lg);
    text-align: center;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 15px 32px;
    border-radius: 999px;
    font-weight: 600;
  }

  .nav__mobile-group {
    border-bottom: 1px solid var(--color-border);
  }

  .nav__mobile-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    list-style: none;
  }

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

  .nav__mobile-group summary::after {
    content: '+';
    font-size: 20px;
    color: var(--color-accent);
    font-weight: 400;
  }

  .nav__mobile-group[open] summary::after {
    content: '\2212';
  }

  .nav__mobile-group .nav__mobile-sublist {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
  }

  .nav__mobile-group .nav__mobile-sublist a {
    padding: 9px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
  }

  .nav__mobile-group .nav__mobile-sublist a:hover,
  .nav__mobile-group .nav__mobile-sublist a.nav__dropdown-all {
    color: var(--color-accent);
  }
}

/* Footer - adapted from BYQ Supply's "Baseframe" footer (multi-column +
   giant background wordmark), restyled onto our tokens. Identical markup
   is injected on every page so the footer never drifts between them. */
.footer {
  background: var(--color-surface-alt);
  color: var(--color-text-light);
  padding-top: 120px;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: start;
  padding-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 380px;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  display: block;
  height: 48px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(245, 245, 245, 0.55);
  margin-bottom: var(--space-sm);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-list a,
.footer__contact-list span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer__contact-list a:hover {
  color: var(--color-accent);
}

.footer__nav {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer__nav {
    gap: var(--space-2xl);
  }
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--color-border-dark);
  min-width: 150px;
}

.footer__nav-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(245, 245, 245, 0.55);
}

.footer__nav-col a {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer__nav-col a:hover {
  color: var(--color-accent);
}

.footer__nav-col a.footer__nav-col-all {
  color: var(--color-accent);
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-top: 1px solid var(--color-border-dark);
}

@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
  }
}

.footer__bottom-left {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.footer__bottom-right {
  max-width: 640px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.45);
}

.footer__wordmark {
  width: 100%;
  line-height: 0.82;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 210px);
  letter-spacing: -0.02em;
  color: rgba(245, 245, 245, 0.06);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  padding-bottom: 0.06em;
}

/* ============================================ */
/* IMAGE PLACEHOLDERS                           */
/* Drop a file at the data-img path and it      */
/* replaces the placeholder automatically.      */
/* ============================================ */
.img-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed rgba(234, 92, 31, 0.6);
  background-color: #30364B;
  background-image: repeating-linear-gradient(135deg, rgba(79, 93, 117, 0.22) 0 14px, rgba(79, 93, 117, 0.08) 14px 28px);
  background-size: cover;
  background-position: center;
}

.img-slot__label {
  position: relative;
  z-index: 3;
  max-width: 86%;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(17, 19, 28, 0.78);
  color: #F5F5F5;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
}

.img-slot.has-image {
  border: none;
}

.img-slot.has-image .img-slot__label {
  display: none;
}

/* Split: image beside the text */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}

.split-layout .services-intro {
  margin-bottom: 0;
}

.img-slot--split {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px var(--color-card-shadow);
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .img-slot--split {
    aspect-ratio: 16 / 10;
  }
}

/* Background: full-bleed image behind a section, dark wash on top */
.section--img-bg {
  position: relative;
  overflow: hidden;
}

.section--img-bg > .container {
  position: relative;
  z-index: 2;
}

.img-slot--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  border-width: 0 0 2px 0;
  place-items: start end;
  padding: 96px 24px 0 0;
}

.img-slot--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(17, 19, 28, 0.86) 0%, rgba(24, 26, 38, 0.68) 100%);
}

/* Band: full-width image strip between two sections */
.img-slot--band {
  height: clamp(200px, 26vw, 340px);
  border-radius: 0;
  border-width: 2px 0;
}

/* Floating decorative images, tucked behind the content */
.has-floats {
  position: relative;
  overflow: hidden;
}

.has-floats > .container {
  position: relative;
  z-index: 2;
}

.img-float {
  position: absolute;
  z-index: 1;
  width: var(--w, 220px);
  aspect-ratio: var(--ar, 1 / 1);
  border: 0;
  border-radius: 0;
  background: none;
  pointer-events: none;
  transform: rotate(var(--rot, 0deg));
  animation: img-float-bob 8s ease-in-out infinite;
}

/* Cut-out stickers: no box, no frame, just the object with a soft shadow */
.img-float.has-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 18px 22px rgba(33, 36, 49, 0.35));
}

.img-float:nth-of-type(even) {
  animation-delay: -4s;
}

@keyframes img-float-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@media (max-width: 1280px) {
  .img-float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .img-float {
    animation: none;
  }
}

/* Split variants: image on the left, and bottom-flush cutout ("3D") */
.split-layout--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-layout--reverse > .img-slot {
  order: -1;
}

.split-layout--reverse .services-intro,
.split-layout--cutout .services-intro {
  margin-bottom: var(--space-xl);
}

.split-layout--sticky {
  align-items: start;
}

.split-layout--sticky > .img-slot {
  position: sticky;
  top: 120px;
}

.section.section--cutout {
  padding-bottom: 0;
  overflow: hidden;
}

.split-layout--cutout {
  align-items: end;
  grid-template-columns: 0.9fr 1.1fr;
}

.split-layout--cutout > .split-layout__text {
  align-self: center;
  padding-bottom: var(--space-4xl);
}

.img-slot--cutout {
  /* wider than its column on purpose: it bleeds off the right edge (the section clips it) */
  width: calc(100% + 190px);
  max-width: none;
  margin-right: -190px;
  justify-self: end;
  aspect-ratio: 4 / 3;
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-image: repeating-conic-gradient(rgba(79, 93, 117, 0.16) 0 25%, transparent 0 50%);
  background-size: 28px 28px;
  background-color: transparent;
}

/* tall/narrow subjects (drill bit, propeller) stay inside the column */
.img-slot--cutout-tall {
  width: min(100%, 440px);
  margin-right: 0;
}

.img-slot--cutout.has-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  border-radius: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

@media (max-width: 1024px) {
  .split-layout--cutout > .split-layout__text {
    padding-bottom: var(--space-3xl);
  }
}

@media (max-width: 900px) {
  .split-layout--reverse {
    grid-template-columns: 1fr;
  }

  .split-layout--reverse > .img-slot {
    order: 0;
  }

  .split-layout--sticky > .img-slot {
    position: relative;
    top: auto;
  }

  .split-layout--cutout > .split-layout__text {
    padding-bottom: var(--space-xl);
  }

  .img-slot--cutout,
  .img-slot--cutout-tall {
    justify-self: center;
    width: 100%;
    max-width: 420px;
    margin-right: 0;
  }
}

/* Cutout image placed below a section's content, flush with the section bottom */
.cutout-below {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.cutout-below .img-slot--cutout {
  justify-self: auto;
  width: min(100%, 800px);
  max-width: none;
  margin-right: 0;
}

/* Smooth scrolling (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Custom cursor: inverting disc that glides after the pointer (desktop only; JS adds .has-custom-cursor) */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

html.has-custom-cursor input,
html.has-custom-cursor textarea {
  cursor: text !important;
}

.mills-cursor,
.mills-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mills-cursor {
  width: 38px;
  height: 38px;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
  mix-blend-mode: difference;   /* inverts whatever it passes over: a negative filter */
  transition: opacity 0.25s ease, background 0.25s ease;
}

.mills-cursor.is-hot {
  background: #FFFFFF;
}

.mills-cursor.is-down {
  background: rgba(255, 255, 255, 0.6);
}

.mills-cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  mix-blend-mode: difference;
}

html.cursor-visible .mills-cursor,
html.cursor-visible .mills-cursor-dot {
  opacity: 1;
}

html.cursor-texty .mills-cursor,
html.cursor-texty .mills-cursor-dot {
  opacity: 0;
}

/* Footer: socials under the tagline, contact details in a tidy row */
.footer__social {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 245, 245, 0.28);
  border-radius: 50%;
  color: #F5F5F5;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer__social a:hover {
  background: #EA5C1F;
  border-color: #EA5C1F;
  transform: translateY(-2px);
}

/* 3D globe */
.mills-globe {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  align-self: center;
  isolation: isolate;
  overflow: visible;
  cursor: grab;
}

.mills-globe:active {
  cursor: grabbing;
}

.mills-globe::after {
  content: '';
  position: absolute;
  inset: -22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 170, 240, 0.34) 30%, rgba(80, 120, 210, 0.16) 46%, transparent 64%);
  pointer-events: none;
}

.mills-globe canvas {
  position: absolute;
  inset: 0;
  display: block;
  outline: none;
}

.mills-globe::before {
  content: 'Loading globe';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
  pointer-events: none;
}

.mills-globe.is-ready::before {
  display: none;
}

.globe-tip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #212431;
  border: 1px solid rgba(234, 92, 31, 0.6);
  color: #F5F5F5;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.globe-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: clamp(32px, 7vw, 120px);
  margin: var(--space-2xl, 56px) auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.globe-stats strong {
  display: block;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 800;
  line-height: 1;
  color: #F5F5F5;
}

.globe-stats strong .globe-stats__plus {
  color: #EA5C1F;
}

.globe-stats em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #D6D7D7;
}

@media (max-width: 600px) {
  .globe-stats { grid-template-columns: 1fr; gap: 28px; }
}

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.city-chips li {
  padding: 7px 14px;
  border: 1px solid rgba(245, 245, 245, 0.22);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #F5F5F5;
}

.city-chips li.is-home {
  background: #EA5C1F;
  border-color: #EA5C1F;
}


.footer__nav-col-title--sub {
  margin-top: var(--space-xl);
}

.footer__offices .footer__contact-label {
  margin: 0 0 12px;
}

.footer__offices .footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__offices .footer__contact-list span {
  font-size: 14.5px;
  line-height: 1.55;
}

/* Night-sky backdrop for the globe sections (one pre-rendered star tile: cheap to scroll) */
.section--sky {
  position: relative;
  background-color: #070A14;
  background-image:
    url('../assets/images/globe/stars.png'),
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(60, 90, 160, 0.22), transparent 70%),
    linear-gradient(180deg, #05070F 0%, #0A0F1F 100%);
  background-size: 1400px 1400px, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
}

/* At a glance: crawlable facts block */
.glance__lead {
  max-width: 820px;
  margin: var(--space-md) 0 var(--space-xl);
  font-size: 18px;
  line-height: 1.6;
  color: #4F5D75;
}

.glance__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 0 0 var(--space-2xl, 48px);
  padding: 0;
  list-style: none;
}

.glance__stats li {
  padding: 20px;
  border: 1px solid rgba(79, 93, 117, 0.25);
  border-radius: 20px;
  background: #FFFFFF;
}

.glance__stats strong {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  color: #212431;
}

.glance__stats span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4F5D75;
}

.glance__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 48px;
}

.glance__title {
  margin: 0 0 12px;
  font-size: 20px;
  color: #212431;
}

.glance__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
}

.glance__list li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.glance__list a {
  font-size: 15px;
  font-weight: 600;
  color: #212431;
  text-decoration: underline;
  text-decoration-color: rgba(234, 92, 31, 0.6);
  text-underline-offset: 3px;
}

.glance__list a:hover {
  color: #EA5C1F;
}

@media (max-width: 600px) {
  .glance__list { columns: 1; }
}

.footer__contact-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 245, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer__contact-list a:hover {
  color: #EA5C1F;
}

/* Keep the night-sky section (and the globe glow) from widening the page on phones */
.section--sky {
  overflow-x: clip;
}

@media (max-width: 767px) {
  .mills-globe::after {
    inset: -6%;
  }
}

/* Keyword tags at the bottom of each page */
.page-tags {
  background: #F5F5F5;
  border-top: 1px solid #D6D7D7;
  padding-block: 28px;
}

.page-tags__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
  color: #4F5D75;
}

.page-tags__label {
  margin-right: 4px;
  font-weight: 700;
  color: #212431;
}

.page-tags a {
  color: #212431;
  text-decoration: underline;
  text-decoration-color: rgba(234, 92, 31, 0.6);
  text-underline-offset: 3px;
}

.page-tags a:hover {
  color: #B8430F;
}

/* Globe: service legend, country chips and the hover card */
.globe-panel {
  display: grid;
  gap: 16px;
  margin-top: var(--space-xl);
}

.globe-panel__hint {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: #D6D7D7;
}

.globe-legend,
.globe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.globe-legend__btn,
.globe-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(245, 245, 245, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #F5F5F5;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.globe-legend__btn:hover,
.globe-chip:hover,
.globe-chip.is-active {
  background: #F5F5F5;
  border-color: #F5F5F5;
  color: #212431;
}

.globe-legend__btn[aria-pressed="true"] {
  background: #F5F5F5;
  border-color: #F5F5F5;
  color: #212431;
}

.globe-legend__btn:focus-visible,
.globe-chip:focus-visible {
  outline: 3px solid #F5F5F5;
  outline-offset: 2px;
}

.globe-chip.is-home {
  background: #C94A12;
  border-color: #C94A12;
  color: #FFFFFF;
}

.globe-chip.is-home:hover,
.globe-chip.is-home.is-active {
  background: #F5F5F5;
  color: #212431;
}

.globe-chip.is-dim {
  opacity: 0.35;
}

.globe-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}

.globe-chip__dots {
  display: inline-flex;
  gap: 3px;
}

.globe-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.globe-card {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  width: min(86%, 330px);
  padding: 14px 16px;
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: 16px;
  background: rgba(14, 17, 26, 0.94);
  color: #F5F5F5;
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.globe-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  color: #F5F5F5;
}

.globe-card__sub {
  margin: 2px 0 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D6D7D7;
}

.globe-card__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.globe-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.35;
  color: #F5F5F5;
}

.globe-card__list .globe-dot {
  margin-top: 4px;
}

@media (max-width: 600px) {
  .globe-card { left: 4px; bottom: 4px; width: min(94%, 330px); padding: 12px 14px; }
}


/* Service legend: a dark liquid-glass card with square-cornered rows, so it differs from the location pills */
.globe-legend-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.globe-legend-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  color: #F5F5F5;
}

.globe-legend-card__hint {
  margin: 2px 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: #D6D7D7;
}

.globe-legend-card .globe-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.globe-legend-card .globe-legend__btn {
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.globe-legend-card .globe-legend__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #F5F5F5;
}

.globe-legend-card .globe-legend__btn[aria-pressed="true"] {
  background: #F5F5F5;
  color: #212431;
}

.globe-chips__label {
  margin: 4px 0 -4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D6D7D7;
}

@media (max-width: 600px) {
  .globe-legend-card .globe-legend { grid-template-columns: 1fr; }
}

/* A lead paragraph that follows the intro heading inside a split layout needs its own breathing room */
.split-layout .services-intro + .services-intro__lead {
  margin-top: var(--space-xl);
}

/* Spacing between a section heading and the paragraph that follows it, wherever they sit together */
.services-intro__heading + .services-intro__lead,
.services-intro__heading + p {
  margin-top: var(--space-lg);
}

.industry-card__title + .industry-card__text {
  margin-top: 8px;
}

