
    /* ==========================================================================
       1. TOKENS & RESET
       ========================================================================== */
    :root {
      --green: #19392F;
      --green-deep: #0E2119;
      --green-mid: #24513F;
      --green-tint: rgba(25, 57, 47, .08);
      --sage: #9DBBA9;
      --sage-soft: rgba(157, 187, 169, .35);
      --mist: #F2F6F3;
      --white: #fff;
      --ink: #131B17;
      --muted-light: rgba(255, 255, 255, .70);
      --muted-dark: rgba(19, 27, 23, .62);
      --line-light: rgba(255, 255, 255, .16);
      --line-dark: rgba(19, 27, 23, .12);

      --ease: cubic-bezier(.16, 1, .3, 1);
      --ease-io: cubic-bezier(.65, 0, .35, 1);
      --pad: clamp(20px, 5vw, 90px);
      --radius: 4px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      background: var(--white);
      color: var(--ink);
      font-family: 'Inter', Arial, sans-serif;
      font-size: 16px;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
    }

    ::selection { background: var(--green); color: #fff; }

    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { font-family: inherit; cursor: pointer; }

    .container {
      width: min(1240px, 100% - 2 * var(--pad));
      margin-inline: auto;
    }

    /* scroll progress */
    .scroll-progress {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 2px;
      background: var(--sage);
      transform-origin: left;
      transform: scaleX(0);
      z-index: 300;
    }

    /* eyebrow */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .32em;
      text-transform: uppercase;
      color: var(--green);
    }

    .eyebrow::before {
      content: '';
      width: 34px; height: 1px;
      background: var(--green);
    }

    .eyebrow.on-dark { color: var(--sage); }
    .eyebrow.on-dark::before { background: var(--sage); }

    .section-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-weight: 500;
      font-size: clamp(30px, 4.4vw, 54px);
      line-height: 1.12;
      letter-spacing: -.01em;
      color: var(--ink);
    }

    .section-title em {
      font-style: italic;
      color: var(--green);
    }

    .section-title.on-dark { color: #fff; }
    .section-title.on-dark em { color: var(--sage); }

    .section-desc {
      max-width: 56ch;
      color: var(--muted-dark);
      margin-top: 18px;
    }

    .section-head { margin-bottom: clamp(36px, 6vw, 64px); }

    /* reveal engine */
    .reveal {
      opacity: 0;
      transform: translateY(34px);
      transition: opacity .9s var(--ease), transform .9s var(--ease);
    }

    .reveal-scale {
      opacity: 0;
      transform: scale(.94) translateY(20px);
      transition: opacity .9s var(--ease), transform .9s var(--ease);
    }

    .reveal.is-in, .reveal-scale.is-in {
      opacity: 1;
      transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
      html { scroll-behavior: auto; }
    }

    /* ==========================================================================
       2. MODULE 1 — HERO (full-bleed photo + text)
       ========================================================================== */
    .index-hero {
      position: relative;
      min-height: calc(92svh - 80px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      background: var(--green-deep);
      color: #fff;
      padding: clamp(90px, 12vh, 150px) 0 clamp(70px, 10vh, 120px);
    }

    .hero-bg {
      position: absolute;
      inset: -12% 0;
      z-index: 0;
    }

    .hero-photo {position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }

    .hero-grad {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(100deg, rgba(14, 33, 25, .94) 0%, rgba(25, 57, 47, .78) 46%, rgba(25, 57, 47, .30) 100%);
    }

    .hero-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: radial-gradient(120% 100% at 30% 40%, #000 30%, transparent 75%);
    }

    .hero-vignette {
      position: absolute;
      inset: 0;
      background: radial-gradient(110% 85% at 50% 40%, transparent 40%, rgba(6, 16, 12, .55) 100%);
    }

    .hero-inner { position: relative; z-index: 2; }

    .hero-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-weight: 500;
      font-size: clamp(44px, 7.6vw, 104px);
      line-height: 1.04;
      letter-spacing: -.015em;
      margin: 26px 0 0;
      max-width: 12ch;
    }

    .hero-title .w {
      display: inline-block;
      overflow: hidden;
      vertical-align: bottom;
      padding-bottom: .08em;
      margin-bottom: -.08em;
    }

    .hero-title .w > i {
      display: inline-block;
      font-style: normal;
      transform: translateY(110%) rotate(2deg);
      animation: word-up 1s var(--ease) forwards;
    }

    .hero-title em .w > i, .hero-title .w em {
      font-style: italic;
      color: var(--sage);
    }

    @keyframes word-up {
      to { transform: translateY(0) rotate(0); }
    }

    .hero-sub {
      max-width: 52ch;
      margin-top: 28px;
      color: var(--muted-light);
      font-size: clamp(15px, 1.6vw, 18px);
      font-weight: 300;
      opacity: 0;
      animation: fade-up 1s var(--ease) .7s forwards;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 40px;
      opacity: 0;
      animation: fade-up 1s var(--ease) .9s forwards;
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(22px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 17px 32px;
      border: 1px solid var(--line-light);
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #fff;
      position: relative;
      overflow: hidden;
      transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
    }

    .btn .arw { transition: transform .45s var(--ease); }

    .btn:hover .arw { transform: translateX(5px); }
    .btn:hover { transform: translateY(-3px); border-color: var(--sage); }

    .btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--sage);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform .5s var(--ease-io);
      z-index: -1;
    }

    .btn:hover::after { transform: scaleX(1); transform-origin: left; }
    .btn:hover { color: var(--green-deep); }

    .btn.btn-solid {
      background: var(--sage);
      border-color: var(--sage);
      color: var(--green-deep);
    }

    .btn.btn-solid::after { background: #fff; }

    .hero-scroll {
      position: absolute;
      right: clamp(20px, 5vw, 90px);
      bottom: 34px;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      font-size: 10px;
      letter-spacing: .3em;
      text-transform: uppercase;
      color: var(--muted-light);
      writing-mode: vertical-rl;
    }

    .hero-scroll i {
      width: 1px; height: 52px;
      background: linear-gradient(var(--sage), transparent);
      animation: scroll-pulse 2.2s var(--ease-io) infinite;
    }

    @keyframes scroll-pulse {
      0% { transform: scaleY(0); transform-origin: top; }
      45% { transform: scaleY(1); transform-origin: top; }
      55% { transform: scaleY(1); transform-origin: bottom; }
      100% { transform: scaleY(0); transform-origin: bottom; }
    }

    /* ==========================================================================
       3. STATS STRIP (animated counters)
       ========================================================================== */
    .index-stats {
      background: var(--green);
      color: #fff;
      padding: clamp(34px, 5vw, 54px) 0;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: clamp(20px, 4vw, 40px);
    }

    .stat {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding-left: clamp(16px, 2vw, 28px);
      border-left: 1px solid var(--line-light);
    }

    .stat b {
      font-family: 'Playfair Display', Georgia, serif;
      font-weight: 500;
      font-size: clamp(30px, 3.6vw, 46px);
      line-height: 1;
      color: var(--sage);
    }

    .stat span {
      font-size: 11px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--muted-light);
      line-height: 1.5;
    }

    /* ==========================================================================
       7. FAQ ACCORDION (topics + general questions)
       ========================================================================== */
    .index-faq {
      padding: clamp(80px, 11vw, 140px) 0;
      background: var(--mist);
    }

    .acc {
      max-width: 980px;
      margin-left: auto;
      margin-right: auto;
    }

    .acc-item {
      border-bottom: 1px solid var(--line-dark);
    }

    .acc-item:first-child { border-top: 1px solid var(--line-dark); }

    .acc-q {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 26px 4px;
      background: none;
      border: 0;
      color: var(--ink);
      text-align: left;
      font-size: clamp(15px, 1.8vw, 18px);
      font-weight: 600;
      letter-spacing: -.005em;
      transition: color .4s var(--ease), padding-left .4s var(--ease);
    }

    .acc-q:hover { color: var(--green); padding-left: 14px; }

    .acc-ico {
      flex: none;
      position: relative;
      width: 34px; height: 34px;
      border: 1px solid var(--line-dark);
      border-radius: 50%;
      transition: transform .55s var(--ease), background .55s var(--ease), border-color .55s var(--ease);
    }

    .acc-ico::before, .acc-ico::after {
      content: '';
      position: absolute;
      top: 50%; left: 50%;
      width: 12px; height: 1.5px;
      background: currentColor;
      transform: translate(-50%, -50%);
      transition: transform .55s var(--ease);
    }

    .acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }

    .acc-item.is-open .acc-ico {
      transform: rotate(135deg);
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .acc-body {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows .6s var(--ease);
    }

    .acc-item.is-open .acc-body { grid-template-rows: 1fr; }

    .acc-body > div { overflow: hidden; }

    .acc-body p {
      padding: 0 4px 28px;
      max-width: 66ch;
      color: var(--muted-dark);
      font-size: 15px;
      font-weight: 300;
    }

    /* ==========================================================================
       8. CTA
       ========================================================================== */
    .index-cta {
      position: relative;
      padding: clamp(90px, 13vw, 160px) 0;
      background: var(--brand);
      text-align: center;
      overflow: hidden;
    }

    .index-cta .container { position: relative; z-index: 1; }

    .cta-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      margin-top: 42px;
    }

    .btn.btn-green {
      border-color: var(--green);
      color: var(--green);
    }

    .btn.btn-green::after { background: var(--green); }
    .btn.btn-green:hover { color: #fff; border-color: var(--green); }

    .btn.btn-fill {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .btn.btn-fill::after { background: var(--green-deep); }

    /* CTA sits on the logo green: flip text and buttons for contrast */
    .index-cta { color: #fff; }

    .index-cta .eyebrow { color: rgba(255, 255, 255, .78); }

    .index-cta .section-title { color: #fff; }
    .index-cta .section-title em { color: var(--sage); }

    .index-cta .section-desc { color: rgba(255, 255, 255, .82); }

    .index-cta .btn.btn-fill {
      background: #fff;
      border-color: #fff;
      color: var(--brand);
    }

    .index-cta .btn.btn-fill::after { background: var(--sage); }
    .index-cta .btn.btn-fill:hover { color: var(--green-deep); }

    .index-cta .btn.btn-green { border-color: rgba(255, 255, 255, .6); color: #fff; }
    .index-cta .btn.btn-green:hover { color: var(--green-deep); border-color: var(--sage); }

    /* ==========================================================================
       9. MEDIA QUERIES
       ========================================================================== */
    @media (max-width: 1024px) {
      .hero-title { max-width: 14ch; }
    }

    @media (max-width: 820px) {
      .index-hero { min-height: auto; }

      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }

      .hero-scroll { display: none; }
    }

    @media (max-width: 600px) {
      .acc-q { font-size: 15px; gap: 16px; }

      .stat { padding-left: 14px; }
    }

    @media (max-width: 430px) {
      .hero-actions .btn { width: 100%; justify-content: center; }

      .stats-grid { grid-template-columns: 1fr; }

      .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 18px; }
    }
  

/* ---- */


    :root {
      --brand: #058934;
      --brand-bright: #08a640;
      --forest: #063528;
      --forest-deep: #03281e;
      --ink: #17231e;
      --warm: #f7f5ef;
      --white: #fffefa;
      --line: #d8d9d2;
      --muted: #66716b;
    }

    body .site-header,
    body .site-footer {
      font-family: "Manrope", "Inter", Arial, sans-serif;
    }

    /* ---------------- header ---------------- */
    body .site-header {
      position: sticky;
      top: 0;
      left: auto;
      right: auto;
      z-index: 100;
      display: grid;
      grid-template-columns: 140px 1fr auto;
      align-items: center;
      height: 80px;
      padding: 0 clamp(24px, 4vw, 74px);
      border-bottom: 1px solid rgba(23, 35, 30, 0.14);
      background: rgba(255, 254, 250, 0.96);
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
    }

    body .brand {
      display: block;
      width: 94px;
    }

    body .brand img {
      width: 100%;
      height: auto;
    }

    body .primary-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(28px, 4vw, 68px);
    }

    body .primary-nav a,
    body .language-trigger {
      position: relative;
      border: 0;
      background: transparent;
      font-size: 13px;
      font-weight: 600;
    }

    body .primary-nav a {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    body .primary-nav a::after {
      position: absolute;
      right: 0;
      bottom: -7px;
      left: 0;
      height: 2px;
      content: "";
      background: linear-gradient(90deg, var(--brand-bright), var(--brand));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    body .primary-nav a:hover::after,
    body .primary-nav a:focus-visible::after {
      transform: scaleX(1);
    }

    body .primary-nav a:hover,
    body .primary-nav a.is-current {
      color: var(--brand);
    }

    body .primary-nav a.is-current::after {
      transform: scaleX(1);
    }

    /* ---------------- products dropdown ---------------- */
    body .nav-dropdown {
      position: relative;
      display: flex;
      align-items: center;
    }

    body .nav-dropdown > a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    body .nav-dropdown > a svg {
      width: 11px;
      height: 11px;
      margin-top: 1px;
      transition: transform 220ms ease;
    }

    body .nav-dropdown:hover > a svg,
    body .nav-dropdown:focus-within > a svg {
      transform: rotate(180deg);
    }

    body .nav-dropdown-menu {
      position: absolute;
      top: calc(100% + 14px);
      left: 50%;
      min-width: 250px;
      padding: 8px;
      background: var(--white);
      border: 1px solid var(--line);
      box-shadow: 0 24px 55px rgba(6, 53, 40, 0.18);
      transform: translateX(-50%) translateY(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
    }

    body .nav-dropdown-menu::before {
      content: "";
      position: absolute;
      top: -5.5px;
      left: 50%;
      width: 10px;
      height: 10px;
      background: var(--white);
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
      transform: translateX(-50%) rotate(45deg);
    }

    body .nav-dropdown:hover .nav-dropdown-menu,
    body .nav-dropdown:focus-within .nav-dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    body .nav-dropdown-label {
      margin: 10px 12px 8px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    body .nav-dropdown-menu a {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      margin-bottom: 2px;
      padding: 0 12px 0 16px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      transition: background 160ms ease, padding-left 200ms ease;
    }

    body .nav-dropdown-menu a:last-child {
      margin-bottom: 0;
    }

    body .nav-dropdown-menu a::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      width: 3px;
      height: 0;
      background: var(--brand);
      transform: translateY(-50%);
      transition: height 220ms ease;
    }

    body .nav-dropdown-menu a::after {
      position: static;
      display: block;
      width: 7px;
      height: 7px;
      margin-left: auto;
      content: "";
      background: transparent;
      border-top: 2px solid var(--brand);
      border-right: 2px solid var(--brand);
      opacity: 0;
      transform: rotate(45deg) scale(0.6);
      transition: opacity 200ms ease, transform 200ms ease;
    }

    body .nav-dropdown-menu a:hover,
    body .nav-dropdown-menu a:focus-visible {
      padding-left: 22px;
      background: #edf4ef;
    }

    body .nav-dropdown-menu a:hover::before,
    body .nav-dropdown-menu a:focus-visible::before {
      height: 22px;
    }

    body .nav-dropdown-menu a:hover::after,
    body .nav-dropdown-menu a:focus-visible::after {
      opacity: 1;
      transform: rotate(45deg) scale(1);
    }

    /* ---------------- header actions ---------------- */
    body .header-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 17px;
    }

    body .language-shell {
      position: relative;
    }

    body .language-trigger {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      gap: 5px;
    }

    body .language-trigger svg {
      width: 14px;
      height: 14px;
    }

    body .language-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 210px;
      padding: 10px;
      border: 1px solid var(--line);
      background: var(--white);
      box-shadow: 0 22px 50px rgba(6, 53, 40, 0.16);
    }

    body .language-menu button {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      min-height: 42px;
      padding: 0 10px;
      border: 0;
      background: #edf4ef;
      font-size: 13px;
      font-weight: 700;
    }

    body .language-menu p {
      margin: 11px 10px 5px;
      color: var(--muted);
      font-size: 11px;
    }

    body .header-project {
      display: inline-flex;
      align-items: center;
      min-height: 46px;
      padding: 0 24px;
      border: 1px solid var(--brand);
      color: white;
      background: var(--brand);
      font-size: 12px;
      font-weight: 700;
      transition: background 180ms ease, transform 180ms ease;
    }

    body .header-project:hover {
      background: var(--forest);
      transform: translateY(-2px);
    }

    body .menu-toggle,
    body .mobile-project-link {
      display: none;
    }

    /* ---------------- footer ---------------- */
    body .site-footer {
      display: grid;
      grid-template-columns: 1.5fr repeat(3, 1fr);
      gap: clamp(28px, 4vw, 70px);
      align-items: start;
      padding: 64px clamp(26px, 5vw, 86px);
      color: white;
      background: var(--forest-deep);
      font-size: 13px;
    }

    body .footer-brand {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 25px;
      align-items: start;
    }

    body .footer-brand img {
      width: 90px;
    }

    body .footer-brand p {
      max-width: 24ch;
      margin: 0;
      color: rgba(255, 255, 255, 0.68);
      font-size: 11px;
      line-height: 1.65;
    }

    body .site-footer nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    body .site-footer h2 {
      margin: 0 0 6px;
      font-family: "Manrope", "Inter", Arial, sans-serif;
      font-size: 12px;
      font-weight: 700;
    }

    body .site-footer h2 a {
      color: white;
      font-size: 12px;
    }

    body .site-footer a,
    body .site-footer button {
      width: fit-content;
      padding: 0;
      border: 0;
      color: rgba(255, 255, 255, 0.66);
      background: transparent;
      font-size: 11.5px;
    }

    body .site-footer a:hover,
    body .site-footer button:hover {
      color: white;
    }

    /* ---------------- responsive ---------------- */
    @media (max-width: 1120px) {
      body .site-header {
        grid-template-columns: 110px 1fr auto;
        padding-inline: 28px;
      }

      body .primary-nav {
        gap: 26px;
      }

      body .site-footer {
        grid-template-columns: 1.2fr repeat(3, 1fr);
      }
    }

    @media (max-width: 820px) {
      body .site-header {
        grid-template-columns: 1fr auto;
        height: 68px;
        padding: 0 18px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
      }

      body .brand {
        width: 74px;
      }

      body .primary-nav {
        position: fixed;
        z-index: 99;
        top: 68px;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 36px 22px;
        color: white;
        background: #000;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
      }

      body .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
      }

      body .primary-nav a {
        display: flex;
        align-items: center;
        min-height: 64px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-family: "Barlow Condensed", Arial Narrow, sans-serif;
        font-size: 34px;
        font-weight: 300;
        letter-spacing: 0;
      }

      body .primary-nav a::after {
        display: none;
      }

      body .primary-nav a.is-current {
        color: var(--brand-bright);
      }

      body .nav-dropdown {
        flex-direction: column;
        align-items: stretch;
      }

      body .nav-dropdown > a svg {
        display: none;
      }

      body .nav-dropdown-menu {
        position: static;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
      }

      body .nav-dropdown-menu::before,
      body .nav-dropdown-label,
      body .nav-dropdown-menu a::after {
        display: none;
      }

      body .nav-dropdown-menu a {
        min-height: 56px;
        margin: 0;
        padding: 0 0 0 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        font-family: "Barlow Condensed", Arial Narrow, sans-serif;
        font-size: 21px;
        font-weight: 300;
      }

      body .nav-dropdown-menu a::before {
        width: 2px;
        height: 20px;
        background: var(--brand-bright);
      }

      body .mobile-project-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        margin-top: 30px;
        padding: 0 18px;
        border: 1px solid var(--brand-bright);
        color: white;
        background: var(--brand);
        font-weight: 700;
        font-family: "Manrope", "Inter", Arial, sans-serif;
        font-size: 13px;
      }

      body .header-project {
        display: none;
      }

      body .menu-toggle {
        display: grid;
        width: 46px;
        height: 46px;
        padding: 0;
        place-items: center;
        border: 0;
        background: transparent;
      }

      body .menu-toggle svg {
        width: 25px;
        height: 25px;
      }

      body .site-footer {
        grid-template-columns: 1fr 1fr;
        padding: 58px 22px;
      }

      body .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 20px;
      }
    }

    @media (max-width: 430px) {
      body .site-footer {
        gap: 34px 22px;
      }
    }
  

