/* ============ Tokens ============ */
    :root {
      --orange: #F66014;
      --orange-deep: #F66014; /* exact logo orange — same as --orange */
      --amber: #FFB224;
      --ink: #14161A;
      --ink-2: #1C1F25;
      --ink-3: #2A2E36;
      --paper: #FFFFFF;
      --paper-2: #F4F4F1;
      --text: #23262B;
      --muted: #5B6068;
      --muted-dark: #A9AFBA;
      --line: #E5E5E0;
      --error: #C62828;
      --error-bg: #FDECEA;
      --success: #188038;
      --font-display: 'Archivo Black', 'Arial Black', sans-serif;
      --font-body: 'Inter', system-ui, -apple-system, sans-serif;
      --header-h: 4.25rem;
      --radius: 8px;
    }

    /* ============ Base ============ */
    *, *::before, *::after { box-sizing: border-box; }
    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }
    html { scroll-padding-top: calc(var(--header-h) + 1rem); }
    body {
      margin: 0;
      font-family: var(--font-body);
      font-size: 1rem;
      line-height: 1.6;
      color: var(--text);
      background: var(--paper);
      -webkit-font-smoothing: antialiased;
    }
    h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
    p { margin: 0; text-wrap: pretty; }
    img { max-width: 100%; height: auto; display: block; }
    a { color: inherit; }
    :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

    .container { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
    .visually-hidden {
      position: absolute !important;
      clip-path: inset(50%) !important;
      overflow: hidden !important;
      width: 1px !important;
      height: 1px !important;
      margin: -1px !important;
      padding: 0 !important;
      border: 0 !important;
      white-space: nowrap !important;
    }
    .skip-link {
      position: absolute; inset-block-start: -100%; inset-inline-start: 1rem; z-index: 200;
      background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
      font-weight: 600; text-decoration: none;
    }
    .skip-link:focus { inset-block-start: 0; }

    /* Section scaffolding */
    .section { padding-block: clamp(4rem, 9vw, 6.5rem); }
    .eyebrow {
      display: inline-flex; align-items: center; gap: .6rem;
      font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
      margin-block-end: 1rem;
    }
    .eyebrow::before {
      content: ""; inline-size: 1.75rem; block-size: 6px; flex: none;
      background: repeating-linear-gradient(135deg, var(--orange) 0 6px, transparent 6px 12px);
    }
    .section-head { max-width: 44rem; margin-block-end: clamp(2.5rem, 5vw, 3.5rem); }
    .section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-block-end: 1rem; }
    .section-head .lead { color: var(--muted); font-size: 1.075rem; max-width: 56ch; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
      min-block-size: 48px; padding: .8rem 1.6rem;
      border-radius: var(--radius); border: 1.5px solid transparent;
      font: 700 1rem/1.2 var(--font-body); letter-spacing: .01em;
      text-decoration: none; cursor: pointer;
      transition: translate .15s ease, background-color .15s ease, border-color .15s ease;
    }
    .btn:hover { translate: 0 -1px; }
    .btn-primary { background: var(--orange); color: var(--ink); }
    .btn-primary:hover { background: var(--orange-deep); filter: brightness(1.08); }
    .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
    .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }

    /* ============ Header / Nav ============ */
    .site-header {
      position: sticky; inset-block-start: 0; z-index: 100;
      background: var(--paper);
      border-block-start: 4px solid var(--orange);
      border-block-end: 1px solid var(--line);
    }
    .header-inner {
      max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem;
      block-size: var(--header-h);
      display: flex; align-items: center; gap: 1rem;
    }
    .header-inner > * { flex-shrink: 0; white-space: nowrap; }
    .site-logo { display: flex; align-items: center; margin-inline-end: auto; }
    .logo-img { width: clamp(10.5rem, 58vw, 20rem); height: auto; }

    .site-nav { display: flex; align-items: center; }
    .menu-button {
      display: inline-flex; align-items: center; justify-content: center;
      inline-size: 44px; block-size: 44px;
      background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
      color: var(--text); cursor: pointer;
    }
    .menu-button:hover { border-color: var(--orange); color: var(--orange-deep); }
    .menu-button svg { width: 22px; height: 22px; }

    /* Collapsed: menu is a popover panel */
    .site-header:not(.is-wide) .header-cta { display: none; }
    .menu-button { anchor-name: --menu-button; }
    .site-menu {
      position: fixed;
      inset: auto;
      inset-block-start: calc(var(--header-h) + 0.5rem);
      inset-block-start: anchor(--menu-button bottom);
      inset-inline-end: 1rem;
      inline-size: min(80dvw, 22rem);
      max-inline-size: calc(100dvw - 2rem);
      max-block-size: calc(100dvh - 6rem);
      overflow: auto;
      margin: 0; padding: .5rem;
      list-style: none;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow: 0 24px 60px rgba(20, 22, 26, .22);
    }
    .site-menu::backdrop { background: rgba(20, 22, 26, .25); }
    .site-menu a {
      display: flex; align-items: center; gap: .75rem;
      padding: .9rem 1rem; border-radius: var(--radius);
      font-weight: 600; text-decoration: none; color: var(--text);
    }
    .site-menu a:hover { background: var(--paper-2); }
    .site-menu a[aria-current="page"] { color: var(--orange-deep); }
    .site-menu li:last-child { margin-block-start: .5rem; }
    .site-menu .btn { width: 100%; }
    /* Narrow popover: always a vertical stack (never a clipped horizontal row) */
    .site-header:not(.is-wide) .site-menu {
      display: flex; flex-direction: column; align-items: stretch; gap: .15rem;
    }
    .site-header:not(.is-wide) .site-menu li { width: 100%; }
    .site-header:not(.is-wide) .site-menu a { white-space: normal; }

    /* Entry/exit transition for the popover (progressive enhancement) */
    @media (prefers-reduced-motion: no-preference) {
      .site-menu {
        opacity: 0; translate: 0 -0.5rem;
        transition: opacity .2s ease, translate .2s ease, display .2s allow-discrete, overlay .2s allow-discrete;
        transition-behavior: allow-discrete;
      }
      .site-menu:is(:popover-open, .\:popover-open) { opacity: 1; translate: 0 0; }
      @starting-style {
        .site-menu:is(:popover-open, .\:popover-open) { opacity: 0; translate: 0 -0.5rem; }
      }
    }

    /* Wide: inline navigation */
    .site-header.is-wide .menu-button { display: none; }
    .site-header.is-wide .site-menu {
      position: static; display: flex; align-items: center; gap: .25rem;
      inline-size: auto; max-inline-size: none; max-block-size: none;
      overflow: visible; margin: 0; padding: 0;
      background: transparent; border: 0; box-shadow: none; border-radius: 0;
      opacity: 1; translate: 0 0; /* cancel the popover entry base (opacity:0) once inline */
    }
    .site-header.is-wide .site-menu::backdrop { display: none; }
    .site-header.is-wide .site-menu { gap: .3rem; }
    .site-header.is-wide .site-menu a:not(.btn),
    .site-header.is-wide .dropdown-trigger {
      position: relative; padding: .55rem .7rem .65rem;
      font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
      color: var(--muted); background: none;
      transition: color .18s ease;
    }
    .site-header.is-wide .site-menu a:not(.btn)::after,
    .site-header.is-wide .dropdown-trigger::after {
      content: ""; position: absolute; inset-inline: .7rem; inset-block-end: .2rem;
      block-size: 2px; border-radius: 2px; background: var(--orange);
      scale: 0 1; transform-origin: center; transition: scale .2s ease;
    }
    .site-header.is-wide .site-menu a:not(.btn):hover,
    .site-header.is-wide .dropdown-trigger:hover { color: var(--text); background: none; }
    .site-header.is-wide .site-menu a:not(.btn):hover::after,
    .site-header.is-wide .dropdown-trigger:hover::after { scale: 1 1; }
    .site-header.is-wide .site-menu a[aria-current="page"] { color: var(--orange-deep); }
    .site-header.is-wide .site-menu a[aria-current="page"]::after { scale: 1 1; }
    .site-header.is-wide .dropdown-trigger[aria-current="true"] { font-weight: 600; color: var(--orange-deep); }
    .site-header.is-wide .dropdown-trigger[aria-current="true"]::after { scale: 1 1; }
    .site-header.is-wide .dropdown-trigger svg { inline-size: 11px; block-size: 11px; }
    .site-header.is-wide .site-menu li:last-child { display: none; margin: 0; }
    .site-header.is-wide .header-cta {
      display: inline-flex; padding: .62rem 1.15rem;
      font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    }
    .site-header.is-measuring, .site-header.is-measuring * { transition: none !important; }

    /* ============ Hero ============ */
    .hero {
      position: relative; overflow: hidden;
      background: var(--ink); color: #fff;
      padding-block: clamp(4.5rem, 11vw, 8rem) clamp(3.5rem, 8vw, 6rem);
    }
    .hero::before {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      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: 44px 44px;
      mask-image: radial-gradient(75% 90% at 70% 0%, #000 30%, transparent 100%);
    }
    .hero::after {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background: radial-gradient(560px 380px at 88% -12%, rgba(246,96,20,.28), transparent 65%);
    }
    .hero .container { position: relative; z-index: 1; }
    .hero .eyebrow { color: var(--amber); }
    .hero h1 {
      font-size: clamp(2.4rem, 1.5rem + 4vw, 5rem);
      letter-spacing: -0.01em;
      margin-block-end: 1.25rem;
    }
    .hero h1 .accent { color: var(--orange); }
    .hero .sub { color: var(--muted-dark); font-size: 1.125rem; max-width: 58ch; margin-block-end: 2.25rem; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

    .hero-stats {
      margin-block-start: clamp(3rem, 7vw, 4.5rem);
      padding-block-start: 1.75rem;
      border-block-start: 1px solid rgba(255,255,255,.14);
      display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
    }
    .hero-stats div { min-inline-size: 8rem; }
    .hero-stats strong {
      display: block; font-family: var(--font-display); font-weight: 400;
      font-size: 1.35rem; color: var(--orange); letter-spacing: .01em;
    }
    .hero-stats span { color: var(--muted-dark); font-size: .875rem; font-weight: 500; }

    .hazard-divider {
      block-size: 8px;
      background: repeating-linear-gradient(135deg, var(--orange) 0 14px, var(--ink) 14px 28px);
    }

    /* ============ Services ============ */
    .services { background: var(--paper-2); }
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
      gap: 1.25rem;
    }
    .card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-block-start: 3px solid var(--ink);
      border-radius: var(--radius);
      padding: 1.75rem 1.5rem;
      display: flex; flex-direction: column; gap: 1rem;
      transition: translate .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
    .card:hover {
      translate: 0 -4px;
      border-block-start-color: var(--orange);
      box-shadow: 0 18px 40px rgba(20,22,26,.10);
    }
    .card-icon {
      inline-size: 48px; block-size: 48px; flex: none;
      display: grid; place-items: center;
      background: var(--ink); color: var(--orange);
      border-radius: var(--radius);
    }
    .card-icon svg { width: 24px; height: 24px; }
    .card h3 { font-size: 1.1rem; letter-spacing: .01em; }
    .card p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
    .card-link {
      font-weight: 700; font-size: .925rem; color: var(--orange-deep);
      text-decoration: none; text-underline-offset: 4px;
    }
    .card-link:hover { text-decoration: underline; }

    /* ============ Why ============ */
    .why { background: var(--ink); color: #fff; }
    .why .eyebrow { color: var(--amber); }
    .why-grid {
      display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4.5rem);
      align-items: center;
    }
    @media (min-width: 56rem) { .why-grid { grid-template-columns: 1.1fr 1fr; } }
    .why .lead { color: var(--muted-dark); margin-block-end: 2rem; max-width: 52ch; }
    .why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
    .why-list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: start; }
    .why-num {
      font-family: var(--font-display); font-size: 1.5rem; color: var(--orange);
      border-block-start: 3px solid var(--ink-3); padding-block-start: .35rem;
    }
    .why-list h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-block-end: .3rem; }
    .why-list p { color: var(--muted-dark); font-size: .95rem; }

    .why-media { position: relative; margin: 0; }
    .why-media-frame {
      overflow: hidden; border-radius: var(--radius);
      border: 1px solid var(--ink-3); background: var(--ink-2);
      position: relative; z-index: 1;
    }
    .why-media-frame img {
      display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    }
    .why-media::after {
      content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem;
      border: 3px solid var(--orange); border-radius: var(--radius);
      background: repeating-linear-gradient(135deg, rgba(246,96,20,.14) 0 10px, transparent 10px 20px);
    }

    /* ============ Stats strip ============ */
    .stats { background: var(--orange); color: var(--ink); }
    .stats-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
      gap: 1.5rem; text-align: center;
    }
    .stats strong {
      display: block; font-family: var(--font-display); font-weight: 400;
      font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.15;
    }
    .stats span { font-weight: 600; font-size: .925rem; }

    /* ============ CTA band ============ */
    .cta-band { background: var(--ink-2); color: #fff; text-align: center; }
    .cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-block-end: 1rem; }
    .cta-band h2 .accent { color: var(--orange); }
    .cta-band p { color: var(--muted-dark); max-width: 46ch; margin: 0 auto 2rem; }

    /* ============ Contact ============ */
    .contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); }
    @media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
    .contact-info h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-block-end: 1rem; }
    .contact-info > p { color: var(--muted); max-width: 46ch; margin-block-end: 2rem; }
    .contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-block-end: 1.25rem; }
    .contact-item-icon {
      inline-size: 44px; block-size: 44px; flex: none;
      display: grid; place-items: center;
      background: var(--ink); color: var(--orange); border-radius: var(--radius);
    }
    .contact-item-icon svg { width: 20px; height: 20px; }
    .contact-item h3 { font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin-block-end: .15rem; }
    .contact-item p { color: var(--muted); font-size: .95rem; }

    .contact-form-card {
      background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
      padding: clamp(1.5rem, 4vw, 2.5rem);
      box-shadow: 0 20px 50px rgba(20,22,26,.07);
    }
    .field { margin-block-end: 1.25rem; }
    .field label { display: block; font-weight: 600; font-size: .925rem; margin-block-end: .35rem; }
    .hint { display: block; color: var(--muted); font-size: .825rem; margin-block-end: .35rem; }
    .field input, .field textarea, .field select {
      width: 100%; padding: .8rem 1rem;
      font: inherit; font-size: max(1rem, 1em); color: var(--text);
      background: var(--paper); border: 1.5px solid #C9CCD1; border-radius: var(--radius);
      min-block-size: 48px;
      transition: border-color .15s ease;
    }
    .field textarea { min-block-size: 8rem; }
    .field :is(input, textarea, select):focus-visible { outline-offset: 1px; border-color: var(--orange); }
    .error-msg { display: none; color: var(--error); font-size: .875rem; font-weight: 500; margin-block-start: .35rem; }
    :is(:user-invalid, .user-invalid-fallback) { border-color: var(--error) !important; background: var(--error-bg); }
    :is(:user-invalid, .user-invalid-fallback) + .error-msg { display: block; }
    :is(:user-valid) { border-color: var(--success); }
    .form-status:not(:empty) {
      display: block; margin-block-start: 1rem; padding: .9rem 1.1rem;
      background: #EAF6EE; color: var(--success); border-radius: var(--radius);
      font-weight: 600; font-size: .95rem;
    }
    .contact-form .btn { width: 100%; margin-block-start: .5rem; }
    .form-note { color: var(--muted); font-size: .8rem; margin-block-start: .9rem; }

    /* ============ Partners marquee ============ */
  .partners {
    background: var(--ink-2); color: #fff;
    padding-block: clamp(2.75rem, 6vw, 4.25rem);
    border-block: 1px solid var(--ink-3);
  }
  .partners .eyebrow {
    display: flex; justify-content: center;
    color: var(--muted-dark); margin-block-end: 2.25rem;
  }
  .marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .marquee-track { display: flex; width: max-content; }
  .marquee-track ul {
    display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
    gap: clamp(2.75rem, 6vw, 4.5rem);
    padding-inline-end: clamp(2.75rem, 6vw, 4.5rem); /* trailing space = one gap, so -50% loops seamlessly */
  }
  .partner {
    display: flex; align-items: center; gap: .65rem;
    white-space: nowrap; opacity: .72;
    transition: opacity .2s ease;
  }
  .partner:hover { opacity: 1; }
  .partner svg { inline-size: 26px; block-size: 26px; flex: none; }
  .partner-word { font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; }
  .partner-word .thin { font-weight: 500; }
  .partner-word.lc { text-transform: lowercase; letter-spacing: .01em; }
  .partner-word.wd-mark { font-style: italic; font-weight: 900; letter-spacing: -.03em; }
  .partner-word.sl { font-weight: 600; letter-spacing: .24em; }
  @media (prefers-reduced-motion: no-preference) {
    .marquee-track { animation: marquee 91s linear infinite; }
    .marquee:hover .marquee-track,
    .marquee:focus-within .marquee-track { animation-play-state: paused; }
  }
  @media (prefers-reduced-motion: reduce) {
    .marquee { overflow-x: auto; } /* static strip users can scroll instead */
  }
  @keyframes marquee {
    to { translate: -50% 0; }
  }

  /* ============ Footer ============ */
    .footer { background: var(--ink); color: #fff; padding-block: 3rem; }
    .footer .hazard-divider { margin-block-end: calc(12rem * 157 / 1869); } /* gap = rendered logo height */
    .footer-inner {
      display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
      align-items: center; justify-content: space-between;
    }
    .footer-brand { display: flex; flex-direction: column; gap: .9rem; }
    .footer-logo {
      display: inline-block; width: fit-content;
    }
    .footer-logo img { width: 12rem; height: auto; }
    .footer-tagline { color: var(--muted-dark); font-size: .9rem; }
    .footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; list-style: none; margin: 0; padding: 0; }
    .footer-nav a { color: var(--muted-dark); text-decoration: none; font-weight: 500; font-size: .925rem; }
    .footer-nav a:hover { color: var(--orange); }
    .footer-bottom {
      margin-block-start: 2.25rem; padding-block-start: 1.5rem;
      border-block-start: 1px solid var(--ink-3);
      display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
      color: #6E747E; font-size: .825rem;
    }

    /* ============ Scroll-driven reveals (progressive enhancement) ============ */
    @media (prefers-reduced-motion: no-preference) {
      @supports (animation-timeline: view()) and (animation-range: entry) {
        .reveal {
          animation: reveal-in auto linear both;
          animation-timeline: view();
          animation-range: entry 0% entry 65%;
        }
        @keyframes reveal-in {
          from { opacity: 0; translate: 0 1.5rem; }
        }
      }
    }

    @media (max-width: 30rem) {
      .hero-actions .btn { width: 100%; }
    }

    /* ============ Services dropdown ============ */
    .nav-dropdown { position: relative; }
    .dropdown-trigger {
      display: inline-flex; align-items: center; gap: .35rem;
      background: none; border: 0; padding: .5rem .75rem; border-radius: var(--radius);
      font: 600 .95rem/1.4 var(--font-body); color: var(--text); cursor: pointer;
    }
    .dropdown-trigger:hover { background: var(--paper-2); color: var(--orange-deep); }
    .dropdown-trigger[aria-current="true"] { color: var(--orange-deep); font-weight: 700; }
    .dropdown-trigger svg { inline-size: 14px; block-size: 14px; transition: rotate .2s ease; }
    .dropdown-trigger[aria-expanded="true"] svg { rotate: 180deg; }
    .dropdown-list {
      position: absolute; inset-block-start: calc(100% + .4rem); inset-inline-end: 0;
      min-inline-size: 15.5rem; margin: 0; padding: .5rem; list-style: none;
      background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
      box-shadow: 0 24px 60px rgba(20, 22, 26, .18); z-index: 110;
    }
    .dropdown-list[hidden] { display: none; }
    .dropdown-list a {
      display: flex; align-items: center; gap: .5rem;
      padding: .7rem .9rem; border-radius: 8px;
      font-weight: 600; font-size: .925rem; color: var(--text); text-decoration: none;
    }
    .dropdown-list a:hover { background: var(--paper-2); }
    .dropdown-list a[aria-current="page"] { color: var(--orange-deep); }
    /* Narrow layout: the dropdown is an inline disclosure inside the popover menu */
    .site-header:not(.is-wide) .nav-dropdown { position: static; }
    .site-header:not(.is-wide) .dropdown-list {
      position: static; min-inline-size: 0;
      background: transparent; border: 0; box-shadow: none; border-radius: 0;
      padding: 0 0 .25rem 1rem;
    }
    .site-header:not(.is-wide) .dropdown-trigger {
      width: 100%; justify-content: space-between;
      padding: .9rem 1rem; font-size: 1rem; border-radius: var(--radius);
    }

    /* ============ Service pages ============ */
    .page-hero {
      position: relative; overflow: hidden;
      background: var(--ink); color: #fff;
      padding-block: clamp(3.5rem, 9vw, 6.5rem);
    }
    .page-hero::before {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      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: 44px 44px;
      mask-image: radial-gradient(75% 90% at 70% 0%, #000 30%, transparent 100%);
    }
    .page-hero::after {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background: radial-gradient(520px 340px at 88% -12%, rgba(246,96,20,.26), transparent 65%);
    }
    .page-hero .container { position: relative; z-index: 1; }
    .page-hero .eyebrow { color: var(--amber); }
    .page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.25rem); margin-block-end: 1rem; }
    .page-hero .lead { color: var(--muted-dark); font-size: 1.125rem; max-width: 58ch; }
    .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 1.75rem; }
    .chip {
      display: inline-flex; align-items: center; gap: .45rem;
      padding: .4rem .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
      font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--muted-dark);
    }
    .chip svg { inline-size: 13px; block-size: 13px; color: var(--orange); flex: none; }

    .offerings-section { background: var(--paper); }
    .offerings {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
      gap: 1.5rem;
    }
    .offering {
      background: var(--paper); border: 1px solid var(--line);
      border-block-start: 3px solid var(--orange); border-radius: var(--radius);
      padding: 1.75rem 1.5rem;
      display: flex; flex-direction: column; gap: .9rem;
    }
    .offering h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
    .offering > p { color: var(--muted); font-size: .95rem; }
    .checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
    .checklist li { display: flex; gap: .6rem; align-items: start; font-size: .925rem; line-height: 1.5; }
    .checklist li::before { content: "✓"; color: var(--orange-deep); font-weight: 800; flex: none; }

