/* =============================================================================
   VISOLT — COMPONENTS
   Reusable patterns that appear across multiple pages.
   ============================================================================= */

/* =============================================================================
   CONTAINER
   Centres content within max-width with consistent padding
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding-left: var(--outer-padding);
  padding-right: var(--outer-padding);
}

@media (max-width: 767px) {
  .container {
    padding-left: var(--outer-padding-mob);
    padding-right: var(--outer-padding-mob);
  }
}

/* =============================================================================
   EYEBROW
   Small caps label that appears above headings — sets section identity
   ============================================================================= */

.eyebrow {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-lg);
}

.eyebrow--on-mink {
  color: var(--cream);
}

@media (max-width: 767px) {
  .eyebrow {
    font-size: var(--type-eyebrow-mob);
    margin-bottom: var(--space-md);
  }
}

/* =============================================================================
   SYMBOL — the five-stroke fan logo mark
   Built in pure CSS using transforms; no SVG required
   ============================================================================= */

.symbol {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.symbol__stroke {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2px;
  height: 22px;
  background: currentColor;
  transform-origin: bottom center;
  border-radius: 1px;
}

.symbol__stroke:nth-child(1) { transform: translateX(-50%) rotate(-30deg); }
.symbol__stroke:nth-child(2) { transform: translateX(-50%) rotate(-15deg); }
.symbol__stroke:nth-child(3) { transform: translateX(-50%) rotate(0deg); }
.symbol__stroke:nth-child(4) { transform: translateX(-50%) rotate(15deg); }
.symbol__stroke:nth-child(5) { transform: translateX(-50%) rotate(30deg); }

/* Footer variant — slightly smaller */
.symbol--small {
  width: 36px;
  height: 36px;
}

.symbol--small .symbol__stroke {
  height: 16px;
}

/* =============================================================================
   HEADER NAVIGATION
   On every page. Sits over the hero (mink slab) with cream text by default.
   ============================================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand container — symbol + wordmark side-by-side */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-decoration: none;
}

.site-header__brand:hover {
  opacity: 1;
}

/* Wordmark sits inline with the symbol */
.site-header__wordmark {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-logo);
  color: inherit;
  line-height: 1;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: var(--weight-regular);
  color: var(--cream);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: opacity var(--duration-quick) var(--ease-default);
}

.site-header__link:hover {
  opacity: 0.7;
}

/* Active page indicator — thin underline */
.site-header__link[aria-current="page"] {
  font-weight: var(--weight-semibold);
}

.site-header__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--cream);
  opacity: 0.6;
}

/* Hamburger button — hidden on desktop, visible on mobile */
.site-header__hamburger {
  display: none;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.site-header__hamburger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform var(--duration-normal) var(--ease-default),
              opacity var(--duration-normal) var(--ease-default);
}

@media (max-width: 767px) {
  .site-header {
    padding-top: var(--space-md);
  }

  .site-header__nav {
    display: none;
  }

  .site-header__hamburger {
    display: flex;
  }
}

/* =============================================================================
   MOBILE MENU OVERLAY
   Full-screen overlay that opens when hamburger is tapped
   ============================================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--mink);
  z-index: var(--z-mobile-menu);
  padding: var(--space-md);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default),
              visibility var(--duration-normal) var(--ease-default);
}

.mobile-menu[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  color: var(--cream);
}

.mobile-menu__close {
  width: 24px;
  height: 24px;
  position: relative;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
}

.mobile-menu__close::before { transform: rotate(45deg); }
.mobile-menu__close::after  { transform: rotate(-45deg); }

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-menu__link {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: var(--weight-medium);
  color: var(--white);
  text-decoration: none;
}

/* =============================================================================
   HERO SECTION
   The mink slab at the top of every page
   ============================================================================= */

.hero {
  position: relative;
  background: var(--mink);
  color: var(--white);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  display: flex;
  align-items: flex-end;
}

.hero--home {
  min-height: var(--hero-home-desktop);
}

.hero--inner {
  min-height: var(--hero-inner-desktop);
}

.hero__inner {
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--serif);
  font-size: var(--type-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--white);
  margin-bottom: var(--space-lg);
  max-width: 900px;
}

