/**
* Dominion Meridian — built on the Dewi template
* Template Name: Dewi
* Template URL: https://bootstrapmade.com/dewi-free-multi-purpose-html-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*
* Layout: Dewi's full-bleed dark hero, uppercase section titles with an accent rule, alternating
* light / tinted / navy bands and a dark multi-column footer, recoloured to DM navy and gold.
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Cormorant Garamond", Cormorant, Garamond, Georgia, serif;
  --title-font: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --nav-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root {
  --background-color: #fcfaf7;
  --default-color: #3e4a59;
  --heading-color: #0b2038;
  --accent-color: #c5a572;
  --accent-ink: #8a6a3a;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --on-accent: #0b2038;
  --navy: #0b2038;
  color-scheme: light;
}

:root {
  --nav-color: rgba(239, 234, 226, 0.88);
  --nav-hover-color: #c5a572;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-color: #3e4a59;
  --nav-dropdown-hover-color: #8a6a3a;
}

.light-background {
  --background-color: #f4efe8;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0b2038;
  --default-color: #e7e2d9;
  --heading-color: #ffffff;
  --surface-color: #13294a;
  --contrast-color: #ffffff;
  --accent-ink: #d4b887;
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-ink), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

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

.page-title h1:focus { outline: none; }

.bi {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* side gutter (clears phone system bars) */
.container, .container-fluid, .container-xl {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(11, 32, 56, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
  min-width: 0;
}

.header .logo .sitename,
.footer .logo .sitename {
  font-family: var(--title-font);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.header .logo .sitename {
  font-size: 20px;
  color: var(--heading-color);
}

.sitename .m {
  color: var(--accent-color);
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 25px;
  margin: 0 0 0 30px;
  border-radius: 4px;
  transition: 0.3s;
  text-transform: uppercase;
  border: 2px solid color-mix(in srgb, var(--contrast-color), transparent 15%);
  white-space: nowrap;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--on-accent);
  background: var(--accent-color);
  border-color: var(--accent-color);
}


@media (max-width: 575px) {
  .header .logo .sitename { font-size: 16px; letter-spacing: 0.14em; }
}

.scrolled .header {
  --background-color: rgba(11, 32, 56, 0.94);
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  background: none;
  border: 0;
  padding: 0;
  line-height: 0;
}

.mobile-nav-toggle .bi-x-lg { display: none; }
.mobile-nav-active .mobile-nav-toggle .bi-x-lg { display: inline-block; }
.mobile-nav-active .mobile-nav-toggle .bi-list { display: none; }

/* Navigation: always a hamburger menu, button at top right */
.mobile-nav-toggle {
  color: var(--nav-color);
  font-size: 28px;
  margin-right: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  display: none;
  list-style: none;
  position: absolute;
  top: calc(64px + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  padding: 12px 0;
  margin: 0;
  border-radius: 6px;
  background-color: var(--nav-mobile-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  overflow-y: auto;
  transition: 0.3s;
  z-index: 9998;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-dropdown-color);
  padding: 10px 20px;
  font-family: var(--nav-font);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  transition: 0.3s;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.mobile-nav-active { overflow: hidden; }

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  position: absolute;
  font-size: 28px;
  top: calc(var(--toggle-top, 20px) + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  margin-right: 0;
  z-index: 9999;
}

.mobile-nav-active .navmenu {
  position: fixed;
  overflow: hidden;
  inset: 0;
  background: rgba(11, 32, 56, 0.86);
  transition: 0.3s;
}

.mobile-nav-active .navmenu > ul { display: block; }


/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo .sitename {
  font-size: 20px;
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
}

.footer h4 {
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links { margin-bottom: 30px; }

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

.footer .footer-links ul .bi {
  font-size: 12px;
  margin-right: 4px;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child { padding-top: 0; }

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover { color: var(--accent-color); }

.footer .footer-contact p { margin-bottom: 5px; }

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p { margin-bottom: 0; }

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.footer .credits a { color: var(--accent-color); }

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: calc(15px + env(safe-area-inset-right, 0px));
  bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top .bi {
  font-size: 24px;
  color: var(--on-accent);
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-active .scroll-top {
  visibility: hidden;
  opacity: 0;
}

/*--------------------------------------------------------------
# Background slideshow (hero + inner-page banners)
--------------------------------------------------------------*/
.bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-slides .slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.bg-slides .slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bg-slides .slide { transition: none; }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: calc(160px + env(safe-area-inset-top, 0px)) 0 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.page-title:before {
  content: "";
  /* same treatment as the landing-page hero: darker behind the title, lighter toward the edges */
  background:
    radial-gradient(ellipse 55% 75% at 50% 58%, rgba(8, 22, 40, 0.86) 0%, rgba(8, 22, 40, 0.68) 55%, rgba(8, 22, 40, 0.45) 100%),
    linear-gradient(to bottom, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0) 35%, rgba(8, 22, 40, 0) 75%, rgba(8, 22, 40, 0.45) 100%);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-title .container { z-index: 2; }

.page-title h1 {
  font-family: var(--title-font);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 28px rgba(3, 10, 20, 0.65), 0 1px 2px rgba(3, 10, 20, 0.5);
}

.page-title p {
  color: #f3efe8;
  text-shadow: 0 1px 16px rgba(3, 10, 20, 0.7);
  font-size: 18px;
  font-weight: 300;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li { padding-left: 10px; }

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 72px 0;
  scroll-margin-top: 80px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section, .section { scroll-margin-top: 70px; }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 48px;
  position: relative;
}

.section-title h2 {
  font-family: var(--title-font);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--heading-color);
  margin: 0;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin-top: 16px;
  background: var(--accent-color);
}

@media (max-width: 768px) {
  .section-title h2 { font-size: 24px; }
  .section-title h2::after { width: 60px; margin-top: 12px; }
}

/*--------------------------------------------------------------
# Landing page: no top bar; the hero is followed by the section wheel
--------------------------------------------------------------*/
body:has(#page-home:not([hidden])) .header,
body:has(#page-home:not([hidden])) .scroll-top {
  display: none !important;
}

/* each scroll stops on the next entry (one screen of scrolling per entry), then on the footer */
html:has(#page-home:not([hidden]) .wheel.is-live) { scroll-snap-type: y mandatory; }
html.wheel-gliding { scroll-snap-type: none !important; }
#page-home .hero { scroll-snap-align: start; }
html:has(#page-home:not([hidden])) .footer { scroll-snap-align: end; }

.wheel {
  position: relative;
  display: block;
  color: #ffffff;
  background-color: var(--navy);
}

.wheel-stage {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(28, 58, 96, 0.55) 0%, rgba(11, 32, 56, 0) 100%),
    var(--navy);
}

.wheel-list {
  list-style: none;
  margin: 0;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.wheel-item a {
  position: relative;
  display: inline-block;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: calc(clamp(25px, 6.6vw, 62px) * var(--wheel-fit, 1));
  font-size: calc(clamp(25px, min(6.6vw, 9svh), 62px) * var(--wheel-fit, 1));  /* short screens (phones on their side): smaller, so entries don't crowd */
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  padding: 0.12em 0.2em;
  transition: color 0.3s;
}

/* the accent rule of the section titles marks the entry in focus */
.wheel-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  width: 90px;
  height: 2px;
  margin-left: -45px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.wheel-item a:hover,
.wheel-item a:focus-visible { color: var(--accent-color); }
.wheel-item a:hover::after,
.wheel-item a:focus-visible::after,
.wheel.is-live .wheel-item.is-focus a::after { transform: scaleX(1); }

.wheel-ticks { display: none; }

/* with scripting: the stage stays on screen and the entries turn on a drum */
.wheel.is-live {
  height: calc(var(--n, 7) * 100vh);
  height: calc(var(--n, 7) * 100svh);
}

.wheel.is-live .wheel-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.wheel.is-live .wheel-list {
  position: absolute;
  inset: 0;
  display: block;
  perspective: 1100px;
}

.wheel.is-live .wheel-item {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.wheel.is-live .wheel-item:not(.is-focus) a:hover { color: #ffffff; }

.wheel-snaps {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
}

.wheel-snaps span {
  display: block;
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* position marker: one tick per entry */
.wheel.is-live .wheel-ticks {
  position: absolute;
  z-index: 2;
  right: max(28px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.wheel-ticks span {
  display: block;
  width: 30px;
  padding: 6px 0;
  cursor: pointer;
}

.wheel-ticks span::before {
  content: "";
  display: block;
  margin-left: auto;
  width: 14px;
  height: 1px;
  background: color-mix(in srgb, var(--accent-color), transparent 55%);
  transition: width 0.4s ease, background-color 0.4s;
}

.wheel-ticks span.is-active::before {
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

@media (max-width: 767px) {
  .wheel.is-live .wheel-ticks {
    top: auto;
    right: 0;
    left: 0;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    transform: none;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
  }

  .wheel-ticks span { width: auto; padding: 8px 0; }
  .wheel-ticks span::before { width: 14px; margin: 0; }
  .wheel-ticks span.is-active::before { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-item a::after, .wheel-ticks span::before { transition: none; }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;   /* fills the screen, as in the original Dewi hero */
  min-height: 100svh;  /* phones: excludes the browser bar so the page doesn't jump */
  position: relative;
  padding: calc(170px + env(safe-area-inset-top, 0px)) 0 130px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.hero:before {
  content: "";
  /* darker behind the centred title, lighter toward the edges; top and bottom deepened for the menu */
  background:
    radial-gradient(ellipse 55% 65% at 50% 52%, rgba(8, 22, 40, 0.86) 0%, rgba(8, 22, 40, 0.66) 50%, rgba(8, 22, 40, 0.4) 100%),
    linear-gradient(to bottom, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0) 28%, rgba(8, 22, 40, 0) 72%, rgba(8, 22, 40, 0.55) 100%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero .hero-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 14px rgba(3, 10, 20, 0.75));
}

.hero .hero-mark .grid { stroke-opacity: 0.7; stroke-width: 1.4; }
.hero .hero-mark .rim { stroke-opacity: 1; stroke-width: 1.8; fill: rgba(8, 22, 40, 0.45); }
.hero .hero-mark .meridian { stroke-width: 2.6; }

.hero h1 {
  font-family: var(--title-font);
  margin: 0;
  font-size: 54px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(3, 10, 20, 0.65), 0 1px 2px rgba(3, 10, 20, 0.5);
}

.hero p {
  color: #f3efe8;
  margin: 14px 0 0 0;
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 40ch;
  text-shadow: 0 1px 18px rgba(3, 10, 20, 0.7);
}

.hero .btn-get-started {
  background: var(--accent-color);
  color: var(--on-accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  transition: 0.3s;
  text-transform: uppercase;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-weight: 400;
  color: var(--default-color);
}

.hero .btn-watch-video .bi {
  color: var(--accent-color);
  font-size: 32px;
  transition: 0.3s;
  margin-right: 8px;
}

.hero .btn-watch-video:hover { color: var(--accent-color); }

@media (max-width: 768px) {
  .hero { padding-top: calc(130px + env(safe-area-inset-top, 0px)); padding-bottom: 96px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 22px; }
  .hero .hero-mark { width: 72px; height: 72px; }
}

/* down chevron: brightens to gold and grows when hovered or focused; leads to the section wheel */
.hero-down {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  margin-left: -28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(243, 239, 232, 0.9);
  filter: drop-shadow(0 1px 6px rgba(3, 10, 20, 0.6));
}

.hero-down .chev {
  display: block;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.hero-down:hover,
.hero-down:focus-visible { color: var(--accent-color); }
.hero-down:hover .chev,
.hero-down:focus-visible .chev { transform: rotate(45deg) scale(1.25); }
.hero-down:focus-visible { outline-offset: 0; border-radius: 50%; }

/* short screens (phones on their side): tighter hero so the title and the chevron fit on one screen */
@media (max-height: 520px) {
  .hero { padding-top: calc(76px + env(safe-area-inset-top, 0px)); padding-bottom: 64px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 20px; margin-top: 10px; }
  .hero-down { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-down { animation: hero-down-bob 2.4s ease-in-out 1.2s infinite; }
  .hero-down:hover, .hero-down:focus-visible { animation-play-state: paused; }
}

@keyframes hero-down-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .fade-up { animation: fade-up 0.8s ease-in-out both; }
  .hero .d1 { animation-delay: 0.1s; }
  .hero .d2 { animation-delay: 0.2s; }
  .hero .d3 { animation-delay: 0.3s; }
}

@keyframes fade-up {
  from { opacity: 0.3; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/*--------------------------------------------------------------
# About Section (Who we are)
--------------------------------------------------------------*/
.about h3 {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.18;
  margin-bottom: 24px;
  text-wrap: balance;
}

.about p {
  font-size: 17px;
  line-height: 1.75;
}

.about .globe-panel {
  position: relative;
  background: var(--navy);
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.about .globe-panel svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.about .globe-caption {
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color);
}

@media (max-width: 991px) {
  .about h3 { font-size: 30px; }
}

/* globe line-work */
.globe .grid { fill: none; stroke: #c5a572; stroke-opacity: 0.32; stroke-width: 1; vector-effect: non-scaling-stroke; }
.globe .land { fill: #c5a572; fill-opacity: 0.14; stroke: #c5a572; stroke-opacity: 0.75; stroke-width: 0.9; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.globe .lakes { fill: #0b2038; stroke: #c5a572; stroke-opacity: 0.75; stroke-width: 0.9; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.globe .rim { fill: none; stroke: #c5a572; stroke-opacity: 0.6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.globe .meridian { fill: none; stroke-linecap: round; stroke: #c5a572; stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.globe .ring { fill: none; stroke: #c5a572; stroke-opacity: 0.85; stroke-width: 1; vector-effect: non-scaling-stroke; }
.globe .pin { fill: #c5a572; }
.globe .pulse { fill: none; stroke: #c5a572; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transform-box: view-box; transform-origin: 200px 88.4px; }

@media (prefers-reduced-motion: no-preference) {
  .globe .pulse { animation: pulsate-pin 2.4s ease-out infinite; }
}

@keyframes pulsate-pin {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/*--------------------------------------------------------------
# What we offer
--------------------------------------------------------------*/
/* list marker: a short accent rule in place of check icons */
.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rule-list li {
  position: relative;
  padding-left: 30px;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 16px;
  height: 1px;
  background: var(--accent-ink);
}

/*--------------------------------------------------------------
# What we offer: full-screen slides
--------------------------------------------------------------*/
section.offer-slides {
  position: relative;
  padding: 0;
  overflow: visible;
  background: var(--navy);
}

html:has(#page-offer:not([hidden]) .offer-slides) { scroll-snap-type: y proximity; }
html:has(#page-offer:not([hidden])) .footer { scroll-snap-align: end; }

.oslide-snaps {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
}

.oslide-snaps span {
  display: block;
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
}

.oslide {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: #e7e2d9;
}

.oslide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* focal points, so each subject stays clear of the text */
#offer-rd-labs .oslide-img { object-position: 60% 50%; }
#offer-scale-up .oslide-img { object-position: 64% 42%; }
#offer-financial .oslide-img { object-position: 50% 58%; }
#offer-academia .oslide-img { object-position: 54% 78%; }
#offer-business .oslide-img { object-position: 50% 50%; }
#offer-talent .oslide-img { object-position: 70% 60%; }

.oslide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 40, 0.94) 0%, rgba(8, 22, 40, 0.86) 28%, rgba(8, 22, 40, 0.4) 56%, rgba(8, 22, 40, 0) 78%),
    linear-gradient(to bottom, rgba(8, 22, 40, 0.5) 0%, rgba(8, 22, 40, 0) 22%);
}

.oslide-dim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #050f1c;
  opacity: 0;
  pointer-events: none;
}

.oslide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 76px;  /* clears the top bar */
}

.oslide-panel {
  max-width: 520px;
  will-change: transform, opacity;
}

.oslide-ic {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 22px;
}

.oslide h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 18px;
}

.oslide p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.oslide .list-lead {
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 14px;
}

.oslide .rule-list li {
  font-size: 16px;
  line-height: 1.55;
  color: #f3efe8;
}

.oslide .rule-list li + li { margin-top: 10px; }
.oslide .rule-list li::before { background: var(--accent-color); }

/* opening slide: page title, intro and overview over the site's background photographs */
.oslide-intro .bg-slides { z-index: 0; }

.oslide-intro .oslide-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 22, 40, 0.93) 0%, rgba(8, 22, 40, 0.84) 45%, rgba(8, 22, 40, 0.62) 100%),
    linear-gradient(to bottom, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0) 25%);
}

.intro-panel {
  width: 100%;
  will-change: transform, opacity;
}

.oslide-intro .breadcrumbs ol,
.ww-head .breadcrumbs ol,
.model-hero .breadcrumbs ol,
.contact-hero .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(231, 226, 217, 0.75);
}

.oslide-intro .breadcrumbs a, .ww-head .breadcrumbs a, .model-hero .breadcrumbs a, .contact-hero .breadcrumbs a { color: var(--accent-color); }
.oslide-intro .breadcrumbs li + li, .ww-head .breadcrumbs li + li, .model-hero .breadcrumbs li + li, .contact-hero .breadcrumbs li + li { padding-left: 10px; }
.oslide-intro .breadcrumbs li + li::before, .ww-head .breadcrumbs li + li::before, .model-hero .breadcrumbs li + li::before, .contact-hero .breadcrumbs li + li::before { content: "/"; padding-right: 10px; color: rgba(231, 226, 217, 0.45); }

.oslide-intro h1,
.ww-head h1,
.model-hero h1,
.contact-hero h1 {
  font-family: var(--title-font);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 20px;
}

.oslide-intro h1:focus, .ww-head h1:focus, .model-hero h1:focus, .contact-hero h1:focus { outline: none; }

.oslide-intro .intro {
  max-width: 44em;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: #f3efe8;
  margin: 0;
}

.oslide-intro .overview { margin-top: 56px; }

.oslide-intro .lead {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  max-width: 30em;
  margin: 0 0 30px;
}

/* the three means: columns under a fine rule with a short gold lead-in */
.means {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 26px;
}

.means li {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid rgba(231, 226, 217, 0.22);
  font-size: 16px;
  line-height: 1.6;
  color: #e7e2d9;
}

.means li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent-color);
}

/* when the opening slide is taller than the screen it grows and scrolls normally */
.oslide-intro.is-tall {
  position: relative;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
}

.oslide-intro.is-tall .oslide-inner {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(110px + env(safe-area-inset-top, 0px));
  padding-bottom: 64px;
}

@media (max-width: 991px) {
  .oslide-intro h1, .ww-head h1, .model-hero h1, .contact-hero h1 { font-size: 38px; }
  .oslide-intro .lead { font-size: 24px; }
  .means { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .oslide-intro .oslide-shade {
    background: linear-gradient(to bottom, rgba(8, 22, 40, 0.75) 0%, rgba(8, 22, 40, 0.88) 40%, rgba(8, 22, 40, 0.93) 100%);
  }
  .oslide-intro .oslide-inner { align-items: center; padding-bottom: 0; padding-top: 76px; }
  .oslide-intro h1, .ww-head h1, .model-hero h1, .contact-hero h1 { font-size: 30px; margin-bottom: 14px; }
  .oslide-intro .intro { font-size: 16px; line-height: 1.6; }
  .oslide-intro .overview { margin-top: 36px; }
  .oslide-intro .lead { font-size: 21px; margin-bottom: 22px; }
  .means { row-gap: 18px; }
  .means li { padding-top: 14px; font-size: 15px; line-height: 1.55; }
}

/* position marker, pinned over the slides */
.oslide-ticks {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 5;
}

.oslide-ticks > div {
  position: absolute;
  right: max(28px, env(safe-area-inset-right, 0px));
  top: 50vh;
  top: 50svh;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.oslide-ticks span {
  display: block;
  width: 30px;
  padding: 6px 0;
  cursor: pointer;
}

.oslide-ticks span::before {
  content: "";
  display: block;
  margin-left: auto;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.4s ease, background-color 0.4s;
}

.oslide-ticks span.is-active::before {
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

@media (max-width: 991px) {
  .oslide h2 { font-size: 40px; }
}

/* phones: text over the lower part of the picture */
@media (max-width: 767px) {
  .oslide-shade {
    background:
      linear-gradient(0deg, rgba(8, 22, 40, 0.96) 0%, rgba(8, 22, 40, 0.88) 42%, rgba(8, 22, 40, 0.3) 68%, rgba(8, 22, 40, 0) 85%),
      linear-gradient(to bottom, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0) 20%);
  }

  .oslide-inner {
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .oslide-ic { font-size: 28px; margin-bottom: 14px; }
  .oslide h2 { font-size: 32px; margin-bottom: 12px; }
  .oslide p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
  .oslide .list-lead { font-size: 12px; margin-bottom: 10px; }
  .oslide .rule-list li { font-size: 15px; }
  .oslide .rule-list li + li { margin-top: 6px; }

  .oslide-ticks > div {
    top: calc(88px + env(safe-area-inset-top, 0px));
    transform: none;
    right: 0;
    left: 0;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }

  .oslide-ticks span { width: auto; padding: 8px 0; }
  .oslide-ticks span::before { width: 14px; margin: 0; }
  .oslide-ticks span.is-active::before { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .oslide-ticks span::before { transition: none; }
}

.footer .footer-contact a { color: var(--default-color); }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 18px;
  border: 1px solid rgba(197, 165, 114, 0.6);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 16px;
}

.footer-social:hover { background: var(--accent-color); color: var(--on-accent); }
.footer .footer-contact a:hover { color: var(--accent-color); }
.contact .info-item p a { color: inherit; }
.contact .info-item p a:hover { color: var(--accent-ink); }

/*--------------------------------------------------------------
# Who we work with: three panels, the one in focus opens out
--------------------------------------------------------------*/
section.ww {
  position: relative;
  padding: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  background: var(--navy);
}

/* page title over the top of the panels */
.ww-head {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(110px + env(safe-area-inset-top, 0px)) 0 90px;
  background: linear-gradient(to bottom, rgba(8, 22, 40, 0.82) 0%, rgba(8, 22, 40, 0.5) 60%, rgba(8, 22, 40, 0) 100%);
  pointer-events: none;  /* the panels underneath still respond to the pointer */
}

.ww-head a { pointer-events: auto; }

.ww-panels {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  gap: 2px;
}

.ww-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ww-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ww-ip img { object-position: 45% 50%; }
.ww-startups img { object-position: 50% 55%; }
.ww-orgs img { object-position: 52% 62%; }

/* legibility shade, plus a veil that darkens the panels out of focus */
.ww-panel::before,
.ww-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ww-panel::before {
  background: linear-gradient(to top, rgba(8, 22, 40, 0.94) 0%, rgba(8, 22, 40, 0.6) 32%, rgba(8, 22, 40, 0.2) 62%, rgba(8, 22, 40, 0.25) 100%);
}

.ww-panel::after {
  background: #050f1c;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* captions start at the same height in every panel, so their rules line up */
.ww-text {
  position: absolute;
  z-index: 2;
  left: 40px;
  top: calc(100% - 304px);
  bottom: 56px;
  width: min(330px, calc(25vw - 56px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.6s ease;
}

.ww-text h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 24px;
}

.ww-text h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--accent-color);
  transition: width 0.6s ease;
}

/* "Is this you?" leads to the contact page */
.ww-cta {
  display: inline-block;
  margin-top: auto;  /* buttons share a baseline at the foot of each panel */
  padding: 11px 24px;
  border: 1px solid var(--accent-color);
  border-radius: 2px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(8, 22, 40, 0.35);
  transition: background-color 0.3s, color 0.3s;
}

.ww-cta:hover,
.ww-cta:focus-visible {
  background: var(--accent-color);
  color: var(--on-accent);
}

@media (hover: hover) {
  .ww-panel:hover { flex-grow: 2; }
  .ww-panels:hover .ww-panel:not(:hover)::after { opacity: 0.55; }
  .ww-panels:hover .ww-panel:not(:hover) .ww-text { opacity: 0.7; }
  .ww-panel:hover img { transform: scale(1.04); }
  .ww-panel:hover .ww-text h2::before { width: 90px; }
}

@media (max-width: 1199px) {
  .ww-text { left: 28px; top: calc(100% - 272px); bottom: 44px; }
  .ww-text h2 { font-size: 26px; }
}

/* phones: title on navy, then the three panels stacked */
@media (max-width: 767px) {
  section.ww { height: auto; min-height: 0; }
  .ww-head { position: static; padding-bottom: 36px; background: var(--navy); }
  .ww-panels { flex-direction: column; height: auto; }
  .ww-panel { flex: none; height: 62vh; height: 62svh; min-height: 360px; }
  .ww-text { left: 16px; right: 16px; width: auto; top: auto; bottom: 36px; }
  .ww-text h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ww-panel, .ww-panel img, .ww-panel::after, .ww-text h2::before { transition: none; }
}

/*--------------------------------------------------------------
# Our model: hero with a horizontal slideshow of the steps
--------------------------------------------------------------*/
.model-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(110px + env(safe-area-inset-top, 0px)) 0 48px;
  background: var(--navy);
  color: #e7e2d9;
  overflow: hidden;
  display: flex;
}

.model-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 22, 40, 0.92) 0%, rgba(8, 22, 40, 0.82) 50%, rgba(8, 22, 40, 0.7) 100%),
    linear-gradient(to bottom, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0) 25%);
}

.model-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* the slides: a horizontal track, one step per view */
.mslides {
  flex: 1 0 auto;  /* never shorter than its longest step; the hero grows instead of clipping */
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 40px 0 32px;
}

.mslides::-webkit-scrollbar { display: none; }

.mslide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(180px, 3fr) 7fr;
  align-items: center;
  column-gap: 48px;
  padding: 0 2px;
}

.mslide-num {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: clamp(96px, 11vw, 168px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-color);
  opacity: 0.9;
}

.mslide-body { max-width: 660px; }

.mslide h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 22px;
}

.mslide p {
  font-size: 18px;
  line-height: 1.75;
  color: #e7e2d9;
  margin: 0;
}

/* the step coming into view rises in */
.mslide .mslide-num,
.mslide .mslide-body {
  opacity: 0.25;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mslide.is-current .mslide-num { opacity: 0.9; transform: none; }
.mslide.is-current .mslide-body { opacity: 1; transform: none; transition-delay: 0.08s; }

/* rail: the flow chart, and the way between slides */
.mrail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.mrail-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  margin-top: -2px;
  border-radius: 50%;
  border: 1px solid rgba(197, 165, 114, 0.6);
  background: rgba(8, 22, 40, 0.4);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.mrail-arrow:hover:not(:disabled) { background: var(--accent-color); color: var(--on-accent); }
.mrail-arrow:disabled { opacity: 0.3; cursor: default; }

.mrail-steps {
  --progress: 0;
  position: relative;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* connecting line, filled in gold up to the current step */
.mrail-steps::before,
.mrail-steps::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(100% / 12);
  height: 1px;
}

.mrail-steps::before {
  right: calc(100% / 12);
  background: rgba(231, 226, 217, 0.25);
}

.mrail-steps::after {
  width: calc((100% - 100% / 6) * var(--progress));
  height: 2px;
  top: 19.5px;
  background: var(--accent-color);
  transition: width 0.6s ease;
}

.mrail-step {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  background: none;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  cursor: pointer;
}

.mrail-step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(197, 165, 114, 0.55);
  background: #0b2038;
  color: rgba(231, 226, 217, 0.7);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.mrail-step .t {
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: rgba(231, 226, 217, 0.55);
  transition: color 0.4s;
  text-wrap: balance;
}

.mrail-step.is-done .num { border-color: var(--accent-color); color: var(--accent-color); }
.mrail-step.is-current .num { background: var(--accent-color); border-color: var(--accent-color); color: var(--on-accent); }
.mrail-step.is-current .t { color: #ffffff; }
.mrail-step:hover .t { color: var(--accent-color); }
.mrail-step:hover .num { border-color: var(--accent-color); }

@media (max-width: 991px) {
  .mrail-step .t { display: none; }  /* numerals only; the slide carries the title */
  .mrail { align-items: center; }
  .mrail-arrow { margin-top: 0; }
  .mslide { grid-template-columns: minmax(0, 1fr); row-gap: 18px; align-content: center; }
  .mslide-num { font-size: 88px; }
  .mslide h2 { font-size: 40px; }
}

@media (max-width: 767px) {
  .model-hero { padding-bottom: 32px; }
  .mslides { margin: 24px 0 24px; }
  .mslide-num { font-size: 64px; }
  .mslide h2 { font-size: 30px; margin-bottom: 16px; }
  .mslide p { font-size: 16px; line-height: 1.65; }
  .mrail { gap: 10px; align-items: center; }
  .mrail-arrow { width: 38px; height: 38px; margin-top: 0; }
  .mrail-step .t { display: none; }
  .mrail-step { padding: 0; }
  .mrail-step .num { width: 32px; height: 32px; font-size: 11px; }
  .mrail-steps::before, .mrail-steps::after { top: 16px; }
  .mrail-steps::after { top: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .mslides { scroll-behavior: auto; }
  .mslide .mslide-num, .mslide .mslide-body, .mrail-steps::after { transition: none; }
}

/*--------------------------------------------------------------
# Clients Section (Partners)
--------------------------------------------------------------*/
/* logo wall: equal cells, each logo centred and sized by its shape so they carry similar weight */
.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.partner-grid li {
  flex: 0 0 33.333%;
  height: 190px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-grid img {
  display: block;
  height: auto;
  max-width: 100%;
}

.partner-grid .logo-wide { width: 270px; }
.partner-grid .logo-word { width: 200px; }
.partner-grid .logo-round { width: 100px; }

@media (min-width: 992px) {
  /* exactly four partners: one row of four instead of three and one */
  .partner-grid:has(> li:nth-child(4):last-child) > li { flex-basis: 25%; }
}

@media (max-width: 991px) {
  .partner-grid li { flex-basis: 50%; }
}

@media (max-width: 575px) {
  .partner-grid li { height: 140px; padding: 16px; }
  .partner-grid .logo-wide { width: 160px; }
  .partner-grid .logo-word { width: 124px; }
  .partner-grid .logo-round { width: 72px; }
}

/*--------------------------------------------------------------
# About us (statement + leadership)
--------------------------------------------------------------*/
.about-us { padding: 88px 0 96px; }

/* small label: no accent rule (the section titles keep theirs) */
.eyebrow {
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--heading-color), transparent 40%);
  margin: 0 0 22px;
}

.about-us .statement {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.12;
  color: var(--heading-color);
  margin: 0;
  max-width: 15em;
  text-wrap: balance;
}

.about-us .summary {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.6;
  color: color-mix(in srgb, var(--heading-color), var(--default-color) 40%);
  margin: 0;
}

@media (min-width: 992px) {
  .about-us .summary { padding-top: 6px; }  /* first line level with the statement's */
}

.about-us .leadership-label { margin-top: 96px; margin-bottom: 30px; }

/* four equal columns separated by hairlines */
.leaders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 48px;
}

.leader {
  position: relative;
  margin: 0;
}

.leader:not(:nth-child(4n+1))::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 82%);
}

.leader-photo {
  position: relative;
  display: block;
  overflow: hidden;
}

a.leader-photo img { transition: transform 0.6s ease; }
a.leader-photo:hover img,
a.leader-photo:focus-visible img { transform: scale(1.04); }

/* LinkedIn mark on linked portraits */
.li-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(11, 32, 56, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background-color 0.3s, color 0.3s;
}

a.leader-photo:hover .li-badge,
a.leader-photo:focus-visible .li-badge { background: var(--accent-color); color: var(--on-accent); }

.leader img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.leader figcaption { padding-top: 20px; }

.leader h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 6px;
}

.leader p {
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin: 0;
}

@media (max-width: 991px) {
  .about-us { padding: 64px 0 72px; }
  .about-us .statement { font-size: 36px; }
  .about-us .summary { font-size: 19px; }
  .about-us .leadership-label { margin-top: 64px; }
  .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .leader:not(:nth-child(4n+1))::before { display: none; }
  .leader:nth-child(2n)::before { display: block; left: -16px; }
}

@media (max-width: 575px) {
  .about-us .statement { font-size: 30px; }
  .leader h3 { font-size: 20px; }
  .leader p { font-size: 14px; }
}

/*--------------------------------------------------------------
# Contact us: hero with the contact form
--------------------------------------------------------------*/
.contact-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(110px + env(safe-area-inset-top, 0px)) 0 64px;
  background: var(--navy);
  color: #e7e2d9;
  overflow: hidden;
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 22, 40, 0.9) 0%, rgba(8, 22, 40, 0.8) 50%, rgba(8, 22, 40, 0.74) 100%),
    linear-gradient(to bottom, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0) 25%);
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 64px;
  row-gap: 40px;
  min-height: calc(100svh - 174px);
}

.contact-intro { align-self: start; }
.contact-card { align-self: center; justify-self: end; width: 100%; max-width: 560px; }

.contact-hero .email-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.contact-hero .email-line .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(197, 165, 114, 0.6);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-hero .email-line a {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
}

.contact-hero .email-line a:hover { color: var(--accent-color); }

/* the form card */
.contact-card {
  background: rgba(11, 32, 56, 0.8);
  border: 1px solid rgba(197, 165, 114, 0.35);
  border-radius: 6px;
  padding: 36px 36px 30px;
}

@supports (backdrop-filter: blur(6px)) {
  .contact-card { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

.contact-card .field { margin-bottom: 20px; }

.contact-card .field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
}

.contact-card label .opt {
  font-family: var(--default-font);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(231, 226, 217, 0.6);
}

/* confirmation, shown in place of the fields after a successful send */
.contact-card.is-sent > :not(.cf-done) { display: none; }

.cf-done { padding: 24px 0 8px; }
.cf-done:focus { outline: none; }

.cf-done .cf-done-title {
  font-family: var(--heading-font);
  font-size: 34px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
}

.cf-done .cf-done-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent-color);
}

.cf-done p { font-size: 16px; line-height: 1.65; color: #e7e2d9; margin: 0 0 24px; }

.cf-again {
  padding: 11px 22px;
  border: 1px solid rgba(197, 165, 114, 0.7);
  border-radius: 2px;
  background: transparent;
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}

.cf-again:hover { background: var(--accent-color); color: var(--on-accent); }

.contact-card label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--title-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(231, 226, 217, 0.25);
  border-radius: 3px;
  transition: border-color 0.25s, background-color 0.25s;
}

.contact-card textarea { resize: vertical; min-height: 128px; line-height: 1.55; }

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

.contact-card .is-invalid { border-color: #e8907a; }

.contact-card .err {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #f0a894;
}

.contact-card .err[hidden] { display: none; }

.select-wrap { position: relative; }

.contact-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.contact-card select:invalid { color: rgba(231, 226, 217, 0.6); }
.contact-card option { color: #0b2038; background: #ffffff; }

/* fine chevron for the dropdown */
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  transform: rotate(45deg);
  pointer-events: none;
}

.contact-card .cf-hp { display: none; }  /* spam trap: never shown to people */

.cf-send {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 40px;
  border: 1px solid var(--accent-color);
  border-radius: 2px;
  background: var(--accent-color);
  color: var(--on-accent);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}

.cf-send:hover,
.cf-send:focus-visible { background: transparent; color: var(--accent-color); }
.cf-send:disabled { opacity: 0.6; cursor: default; }

.cf-status {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e7e2d9;
}

.cf-status:empty { display: none; }
.cf-status a { color: var(--accent-color); }

@media (max-width: 991px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .contact-card { justify-self: stretch; max-width: none; }
}

@media (max-width: 575px) {
  .contact-card .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-hero { padding-bottom: 40px; }
  .contact-card { padding: 26px 20px 22px; }
  .contact-hero .email-line a { font-size: 22px; }
}


/*--------------------------------------------------------------
# Language switch, land acknowledgement, privacy policy
--------------------------------------------------------------*/
.lang-switch {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--nav-color);
}

.lang-switch:hover, .lang-switch:focus-visible { color: var(--accent-color); }

/* in the top bar, just left of the menu button */
.header .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  margin-right: 14px;
  padding: 0 10px;
  border: 1px solid rgba(239, 234, 226, 0.35);
  border-radius: 3px;
}

.header .lang-switch:hover, .header .lang-switch:focus-visible { border-color: var(--accent-color); }

/* on the landing hero (no top bar there): top-right corner */
.hero .hero-lang {
  position: absolute;
  z-index: 3;
  top: calc(22px + env(safe-area-inset-top, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(239, 234, 226, 0.4);
  border-radius: 3px;
  color: rgba(243, 239, 232, 0.9);
}

.hero .hero-lang:hover, .hero .hero-lang:focus-visible { color: var(--accent-color); border-color: var(--accent-color); }

.footer .land-ack {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.footer .footer-meta {
  margin: 8px 0 0;
  font-size: 13px;
}

.footer .footer-meta a { color: color-mix(in srgb, var(--default-color), transparent 20%); }
.footer .footer-meta a:hover { color: var(--accent-color); }
.footer .footer-meta span { margin: 0 10px; color: color-mix(in srgb, var(--default-color), transparent 60%); }
.footer .footer-meta .lang-switch { font-family: inherit; font-size: inherit; letter-spacing: 0; }

.contact-card .cf-privacy { margin: 14px 0 0; font-size: 13px; }
.contact-card .cf-privacy a { color: rgba(231, 226, 217, 0.7); text-decoration: underline; text-underline-offset: 3px; }
.contact-card .cf-privacy a:hover { color: var(--accent-color); }

.policy .policy-body { max-width: 760px; }
.policy .policy-updated { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 30%); margin-bottom: 24px; }
.policy .policy-intro { font-size: 19px; line-height: 1.7; color: var(--heading-color); }
.policy h2 { font-size: 28px; font-weight: 600; margin: 40px 0 12px; }
.policy p { font-size: 16px; line-height: 1.75; }