/* ============================================================
   Motion layer - view transitions, entrances, ambient effects
   (gated per prefers-reduced-motion; compositor-only properties)
   ============================================================ */

/* Cross-document view transitions: fade/rise between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.25s ease-in both; }
  ::view-transition-new(root) { animation: vt-in 0.3s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Staggered hero entrance (time-based, plays on load) */
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .container > *,
  .page-hero .container > * {
    animation: rise-in 0.55s cubic-bezier(0.22, 0.65, 0.3, 1) backwards;
  }
  .hero .container > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.09s; }
  .hero .container > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.18s; }
  .hero .container > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: 0.27s; }
  .hero .container > :nth-child(5), .page-hero .container > :nth-child(5) { animation-delay: 0.36s; }
  .hero .container > :nth-child(6), .page-hero .container > :nth-child(6) { animation-delay: 0.45s; }
}

/* Ambient glow breathe on hero backdrops */
@keyframes glow-breathe { from { opacity: 0.72; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero::after, .page-hero::after { animation: glow-breathe 7s ease-in-out infinite alternate; }
}

/* Slow Ken Burns drift on the workshop photo */
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.055); } }
@media (prefers-reduced-motion: no-preference) {
  .why-media-frame img { animation: ken-burns 18s ease-in-out infinite alternate; }
}

