/* -------------------------------------------------------
   Fonts
-------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Playfair Display loaded from Google Fonts in HTML head */

/* -------------------------------------------------------
   Page Transitions
-------------------------------------------------------- */

/* Smooth page transition on load */
body {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Page transition overlay for navigation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1240;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

body.page-transitioning::before {
  opacity: 1;
  pointer-events: all;
}

/* -------------------------------------------------------
   Root tokens
-------------------------------------------------------- */
:root {
  --bg: #0a0e27;
  --surface: #0d1129;
  --card: #10152e;
  --text: #ffffff;
  --muted: #ffffff;
  --line: #1a1f3a;
  --brand: #5b7cff;
  --brand-700: #4a66db;
  --brand-800: #3952b8;
  --accent: #7b5cff;
  --color1: #1a1240;
  --color3: #0d1129;
  --color4: #6f86ff;
  --radius: 0px;
  --container: 1400px;
}

/* -------------------------------------------------------
   Global / reset
-------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

#page-top {
  scroll-margin-top: 62px;
}

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

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  padding-left: 0;
  padding-right: 0;
}

/* -------------------------------------------------------
   Typography
-------------------------------------------------------- */
.h1 {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #34378D;
}

.h2 {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #34378D;
}

/* Ensure semantic headings use the heading font */
h1, h2, h3, h4, h5, h6 {
  font-family: "EB Garamond", "Cormorant Garamond", serif !important;
}

/* Default heading color on light/neutral backgrounds */
h1, h2, h3 {
  color: #34378D;
}

/* Home training dark band: headings must be white */
#training h1,
#training h2,
#training h3 {
  color: #ffffff !important;
}

.h3,
h3 {
  font-size: 22px !important;
}

.h3 {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #34378D;
}

/* Training carousel card titles */
.training-carousel h4 {
  font-size: 22px !important;
}

.p-xl {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: 24px;
  color: #4a4a4a;
  font-style: italic;
}

.p-lg {
  font-size: 16px;
  color: #4a4a4a;
}

.p-sm {
  font-size: 14px;
  color: #4a4a4a;
}

/* -------------------------------------------------------
   Page Section Components (Global)
-------------------------------------------------------- */

/* Base section with watermark support */
.page-section {
  padding: 0;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  --watermark-scale: 0.9;
  background: #ffffff;
}

/* Default colored background */
.page-section {
  background: #f8f9fa;  /* Colored by default */
}

/* White background for reversed sections */
.page-section.reverse {
  background: #ffffff;
}

/* 2-column grid layout */
.page-section .container {
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 50px;
  align-items: center;
  padding: 0;
  margin: auto;
}

/* Flipped layout - image on right, content on left */
.page-section.reverse .container {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  direction: rtl;
}

.page-section.reverse .container > * {
  direction: ltr;
}

/* About page specific - text block sticks to left edge */
#about-us.page-section.reverse {
  min-height: 60vh;
}

#about-us.page-section.reverse .page-section-content {
  padding-left: 0;
  max-width: 100%;
  padding-right: 60px;
}

#about-us.page-section.reverse .section-content-copy {
  padding-left: 0;
  margin-left: 0;
}

/* About page - reduce marquee top padding */
#about-us + .marquee-section .marquee-track {
  padding-top: 20px;
}

/* Member profile page - hero with padding */
body:has(#member-profile) .page-hero {
  display: flex;
  align-items: center;
  padding: 124px 40px 100px;
  position: relative;
  overflow: hidden;
}

body:has(#member-profile) .page-hero .page-section-watermark {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  width: 100%;
  height: 100%;
}

body:has(#member-profile) .page-hero .container {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 60px;
  align-items: center;
}

body:has(#member-profile) .page-hero .team-card {
  width: 100%;
  flex-shrink: 0;
}

/* Member profile hero - white text color overrides only */
body:has(#member-profile) .page-hero .h1,
body:has(#member-profile) .page-hero .h2,
body:has(#member-profile) .page-hero .p-xl,
body:has(#member-profile) .page-hero .p-sm {
  color: #ffffff;
}

/* Member profile hero - badge, kicker, and line color */
body:has(#member-profile) .page-hero .badge {
  color: #6f86ff;
}

body:has(#member-profile) .page-hero .section-kicker a {
  color: #6f86ff;
}

/* Member profile – role text color (below name) */
body:has(#member-profile) .page-hero .section-kicker {
  color: #5b7cff;
}

/* Team cards – role kicker color */
.team-card .section-kicker {
  color: #5b7cff;
}

body:has(#member-profile) .page-hero .p-sm::before {
  background: #6f86ff;
}

/* Member profile - consistent badge margins in all sections */
body:has(#member-profile) .section-header .badge {
  margin-bottom: 24px;
  display: inline-block;
}

/* Member profile - two column layout for story content */
body:has(#member-profile) .section-story .story-content {
  display: block;
  columns: 2;
  column-gap: 60px;
}

body:has(#member-profile) .section-story .story-content .p-lg {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* Member profile - Expertise section styling */
body:has(#member-profile) .section-expertise {
  background: #f8f9fa;
  padding: 80px 40px;
}

/* Member profile - Approach section top padding */
body:has(#member-profile) #approach {
  padding-top: 80px;
}

/* Member profile - team section styling */
body:has(#member-profile) .section-team {
  padding-top: 80px;
  background: #f8f9fa;
}

/* Member profile - hide duplicate team header elements from partial */
body:has(#member-profile) .section-team .section-team {
  padding: 0;
}

body:has(#member-profile) .section-team .section-team .section-header .badge,
body:has(#member-profile) .section-team .section-team .section-header .h2 {
  display: none;
}

/* Member profile - hide Maryam's card from team grid */
body:has(#member-profile) .section-team .section-team .team-card:nth-child(2) {
  display: none;
}


/* Hide intake carousel on specific pages */
body.intake-no-images .intake-visual {
  display: none;
}

body.intake-no-images .intake-inner {
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.2fr);
}

body.intake-no-images .intake-main {
  margin-left: 0;
  max-width: none;
}

/* Legal pages - dark header background */
body#legal-page .header-v2 {
  background: rgba(26, 18, 64, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Legal pages - top padding */
body#legal-page {
  padding-top: 120px;
}

/* Member profile - custom intake text */
body:has(#member-profile) .intake-header .badge {
  visibility: hidden;
  position: relative;
}

body:has(#member-profile) .intake-header .badge::after {
  content: 'Contact Me';
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  color: inherit;
  white-space: nowrap;
}

body:has(#member-profile) .intake-header .p-lg {
  visibility: hidden;
  position: relative;
}

body:has(#member-profile) .intake-header .p-lg::after {
  content: "Share a few details with me and I'll connect with you as soon as possible.";
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #ffffff;
}

body:has(#member-profile) .section-expertise .section-header {
  margin-bottom: 0;
}

body:has(#member-profile) .expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

body:has(#member-profile) .expertise-grid .h3 {
  color: #34378D;
  margin-bottom: 16px;
}

/* Member profile hero - white background with light blue shadow */
body:has(#member-profile) .page-hero .ph-inner {
  background: transparent !important;
}

body:has(#member-profile) .page-hero .photo::before {
  background: transparent !important;
}

/* -------------------------------------------------------
   Article Page Styling
-------------------------------------------------------- */
body:has(.article-content) .service-intro {
  padding-bottom: 0;
}

body:has(.article-content) .breadcrumb {
  margin-bottom: 48px;
}

.article-content {
  padding: 80px 0;
}

.article-content .container {
  max-width: 800px;
}

.article-header {
  margin-bottom: 48px;
  text-align: center;
}

.article-header .badge {
  margin-bottom: 24px;
}

.article-title {
  font-size: 48px;
  line-height: 1.2;
  color: #34378D;
  margin: 0 0 24px 0;
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-weight: 700;
}

.article-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  color: #666666;
  font-size: 14px;
}

.article-meta span {
  display: flex;
  align-items: center;
}

.article-featured-image {
  margin-bottom: 48px;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: #333333;
}

.article-lead {
  font-size: 22px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 40px;
  font-style: italic;
}

.article-body h2 {
  font-size: 32px;
  line-height: 1.3;
  color: #34378D;
  margin: 48px 0 24px 0;
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-weight: 700;
}

.article-body h3 {
  font-size: 24px;
  line-height: 1.4;
  color: #34378D;
  margin: 32px 0 16px 0;
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
  margin: 24px 0;
  padding-left: 32px;
}

.article-body li {
  margin-bottom: 12px;
}

.article-conclusion {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 8px;
  margin-top: 48px;
}

.article-conclusion h2 {
  margin-top: 0;
}

.article-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.article-author-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-bio-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-content h3 {
  font-size: 16px;
  color: #34378D;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Normalize inline heading colors used across legacy light-background pages */
/* Catch hex in any case, with or without spaces */
h1[style*="#1a1240" i],
h2[style*="#1a1240" i],
h3[style*="#1a1240" i],
.h1[style*="#1a1240" i],
.h2[style*="#1a1240" i],
.h3[style*="#1a1240" i],
/* Catch rgb() declarations (with or without spaces) */
h1[style*="rgb(26, 18, 64)"],
h2[style*="rgb(26, 18, 64)"],
h3[style*="rgb(26, 18, 64)"],
h1[style*="rgb(26,18,64)"],
h2[style*="rgb(26,18,64)"],
h3[style*="rgb(26,18,64)"],
.h1[style*="rgb(26, 18, 64)"],
.h2[style*="rgb(26, 18, 64)"],
.h3[style*="rgb(26, 18, 64)"] {
  color: #34378D !important;
}

/* Also normalize when a parent container sets color: #1A1240 inline */
[style*="#1a1240" i] h1,
[style*="#1a1240" i] h2,
[style*="#1a1240" i] h3,
[style*="#1a1240" i] .h1,
[style*="#1a1240" i] .h2,
[style*="#1a1240" i] .h3,
[style*="rgb(26, 18, 64)"] h1,
[style*="rgb(26, 18, 64)"] h2,
[style*="rgb(26, 18, 64)"] h3,
[style*="rgb(26, 18, 64)"] .h1,
[style*="rgb(26, 18, 64)"] .h2,
[style*="rgb(26, 18, 64)"] .h3 {
  color: #34378D !important;
}

/* Headings on inline light/white backgrounds -> deep blue */
:where(section, div, article, main)[style*="#fff" i] h1,
:where(section, div, article, main)[style*="#fff" i] h2,
:where(section, div, article, main)[style*="#fff" i] h3,
:where(section, div, article, main)[style*="white" i] h1,
:where(section, div, article, main)[style*="white" i] h2,
:where(section, div, article, main)[style*="white" i] h3,
:where(section, div, article, main)[style*="#f8f9fa" i] h1,
:where(section, div, article, main)[style*="#f8f9fa" i] h2,
:where(section, div, article, main)[style*="#f8f9fa" i] h3,
:where(section, div, article, main)[style*="rgb(255, 255, 255)"] h1,
:where(section, div, article, main)[style*="rgb(255, 255, 255)"] h2,
:where(section, div, article, main)[style*="rgb(255, 255, 255)"] h3,
:where(section, div, article, main)[style*="background-color: #fff" i] h1,
:where(section, div, article, main)[style*="background-color: #fff" i] h2,
:where(section, div, article, main)[style*="background-color: #fff" i] h3 {
  color: #34378D !important;
}

.author-bio-content p {
  margin: 0;
  color: #666666;
  line-height: 1.6;
}

/* Image with offset shadow */
.page-section-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: visible;
  flex: 1 1 auto;
}

.page-section-image::before {
  content: "";
  position: absolute;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  bottom: 0;
  left: 0;
  background: #1a1240;
  z-index: 0;
}

.page-section-image-inner {
  position: absolute;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  top: 0;
  right: 0;
  overflow: hidden;
  background: #ffffff;
  z-index: 1;
}

/* Reversed: shadow bottom-right, image top-left */
.page-section.reverse .page-section-image::before {
  left: auto;
  right: 0;
}

.page-section.reverse .page-section-image-inner {
  right: auto;
  left: 0;
}

.page-section-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area */
.page-section-content {
  max-width: 640px;
}

.section-content-copy {
  align-items: flex-start;
  text-align: left !important;
  margin: 0;
}

.section-content-copy .badge,
.section-content-copy .h2,
.section-content-copy .p-xl,
.section-content-copy .p-sm {
  margin-left: 0;
  margin-right: 0;
  text-align: left !important;
}

.section-content-copy .h2 {
  margin-top: 32px;
}

.section-content-copy .badge {
  padding-top: 20px;
}

.section-content-copy .p-xl {
  margin-top: 0px;
  margin-bottom: 0;
}

.section-content-copy .section-kicker {
  margin-top: 32px;
  margin-bottom: 32px;
}

.section-content-copy .p-sm {
  max-width: 100%;
  text-align: left !important;
}

.section-content-copy .p-sm {
  position: relative;
  padding-top: 24px;
}

.section-content-copy .p-sm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #5b7cff;
}

/* Button actions container */
/* Button actions container */
.page-section-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
}

/* Section Button 1 - Brand Blue Outlined Button */
.section-button1 {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  
  width: auto;
  padding: 12px 24px;
  border-radius: 0;
  border: 1px solid #5b7cff;
  background: transparent;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  color: #5b7cff;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}

.section-button1:hover {
  background: rgba(91, 124, 255, 0.1);
  color: #5b7cff;
  border-color: #5b7cff;
}

/* Hero Button 2 - Ghost Button for Dark Backgrounds */
.hero-button2 {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  
  min-width: 180px;
  padding: 12px 24px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}

.hero-button2:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Section Button 2 - Grey Text Button with Leading Icon */
.section-button2 {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  height: auto;
  width: auto;
  padding: 0px 0px;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  color: #999999;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease;
  margin-top: 24px;
}

.section-button2:hover {
  color: #666666;
}

.section-button2 svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Section Kicker - breadcrumb navigation */
.section-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  width: auto;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #4a66db;
  align-self: flex-start;
}

.section-kicker a {
  color: #4a66db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-kicker a:hover {
  color: #34378D;
}

/* Watermark support */
.page-section-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  pointer-events: none;
  z-index: 0;
}

.page-section-watermark-inner {
  position: relative;
  width: 80%;
  height: 80%;
  aspect-ratio: 1;
}

.page-section-watermark-shape-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 120%;
  aspect-ratio: 1;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
  transform: translate(-60%, -50%);
}

