/* =====================================================================
   LEVANTE SOLICITORS - Core Stylesheet
   Brand: Navy #0E2558 · Gold #C99F50 · Charcoal #2A2A2B
   Type:  Fraunces (display serif) · Inter (body/UI)
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --navy:        #0E2558;
  --navy-700:    #142e6b;
  --navy-600:    #1c3a82;
  --navy-900:    #081634;
  --navy-950:    #050e22;
  --gold:        #C99F50;
  --gold-light:  #ddbd7e;
  --gold-deep:   #ab8338;
  --charcoal:    #2A2A2B;
  --ink:         #1b2436;
  --cream:       #F8F6F1;
  --cream-200:   #efe9dd;
  --sand:        #f3eee3;
  --white:       #ffffff;
  --muted:       #5d6473;
  --line:        rgba(14, 37, 88, 0.12);
  --line-light:  rgba(255, 255, 255, 0.14);

  --shadow-sm:   0 2px 10px rgba(8, 22, 52, 0.06);
  --shadow-md:   0 18px 40px -18px rgba(8, 22, 52, 0.28);
  --shadow-lg:   0 40px 80px -30px rgba(8, 22, 52, 0.45);
  --shadow-gold: 0 18px 40px -16px rgba(201, 159, 80, 0.45);

  --ff-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --ff-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius:     18px;
  --radius-lg:  28px;
  --radius-sm:  10px;
  --maxw:       1240px;
  --gutter:     clamp(20px, 5vw, 64px);

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --header-h:   84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-smooth { scroll-behavior: auto; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.08; color: var(--navy); letter-spacing: -0.01em; }
.display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 4.3vw, 3.3rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--muted); line-height: 1.6; }
.serif-italic { font-style: italic; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before {
  content: ""; width: 30px; height: 1.5px; background: var(--gold);
  display: inline-block;
}
.eyebrow--center::after {
  content: ""; width: 30px; height: 1.5px; background: var(--gold); display: inline-block;
}
.eyebrow--light { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: 100px; font-weight: 600; font-size: 0.97rem;
  letter-spacing: 0.01em; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s, color .4s;
  overflow: hidden; isolation: isolate; will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, var(--gold-light), var(--gold));
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); color: var(--navy-950); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); transform: translateY(-3px); }
.btn-light { background: rgba(255,255,255,.08); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-light); backdrop-filter: blur(6px); }
.btn-light:hover { background: var(--white); color: var(--navy-900); transform: translateY(-3px); }
.btn-lg { padding: 19px 38px; font-size: 1.02rem; }

/* Text link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--navy);
  position: relative; padding-bottom: 3px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light { color: var(--cream); }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: height .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled {
  height: 70px; background: rgba(248, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 30px -22px rgba(8,22,52,.5); border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; z-index: 2; }
.brand img { height: 30px; width: auto; transition: opacity .4s; }
.brand .logo-dark { display: none; }
.brand .logo-light { display: block; }
.site-header.scrolled .brand .logo-dark { display: block; }
.site-header.scrolled .brand .logo-light { display: none; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 16px; font-size: 0.95rem; font-weight: 500;
  color: var(--cream); transition: color .35s;
}
.site-header.scrolled .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold-light); }
.site-header.scrolled .nav a.active { color: var(--gold-deep); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 12px 24px; font-size: .9rem; }
.site-header:not(.scrolled) .header-cta .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-light); }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 46px; height: 46px; position: relative; z-index: 110; border-radius: 50%; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s, background .3s; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
body.nav-open .nav-toggle span { background: var(--cream); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* While the menu is open, keep the header (and its close X) above the panel
   so there is always a visible, tappable way to close it. */
