/* ==========================================================================
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --radius: 0.25rem;
  --background: #f6f8fb;
  --foreground: #0c0c0c;
  --card: oklch(1 0 0);
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --primary: #2f6fed;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.943 0.011 250);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --muted-foreground: oklch(0.49 0.023 250);
  --accent: #2f6fed;
  --accent-foreground: #ffffff;
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.912 0.013 250);
  --input: var(--border);
  --ring: var(--primary);
  --ink: #0c0c0c;
  --on-dark: #f6f8fb;
  --dark-surface: #042a76;
  --teal: #2f6fed;
  --cta: #ffa552;
  --cta-foreground: var(--ink);
  --photo-scrim: linear-gradient(
    180deg,
    transparent 30%,
    rgba(4, 42, 118, 0.92) 100%
  );
  --menu-shadow: 0 12px 32px rgba(4, 42, 118, 0.22);

  /* ---- Cufia brand palette (HEX) ---- */
  --imperial-blue: #042a76;
  --digital-blue: #2f6fed;
  --sandy-brown: #ffa552;
  --platinum: #f6f8fb;
  --text-ink: #0c0c0c;
}

:root {
  --font-sans: Inter, sans-serif;
  --font-heading: Merriweather, Georgia, serif;
}
/* ==========================================================================
   2. GLOBAL RESETS & BASE TYPOGRAPHY
   ========================================================================== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
}
svg {
  display: block;
}
svg[hidden] {
  display: none;
}
details:not([open]) > :not(summary) {
  display: none;
}
/* ==========================================================================
   3. COMMON LAYOUT & REUSABLE COMPONENTS
   ========================================================================== */
.cufia-page {
  font-family: var(--font-sans);
  letter-spacing: 0;
  background: var(--background);
  color: var(--ink);
  overflow-x: clip;
  overflow-y: visible;
}
.cufia-page * {
  box-sizing: border-box;
}
.cufia-page h1,
.cufia-page h2,
.cufia-page h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}
.cufia-page h1 {
  font-size: 76px;
  line-height: 1.08;
  margin: 0;
}
.cufia-page h2 {
  font-size: 43px;
  line-height: 1.13;
  margin: 0;
}
.cufia-page h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0;
}
.cufia-page p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.cufia-page a {
  text-decoration: none;
  transition: opacity 0.2s;
}
.cufia-page a:hover {
  opacity: 0.8;
}
.cufia-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wrap {
  width: 74%;
  max-width: 1400px;
  margin-inline: auto;
}
.screen-section {
  min-height: 100svh;
  position: relative;
  scroll-margin-top: 24px;
}
.section-inner {
  padding-block: 90px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 78px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px !important;
  margin-bottom: 16px !important;
  color: var(--muted-foreground);
}
.eyebrow > span {
  width: 5px;
  height: 5px;
  background: var(--teal);
}
.cufia-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--cta);
  color: var(--cta-foreground);
  border-radius: 999px;
  box-shadow: none;
  height: 43px;
  padding: 5px 5px 5px 20px;
  font-size: 12px;
  gap: 20px;
}
.cufia-cta:hover {
  background: var(--cta);
}
.cufia-cta > span {
  background: var(--ink);
  color: var(--cta);
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
.quiet-cta {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
.quiet-cta:hover {
  background: var(--card);
}
.quiet-cta > span {
  color: var(--on-dark);
}
/* ==========================================================================
   5. HERO SECTION & WIREFRAME WAVE GRAPHIC
   ========================================================================== */
.hero-section {
  background: var(--imperial-blue);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 20px);
}
/* ==========================================================================
   4. FLOATING SITE HEADER & ACCENTURE-STYLE NAVIGATION
   ========================================================================== */
.cufia-navbar-wrapper {
  position: relative;
  width: 100%;
  padding-top: 18px;
  padding-bottom: 12px;
  z-index: 100;
}

.cufia-navbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* --- Left Floating Nav Capsule --- */
.cufia-nav-capsule {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  padding: 5px 16px 5px 6px;
  box-shadow: 0 6px 24px rgba(4, 42, 118, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(4, 42, 118, 0.08);
  gap: 12px;
}

.cufia-nav-emblem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0 4px 0 10px;
  border-radius: 0;
  background: transparent;
  color: #042a76;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.cufia-nav-emblem-btn:hover {
  transform: scale(1.03);
}

/* Logo images (nav and footer) */
.cufia-page .cufia-logo-nav {
  display: block;
  width: auto;
  height: 44px;
  max-width: none;
  object-fit: contain;
}
.cufia-page .cufia-mobile-logo .cufia-logo-nav {
  height: 38px;
}
.cufia-page .cufia-mobile-logo .cufia-logo-on-light {
  display: none;
}
.article-page .svc-hero--plain .cufia-mobile-logo .cufia-logo-on-dark {
  display: none;
}
.article-page .svc-hero--plain .cufia-mobile-logo .cufia-logo-on-light {
  display: block;
}
.cufia-page .cufia-mobile-brand-pill .cufia-logo-nav {
  height: 26px;
}
.cufia-page .footer-logo-img {
  display: block;
  width: 170px;
  height: auto;
  object-fit: contain;
}

.cufia-desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cufia-nav-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  padding: 8px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.cufia-nav-link-btn:hover {
  color: var(--primary);
  background: rgba(47, 111, 237, 0.07);
}

.cufia-nav-link-btn.is-active {
  color: var(--primary);
  background: rgba(47, 111, 237, 0.1);
  font-weight: 600;
}

.cufia-nav-caret {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #64748b;
}

.cufia-nav-link-btn.is-active .cufia-nav-caret {
  transform: rotate(180deg);
  color: var(--primary);
}

/* --- Right Floating CTA Pill --- */
.cufia-floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: #0c0c0c;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 165, 82, 0.32);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  margin-left: auto;
  white-space: nowrap;
}

.cufia-floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 165, 82, 0.45);
}

/* --- Mobile Top Bar Elements (Hidden on Desktop) --- */
.cufia-mobile-bar-left,
.cufia-mobile-hamburger {
  display: none;
}

/* --- Desktop Mega Menu Container & Panels --- */
.cufia-megamenu-dropdown-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 8px;
  z-index: 1000;
  pointer-events: none;
}
.cufia-megamenu-dropdown-container.is-active,
.cufia-megamenu-dropdown-container:hover {
  pointer-events: auto;
}
/* Invisible hover bridge so mouse movement never hits dead space */
.cufia-megamenu-dropdown-container::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 36px;
  background: transparent;
  pointer-events: auto;
}

.cufia-megamenu-card {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(4, 42, 118, 0.18), 0 0 0 1px rgba(4, 42, 118, 0.06);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  display: none;
}

.cufia-megamenu-card.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cufia-mm-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
  padding-left: 4px;
}

/* --- 1. Services Mega Menu (3-Column Layout) --- */
.cufia-services-3col {
  display: grid;
  grid-template-columns: 270px 1fr 310px;
  min-height: 480px;
}

.cufia-services-col1 {
  background: #ffffff;
  padding: 24px 16px;
  border-right: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
}

.cufia-services-navlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cufia-service-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cufia-service-tab:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.cufia-service-tab.active {
  background: #eef4ff;
  color: var(--primary);
  font-weight: 600;
}

.cufia-tab-arrow {
  color: #94a3b8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.cufia-service-tab.active .cufia-tab-arrow,
.cufia-service-tab:hover .cufia-tab-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.cufia-col1-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.cufia-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding-left: 10px;
  transition: gap 0.2s ease;
}

.cufia-view-all-link:hover {
  gap: 10px;
}

/* Services Column 2: Sub-categories */
.cufia-services-col2 {
  background: #ffffff;
  padding: 28px 32px;
  border-right: 1px solid #edf2f7;
  overflow-y: auto;
}

.cufia-subpanel {
  display: none;
}

.cufia-subpanel.active {
  display: block;
  animation: mmFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cufia-subpanel-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.cufia-subpanel-header p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 20px;
}

.cufia-subcat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cufia-subcat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 9px;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  background: #fafbfc;
  border: 1px solid #f1f5f9;
  transition: all 0.16s ease;
}

.cufia-subcat-list li a:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(47, 111, 237, 0.25);
  box-shadow: 0 2px 8px rgba(4, 42, 118, 0.05);
  transform: translateX(3px);
}

.cufia-link-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cufia-subcat-list li a:hover .cufia-link-arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

/* Services Column 3: Featured Card */
.cufia-services-col3 {
  background: #f8fafc;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cufia-feature-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: none;
}