.page-section-watermark-shape-2 {
  position: absolute;
  top: 50%;
  left: 55%;
  width: auto;
  height: 73%;
  aspect-ratio: 1;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
  transform: translate(-40%, -60%);
}

.page-section.reverse .page-section-watermark-shape-1 {
  position: absolute;
  top: 50%;
  left: 55%;
  width: auto;
  height: 120%;
  aspect-ratio: 1;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
  transform: translate(-40%, -50%) scaleX(-1);  /* Add scaleX(-1) */
}

.page-section.reverse .page-section-watermark-shape-2 {
  position: absolute;
  top: 50%;
  right: 55%;
  width: auto;
  height: 73%;
  aspect-ratio: 1;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
  transform: translate(-70%, -60%) rotate(-15deg) scaleX(-1);  /* Add scaleX(-1) */
}

/* Scroll animation support */
.page-section.watermark-scroll-down,
.page-section.watermark-scroll-up {
  --watermark-scale: 0.9;
}

/* Cycle shadow colors for visual variety */
.page-section:nth-of-type(3n+1) .page-section-image::before {
  background: #1a1240;
}

.page-section:nth-of-type(3n+2) .page-section-image::before {
  background: #34378D;
}

.page-section:nth-of-type(3n+3) .page-section-image::before {
  background: #4a66db;
}






/* -------------------------------------------------------
   Links / buttons / badges / spacers
-------------------------------------------------------- */
.link {
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
}

.link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.link:hover:after {
  transform: scaleX(1);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
}

.btn-ghost:hover {
  background: rgba(0,0,0,.05);
}

.badge {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #4a66db;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.spacer-1 { height: 16px; }
.spacer-2 { height: 32px; }
.spacer-3 { height: 48px; }
.spacer-4 { height: 64px; }

/* -------------------------------------------------------
   Header / nav / mega menu
-------------------------------------------------------- */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: transparent;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: #1a1240 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-header.mega-open {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* When mega is open, header is transparent so the single fixed backdrop defines look */
.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  background: transparent;
  position: relative;
  z-index: 10000;
  transition: background 0.3s ease;
}

.site-header.scrolled .navbar {
  background: #1a1240;
}

.nav-service {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 9999;
  margin-left: 0;
  height: 72px;
  background: transparent;
  padding: 0 16px;
}

.nav {
  margin-left: 0;
}

.nav-service .mega-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  height: 72px;
}

.nav-service .mega-toggle:hover {
  background: var(--brand-700);
}

.nav-service .chevron svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.site-header.mega-open .nav-service .chevron svg {
  transform: rotate(180deg);
}

/* Reset hero content padding so it uses only the base container padding */
.hero-content.hero-content-a {
  padding-left: 0;
  padding-right: 0;
}

.navbar.container,
.site-header .container {
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}

/* Mega menu backdrop element */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,18,64,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9998;
}

.mega-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Header search (UI only) */
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7,10,30,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 6px 10px;
  height: 36px;
  color: #fff;
}

.nav-search form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  outline: none;
  width: 200px;
  -webkit-appearance: none;
  appearance: none;
}

/* hide browser built-in clear/decoration */
.nav-search input::-webkit-search-cancel-button,
.nav-search input::-webkit-search-decoration,
.nav-search input::-webkit-search-results-button,
.nav-search input::-webkit-search-results-decoration {
  display: none;
}

