/* Avion Consulting — Landing page (modernized direction) */
@import url("assets/colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); overflow-x: clip; }
body { font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

/* ============ Layout primitives ============ */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container--wide { max-width: 1380px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tint { background: var(--paper-tint); }

/* Brand-attribute highlight — the four "Avion difference" words (Rigorous,
   Seasoned, Tailored, Collaborative). Quiet treatment: weight shift + thin
   sky-blue underline. Reads as emphasis, not as a tag. */
.brand-word {
  font-weight: 700;
  color: var(--avion-navy);
}
.section--spotlight .brand-word,
.section--navy .brand-word,
.section--dark .brand-word,
.closing-cta .brand-word,
.site-footer .brand-word {
  color: #fff;
}
.section--navy { background: var(--avion-navy); color: #fff; }
.section--dark { background: #0f1233; color: #fff; }

/* ============ Avion brand pillars row (shared across practice pages) ============ */
.avion-pillars {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.avion-pillars li {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px 9px 12px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--avion-navy);
  transition: border-color 220ms var(--ease-standard), transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard);
}
.avion-pillars li:hover {
  border-color: var(--avion-sky-1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45,46,130,0.06);
}
.avion-pillars__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--avion-blue);
  flex-shrink: 0;
}
.avion-pillars__icon svg { width: 18px; height: 18px; display: block; }

/* Auto-applied underline for the four pillar words wherever they appear
   in body copy on practice-area pages. Wraps inherited font weight/color
   so it works inside headings, lede, body, etc. */
.brand-pillar-word {
  font-weight: 700;
}
.section--navy .brand-pillar-word,
.section--spotlight .brand-pillar-word,
.section--dark .brand-pillar-word,
.closing-cta .brand-pillar-word {
  color: #fff;
}

/* ============ Type ============ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--avion-blue);
}
.eyebrow--invert { color: var(--avion-sky-3); }
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--avion-blue);
}
.eyebrow--invert.eyebrow--dot::before { background: var(--avion-sky-1); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--avion-navy);
  margin: 0;
}
.display--invert { color: #fff; }
.italic-accent {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--avion-blue);
}
.italic-accent--sky { color: var(--avion-sky-2); }
.italic-accent--invert { color: var(--avion-sky-2); }

.h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.018em;
  color: var(--avion-navy); margin: 0;
}
.h2--invert { color: #fff; }
.h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(22px, 2vw, 26px); line-height: 1.2;
  color: var(--avion-navy); margin: 0;
}
.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.lede--invert { color: #fff; }
.p { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.p--invert { color: #fff; }
.micro {
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 4px; border: 0; cursor: pointer;
  transition: all 220ms var(--ease-standard);
  white-space: nowrap;
}
.btn--primary { background: var(--avion-navy); color: #fff; }
.btn--primary:hover { background: #1f2068; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(45,46,130,0.32); }
.btn--invert { background: #fff; color: var(--avion-navy); }
.btn--invert:hover { background: var(--avion-sky-3); transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: var(--avion-navy);
  box-shadow: inset 0 0 0 1.5px var(--avion-navy);
  padding: 14.5px 24px;
}
.btn--outline:hover { background: var(--avion-navy); color: #fff; }
.btn--outline-invert {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6);
  padding: 14.5px 24px;
}
.btn--outline-invert:hover { background: #fff; color: var(--avion-navy); }
.btn--ghost {
  background: transparent; color: var(--avion-navy); padding: 14px 0;
}
.btn--ghost:hover { color: var(--avion-blue); }
.btn .arrow {
  display: inline-flex; transition: transform 220ms var(--ease-standard);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============ Header / Nav ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-standard), background 220ms var(--ease-standard);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.96); }
.site-header.is-over-dark {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-over-dark .nav-link,
.site-header.is-over-dark .logo-wordmark,
.site-header.is-over-dark .logo-sub,
.site-header.is-over-dark .menu-btn { color: #fff; }
.site-header.is-over-dark .logo-sub { color: #fff; }
.site-header.is-over-dark .btn--outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
.site-header.is-over-dark .btn--outline:hover { background: #fff; color: var(--avion-navy); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 32px; }
.logo {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  text-decoration: none;
}
.logo-img {
  height: 56px; width: auto; display: block;
  transition: opacity 220ms var(--ease-standard);
}
.logo-img--invert { height: 64px; }
.site-header.is-over-dark .logo-img {
  filter: brightness(0) invert(1);
}
.logo-badge {
  display: block;
  width: 120px; height: 120px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.drawer-badge {
  width: 96px; height: 96px;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  position: absolute;
  top: 24px; left: 24px;
}
.logo-wordmark {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; letter-spacing: 0.28em;
  color: var(--avion-navy); text-transform: uppercase;
}
.logo-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: 14px; letter-spacing: 0.32em;
  color: var(--avion-grey); text-transform: uppercase;
}
.nav {
  display: flex; align-items: center; gap: 8px;
}
.nav-item {
  position: relative;
  display: flex; align-items: center;
}
.nav-item .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 32px 14px;
  margin: 0;
}
.nav-caret {
  opacity: 0.6;
  transition: transform 220ms var(--ease-standard), opacity 220ms;
}
.nav-item.is-open .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-link {
  font-family: var(--font-display); font-weight: 900;
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); background: none; border: 0;
  cursor: pointer; padding: 0; position: relative;
  transition: color 220ms var(--ease-standard);
}
.nav-link:hover { color: var(--avion-navy); }
.nav-link.is-active { color: var(--avion-navy); }
.nav-item .nav-link.is-active::after,
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 24px; height: 2px;
  background: var(--avion-blue);
}
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, -8px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(45,46,130,0.18), 0 2px 6px rgba(0,0,0,0.04);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard), visibility 0s 200ms;
  z-index: 100;
}
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard), visibility 0s 0s;
}
.nav-dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 12px 16px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 14px; letter-spacing: 0.06em;
  color: var(--ink);
  border-radius: 4px;
  transition: background 180ms, color 180ms;
}
.nav-dropdown-item:hover {
  background: var(--paper-tint);
  color: var(--avion-navy);
}
.nav-dropdown-overview {
  font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--avion-blue);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: -8px -8px 6px;
  padding: 12px 16px;
}
.nav-dropdown-overview:hover { color: var(--avion-navy); background: var(--paper-tint); }
.nav-dropdown-overview svg { opacity: 0.7; transition: transform 220ms var(--ease-standard); }
.nav-dropdown-overview:hover svg { transform: translateX(3px); }

/* Inverted nav when over a dark hero */
.site-header.is-over-dark .nav-dropdown {
  /* dropdown itself stays light — readable on any bg */
}

/* Drawer submenus */
.drawer-item { width: 100%; }
.drawer-item .nav-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.drawer-caret {
  opacity: 0.6;
  transition: transform 220ms var(--ease-standard);
}
.drawer-item.is-expanded .drawer-caret { transform: rotate(180deg); }
.drawer-submenu {
  display: flex; flex-direction: column;
  padding: 4px 0 12px 16px;
  border-left: 2px solid rgba(255,255,255,0.15);
  margin-left: 4px;
  margin-bottom: 12px;
}
.drawer-sublink {
  background: none; border: 0; cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 0;
  letter-spacing: 0;
  text-transform: none;
}
.drawer-sublink:hover { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0; color: var(--avion-navy);
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--avion-navy);
  display: flex; flex-direction: column;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 320ms var(--ease-standard);
}
.drawer.is-open { transform: translateX(0); }
.drawer .nav-link { color: #fff; font-size: 26px; letter-spacing: 0.08em; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; text-align: left; }
.drawer-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 0; color: #fff; cursor: pointer;
  width: 40px; height: 40px;
}

/* ============ Hero — shared ============ */
.hero { position: relative; padding-top: 88px; }
.hero-inner { padding: clamp(64px, 11vw, 144px) 0 clamp(80px, 11vw, 152px); position: relative; z-index: 2; }

/* Photo hero */
.hero--photo { background: #0f1233; color: #fff; min-height: 760px; display: flex; flex-direction: column; }
.hero--photo .hero-photo-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero--photo .hero-photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,18,51,0.35) 0%, rgba(15,18,51,0.55) 55%, rgba(15,18,51,0.92) 100%),
    linear-gradient(95deg, rgba(15,18,51,0.7) 0%, rgba(15,18,51,0.0) 60%);
}
.hero--photo .hero-photo-bg image-slot {
  width: 100%; height: 100%; display: block;
}
.hero--photo .hero-inner { padding-top: clamp(110px, 14vw, 200px); padding-bottom: clamp(80px, 10vw, 140px); flex: 1; display: flex; align-items: flex-end; }
.hero--photo .hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; width: 100%; }
.hero--photo .display { color: #fff; }

/* Ribbon hero */
.hero--ribbon { background: #fff; overflow: hidden; }
.hero--ribbon .hero-ribbon-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero--ribbon .hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }

.hero-ribbon-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(45,46,130,0.18);
}
.hero-ribbon-stat {
  position: absolute;
  left: -32px; bottom: -32px;
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(45,46,130,0.14);
  max-width: 240px;
}

