/* ===========================================================
   Bakliwal Group — Global Design System
   Warm institutional luxury — Apple-style soft curves
=========================================================== */

:root {
  /* Colors */
  --c-bg: #F8F6F2;          /* warm luxury white */
  --c-bg-2: #F2ECE4;        /* soft champagne */
  --c-surface: #FFFFFF;
  --c-copper: #B07A5B;      /* primary accent */
  --c-copper-deep: #8E5E42;
  --c-champagne: #D7C0A8;   /* secondary accent */
  --c-navy: #1C2F45;        /* dark institutional */
  --c-navy-2: #122237;
  --c-taupe: #7D746D;       /* neutral */
  --c-line: rgba(28, 47, 69, 0.10);
  --c-line-soft: rgba(28, 47, 69, 0.06);
  --c-ink: #1A1F26;
  --c-ink-soft: rgba(26, 31, 38, 0.62);

  /* Radii — Apple-soft, consistent across major elements */
  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Spacing */
  --s-section: clamp(72px, 9vw, 160px);

  /* Type */
  --f-display: 'General Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(28, 47, 69, 0.04), 0 14px 40px -18px rgba(28, 47, 69, 0.18);
  --shadow-elev: 0 2px 6px rgba(28, 47, 69, 0.05), 0 24px 60px -22px rgba(28, 47, 69, 0.25);

  /* Easing */
  --e-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@font-face {
  font-family: 'General Sans';
  src: url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ---------- Layout ---------- */

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

section { position: relative; }

.section { padding: var(--s-section) 0; }
.section-sm { padding: clamp(56px, 7vw, 100px) 0; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  display: inline-block;
}

.eyebrow.muted { color: var(--c-taupe); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}

.display-1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 7.6vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.display-2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.h-1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.h-2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.h-3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.lede {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--c-ink-soft);
  font-weight: 400;
  text-wrap: pretty;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-ink);
}

.muted { color: var(--c-ink-soft); }

p { text-wrap: pretty; }

/* ---------- Buttons (Apple-style soft pills) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--e-soft), background 0.3s var(--e-soft),
    color 0.3s var(--e-soft), border-color 0.3s var(--e-soft), box-shadow 0.4s var(--e-soft);
  will-change: transform;
  background: transparent;
  color: var(--c-ink);
  white-space: nowrap;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--e-soft);
}

.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--c-navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-navy-2);
  box-shadow: 0 12px 30px -14px rgba(28, 47, 69, 0.55);
  transform: translateY(-1px);
}

.btn-copper {
  background: var(--c-copper);
  color: #fff;
}
.btn-copper:hover {
  background: var(--c-copper-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -14px rgba(176, 122, 91, 0.55);
}

.btn-ghost {
  border-color: rgba(28, 47, 69, 0.18);
  background: transparent;
  color: var(--c-ink);
}
.btn-ghost:hover {
  border-color: var(--c-navy);
  background: rgba(28, 47, 69, 0.04);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--c-ink);
  border-bottom: 1px solid rgba(28, 47, 69, 0.2);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.link-inline:hover {
  color: var(--c-copper);
  border-color: var(--c-copper);
  gap: 12px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  background: rgba(248, 246, 242, 0.74);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line-soft);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}

.nav.scrolled { padding: 12px 0; background: rgba(248, 246, 242, 0.92); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex; align-items: center;
  gap: 10px;
  height: 54px;
}
.nav-brand img { height: 48px; width: auto; display: block; }
.nav.scrolled .nav-brand { height: 46px; }
.nav.scrolled .nav-brand img { height: 40px; }
@media (max-width: 600px) {
  .nav-brand { height: 44px; }
  .nav-brand img { height: 38px; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--c-line-soft);
  padding: 5px;
  border-radius: var(--r-pill);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  position: relative;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.nav-link:hover { background: rgba(28, 47, 69, 0.05); }
.nav-link.active { background: var(--c-navy); color: #fff; }

/* Dropdown */
.nav-caret { font-size: 9px; margin-left: 2px; opacity: 0.7; }
.nav-item {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: var(--shadow-elev);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--e-soft);
}
.nav-dropdown.nav-dropdown-wide { min-width: 340px; }
.nav-dd-group { padding: 8px 4px 4px; }
.nav-dd-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-copper);
  padding: 0 10px 6px;
  margin: 0;
}
.nav-dd-divider { height: 1px; background: var(--c-line-soft); margin: 8px 10px; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--r-xs);
  font-size: 14px;
  color: var(--c-ink);
  transition: background 0.2s;
}
.nav-dropdown a:hover { background: rgba(28, 47, 69, 0.05); color: var(--c-copper); }
.nav-dropdown a small {
  display: block;
  color: var(--c-ink-soft);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}