.hero__headline--smaller {
  font-size: var(--type-display-mid);
}

.hero__sub {
  font-family: var(--sans);
  font-size: var(--type-lead);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
  color: var(--cream);
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.hero__ctas {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .hero--home {
    min-height: var(--hero-home-mobile);
  }

  .hero--inner {
    min-height: var(--hero-inner-mobile);
  }

  .hero__headline {
    font-size: var(--type-display-mob);
  }

  .hero__headline--smaller,
  .hero--inner .hero__headline {
    font-size: var(--type-display-inner-mob);
  }

  .hero__sub {
    font-size: var(--type-small-mob);
    line-height: var(--leading-normal);
  }

  .hero__ctas {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* =============================================================================
   CTA — call to action link with thin underline
   The signature button-substitute used throughout the site
   ============================================================================= */

.cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: var(--type-lead);
  font-weight: var(--weight-medium);
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 8px;
  transition: opacity var(--duration-quick) var(--ease-default);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: currentColor;
  opacity: 0.5;
}

.cta:hover {
  opacity: 0.8;
}

.cta__arrow {
  display: inline-block;
  margin-left: 12px;
  transition: transform var(--duration-quick) var(--ease-default);
}

.cta:hover .cta__arrow {
  transform: translateX(4px);
}

/* Smaller CTA variant — for use inside cards and tighter contexts */
.cta--small {
  font-size: var(--type-small);
  padding-bottom: 6px;
}

.cta--small::after {
  height: 0.5px;
  opacity: 0.4;
}

@media (max-width: 767px) {
  .cta {
    font-size: var(--type-small-mob);
  }
}

/* =============================================================================
   SECTION
   Generic vertical-rhythm container for content sections
   ============================================================================= */

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section--off-white { background: var(--off-white); }
.section--white     { background: var(--white); }
.section--mink {
  background: var(--mink);
  color: var(--white);
}

.section--mink .section__heading,
.section--mink h2,
.section--mink h3 {
  color: var(--white);
}

.section--mink .eyebrow {
  color: var(--cream);
}

.section__heading {
  font-family: var(--serif);
  font-size: var(--type-section);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--dark);
  margin-bottom: var(--space-xl);
  max-width: 900px;
}

@media (max-width: 767px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .section__heading {
    font-size: var(--type-section-mob);
    margin-bottom: var(--space-lg);
  }
}

/* =============================================================================
   PRACTICE CARD
   The two-card layout on the homepage (Engineering / Capital Solutions)
   ============================================================================= */

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.practice-card {
  background: var(--off-white);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.practice-card__eyebrow {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-lg);
}

.practice-card__heading {
  font-family: var(--serif);
  font-size: var(--type-sub-section);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--dark);
  margin-bottom: var(--space-lg);
}