body.nav-open .site-header { z-index: 120; background: transparent; box-shadow: none; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.nav-open .brand .logo-light { display: block; }
body.nav-open .brand .logo-dark { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--cream); overflow: hidden; padding-top: var(--header-h);
  background: radial-gradient(120% 130% at 80% -10%, var(--navy-700) 0%, var(--navy) 42%, var(--navy-950) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grain { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; }
.hero__glow--gold { width: 540px; height: 540px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(201,159,80,.34), transparent 70%); }
.hero__glow--blue { width: 620px; height: 620px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(40,80,180,.30), transparent 70%); }
.hero .wrap { position: relative; z-index: 3; }
.hero__inner { max-width: 880px; padding-block: 40px; }
.hero h1 { color: var(--white); margin-block: 22px 26px; }
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero__lead { color: rgba(241,238,231,.82); font-size: clamp(1.12rem, 1.8vw, 1.45rem); max-width: 60ch; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(241,238,231,.6);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 24px; height: 38px; border: 1.5px solid rgba(241,238,231,.4); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 3px; background: var(--gold); transform: translateX(-50%); animation: scrollwheel 1.8s var(--ease) infinite; }
@keyframes scrollwheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 12px); } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Hero stat strip */
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line-light); }
.stat__num { font-family: var(--ff-display); font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--gold-light); line-height: 1; }
.stat__label { font-size: .9rem; color: rgba(241,238,231,.7); margin-top: 8px; max-width: 18ch; }

/* =====================================================================
   PAGE HERO (interior pages)
   ===================================================================== */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + 70px); padding-bottom: 90px;
  color: var(--cream); overflow: hidden;
  background: radial-gradient(120% 140% at 85% -20%, var(--navy-700), var(--navy) 48%, var(--navy-950));
}
.page-hero__grain { position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); }
.page-hero__glow { position: absolute; width: 480px; height: 480px; right: -120px; top: -160px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(201,159,80,.30), transparent 70%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-block: 20px 18px; }
.page-hero h1 .accent { color: var(--gold-light); font-style: italic; }
.page-hero__lead { color: rgba(241,238,231,.8); max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: rgba(241,238,231,.6); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { opacity: .5; }

/* =====================================================================
   GENERIC SECTION PIECES
   ===================================================================== */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; }

.bg-cream { background: var(--cream); }
.bg-sand  { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-navy  { background: var(--navy); color: var(--cream); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .lead { color: rgba(241,238,231,.78); }

/* Decorative divider rule */
.rule { height: 1px; background: var(--line); border: 0; }

/* =====================================================================
   GRID + CARDS
   ===================================================================== */
.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 34px; transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0);
  transform-origin: left; transition: transform .55s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-700)); color: var(--gold-light);
  margin-bottom: 24px; box-shadow: var(--shadow-sm); transition: transform .55s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; }
.card__num { font-family: var(--ff-display); font-size: 1rem; color: var(--gold-deep); letter-spacing: .1em; margin-bottom: 16px; }

/* Value cards (navy bg variant) */
.value-card { background: linear-gradient(160deg, var(--navy-700), var(--navy)); color: var(--cream); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 40px 34px; position: relative; overflow: hidden; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.value-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(201,159,80,.22), transparent 70%); transition: transform .7s var(--ease); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.value-card:hover::before { transform: scale(1.4); }
.value-card h3 { color: var(--white); }
.value-card p { color: rgba(241,238,231,.78); }
.value-card .card__icon { background: rgba(201,159,80,.14); color: var(--gold-light); }

/* =====================================================================
   FEATURE / SPLIT
   ===================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 86px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__body .eyebrow { margin-bottom: 22px; }
.split__body h2 { margin-bottom: 22px; }
.feature-list { margin-top: 30px; display: grid; gap: 4px; }
.feature-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .fi-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; margin-top: 3px; }
.feature-list .fi-icon svg { width: 14px; height: 14px; }
.feature-list strong { display: block; color: var(--navy); font-family: var(--ff-display); font-weight: 500; font-size: 1.18rem; margin-bottom: 3px; }
.feature-list span { color: var(--muted); font-size: .98rem; }

/* Media frame */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img, .media-frame svg { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 5 / 4; }
.media-badge {
  position: absolute; left: 24px; bottom: 24px; right: 24px; z-index: 3;
  background: rgba(8,22,52,.66); backdrop-filter: blur(10px); border: 1px solid var(--line-light);
  border-radius: 16px; padding: 20px 24px; color: var(--cream);
}
.media-badge .h3 { color: var(--white); font-size: 1.25rem; }
.media-badge p { color: rgba(241,238,231,.78); font-size: .92rem; margin-top: 4px; }