.nav-dropdown a .dd-text { display: block; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-soft);
  background: rgba(255, 255, 255, 0.7);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px; background: var(--c-ink);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--c-ink);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(248, 246, 242, 0.98);
  backdrop-filter: blur(28px);
  z-index: 70;
  padding: 100px 28px 40px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--e-soft);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.mobile-menu a.sub {
  font-size: 17px;
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--c-ink-soft);
  padding: 10px 0 10px 16px;
  border-bottom: none;
}
.mm-group { padding: 12px 0; border-bottom: 1px solid var(--c-line-soft); }
.mm-group a { border-bottom: none !important; }
.mm-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-copper); padding: 8px 0; }
.mm-sub-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-taupe); padding: 12px 0 0 16px; }
.mobile-close {
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-soft);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-cta .btn-text { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--c-navy);
  color: #fff;
  padding: 96px 0 32px;
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  margin-top: clamp(60px, 8vw, 120px);
}

.footer a { color: rgba(255, 255, 255, 0.78); transition: color 0.3s; }
.footer a:hover { color: var(--c-champagne); }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
  opacity: 0.95;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14.5px;
  max-width: 360px;
  line-height: 1.6;
}

.footer h5 {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 22px;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14.5px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  gap: 16px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.16); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Cards / surfaces ---------- */

.card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.surface-2 { background: var(--c-bg-2); }
.surface-navy { background: var(--c-navy); color: #fff; }

/* ---------- Image placeholders ---------- */

.media {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-2);
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(176, 122, 91, 0.07) 0,
      rgba(176, 122, 91, 0.07) 2px,
      transparent 2px,
      transparent 16px
    ),
    linear-gradient(180deg, #EEE4D8, #E2D2BE);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-copper-deep);
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 16px;
}
.placeholder .ph-label {
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(176, 122, 91, 0.25);
  text-transform: uppercase;
}

.placeholder.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 2px,
      transparent 2px,
      transparent 16px
    ),
    linear-gradient(180deg, #243a55, #1C2F45);
  color: rgba(255, 255, 255, 0.75);
}
.placeholder.dark .ph-label {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--c-champagne);
}

/* ---------- Hero shells ---------- */

.page-hero {
  padding: 160px 0 80px;
}

.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.page-hero .breadcrumb a:hover { color: var(--c-copper); }

/* ---------- Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--e-soft), transform 0.9s var(--e-soft);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--e-soft), transform 0.8s var(--e-soft);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */

.divider {
  height: 1px;
  background: var(--c-line);
  border: none;
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(176, 122, 91, 0.1);
  color: var(--c-copper-deep);
  letter-spacing: 0.02em;
}

.tag.dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-champagne);
}

.tag.taupe {
  background: rgba(125, 116, 109, 0.12);
  color: var(--c-taupe);
}

.dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  display: inline-block;
}

/* Decorative copper underline */
.underline-copper {
  background-image: linear-gradient(120deg, var(--c-copper), var(--c-copper));
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 92%;
  padding: 0 2px;
}