.cufia-feature-card.active,
.cufia-feature-card.static-card {
  display: flex;
  flex-direction: column;
  animation: mmFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cufia-feature-card-media {
  height: 165px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.cufia-feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cufia-feature-card:hover .cufia-feature-card-media img {
  transform: scale(1.04);
}

.cufia-feature-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cufia-feature-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.cufia-feature-card-body h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.cufia-feature-card-body p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.cufia-feature-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.cufia-feature-cta:hover {
  gap: 8px;
}

/* --- 2, 3, 4: Other Mega Menu Grids --- */
.cufia-dropdown-grid {
  display: grid;
  grid-template-columns: 280px 1fr 310px;
  min-height: 420px;
}

/* Insights and About menus have no left editorial column, so give the 2 link columns full flex space */
.cufia-insights-grid,
.cufia-about-grid {
  grid-template-columns: 1fr 340px;
}

.cufia-editorial-col {
  background: #f8fafc;
  padding: 32px 28px;
  border-right: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cufia-editorial-col h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
}

.cufia-editorial-col p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cufia-editorial-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.cufia-dropdown-navcols {
  background: #ffffff;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-right: 1px solid #edf2f7;
}

.cufia-dropdown-feature-col {
  background: #f8fafc;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

@keyframes mmFadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER (ACCENTURE-STYLE DRILL-DOWN FLOW)
   ========================================================================== */
.cufia-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.cufia-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cufia-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 42, 118, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cufia-mobile-drawer.is-open .cufia-mobile-backdrop {
  opacity: 1;
}

.cufia-mobile-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 390px;
  height: 100%;
  background: #0c0c0c;
  color: #f6f8fb;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cufia-mobile-drawer.is-open .cufia-mobile-container {
  transform: translateX(0);
}

.cufia-mobile-track-wrapper {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cufia-mobile-track-wrapper.is-drilldown {
  transform: translateX(-50%);
}

.cufia-mobile-screen {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

/* Screen Header */
.cufia-mobile-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cufia-mobile-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.cufia-mobile-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cufia-mobile-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #f6f8fb;
}

.cufia-mobile-brand-pill .cufia-emblem-icon {
  color: #ffd566;
}

/* Level 1 Primary Links */
.cufia-mobile-primary-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.cufia-mobile-level1-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cufia-mobile-level1-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.cufia-mobile-level1-btn svg {
  color: #94a3b8;
}

/* Secondary Links */
.cufia-mobile-secondary-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 8px;
  margin-bottom: 28px;
}

.cufia-mobile-sublink {
  color: #94a3b8;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cufia-mobile-sublink:hover {
  color: #ffffff;
}

/* Mobile CTA Button */
.cufia-mobile-cta-row {
  margin-top: auto;
  margin-bottom: 24px;
}

.cufia-mobile-cta-btn {
  display: block;
  text-align: center;
  background: var(--cta);
  color: #0c0c0c;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 165, 82, 0.35);
  transition: transform 0.2s ease;
}

.cufia-mobile-cta-btn:hover {
  transform: translateY(-2px);
}

/* Mobile Social Icons */
.cufia-mobile-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 4px;
}

.cufia-mobile-social-row a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.cufia-mobile-social-row a:hover {
  color: #ffffff;
}

/* --- Level 2: Drilldown Screen --- */
.cufia-mobile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
}

.cufia-mobile-drilldown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.cufia-mobile-drilldown-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.cufia-drilldown-badge {
  color: #ffd566;
  font-size: 22px;
  font-weight: 700;
}

/* Accordion in Mobile Drilldown */
.cufia-mobile-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cufia-mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.cufia-mobile-acc-trigger svg {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.cufia-mobile-accordion.is-open .cufia-mobile-acc-trigger svg {
  transform: rotate(180deg);
}

.cufia-mobile-acc-content {
  display: none;
  padding: 4px 8px 16px 12px;
  flex-direction: column;
  gap: 10px;
}

.cufia-mobile-accordion.is-open .cufia-mobile-acc-content {
  display: flex;
}

.cufia-mobile-acc-content a {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.cufia-mobile-acc-content a:hover {
  color: #ffffff;
}


/* ==========================================================================
   5. HERO SECTION CONTENT & WIREFRAME WAVE GRAPHIC
   ========================================================================== */
.hero-heading {
  padding-top: 40px;
  margin-block: auto;
  text-align: center;
  z-index: 1;
}
.hero-kicker {
  font-size: 11px !important;
  color: var(--on-dark);
  margin-bottom: 19px !important;
}
.hero-heading h1 em {
  font-style: normal;
  color: var(--sandy-brown);
}
.waves {
  position: absolute;
  left: 0;
  top: 29%;
  width: 100%;
  height: 38%;
  pointer-events: none;
  fill: none;
  stroke: var(--teal);
  stroke-width: 0.8;
  opacity: 0.22;
}
.hero-bottom {
  text-align: center;
  padding-block: 0 55px;
  position: relative;
  z-index: 1;
}
.hero-description {
  max-width: 520px;
  margin-inline: auto;
}
.hero-description > p {
  font-size: 15px;
  margin-bottom: 30px;
}

/* ==========================================================================
   6. ABOUT CUFIA SECTION & CASCADE HEADING
   ========================================================================== */
.about-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}
.about-intro-copy {
  flex: 1;
}
.about-intro h2 {
  font-size: 36px;
}
.cascade-word {
  display: inline-block;
}
.cascade-line {
  display: block;
}
.about-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.about-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}
.about-experience {
  color: var(--muted-foreground);
  font-size: 11px;
  max-width: 180px;
}
.about-experience strong {
  color: var(--teal);
  font-size: 17px;
  font-weight: 500;
}

.about-circles {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.about-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  box-shadow: 0 8px 18px rgba(4, 42, 118, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}
.about-circle + .about-circle {
  margin-left: -12px;
}
.about-circle:hover {
  transform: translateY(-4px);
}
.about-circle:nth-child(1) {
  border-color: var(--imperial-blue);
}
.about-circle:nth-child(2) {
  border-color: var(--digital-blue);
}
.about-circle:nth-child(3) {
  border-color: var(--sandy-brown);
}
.about-circle img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  display: block;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about-cards article {
  min-height: 250px;
  background: var(--card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--digital-blue);
  border-radius: 8px;
}

.about-cards article > svg:not(.waves) {
  color: var(--teal);
  background: var(--background);
  padding: 9px;
  width: 43px;
  height: 43px;
}
.about-cards h3 {
  font-size: 23px;
  margin-bottom: 12px;
}
.about-cards p {
  font-size: 13px;
  color: var(--muted-foreground);
}
.about-cards .highlight-card {
  background: var(--imperial-blue);
  color: var(--on-dark);
  border-top: 3px solid var(--sandy-brown);
}

.highlight-card p {
  color: var(--on-dark);
  opacity: 0.8;
}
.highlight-card .waves {
  width: 160%;
  height: 75%;
  top: -12%;
  left: -40%;
  transform: rotate(30deg);
}
.highlight-card div {
  position: relative;
}
/* ==========================================================================
   7. SERVICES SECTION & CAROUSEL
   ========================================================================== */
.services-section {
  background: var(--card);
  padding-block: 110px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-heading {
  margin-bottom: 42px;
}
.service-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-inline: 13%;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.service-rail::-webkit-scrollbar {
  display: none;
}
.service-card {
  flex: 0 0 calc((74vw - 40px) / 3);
  max-width: 454px;
  aspect-ratio: 0.88;
  position: relative;
  scroll-snap-align: center;
  color: var(--on-dark);
  overflow: hidden;
}
.service-card::after,
/* ==========================================================================
   9. INDUSTRIES & CASE STUDIES
   ========================================================================== */
.industry-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-scrim);
}
.service-card-content {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 1;
}
.photo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--on-dark) 30%, transparent);
  background: color-mix(in oklch, var(--on-dark) 15%, transparent);
  margin-bottom: 16px;
}
.photo-icon svg {
  width: 19px;
}
.service-card h3 {
  font-size: 24px;
  margin-bottom: 9px;
}
.service-card p {
  font-size: 12px;
}
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px; /* Breathing room before the carousel cards */
}
.services-header-left {
  max-width: 640px;
}
.services-header-left h2 {
  margin: 0;
}
.cufia-page .services-subheading {
  font-size: 21px;
  line-height: 1.55;
  color: #0c0c0c;
  max-width: 620px;
  margin-top: 24px;         /* gives the H2 room to breathe */
  margin-bottom: 0;
}
.services-header-right {
  display: flex;
  flex-direction: row-reverse; /* CTA on the right, arrows on the left */
  align-items: center;         /* Pill and circles share one centre line */
  gap: 20px;                   /* Space between the arrow buttons and the CTA */
  flex-shrink: 0;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.carousel-controls button {
  border-radius: 50%;
  background: var(--background);
  color: var(--primary);
  width: 43px;  /* matches the CTA pill height */
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border, #e2e8f0);
  transition: all 0.2s ease;
}
.carousel-controls button:hover {
  background: var(--imperial-blue);
  color: #ffffff;
  border-color: var(--imperial-blue);
}


/* ==========================================================================
   8. OUR APPROACH / OPERATING MODEL
   ========================================================================== */
.values-section {
  background: var(--imperial-blue);
  color: var(--on-dark);
}
.center-heading {
  text-align: center;
}
.center-heading .eyebrow {
  justify-content: center;
}
.values-section .eyebrow {
  color: var(--on-dark);
  opacity: 0.7;
}
.center-heading > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 13px;
}
.cufia-page .values-section .center-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px auto 0;   /* same subheading size as the services section */
  font-size: 21px;
  line-height: 1.55;
}
/* ---- Values: connoisseur stack interactor ---- */
.values-section .section-inner {
  gap: 56px;
}
.values-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.values-content {
  position: relative;
  z-index: 2;
}
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 44px);
}
.value-item {
  cursor: pointer;
}
.cufia-page .value-heading {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
.value-trigger {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.value-trigger:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 6px;
}
.value-number {
  flex-shrink: 0;
  width: 40px;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in oklch, var(--on-dark) 45%, transparent);
  transform-origin: left center;
  transition: all 0.5s ease;
}
.value-item.is-active .value-number {
  color: var(--cta);
  transform: scale(1.1);
}
.value-title {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px color-mix(in oklch, var(--on-dark) 90%, transparent);
  opacity: 0.4;
  transform: translateX(0);
  transition: all 0.7s ease;
}
.value-item.is-active .value-title {
  color: var(--on-dark);
  -webkit-text-stroke: 0 transparent;
  opacity: 1;
  transform: translateX(16px);
}
.value-item:not(.is-active):hover .value-title {
  opacity: 0.6;
}
.values-detail {
  display: grid;
  margin-top: 40px;
  padding-left: 64px; /* lines up with the titles */
}
.cufia-page .value-panel {
  grid-area: 1 / 1;
  max-width: 460px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0.45s;
}
.cufia-page .value-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s ease 0.1s,
    transform 0.45s ease 0.1s,
    visibility 0s;
}
.cufia-page .value-panel p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.85;
}
.values-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.values-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: rgba(249, 115, 22, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}
.values-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(0, 0, 0, 0.8));
}
@media (prefers-reduced-motion: reduce) {
  .value-number,
  .value-title,
  .cufia-page .value-panel {
    transition: none;
  }
}
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.industry-grid article {
  aspect-ratio: 1.32;
  position: relative;
  color: var(--on-dark);
  overflow: hidden;
}
.industry-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  background: color-mix(in oklch, var(--ink) 40%, transparent);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
}
.industry-grid article > div {
  position: absolute;
  left: 25px;
  bottom: 25px;
  right: 35px;
  z-index: 1;
}
.industry-grid h3 {
  max-width: 330px;
  font-size: 26px;
  margin-bottom: 18px;
}
.industry-grid p {
  font-size: 11px;
}
.sector-list {
  color: var(--muted-foreground);
  text-align: center;
  font-size: 12px !important;
  margin-top: -40px !important;
}
.cases-action {
  display: flex;
  justify-content: center;
  margin-top: -42px;
}
/* ==========================================================================
   10. WHY CUFIA / ADVANTAGE STICKY SECTION
   ========================================================================== */