/* Offering card hover (matches homepage cards) */
.offering { transition: box-shadow 0.2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .offering:hover { translate: 0 -4px; box-shadow: 0 18px 40px rgba(20,22,26,0.10); }
}

/* Reduced motion: keep hover feedback, drop spatial movement */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:hover { translate: none; }
}
/* ============ Ember network hero + scroll-driven hazard ============ */

/* Defer hero rendering when it is off-screen; the canvas loop listens for
   contentvisibilityautostatechange and pauses with it. */
.hero {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 760px;
}

/* Decorative canvas layer: sits above the blueprint grid (::before),
   below the content (.hero .container has z-index: 1). */
.hero-network {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%;
  pointer-events: none;
}

/* Hazard stripes drift one full period across the page scroll.
   Scroll-driven = motion only while the user scrolls, so no pause
   control is required (WCAG 2.2.2 applies to auto-running motion). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hazard-divider { position: relative; overflow: hidden; }
    .hazard-divider::before {
      content: ""; position: absolute; inset: 0 -56px;
      background: repeating-linear-gradient(135deg, var(--orange) 0 14px, var(--ink) 14px 28px);
      animation: hazard-drift linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes hazard-drift {
  from { translate: 14px 0; }
  to { translate: -14px 0; }
}
/* ============ Wow pass: tilt + spotlight cards, magnetic buttons,
   scroll progress, app-shell transitions, scrollspy, why-lighting ============ */

