/* Index page-specific styles, extracted from inline HTML. */
    :root { --fos-yellow: #f6c400; }

    body.index-page { line-height: 1.6; }
    body.index-page.intro-active { overflow: hidden; }

    #index-intro-carousel {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      background: transparent;
      overflow: hidden;
      opacity: 1;
      visibility: visible;
      transition: opacity .9s ease, visibility .9s ease;
    }

    #index-intro-carousel.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    #index-intro-carousel.is-final {
      pointer-events: none;
    }

    .fos-intro-lockup {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      justify-content: end;
      column-gap: clamp(10px, 1vw, 18px);
      width: min(84vw, 980px);
      margin: 0 clamp(28px, 6vw, 110px) clamp(42px, 8vh, 90px) auto;
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif;
      font-size: clamp(1.45rem, 3.45vw, 3.7rem);
      line-height: .95;
      letter-spacing: -0.06em;
      text-rendering: geometricPrecision;
      -webkit-font-smoothing: antialiased;
    }

    .fos-intro-column {
      position: relative;
      height: 3.2em;
      width: 100%;
      min-width: 0;
      overflow: hidden;
      text-align: right;
      padding-inline: .08em .02em;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 12%, #000 34%, #000 66%, rgba(0,0,0,.35) 88%, transparent 100%);
      mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 12%, #000 34%, #000 66%, rgba(0,0,0,.35) 88%, transparent 100%);
    }

    .fos-intro-track {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      will-change: transform;
      transform: translate3d(0, 0, 0);
    }

    .fos-intro-word,
    .fos-intro-static {
      display: block;
      height: 1em;
      line-height: 1em;
      white-space: nowrap;
      font-weight: 400;
    }

    .fos-intro-word {
      color: #fff;
      opacity: .12;
      filter: blur(6px);
      transform-origin: right center;
      will-change: opacity, filter, transform;
    }

    .fos-intro-word.brand { color: var(--fos-yellow); }

    .fos-intro-static {
      color: var(--fos-yellow);
      transform: translateY(.005em);
    }

    .fos-final-tagline {
      grid-column: 1 / -1;
      justify-self: end;
      margin-top: clamp(10px, 1.5vh, 18px);
      color: #fff;
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif;
      font-size: clamp(1.45rem, 2.35vw, 2.55rem);
      line-height: .98;
      letter-spacing: -0.045em;
      text-align: right;
      white-space: normal;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .9s ease, transform .9s ease;
    }



    .fos-final-tagline span {
      display: block;
    }

    #index-intro-carousel.is-final .fos-final-tagline {
      opacity: 1;
      transform: translateY(0);
    }

    #index-intro-carousel.is-final .fos-intro-track .fos-intro-word:not(.brand) {
      opacity: 0 !important;
      visibility: hidden;
    }

    #index-intro-carousel.is-final .fos-intro-word.brand {
      opacity: 1 !important;
      filter: none !important;
      transform: none !important;
    }

    #hero {
      position: relative;
      min-height: 100vh;
    }

    .hero-title {
      display: none !important;
      position: absolute;
      right: clamp(28px, 6vw, 110px);
      bottom: clamp(42px, 8vh, 90px);
      max-width: min(88vw, 980px);
      margin: 0;
      text-align: right;
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif;
      font-weight: 400;
      letter-spacing: -0.055em;
      line-height: 1.02;
      opacity: 0;
      transform: translateY(14px);
      pointer-events: none;
      transition: opacity 1.05s ease, transform 1.05s ease;
    }

    body.index-page.hero-visible .hero-title {
      opacity: 1;
      transform: translateY(0);
    }

    body.index-page #header {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      pointer-events: none;
      transition: opacity .9s ease, transform .9s ease, visibility .9s ease;
    }

    body.index-page.nav-visible #header {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    body.index-page #intro-text {
      opacity: 0;
      transform: translateY(12px);
      transition: opacity .9s ease, transform .9s ease;
    }

    body.index-page.nav-visible #intro-text {
      opacity: 1;
      transform: translateY(0);
    }


    .hero-tagline { display: none !important; }

    #intro-text {
      margin-top: 1.5rem;
      margin-bottom: 1.25rem;
      padding-inline: 1.25rem;
    }

    #intro-text p {
      max-width: 980px;
      margin: 0 auto;
      line-height: 1.65;
    }

    #intro-text .seo-heading {
      display: block;
      font-size: clamp(1.25rem, 2.4vw, 2rem);
      line-height: 1.25;
      margin-bottom: .7rem;
    }

    #intro-text .seo-copy {
      display: block;
      max-width: 930px;
      margin: 0 auto;
      color: color-mix(in srgb, currentColor 78%, transparent);
      font-size: clamp(1rem, 1.55vw, 1.18rem);
      font-weight: 400;
    }


    /* Landing choreography refinements */
    body.index-page #hero::before { background: transparent !important; }

    .fos-intro-lockup,
    .hero-title {
      width: min(84vw, 980px) !important;
      right: clamp(28px, 6vw, 110px) !important;
      bottom: clamp(42px, 8vh, 90px) !important;
      margin-right: 0 !important;
      margin-bottom: 0 !important;
    }

    .fos-intro-lockup {
      margin: 0 clamp(28px, 6vw, 110px) clamp(42px, 8vh, 90px) auto !important;
      font-size: clamp(1.45rem, 3.45vw, 3.7rem);
    }

    .fos-intro-column {
      height: 5em;
      padding-inline: .12em .02em;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 9%, #000 24%, #000 76%, rgba(0,0,0,.55) 91%, transparent 100%);
      mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 9%, #000 24%, #000 76%, rgba(0,0,0,.55) 91%, transparent 100%);
    }

    .hero-title {
      position: absolute !important;
      display: block !important;
      max-width: min(84vw, 980px) !important;
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif !important;
      font-size: clamp(1.45rem, 3.45vw, 3.7rem) !important;
      font-weight: 400 !important;
      text-transform: uppercase !important;
      line-height: .95 !important;
      letter-spacing: -0.06em !important;
      text-align: right !important;
      color: var(--fos-yellow) !important;
      z-index: 5 !important;
      text-rendering: geometricPrecision;
      -webkit-font-smoothing: antialiased;
    }

    .hero-title span {
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif !important;
      font-weight: 400 !important;
    }



    /* V11 lockup refinement: use carousel font/metrics, tighter brand gap and closer tagline */
    .fos-intro-lockup {
      column-gap: clamp(10px, 1vw, 18px) !important;
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif !important;
    }

    .fos-intro-word,
    .fos-intro-static,
    .fos-final-tagline,
    .fos-final-tagline span {
      font-family: 'AvantGardeBook', 'Avant Garde', 'ITC Avant Garde Gothic', Arial, sans-serif !important;
      font-weight: 400 !important;
      letter-spacing: -0.055em !important;
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
    }

    .fos-intro-column {
      padding-right: .02em !important;
    }

    .fos-final-tagline {
      margin-top: clamp(10px, 1.5vh, 18px) !important;
      font-size: clamp(1.45rem, 2.35vw, 2.55rem) !important;
      line-height: .96 !important;
      text-align: right !important;
      justify-self: end !important;
    }



    @media (max-width: 900px) {
      .fos-intro-lockup {
        width: 94vw;
        margin: 0 4vw 11vh auto;
        font-size: clamp(1.35rem, 6.2vw, 3.1rem);
        letter-spacing: -0.065em;
        column-gap: .08em;
      }
      .fos-intro-column { height: 4.4em; width: 100%; }
      .hero-title {
        right: 4vw !important;
        bottom: 11vh !important;
        width: 92vw !important;
        max-width: 92vw !important;
        font-size: clamp(1.35rem, 6.2vw, 3.1rem) !important;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      body.index-page.intro-active { overflow: auto; }
      #index-intro-carousel { display: flex; }
      #index-intro-carousel .fos-final-tagline { opacity: 1; transform: none; }
      #index-intro-carousel .fos-intro-track .fos-intro-word:not(.brand) { opacity: 0 !important; visibility: hidden; }
      #index-intro-carousel .fos-intro-word.brand { opacity: 1 !important; filter: none !important; transform: none !important; }
    }

    body.index-page .hero-title { display: none !important; }
  

    /* V14: single fixed lower-right carousel/lockup. The carousel freezes into the final brand state. */
    #index-intro-carousel {
      align-items: flex-end;
      justify-content: flex-end;
      background: transparent !important;
    }

    .fos-intro-lockup {
      width: min(86vw, 900px);
      margin: 0 clamp(28px, 7vw, 120px) clamp(54px, 10vh, 120px) auto;
      grid-template-columns: minmax(0, auto) auto;
      align-items: center;
      justify-content: end;
      column-gap: clamp(12px, .9vw, 18px);
      font-family: 'AvantGardeBook', Arial, sans-serif !important;
      font-weight: 400 !important;
      font-size: clamp(2.45rem, 4.2vw, 4.95rem);
      letter-spacing: -0.065em;
      line-height: 0.96;
    }

    .fos-intro-column {
      height: 4.05em;
      width: min(64vw, 690px);
      text-align: right;
      overflow: hidden;
      padding-right: 0;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.30) 13%, #000 32%, #000 68%, rgba(0,0,0,.30) 87%, transparent 100%);
      mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.30) 13%, #000 32%, #000 68%, rgba(0,0,0,.30) 87%, transparent 100%);
    }

    .fos-intro-word,
    .fos-intro-static,
    .fos-final-tagline,
    .fos-final-tagline span {
      font-family: 'AvantGardeBook', Arial, sans-serif !important;
      font-weight: 400 !important;
    }

    .fos-intro-word,
    .fos-intro-static {
      height: 1em;
      line-height: 1em;
      letter-spacing: -0.065em;
    }

    .fos-intro-signs-block {
      position: relative;
      display: block;
      line-height: 1em;
    }

    .fos-intro-static {
      display: block;
      color: var(--fos-yellow);
      transform: translateY(0);
    }

    .fos-final-tagline {
      position: absolute;
      top: calc(100% + .32em);
      right: 0;
      margin: 0;
      color: #fff;
      font-size: clamp(1.15rem, 1.42vw, 1.85rem);
      line-height: .92;
      letter-spacing: -0.055em;
      text-align: right;
      white-space: nowrap;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .85s ease, transform .85s ease;
    }

    #index-intro-carousel.is-final .fos-final-tagline {
      opacity: 1;
      transform: translateY(0);
    }

    #index-intro-carousel.is-final .fos-intro-column {
      -webkit-mask-image: none;
      mask-image: none;
    }

    #index-intro-carousel.is-final .fos-intro-track .fos-intro-word:not(.brand) {
      opacity: 0 !important;
      visibility: hidden !important;
    }

    #index-intro-carousel.is-final .fos-intro-word.brand {
      opacity: 1 !important;
      filter: none !important;
      transform: none !important;
    }

    @media (max-width: 760px) {
      .fos-intro-lockup {
        margin-right: 7vw;
        margin-bottom: 9vh;
        width: 90vw;
        font-size: clamp(2rem, 9vw, 3.6rem);
        column-gap: .16em;
      }
      .fos-intro-column { width: 62vw; height: 3.8em; }
      .fos-final-tagline { font-size: clamp(1rem, 4vw, 1.4rem); }
    }


    /* V15 lock: do not move carousel/final brand. Keep final tagline inside the Signs column only. */
    #index-intro-carousel,
    #index-intro-carousel * {
      font-family: 'AvantGardeBook', Arial, sans-serif !important;
      font-weight: 400 !important;
    }

    #index-intro-carousel.is-final .fos-intro-column {
      height: 4.05em !important;
      width: min(64vw, 690px) !important;
      overflow: hidden !important;
      -webkit-mask-image: none !important;
      mask-image: none !important;
    }

    #index-intro-carousel.is-final .fos-intro-track {
      /* JavaScript keeps the brand word on the exact carousel baseline. */
      will-change: transform;
    }

    .fos-intro-signs-block {
      position: relative !important;
      display: block !important;
      line-height: 1em !important;
      font-family: 'AvantGardeBook', Arial, sans-serif !important;
    }

    .fos-final-tagline {
      position: absolute !important;
      top: calc(100% + .18em) !important;
      right: 0 !important;
      margin: 0 !important;
      color: #fff !important;
      font-family: 'AvantGardeBook', Arial, sans-serif !important;
      font-weight: 400 !important;
      font-size: clamp(1.05rem, 1.32vw, 1.6rem) !important;
      line-height: .92 !important;
      letter-spacing: -0.055em !important;
      text-align: right !important;
      white-space: nowrap !important;
    }

    .fos-final-tagline span {
      display: block !important;
      font-family: 'AvantGardeBook', Arial, sans-serif !important;
      font-weight: 400 !important;
    }



    /* V16 final: leave carousel and Forty One Signs position unchanged.
       Only adjust the sub text under Signs and force the supplied Avant Garde Book font. */
    #index-intro-carousel .fos-final-tagline,
    #index-intro-carousel .fos-final-tagline span {
      font-family: 'AvantGardeBook', 'Avant Garde Book' !important;
      font-weight: 400 !important;
      font-style: normal !important;
      text-transform: uppercase !important;
      -webkit-font-smoothing: antialiased !important;
      text-rendering: geometricPrecision !important;
    }

    #index-intro-carousel .fos-final-tagline {
      top: calc(100% + .34em) !important;
      right: 0 !important;
      font-size: clamp(1.28rem, 1.62vw, 1.95rem) !important;
      line-height: .94 !important;
      letter-spacing: -0.058em !important;
      text-align: right !important;
      white-space: nowrap !important;
    }

  

    /* V17: keep intro/lockup attached to the hero image, not the viewport/page. */
    #hero {
      position: relative !important;
      overflow: hidden !important;
      min-height: calc(100vh - 0px) !important;
    }

    #hero #index-intro-carousel {
      position: absolute !important;
      inset: 0 !important;
      z-index: 6 !important;
      display: flex !important;
      align-items: flex-end !important;
      justify-content: flex-end !important;
      background: transparent !important;
      overflow: hidden !important;
      pointer-events: none !important;
      font-family: 'AvantGardeBook', sans-serif !important;
    }

    #hero .fos-intro-lockup,
    #hero .fos-intro-lockup *,
    #hero .fos-final-tagline,
    #hero .fos-final-tagline span {
      font-family: 'AvantGardeBook', sans-serif !important;
      font-weight: 400 !important;
      font-style: normal !important;
    }

    #hero .fos-final-tagline {
      top: calc(100% + .42em) !important;
      font-size: clamp(1.35rem, 1.72vw, 2.05rem) !important;
      line-height: .94 !important;
      letter-spacing: -0.058em !important;
    }


    /* V19 polish: smoother carousel, hero-bound cinematic zoom, refined SEO footer block */
    #hero {
      background-image: none !important;
      isolation: isolate;
    }

    #hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background-image: url('../img/bg.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transform: scale(1);
      transform-origin: center center;
      will-change: transform;
      animation: fosHeroSlowZoom 18s ease-out forwards;
    }

    @keyframes fosHeroSlowZoom {
      from { transform: scale(1); }
      to { transform: scale(1.025); }
    }

    body.index-page.intro-complete #hero::after {
      animation-play-state: paused;
    }

    #hero::before {
      background: transparent !important;
      z-index: 1;
      pointer-events: none;
    }

    #hero > .container {
      z-index: 2;
    }

    #hero #index-intro-carousel {
      z-index: 6 !important;
    }

    #index-intro-carousel .fos-intro-lockup {
      column-gap: clamp(8px, .72vw, 14px) !important;
    }

    #index-intro-carousel .fos-final-tagline {
      top: calc(100% + .48em) !important;
      font-size: clamp(1.42rem, 1.82vw, 2.15rem) !important;
      line-height: .96 !important;
    }

    #intro-text.footer-seo-block {
      max-width: 1040px;
      margin: clamp(3rem, 7vw, 6rem) auto clamp(2rem, 5vw, 4rem);
      padding: clamp(2.3rem, 5vw, 4.2rem) clamp(1.5rem, 4vw, 3rem);
      border-top: 1px solid rgba(255,255,255,.14);
      border-bottom: 1px solid rgba(255,255,255,.10);
      background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
    }

    #intro-text.footer-seo-block p {
      margin: 0 auto !important;
      max-width: 920px;
    }

    #intro-text.footer-seo-block .seo-heading {
      display: block;
      max-width: 820px;
      margin: 0 auto clamp(1rem, 2vw, 1.4rem);
      color: #fff;
      font-size: clamp(1.55rem, 2.55vw, 2.45rem);
      line-height: 1.12;
      letter-spacing: -.025em;
      font-weight: 700;
    }

    #intro-text.footer-seo-block .seo-copy {
      display: block;
      max-width: 880px;
      margin: 0 auto;
      color: rgba(255,255,255,.78);
      font-size: clamp(1rem, 1.35vw, 1.15rem);
      line-height: 1.75;
      font-weight: 400;
    }

    @media (prefers-reduced-motion: reduce) {
      #hero::after { animation: none !important; }
    }


    /* V20 compact editorial SEO closing block */
    #intro-text.fos-expertise-compact {
      max-width: 1180px !important;
      margin: clamp(2.4rem, 4.5vw, 4.2rem) auto clamp(1.6rem, 3.5vw, 3rem) !important;
      padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.25rem, 3.2vw, 2.4rem) !important;
      border-top: 1px solid rgba(255,255,255,.10) !important;
      border-bottom: 1px solid rgba(255,255,255,.08) !important;
      background: transparent !important;
      text-align: left !important;
    }

    .fos-expertise-inner {
      max-width: 1040px;
      margin: 0 auto;
    }

    .fos-section-kicker {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: clamp(1rem, 2vw, 1.45rem);
      color: rgba(255,255,255,.58);
      font-size: .82rem;
      line-height: 1;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
    }

    .fos-section-kicker i {
      display: block;
      width: clamp(96px, 12vw, 160px);
      height: 2px;
      background: var(--fos-yellow);
      opacity: .95;
    }

    .fos-expertise-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
      gap: clamp(1.8rem, 5vw, 4.8rem);
      align-items: start;
    }

    .fos-expertise-copy h2 {
      margin: 0 0 .75rem;
      color: #fff;
      font-size: clamp(1.48rem, 2.45vw, 2.32rem);
      line-height: 1.10;
      letter-spacing: -.035em;
      font-weight: 500;
    }

    .fos-expertise-copy p {
      max-width: 650px !important;
      margin: 0 !important;
      color: rgba(255,255,255,.72);
      font-size: clamp(.92rem, 1.05vw, 1.02rem);
      line-height: 1.62;
      font-weight: 400;
    }

    .fos-specialties-wrap {
      padding-top: .12rem;
    }

    .fos-specialties-kicker {
      margin-bottom: clamp(.8rem, 1.4vw, 1.1rem);
      font-size: .74rem;
      letter-spacing: .17em;
    }

    .fos-specialties-kicker i {
      width: clamp(74px, 8vw, 112px);
      height: 1px;
    }

    .fos-specialties {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .38rem clamp(1.15rem, 3vw, 2.4rem);
      color: rgba(255,255,255,.74);
      font-size: clamp(.84rem, .93vw, .94rem);
      line-height: 1.28;
      letter-spacing: .01em;
    }

    .fos-specialties span {
      display: block;
      transition: color .25s ease;
    }

    .fos-specialties span:hover {
      color: var(--fos-yellow);
    }

    @media (max-width: 860px) {
      #intro-text.fos-expertise-compact {
        padding-inline: 1.25rem !important;
      }

      .fos-expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
      }

      .fos-specialties {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 520px) {
      .fos-specialties {
        grid-template-columns: 1fr;
      }
    }