.practice-card__body {
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  color: var(--body);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

@media (max-width: 767px) {
  .practice-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .practice-card {
    padding: var(--space-md);
    min-height: 0;
  }

  .practice-card__heading {
    font-size: var(--type-sub-section-mob);
  }

  .practice-card__body {
    font-size: var(--type-body-mob);
  }
}

/* =============================================================================
   PRINCIPLES GRID
   Three-column layout on Why Visolt mink slab
   ============================================================================= */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.principle__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: var(--weight-regular);
  color: var(--light-mink);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.principle__heading {
  font-family: var(--serif);
  font-size: var(--type-card-heading);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.principle__body {
  font-family: var(--sans);
  font-size: var(--type-small);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
  color: var(--cream);
}

@media (max-width: 767px) {
  .principles {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* =============================================================================
   SECTORS GRID — used on homepage as a quick list, Sectors page as expandable
   ============================================================================= */

/* Homepage Sectors teaser — simple table-like list */
.sectors-list {
  border-top: 1px solid var(--divider);
}

.sectors-list__row {
  display: grid;
  grid-template-columns: 60px 320px 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--divider);
  align-items: center;
}

.sectors-list__num {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--grey);
}

.sectors-list__name {
  font-family: var(--serif);
  font-size: var(--type-lead);
  font-weight: var(--weight-medium);
  color: var(--dark);
}

.sectors-list__desc {
  font-family: var(--sans);
  font-size: var(--type-small);
  color: var(--body);
}

@media (max-width: 767px) {
  .sectors-list__row {
    grid-template-columns: 36px 1fr 24px;
    gap: var(--space-sm);
  }

  .sectors-list__desc {
    display: none;
  }
}

/* =============================================================================
   FOUNDER CARD — Leadership teaser on homepage, full profile on Leadership page
   ============================================================================= */

.founder-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.founder-card__portrait {
  width: 160px;
  height: 160px;
  background: var(--off-white);
  overflow: hidden;
}

.founder-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card__eyebrow {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-sm);
}

.founder-card__name {
  font-family: var(--serif);
  font-size: var(--type-section);
  font-weight: var(--weight-medium);
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.founder-card__bio {
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  color: var(--body);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

@media (max-width: 767px) {
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-card__portrait {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .founder-card__name {
    font-size: var(--type-sub-section-mob);
  }
}

/* =============================================================================
   CONTACT ROUTES
   Three direct routes by practice — on homepage and Contact page
   ============================================================================= */

.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.route__label {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.route__heading {
  font-family: var(--serif);
  font-size: var(--type-lead);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.route__divider {
  width: 60px;
  height: 0.5px;
  background: var(--dark);
  margin: var(--space-md) 0;
}

.route__email {
  font-family: var(--sans);
  font-size: var(--type-body);
  color: var(--body);
}

.route__email a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: border-color var(--duration-quick) var(--ease-default);
}

.route__email a:hover {
  opacity: 1;
  border-color: var(--mink);
}

@media (max-width: 767px) {
  .routes {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* =============================================================================
   FOOTER
   Off-white slab at the bottom of every page
   ============================================================================= */

.site-footer {
  background: var(--off-white);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 3fr 3fr 3fr 3fr;
  gap: var(--gutter);
  margin-bottom: var(--space-xl);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mink);
  margin-bottom: var(--space-sm);
}

.site-footer__wordmark {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-logo);
}

.site-footer__tagline {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--deep-mink);
}

.site-footer__col-label {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__link {
  font-family: var(--sans);
  font-size: var(--type-small);
  color: var(--dark);
  text-decoration: none;
}

.site-footer__bottom {
  border-top: 1px solid var(--divider);
  padding-top: var(--space-md);
}

.site-footer__copyright {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  color: var(--grey);
}

@media (max-width: 767px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .site-footer__brand-col {
    grid-column: 1 / -1;
    margin-bottom: var(--space-md);
  }
}

/* =============================================================================
   CAPABILITY CARDS (Engineering / Capital Solutions practice pages)
   2×2 grid of cards each describing a practice capability
   ============================================================================= */

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.capability-card {
  background: var(--off-white);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.section--off-white .capability-card {
  background: var(--white);
}

.capability-card__num {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.capability-card__heading {
  font-family: var(--serif);
  font-size: var(--type-card-heading);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.capability-card__body {
  font-family: var(--sans);
  font-size: var(--type-small);
  line-height: var(--leading-normal);
  color: var(--body);
}

@media (max-width: 767px) {
  .capability-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .capability-card {
    padding: var(--space-md);
  }

  .capability-card__heading {
    font-size: var(--type-card-heading-mob);
  }
}

/* =============================================================================
   CAPITAL FLOWCHART
   Four-step horizontal flow on Capital Solutions page
   ============================================================================= */

.flowchart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.flow-step__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: var(--weight-regular);
  color: var(--light-mink);
  margin-bottom: var(--space-sm);
}

.flow-step__verb {
  font-family: var(--serif);
  font-size: var(--type-card-heading);
  font-weight: var(--weight-medium);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.flow-step__body {
  font-family: var(--sans);
  font-size: var(--type-small);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
  color: var(--cream);
}

/* Connector arrows between steps — positioned dynamically by js/main.js
   See positionFlowchartArrows() — measures verb widths on load and resize,
   places each arrow at the visual midpoint between adjacent verb endings/starts.
   The .flow-step__arrow elements are inserted by JavaScript at runtime. */
.flow-step {
  position: relative;
}

.flow-step__arrow {
  position: absolute;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 767px) {
  .flowchart {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Hide JS-positioned arrows on mobile — single-column layout uses ::after instead */
  .flow-step__arrow {
    display: none;
  }

  .flow-step:not(:last-child)::after {
    content: '↓';
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 18px;
    opacity: 0.7;
  }
}

/* =============================================================================
   SECTOR BOXES (Sectors page — expand on click)
   ============================================================================= */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

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

.sector-box {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sector-box__toggle {
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  color: inherit;
  transition: background var(--duration-quick) var(--ease-default);
}

.sector-box__toggle:hover {
  background: var(--off-white);
}

.sector-box__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.sector-box__num {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--grey);
}

.sector-box__indicator {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: var(--weight-light);
  color: var(--mink);
  line-height: 1;
}

.sector-box__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--dark);
  margin-bottom: var(--space-xs);
}

.sector-box__coverage {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-coverage);
  text-transform: uppercase;
  color: var(--mink);
  margin-bottom: var(--space-sm);
}

.sector-box__teaser {
  font-family: var(--sans);
  font-size: var(--type-small);
  line-height: var(--leading-normal);
  color: var(--body);
}



.sector-box__detail {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--divider);
  background: var(--off-white);
}

.sector-box__detail-body {
  font-family: var(--sans);
  font-size: var(--type-small);
  line-height: var(--leading-normal);
  color: var(--body);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.sector-box__caps-label {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-sm);
}

.sector-box__caps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sector-box__cap {
  font-family: var(--sans);
  font-size: var(--type-small);
  color: var(--dark);
}

@media (max-width: 767px) {
  .sectors-grid,
  .sectors-grid__row-2 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* =============================================================================
   FOUNDER PROFILE (full version on Leadership page)
   ============================================================================= */

.founder-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.founder-profile__portrait {
  width: 280px;
  height: 280px;
  background: var(--off-white);
  overflow: hidden;
}

.founder-profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-profile__eyebrow {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.founder-profile__name {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: var(--weight-medium);
  color: var(--dark);
  margin-bottom: var(--space-lg);
}

.founder-profile__bio {
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-relaxed);
  color: var(--body);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

.founder-profile__bio p {
  margin-bottom: var(--space-md);
}

.founder-profile__creds-label {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-sm);
}

.founder-profile__creds {
  font-family: var(--sans);
  font-size: var(--type-small);
  color: var(--dark);
  line-height: var(--leading-relaxed);
}

@media (max-width: 767px) {
  .founder-profile {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .founder-profile__portrait {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .founder-profile__name {
    font-size: var(--type-section-mob);
  }

  .founder-profile__bio {
    text-align: left;
  }
}

/* =============================================================================
   IN A SENTENCE (About page editorial paragraph)
   Display-size paragraph that defines the firm in one sentence
   ============================================================================= */

.in-a-sentence {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: var(--weight-medium);
  line-height: 1.25;
  color: var(--dark);
  max-width: 1100px;
}

@media (max-width: 767px) {
  .in-a-sentence {
    font-size: 24px;
  }
}

/* =============================================================================
   FOUR PRINCIPLES (About page — what we stand for)
   ============================================================================= */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--gutter);
}

.principle-card__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: var(--weight-regular);
  color: var(--mink);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.principle-card__heading {
  font-family: var(--serif);
  font-size: var(--type-card-heading);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.principle-card__body {
  font-family: var(--sans);
  font-size: var(--type-small);
  line-height: var(--leading-normal);
  color: var(--body);
}

@media (max-width: 767px) {
  .principles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* =============================================================================
   CONTACT ROUTES (full version, Contact page)
   ============================================================================= */

.routes--full .route__heading {
  font-size: 22px;
  margin-bottom: var(--space-md);
}

.routes--full .route__body {
  font-family: var(--sans);
  font-size: var(--type-small);
  color: var(--body);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

/* =============================================================================
   SECTOR MODAL
   Replaces the inline expand pattern with a centred modal popup.
   Boxes stay compact; clicking opens detail in a modal overlay.
   ============================================================================= */

/* Overlay — semi-transparent backdrop covering the page */
.sector-modal {
  position: fixed;
  inset: 0;
  background: rgba(34, 34, 34, 0.5);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default),
              visibility var(--duration-normal) var(--ease-default);
}

.sector-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

/* The modal card itself — white panel with the sector content */
.sector-modal__card {
  background: var(--white);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-2xl);
  transform: translateY(20px);
  transition: transform var(--duration-normal) var(--ease-default);
}

.sector-modal[aria-hidden="false"] .sector-modal__card {
  transform: translateY(0);
}

.sector-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sector-modal__close::before,
.sector-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--dark);
  transform-origin: center;
}

.sector-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.sector-modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.sector-modal__close:hover::before,
.sector-modal__close:hover::after {
  background: var(--mink);
}

/* Modal content typography */
.sector-modal__num {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.sector-modal__name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.sector-modal__coverage {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-coverage);
  text-transform: uppercase;
  color: var(--mink);
  margin-bottom: var(--space-lg);
}

.sector-modal__body {
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-relaxed);
  color: var(--body);
  margin-bottom: var(--space-lg);
}

.sector-modal__caps-label {
  font-family: var(--sans);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.sector-modal__caps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sector-modal__cap {
  font-family: var(--sans);
  font-size: var(--type-small);
  color: var(--dark);
  line-height: var(--leading-normal);
  padding-left: 14px;
  position: relative;
}

.sector-modal__cap::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--mink);
}

@media (max-width: 767px) {
  .sector-modal__card {
    padding: var(--space-lg);
  }

  .sector-modal__name {
    font-size: 28px;
  }
}

/* Restore sector boxes to their compact form (override the old expand-inline behaviour).
   Boxes are now consistent height; the .sector-box__detail block isn't used anymore. */
.sector-box__detail {
  display: none !important;
}

/* Boxes have consistent compact appearance always */
.sector-box {
  height: 100%;
}

.sector-box__toggle {
  height: 100%;
}

/* =============================================================================
   HERO ANIMATION
   Word-by-word fade-in for hero headlines, then sub-line, then CTAs.
   Applies to every page hero. Total duration ~0.9s for short headlines,
   slightly longer for headlines with more words. The CSS handles up to
   12 words; word spans are inserted by JS (see js/main.js).
   Respects prefers-reduced-motion.
   ============================================================================= */

/* Initial state — words invisible, slightly below final position */
.hero__headline--animate .hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: hero-word-in 0.4s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.hero__sub--animate {
  opacity: 0;
  transform: translateY(6px);
  /* Sub-line starts after typical headline finishes (~0.7s) */
  animation: hero-word-in 0.5s cubic-bezier(0.2, 0, 0.2, 1) 0.7s forwards;
}

.hero__ctas--animate {
  opacity: 0;
  transform: translateY(6px);
  /* CTAs come last */
  animation: hero-word-in 0.5s cubic-bezier(0.2, 0, 0.2, 1) 0.95s forwards;
}

@keyframes hero-word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger word animations — generic pattern that works for any word count.
   Each word starts 80ms after the previous. Up to 12 words supported. */
.hero__headline--animate .hero__word:nth-of-type(1)  { animation-delay: 0.00s; }
.hero__headline--animate .hero__word:nth-of-type(2)  { animation-delay: 0.08s; }
.hero__headline--animate .hero__word:nth-of-type(3)  { animation-delay: 0.16s; }
.hero__headline--animate .hero__word:nth-of-type(4)  { animation-delay: 0.24s; }
.hero__headline--animate .hero__word:nth-of-type(5)  { animation-delay: 0.32s; }
.hero__headline--animate .hero__word:nth-of-type(6)  { animation-delay: 0.40s; }
.hero__headline--animate .hero__word:nth-of-type(7)  { animation-delay: 0.48s; }
.hero__headline--animate .hero__word:nth-of-type(8)  { animation-delay: 0.56s; }
.hero__headline--animate .hero__word:nth-of-type(9)  { animation-delay: 0.64s; }
.hero__headline--animate .hero__word:nth-of-type(10) { animation-delay: 0.72s; }
.hero__headline--animate .hero__word:nth-of-type(11) { animation-delay: 0.80s; }
.hero__headline--animate .hero__word:nth-of-type(12) { animation-delay: 0.88s; }

/* Reduced-motion users get the static version */
@media (prefers-reduced-motion: reduce) {
  .hero__headline--animate .hero__word,
  .hero__sub--animate,
  .hero__ctas--animate {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