/* Identity transforms up front: hover tilt must not create/remove stacking
   contexts mid-interaction (individual-transform-properties guide). */
.card, .offering {
  position: relative;
  translate: 0px; rotate: 0deg; scale: 1;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
@media (prefers-reduced-motion: no-preference) {
  .card, .offering {
    transition: translate .2s ease, transform .16s ease-out, border-color .2s ease, box-shadow .2s ease;
  }
}
/* Pointer-tracked spotlight: honors the site's Reduce-animations setting
   (default on), not the OS preference, so the hover glow is back by default. */
body:not(.reduce-motion) .card::before, body:not(.reduce-motion) .offering::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(246,96,20,.16), transparent 65%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
body:not(.reduce-motion) .card:hover::before, body:not(.reduce-motion) .offering:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card, .offering { transform: none; }
}
body.reduce-motion .card, body.reduce-motion .offering { transform: none; }

/* Scroll progress bar (scroll-driven; invisible without support / reduced motion) */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  inline-size: 100%; block-size: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 300; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: grow-progress auto linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes grow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* App-shell view transitions: the header persists while pages morph beneath it */
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header),
::view-transition-new(site-header) { animation: none; }

/* Scrollspy: native scroll-target-group + :target-current, fallback class.
   :is() keeps the rule valid in browsers without the pseudo-class. */