/* Ribbon hero — full-width banner (photo removed) */
.hero-ribbon-banner { max-width: 1240px; }
.hero--ribbon .display { font-size: clamp(44px, 6.4vw, 104px); }
.hero-ribbon-banner-body {
  margin-top: 16px;
  max-width: 660px;
}
.hero-ribbon-banner-body .cta-row { margin-top: 30px; }

/* Approach — photographic terrain backdrop */
.approach--photo { position: relative; overflow: hidden; isolation: isolate; }
.approach-bg { position: absolute; inset: 0; z-index: 0; }
.approach-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(1);
}
.approach-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(245,248,251,0.90) 0%,
    rgba(245,248,251,0.74) 44%,
    rgba(245,248,251,0.90) 100%);
}
.approach--photo > .container { position: relative; z-index: 1; }

/* Type hero */
.hero--type { background: #fff; }
.hero--type .display { font-size: clamp(56px, 11vw, 168px); }
.hero--type .hero-inner { padding-top: clamp(140px, 16vw, 220px); padding-bottom: clamp(80px, 10vw, 140px); }
.hero--type .hero-meta {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 48px;
  padding-top: 96px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.hero--type .meta-num { font-family: var(--font-display); font-weight: 900; font-size: 56px; color: var(--avion-blue); line-height: 1; letter-spacing: -0.02em; }
.hero--type .meta-label { display: block; font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.hero--type .hero-dotgrid {
  position: absolute; top: 140px; right: 32px;
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, var(--avion-sky-3) 2.5px, transparent 3px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.cta-row { display: flex; gap: 14px; margin-top: clamp(28px, 3vw, 40px); flex-wrap: wrap; }

/* ============ Marquee / logo strip ============ */
.logo-strip {
  padding: 56px 0;
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.logo-strip-label {
  text-align: center;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 28px;
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
  /* Pause the scroll on hover so visitors can read a particular logo. */
  --marquee-duration: 60s;
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: logo-marquee-scroll var(--marquee-duration) linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  /* The loop array is duplicated, so -50% lands perfectly on the seam. */
  to   { transform: translateX(-50%); }
}
.logo-marquee-fade {
  position: absolute; top: 0; bottom: 0; width: 96px; pointer-events: none;
}
.logo-marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--paper-tint), rgba(245, 248, 251, 0));
}
.logo-marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--paper-tint), rgba(245, 248, 251, 0));
}
.logo-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 260ms var(--ease-standard), opacity 260ms var(--ease-standard);
}
.logo-item img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.logo-item:hover { filter: none; opacity: 1; }

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