.advantage-section {
  position: relative;
  height: 260vh;
  border-bottom: 1px solid var(--border);
}
.advantage-layout {
  position: sticky;
  top: 0;
  width: 90%;
  max-width: 1600px;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.advantage-center {
  text-align: center;
  max-width: 540px;
  width: 32%;
  position: relative;
  z-index: 1;
}
.advantage-track {
  position: absolute;
  top: 0;
  width: 32%;
  height: 100%;
}
.advantage-track-left {
  left: 0;
}
.advantage-track-right {
  right: 0;
}
.advantage-center .eyebrow {
  justify-content: center;
}
.advantage-center > p:not(.eyebrow) {
  max-width: 370px;
  margin: 21px auto 33px;
  color: var(--muted-foreground);
}
.advantage-track .advantage-card {
  width: 100%;
  min-height: 360px;
  padding: 38px;
  background: var(--primary);
  color: var(--on-dark);
  border: 6px solid var(--card);
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}
.advantage-card h3 {
  font-size: 28px;
  margin-bottom: 18px;
}
.advantage-card p {
  font-size: 14px;
}
.advantage-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 45px;
  background: var(--ink);
  color: var(--teal);
}
.advantage-icon svg {
  width: 20px;
}
/* ==========================================================================
   11. INSIGHTS & ARTICLES SECTION
   ========================================================================== */
.insights-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.insight-grid img {
  aspect-ratio: 1.22;
  height: auto;
}
.article-meta {
  color: var(--muted-foreground);
  font-size: 11px !important;
  margin-block: 18px 10px !important;
}
.article-meta span {
  margin-inline: 7px;
  color: var(--teal);
}
.insight-grid h3 {
  font-size: 25px;
}
/* ==========================================================================
   12. FAQ ACCORDION SECTION
   ========================================================================== */
.faq-section {
  background: var(--card);
  display: flex;
  align-items: center;
  padding-block: 90px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 65px;
}
.faq-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
}
.faq-contact {
  margin-top: 70px;
}
.contact-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--background);
  color: var(--teal);
  border-radius: 50%;
  margin-bottom: 12px;
}
.faq-contact p {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 15px;
}
.faq-list details {
  padding: 21px 18px;
}
.faq-list details[open] {
  background: var(--background);
}
.faq-list summary {
  font-size: 14px;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  font-size: 13px;
  color: var(--muted-foreground);
  padding-top: 18px;
  padding-right: 24px;
}
.faq-toggle {
  border-radius: 50%;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--teal);
  color: var(--on-dark);
  display: grid;
  place-items: center;
}
.faq-toggle::before {
  content: "+";
  font-size: 14px;
  line-height: 1;
}
details[open] .faq-toggle::before {
  content: "×";
}
/* ==========================================================================
   13. FOOTER SECTION
   ========================================================================== */
/* CTA SECTION (own viewport, sits above the footer) */
.cta-section {
  background: var(--imperial-blue);
  color: var(--on-dark);
}
.cta-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 80px;
}
.cta-inner h2 {
  font-size: 46px;
}
.cta-inner > p {
  margin-top: 22px;
  opacity: 0.85;
}
.cta-inner > a {
  margin-top: 32px;
}
/* ==========================================================================
   FOOTER (sticky reveal): fixed behind the page, uncovered as the CTA scrolls away.
   Height is fixed (720px) so the clip-path box and the fixed layer match.
   ========================================================================== */
.sticky-footer {
  position: relative;
  width: 100%;
  height: 720px;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}