/* Floating accent card on media */
.float-card {
  position: absolute; z-index: 4; background: var(--white); border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--shadow-lg); display: flex; gap: 16px; align-items: center; max-width: 280px;
}
.float-card .fc-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(150deg, var(--gold), var(--gold-deep)); color: var(--navy-900); display: grid; place-items: center; flex: 0 0 auto; }
.float-card strong { display: block; font-family: var(--ff-display); color: var(--navy); font-size: 1.5rem; line-height: 1; }
.float-card span { font-size: .82rem; color: var(--muted); }
.float-card--br { right: -22px; bottom: 34px; }
.float-card--tl { left: -22px; top: 34px; }

/* =====================================================================
   SECTORS MARQUEE / PILLS
   ===================================================================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 16px; font-family: var(--ff-display); font-size: clamp(1.3rem, 2.6vw, 2.1rem); color: var(--navy); opacity: .55; white-space: nowrap; }
.marquee__item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.bg-navy .marquee__item { color: var(--cream); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sector cards */
.sector { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; padding: 30px; color: var(--cream); isolation: isolate; }
.sector__art { position: absolute; inset: 0; z-index: -2; }
.sector__art svg { width: 100%; height: 100%; }
.sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,22,52,.05) 0%, rgba(8,22,52,.55) 55%, rgba(5,14,34,.92) 100%); transition: opacity .5s; }
.sector__icon { position: absolute; top: 28px; left: 30px; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid var(--line-light); display: grid; place-items: center; color: var(--gold-light); backdrop-filter: blur(6px); }
.sector__icon svg { width: 26px; }
.sector__body { transform: translateY(8px); transition: transform .5s var(--ease); }
.sector:hover .sector__body { transform: translateY(0); }
.sector h3 { color: var(--white); font-size: 1.5rem; }
.sector p { color: rgba(241,238,231,.82); font-size: .95rem; margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.sector:hover p { max-height: 120px; opacity: 1; margin-top: 10px; }

/* =====================================================================
   REGULATORS STRIP
   ===================================================================== */
.reg-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.reg-pill {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 24px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.reg-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.reg-pill strong { font-family: var(--ff-display); color: var(--navy); font-size: 1.15rem; }
.reg-pill span { font-size: .78rem; color: var(--muted); }
.bg-navy .reg-pill { background: rgba(255,255,255,.05); border-color: var(--line-light); }
.bg-navy .reg-pill strong { color: var(--white); }
.bg-navy .reg-pill span { color: rgba(241,238,231,.65); }

/* =====================================================================
   QUOTE / FOUNDER
   ===================================================================== */
.quote-block { position: relative; padding: clamp(40px, 6vw, 80px); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 150% at 100% 0%, var(--navy-700), var(--navy) 50%, var(--navy-950)); color: var(--cream); }
.quote-block::before { content: "\201C"; position: absolute; top: -30px; left: 30px; font-family: var(--ff-display); font-size: 16rem; color: rgba(201,159,80,.16); line-height: 1; }
.quote-block__grain { position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); }
.quote-block .wrap-q { position: relative; z-index: 2; max-width: 880px; }
.quote-text { font-family: var(--ff-display); font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.32; color: var(--white); font-weight: 400; }
.quote-author { margin-top: 32px; display: flex; align-items: center; gap: 18px; }
.quote-author .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(150deg, var(--gold), var(--gold-deep)); color: var(--navy-900); display: grid; place-items: center; font-family: var(--ff-display); font-size: 1.4rem; flex: 0 0 auto; }
.quote-author strong { color: var(--white); font-weight: 600; }
.quote-author span { display: block; color: var(--gold-light); font-size: .9rem; }

/* =====================================================================
   PEOPLE
   ===================================================================== */
.person-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.person-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.person-card__photo { aspect-ratio: 4 / 4.4; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); }
.person-card__photo svg { width: 100%; height: 100%; }
.person-card__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-display); font-size: 5rem; color: rgba(255,255,255,.12); }
.person-card__role { position: absolute; left: 20px; bottom: 20px; background: rgba(201,159,80,.92); color: var(--navy-900); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px; }
.person-card__body { padding: 26px 28px 30px; }
.person-card__body h3 { margin-bottom: 4px; }
.person-card__body .muted { color: var(--gold-deep); font-weight: 600; font-size: .92rem; }
.person-card__body p { color: var(--muted); margin-top: 14px; font-size: .98rem; }
.person-social { display: flex; gap: 10px; margin-top: 20px; }
.person-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--navy); transition: background .35s, color .35s, transform .35s; }
.person-social a:hover { background: var(--navy); color: var(--gold-light); transform: translateY(-3px); }
.person-social svg { width: 17px; }