/* ============ Approach ============ */
/* Single-column editorial layout: centered eyebrow + headline, italic lede,
   one body paragraph, italic closing. Replaces the earlier two-column treatment
   that became unbalanced after copy was trimmed. */
.approach-stack {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.approach-stack-h2 {
  margin: 18px 0 28px;
}
.approach-stack-lede {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto;
}
.approach-stack-body {
  margin-top: 28px;
  max-width: 62ch;
  margin-left: auto; margin-right: auto;
}
.approach-stack-closing {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--avion-navy);
  margin-top: 40px;
  letter-spacing: -0.01em;
}

.approach-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
/* Text-only variant: lede column reads as an editorial intro, narrative
   column carries the extended argument. Top-aligned so the H2 and the
   first body paragraph share a baseline across the gutter. */
.approach-grid--text {
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
}
.approach-grid--text .approach-lede-col {
  position: sticky; top: 120px;
}
.approach-grid--text .approach-lede-p {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 44ch;
}
.approach-narrative p + p { margin-top: 1.1em; }
.approach-narrative .closing {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  color: var(--avion-navy);
  margin-top: 36px;
  letter-spacing: -0.01em;
}
.approach-art {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--avion-navy);
  overflow: hidden;
  border-radius: 4px;
}
.approach-art image-slot { width: 100%; height: 100%; display: block; }
.approach-art .dot-grid {
  position: absolute; bottom: -28px; right: -28px;
  width: 140px; height: 140px;
  background-image: radial-gradient(circle, var(--avion-sky-2) 2.5px, transparent 3px);
  background-size: 22px 22px;
  z-index: 2;
}