.sticky-footer-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 720px;
}
.sticky-footer-scroll {
  position: sticky;
  top: calc(100vh - 720px);
  height: 100%;
  overflow-y: auto;
}
.sticky-footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 100%;
  padding: 32px 16px;
  background: #ffffff;
  color: var(--text-ink);
  border-top: 1px solid var(--border);
}
.sticky-footer-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  contain: strict;
  pointer-events: none;
}
.sticky-footer-glow > div {
  position: absolute;
  top: 0;
  left: 0;
  height: 1280px;
  border-radius: 9999px;
  rotate: -45deg;
}
.sticky-footer-glow > div:nth-child(1) {
  width: 560px;
  translate: 0 -350px;
  background: radial-gradient(
    68.54% 68.72% at 55.02% 31.46%,
    color-mix(in srgb, var(--imperial-blue) 6%, transparent) 0,
    color-mix(in srgb, var(--imperial-blue) 2%, transparent) 50%,
    color-mix(in srgb, var(--imperial-blue) 1%, transparent) 80%
  );
}
.sticky-footer-glow > div:nth-child(2),
.sticky-footer-glow > div:nth-child(3) {
  width: 240px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    color-mix(in srgb, var(--imperial-blue) 4%, transparent) 0,
    color-mix(in srgb, var(--imperial-blue) 1%, transparent) 80%,
    transparent 100%
  );
}
.sticky-footer-glow > div:nth-child(2) {
  translate: 5% -50%;
}
.sticky-footer-glow > div:nth-child(3) {
  translate: 0 -350px;
}
.sticky-footer-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}
.sticky-footer-brand {
  width: 100%;
  max-width: 384px;
  min-width: 288px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sticky-footer-brand h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--imperial-blue);
}
.sticky-footer-brand p {
  font-size: 14px;
  color: var(--muted-foreground);
}
.footer-logo {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  color: var(--imperial-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--imperial-blue);
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover {
  opacity: 1;
  background: var(--imperial-blue);
  color: #ffffff;
}
.footer-group {
  width: 100%;
  margin-bottom: 40px;
}
.footer-group h4 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--imperial-blue);
}
.footer-group ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-group a {
  display: inline-flex;
  align-items: center;
  color: var(--muted-foreground);
  transition: color 0.3s;
}
.footer-group a:hover {
  opacity: 1;
  color: var(--imperial-blue);
}
.sticky-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted-foreground);
}
.sticky-footer-bottom p,
.sticky-footer-bottom a {
  font-size: 14px;
}
.sticky-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-newsletter {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
}
.footer-newsletter h3 {
  font-size: 24px;
  color: var(--imperial-blue);
}
.footer-newsletter > p:not(.newsletter-msg) {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-ink);
  font: inherit;
  font-size: 14px;
}
.newsletter-form input:focus-visible {
  outline: 2px solid var(--imperial-blue);
  outline-offset: 1px;
}
.newsletter-form input[aria-invalid="true"] {
  border-color: var(--destructive);
}
.newsletter-form button {
  height: 40px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--imperial-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.newsletter-form button:hover {
  opacity: 0.85;
}
.newsletter-form button:focus-visible {
  outline: 2px solid var(--imperial-blue);
  outline-offset: 2px;
}
.footer-newsletter .newsletter-msg {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
}
.newsletter-msg.is-error {
  color: var(--destructive);
}
.newsletter-msg.is-success {
  color: var(--imperial-blue);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer-legal a:hover {
  opacity: 1;
  color: var(--imperial-blue);
}
@media (min-width: 768px) {
  .sticky-footer-inner {
    padding-inline: 48px;
  }
  .sticky-footer-main {
    flex-direction: row;
  }
  .footer-group {
    margin-bottom: 0;
  }
  .footer-group ul {
    font-size: 12px;
  }
  .sticky-footer-bottom {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .footer-group ul {
    font-size: 14px;
  }
}
@media (min-width: 1280px) {
  .sticky-footer-main {
    margin-top: 0;
  }
}
/* Blur-fade entrance, triggered by script.js (section 9) when the footer starts to be uncovered */
html.js-ready .footer-anim {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-8px);
  transition:
    opacity 0.8s ease var(--d, 0.1s),
    filter 0.8s ease var(--d, 0.1s),
    transform 0.8s ease var(--d, 0.1s);
}
html.js-ready .sticky-footer.is-revealed .footer-anim {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-ready .footer-anim {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
@media (min-width: 1600px) {
  .cufia-page h1 {
    font-size: 100px;
  }
  .cufia-page h2 {
    font-size: 53px;
  }
  .about-intro h2 {
    font-size: 45px;
  }
  .hero-heading {
    padding-top: 80px;
  }
  .hero-bottom {
    padding-bottom: 65px;
  }
  .about-cards article {
    min-height: 380px;
  }
}
@media (max-width: 1050px) {
  /* Floating Navbar Mobile Adaptations */
  .cufia-nav-capsule,
  .cufia-floating-cta,
  .cufia-megamenu-dropdown-container {
    display: none !important;
  }
  .cufia-mobile-bar-left {
    display: flex !important;
    align-items: center;
  }
  .cufia-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--on-dark);
  }
  .cufia-mobile-logo .cufia-emblem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffd566;
    color: #042a76;
    font-size: 18px;
    font-weight: 700;
  }
  .cufia-mobile-wordmark {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .cufia-mobile-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    color: #ffffff;
    cursor: pointer;
    margin-left: auto;
  }

  .wrap {
    width: 84%;
  }
  .desktop-nav {
    gap: 20px;
  }
  .cufia-page h1 {
    font-size: 61px;
  }
  .cufia-page h2 {
    font-size: 36px;
  }
  .about-intro {
    gap: 25px;
  }
  .about-circle + .about-circle {
    margin-left: -10px;
  }
  .about-circle {
    width: 48px;
    height: 48px;
  }
  .about-intro h2 {
    font-size: 32px;
  }
  .service-rail {
    padding-inline: 8%;
  }
  .service-card {
    flex-basis: calc((84vw - 40px) / 3);
  }
  .service-card h3 {
    font-size: 21px;
  }
  .advantage-card {
    padding: 22px;
    width: 30%;
  }
  .advantage-center h2 {
    font-size: 34px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: 88%;
  }
  .cufia-page h1 {
    font-size: 43px;
  }
  .cufia-page h2 {
    font-size: 33px;
  }
  .cufia-page h3 {
    font-size: 22px;
  }
  .section-inner {
    padding-block: 65px;
    gap: 45px;
  }
  .site-header {
    height: 72px;
    gap: 15px;
  }
  .site-header > .cufia-cta {
    margin-left: auto;
    height: 37px;
    padding-left: 12px;
    gap: 12px;
  }
  .site-header > .cufia-cta span {
    height: 26px;
    width: 26px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 285px;
    max-height: 75vh;
    overflow: auto;
    background: var(--card);
    color: var(--ink);
    padding: 20px;
    box-shadow: var(--menu-shadow);
  }
  .mobile-menu a {
    display: block;
    padding: 9px;
    font-size: 14px;
  }
  .mobile-menu .mobile-service {
    font-size: 12px;
    color: var(--primary);
    padding-left: 22px;
  }
  .hero-heading {
    padding-top: 55px;
  }
  .hero-kicker {
    font-size: 9px !important;
  }
  .hero-heading br {
    display: none;
  }
  .hero-bottom {
    padding-block: 0 42px;
  }
  .hero-description {
    max-width: 100%;
  }
  .hero-description > p {
    font-size: 13px;
  }
  .waves {
    top: 28%;
    height: 33%;
  }
  .about-intro {
    flex-direction: column;
    gap: 0;
  }
  .about-intro h2 {
    font-size: 31px;
  }
  .about-meta-row {
    margin-top: 26px;
    gap: 18px;
  }
  .about-actions {
    margin-top: 16px;
    margin-left: 0;
  }
  .about-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-cards article {
    min-height: 220px;
    padding: 25px;
  }
  .about-cards h3 {
    font-size: 24px;
  }
  .services-section {
    padding-block: 72px 56px;
  }
  .service-rail {
    padding-inline: 6%;
    gap: 14px;
  }
  .service-card {
    flex-basis: 76vw;
    max-width: none;
  }
  .service-card h3 {
    font-size: 27px;
  }
  .service-card p {
    font-size: 13px;
  }
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
  }

  .services-header-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cufia-page .services-subheading {
    font-size: 17px;    /* Keeps mobile compact and clean */
    margin-top: 16px;
  }
  .cufia-page .values-section .center-heading > p:not(.eyebrow) {
    font-size: 17px;
    margin-top: 16px;
  }

  .values-stage {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .value-trigger {
    gap: 16px;
  }
  .value-number {
    width: 32px;
    margin-top: 4px;
  }
  .value-title {
    font-size: 24px;
  }
  .values-detail {
    margin-top: 28px;
    padding-left: 48px;
  }
  .cufia-page .value-panel p {
    font-size: 14px;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid article {
    aspect-ratio: 1.12;
  }
  .industry-grid h3 {
    font-size: 26px;
  }
  .sector-list {
    margin-top: -15px !important;
  }
  .advantage-layout {
    padding-block: 40px;
    flex-direction: column;
    gap: 38px;
  }
  .advantage-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 62%;
    min-height: 240px;
    padding: 22px;
  }
  .commercial {
    align-self: flex-start;
  }
  .tailored {
    align-self: flex-end;
  }
  .advantage-center {
    width: 100%;
  }
  .advantage-center h2 {
    font-size: 33px;
  }
  .advantage-icon {
    margin-bottom: 28px;
  }
  .insights-heading {
    gap: 25px;
    align-items: flex-start;
    flex-direction: column;
  }
  .insight-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .insight-grid h3 {
    font-size: 26px;
  }
  .insight-grid img {
    aspect-ratio: 1.3;
  }
  .faq-section {
    padding-block: 65px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .faq-left {
    min-height: 0;
  }
  .faq-contact {
    margin-top: 35px;
  }
  .faq-list details {
    padding: 21px 15px;
  }
  .cta-inner {
    width: 100%;
    padding-inline: 6%;
  }
  .cta-inner h2 {
    font-size: 35px;
  }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .advantage-track .advantage-card {
    padding: 18px;
  }
  .advantage-card h3 {
    font-size: 21px;
  }
  .advantage-center h2 {
    font-size: 30px;
  }
}
@media (max-width: 700px) {
  .cases-action {
    margin-top: -15px;
  }
  .advantage-section {
    height: auto;
  }
  .advantage-layout {
    height: auto;
    min-height: 100svh;
  }
  .advantage-center {
    width: 100%;
  }
  .advantage-track {
    position: relative;
    width: 100%;
    gap: 22px;
  }
  .advantage-track .advantage-card {
    width: 100%;
    min-height: 240px;
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .advantage-section {
    height: auto;
  }
  .advantage-layout {
    height: auto;
    min-height: 100svh;
    padding-block: 80px;
    flex-wrap: wrap;
    gap: 40px;
  }
  .advantage-center {
    width: 100%;
    max-width: none;
  }
  .advantage-track {
    position: relative;
    width: calc(50% - 20px);
    gap: 24px;
  }
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .advantage-track {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .advantage-track .advantage-card {
    position: relative;
  }
  .advantage-layout {
    overflow: visible;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  } /* .hero-section > .waves animated via harmonic path modulation */
  @keyframes wave-drift {
    to {
      transform: translateY(15px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* ==========================================================================
   15. SCROLL REVEALS & MICRO-INTERACTION ANIMATIONS
   ========================================================================== */
/* Enhanced High-Energy Scroll Transitions & Dynamic Micro-Interactions */
html.js-ready .reveal-item {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js-ready .reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
html.js-ready .reveal-zoom {
  opacity: 0;
  transform: scale(0.92) translateY(40px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js-ready .reveal-zoom.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}
html.js-ready .reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js-ready .reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* Interactive Hover States & Tactile Depth */
.service-card,
.industry-grid article,
.about-cards article,
.insight-grid article,
.faq-list details {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 36px -12px rgba(10, 20, 28, 0.35);
}
.industry-grid article:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 24px 44px -14px rgba(10, 20, 28, 0.4);
}
.about-cards article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -10px rgba(10, 20, 28, 0.12);
}
.insight-grid article:hover {
  transform: translateY(-6px);
}
.insight-grid article img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.insight-grid article:hover img {
  transform: scale(1.05);
}
.faq-list details:hover {
  background: var(--background);
}
.cufia-cta {
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    box-shadow 0.25s ease;
}
.cufia-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(10, 20, 28, 0.2);
}
.cufia-cta svg {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cufia-cta:hover svg {
  transform: translate(3px, -3px);
}

/* Hero Wireframe Wave Graphic Styling */
.hero-section > .waves {
  will-change: transform;
}
.hero-section > .waves path {
  will-change: d;
}

.cascade-word {
  display: inline-block;
  will-change: transform, opacity, filter;
  transition: color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal-item,
  html.js-ready .reveal-zoom,
  html.js-ready .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-card:hover,
  .industry-grid article:hover,
  .about-cards article:hover,
  .insight-grid article:hover,
  .cufia-cta:hover {
    transform: none !important;
  }
  .waves.is-revealed {
    animation: none !important;
  }
  .hero-section > .waves {
    transform: none !important;
  }
}

/* ==========================================================================
   SERVICES PAGE (services.html) — scoped under .services-page
   ========================================================================== */
.svc-hero {
  position: relative;
  background: var(--imperial-blue);
  color: var(--on-dark);
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  overflow: visible; /* lets the nav mega menu drop below this shorter hero */
}
.svc-hero > .waves { top: 18%; height: 42%; }
.svc-hero-inner {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 120px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: end;
}
.svc-hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.svc-hero-copy {
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in oklch, var(--on-dark) 82%, transparent);
  max-width: 420px;
  justify-self: end;
}
.svc-grid-section { padding: 120px 0; background: var(--background); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 24px;
}
.svc-card { scroll-margin-top: 100px; }
.svc-card-photo {
  position: relative;
  aspect-ratio: 1 / 0.97;
  overflow: hidden;
  background: var(--dark-surface);
}
.svc-card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-card:hover .svc-card-photo img { transform: scale(1.04); }
.svc-card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--photo-scrim); pointer-events: none;
}
.svc-icon {
  position: absolute; left: 24px; bottom: 24px; z-index: 1;
  width: 54px; height: 54px; display: grid; place-items: center;
  color: var(--on-dark);
  border: 1px solid color-mix(in oklch, var(--on-dark) 30%, transparent);
  background: color-mix(in oklch, var(--on-dark) 12%, transparent);
  backdrop-filter: blur(6px);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h3 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 26px; line-height: 1.2; margin: 26px 4px 10px;
}
.svc-card p { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); margin: 0 4px; max-width: 40ch; }
.svc-why { background: var(--card); border-top: 1px solid var(--border); display: flex; align-items: center; }
.svc-why-inner {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 96px; align-items: center;
}
.services-page h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(38px, 4.2vw, 62px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 22px 0 26px; max-width: 13ch;
}
.svc-lead { font-size: 16px; line-height: 1.65; color: var(--muted-foreground); max-width: 46ch; }
.svc-why-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; }
.svc-why-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-testimonials { background: var(--card); padding: 40px 0 140px; }
.svc-testimonials-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; }
.svc-testimonials h2 { max-width: none; margin-bottom: 18px; }
.svc-carousel-buttons { display: flex; gap: 12px; }
.svc-carousel-buttons button {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: var(--secondary); color: var(--ink); transition: background 0.2s, color 0.2s;
}
.svc-carousel-buttons button:hover { background: var(--primary); color: var(--primary-foreground); }
.svc-testimonial-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.svc-testimonial-rail::-webkit-scrollbar { display: none; }
.svc-testimonial {
  position: relative; scroll-snap-align: start; border-radius: 16px; overflow: hidden;
  aspect-ratio: 0.72; background: var(--dark-surface); color: var(--on-dark);
}
.svc-testimonial > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-testimonial::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, oklch(0.192 0.026 264 / 0.7) 55%, oklch(0.192 0.026 264 / 0.97) 85%);
}
.svc-testimonial > div { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 32px; }
.svc-quote-mark { color: var(--cta); margin-bottom: 16px; }
.svc-testimonial blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.svc-testimonial p { font-size: 13px; color: color-mix(in oklch, var(--on-dark) 72%, transparent); }
@media (max-width: 1050px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-why-inner { grid-template-columns: 1fr; gap: 48px; }
  .svc-testimonial-rail { grid-auto-columns: 62%; }
  .svc-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .svc-hero-copy { justify-self: start; }
}
@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-grid-section { padding: 72px 0; }
  .svc-testimonial-rail { grid-auto-columns: 86%; }
  .svc-testimonials-head { flex-direction: column; align-items: start; }
  .svc-why { padding: 80px 0; }
}
/* ==========================================================================
   ARROW CTA (footer "Let's talk" button): cursor-tracking dashed arrow
   Colour comes from --sandy-brown (brand CTA colour). Change it here if needed.
   ========================================================================== */