.nav-search input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.nav-search input::placeholder {
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.nav-search__submit {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-search__submit[disabled] {
  opacity: 0.45;
  cursor: default;
}

.nav-search__submit:not([disabled]):hover {
  color: #ffffff;
}

.nav-search__clear {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-search__clear:hover {
  color: #ffffff;
}

.nav-search__clear[hidden] {
  display: none !important;
}

/* Also hide/show the clear button purely via CSS based on input value */
.nav-search input:placeholder-shown ~ .nav-search__clear {
  display: none !important;
}

.nav-search input:not(:placeholder-shown) ~ .nav-search__clear {
  display: inline-flex;
}

/* -------------------------------------------------------
   Hero / metrics
-------------------------------------------------------- */
.hero-band {
  background: #1a1240;
  height: 14vh;
}

.metrics-band {
  --metrics-parallax-min: -80;
  --metrics-parallax-max: 100;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(26,18,64,0.6), rgba(26,18,64,0.6));
  border-bottom: 1px solid #ffffff14;
  min-height: 80vh;
  padding: 0;
  display: flex;
  align-items: center;
}

.metrics-bg-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -15vh;
  bottom: -15vh;
  background-color: transparent;
  background-position: 25% center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

/* Simple Dropdown Menu */
.nav-item--dropdown {
  position: relative;
}

.dropdown-toggle {
  background: var(--brand);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-toggle:hover {
  color: #ffffff;
}

.dropdown-toggle .chevron {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.dropdown-toggle .chevron svg {
  width: 14px;
  height: 14px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1px;
  min-width: 240px;
  background: rgba(26, 18, 64, 0.95);
  backdrop-filter: saturate(160%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 8px 0;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 9990;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-item--dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mega-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mega-hook {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.mega-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.mega-close:hover {
  transform: rotate(90deg);
}

.mega-close:active,
.mega-close:focus {
  color: rgba(255, 255, 255, 0.6);
  outline: none;
}

.mega-close svg {
  width: 20px;
  height: 20px;
}

.mega-hook .badge {
  align-self: flex-start;
  color: var(--color4);
  border-color: var(--color4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
}

.mega-hook .h2 {
  margin: 0;
  color: #ffffff;
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px;
  align-items: flex-start;
}

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

.mega-heading {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color4);
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
  cursor: pointer;
}

.mega-heading:hover {
  color: var(--brand);
}

.mega-link {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 18px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.mega-link:hover {
  color: #ffffff;
}

.mega-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.mega-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;
}

.mega-social-icons {
  display: flex;
  gap: 20px;
}

.mega-social-icons a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mega-social-icons a:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.mega-social-icons i {
  font-size: 18px;
  color: #ffffff;
}

.mega-cta {
  display: flex;
  justify-content: flex-start;
}

.mega-cta .btn {
  min-width: auto;
  padding: 8px 20px;
}

.mega-cta .btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}

.mega-cta .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* Hero CTA – web (desktop + tablet) */
.hero-cta {
  display: inline-flex;
  flex-direction: row;
  gap: 16px;              /* 16px gap between buttons on web */
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
  align-self: flex-start; /* don't stretch to full width of hero-content-a */
}

/* Make both hero buttons the same width on web */
.hero-cta .btn {
  flex: 0 0 auto;         /* both buttons share the row equally */
  min-width: 180px;
  justify-content: center;
}

.metrics-band .container {
  width: 100%;
  padding: 160px 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  justify-content: stretch;
  position: relative;
  z-index: 1;
}

.metrics-glass {
  width: 100%;
  padding: 100px 0;
  border-radius: 0;
  background: rgba(17,24,39,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.metrics-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 40px;
}

.metrics-header .h2 {
  color: #ffffff;
  margin: 0 0 16px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.metrics-header .p-xl {
  margin: 0;
  color: rgba(255,255,255,0.9);
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.metrics-header .p-sm {
  margin: 0;
  color: rgba(255,255,255,0.75);
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-item {
  padding: 0;
}

.metric-value {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.metric-label {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------
   Brand / nav base / mobile shell
-------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: 350;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo svg,
.logo img {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.brand-name {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 550;
}

.nav a {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 16px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 0;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav .nav-link {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 16px;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav a.active,
.nav a.active-link,
.nav .nav-link.active-link,
.nav a:hover,
.nav .nav-link:hover {
  color: #ffffff;
  background: transparent;
}

/* Active nav link based on page body class */
body.page-home .nav a[href="index.html"],
body.page-about .nav a[href="about.html"],
body.page-team .nav a[href="Team.html"],
body.page-learning .nav a[href="learning-centre.html"],
body.page-contact .nav a[href="contact.html"] {
  color: #ffffff !important;
  background: transparent;
}

/* Override team section text on Learning Centre page */
body.page-learning #team .badge {
  visibility: hidden;
  position: relative;
}

body.page-learning #team .badge::after {
  content: "Experts";
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
}

body.page-learning #team .section-header h2 {
  visibility: hidden;
  position: relative;
}

body.page-learning #team .section-header h2::after {
  content: "Meet our team of industry experts";
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
}

/* Consistent spacing: marquee sections and following sections */
body.page-about .marquee-section,
body.page-team .marquee-section,
body.page-learning .marquee-section {
  padding-bottom: 0 !important;
}

body.page-about .marquee-section + section,
body.page-about .marquee-section + div {
  padding-top: 60px !important;
}

body.page-team .marquee-section + div .section-team {
  padding-top: 60px !important;
}

body.page-learning .marquee-section + section,
body.page-learning .marquee-section + div {
  padding-top: 60px !important;
}

/* Quote section on Learning Centre page */
body.page-learning .quote-section {
  padding: 0 0 60px 0;
}

body.page-learning .quote-section .story-quote {
  max-width: 100%;
  text-align: left;
  margin: 0;
}

/* Watermark shapes in About Us hero */
body.page-about .page-hero .page-section-watermark-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

body.page-about .page-hero .page-section-watermark-shape-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
  transform: rotate(15deg);
  transform-origin: center center;
}

body.page-about .page-hero .page-section-watermark-shape-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 87.6%;
  height: 87.6%;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(15deg);
}

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


.nav-item .chevron svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.site-header.mega-open .nav-item .chevron svg {
  transform: rotate(180deg);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 22px;
}

/* Mobile-only header */
.mobile-header {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0b1220f2;
  backdrop-filter: blur(10px);
  display: none;
  z-index: 60;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .panel {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}

/* Mobile search inside menu / drawer */
.nav-search--mobile {
  margin-bottom: 24px;
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.nav-search--mobile form {
  width: 100%;
}

.nav-search--mobile input {
  width: 100%;
  height: 100%;
}

.mobile-menu .mobile-search,
.mobile-drawer__panel .mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0;
  padding: 0 10px;
  color: #fff;
  height: 42px;
}

.mobile-menu .mobile-search input,
.mobile-drawer__panel .mobile-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  height: 100%;
  line-height: 42px;
}

.mobile-menu .m-search-submit,
.mobile-menu .m-search-clear,
.mobile-drawer__panel .m-search-submit,
.mobile-drawer__panel .m-search-clear {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Views and lists */
.mobile-menu .mobile-views,
.mobile-drawer__panel .mobile-views {
  flex: 1;
  display: block;
}

.mobile-menu .mobile-view,
.mobile-drawer__panel .mobile-view {
  display: none;
}

.mobile-menu .mobile-view.active,
.mobile-drawer__panel .mobile-view.active {
  display: block;
}

.mobile-menu .mobile-backbar,
.mobile-drawer__panel .mobile-backbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.mobile-menu .mobile-back,
.mobile-drawer__panel .mobile-back {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 0;
  padding: 6px 8px;
  cursor: pointer;
}

.mobile-menu .mobile-back:hover,
.mobile-drawer__panel .mobile-back:hover {
  background: rgba(255,255,255,0.06);
}

.mobile-menu .mobile-backbar .title,
.mobile-drawer__panel .mobile-backbar .title {
  color: #fff;
  font-weight: 600;
}

.mobile-menu .mobile-list,
.mobile-drawer__panel .mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu .mobile-link,
.mobile-drawer__panel .mobile-link {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 14px 4px;
  font: inherit;
  cursor: pointer;
}

.mobile-menu .mobile-link:hover,
.mobile-drawer__panel .mobile-link:hover {
  background: rgba(255,255,255,0.06);
}

.mobile-menu .mobile-link--services,
.mobile-drawer__panel .mobile-link--services {
  font-weight: 700;
}

/* -------------------------------------------------------
   Hero content and animations
-------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1240;
  padding: 0 40px;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  animation: videoFadeIn 1.2s ease-out 0.2s both;
}

.hero .hero-blur {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.33,0.01,0.16,1);
  pointer-events: none;
  z-index: 2;
}

.site-header.mega-open ~ .hero .hero-blur {
  opacity: 0;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(26,18,64,1) 0,
      rgba(26,18,64,1) 40px,
      rgba(26,18,64,0) calc(40px + 40vh),
      rgba(26,18,64,0) 100%
    ),
    linear-gradient(180deg, rgba(26,18,64,0.28) 0%, rgba(10,14,39,0.48) 100%);
  pointer-events: none;
  z-index: 1;
  isolation: isolate;
}

.hero .overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,6,60,0.9) 0%, rgba(6,1,16,0.95) 100%);
  mix-blend-mode: multiply;
  opacity: 0;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes videoFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: left;
  padding: 0;
  width: 100%;
  animation: heroFadeUp 1s ease-out 0.3s both;
}

.hero .container.hero-content {
  padding-left: 0;
  padding-right: 0;
}

.hero-content .h1 {
  color: #ffffff;
  margin: 0;
  max-width: 80%;
}

.hero-content .p-xl {
  color: #ffffff;
  margin: 0;
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
}

.hero-content .badge {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-content .btn-ghost {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-content .btn-ghost:hover {
  background: rgba(255,255,255,.1);
}

/* Hero nested stacks: desktop/tablet defaults (mobile overrides below) */
.hero-content-a {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content-a > * {
  margin: 0;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-stack > * {
  margin: 0;
}

.hero-stack .h1 {
  margin: 0;
  padding-bottom: 4px;
}

/* Global hero dividers */
.hero-divider {
  width: 448px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  align-self: flex-start;
  margin-top: 24px;   /* space below paragraph */
  margin-bottom: 12px;/* space above buttons */
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  padding: 0 0 0 8px;
  border-radius: 0;
  background: transparent;
  color: #5b7cff;
  border: 0px solid #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  align-self: flex-start;
}

body.page-home .hero-kicker {
  color: #ffffff;
}

.hero .scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  z-index: 10;
  opacity: 0.85;
}

.hero .scroll-indicator svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

.headline-rotator {
  position: relative;
  display: grid;
  align-items: flex-start;
  justify-items: start;
}

.headline-item {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.headline-item.active {
  opacity: 1;
}

/* -------------------------------------------------------
   About / services header
-------------------------------------------------------- */
#about-us.section {
  padding: 0;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about-us.section {
  --watermark-scale: 0.9;
}

#about-us.section.watermark-scroll-down {
  --watermark-scale: 0.9;
}

#about-us.section.watermark-scroll-up {
  --watermark-scale: 0.9;
}

/* Watermark wrapper - maintains fixed proportions */
.about-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  pointer-events: none;
  z-index: 0;
}

.about-watermark-inner {
  position: relative;
  width: 80%;
  height: 80%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Individual watermark shapes - positioned relative to wrapper */
/* Shape 1: centered, full size */
.watermark-shape-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
  transform: translate(-50%, -50%);
}

/* Shape 2: centered, rotated 15deg, sized to always fit within bounds */
.watermark-shape-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 73%;
  aspect-ratio: 1;
  background: url('../assets/images/what-we-do-watermark.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(15deg);
}

#about-us.section .container {
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  column-gap: 80px;
  align-items: center;
  padding: 0;
  margin: auto;
}

#about-us .page-section-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: visible;
  flex: 1 1 auto;
}

/* Shadow: smaller, anchored bottom-left inside wrapper */
#about-us .page-section-image::before {
  content: "";
  position: absolute;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  bottom: 0;
  left: 0;
  top: auto;
  right: auto;
  background: #5b7cff !important;
  z-index: 0;
}

/* Image card: same size, anchored top-right inside wrapper */
#about-us .page-section-image-inner {
  position: absolute;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  overflow: hidden;
  background: #ffffff;
  z-index: 1;
}

#about-us .page-section-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#about-us .about-copy {
  max-width: 640px;
}

#about-us .services-header {
  align-items: flex-start;
  text-align: left !important;
  margin: 0;
}

#about-us .services-header .badge,
#about-us .services-header .h2,
#about-us .services-header .p-xl,
#about-us .services-header .p-sm {
  margin-left: 0;
  margin-right: 0;
  text-align: left !important;
}



/* -------------------------------------------------------
   Grids / cards / approach
-------------------------------------------------------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  overflow: hidden;
}

.card-body {
  padding: 22px;
}

.section-approach {
  min-height: auto;
  display: flex;
  align-items: center;
  background: #1a1240;
  color: #ffffff;
  border-bottom: 0;
  padding: 180px 0 100px;
}

.section-approach .container {
  width: 100%;
}

.section-approach .section-header {
  align-items: center;
  margin-bottom: 48px;
}

.section-approach .section-header .h2 {
  color: #ffffff;
}

.section-approach .section-header .badge {
  color: #9eb2ff;
  margin-bottom: 24px;
  display: inline-block;
}

.section-approach .section-header .p-lg {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

.section-approach .grid {
  gap: 32px;
}

.section-approach .card {
  background: #4a66db;
  border: 0;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.section-approach .card .h3 {
  color: #ffffff;
}

.section-approach .card .p-xl {
  color: #1a1240;
  margin: 0;
}

.section-approach .card .p-sm {
  color: #ffffff;
}

.section-approach .card-body {
  padding: 36px;
  min-height: 340px;
}

/* Our Principles section on About page - extra bottom padding */
#our-principles.section-approach {
  padding-bottom: 140px;
}

/* -------------------------------------------------------
   Story section
------------------------------------------------------- */
.section-story {
  background: #ffffff;
  padding: 0 40px 100px;
}

.section-story .section-header {
  margin-bottom: 32px;
}

.section-story .section-header .h2 {
  color: #34378D;
  margin-bottom: 0;
}

.section-story .section-header .badge {
  margin-bottom: 24px;
  display: inline-block;
}

.section-story .story-content {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  column-gap: 60px;
}

.section-story .story-content .p-lg {
  color: #4a4a4a;
  margin: 0;
  line-height: 1.8;
}

.section-story .story-quote {
  margin-top: 48px;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding: 0;
  border: 0;
  text-align: left;
}

.section-story .story-quote .h2 {
  color: #34378D;
  margin: 0;
  font-style: italic;
}

/* -------------------------------------------------------
   Marquee
-------------------------------------------------------- */
.marquee-section {
  background: #ffffff;
  padding: 40px 0 0 0;
  overflow: hidden;
}

.marquee-section .container {
  max-width: none;
  padding: 0;
}

.marquee-track {
  white-space: nowrap;
  will-change: transform;
  display: flex;
  align-items: center;
  --marquee-gap: 80px;
  gap: var(--marquee-gap, 48px);
  padding: 40px 24px 80px;
  transform: translate3d(0, 0, 0);
  animation: marqueeTicker var(--marquee-duration, 18s) linear infinite;
}

.marquee-group {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--marquee-gap, 48px);
}