/* =====================================================================
   PRACTICE AREAS (detailed)
   ===================================================================== */
.practice {
  display: grid; grid-template-columns: 80px 1fr; gap: 30px; padding: clamp(32px, 4vw, 52px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s; position: relative; overflow: hidden;
}
.practice:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.practice__index { font-family: var(--ff-display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.practice--featured { background: linear-gradient(155deg, var(--navy-700), var(--navy) 60%, var(--navy-950)); color: var(--cream); border-color: var(--line-light); }
.practice--featured h3 { color: var(--white); }
.practice--featured .practice__index { color: var(--gold-light); }
.practice--featured .practice__lead { color: rgba(241,238,231,.82); }
.practice--featured .practice__item { border-color: var(--line-light); }
.practice--featured .practice__item strong { color: var(--white); }
.practice--featured .practice__item span { color: rgba(241,238,231,.72); }
.practice--featured .pi-dot { background: var(--gold-light); }
.practice--featured::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,159,80,.18), transparent 70%); }
.practice__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.tag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); background: var(--gold); padding: 5px 12px; border-radius: 100px; }
.practice__lead { color: var(--muted); margin-bottom: 24px; max-width: 60ch; }
.practice__items { display: grid; gap: 2px; position: relative; z-index: 1; }
.practice__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.pi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.practice__item strong { color: var(--navy); font-family: var(--ff-display); font-weight: 500; font-size: 1.15rem; }
.practice__item span { display: block; color: var(--muted); font-size: .96rem; margin-top: 3px; }

/* =====================================================================
   PROCESS / STEPS
   ===================================================================== */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 34px 0; border-top: 1px solid var(--line); position: relative; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { counter-increment: step; font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold-deep); width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .5s var(--ease), color .5s, border-color .5s; }
.step:hover .step__num { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 60ch; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(130% 160% at 0% 0%, var(--navy-700), var(--navy) 50%, var(--navy-950)); color: var(--cream); padding: clamp(48px, 8vw, 96px); text-align: center; }
.cta-band__grain { position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); }
.cta-band__glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(201,159,80,.3), transparent 70%); right: -120px; bottom: -160px; }
.cta-band .wrap-c { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: var(--white); margin-bottom: 20px; }
.cta-band p { color: rgba(241,238,231,.8); margin-bottom: 36px; }
.cta-band .hero__actions { justify-content: center; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 20px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.info-card .ic-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(150deg, var(--navy), var(--navy-700)); color: var(--gold-light); display: grid; place-items: center; }
.info-card .ic-icon svg { width: 24px; }
.info-card h4 { font-family: var(--ff-body); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.info-card p, .info-card a { color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.info-card a:hover { color: var(--gold-deep); }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: .01em; }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color .35s, box-shadow .35s, background .35s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(201,159,80,.14);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.1); }
.field__error { color: #c0392b; font-size: .8rem; margin-top: 6px; display: none; }
.field.invalid .field__error { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold-deep); flex: 0 0 auto; }
.form-status { display: none; padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; align-items: center; gap: 10px; }
.form-status.show { display: flex; }
.form-status.success { background: rgba(46,160,87,.12); color: #1e7a3c; border: 1px solid rgba(46,160,87,.25); }
.form-status.error { background: rgba(192,57,43,.1); color: #b3382b; border: 1px solid rgba(192,57,43,.22); }
.btn-submit { width: 100%; justify-content: center; }
.btn-submit.loading { pointer-events: none; opacity: .7; }
.btn-submit .spinner { width: 18px; height: 18px; border: 2px solid rgba(8,22,52,.3); border-top-color: var(--navy-900); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-label, .btn-submit.loading svg.arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Map frame */
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 320px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-950); color: rgba(241,238,231,.7); position: relative; overflow: hidden; }
.site-footer__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); background: radial-gradient(circle, rgba(201,159,80,.14), transparent 70%); left: -160px; top: -200px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-block: clamp(56px, 8vw, 84px); position: relative; z-index: 2; }
.footer-brand img { height: 34px; margin-bottom: 22px; }
.footer-brand p { max-width: 34ch; font-size: .96rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--ff-body); color: var(--gold-light); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: .96rem; transition: color .3s, padding .3s; position: relative; }
.footer-col a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .96rem; align-items: flex-start; }
.footer-contact svg { width: 17px; color: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .4s, color .4s, transform .4s, border-color .4s; }
.footer-social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); border-color: var(--gold); }
.footer-social svg { width: 18px; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .85rem; position: relative; z-index: 2; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* =====================================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }
[data-delay="6"] { transition-delay: .48s; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transition: width .1s linear; }