:root {
  --arrow-cta-color: var(--sandy-brown);
}
.arrow-cta-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50; /* above page content, below the floating header (100) */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.arrow-cta-canvas.is-active {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .arrow-cta-canvas {
    display: none;
  }
}

/* ==========================================================================
   CONTACT PAGE (contact.html)
   Hero reuses .svc-hero from the services page.
   ========================================================================== */
.contact-section {
  background: var(--platinum);
  padding: 96px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-book h2 {
  font-size: 28px;
  color: var(--imperial-blue);
}
.contact-book p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted-foreground);
}
.contact-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 20px;
  padding: 6px 6px 6px 22px;
  border-radius: 9999px;
  background: var(--sandy-brown);
  color: var(--text-ink);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.contact-book-btn:hover {
  opacity: 0.9;
}
.contact-book-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-ink);
  color: var(--sandy-brown);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-ink);
}
.contact-list li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-list small,
.contact-follow small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.contact-list a {
  transition: color 0.2s;
}
.contact-list a:hover {
  opacity: 1;
  color: var(--digital-blue);
}
.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--imperial-blue);
}
.contact-follow p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 8px;
  font-size: 15px;
}
.contact-follow a {
  color: var(--imperial-blue);
  font-weight: 500;
  transition: color 0.2s;
}
.contact-follow a:hover {
  opacity: 1;
  color: var(--digital-blue);
}
.contact-follow a + a::before {
  content: "·";
  margin-inline: 10px;
  color: var(--muted-foreground);
}
/* Globe: full rotating wireframe sphere */
.contact-globe {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}
.contact-globe svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.contact-globe svg:active {
  cursor: grabbing;
}
/* Form card */
.contact-form-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}
.contact-form-card [hidden] {
  display: none;
}
.form-head h3 {
  font-size: 22px;
  color: var(--imperial-blue);
}
.form-head p,
.form-success p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.form-dots {
  height: 16px;
  margin-top: 20px;
  color: var(--muted-foreground);
  opacity: 0.55;
  background-image: radial-gradient(circle, currentColor 0.8px, transparent 0.8px);
  background-size: 6px 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.form-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.form-field > label:not(.check),
.form-group legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.req {
  color: var(--destructive);
}
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--platinum);
  color: var(--text-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-card select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23042a76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact-form-card textarea {
  resize: none;
  padding-block: 12px;
}
.contact-form-card input:focus-visible,
.contact-form-card select:focus-visible,
.contact-form-card textarea:focus-visible {
  outline: none;
  border-color: var(--imperial-blue);
  box-shadow: 0 0 0 3px rgba(4, 42, 118, 0.12);
}
.contact-form-card input[aria-invalid="true"],
.contact-form-card select[aria-invalid="true"],
.contact-form-card textarea[aria-invalid="true"] {
  border-color: var(--destructive);
}
.contact-form-card .field-hint {
  font-size: 12px;
  color: var(--muted-foreground);
}
.contact-form-card .field-error {
  font-size: 12px;
  color: var(--destructive);
}
.contact-form-card .field-error:empty {
  display: none;
}
.form-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-group legend {
  padding: 0;
  margin-bottom: 10px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #ffffff;
  color: var(--text-ink);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover span {
  border-color: var(--imperial-blue);
}
.chip input:checked + span {
  background: var(--imperial-blue);
  border-color: var(--imperial-blue);
  color: #ffffff;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--digital-blue);
  outline-offset: 2px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-ink);
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--imperial-blue);
}
.check a {
  color: var(--imperial-blue);
  text-decoration: underline;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  height: 44px;
  padding: 0 32px;
  border-radius: 12px;
  background: var(--imperial-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.form-submit:hover {
  opacity: 0.88;
}
.form-submit svg {
  transition: transform 0.2s;
}
.form-submit:hover svg {
  transform: translateX(4px);
}
.form-success:focus {
  outline: none;
}
.form-success p {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--imperial-blue);
}
@media (max-width: 900px) {
  .contact-section {
    padding: 64px 0;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 560px) {
  .contact-form-card {
    padding: 24px 18px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   SERVICE PAGE TEMPLATE (ai-transformation.html; reuse for the other service pages)
   Hero reuses .svc-hero. Classes are prefixed sp- / stack- to avoid clashing with services.html.
   ========================================================================== */
.sp-hero-side {
  justify-self: end;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.sp-hero-side .svc-hero-copy {
  justify-self: auto;
}
@media (max-width: 1050px) {
  .sp-hero-side {
    justify-self: start;
  }
}
/* Picture + the challenge */
.sp-intro {
  background: var(--background);
  padding: 80px 0 40px;
}
.sp-photo {
  margin: 0;
  aspect-ratio: 16 / 7;
  border-radius: 24px;
  overflow: hidden;
  background: #e6ebf3;
}
.sp-intro-text {
  max-width: 820px;
  margin: 64px auto 0;
}
.sp-intro-text h2,
.sp-stack-section h2,
.sp-expect h2,
.sp-why h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--imperial-blue);
}
.sp-intro-text h2 {
  margin-bottom: 22px;
}
.sp-intro-text > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
/* How we help: stacking cards */
.sp-stack-section {
  background: var(--background);
  padding: 60px 0 120px;
}
.sp-stack-section h2 {
  text-align: center;
  margin-bottom: 56px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stack-card {
  position: sticky;
  top: calc(32px + var(--i, 0) * 24px);
  scroll-margin-top: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  min-height: 440px;
  padding: 36px;
  border-radius: 28px;
  overflow: hidden;
  transform-origin: top center;
  will-change: transform;
  box-shadow: 0 -14px 32px -20px rgba(4, 42, 118, 0.3);
}
.stack-card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.stack-card .stack-num {
  font-family: var(--font-heading);
  font-size: 22px;
}
.stack-card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
}
.stack-card .stack-lead {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.stack-card .stack-body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
}
.stack-card-img {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}
.stack-card--blue {
  background: var(--imperial-blue);
  color: var(--on-dark);
}
.stack-card--blue .stack-num {
  color: var(--sandy-brown);
}
.stack-card--blue h3 {
  color: #ffffff;
}
.stack-card--blue .stack-body {
  color: color-mix(in oklch, var(--on-dark) 82%, transparent);
}
.stack-card--blue .stack-card-img {
  background: rgba(255, 255, 255, 0.1);
}
.stack-card--white {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-ink);
}
.stack-card--white .stack-num {
  color: var(--digital-blue);
}
.stack-card--white h3,
.stack-card--sand h3 {
  color: var(--imperial-blue);
}
.stack-card--white .stack-body {
  color: var(--muted-foreground);
}
.stack-card--white .stack-card-img {
  background: var(--platinum);
}
.stack-card--sand {
  background: var(--sandy-brown);
  color: var(--text-ink);
}
.stack-card--sand .stack-num {
  color: var(--imperial-blue);
}
.stack-card--sand .stack-body {
  color: color-mix(in oklch, var(--text-ink) 82%, transparent);
}
.stack-card--sand .stack-card-img {
  background: rgba(255, 255, 255, 0.35);
}
/* What you can expect (white, centred) */
.sp-expect {
  background: var(--card);
  padding: 110px 0;
  text-align: center;
}
.sp-ticks {
  list-style: none;
  margin: 48px auto 0;
  padding: 0;
  width: fit-content;
  max-width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}
.sp-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-ink);
}
.tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--imperial-blue);
  color: #ffffff;
}
/* Why Cufia (blue, centred) */
.sp-why {
  background: var(--imperial-blue);
  color: var(--on-dark);
  padding: 110px 0;
  text-align: center;
}
.sp-why h2 {
  color: #ffffff;
}
.sp-why p {
  max-width: 780px;
  margin: 28px auto 0;
  font-size: 19px;
  line-height: 1.75;
  color: color-mix(in oklch, var(--on-dark) 88%, transparent);
}
/* Divider when Why Cufia (blue) sits directly above the CTA (blue) */
.sp-why + .cta-section {
  border-top: 1px solid rgba(246, 248, 251, 0.14);
}
/* Tailored CTA with two supporting lines */
.cta-inner--service > p {
  max-width: 640px;
}
.cta-inner--service > p + p {
  margin-top: 12px;
}
@media (max-width: 900px) {
  .sp-intro {
    padding: 56px 0 24px;
  }
  .sp-photo {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .sp-intro-text {
    margin-top: 40px;
  }
  .sp-stack-section {
    padding: 40px 0 80px;
  }
  .stack-card {
    top: calc(16px + var(--i, 0) * 14px);
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }
  .stack-card-img {
    height: 220px;
  }
  .stack-card h3 {
    font-size: 26px;
  }
  .sp-expect,
  .sp-why {
    padding: 72px 0;
  }
  .sp-ticks li,
  .sp-why p {
    font-size: 16px;
  }
}

/* ==========================================================================
   INDUSTRIES OVERVIEW (industries.html): wide grid of large cards
   ========================================================================== */
.ind-section {
  background: var(--background);
  padding: 48px 12px 110px;
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 16px;
}
.ind-card {
  display: block;
  color: var(--text-ink);
}
.ind-card:hover {
  opacity: 1;
}
.ind-card:last-child {
  grid-column: 1 / -1;
}
.ind-photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: #e6ebf3;
}
.ind-card:last-child .ind-photo {
  aspect-ratio: 21 / 9;
}
.ind-photo img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ind-card:hover .ind-photo img {
  transform: scale(1.04);
}
.ind-card .ind-label {
  display: block;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}