.marquee-text {
  font-size: 125px;
  font-weight: 700;
  color: #1a1240;
  display: inline-block;
  line-height: 1;
  font-family: "EB Garamond", "Cormorant Garamond", serif;
}

.marquee-section--dark {
  background: #1a1240;
  margin-top: -20px;
}

.marquee-section--dark .marquee-track {
  padding: 0 60px 120px;
}

.marquee-section--dark .marquee-text {
  color: #ffffff;
}

@keyframes marqueeSlide {
  0%   { transform: translateX(60%); }
  100% { transform: translateX(-100%); }
}

@keyframes marqueeTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-1 * var(--marquee-shift, 1200px)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    transform: none;
  }
}

/* -------------------------------------------------------
   Testimonials
-------------------------------------------------------- */
.section-testimonials {
  background: #f8f9fa;
  color: #1a1240;
  padding: 80px 40px;
}

.section-testimonials .container {
  max-width: none;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.section-testimonials .section-header {
  align-items: center;
  margin-bottom: 48px;
}

.section-testimonials .section-header .h2 {
  color: #34378D;
}

.section-testimonials .section-header .p-lg {
  color: #4a4a4a;
}

.section-testimonials .badge {
  color: #4a66db;
  margin-bottom: 24px;
  display: inline-block;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 32px;
  transition: transform 0.8s ease;
}

.testimonial {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: calc((100% - 48px) / 3);
  text-align: center;
}

.testimonial-dots {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.testimonial-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(74,102,219,0.4);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.testimonial-dots .dot.active {
  background: #4a66db;
  border-color: #4a66db;
}

/* -------------------------------------------------------
   Service cards
-------------------------------------------------------- */
.service-card {
  position: relative;
  isolation: isolate;
}

.service-card .media {
  height: 180px;
  background: #0d1220;
  display: grid;
  place-items: end;
  padding: 14px;
}

.service-card .media.bg1 {
  background-image: url('https://images.unsplash.com/photo-1529539795054-3c162aab037a?q=80&w=1400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.service-card .media.bg2 {
  background-image: url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?q=80&w=1400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.service-card .media.bg3 {
  background-image: url('https://images.unsplash.com/photo-1520607162512-77dc813e5a14?q=80&w=1400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.service-card .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.service-card h3 {
  margin: 0 0 6px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.kpis .kpi {
  background: transparent;
  border: 1px solid #ffffff;
  padding: 16px;
  border-radius: 0;
  text-align: center;
}

.kpis .kpi .num {
  font-family: Ortica, "EB Garamond", "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

/* -------------------------------------------------------
   Info Box Component
-------------------------------------------------------- */
.info-box {
  border: 1px solid rgba(26, 18, 64, 0.15);
  padding: 40px;
  position: relative;
  background: #ffffff;
  --info-heading-size: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "heading icon"
    "body body"
    "cta cta";
  grid-auto-rows: auto;
  grid-template-rows: calc(var(--info-heading-size, 32px) * 1.2) auto auto;
  row-gap: 12px;
}

.info-box--no-border {
  border: none;
}

.info-box__icon {
  width: calc(var(--info-heading-size, 32px) * 1.0);
  height: calc(var(--info-heading-size, 32px) * 1.0);
  color: #5b7cff;
  position: static;
  margin: 0;
  grid-area: icon;
  justify-self: end;
  align-self: center;
  z-index: 1;
}

/* Also place icons created by Lucide (fallback if class is not preserved) */
.info-box i[data-lucide],
.info-box svg.lucide {
  position: static;
  grid-area: icon;
  justify-self: end;
  align-self: center;
  width: calc(var(--info-heading-size, 32px) * 1.0);
  height: calc(var(--info-heading-size, 32px) * 1.0);
  color: #5b7cff;
  stroke: currentColor;
  fill: none;
  z-index: 1;
}

.info-box__heading {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: var(--info-heading-size, 32px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #34378D !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: calc(var(--info-heading-size, 32px) * 1.2);
  display: inline-flex;
  gap: 12px;
  align-items: center;
  grid-area: heading;
}

/* Some pages use plain semantic headings inside info-box instead of the BEM class */
.info-box h1,
.info-box h2,
.info-box h3,
.info-box h4,
.info-box h5,
.info-box h6 {
  color: #34378D !important;
}

.info-box .info-box__heading[style*="font-size"],
.info-box .info-box__heading[style*="font-weight"],
.info-box .info-box__heading[style*="margin"] {
  font-size: var(--info-heading-size, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.info-box__text {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.8;
  margin-top: 0 !important;
  margin-bottom: 0; /* rely on row-gap between body and CTA */
  grid-area: body;
}

/* Provide a consistent spacing from heading row to first paragraph */
.info-box__text:first-of-type {
  margin-top: 0 !important;
}

.info-box__text:last-child {
  margin-bottom: 0;
}

.info-box__button-container {
  margin-bottom: 0;
  grid-area: cta;
}

/* Map inline CTA wrappers used in some instances (e.g., contact) into the CTA row */
.info-box__text + div[style*="margin-top"] {
  grid-area: cta;
  margin-top: 0 !important; /* use row-gap instead */
}

/* Normalize anchor buttons inside info boxes */
.info-box__button-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #5b7cff;
  color: #5b7cff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  min-width: 0 !important;
  width: auto !important;
}

.info-box__button-container a:hover {
  background: rgba(91,124,255,0.06);
}

/* Normalize anchor buttons inside info boxes even when inline styles are used */
.info-box a[style*="border: 1px solid #5b7cff"],
.info-box a[style*="padding: 12px 24px"],
.info-box a[style*="display: inline-flex"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  background: transparent !important;
  border: 1px solid #5b7cff !important;
  color: #5b7cff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
}

.info-box--flex {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
}

.info-box--flex .info-box__text {
  grid-column: 1 / -1;
}

/* -------------------------------------------------------
   Intake section
-------------------------------------------------------- */
.section-intake {
  position: relative;
  background: #1a1240;
  color: #ffffff;
  padding: 132px 0 112px 0; /* top: 132px, bottom: 112px */
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.section-intake::before,
.section-intake::after {
  display: none;
}

.section-intake .container {
  max-width: none;
  position: relative;
  z-index: 1; /* above section watermarks */
}

.intake-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.6fr); /* narrower image col, wider form */
  gap: 40px;
  align-items: flex-start; /* left-align content inside intake section */
}

.intake-main {
  width: 100%;
  position: relative;
  z-index: 3; /* ensure form block is on top */
  order: 2; /* move form to right */
}

.intake-visual {
  position: relative;
  z-index: 2;
  order: 1; /* move image to left */
}

.intake-header .badge {
  color: #9eb2ff;
  margin-bottom: 24px;
  padding-top: 0;
}

.intake-header {
  max-width: 640px; /* wrap heading and paragraph earlier */
}

/* Small hero-style visual to the right of the form (web only) */
.intake-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-left: 0; /* rely purely on grid gap now */
}

.intake-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* match team profile portrait ratio */
  overflow: visible;
}

/* Shadow: smaller, anchored bottom-left inside wrapper */
.intake-image::before {
  display: none;
}

/* Image card: same size, anchored top-right inside wrapper */
.intake-image-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  line-height: 0;
}

.intake-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 2px;
  left: 0;
}

/* Intake slideshow */
.intake-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.intake-slide.active {
  opacity: 1;
  position: relative;
}

.intake-header .h2 {
  color: #ffffff;
  margin-bottom: 12px;
  max-width: 500px; /* wrap heading earlier */
}

.intake-header .p-lg {
  color: rgba(255,255,255,0.85);
  margin: 0 0 30px;
  max-width: 500px; /* wrap paragraph earlier */
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.intake-field--full {
  grid-column: 1 / -1;
}

.intake-field input,
.intake-field textarea {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0B0B25;
  color: #ffffff;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

/* Make the query textarea deeper by default */
.intake-field--full textarea {
  min-height: 200px; /* increased by ~60px from default look */
}

.intake-field input::placeholder,
.intake-field textarea::placeholder {
  color: rgba(255,255,255,0.7);
}

.intake-field input:focus,
.intake-field textarea:focus {
  border-color: rgba(255,255,255,0.6);
}

.intake-meta .p-sm {
  color: rgba(255,255,255,0.8);
  margin: 0 0 12px;
}

.intake-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.intake-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.intake-checkbox input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  flex: 0 0 20px; /* lock size in flex row so both boxes stay identical */
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.9);
  background: #0B0B25;
  display: block;
  position: relative;
  cursor: pointer;
}

.intake-checkbox input:checked {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.intake-checkbox input:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.intake-actions .btn {
  min-width: 220px;           /* shared visual width */
  height: 44px;               /* shared height */
  justify-content: center;    /* center labels */
  font-size: 16px;            /* same font size both buttons */
  line-height: 1.2;           /* consistent line height */
  font-weight: 600;           /* same text weight both buttons */
  letter-spacing: 0.01em;     /* subtle, consistent tracking */
}

.intake-actions .btn-primary {
  border-color: #4a66db;
}

/* Ghost button variant on dark intake background */
.section-intake .intake-actions .btn-ghost {
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.9);
  background: transparent;
}

.section-intake .intake-actions .btn-ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

/* -------------------------------------------------------
   Footer
-------------------------------------------------------- */
.footer {
  background: #1a1240;
  padding: 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: flex-start;
}

.footer-nav-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-tagline {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-size: 56px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  max-width: 60%;
}

.footer-menu,
.footer-services,
.footer-contact {
  text-align: left;
  margin-top: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social i {
  font-size: 18px;
  color: #ffffff;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 32px;
  font-size: 14px;
}

.footer-legal-links .link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links .link:hover {
  color: #ffffff;
}

.footer-legal-links button.link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.footer-menu .link,
.footer-services .link {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.footer-menu button.link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: inherit;
  text-align: left;
  width: 100%;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  font-weight: 400;
}

.footer-menu .link:after,
.footer-services .link:after {
  display: none;
}

.footer-menu .link:hover,
.footer-menu .link:focus,
.footer-menu .link.active,
.footer-services .link:hover,
.footer-services .link:focus,
.footer-services .link.active {
  color: #ffffff;
}

.footer .p-lg {
  color: #ffffff;
  font-size: 14px;
  margin-top: 0;
}

.footer .h3 {
  color: #ffffff;
  margin-top: 0;
}

.footer a {
  text-decoration: none;
  font-size: 14px;
}

.footer a:hover {
  color: #ffffff;
  opacity: 0.8;
}

.footer .btn {
  border-color: #ffffff;
  color: #ffffff;
}

.footer .btn:hover {
  background: rgba(255,255,255,.1);
}

.footer .p-lg {
  color: rgba(255,255,255,0.7);
}

/* -------------------------------------------------------
   Contact Page
--------------------------------------------------------- */

.map {
  width: 100%;
  max-width: none;
  margin: 0 auto 40px;
  padding: 0 24px 80px;
}

.map .google-map {
  width: 100%;
  height: 450px;
}

.map .google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}



.contact-cards {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  max-width: none;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.contact-address {
  margin-bottom: 80px;
}

.address {
  padding: 0 24px 32px;
}

.address .p-lg {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-card-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  overflow: visible;
}

.contact-card-wrapper::before {
  content: "";
  position: absolute;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  bottom: 0;
  left: 0;
  background: var(--brand);
  z-index: 0;
}

.contact-card {
  position: absolute;
  background: var(--color1);
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  top: 0;
  right: 0;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}


.contact-card-icon {
  color: var(--brand);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  font-size: 40px;
}

.contact-card-icon svg {
  width: 40px;
  height: 40px;
}

.contact-card-icon i {
  font-size: 40px;
}

.contact-card h2 {
  margin-bottom: 32px;
  color: #ffffff;
}

.contact-card-content {
  text-align: center;
}

.contact-card-content p {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.8);
}

.contact-card-content p:last-child {
  margin-bottom: 0;
  color: rgba(255,255,255,0.6);
}

.contact-card-content strong {
  color: rgba(255,255,255,0.9);
}

.contact-card-content .link {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.contact-card-content .link:hover {
  color: var(--brand-700);
}

.office-details {
  max-width: 600px;
}

/* -------------------------------------------------------
   Page hero / Digital Tech
-------------------------------------------------------- */
.page-hero {
  padding: 96px 0;
  background: radial-gradient(120% 120% at 0% 0%, #1b2335 0%, #0c1427 80%);
  border-bottom: 1px solid #ffffff14;
}

.page-hero h1 {
  margin: 0;
  color: #ffffff;
}

/* Shared base styles for service-style page heroes */
.page-hero--digital,
.page-hero--about,
.page-hero--business,
.page-hero--management,
.page-hero--branding,
.page-hero--legal {
  min-height: calc(30vh + 80px);
  padding: 0;
  background: #1a1240;
}

.page-hero--digital .p-xl,
.page-hero--about .p-xl,
.page-hero--business .p-xl,
.page-hero--management .p-xl,
.page-hero--branding .p-xl,
.page-hero--legal .p-xl {
  color: rgba(255,255,255,0.9);
  margin-top: 12px;
  margin-bottom: 0;
  max-width: 640px;
}

.page-hero--digital .container,
.page-hero--about .container,
.page-hero--business .container,
.page-hero--management .container,
.page-hero--branding .container,
.page-hero--legal .container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: calc(30vh + 80px);
  padding: 32px 40px 0 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-hero--digital .h1,
.page-hero--about .h1,
.page-hero--business .h1,
.page-hero--management .h1,
.page-hero--branding .h1,
.page-hero--legal .h1 {
  margin: 0;
  color: #ffffff;
}

/* Constrain Digital Tech description width */
.page-hero--digital .p-xl {
  max-width: 520px;
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.4;
}

.breadcrumb a {
  color: rgba(52, 55, 141, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #34378D;
}

.breadcrumb-separator {
  color: rgba(52, 55, 141, 0.4);
  user-select: none;
}

.breadcrumb-current {
  color: #34378D;
  font-weight: 500;
}

/* Override breadcrumb colors for member profile pages (dark background) */
.page-hero--member .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero--member .breadcrumb a:hover {
  color: rgba(255, 255, 255, 1);
}

.page-hero--member .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero--member .breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Move profile hero images 2px down within their containers */
.page-hero--member .ph-inner img {
  position: relative;
  top: 2px;
}

/* Digital Tech intro band just below header */
.service-intro {
  padding: 48px 0 60px;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

/* Align intro content with hero heading (same horizontal padding) */
.service-intro .container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.service-intro-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 2.2fr);
  gap: 40px;
  align-items: flex-start;
  padding-left: 24px;
  padding-right: 24px;
}

/* Digital Tech page-level nav: vertical left menu inside intro */
.service-page-nav {
  align-self: flex-start;
  margin-top: 24px;
}

/* Global section kicker - used everywhere except hero */
.section-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #4a66db;
}

.section-kicker a,
.section-kicker a:visited,
.section-kicker a:active {
  color: #4a66db;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.1s ease;
  font-weight: 400;
  font-size: 14px;
}

.section-kicker a:hover {
  color: #34378D;
  /* Simulate bold with text-shadow instead of font-weight to prevent layout shift */
  text-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

div.section-kicker {
  color: #999999;
}

/* Add bottom padding to section kickers in intro sections */
.service-intro .section-kicker {
  padding-bottom: 16px;
}

.service-page-nav-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666a80;
}

.service-page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-page-nav a {
  font-size: 14px;
  color: rgba(52,55,141,0.75); /* same blue, slightly muted like header links */
  text-decoration: none;
  display: inline-block;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-page-nav a:hover,
.service-page-nav a:focus {
  color: #34378D; /* full-strength blue on hover, consistent with intro heading */
  transform: scaleX(1.03); /* visually slightly bolder without changing layout */
}

/* Back to top: subtle text button directly under Learn more */
.service-back-to-top {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px; /* 24px gap from Learn more */
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  color: #9aa0b8;
  cursor: pointer;
  width: 100%;              /* force onto its own line */
  justify-content: flex-start;
  text-decoration: none;    /* no underline even if rendered as <a> */
}

.service-back-to-top::before {
  content: "\2191"; /* up arrow */
  font-size: 11px;
}

.service-back-to-top:hover,
.service-back-to-top:focus {
  color: #666a80;
}

.service-intro-copy .badge {
  margin-bottom: 12px;
}

.service-intro-copy .h2 {
  margin-bottom: 16px;
  color: #34378D;
  max-width: 640px;
}

.service-intro-copy .p-lg {
  margin: 0;
  color: #4a4a4a;
  max-width: 640px;
}

.service-intro-visual {
  position: relative;
  overflow: visible;
}

.service-intro-image::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  width: 100%;
  height: 100%;
  background: #4A66DB;
  z-index: 0;
}

.service-intro-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff; /* white card background */
  border: 1px solid #d4d7e5; /* subtle grey border */
  z-index: 1;
}

.service-intro-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------
   Forms / tables / staggered layout
-------------------------------------------------------- */
.list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.list li {
  margin-left: 4px;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid #ffffff;
  background: transparent;
  color: #fff;
}

.input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #ffffff33;
  border-color: #ffffff33;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ffffff14;
  text-align: left;
}

.active-link {
  background: transparent;
  border-radius: 0;
  color: #ffffff;
}

.anchor {
  scroll-margin-top: 80px;
}

/* Services header duplicate defs (keep consistent) */
.services-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

.services-header .badge {
  margin-left: auto;
  margin-right: auto;
}

.services-header h2 {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  color: #34378D;
}

.services-header .p-xl {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.services-header .p-sm {
  color: #666a80;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.services-header p {
  text-align: center;
}

/* -------------------------------------------------------
   Meet the team
-------------------------------------------------------- */
.section-team {
  background: #ffffff;
  padding: 80px 40px;
}

.section-team .section-header .h2 {
  color: #34378D;
}

.section-team .section-header .p-lg {
  color: #4a4a4a;
}

.section-team .section-header .badge {
  margin-bottom: 24px;
  display: inline-block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 64px;
  row-gap: 64px;
  align-items: start;
}

.team-ticker {
  display: none;
}

.team-track {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  width: max-content;
  animation: teamTicker 55s linear infinite;
  will-change: transform;
}

.team-ticker:hover .team-track {
  animation-play-state: paused;
}

.team-card {
  display: flex;
  flex-direction: column;
}

/* Wrapper contains both image and shadow as one unit */
.team-card .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: visible;
}

/* Shadow positioned inside wrapper */
.team-card .photo::before {
  content: "";
  position: absolute;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  bottom: 0;
  left: 0;
  background: transparent;
  z-index: 0;
}

/* Image container positioned inside wrapper */
.team-card .ph-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #4A66DB;
  z-index: 1;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease-in-out;
}

.team-card .photo:hover img {
  transform: scale(1.04);
}

.team-card .team-name {
  padding-top: 24px;
  margin: 0;
  color: #34378D !important;
}

.team-card .section-kicker {
  margin-top: 8px;
}

.team-card .team-role {
  margin-top: 12px;
  color: #6f86ff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card .team-divider {
  width: 100%;
  height: 1px;
  background: #6f86ff;
  margin-top: 16px;
}

.team-card .bio {
  margin-top: 16px;
  color: #666a80;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-team .btn {
  padding: 6px 14px;
  font-size: 14px;
  border-color: #4a66db;
  color: #4a66db;
}

.section-team .btn:hover {
  background: rgba(74,102,219,0.05);
}

.team-card .actions {
  margin-top: 20px;
}

@keyframes teamTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}








/* -------------------------------------------------------
   Target Mobile MEDIA 320px to 480px
-------------------------------------------------------- */

@media (min-width: 320px) and (max-width: 480px) {

  /* Layout basics */
  html,
  body {
    overflow-x: hidden;
  }

  .navbar.container,
  .site-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Remove max-width constraint on mobile */
.container {
  max-width: 100%;
  padding: 0;  /* Sections provide their own side padding */
}

  .navbar {
    height: 64px;
    gap: 16px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  /* Type scale */
  .h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 22px; }
  .p-xl { font-size: 16px; }
  .p-lg { font-size: 16px; }

  /* Normalize inline font sizes across pages on mobile */
  h1[style*="font-size: 56px"] { font-size: 36px !important; line-height: 1.15 !important; }
  h2[style*="font-size: 56px"] { font-size: 36px !important; line-height: 1.15 !important; }
  h2[style*="font-size: 48px"],
  h2[style*="font-size: 40px"],
  h2[style*="font-size: 32px"] { font-size: 28px !important; line-height: 1.2 !important; }
  p[style*="font-size: 24px"],
  p[style*="font-size: 20px"],
  p[style*="font-size: 18px"] { font-size: 16px !important; line-height: 1.6 !important; }

  /* Badges and breadcrumb kicker */
  .badge { font-size: 12px; }
  .badge[style*="font-size: 13px"] { font-size: 12px !important; }
  .section-kicker { font-size: 13px; }
  .section-kicker a { font-size: inherit; }

  /* Service headings with icons: stack on mobile */
  h2[style*="display: flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Service lists: remove inline left margin on mobile */
  ul[style*="margin-left: 44px"] {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Info Box – mobile normalization */
  .info-box {
    padding: 24px !important;
    border-color: rgba(26, 18, 64, 0.12) !important;
    --info-heading-size: 24px; /* drive heading and icon consistently on mobile */
    grid-template-rows: auto auto auto !important; /* allow multi-line headings */
    row-gap: 12px !important;
  }
  .info-box__icon {
    position: static !important;
    grid-area: icon !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    z-index: 1 !important;
  }
  .info-box i[data-lucide],
  .info-box svg.lucide {
    position: static !important;
    grid-area: icon !important;
    justify-self: end !important;
    align-self: center !important;
    stroke: currentColor !important;
    fill: none !important;
    z-index: 1 !important;
  }
  .info-box__heading {
    font-size: var(--info-heading-size, 24px) !important;
    margin-bottom: 0 !important;
  }
  .info-box__text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
  }
  .info-box__button-container a {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Info-box grids used inline with minmax(500px|350px) — force single column on phones */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(500px"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(350px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .info-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons */
  .btn {
    padding: 10px 16px;
  }

  /* Navigation and header swap */
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .site-header {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }


  /* Hero */
  .hero {
    height: calc(100svh);
    align-items: flex-end; /* anchor content to bottom */
    overflow: visible;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0;
    padding-bottom: 100px; /* 100px bottom padding */
  }

  .hero video {
    height: 100%;
  }

  .hero-content-a {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4.5svh, 64px);
    align-items: center;
  }

  .hero-content-a > * {
    margin: 0;
  }

  .hero-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.8svh, 28px);
  }

  .hero-stack > * {
    margin: 0;
  }

  .headline-rotator {
    min-height: clamp(140px, 18.5svh, 220px);
    height: auto;
  }

  .hero-divider {
    width: 224px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    align-self: flex-start;
  }

  .hero-stack > .hero-divider {
    margin-top: clamp(6px, 0.8svh, 12px);
  }

  .hero-content .h1 {
    margin: 0;
    font-size: clamp(28px, 8.37vw, 36px);
    line-height: 1.1;
  }

  .hero-content .p-xl {
    margin: 0;
  }

  .hero-kicker {
    margin: 0;
    align-self: flex-start;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-content .hero-cta {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta .btn {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    justify-content: center;
    font-size: 14px;
    height: 40px;
  }

  .hero-cta .hero-button2 {
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    height: 40px;
  }

  /* Ensure identical typography for both hero buttons on mobile */
  .hero-cta .btn,
  .hero-cta .hero-button2 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    text-align: center;
  }

  .hero .scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    opacity: 0.9;
    z-index: 10;
    pointer-events: auto;
  }

  /* Mega menu */
  .mega-menu {
    padding: 40px 28px 70px;
  }

  .mega-inner {
    padding: 0;
  }

  .mega-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mega-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mega-social {
    margin-left: 0;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* Marquee */
  .marquee-section {
    padding: 0;
  }

  .marquee-track {
    padding: 40px 0 60px;
  }

  .marquee-text {
    font-size: 80px;
  }

  .marquee-section--dark .marquee-track {
    padding: 40px 0 80px;
  }

  /* Metrics */
  .metrics-band .container {
    padding: 40px 0;
  }

  .metrics-glass {
    padding: 60px 32px;
    margin: 0 20px;
    width: auto;
  }

  .metrics-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .metric-value {
    font-size: 40px;
    line-height: 1.1;
  }

  .metrics-header .h2 {
    max-width: 100%;
  }

  .metrics-header .p-xl,
  .metrics-header .p-sm {
    max-width: 100%;
  }

  /* Generic grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-block {
    grid-template-columns: 1fr;
  }

  /* About / what we do */
  #about-us.section,
  #about-us.section.watermark-scroll-down,
  #about-us.section.watermark-scroll-up {
    --watermark-scale: 1.35;
    overflow: visible;
  }

  #about-us.section .container {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
  }

  #about-us .services-header {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #about-us .services-header > * {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  #about-us .services-header .p-xl,
  #about-us .services-header .p-sm {
    text-align: left !important;
  }

  #about-us .services-header .p-sm {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  #about-us .about-visual {
    margin-bottom: 24px;
  }

  /* Make About image + shadow match staggered mobile layout */
  #about-us .about-image {
    max-width: 100%;
    transform: scale(1);
    overflow: visible;
  }

  #about-us .about-image::before {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    bottom: 0;
    top: auto;
    left: 0;
    right: auto;
  }

  #about-us .about-image-inner {
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
  }

  #about-us .about-copy {
    max-width: 100%;
  }

  .services-header p {
    text-align: center;
  }

  /* Page Section - mobile responsive */