/* Page transition overlay */
.page-veil { position: fixed; inset: 0; z-index: 300; background: var(--navy-950); transform: scaleY(1); transform-origin: top; pointer-events: none; transition: transform .7s var(--ease); }
body.loaded .page-veil { transform: scaleY(0); transform-origin: bottom; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .page-veil { display: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero__stats { gap: 22px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions, .footer-bottom { }
}

/* =====================================================================
   MOBILE NAV PANEL
   ===================================================================== */
.mobile-nav {
  position: fixed; inset: 0; z-index: 105; background: var(--navy-950);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 60px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .65s var(--ease); pointer-events: none;
  overflow-x: clip;
}
/* Hide the mobile panel entirely on desktop (placed after base rules so the cascade is correct) */
@media (min-width: 881px) { .mobile-nav { display: none; } }
body.nav-open .mobile-nav { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.mobile-nav > a { font-family: var(--ff-display); font-size: clamp(2rem, 8vw, 3rem); color: var(--cream); padding: 12px 0; border-bottom: 1px solid var(--line-light); display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateX(30px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s; }
.mobile-nav > a span { font-family: var(--ff-body); font-size: .9rem; color: var(--gold); }
body.nav-open .mobile-nav > a { opacity: 1; transform: none; }
body.nav-open .mobile-nav > a:nth-child(1) { transition-delay: .15s; }
body.nav-open .mobile-nav > a:nth-child(2) { transition-delay: .22s; }
body.nav-open .mobile-nav > a:nth-child(3) { transition-delay: .29s; }
body.nav-open .mobile-nav > a:nth-child(4) { transition-delay: .36s; }
body.nav-open .mobile-nav > a:nth-child(5) { transition-delay: .43s; }
.mobile-nav > a:hover { color: var(--gold-light); }
.mobile-nav__footer { margin-top: 40px; display: flex; gap: 16px; justify-content: center; opacity: 0; transition: opacity .5s .5s; }
body.nav-open .mobile-nav__footer { opacity: 1; }
.mobile-nav__footer a { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line-light); display: grid; place-items: center; font-size: 0; padding: 0; color: var(--cream); flex: 0 0 auto; }
.mobile-nav__footer a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.mobile-nav__footer a svg { width: 18px; opacity: 1; transform: none; }

/* =====================================================================
   ENHANCEMENT LAYER - photography, motion, editorial sections (v2)
   ===================================================================== */

/* ---------- Photo component with graceful vector fallback ---------- */
.photo { position: relative; overflow: hidden; background: var(--navy-900); }
.photo__fallback { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.photo > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.photo > img.is-missing { display: none; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); pointer-events: none; }

/* Ken Burns slow drift */
.kenburns > img, .kenburns .photo__fallback { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.12) translate(-1.5%, -1.5%); } }

/* Image clip reveal on scroll */
/* Clip lives on the CHILD media so the observed box keeps its area (IntersectionObserver
   ignores clip-path; clipping the parent would collapse its intersection rect to zero). */
[data-img-reveal] > img, [data-img-reveal] > .photo__fallback { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.1s var(--ease-out), transform 1.5s var(--ease-out); will-change: clip-path, transform; }
[data-img-reveal].in > img, [data-img-reveal].in > .photo__fallback { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Hover zoom utility for photos in frames/cards */
.zoomable > img, .zoomable .photo__fallback { transition: transform 1.1s var(--ease); }
.zoomable:hover > img, .zoomable:hover .photo__fallback { transform: scale(1.07); }

/* ---------- Tilt (JS-driven) ---------- */
[data-tilt] { transform-style: preserve-3d; transition: transform .4s var(--ease); will-change: transform; }
[data-tilt] .tilt-pop { transform: translateZ(40px); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 400; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: var(--gold-light); transform: translate(-50%, -50%); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(201,159,80,.7); transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor-ring.hovering { width: 64px; height: 64px; background: rgba(201,159,80,.10); border-color: transparent; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } body.has-cursor { cursor: auto; } }

/* ---------- Kinetic word reveal (hero / headings) ---------- */
.split-words .w { display: inline-block; overflow: hidden; overflow: clip; overflow-clip-margin: 0.16em; vertical-align: top; line-height: inherit; }
.split-words .w > i { display: inline-block; font-style: inherit; transform: translateY(115%); transition: transform .95s var(--ease); }
.split-words.words-in .w > i { transform: translateY(0); }

/* ---------- SVG line draw ---------- */
[data-draw] path, [data-draw] circle, [data-draw] line { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.6s var(--ease-out); }
[data-draw].in path, [data-draw].in circle, [data-draw].in line { stroke-dashoffset: 0; }

/* ---------- Decorative floating blobs ---------- */
.deco-blob { position: absolute; z-index: 0; opacity: .5; pointer-events: none; filter: blur(2px); animation: floaty 14s ease-in-out infinite; }
.deco-blob--sm { width: 90px; animation-duration: 10s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(8deg); } }

/* spin slow */
.spin-slow { animation: spinslow 26s linear infinite; transform-origin: center; }
@keyframes spinslow { to { transform: rotate(360deg); } }

/* ---------- BENTO GALLERY ("Inside the firm") ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: clamp(12px, 1.6vw, 20px); }
.bento .photo { border-radius: var(--radius); }
.bento .b-tall { grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }
.bento .b-cap { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 30px; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); color: var(--cream); border-radius: var(--radius); }
.bento .b-cap h3 { color: #fff; }
.bento .b-cap p { color: rgba(241,238,231,.78); font-size: .98rem; }
.b-photo-cap { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 3; color: var(--cream); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.bento .photo::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 40%, rgba(5,14,34,.6)); opacity: .65; transition: opacity .5s; }
.bento .photo:hover::before { opacity: .9; }
.bento .photo:hover .b-photo-cap { opacity: 1; transform: none; }
@media (max-width: 880px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .bento .b-cap, .bento .b-wide { grid-column: span 2; } .bento .b-tall { grid-row: span 1; } }

/* ---------- STAT BAND with image ---------- */
.stat-band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.stat-band__media { position: relative; min-height: 420px; }
.stat-band__body { background: radial-gradient(120% 140% at 100% 0%, var(--navy-700), var(--navy) 55%, var(--navy-950)); color: var(--cream); padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.stat-band__body .eyebrow { margin-bottom: 18px; }
.stat-band__body h2 { color: #fff; margin-bottom: 30px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.stat-grid .stat__num { color: var(--gold-light); }
.stat-grid .stat__label { color: rgba(241,238,231,.72); }
@media (max-width: 880px) { .stat-band { grid-template-columns: 1fr; } .stat-band__media { min-height: 280px; } }

/* ---------- TIMELINE / MILESTONES ---------- */
.timeline { position: relative; display: grid; gap: 8px; padding-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 18px 0; position: relative; }
.tl-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold-deep); z-index: 1; margin-left: 0; box-shadow: var(--shadow-sm); }
.tl-dot svg { width: 18px; }
.bg-navy .tl-dot { background: var(--navy-900); }
.tl-item h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tl-item p { color: var(--muted); font-size: .98rem; }
.bg-navy .tl-item p { color: rgba(241,238,231,.74); }

/* ---------- INSIGHTS / EDITORIAL CARDS ---------- */
.insight-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.insight-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.insight-card__media { aspect-ratio: 16/10; position: relative; }
.insight-card__media .tag { position: absolute; left: 16px; top: 16px; z-index: 3; }
.insight-card__body { padding: 26px 26px 30px; }
.insight-card__meta { font-size: .8rem; color: var(--gold-deep); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.insight-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.insight-card p { color: var(--muted); font-size: .96rem; }
.insight-card .link-arrow { margin-top: 18px; }

/* ---------- INDUSTRIES rail ---------- */
.industry { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: flex; align-items: flex-end; padding: 24px; color: var(--cream); }
.industry .photo { position: absolute; inset: 0; z-index: 0; }
.industry::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,22,52,.15), rgba(5,14,34,.85)); }
.industry__label { position: relative; z-index: 2; }
.industry__label strong { display: block; font-family: var(--ff-display); font-size: 1.3rem; color: #fff; }
.industry__label span { font-size: .85rem; color: rgba(241,238,231,.78); }

/* ---------- Section number watermark ---------- */
.sec-num { font-family: var(--ff-display); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; color: var(--navy); opacity: .05; position: absolute; top: -10px; right: 4%; z-index: 0; pointer-events: none; }
.bg-navy .sec-num { color: #fff; opacity: .06; }

/* ---------- Practice photo thumb ---------- */
.practice__thumb { width: 100%; aspect-ratio: 21/8; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 26px; }
@media (max-width: 880px) { .practice__thumb { aspect-ratio: 16/9; } }
.practice--featured .practice__thumb { box-shadow: var(--shadow-md); }

/* ---------- Marquee variant (subtle, smaller) ---------- */
.marquee--sm .marquee__item { font-size: clamp(1rem, 2vw, 1.5rem); opacity: .4; }

/* Pull existing reveals above decorative layers */
.section > .wrap { position: relative; z-index: 1; }

/* Reduced motion: disable continuous animations */
@media (prefers-reduced-motion: reduce) {
  .kenburns > img, .kenburns .photo__fallback, .deco-blob, .spin-slow { animation: none !important; }
  .split-words .w > i { transform: none !important; }
  [data-img-reveal] > img, [data-img-reveal] > .photo__fallback { clip-path: none !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-cursor { cursor: auto !important; }
}

/* ---------- Photo overlays inside already-positioned containers ---------- */
.hero__photo { position: absolute; inset: 0; z-index: 0; opacity: .32; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,52,.45) 0%, rgba(5,14,34,.85) 90%); }

.page-hero__photo { position: absolute; inset: 0; z-index: 0; opacity: .26; overflow: hidden; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,22,52,.7), rgba(5,14,34,.82)); }