.ind-card h3 {
  margin-top: 14px;
  max-width: 24ch;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  color: var(--imperial-blue);
}
.ind-card .ind-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--digital-blue);
}
@media (max-width: 1050px) {
  .ind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .ind-section {
    padding: 32px 12px 72px;
  }
  .ind-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .ind-card:last-child .ind-photo {
    aspect-ratio: 1 / 1;
  }
  .ind-photo {
    border-radius: 22px;
  }
}

/* ==========================================================================
   INDUSTRY PAGES (financial-services.html etc.)
   Reuses the service page template (.sp-*, .stack-*).
   ========================================================================== */
.sp-intro--image-only {
  padding-bottom: 80px;
}
.sp-expect .sp-intro-p {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.sp-stack-head {
  text-align: center;
  margin-bottom: 56px;
}
.sp-stack-section .sp-stack-head h2 {
  margin-bottom: 0;
}
.sp-stack-head .sp-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.stack-card .stack-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
.stack-card--blue .stack-link {
  color: var(--sandy-brown);
}
.stack-card--white .stack-link {
  color: var(--digital-blue);
}
.stack-card--sand .stack-link {
  color: var(--imperial-blue);
}

/* ==========================================================================
   ABOUT PAGE (about.html) — scoped under .about-page
   ========================================================================== */
.about-page .ab-h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 22px; color: var(--imperial-blue);
}
/* Story + council (centred text) */
.ab-story { background: var(--background); padding: 120px 0; }
.ab-story-inner { max-width: 760px; text-align: center; }
.ab-story .eyebrow { justify-content: center; }
.ab-story p:not(.eyebrow) { font-size: 17px; line-height: 1.75; color: var(--muted-foreground); margin: 0 0 22px; }
.ab-council { background: var(--card); }
.ab-council .ab-story-inner > div { margin-top: 36px; }
/* Stats band */
.ab-stats { background: var(--imperial-blue); color: var(--on-dark); padding: 88px 0; }
.ab-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ab-stat { text-align: center; padding: 8px 16px; border-left: 1px solid color-mix(in oklch, var(--on-dark) 22%, transparent); }
.ab-stat:first-child { border-left: 0; }
.ab-stat strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; }
.ab-stat span { display: block; margin-top: 12px; font-size: 14px; color: color-mix(in oklch, var(--on-dark) 75%, transparent); }
/* Mission / vision split */
.ab-split { background: var(--background); padding: 100px 0; }
.ab-split:nth-of-type(odd) { background: var(--card); }
.ab-split-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.ab-split--reverse .ab-split-img { order: 2; }
.ab-split-img { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.2; background: #e6ebf3; }
.ab-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-split-inner p:not(.eyebrow) { font-size: 18px; line-height: 1.7; color: var(--muted-foreground); margin: 0; max-width: 46ch; }
/* Logo wall */
.ab-logowall { background: var(--background); overflow: hidden; padding: 100px 0; }
.ab-logowall-stage { position: relative; min-height: 720px; }
.ab-logowall-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 42%); text-align: center; z-index: 1; }
.ab-logowall-text .eyebrow { justify-content: center; }
.ab-logowall-text .ab-h2 { font-size: clamp(26px, 2.8vw, 40px); }
.ab-logowall-text p:not(.eyebrow) { font-size: 15.5px; line-height: 1.65; color: var(--muted-foreground); margin: 0 0 14px; }
.ab-logowall-text small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); opacity: 0.85; }
.ab-logowall-items { list-style: none; margin: 0; padding: 0; }
.ab-logowall-items li {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--r));
  width: 130px; min-height: 48px; display: grid; place-items: center;
  font-size: 11px; line-height: 1.3; text-align: center; color: var(--muted-foreground);
}
.ab-logowall-items img { max-width: 100%; max-height: 48px; object-fit: contain; display: block; }
/* Certifications grid */
.ab-certs { background: var(--card); padding: 100px 0; }
.ab-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.ab-section-head .eyebrow { justify-content: center; }
.ab-section-head p:not(.eyebrow) { font-size: 16.5px; line-height: 1.7; color: var(--muted-foreground); margin: 0; }
.ab-certs-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-cert figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 22px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.ab-cert-img { width: 100%; height: 130px; display: grid; place-items: center; }
.ab-certs .ab-cert-img img { width: auto; height: auto; max-width: 100%; max-height: 130px; object-fit: contain; display: block; }
.ab-cert figcaption { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--ink); text-align: center; }
/* Where we work from */
.ab-where { background: var(--background); padding: 100px 0; }
.ab-where-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-place figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--imperial-blue); }
.ab-where .ab-place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-place figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 42, 118, 0.88) 0%, rgba(4, 42, 118, 0.35) 45%, rgba(4, 42, 118, 0) 75%); }
.ab-place figcaption { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; font-family: "Merriweather", serif; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: #fff; }
@media (max-width: 800px) {
  .ab-certs, .ab-where { padding: 72px 0; }
  .ab-certs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ab-cert figure { padding: 22px 14px 20px; }
  .ab-cert-img { height: 100px; }
  .ab-certs .ab-cert-img img { max-height: 100px; }
  .ab-where-grid { grid-template-columns: 1fr; gap: 16px; }
  .ab-place figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 340px) {
  .ab-certs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .ab-split-inner { gap: 48px; }
  .ab-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .ab-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 800px) {
  .ab-story, .ab-split { padding: 72px 0; }
  .ab-split-inner { grid-template-columns: 1fr; }
  .ab-split--reverse .ab-split-img { order: 0; }
  .ab-logowall-stage { min-height: 0; }
  .ab-logowall-text { position: static; transform: none; width: auto; margin: 0 auto 32px; padding: 0 6%; }
  .ab-logowall-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; padding: 0 4%; }
  .ab-logowall-items li { position: static; transform: none; width: auto; }
}

/* ==========================================================================
   INSIGHTS PAGE (insights.html)
   ========================================================================== */