/* ============ Pillars ============ */

/* Spotlight treatment — deep navy background with ribbon + dot-grid motif.
   Used on the home page "What we do" section to give the three pillars
   visual weight and create section rhythm between the lighter neighbors. */
.section--spotlight {
  background: linear-gradient(180deg, #1a1c5f 0%, #2d2e82 45%, #232578 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section--spotlight .spotlight-art {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.section--spotlight .spotlight-ribbon {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.section--spotlight .spotlight-dots {
  position: absolute; top: clamp(40px, 6vw, 80px); right: clamp(24px, 4vw, 64px);
  width: clamp(80px, 9vw, 132px); height: auto;
  opacity: 0.85;
}
.section--spotlight > .container { position: relative; z-index: 1; }

/* Tiny faceted accent in the bottom-left, echoing the logo geometry */
.section--spotlight::after {
  content: "";
  position: absolute;
  left: -120px; bottom: -160px;
  width: 520px; height: 520px;
  background:
    conic-gradient(from 210deg at 50% 50%,
      rgba(53,168,224,0.18) 0deg,
      rgba(42,147,188,0.08) 90deg,
      rgba(29,112,183,0.22) 180deg,
      transparent 270deg);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.pillars-head {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: end; margin-bottom: 64px;
}
.pillars-head--spotlight .h2--invert { color: #fff; }
.pillars-head--spotlight .italic-accent--sky { color: var(--avion-sky-2); }
.pillars-head--spotlight .lede--invert {
  color: #fff;
}
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.pillar-card {
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 32px 36px;
  display: flex; flex-direction: column;
  min-height: 440px;
  transition: transform 280ms var(--ease-standard), box-shadow 280ms var(--ease-standard), border-color 280ms var(--ease-standard);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(45,46,130,0.12);
  border-color: transparent;
}
.pillar-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--avion-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-standard);
}
.pillar-card:hover::before { transform: scaleX(1); }
/* Faint grayscale trekking imagery behind each practice-area card */
.pillar-card:nth-child(1) { background-image: url(assets/pillar-01-map.png); }
.pillar-card:nth-child(2) { background-image: url(assets/pillar-02-hiker.png); }
.pillar-card:nth-child(3) { background-image: url(assets/pillar-03-tent.png); }
.pillar-num {
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.22em; color: var(--avion-sky-1);
  margin-bottom: 20px;
}
.pillar-card h3 { margin-bottom: 16px; }
.pillar-title { margin-bottom: 18px; display: flex; flex-direction: column; gap: 5px; }
.pillar-word {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(42px, 4.4vw, 60px); line-height: 1.0;
  letter-spacing: 0.04em; color: var(--avion-navy);
  text-shadow: 0 2px 6px rgba(15, 18, 51, 0.18);
}
.pillar-sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: 24px; line-height: 1.25; color: var(--avion-blue);
}
.pillar-programs {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 380ms var(--ease-standard), opacity 280ms var(--ease-standard), margin 380ms var(--ease-standard);
  margin-bottom: 0;
}
.pillar-programs-inner {
  overflow: hidden; list-style: none; margin: 0; padding: 0;
}
.pillar-card:hover .pillar-programs,
.pillar-card:focus-visible .pillar-programs {
  grid-template-rows: 1fr; opacity: 1; margin-bottom: 24px;
}
.pillar-programs-eyebrow {
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--avion-sky-1);
  padding: 0 0 8px; border-top: none !important;
}
.pillar-programs-eyebrow::before { display: none !important; }
.pillar-programs-inner li {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--avion-navy); padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.pillar-programs-inner li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--avion-sky-1); flex-shrink: 0;
}
.pillar-card .p { flex-grow: 1; margin-bottom: 28px; }
.pillar-card .pill-cta { color: var(--avion-blue); font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: color 220ms; }
.pillar-card:hover .pill-cta { color: var(--avion-navy); }