.sector__art .photo__fallback { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sector__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.sector:hover .sector__art img, .sector:hover .sector__art .photo__fallback { transform: scale(1.07); }

.cta-band__photo { position: absolute; inset: 0; z-index: 0; opacity: .22; overflow: hidden; }
.cta-band__photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .wrap-c, .cta-band__grain, .cta-band__glow { position: relative; z-index: 2; }

/* ---------- Person card photo (with fallback) ---------- */
.person-card__photo .photo__fallback { position: absolute; inset: 0; background-size: cover; background-position: center top; z-index: 0; }
.person-card__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1; transition: transform 1.1s var(--ease); }
.person-card:hover .person-card__photo > img, .person-card:hover .person-card__photo .photo__fallback { transform: scale(1.05); }
.person-card__role { z-index: 2; }

/* ---------- Careers split image ---------- */
.careers-media { aspect-ratio: 4/3; }
@media (max-width: 880px) { .careers-media { aspect-ratio: 16/10; } }

/* =====================================================================
   MOBILE / TOUCH REFINEMENTS
   ===================================================================== */

/* Stop off-screen scroll-reveal elements (translateX) and negative-offset
   decorative blobs from creating a horizontal scrollbar. The page scrolls
   on <html>, so the guard must live here as well as on <body>. clip (not
   hidden) avoids turning the root into a scroll container. */