.page-section {
  --watermark-scale: 1.35;
  overflow: visible;
  min-height: auto;
  padding: 60px 20px;
}

.page-section .container {
  display: block;
  padding: 0;
}

.page-section-image {
  max-width: 100%;
  transform: scale(1);
  overflow: visible;
  margin-bottom: 32px;
}

.page-section-image::before {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  bottom: 0;
  top: auto;
  left: 0;
  right: auto;
}

.page-section.reverse .page-section-image::before {
  left: auto;
  right: 0;
}

.page-section-image-inner {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
}

.page-section.reverse .page-section-image-inner {
  right: auto;
  left: 0;
}

.page-section-content {
  max-width: 100%;
}

.section-content-copy {
  text-align: left !important;
  align-items: flex-start !important;
}

.section-content-copy > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

  /* Staggered services */
  .staggered-row:nth-of-type(even) .staggered-content::before {
    transform: translateX(-65%) scaleX(-1);
  }

  .staggered-row:nth-of-type(even) .staggered-content::after {
    transform: translateX(-65%) scaleX(-1) rotate(15deg);
  }

  .staggered-layout {
    gap: 0;
  }

  .staggered-row,
  .staggered-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    width: auto;
    position: static;
    height: auto;
    opacity: 1;
    transform: none;
    transition: none;
    overflow: visible;
  }

  /* Staggered layout overrides for tight screens */
  .staggered-row {
    padding: 80px 0;
    gap: 28px;
    height: auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .staggered-row.reverse {
    padding-left: 20px;
    padding-right: 20px;
  }

  .staggered-image {
  transform: scale(1);
  overflow: visible;
}
.staggered-row .staggered-image::before,
.staggered-row.reverse .staggered-image::before {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  bottom: 0;
  top: auto;
}
.staggered-row .staggered-image::before {
  left: 0;
  right: auto;
}
.staggered-row.reverse .staggered-image::before {
  left: auto;
  right: 0;
}


.staggered-image-inner {
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  top: 0;         /* touch wrapper's top edge */
  right: 0;       /* touch wrapper's right edge */
  left: auto;
  bottom: auto;
}

.staggered-row.reverse .staggered-image-inner {
  right: auto;
  left: 0;
}


  .staggered-row::before,
  .staggered-row::after {
    content: none;
  }

  .staggered-content {
    position: relative;
    overflow: visible;
  }

  .staggered-content::before,
  .staggered-content::after {
    content: "";
    position: absolute;
    left: 57%;
    width: 150vw;
    aspect-ratio: 4 / 3;
    background-image: url('../assets/images/what-we-do-watermark.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.75;
  }

  .staggered-row .staggered-content::before,
  .staggered-row .staggered-content::after {
    top: -350px;
  }

  .staggered-row.reverse .staggered-content::before,
  .staggered-row.reverse .staggered-content::after {
    top: -335px;
  }

  .staggered-content::after {
    opacity: 0.5;
    transform: translateX(-50%) rotate(15deg);
  }

  .staggered-content > * {
    position: relative;
    z-index: 1;
  }

  .staggered-content h3 {
    margin-bottom: 16px;
  }

  .staggered-content p {
    margin-bottom: 18px;
  }

  /* Approach section */
  .section-approach {
    padding: 80px 0 12px;
  }

  .section-approach .grid {
    gap: 20px;
  }

  .section-approach .card-body {
    padding: 22px;
    min-height: auto;
  }

  /* Intake and service intro */
  .section-intake {
    padding: 56px 20px;
  }

  .intake-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 !important;
  }

  .intake-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .intake-image {
    max-width: 100%;
    overflow: visible;
    position: relative;
    aspect-ratio: 3 / 4;
  }

  /* Shadow: shrunk to 20px inset, bottom-left in wrapper */
  .intake-image::before {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    bottom: 0;
    left: 0;
    top: auto;
    right: auto;
  }

  /* Image box: same size, top-right in wrapper */
  .intake-image-inner {
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
  }

  .service-intro {
    padding: 48px 0 60px;
  }

  .service-intro-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-page-nav {
    display: block;
  }

  .service-intro-visual {
    position: static;
  }

  .service-intro-image {
    position: static;
    max-width: 260px;
    transform: none;
    margin-top: 16px;
  }

  /* Testimonials */
  .section-testimonials {
    padding: 60px 20px;
  }

  .testimonial {
    min-width: calc(100% - 16px);
    padding: 28px;
  }

  .testimonial-track {
    gap: 16px;
  }

  .testimonial-dots .dot {
    width: 10px;
    height: 10px;
  }

  /* Team */
  .section-team {
    padding: 64px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  /* Team container - no extra padding, section provides it */
  .section-team .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure service hero container has mobile side padding */
  .page-hero .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .team-card .photo {
  position: relative;   /* already true, but OK to repeat */
  overflow: visible;
}

/* shadow: shrunk and bottom-left in wrapper */
.team-card .photo::before {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  bottom: 0;
  left: 0;
  background: transparent;
  top: auto;    /* override desktop top: 18px */
  right: auto;
}

/* image box: same size, top-right in wrapper */
.team-card .ph-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: auto;
}

/* Odd cards: shadow bottom-left, image top-right */
.team-card:nth-child(odd) .photo::before {
  left: 0;
  right: auto;
}

.team-card:nth-child(odd) .ph-inner {
  right: auto;
  left: 0;
}

/* Even cards: shadow bottom-right, image top-left */
.team-card:nth-child(even) .photo::before {
  left: auto;
  right: 0;
}

.team-card:nth-child(even) .ph-inner {
  left: 0;
  right: auto;
}


  .team-card .team-name {
    padding-top: 24px;
  }

  .team-card .bio {
    font-size: 15px;
  }

  .section-team .btn {
    width: max-content;
  }

  /* Footer */
  .footer {
    padding: 48px 20px !important;
    overflow-x: hidden;
  }
  
  .footer .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  
  .footer-tagline {
    font-size: 28px !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  
  .footer-brand {
    max-width: 100%;
  }

  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 32px;
    width: 100%;
    max-width: 100%;
  }
  
  .footer-nav-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100%;
    max-width: 100%;
  }

  .footer-menu,
  .footer-contact,
  .footer-services {
    text-align: left;
    max-width: 100%;
  }

  .footer .cols {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }
  
  .footer h3 {
    font-size: 14px !important;
    word-wrap: break-word;
  }
  
  .footer a,
  .footer p {
    font-size: 13px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  
  .footer-social {
    flex-wrap: wrap;
    max-width: 100%;
  }

  /* Mobile services cascade in drawer */
  .mobile-services-cascade {
    margin-top: 32px;
    overflow: hidden;
    display: none;
  }

  .mobile-services-cascade.is-active {
    display: block;
  }

  .msc-track {
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .msc-panel {
    width: 50%;
    padding-right: 24px;
  }

  .msc-panel--items {
    padding-left: 24px;
  }

  .msc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .msc-header h2 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
  }

  .msc-back {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
  }

  .msc-back:hover {
    color: #ffffff;
  }

  .msc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .msc-list--categories button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.8);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 0;
  }

  .msc-list--categories button:hover {
    color: #ffffff;
  }

  .msc-list--items li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 2px 0;
  }

  .msc-track.msc-step-0 {
    transform: translateX(0);
  }

  .msc-track.msc-step-1 {
    transform: translateX(-50%);
  }

  /* Brand */
  .brand-name {
    display: none;
  }
  
  /* ===== V2 HOME PAGE MOBILE STYLES ===== */
  
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Header V2 Mobile */
  /* Removed display:none overrides for header-v2 navigation to allow off-canvas behavior */
  
  .header-v2 .header-container {
    padding: 16px 20px !important;
  }
  
  .header-v2 .header-brand-name {
    font-size: 14px;
  }
  
  /* Container overrides for mobile - remove padding since sections have it */
  .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* About Section Mobile */
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    grid-template-columns: none !important;
  }
  
  .about-grid > div {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* About section padding override */
  section[style*="padding: 80px 40px"] {
    padding: 60px 20px !important;
  }
  
  section[style*="padding: 40px 40px 80px"] {
    padding: 40px 20px 60px !important;
  }
  
  /* About headline and tagline */
  h2[style*="font-size: 48px"] {
    font-size: 28px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }
  
  p[style*="font-size: 24px"] {
    font-size: 16px !important;
    max-width: 100% !important;
  }
  
  /* Overview intro paragraphs stay 16px on mobile */
  p[style*="font-size: 18px"] {
    font-size: 16px !important;
  }

  /* Body/description divs (home about, training) → 14px */
  div[style*="font-size: 18px"] {
    font-size: 14px !important;
  }

  /* Remove bottom margin from home about body text */
  #about div[style*="font-size: 18px"] {
    margin-bottom: 0 !important;
  }

  /* Trustpilot subline → 14px */
  .section-trustpilot p[style*="font-size: 18px"] {
    font-size: 14px !important;
  }
  
  /* Our Story/Mission grid - force flex column */
  .story-mission-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Services Section Mobile */
  .services-text-columns {
    column-count: 1 !important;
    margin-bottom: 32px !important;
  }
  
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    grid-template-columns: none !important;
  }
  
  .services-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
  
  .services-grid > * h3 {
    font-size: 24px !important;
    margin-bottom: 8px !important;
  }
  
  .services-grid > * p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Training Centre Mobile */
  .training-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    grid-template-columns: none !important;
  }
  
  .training-grid > div {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .training-grid > div:first-child {
    order: 2;
  }
  
  .training-grid > div:last-child {
    order: 1;
  }
  
  /* Training carousel mobile - horizontal scroll */
  .training-carousel-track {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }
  
  .training-carousel-track::-webkit-scrollbar {
    display: none;
  }
  
  .training-carousel-track > * {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start !important;
  }
  
  .training-carousel-dots {
    display: flex !important;
  }

  /* Member profile hero paddings on mobile */
  body:has(#member-profile) .page-hero {
    padding-top: 60px !important;
    padding-bottom: 0 !important;
  }

  /* Remove extra space under each text block on profile sections */
  body:has(#member-profile) .section-story .story-content .p-lg {
    margin-bottom: 0 !important;
  }

  /* Global typography: intros 18->16, body 16->14 on mobile (not header) */
  p[style*="font-size: 18px"] {
    font-size: 16px !important;
  }
  p[style*="font-size: 16px"] {
    font-size: 14px !important;
  }
  
  /* Training section background */
  section[style*="background: #1a1240"] {
    padding: 60px 20px !important;
  }
  
  /* Testimonials Mobile */
  .section-testimonials {
    padding: 60px 20px !important;
  }
  
  .testimonial-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .testimonial {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px !important;
  }
  
  .testimonial .p-xl {
    font-size: 16px !important;
  }
  
  /* Section header mobile */
  .section-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .section-header h2 {
    font-size: 28px !important;
  }
  
  .section-header .p-lg {
    font-size: 16px !important;
    max-width: 100% !important;
  }
  
  /* Generic label text */
  p[style*="font-size: 13px"][style*="text-transform: uppercase"] {
    font-size: 11px !important;
  }
  
  /* Service cards */
  a[style*="padding: 20px"][style*="border: 1px solid"] {
    padding: 16px !important;
  }
  
  
  /* Button adjustments */
  a[style*="padding: 12px 24px"] {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
  
  /* Image containers */
  div[style*="width: 100%; height: 500px"] {
    height: 300px !important;
  }
  
  /* Blockquote adjustments */
  blockquote {
    font-size: 14px !important;
  }
  
  /* Trainings & Articles card grids - stack vertically, center */
  div[style*="repeat(3, 380px)"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    gap: 16px !important;
  }
  
  div[style*="repeat(3, 380px)"] > * {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Member detail page - hero stacks vertically */
  body:has(#member-profile) .page-hero .container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
    text-align: left !important;
  }
  
  body:has(#member-profile) .page-hero .team-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body:has(#member-profile) .page-hero .team-card .photo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
  }

  body:has(#member-profile) .page-hero .team-card .ph-inner {
    position: static !important;
    width: 100% !important;
    height: auto !important;
  }

  body:has(#member-profile) .page-hero .team-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  /* Member detail - expertise grid single column */
  body:has(#member-profile) .expertise-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  /* Member detail - story content single column and no extra padding */
  body:has(#member-profile) .story-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Story content - force single column on mobile */
  .section-story .story-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    columns: unset !important;
    column-count: unset !important;
    gap: 16px !important;
  }

  body:has(#member-profile) .section-story .story-content {
    display: flex !important;
    flex-direction: column !important;
    columns: unset !important;
    column-count: unset !important;
  }
  
  body:has(#member-profile) .section-story .story-quote {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  body:has(#member-profile) .section-story .story-quote .h2 {
    font-size: 22px !important;
  }
  
  /* Ideal candidate card - reduce text and padding */
  div[style*="padding: 48"] {
    padding: 24px !important;
  }
  
  ul[style*="font-size: 18"] {
    font-size: 14px !important;
    line-height: 1.8 !important;
    padding-left: 20px !important;
  }
  
  h3[style*="font-size: 28px"] {
    font-size: 22px !important;
  }
  
  /* Consultant program & vacancy section side padding */
  section[style*="padding: 0 40px 80px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Overview section side padding on all index pages */
  section[style*="padding: 40px 40px 0"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Quote section side padding */
  section.quote-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Headline font size for mobile */
  h1[style*="font-size: 56"] {
    font-size: 32px !important;
  }
  
  h2[style*="font-size: 40"] {
    font-size: 28px !important;
  }
  
  /* Who we're looking for section center text */
  p[style*="text-align: center"] {
    text-align: left !important;
  }
  
  h2[style*="text-align: center"] {
    text-align: left !important;
  }

  /* Section heading .h3 → 24px */
  .h3 {
    font-size: 24px !important;
  }

  /* Paragraph .p-lg → 14px */
  .p-lg {
    font-size: 14px !important;
  }

  /* Article detail hero section → 20px side padding */
  section[style*="padding: 96px 40px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Article detail body section → 20px side padding */
  section[style*="padding: 56px 40px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Service hero section → 20px side padding */
  section[style*="padding: 120px 40px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Hero kicker - remove left padding */
  .hero-kicker {
    padding-left: 0 !important;
  }

  /* Services section - explicit 20px side padding */
  #services {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ContentCard metadata text → 14px */
  div[style*="repeat(3, 380px)"] div[style*="font-size: 13px"] {
    font-size: 14px !important;
  }

  /* ContentCard title → 24px */
  h3[style*="font-size: 20px"] {
    font-size: 24px !important;
  }

  /* Footer contact intake CTAs → full width */
  .intake-actions .btn,
  .intake-actions .hero-button2 {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Quote section text → center aligned (trainings + articles) */
  .quote-section .story-quote,
  .quote-section .story-quote .h2 {
    text-align: center !important;
  }
}



/* -------------------------------------------------------
   GDPR Cookie Consent Drawer
------------------------------------------------------- */
.gdpr-float-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  opacity: 1;
  pointer-events: auto;
}

.gdpr-float-btn:hover {
  color: var(--brand-700);
  transform: scale(1.1);
}

.gdpr-float-btn svg {
  width: 28px;
  height: 28px;
}

.gdpr-drawer.open ~ .gdpr-float-btn {
  opacity: 0;
  pointer-events: none;
}

.gdpr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9990;
}

.gdpr-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.gdpr-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  width: 100%;
  height: auto;
  background: rgba(26, 18, 64, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s cubic-bezier(0.42, 0, 0.3, 1);
  z-index: 9995;
  overflow: hidden;
  box-shadow: 0 -10px 50px rgba(0,0,0,0.3);
}

.gdpr-drawer.open {
  transform: translateY(0);
}

.gdpr-container {
  position: relative;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.gdpr-close {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
  margin-left: auto;
}

.gdpr-close:hover {
  color: rgba(255,255,255,0.7);
}

.gdpr-close svg {
  width: 24px;
  height: 24px;
}

.gdpr-tabs-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  padding-top: 32px;
}

.gdpr-tabs-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.gdpr-tabs {
  display: flex;
  gap: 0;
  height: 60px;
  align-items: center;
  justify-content: space-between;
}

.gdpr-tab {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.gdpr-tab:first-child {
  padding-left: 0;
}

.gdpr-tab:hover {
  color: rgba(255,255,255,0.9);
}

.gdpr-tab.active {
  color: #ffffff;
  border-bottom-color: var(--brand);
}

.gdpr-tab-content {
  display: none;
}

.gdpr-tab-content.active {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.gdpr-content-scroll {
  height: 200px;
  overflow-y: auto;
  padding: 24px 20px 40px;
  flex-shrink: 0;
  max-width: 70%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  position: relative;
  z-index: 1;
}

.gdpr-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.gdpr-content-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 32px;
}

.gdpr-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.gdpr-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.gdpr-title {
  font-family: "EB Garamond", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.gdpr-text {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.gdpr-detail-section {
  margin-bottom: 32px;
}

.gdpr-detail-section:last-child {
  margin-bottom: 0;
}

.gdpr-detail-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.gdpr-list {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
  padding-left: 24px;
}

.gdpr-list li {
  margin-bottom: 8px;
}

.gdpr-link {
  color: var(--brand);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.gdpr-link:hover {
  color: var(--brand-700);
}

.gdpr-bottom-row-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #1a1240;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 4px rgba(0,0,0,0.3);
  flex-shrink: 0;
  z-index: 9990;
}

.gdpr-bottom-row-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  position: relative;
  z-index: 2;
}

.gdpr-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 24px 0 40px;
}

.gdpr-categories-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex: 1;
}

.gdpr-cat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
}

.gdpr-cat-item h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gdpr-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.gdpr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gdpr-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: 0.3s;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.3);
}

.gdpr-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.gdpr-switch input:checked + .gdpr-slider {
  background-color: var(--brand);
  border-color: var(--brand);
}

.gdpr-switch input:checked + .gdpr-slider:before {
  transform: translateX(22px);
}

.gdpr-toggle-details {
  appearance: none;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.gdpr-toggle-details:hover {
  color: #ffffff;
}

.gdpr-toggle-details .gdpr-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.gdpr-toggle-details[aria-expanded="true"] .gdpr-chevron {
  transform: rotate(180deg);
}

.gdpr-category-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.gdpr-category-details.open {
  max-height: 500px;
  padding: 0 24px 20px;
}

.gdpr-category-details .p-sm {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.gdpr-cookie-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gdpr-cookie-item {
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.5;
}

.gdpr-cookie-item strong {
  color: #9eb2ff;
  font-weight: 600;
}

.gdpr-switch-disabled .gdpr-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.gdpr-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.gdpr-btn {
  appearance: none;
  padding: 12px 32px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
}

.gdpr-btn:hover {
  background: rgba(255,255,255,0.1);
}

.gdpr-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.gdpr-btn-primary:hover {
  background: var(--brand-700);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal .h3 {
  margin-bottom: 8px;
}

.footer-legal .gdpr-toggle-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gdpr-inner {
    padding: 32px 24px;
  }
  
  .gdpr-header {
    margin-bottom: 24px;
  }
  
  .gdpr-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .gdpr-actions {
    flex-direction: column;
  }
  
  .gdpr-actions button {
    width: 100%;
  }
}

/* -------------------------------------------------------
   Learning Centre - Square Cards with Colored Shadows
--------------------------------------------------------- */
#articles .team-card .photo {
  aspect-ratio: 1;
}

#articles .team-card .photo::before {
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  background: transparent;
}

#articles .team-card .ph-inner {
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------
   Max-width for sections above 1500px (excluding header/footer)
--------------------------------------------------------- */
@media (min-width: 1500px) {
  section:not(.site-header):not(.footer) .container {
    max-width: 1420px;
  }
  
  .page-section .container,
  .section-testimonials .container,
  .section-intake .container,
  .section-story .story-content,
  .section-team .container,
  #about-us.section .container {
    max-width: 1420px;
  }
}

/* -------------------------------------------------------
   Responsive: Tablet/Medium screens 481px to 900px
--------------------------------------------------------- */
@media (min-width: 481px) and (max-width: 900px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Header becomes mobile hamburger menu */
  /* Removed display:none overrides for header-v2 navigation to allow off-canvas behavior */
  
  .header-v2 .header-container {
    justify-content: space-between !important;
    padding: 20px 30px !important;
  }
  
  /* Container padding for tablet - remove since sections have it */
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Reduce section padding for tablet */
  section[style*="padding: 80px 40px"] {
    padding: 60px 30px !important;
  }
  
  section[style*="padding: 40px 40px 80px"] {
    padding: 40px 30px 60px !important;
  }
  
  /* Normalize service hero/header inline paddings to 30px sides */
  section[style*="padding: 160px 40px 80px"],
  section[style*="padding: 160px 40px"] {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Ensure team partial sections have side padding on tablet via container */
  .section-team {
    padding-left: 0;
    padding-right: 0;
  }
  .section-team .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Ensure page hero has side padding on tablet */
  .page-hero {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  .page-hero .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  
  /* About grid single column */
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    grid-template-columns: none !important;
  }
  
  .about-grid > div {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Our Story and Mission - force flex column */
  .story-mission-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }
  
  /* Reduce headline sizes slightly */
  h2[style*="font-size: 48px"] {
    font-size: 36px !important;
    max-width: 100% !important;
  }
  
  p[style*="font-size: 24px"] {
    font-size: 20px !important;
    max-width: 100% !important;
  }
  
  /* Services text columns wrap to single column */
  .services-text-columns {
    column-count: 1 !important;
  }
  
  /* Services grid - let auto-fit handle responsive wrapping on tablet */
  .services-grid {
    gap: 20px !important;
  }
  
  .services-grid > * {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Training Centre grid wraps to single column */
  .training-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    grid-template-columns: none !important;
  }
  
  .training-grid > div {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Testimonials show 2 columns on tablet */
  .testimonial-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .testimonial {
    min-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Section headers */
  .section-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .section-header .p-lg {
    max-width: 100% !important;
  }
  
  /* Trainings & Articles card grids - 2 columns on tablet */
  div[style*="repeat(3, 380px)"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  div[style*="repeat(3, 380px)"] > * {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Member detail page - hero stacks vertically on tablet */
  body:has(#member-profile) .page-hero .container {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  body:has(#member-profile) .page-hero .team-card {
    max-width: 250px !important;
    margin: 0 auto !important;
  }
  
  /* Member detail - expertise grid single column on tablet */
  body:has(#member-profile) .expertise-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  /* Info box padding on tablet */
  .info-box {
    padding: 24px !important;
  }
  
  /* Image containers */
  div[style*="width: 100%; height: 500px"] {
    height: 400px !important;
  }
}


/* -------------------------------------------------------
   Global Mobile: normalize section side paddings
   Converts common inline side padding of 40px to 20px on phones
-------------------------------------------------------- */
@media (max-width: 480px) {
  /* Universal: every <section> gets 20px side padding on mobile */
  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Footer padding consistency */
  .footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}