.in-h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 40px; color: var(--imperial-blue); }
.in-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--card); color: var(--imperial-blue); font-size: 12px; font-weight: 500; }
.in-date { font-size: 13px; color: var(--muted-foreground); }
/* Featured carousel: all five cards visible, the one in focus is largest */
.in-featured { background: var(--background); padding: 100px 0 40px; overflow: hidden; }
.in-featured .wrap { padding-bottom: 64px; }
.in-featured .in-h2 { margin: 0; }
.in-carousel { position: relative; }
.in-stage { position: relative; height: clamp(440px, 41vw, 600px); }
.in-slide { position: absolute; top: 50%; left: calc(var(--l, 0) * 1%); width: calc(var(--w, 20) * 1%); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  transform: translateY(-50%); transition: left .8s cubic-bezier(.22,.8,.24,1), width .8s cubic-bezier(.22,.8,.24,1), opacity .5s ease; }
.in-slide-img { flex: none; aspect-ratio: var(--ar, 1); border-radius: 14px; overflow: hidden; background: var(--imperial-blue); display: block; transition: aspect-ratio .8s cubic-bezier(.22,.8,.24,1); }
.in-slide.is-current .in-slide-img { border-radius: 18px; }
.in-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.in-slide-meta { display: none; align-items: center; gap: 12px; }
.in-slide.is-current .in-slide-meta { display: flex; }
.in-slide-title { font-family: var(--font-heading); font-size: 14px; line-height: 1.35; color: var(--imperial-blue); opacity: 0.8; }
.in-slide.is-current .in-slide-title { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; opacity: 1; }
.in-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.in-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in oklch, var(--imperial-blue) 25%, transparent); cursor: pointer; transition: width .3s ease, background .3s ease; }
.in-dot.is-active { width: 32px; background: var(--imperial-blue); }
/* Filters + grid */
.in-latest { background: var(--background); padding: 40px 0 120px; }
.in-filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.in-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.in-pill { font: inherit; font-size: 14px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.in-pill:hover { border-color: var(--imperial-blue); }
.in-pill.is-active { background: var(--imperial-blue); border-color: var(--imperial-blue); color: var(--on-dark); }
.in-select select { font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; }
.in-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.in-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.in-card { position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: 18px; overflow: hidden; background: var(--imperial-blue); color: var(--on-dark); text-decoration: none; }
.in-card[hidden] { display: none; }
.in-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.in-card:hover img { transform: scale(1.04); }
.in-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklch, var(--imperial-blue) 92%, transparent) 0%, transparent 62%); pointer-events: none; }
.in-card-top { position: absolute; top: 18px; left: 18px; z-index: 1; }
.in-card-body { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 8px; }
.in-card .in-date { color: color-mix(in oklch, var(--on-dark) 80%, transparent); }
.in-card-title { font-family: var(--font-heading); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.in-empty { text-align: center; color: var(--muted-foreground); padding: 60px 0; margin: 0; }
@media (max-width: 800px) {
  .in-featured { padding: 72px 0 24px; }
  .in-stage { height: 380px; }
  .in-slide-title { font-size: 11px; }
  .in-slide.is-current .in-slide-title { font-size: 16px; }
  .in-featured .wrap { padding-bottom: 40px; }
  .in-grid { grid-template-columns: 1fr; }
  .in-filters { flex-direction: column; align-items: flex-start; }
  .in-pills { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 6px; }
  .in-pill { white-space: nowrap; }
}

/* Industry dropdown: custom arrow with comfortable inner padding */
.in-select select { appearance: none; -webkit-appearance: none; padding: 11px 48px 11px 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23042a76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; }
/* Pagination */
.in-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.in-pagination[hidden] { display: none; }
.in-page { font: inherit; font-size: 14px; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.in-page:hover:not(:disabled) { border-color: var(--imperial-blue); }
.in-page.is-active { background: var(--imperial-blue); border-color: var(--imperial-blue); color: var(--on-dark); }
.in-page:disabled { opacity: 0.4; cursor: default; }

/* ==========================================================================
   ARTICLE PAGE (article.html) — template for all insight articles
   ========================================================================== */
.ar-hero-inner { display: block; text-align: center; }
.ar-hero-inner h1 { margin-inline: auto; max-width: 20ch; }
.ar-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.ar-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--imperial-blue); font-size: 12.5px; font-weight: 500; text-decoration: none; }
.ar-hero-inner .ar-tag { border-color: transparent; }
.ar-cover { background: var(--card); padding: 56px 0 0; }
.ar-cover-img { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--imperial-blue); }
.ar-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-body { background: var(--card); padding: 64px 0 96px; }
.ar-layout { display: grid; grid-template-columns: 200px minmax(0, 700px); gap: 48px; justify-content: center; align-items: start; }
.ar-side { position: sticky; top: 120px; display: grid; gap: 0; }
.ar-side > div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.ar-side > div:first-child { padding-top: 0; }
.ar-side > div:last-child { border-bottom: 0; }
.ar-side-label { margin: 0 0 4px; font-size: 12px; color: var(--muted-foreground); }
.ar-side-value { margin: 0; font-size: 15px; color: var(--ink); }
.ar-side-value a { color: var(--imperial-blue); text-decoration: none; }
.ar-content { font-size: 17px; line-height: 1.8; color: color-mix(in oklch, var(--ink) 78%, transparent); }
.ar-content p { margin: 0 0 22px; }
.ar-content hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.ar-intro { font-size: 18px; }
.ar-lead { font-size: 20px; line-height: 1.65; font-weight: 500; color: var(--digital-blue); }
.ar-content h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.01em; color: var(--imperial-blue); margin: 56px 0 18px; scroll-margin-top: 100px; }
.ar-content h3 { font-family: var(--font-heading); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 34px 0 10px; }
.ar-content blockquote { margin: 44px 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--sandy-brown); }
.ar-content blockquote p { font-family: var(--font-heading); font-size: clamp(20px, 2vw, 25px); line-height: 1.5; color: var(--imperial-blue); margin: 0 0 14px; }
.ar-content cite { font-size: 14px; font-style: normal; color: var(--muted-foreground); }
.ar-content cite::before { content: "– "; }
.ar-table-wrap { overflow-x: auto; margin: 28px 0 8px; border: 1px solid var(--border); border-radius: 14px; }
.ar-table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.ar-table-wrap th { background: var(--imperial-blue); color: var(--on-dark); text-align: left; font-weight: 600; padding: 14px 18px; }
.ar-table-wrap td { padding: 14px 18px; border-top: 1px solid var(--border); vertical-align: top; }
.ar-table-wrap td:first-child { font-weight: 600; color: var(--ink); }
.ar-steps, .ar-list { margin: 0 0 24px; padding-left: 1.3em; }
.ar-steps li, .ar-list li { margin-bottom: 12px; padding-left: 6px; }
.ar-steps li::marker { color: var(--digital-blue); font-weight: 600; }
.ar-list li::marker { color: var(--sandy-brown); }
.ar-steps strong { color: var(--ink); }
.ar-figure { margin: 40px 0; }
.ar-figure img { width: 100%; border-radius: 16px; display: block; background: var(--background); min-height: 220px; }
.ar-figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.ar-callout { margin: 44px 0; padding: 32px 34px 14px; background: var(--background); border-radius: 18px; border-left: 4px solid var(--digital-blue); }
.ar-callout h3 { margin-top: 0; }
.ar-pager { display: flex; justify-content: center; gap: 12px; margin-top: 56px; }
.ar-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--imperial-blue); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ar-pill:hover { border-color: var(--imperial-blue); }
.ar-pill--solid { background: var(--imperial-blue); border-color: var(--imperial-blue); color: var(--on-dark); }
.ar-pill--solid:hover { background: var(--digital-blue); border-color: var(--digital-blue); }
/* Inline CTA card */
.ar-cta { background: var(--card); padding: 0 0 96px; }
.ar-cta-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; background: var(--background); border-radius: 28px; padding: 56px; }
.ar-cta-img { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--imperial-blue); }
.ar-cta-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-cta-card h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--imperial-blue); margin: 0 0 16px; }
.ar-cta-card p { font-size: 16px; line-height: 1.7; color: var(--muted-foreground); margin: 0 0 28px; max-width: 40ch; }
/* Related */
.ar-related { background: var(--background); padding: 100px 0; }
.ar-related-head { text-align: center; margin-bottom: 56px; }
.ar-related-head .eyebrow { justify-content: center; }
.ar-related-head h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.02em; color: var(--imperial-blue); margin: 0 0 12px; }
.ar-related-head p:not(.eyebrow) { margin: 0; color: var(--muted-foreground); }
.ar-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ar-rel-img { display: block; aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden; background: var(--imperial-blue); margin-bottom: 18px; }
.ar-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ar-rel-card:hover .ar-rel-img img { transform: scale(1.04); }
.ar-rel-card .ar-tags { justify-content: flex-start; margin: 0 0 12px; }
.ar-rel-card h3 { font-family: var(--font-heading); font-weight: 400; font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.ar-rel-card h3 a { color: var(--imperial-blue); text-decoration: none; }
.ar-rel-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted-foreground); }
.ar-more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--imperial-blue); font-size: 14px; text-decoration: none; }
.ar-more:hover { border-color: var(--imperial-blue); }
@media (max-width: 1000px) {
  .ar-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ar-side { position: static; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .ar-side > div:nth-last-child(2) { border-bottom: 0; }
  .ar-cta-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .ar-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .ar-cover { padding-top: 32px; }
  .ar-cover-img { aspect-ratio: 4 / 3; border-radius: 18px; }
  .ar-body { padding: 40px 0 64px; }
  .ar-content { font-size: 16px; }
  .ar-related { padding: 72px 0; }
}
/* Article text sizes (override global paragraph defaults) */
.article-page .ar-content p, .article-page .ar-content li { font-size: 17px; line-height: 1.8; }
.article-page .ar-content .ar-intro { font-size: 18px; }
.article-page .ar-content .ar-lead { font-size: 20px; line-height: 1.65; font-weight: 500; color: var(--digital-blue); }
.article-page .ar-content blockquote p { font-size: clamp(20px, 2vw, 25px); line-height: 1.5; }
.article-page .ar-table-wrap td, .article-page .ar-table-wrap th { font-size: 15px; line-height: 1.5; }
.article-page .ar-figure figcaption { font-size: 14px; }
@media (max-width: 800px) { .article-page .ar-content p, .article-page .ar-content li { font-size: 16px; } }

/* Article page: plain light header (no wave), nav unchanged */
.article-page .svc-hero--plain { background: var(--background); color: var(--ink); min-height: 0; }
.article-page .svc-hero--plain .svc-hero-inner { margin-top: 0; padding-top: 150px; padding-bottom: 72px; }
.article-page .svc-hero--plain h1 { color: var(--imperial-blue); }
.article-page .svc-hero--plain .hero-kicker { color: var(--digital-blue); }
.article-page .svc-hero--plain .ar-hero-inner .ar-tag { border-color: var(--border); }
.article-page .svc-hero--plain .cufia-nav-capsule { border: 1px solid var(--border); box-shadow: 0 6px 24px color-mix(in oklch, var(--imperial-blue) 10%, transparent); }
.article-page .ar-cover { padding: 0; background: linear-gradient(to bottom, var(--background) 0 50%, var(--card) 50% 100%); }
@media (max-width: 1050px) {
  .article-page .svc-hero--plain .svc-hero-inner { padding-top: 120px; padding-bottom: 56px; }
  .article-page .svc-hero--plain .cufia-mobile-logo { color: var(--imperial-blue); }
  .article-page .svc-hero--plain .cufia-mobile-hamburger { background: var(--card); border-color: var(--border); color: var(--imperial-blue); }
}
@media (max-width: 800px) { .article-page .ar-cover { padding: 0; } }

/* ==========================================================================
   CASE STUDIES (case-studies.html + case-study-*.html)
   ========================================================================== */
.cases-page .ar-hero-inner { text-align: left; }
.cases-page .ar-hero-inner h1 { margin-inline: 0; max-width: 16ch; font-size: clamp(42px, 6vw, 84px); line-height: 1.04; }
.article-page .svc-hero--plain.svc-hero .ar-hero-inner { padding-bottom: 64px; }
.cs-intro { font-size: 18px; line-height: 1.7; color: var(--muted-foreground); max-width: 60ch; margin: 28px 0 0; }
.cs-note { font-size: 13.5px; color: var(--muted-foreground); margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--sandy-brown); max-width: 60ch; }
.cs-article .ar-hero-inner h1 { max-width: 24ch; font-size: clamp(32px, 4vw, 58px); }
.cs-wall { background: var(--background); padding: 0 0 100px; }
.cs-grid { border-radius: 24px; overflow: hidden; background: var(--card); }
.cs-row { display: grid; grid-template-columns: 1fr 1fr; }
.cs-row--flip .cs-img { order: 2; }
.cs-img { position: relative; display: block; min-height: clamp(320px, 34vw, 480px); background: var(--imperial-blue); overflow: hidden; }
.cs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cs-row:hover .cs-img img { transform: scale(1.04); }
.cs-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: clamp(28px, 4.5vw, 64px); }
.cs-text--white { background: var(--card); color: var(--ink); }
.cs-text--blue { background: var(--imperial-blue); color: var(--on-dark); }
.cs-text--sand { background: var(--sandy-brown); color: var(--ink); }
.cs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--background); color: var(--imperial-blue); font-size: 11.5px; font-weight: 500; }
.cs-pill--strong { background: var(--digital-blue); color: #fff; }
.cs-text--blue .cs-pill { background: color-mix(in oklch, var(--on-dark) 14%, transparent); color: var(--on-dark); }
.cs-text--blue .cs-pill--strong { background: var(--sandy-brown); color: var(--ink); }
.cs-text--sand .cs-pill { background: color-mix(in oklch, #fff 60%, transparent); color: var(--imperial-blue); }
.cs-text--sand .cs-pill--strong { background: var(--imperial-blue); color: #fff; }
.cs-text h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -0.01em; margin: 0; max-width: 20ch; }
.cs-text h2 a { color: inherit; text-decoration: none; }
.cs-text p { margin: 0; font-size: 15.5px; line-height: 1.65; max-width: 46ch; opacity: 0.85; }
.cs-more { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: inherit; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.cs-text--white .cs-more { color: var(--digital-blue); }
.ar-sources { margin: 0 0 14px; padding-left: 1.3em; }
.ar-sources li { margin-bottom: 8px; }
.ar-sources a { color: var(--imperial-blue); }
.article-page .ar-content .ar-source-note { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); font-style: italic; }
@media (max-width: 800px) {
  .cs-row { grid-template-columns: 1fr; }
  .cs-row--flip .cs-img { order: 0; }
  .cs-img { min-height: 280px; }
  .cs-wall { padding-bottom: 64px; }
  .cs-grid { border-radius: 18px; }
}

/* Case studies main page: standard wave hero, centred text */
.cases-page .svc-hero-inner { display: block; text-align: center; padding-bottom: 88px; }
.cases-page .svc-hero h1 { margin-inline: auto; max-width: 18ch; }
.cases-page .svc-hero .cs-intro { margin: 26px auto 0; max-width: 62ch; font-size: 17px; color: color-mix(in oklch, var(--on-dark) 82%, transparent); }
.cases-page .svc-hero .cs-note { margin: 16px auto 0; padding-left: 0; border-left: 0; max-width: 62ch; color: color-mix(in oklch, var(--on-dark) 68%, transparent); }
/* Case study pages: hero with back link, title, image and key figures */
.cs-article .svc-hero-inner.cs-hero-inner { display: block; text-align: left; padding-top: 140px; padding-bottom: 72px; }
.cs-back { display: inline-block; font-size: 14px; color: var(--imperial-blue); text-decoration: none; margin-bottom: 28px; }
.cs-back:hover { text-decoration: underline; }
.cs-article .cs-hero-inner h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; margin: 0 0 48px; }
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.cs-hero-img { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.1; background: var(--imperial-blue); }
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-hero-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.cs-hero-side .ar-tags { justify-content: flex-start; margin: 0 0 18px; }
.cs-article .cs-hero-text { font-size: 17px; line-height: 1.65; color: var(--muted-foreground); margin: 0; max-width: 40ch; }
.cs-stats { display: grid; gap: 26px; }
.cs-stat { border-left: 1px solid color-mix(in oklch, var(--ink) 25%, transparent); padding-left: 24px; }
.cs-stat strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(38px, 4vw, 58px); line-height: 1; color: var(--imperial-blue); }
.cs-stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted-foreground); max-width: 32ch; }
.cs-article .cs-stat-note { font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); margin: 0; }
@media (max-width: 1000px) { .cs-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 800px) { .cs-article .svc-hero-inner.cs-hero-inner { padding-top: 110px; padding-bottom: 48px; } .cs-article .cs-hero-inner h1 { margin-bottom: 32px; } }
.cs-hero-img { width: 100%; align-self: start; }
.cs-wall { padding-top: 64px; }