html { overflow-x: clip; }

/* Touch devices cannot hover: reveal "show more" content by default so
   sector descriptions and gallery captions are never hidden. Triggered on
   small viewports too, since a phone-width layout cannot rely on hover. */
@media (hover: none), (pointer: coarse), (max-width: 880px) {
  .sector__body { transform: none; }
  .sector p { max-height: none; opacity: 1; margin-top: 10px; }
  .bento .photo::before { opacity: .85; }
  .bento .photo .b-photo-cap { opacity: 1; transform: none; }
}

/* Genuine touch devices: drop the lift-on-hover so taps do not leave cards
   stuck in a raised state. */
@media (hover: none), (pointer: coarse) {
  .card:hover, .value-card:hover, .person-card:hover, .insight-card:hover,
  .practice:hover, .reg-pill:hover, .info-card:hover { transform: none; }
}

/* Hero: reclaim vertical space on phones and drop the scroll cue that
   overlapped the stat strip. */
@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: 60px; }
  .hero__inner { padding-block: 14px; max-width: 100%; }
  .hero__scroll { display: none; }
  .hero__stats { margin-top: 40px; padding-top: 28px; gap: 26px 32px; }
}

/* Stacked, full-width actions on phones */
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 30px; }
  .cta-band .hero__actions { align-items: stretch; }
  .btn-lg { padding: 16px 28px; }
  .reg-strip { gap: 10px; }
  .footer-bottom { justify-content: flex-start; }
}