/* ============ Testimonials ============ */
.testimonial-section { background: var(--avion-navy); color: #fff; position: relative; overflow: hidden; }
.testimonial-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(53,168,224,0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(29,112,183,0.22), transparent 55%);
  pointer-events: none;
}
.testimonial-section > * { position: relative; z-index: 1; }
.testimonial-head { margin-bottom: 64px; max-width: 720px; }
.testimonial-stage {
  display: grid; grid-template-columns: 1fr; gap: 0;
  position: relative; min-height: 360px;
}
.testimonial-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms var(--ease-standard);
  grid-row: 1; grid-column: 1;
  display: grid; grid-template-columns: 60px 1fr; gap: 32px; align-items: start;
}
.testimonial-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 96px; line-height: 1; color: var(--avion-sky-1);
  font-style: italic;
}
.quote-body {
  font-family: var(--font-serif);
  font-weight: 500; font-style: italic;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 0;
}
.quote-attr {
  margin-top: 36px;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
}
.quote-attr-role {
  display: block; margin-top: 6px;
  font-family: var(--font-body); font-weight: 400; font-size: 14px;
  letter-spacing: 0.02em; text-transform: none;
  color: var(--avion-sky-3);
}
.testimonial-controls {
  display: flex; align-items: center; justify-content: space-between; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15);
}
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 32px; height: 3px; background: rgba(255,255,255,0.2); border: 0; cursor: pointer; padding: 0;
  transition: background 220ms;
}
.testimonial-dot.is-active { background: var(--avion-sky-1); }
.testimonial-arrows { display: flex; gap: 8px; }
.testimonial-arrow {
  width: 48px; height: 48px; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 220ms, border-color 220ms, transform 220ms;
}
.testimonial-arrow:hover { background: #fff; color: var(--avion-navy); border-color: #fff; }

/* ============ Resources ============ */
.resources-head { margin-bottom: 64px; }
.resources-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 840px;
}
.resource-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 280ms var(--ease-standard), box-shadow 280ms var(--ease-standard), border-color 280ms var(--ease-standard);
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(45,46,130,0.12);
  border-color: transparent;
}
.resource-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--avion-blue);
  background: var(--paper-tint-2);
  padding: 8px 12px; border-radius: 2px;
}
.resource-card .p { flex-grow: 1; margin-bottom: 24px; }
.resource-cta {
  color: var(--avion-blue);
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 220ms;
}
.resource-card:hover .resource-cta { color: var(--avion-navy); }