/* ---- */


    /* The banner photo for this page. Defined here (inside the override block,
       which is last in the cascade) rather than patching the page's own :root,
       so pages that hard-code .hero-photo keep working and nothing else moves. */
    :root {
      --hero-photo: url('../ai/factory/warehouse.webp');
    }

    @keyframes heroDriftU {
      from { transform: scale(1.06) translate3d(0, 0, 0); }
      to   { transform: scale(1.06) translate3d(-1.6%, -1.2%, 0); }
    }
    @keyframes scrollPulseU {
      0%, 100% { opacity: .3; }
      50%      { opacity: 1; }
    }

    /* ---------------- frame ---------------- */
    body .index-hero {
      position: relative;
      min-height: 72svh;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-end;
      padding: 0;
      color: #fff;
      overflow: hidden;
      isolation: isolate;
    }

    /* The copy must never be clipped by the 72svh floor: on a short viewport
       (e.g. a landscape phone, or a 600px-tall window) 72svh is less than the
       header + headline + lede + buttons stack, and because .index-hero is
       overflow:hidden the lede and CTAs get cut off. min-height is a floor, so
       let the content raise it instead of overflowing. */
    body .hero-inner {
      min-height: 0;
    }

    /* ==================================================================
       Background — ONE composited layer.
       The previous build stacked seven children (photo, wash, grid, 2 orbs,
       vignette, noise), and every frame the browser had to repaint the photo
       (~1.8 MPx), re-tile a masked 96px grid via background-position, and
       re-run two blur(70px) filters whose mix-blend-mode:screen disabled
       compositor isolation. That is what made the page feel heavy.

       It is now a single .hero-bg whose background is a plain CSS stack:
       green veil + soft light pools (free, no blur filter needed) + the photo.
       Only transform animates, so it runs on the compositor and never touches
       the paint path. Kept as a real element rather than baked into
       .index-hero so a page's own JS can still address its photo node.
       ================================================================== */
    body .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-color: #0E2119;
      background-image:
        linear-gradient(160deg,
          rgba(30, 68, 55, .76) 0%,
          rgba(25, 57, 47, .70) 42%,
          rgba(14, 33, 25, .86) 100%),
        radial-gradient(120% 90% at 78% 18%, rgba(61, 120, 93, .38) 0%, rgba(25, 57, 47, 0) 58%),
        radial-gradient(90% 80% at 12% 92%, rgba(157, 187, 169, .16) 0%, rgba(14, 33, 25, 0) 60%),
        radial-gradient(140% 110% at 50% 40%, rgba(6, 16, 12, 0) 42%, rgba(6, 16, 12, .5) 100%),
        var(--hero-photo, none);
      background-size: cover, cover, cover, cover, cover;
      background-position: center;
      background-repeat: no-repeat;
      /* promote once; transform-only animation stays on the GPU */
      will-change: transform;
      animation: heroDriftU 32s ease-in-out infinite alternate;
    }

    /* every legacy layer is inert now — neutralised so a page that still ships
       the markup (or its own rules for it) cannot reintroduce paint work */
    body .hero-photo,
    body .hero-grad,
    body .hero-tint,
    body .hero-grid,
    body .hero-orb,
    body .hero-vignette,
    body .hero-noise {
      display: none !important;
      animation: none !important;
      filter: none !important;
      mix-blend-mode: normal !important;
    }

    /* ---------------- copy block ---------------- */
    /* The copy used to sit at a different left edge on different pages, because
       .container had two implementations in the wild:
           products / faq -> width: min(1240px, 100% - 2 * pad); margin-inline:auto
           the other four -> width:100%; max-width:1360px; padding: 0 pad
       and on top of that .hero-inner / .hero-stats carried their own padding on
       some pages and none on others. Pin all three onto one spine: a 1360px box
       whose inner gutter is always var(--pad). */
    body .index-hero .container {
      width: 100%;
      max-width: 1360px;
      margin: 0 auto;
      padding-left: var(--pad, clamp(20px, 5vw, 90px));
      padding-right: var(--pad, clamp(20px, 5vw, 90px));
    }

    body .hero-inner {
      position: relative;
      z-index: 2;
      width: 100%;
      /* vertical rhythm only — the horizontal gutter belongs to .container so
         the two never stack into a double indent */
      padding-left: 0;
      padding-right: 0;
      padding-top: calc(var(--header-h) + 64px);
      padding-bottom: clamp(64px, 8vh, 100px);
    }

    body .index-hero > .hero-stats {
      position: static;
      left: auto;
      right: auto;
      bottom: auto;
      z-index: 3;
      margin-top: auto;
      width: 100%;
      max-width: 1360px;
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--pad, clamp(20px, 5vw, 90px));
      padding-right: var(--pad, clamp(20px, 5vw, 90px));
    }

    /* the stat strip draws its own top border across the full width, so let that
       line bleed edge to edge while the numbers stay on the copy's spine */
    body .index-hero > .hero-stats::before {
      left: 0;
      right: 0;
    }

    body .hero-title {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                   'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      font-size: clamp(40px, 7.6vw, 104px);
      font-weight: 200;
      font-style: normal;
      line-height: .98;
      letter-spacing: -.045em;
      margin: 26px 0 0;
      max-width: 20ch;
    }

    /* Products / FAQ reveal their words with a keyframe; the other four use the
       .is-in class. Their JS never adds .is-in to the title at all, so once the
       keyframe is neutralised the words stay parked at translateY(110%) inside
       an overflow:hidden mask -> an invisible headline. Unify on the class-driven
       reveal, and make the *unrevealed* state opt-in via .w-reveal so a page
       whose JS never touches the title cannot end up blank: with no class the
       words are simply visible. */
    body .hero-title .w {
      display: inline-block;
      overflow: hidden;
      vertical-align: bottom;
      padding-right: .22em;
      padding-bottom: .08em;
      margin-bottom: -.08em;
    }

    body .hero-title .w > i {
      display: inline-block;
      font-style: inherit;
      font-family: inherit;
      font-weight: inherit;
      animation: none !important;
      transform: translateY(0);
      transition: transform 1.15s cubic-bezier(.16, 1, .3, 1);
    }

    body .hero-title.w-reveal .w > i {
      transform: translateY(112%);
    }

    body .hero-title.w-reveal.is-in .w > i {
      transform: translateY(0);
    }

    /* keep the staggered cascade the pages already encode */
    body .hero-title .w:nth-child(1) > i { transition-delay: .12s; }
    body .hero-title .w:nth-child(2) > i { transition-delay: .19s; }
    body .hero-title .w:nth-child(3) > i { transition-delay: .26s; }
    body .hero-title .w:nth-child(4) > i { transition-delay: .33s; }
    body .hero-title .w:nth-child(5) > i { transition-delay: .40s; }
    body .hero-title .w:nth-child(6) > i { transition-delay: .47s; }
    body .hero-title .w:nth-child(7) > i { transition-delay: .54s; }
    body .hero-title .w:nth-child(8) > i { transition-delay: .61s; }

    body .hero-title em {
      font-family: 'Playfair Display', Georgia, serif;
      font-style: italic;
      font-weight: 500;
      letter-spacing: -.02em;
    }

    /* Products / FAQ tint the italic word; match the plain sage used elsewhere
       only if the page asked for it — keep the accent, drop the extra weight. */
    body .hero-title .w em {
      font-style: italic;
    }

    body .hero-sub,
    body .hero-lede {
      margin-top: 28px;
      max-width: 620px;
      font-size: clamp(15px, 1.25vw, 18px);
      line-height: 1.85;
      font-weight: 300;
      color: rgba(255, 255, 255, .78);
    }

    body .hero-actions,
    body .hero-quick,
    body .hero-meta {
      margin-top: 36px;
    }

    /* ---------------- scroll hint (now on every page) ---------------- */
    /* The old version animated scaleY with a *changing* transform-origin
       (top, then bottom), which forces the layer to be re-rastered each frame.
       A steady opacity pulse reads the same and costs nothing. */
    body .hero-scroll {
      position: absolute;
      right: var(--pad, clamp(20px, 5vw, 90px));
      bottom: 34px;
      z-index: 4;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      font-size: 10px;
      letter-spacing: .3em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .6);
      writing-mode: vertical-rl;
    }

    body .hero-scroll i {
      display: block;
      width: 1px;
      height: 52px;
      background: linear-gradient(rgba(157, 187, 169, .9), transparent);
      will-change: transform;
      animation: scrollPulseU 2.4s ease-in-out infinite;
    }

    /* About's stat strip sits above the scroll hint. */
    body .index-hero:has(.hero-stats) .hero-scroll {
      bottom: calc(var(--hero-stats-h, 96px) + 24px);
    }

    /* ---------------- responsive ---------------- */
    @media (max-width: 992px) {
      body .hero-title {
        max-width: 16ch;
      }
    }

    @media (max-width: 820px) {
      /* Pages drop their own 62-92svh floors to auto here. Keep a real floor
         (so the banner still reads as a banner) but let it grow with the copy —
         the copy stack is taller than 72svh of a short phone, and the photo
         layers need some height to be visible at all. */
      body .index-hero {
        min-height: max(62svh, 420px);
        height: auto;
        padding: 0;
      }

      body .hero-photo {
        inset: 0;
      }

      body .index-hero > .hero-stats {
        margin-top: 0;
      }

      body .hero-scroll {
        display: none;
      }
    }

    @media (max-width: 768px) {
      body .hero-inner {
        padding-top: calc(var(--header-h) + 52px);
        padding-bottom: clamp(56px, 9vh, 84px);
      }

      body .hero-title {
        font-size: clamp(34px, 9.6vw, 60px);
        max-width: none;
      }

      body .hero-sub,
      body .hero-lede {
        margin-top: 22px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      body .hero-photo,
      body .hero-grid,
      body .hero-orb,
      body .hero-scroll i {
        animation: none !important;
      }
    }

/* ==========================================================================
   Mobile navigation: scrollable panel + collapsible sub-menus.

   The closed panel is a full-screen fixed layer with visibility:hidden, but its
   children (the Products / About dropdown menus) are set visibility:visible,
   so the invisible overlay still intercepted taps on the page beneath. Disable
   hit-testing while closed and restore it when open. The link list is taller
   than the viewport, so the open panel must scroll; sub-menus stay collapsed
   behind a tap-to-expand parent row instead of pushing every item into view.
   ========================================================================== */
@media (max-width: 820px) {
  body .primary-nav:not(.is-open) { pointer-events: none; }
  body .primary-nav.is-open { pointer-events: auto; }

  body .primary-nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }

  /* sub-menus hidden until their parent row is tapped */
  body .primary-nav .nav-dropdown-menu { display: none; }
  body .primary-nav .nav-dropdown.is-expanded .nav-dropdown-menu { display: block; }

  /* Neutralise the desktop hover rules inside the mobile panel: on a touch tap
     the browser fires :hover first, and the desktop rule shifts the submenu
     with translateX(-50%), moving the links out from under the finger so the
     tap misses them. */
  body .nav-dropdown:hover .nav-dropdown-menu,
  body .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  body .primary-nav .nav-dropdown:hover > a svg { transform: none; }

  /* the desktop hover highlight is a light block — too bright on the dark
     mobile panel and it sticks after a tap, so use a subtle translucent tint */
  body .primary-nav .nav-dropdown-menu a:hover,
  body .primary-nav .nav-dropdown-menu a:focus-visible {
    background: rgba(255, 255, 255, .07);
    color: #fff;
  }

  /* parent row becomes a toggle: label left, chevron right */
  body .primary-nav .nav-dropdown > a {
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
  }
  body .primary-nav .nav-dropdown > a svg {
    display: block;
    width: 15px;
    height: 15px;
    flex: none;
    margin-left: 10px;
    transition: transform 220ms ease;
  }
  body .primary-nav .nav-dropdown.is-expanded > a svg { transform: rotate(180deg); }
}