/* Case study hero: more compact */
.cs-article .svc-hero-inner.cs-hero-inner { padding-top: 112px; padding-bottom: 56px; }
.cs-back { margin-bottom: 18px; }
.cs-article .cs-hero-inner h1 { max-width: 26ch; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; margin: 0 0 32px; }
.cs-hero-grid { gap: 48px; align-items: center; }
.cs-hero-img { aspect-ratio: 16 / 9.6; align-self: center; }
.cs-hero-side { gap: 28px; justify-content: center; }
.cs-hero-side .ar-tags { margin: 0; }
.cs-stats { gap: 20px; }
.cs-stat strong { font-size: clamp(34px, 3.2vw, 46px); }
@media (max-width: 800px) { .cs-article .svc-hero-inner.cs-hero-inner { padding-top: 96px; padding-bottom: 40px; } .cs-article .cs-hero-inner h1 { margin-bottom: 24px; } }
.cs-hero-img { aspect-ratio: 16 / 8; max-height: 400px; }
.cs-article .cs-hero-inner h1 { max-width: 30ch; }

/* ==========================================================================
   LEGAL PAGES (privacy.html, terms.html, cookies.html)
   ========================================================================== */
.legal-page .svc-hero { min-height: 0; }
.legal-page .svc-hero-inner.lg-hero-inner { display: block; margin-top: 0; padding-top: 150px; padding-bottom: 64px; }
.legal-page .lg-hero-inner h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: none; margin: 0; }
.legal-page .lg-hero-inner .lg-intro { font-size: 16px; line-height: 1.65; max-width: 52ch; margin: 18px 0 24px; color: color-mix(in oklch, var(--on-dark) 82%, transparent); }
.lg-pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: color-mix(in oklch, var(--on-dark) 16%, transparent); color: var(--on-dark); font-size: 12.5px; font-weight: 600; }
.lg-body { background: var(--card); padding: 72px 0 120px; }
.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: 64px; justify-content: center; align-items: start; }
.lg-toc { position: sticky; top: 110px; }
.lg-toc-title { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sandy-brown); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; }
.lg-toc a { display: block; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--ink); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.lg-toc a:hover { color: var(--digital-blue); }
.lg-toc a.is-active { color: var(--digital-blue); border-left-color: var(--digital-blue); font-weight: 600; }
.lg-content { color: color-mix(in oklch, var(--ink) 78%, transparent); }
.legal-page .lg-content h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; color: var(--imperial-blue); margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; max-width: none; }
.lg-content > h2:first-child { margin-top: 0; }
.lg-n { margin-right: 4px; }
.legal-page .lg-content h3 { font-family: var(--font-heading); font-weight: 400; font-size: 19px; color: var(--ink); margin: 30px 0 10px; }
.legal-page .lg-content p, .legal-page .lg-content li { font-size: 15.5px; line-height: 1.8; }
.legal-page .lg-content p { margin: 0 0 16px; }
.lg-content ul { margin: 0 0 20px; padding-left: 1.3em; }
.lg-content li { margin-bottom: 8px; padding-left: 4px; }
.lg-content li::marker { color: var(--sandy-brown); }
.lg-content a { color: var(--digital-blue); }
.lg-content strong { color: var(--ink); font-weight: 600; }
.lg-content .ar-table-wrap { margin: 20px 0 26px; }
.legal-page .lg-content .ar-table-wrap th, .legal-page .lg-content .ar-table-wrap td { font-size: 14px; line-height: 1.55; }
.lg-content .ar-table-wrap td:first-child { font-weight: 600; color: var(--ink); }
mark.lg-ph { background: color-mix(in oklch, var(--sandy-brown) 38%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }
@media (max-width: 1000px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lg-toc { position: static; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .lg-toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 800px) {
  .legal-page .svc-hero-inner.lg-hero-inner { padding-top: 110px; padding-bottom: 44px; }
  .lg-body { padding: 48px 0 80px; }
  .lg-toc ol { columns: 1; }
}
.legal-page .svc-hero-inner.lg-hero-inner { padding-top: 128px; padding-bottom: 52px; }
@media (max-width: 800px) { .legal-page .svc-hero-inner.lg-hero-inner { padding-top: 104px; padding-bottom: 40px; } }
.legal-page .lg-content .ar-table-wrap th { color: #ffffff; background: var(--imperial-blue); }
/* Legal tables: heading text must always be white on the blue bar */
.legal-page .ar-table-wrap thead th,
.legal-page .ar-table-wrap thead th * { color: #ffffff !important; }

/* Nav: larger click area on the dropdown arrow (the label itself opens the page) */
.cufia-nav-caret { box-sizing: content-box; padding: 8px 6px; margin: -8px -6px -8px -2px; cursor: pointer; }

/* ==========================================================================
   SERVICES & OTHER INDUSTRIES (other-industries.html)
   ========================================================================== */
.oi-help { background: var(--background); padding: 110px 0; }
.oi-help h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: var(--imperial-blue); text-align: center; margin: 0 0 48px; max-width: none; }
.oi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.oi-tile { display: flex; align-items: flex-end; min-height: 160px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); color: var(--imperial-blue); font-family: var(--font-heading); font-size: 20px; line-height: 1.25; text-decoration: none; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.oi-tile:hover { background: var(--imperial-blue); border-color: var(--imperial-blue); color: var(--on-dark); transform: translateY(-3px); }
.oi-cta { display: flex; justify-content: center; margin-top: 48px; }
@media (max-width: 1000px) { .oi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .oi-help { padding: 72px 0; } .oi-tile { min-height: 120px; padding: 18px; font-size: 17px; } }

/* ==========================================================================
   HOME: HOW WE WORK (four numbered steps, no images or icons)
   ========================================================================== */
.process-section {
  background: var(--background);
  display: flex;
  align-items: center;
}
.process-inner {
  padding-block: 110px;
}
.process-head h2 {
  max-width: 18ch;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--imperial-blue);
}
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--imperial-blue) 22%, transparent);
}
.process-step {
  position: relative;
}
.process-step .process-num {
  position: relative;
  display: inline-block;
  padding-right: 18px;
  background: var(--background);
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1;
  color: var(--sandy-brown);
}
.process-step h3 {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--imperial-blue);
}
.process-step p {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
@media (max-width: 1000px) {
  .process-inner {
    padding-block: 80px;
  }
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 56px;
  }
  .process-steps::before {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 22px;
  }
  .process-step .process-num {
    padding: 6px 0;
    width: 56px;
    text-align: center;
    font-size: 30px;
  }
  .process-step h3 {
    margin-top: 6px;
  }
  .process-step p {
    max-width: none;
  }
}

/* ==========================================================================
   HOME: case studies teaser (industries section): list + button above the cards
   ========================================================================== */
.cases-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: -42px; /* tighten the section's 78px gap under the heading */
  margin-bottom: -22px; /* and keep a comfortable gap above the cards */
}
.cases-intro .sector-list {
  margin: 0 !important;
  max-width: 640px;
  line-height: 1.7;
}
.cases-intro .cases-action {
  margin-top: 0;
}
.industry-grid .card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.industry-grid .card-link:focus-visible {
  outline: 2px solid var(--sandy-brown);
  outline-offset: -5px;
}