/* ---------- Ambient background animation (subtle, site-wide) ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-bg::before,
.ambient-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.ambient-bg::before {
  width: 64vw; height: 64vw;
  left: -22vw; top: -28vw;
  background: radial-gradient(circle, rgba(176, 122, 91, 0.18), transparent 65%);
  animation: ambient-drift-a 28s ease-in-out infinite alternate;
}
.ambient-bg::after {
  width: 70vw; height: 70vw;
  right: -28vw; bottom: -32vw;
  background: radial-gradient(circle, rgba(215, 192, 168, 0.18), transparent 65%);
  animation: ambient-drift-b 36s ease-in-out infinite alternate;
}
@keyframes ambient-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, 4vw) scale(1.06); }
  100% { transform: translate(-4vw, 8vw) scale(0.96); }
}
@keyframes ambient-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-5vw, -6vw) scale(1.05); }
  100% { transform: translate(4vw, 6vw) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-bg::before, .ambient-bg::after { animation: none; }
}

/* Ensure all main content sits above the ambient layer */
body > * { position: relative; z-index: 1; }
body > .ambient-bg { z-index: 0; }

/* Nav stays on top always — across every page, no matter what scrolls under it.
   #nav-mount must outrank all sibling body children (which sit at z-index:1),
   otherwise later-in-DOM sections (e.g. the hero) paint over the fixed nav. */
#nav-mount { position: relative; z-index: 1000 !important; }
.nav { z-index: 1000 !important; }
.mobile-menu { z-index: 1001 !important; }