/* ============ Contact ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-meta .h2 { margin-bottom: 24px; }
.contact-detail {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px;
}
.contact-detail .label {
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--avion-sky-3);
  margin-bottom: 8px;
}
.contact-detail .value { color: #fff; font-size: 15px; line-height: 1.55; }
.contact-detail .value a { color: #fff; }
.contact-detail .value a:hover { color: var(--avion-sky-2); }

.contact-form {
  background: #fff; color: var(--ink);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.contact-form .h3 { margin-bottom: 8px; }
.contact-form .form-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; font: inherit; font-size: 15px;
  padding: 14px 14px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--ink);
  transition: border-color 180ms, box-shadow 180ms;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--avion-blue);
  box-shadow: 0 0 0 3px rgba(29,112,183,0.15);
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: var(--status-danger); }
.form-field .err {
  display: block; margin-top: 6px;
  color: var(--status-danger); font-size: 14px; letter-spacing: 0.02em;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.form-thanks {
  background: rgba(47,158,110,0.08);
  border: 1px solid rgba(47,158,110,0.25);
  color: var(--status-success);
  padding: 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}

/* ============ Footer ============ */
.site-footer {
  background: #0f1233;
  color: #fff;
  padding: 96px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 24px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: #fff; text-decoration: none; font-size: 14px;
  transition: color 220ms;
}
.footer-col a:hover { color: #fff; }
.footer-brand .logo-wordmark { color: #fff; font-size: 26px; }
.footer-brand .logo-sub { color: #fff; }
.footer-brand p { color: #fff; font-size: 14px; line-height: 1.6; margin: 20px 0 0; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--avion-blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px; color: #fff;
}
.footer-bottom-links { display: flex; gap: 24px; }
.site-footer a, .footer-bottom a, .footer-bottom-links a { color: #fff; }
.site-footer a:hover, .footer-bottom a:hover, .footer-bottom-links a:hover { color: var(--avion-sky-3); }
.section--navy, .section--dark, .closing-cta { color: #fff; }
.section--navy p, .section--dark p, .closing-cta p,
.section--navy li, .section--dark li, .closing-cta li,
.section--navy small, .section--dark small, .closing-cta small,
.section--navy a, .section--dark a, .closing-cta a { color: #fff; }

/* ============ Fade-in ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .nav { display: none; }
  .header-cta .btn--outline { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hero--photo .hero-grid,
  .hero--ribbon .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-grid--text { grid-template-columns: 1fr; }
  .approach-grid--text .approach-lede-col { position: static; }
  .pillars-head { grid-template-columns: 1fr; gap: 24px; align-items: start; margin-bottom: 48px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar-card { min-height: 0; }
  .resources-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .hero--type .hero-meta { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; }
  .hero--type .meta-num { font-size: 42px; }

  /* Mobile hero adjustments: shrink the photo, pull the stat card inline */
  .hero--photo { min-height: 0; }
  .hero--photo .hero-inner { padding-top: clamp(96px, 18vw, 140px); padding-bottom: clamp(48px, 8vw, 80px); }

  .hero-ribbon-photo {
    aspect-ratio: 16/10;
    max-width: 460px;
    margin: 0 auto;
  }
  .hero-ribbon-stat {
    position: static;
    margin: 16px auto 0;
    max-width: 460px;
    padding: 20px 22px;
  }
  .hero-ribbon-photo-col { padding: 0 4px; }
}
@media (max-width: 540px) {
  .hero-ribbon-photo { aspect-ratio: 3/2; }
  .hero-ribbon-stat { padding: 18px 20px; }
  .hero-ribbon-stat div[style] { font-size: 18px !important; }
  .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-marquee-track { gap: 48px; }
  .logo-item { height: 40px; }
  .logo-item img { max-width: 130px; }
  .contact-detail { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 28px; }

  /* Stack CTAs full-width so they're easy to tap, and ease the hero headline */
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .hero--ribbon .display { font-size: clamp(36px, 10vw, 60px); }
  .hero-ribbon-banner-body { margin-top: 14px; }
  .header-cta { gap: 8px; }
}

@media (max-width: 380px) {
  .container { padding: 0 20px; }
  .display { font-size: clamp(32px, 9vw, 44px); }
  .hero--ribbon .display { font-size: clamp(32px, 9vw, 46px); }
}