/* scroll-target-group intentionally NOT enabled: native :target-current lagged
   by one section in testing; IntersectionObserver drives .target-current instead. */
.site-header.is-wide .site-menu a:not(.btn):is(:target-current, .target-current) {
  color: var(--orange-deep);
}
.site-header.is-wide .site-menu a:not(.btn):is(:target-current, .target-current)::after { scale: 1 1; }
.site-header:not(.is-wide) .site-menu a:not(.btn):is(:target-current, .target-current) {
  color: var(--orange-deep); background: var(--paper-2);
}

/* Why-section items light up as they scroll into view (scroll-driven) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .why-list li {
      animation: why-light auto linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes why-light { from { opacity: .35; translate: -8px 0; } }
  }
}

/* Scroll targets are focusable for keyboard scrolling, not interactive */
section[tabindex="-1"]:focus { outline: none; }
/* ============ Industries ============ */
.industries { padding-block: 3.2rem; }
.why-heading { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-block-end: 1rem; }
.industries h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-block: .4rem .6rem; }
.industry-tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.3rem 0 0; padding: 0; }
.industry-tags li { border: 1px solid rgba(20,22,26,.16); background: #fff; border-radius: 999px; padding: .45rem .95rem; font-size: .85rem; font-weight: 600; color: var(--ink); box-shadow: 0 1px 2px rgba(20,22,26,.05); }

/* ---- Dark theme ---- */
[data-theme="dark"] { --ink: #0E1013; --ink-2: #1C1F25; --ink-3: #2A2E36; --paper: #14161A; --paper-2: #191C21; --text: #F4F4F1; --muted: #A7ABB4; --line: rgba(255,255,255,.12); --error-bg: #3A2220; }
[data-theme="dark"] .industry-tags li { background: var(--paper-2); border-color: var(--line); color: var(--text); }
[data-theme="dark"] .card, [data-theme="dark"] .offering { box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 2.3rem; height: 2.3rem; font-size: 1rem; cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--orange); }
.logo-dark { display: none; }
[data-theme="dark"] .logo-img:not(.logo-dark) { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