/* Liquid glass — used on video-hero nav + hero elements */
.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Video-hero page: nav uses light glass over aurora background */
body.video-hero-page .nav:not(.scrolled) {
  background: rgba(255,252,248,0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}
body.video-hero-page .nav:not(.scrolled) .nav-link,
body.video-hero-page .nav:not(.scrolled) .nav-brand { color: var(--c-ink) !important; }
body.video-hero-page .nav:not(.scrolled) .nav-link.active { color: #fff !important; }
body.video-hero-page .nav:not(.scrolled) .nav-link:hover { color: var(--c-copper) !important; }
body.video-hero-page .nav:not(.scrolled) .btn-primary {
  background: var(--c-navy) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}
body.video-hero-page .nav:not(.scrolled) .nav-burger span,
body.video-hero-page .nav:not(.scrolled) .nav-burger span::before,
body.video-hero-page .nav:not(.scrolled) .nav-burger span::after { background: var(--c-ink) !important; }

/* LinkedIn pill — used on team cards */
.li-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(28, 47, 69, 0.06);
  color: var(--c-navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s;
}
.li-pill:hover { background: var(--c-navy); color: #fff; }
.li-pill svg { width: 12px; height: 12px; }

/* B&W treatment helper for urban hero placeholders */
.tone-bw { filter: grayscale(1) contrast(1.05); }

/* Italic serif accent — used sparingly for editorial flair */
.serif-italic {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head .sec-head-right { color: var(--c-ink-soft); font-size: 17px; line-height: 1.6; max-width: 540px; }
@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}

/* Grids */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Stat */
.stat-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.stat-label {
  font-size: 14px;
  color: var(--c-ink-soft);
  letter-spacing: 0.02em;
  margin-top: 12px;
}

/* Number ticker container */
.surface-navy .stat-num { color: #fff; }
.surface-navy .stat-label { color: rgba(255, 255, 255, 0.65); }
.surface-navy .eyebrow { color: var(--c-champagne); }
.surface-navy .lede, .surface-navy .muted { color: rgba(255, 255, 255, 0.74); }
.surface-navy h1, .surface-navy h2, .surface-navy h3 { color: #fff; }

/* Pill marker */
.pill-marker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--c-line-soft);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-ink);
  backdrop-filter: blur(8px);
}
.pill-marker .dot { background: var(--c-copper); }

/* ===========================================================
   GLOBAL RESPONSIVE LAYER — phones, foldables, tablets
   Collapses page-specific split & multi-column layouts that
   ship without their own mobile breakpoints. Mobile-first
   priority: most of the world views this on a phone.
=========================================================== */

/* Never let anything cause horizontal scroll.
   Use `clip` (not `hidden`) so we don't create a scroll container —
   `hidden` would break the home hero's position:sticky scroll animation. */
html, body { max-width: 100%; overflow-x: clip; }

/* ---- Foldables & small tablets (≤ 900px) ---- */
@media (max-width: 900px) {
  /* Side-by-side split layouts → stack */
  .biz-card,
  .leader-feature,
  .college,
  .founder-block,
  .founder-spot,
  .practice,
  .srv-row,
  .contact-grid,
  .culture {
    grid-template-columns: 1fr !important;
  }

  /* Media halves of those splits: drop forced min-heights, keep ratio */
  .leader-portrait { min-height: 0 !important; aspect-ratio: 16 / 11; }
  .college-media   { min-height: 0 !important; aspect-ratio: 16 / 11; }

  /* Three/four-up stat & feature grids → two-up */
  .ppp-stage,
  .caps,
  .ev,
  .ped-grid,
  .college-stats,
  .biz-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Inline editorial intro splits collapse */
  [style*="1fr 1.4fr"],
  [style*="1fr 1.5fr"],
  [style*="1.1fr 1fr"],
  [style*="1.2fr 1fr"],
  [style*="1.4fr"][style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Phones (≤ 600px) ---- */
@media (max-width: 600px) {
  /* Everything multi-column → single column */
  .ppp-stage,
  .caps,
  .ev,
  .ped-grid,
  .college-stats,
  .biz-grid,
  .practice,
  .culture,
  .form-grid,
  .srv-row ul {
    grid-template-columns: 1fr !important;
  }

  /* Keep compact stat strips two-up so they don't get lonely */
  .college-stats { grid-template-columns: repeat(3, 1fr) !important; }

  /* Tighten oversized section padding on small screens */
  .section { padding: clamp(56px, 14vw, 88px) 0; }

  /* Hero shells: trim top padding under the fixed nav */
  .page-hero { padding: 120px 0 56px; }

  /* Cards & panels: a touch less internal padding */
  .leader-body,
  .college-body { padding: 32px 24px !important; }

  /* Buttons go full-width-ish and wrap cleanly in hero CTA rows */
  .hero-cta, .cta-row { flex-wrap: wrap; }
}

/* ---- Small phones (≤ 400px) ---- */
@media (max-width: 400px) {
  .college-stats { grid-template-columns: 1fr 1fr !important; }
  .container, .container-narrow { padding: 0 18px; }
}

/* ---- Defensive: media slots & grid children never force overflow ---- */
.nm-media-slot,
.college-media,
.leader-portrait,
.media,
.biz-card img,
.proj-img { max-width: 100%; }

/* Grid split children must be allowed to shrink below content size */
.biz-card > *, .leader-feature > *, .college > *,
.founder-block > *, .founder-spot > *, .practice > *,
.srv-row > *, .contact-grid > * { min-width: 0; }

@media (max-width: 700px) {
  /* Headings carrying a hard pixel width from a past direct-edit must
     reflow — override the width so they can't force a wide grid track. */
  .container h1[style*="width:"],
  .container h2[style*="width:"],
  .container h3[style*="width:"],
  .container h4[style*="width:"] {
    width: auto !important;
    max-width: 100% !important;
  }
  /* Any other element with a hard pixel width: cap to viewport. */
  .container [style*="width:"][style*="px"] { max-width: 100%; }
  .container img[style*="width:"] { max-width: 100% !important; }
  /* Section-header columns must be allowed to shrink. */
  .sec-head > * { min-width: 0; }
  /* Collapse the Vision biz grid fully on phones. */
  .biz-grid { grid-template-columns: 1fr !important; }
}

/* Vision biz-card media must always stay inside its card. */
.biz-media { min-width: 0; overflow: hidden; max-width: 100%; }
.biz-media img { width: 100%; height: 100%; object-fit: cover; max-width: 100%; }
@media (max-width: 900px) {
  .biz-card { grid-template-columns: 1fr !important; }
  .biz-media { width: 100% !important; min-width: 0 !important; min-height: 220px; }
}