/* Smallest screens: ease the display type and gutters so headings
   do not become tall walls of text. */
@media (max-width: 400px) {
  body { font-size: 16px; }
  .display { font-size: clamp(2.1rem, 8.6vw, 2.7rem); }
  .h2 { font-size: clamp(1.7rem, 7.4vw, 2.25rem); }
  .wrap { padding-inline: 18px; }
  .card { padding: 30px 24px; }
  .quote-text { font-size: clamp(1.35rem, 6vw, 1.7rem); }
}

/* =====================================================================
   RESPONSIVE + MOBILE FIXES (v3)
   ===================================================================== */

/* ---------- Minimal footer (logo + social + contact only) ---------- */
.footer-top.is-minimal { grid-template-columns: 1.3fr 1fr; align-items: start; gap: clamp(32px, 6vw, 64px); }
.footer-bottom { justify-content: center; text-align: center; }
@media (max-width: 700px) {
  .footer-top.is-minimal { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Mobile menu social icons: self-contained, centered ---------- */
.mobile-nav__footer { justify-content: center; gap: 16px; margin-top: 44px; }
.mobile-nav__footer a {
  width: 48px; height: 48px; flex: 0 0 auto; padding: 0; margin: 0; border-bottom: 0;
  border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line-light);
  display: grid; place-items: center; opacity: 1; transform: none; transition: background .35s, color .35s, transform .35s;
}
.mobile-nav__footer a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.mobile-nav__footer a svg { width: 19px; height: 19px; }

/* ---------- Hover-reveal content: always visible on touch / small screens ---------- */
@media (max-width: 900px) {
  /* Sector cards: show description by default (no hover on touch) */
  .sector__body { transform: none; }
  .sector p { max-height: 200px; opacity: 1; margin-top: 10px; overflow: visible; }
  /* Bento captions: always visible */
  .b-photo-cap { opacity: 1; transform: none; }
  .bento .photo::before { opacity: .82; }
}

/* ---------- Hero on small screens: hide scroll cue, tame height + type ---------- */
@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 20px); padding-bottom: 64px; }
  .hero__inner { padding-block: 16px 8px; }
  .hero__scroll { display: none; }
  .hero__stats { margin-top: 36px; padding-top: 26px; gap: 26px 34px; }
  .page-hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 60px; }
}

/* ---------- Type + spacing scaling for phones ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .display { font-size: clamp(2.1rem, 8.6vw, 2.9rem); line-height: 1.06; }
  .h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .lead { font-size: 1.08rem; }
  .section { padding-block: clamp(56px, 14vw, 84px); }
  .hero__actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 20px 26px; }
  .stat__num { font-size: 2rem; }
  /* hide decorative floating blobs on phones (they can overhang and clutter) */
  .deco-blob { display: none; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .display { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .btn-lg { padding: 16px 26px; font-size: .96rem; }
  .practice { padding: 24px 20px; }
}

/* ---------- Never allow sideways scroll ---------- */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- Contact: form first, contact details last (all breakpoints) ---------- */
.contact-grid > *:nth-child(1) { order: 2; }  /* contact details -> last */
.contact-grid > *:nth-child(2) { order: 1; }  /* form -> first */
