:root {
    /* palette: brand green #61AE45, deep green #4D8E39, charcoal #1F2522,
       warm off-white #F5F4F0, soft grey #E6E8E2.
       previous values kept here in case we go back:
       dark #080d0d / dark-field #111616 / paper #ffffff / light-field #f1f1f1
       border #dedede / ink #151a1a / mid #6f7781 / lo #899698
       green-ink #4e7a09 / green-lift #8fe06b */
    --dark: #1f2522;
    /* neutral charcoal, no green cast. trialling it against --dark #1f2522 */
    --charcoal: #202224;
    --dark-field: #2a312d;
    --panel: #414142;
    --paper: #f5f4f0;
    --light-field: #e6e8e2;
    --border: #d7dad2;
    --ink: #1f2522;
    --mid: #626a64;
    --on-dark: #f5f4f0;
    --on-dark-mid: #9aa39c;
    --on-dark-line: rgba(245, 244, 240, 0.16);
    /* the logo green. accents, icons, tags, highlights */
    --green: #61ae45;
    /* deep green from the palette. graphics and borders only: it cannot carry
       small text at 4.5:1 against white, off-white or charcoal */
    --green-ui: #4d8e39;
    /* derived: neither palette green is legible as small text on off-white,
       so this is the same hue taken darker until it passes */
    --green-ink: #326d1d;
    /* brand green already clears 5.68 on charcoal, so marks on dark use it as is */
    --green-lift: #61ae45;
    --r-s: 10px;
    --r-m: 12px;
    --r-l: 16px;
    --r-xl: 20px;
    --r-pill: 999px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; font-size: 15px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    font-family: "Inter", sans-serif; font-size: 1rem; line-height: 1.6;
    color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--green-ink); outline-offset: 3px;
  }
  .container { max-width: 1390px; margin: 0 auto; padding: 0 24px; }
  section { padding: 120px 0; }

  h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
  h1 { font-size: clamp(2.2rem, 5.9vw, 5.3rem); }
  h2 { font-size: clamp(1.8rem, 3.9vw, 3.7rem); }
  h3 { font-size: clamp(1.28rem, 2vw, 1.8rem); line-height: 1.15; }
  .lead { color: var(--mid); font-size: 1.1rem; max-width: 56ch; margin-top: 20px; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 22px;
  }
  .eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--green); }

  /* button: small radius, the whole fill cross-fades to the new colour.
     no wipe, no sweep, the two colours just trade places. */
  .btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: var(--r-s);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 1.25s ease, color 1.25s ease, border-color 1.25s ease;
  }
  .btn .arrow { transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1); }
  .btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }

  /* the label: two stacked copies, the first leaves upward as the second arrives */
  .btn-label { position: relative; display: block; overflow: hidden; }
  .btn-label > span {
    display: block;
    transition: transform 1.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .btn-label > span + span { position: absolute; top: 0; left: 0; right: 0; transform: translateY(110%); }
  .btn:hover .btn-label > span:first-child,
  .btn:focus-visible .btn-label > span:first-child { transform: translateY(-110%); }
  .btn:hover .btn-label > span + span,
  .btn:focus-visible .btn-label > span + span { transform: translateY(0); }

  .btn-dark { background: var(--dark-field); color: var(--paper); }
  .btn-dark:hover, .btn-dark:focus-visible { background: var(--green); color: var(--dark); }

  .btn-green { background: var(--green); color: var(--dark); }
  .btn-green:hover, .btn-green:focus-visible { background: var(--dark); color: var(--paper); }
  /* on a dark ground the reverse reads better */
  .dark .btn-green:hover, .dark .btn-green:focus-visible,
  header .btn-green:hover, header .btn-green:focus-visible { background: var(--paper); color: var(--dark); }

  .btn-line { border-color: var(--on-dark-line); color: var(--on-dark); }
  .btn-line:hover, .btn-line:focus-visible { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

  /* sections that run dark */
  .dark { background: var(--dark); color: var(--on-dark); }
  .dark .eyebrow { color: var(--green-lift); }
  .dark .lead { color: var(--on-dark-mid); }
  .tint { background: var(--light-field); }

  /* header: a solid dark bar, full width, flush to the top */
  header { position: relative; z-index: 60; background: var(--charcoal); }
  .head {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 17px 24px;
  }
  .logo img { height: 62px; width: auto; }
  .head-right { display: flex; align-items: center; gap: 20px; }
  /* nav sits dead centre of the bar, so the logo and the button cannot shove it off */
  nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 28px; }
  /* one rule doing two jobs: it draws in on hover and stays put on the current page */
  nav a {
    position: relative; display: block;
    font-size: 1rem; font-weight: 500; letter-spacing: -0.03em;
    color: var(--on-dark-mid); transition: color 0.25s ease;
  }
  nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
    background: var(--green); transform: scaleX(0); transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  nav a:hover, nav a:focus-visible, nav a[aria-current] { color: var(--on-dark); }
  nav a:hover::after, nav a:focus-visible::after, nav a[aria-current]::after { transform: scaleX(1); }

  .head .btn {
    padding: 11px 20px; font-size: 1rem; line-height: 1.3;
    letter-spacing: -0.03em; gap: 12px;
  }
  .head .btn .arrow svg { width: 16px; height: 16px; display: block; }
  /* the arrow points up and right, so the nudge should too */
  .head .btn:hover .arrow, .head .btn:focus-visible .arrow { transform: translate(3px, -3px); }
  .nav-toggle, .nav-btn { display: none; }


  /* hero */
  .hero h1 em { font-style: normal; color: var(--green); }
  .hero-sub { margin: 28px 0 0; color: var(--on-dark-mid); font-size: 1.15rem; max-width: 52ch; }
  .hero-ctas { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

  /* hero: photo edge to edge, scrim weighted left so the copy side is dark and
     the right of the image stays open. feature strip sits over the bottom. */
  .hero-wide {
    padding: 0; text-align: left; background-color: var(--charcoal);
    background-image: linear-gradient(90deg, rgba(32,34,36,0.97), rgba(32,34,36,0.86) 34%, rgba(32,34,36,0.4) 66%, rgba(32,34,36,0.12)), var(--shot);
    background-size: auto, cover; background-position: 0 0, 50% 50%;
  }
  .hero-wide .container { padding-top: 96px; padding-bottom: 40px; }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--green);
  }
  .hero-eyebrow svg { width: 17px; height: 17px; }
  .hero-wide h1 { max-width: 15ch; margin: 0; }
  .hero-rule { width: 58px; height: 3px; border: 0; background: var(--green); margin: 30px 0 0; }
  .hero-wide .hero-sub { margin: 26px 0 0; max-width: 48ch; }
  .hero-wide .hero-ctas { justify-content: flex-start; margin-top: 34px; }

  .hero-strip {
    margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(245, 244, 240, 0.05); border: 1px solid var(--on-dark-line);
    border-radius: var(--r-l);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .hero-strip-item { display: flex; align-items: flex-start; gap: 15px; padding: 26px 26px 28px; }
  .hero-strip-item + .hero-strip-item { border-left: 1px solid var(--on-dark-line); }
  .hero-strip svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--green); }
  .hero-strip h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
  .hero-strip p { margin-top: 6px; font-size: 0.84rem; line-height: 1.45; color: var(--on-dark-mid); }

  /* stat strip */
  .stats { border-top: 1px solid var(--on-dark-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 44px 0; }
  .stat + .stat { border-left: 1px solid var(--on-dark-line); padding-left: 44px; }
  .stat .figure {
    font-family: "Inter", sans-serif; font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--on-dark); white-space: nowrap;
  }
  .stat .cap { margin-top: 13px; font-family: "Inter", sans-serif; font-size: 0.72rem;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-mid); line-height: 1.5; }

  /* about: two photos overlapping on the left, the story on the right */
  .about-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 68px; align-items: center; }
  .about-frame { position: relative; padding: 0 58px 58px 0; }
  .about-shot-lg { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 4; }
  .about-shot-lg img { width: 100%; height: 100%; object-fit: cover; }
  /* the border is the page colour, so the inset reads as sitting on top */
  .about-shot-sm {
    position: absolute; right: 0; bottom: 0; width: 62%;
    border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3;
    border: 9px solid var(--paper);
  }
  .about-shot-sm img { width: 100%; height: 100%; object-fit: cover; }

  .about-body h2 { max-width: 18ch; }
  .about-statement { margin-top: 26px; color: var(--mid); font-size: 1.05rem; line-height: 1.65; max-width: 54ch; }

  .about-facts {
    margin-top: 44px; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start;
    padding-top: 34px; border-top: 1px solid var(--border);
  }
  .about-figure .fig {
    font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 500;
    letter-spacing: -0.03em; line-height: 1; color: var(--ink); white-space: nowrap;
  }
  .about-figure .fig-cap {
    margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--mid);
  }
  .about-ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
  .about-ticks li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
  .about-ticks svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--green-ui); }
  .about-body .btn { margin-top: 40px; }

  /* the credentials block folds from its own heading line */
  .creds-fold > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    transition: color 0.5s ease;
  }
  .creds-fold > summary::-webkit-details-marker { display: none; }
  .creds-fold > summary:hover { color: var(--green-lift); }
  .creds-fold > summary h2 { color: inherit; }
  .creds-fold > summary .marker { width: 30px; height: 30px; }
  .creds-fold > summary .marker::before { width: 28px; }
  .creds-fold > summary .marker::after { height: 28px; }

  .marker { justify-self: end; position: relative; width: 18px; height: 18px; }
  .marker::before, .marker::after {
    content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%);
  }
  .marker::before { width: 16px; height: 2px; }
  .marker::after { width: 2px; height: 16px; transition: transform 0.65s ease; }
  details[open] .marker::after { transform: translate(-50%, -50%) scaleY(0); }
  /* credentials: the proof that wins work as figures, then a quiet spec sheet.
     nothing hidden, because hiding your credentials is the wrong signal. */
  .credentials .stats { margin-top: 56px; }
  .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec { margin-top: 76px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; }
  .spec-label {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--green-lift); padding-bottom: 15px; border-bottom: 1px solid var(--on-dark-line);
  }
  .spec ul { list-style: none; }
  .spec li {
    font-size: 0.86rem; line-height: 1.5; color: var(--on-dark-mid);
    padding: 13px 0; border-bottom: 1px solid var(--on-dark-line);
  }


  /* capability: badges, heading row, then expanding cards */
  .cap-label {
    margin-top: 96px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 0.95rem; color: var(--on-dark-mid);
  }
  .cap-label::before { content: ""; width: 10px; height: 10px; background: var(--green); }

  .cap-head { margin-top: 0; display: grid; grid-template-columns: 1fr 0.42fr; gap: 48px; align-items: end; }
  .cap-head h2 { max-width: 14ch; }
  .cap-head .side p { color: var(--on-dark-mid); font-size: 1rem; max-width: 34ch; }
  .cap-head .side .btn { margin-top: 20px; }

  @keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }

  /* capability, light variant: the cards sit on a light field, so the photos
     are the darkest thing in the section */
  .capability-light { background: var(--light-field); color: var(--ink); }
  .capability-light h2 { color: var(--ink); }
  .capability-light .cap-label { color: var(--mid); }
  .capability-light .cap-head .side p { color: var(--mid); }
  .capability-light .marquee::before { background: linear-gradient(90deg, var(--light-field), rgba(230, 232, 226, 0)); }
  .capability-light .marquee::after { background: linear-gradient(90deg, rgba(230, 232, 226, 0), var(--light-field)); }
  .capability-light .logo-set img { opacity: 0.9; }

  /* static service cards: everything visible at once. the card is a doorway to
     the detail page, so it summarises rather than hiding. */
  .svc-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .svc-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--paper); border-radius: var(--r-xl);
    transition: box-shadow 0.7s ease;
  }
  .svc-card:hover, .svc-card:focus-visible { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.13); }
  .svc-shot { aspect-ratio: 4 / 3; overflow: hidden; }
  .svc-shot img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .svc-card:hover .svc-shot img, .svc-card:focus-visible .svc-shot img { transform: scale(1.05); }
  .svc-body { flex: 1; padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 13px; }
  .svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
  .svc-head h3 { flex: 1; }
  .svc-arrow {
    font-size: 1.4rem; line-height: 1; color: var(--mid);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .svc-card:hover .svc-arrow, .svc-card:focus-visible .svc-arrow { transform: translate(4px, -4px); }
  .svc-card h3 {
    font-size: clamp(1.32rem, 1.78vw, 1.66rem); font-weight: 600;
    letter-spacing: -0.03em; line-height: 1.18;
    /* two lines reserved so the paragraphs line up across all three cards */
    min-height: 2.36em;
  }
  .svc-card p { font-size: 0.92rem; line-height: 1.55; color: var(--mid); }

  .svc-grid[data-reveal] .svc-card { opacity: 0; }
  .svc-grid[data-reveal].is-in .svc-card { animation: cardIn 1.6s ease forwards; }
  .svc-grid[data-reveal].is-in .svc-card:nth-child(2) { animation-delay: 0.35s; }
  .svc-grid[data-reveal].is-in .svc-card:nth-child(3) { animation-delay: 0.7s; }

  /* clients */
  .marquee { margin-top: 34px; position: relative; overflow: hidden; }
  .marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
  .marquee::before { left: 0; background: linear-gradient(90deg, var(--dark), rgba(31,37,34,0)); }
  .marquee::after { right: 0; background: linear-gradient(90deg, rgba(31,37,34,0), var(--dark)); }
  .marquee-track { display: flex; width: max-content; animation: marquee 100s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .logo-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
  .logo-set img { height: 33px; width: auto; flex: 0 0 auto; object-fit: contain; opacity: 0.72; }
  @keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

  /* work index: one big image held beside a numbered schedule. hovering a row
     swaps the image and opens that row's spec, so six dense paragraphs become one. */
  .idx { margin-top: 56px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: start; }
  .idx-media {
    position: sticky; top: 110px;
    aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--border);
  }
  .idx-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.1s ease;
  }
  .idx-media img.is-shown { opacity: 1; }

  .idx-list { list-style: none; border-top: 1px solid var(--border); }
  .idx-row { border-bottom: 1px solid var(--border); }
  .idx-head {
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 20px;
    padding: 24px 0; cursor: pointer;
  }
  .idx-name {
    font-size: clamp(1.16rem, 1.7vw, 1.52rem); font-weight: 600;
    letter-spacing: -0.03em; line-height: 1.2; transition: color 0.7s ease;
  }
  .idx-row.is-active .idx-name { color: var(--green-ink); }
  .idx-loc {
    font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--mid); white-space: nowrap;
  }
  /* 0fr to 1fr opens to the content's own height with nothing hardcoded */
  .idx-detail {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .idx-row.is-active .idx-detail { grid-template-rows: 1fr; }
  .idx-detail > div { overflow: hidden; }
  .idx-detail p {
    padding-bottom: 26px; max-width: 54ch;
    color: var(--mid); font-size: 0.92rem; line-height: 1.6;
  }
  .idx-thumb { display: none; }


  /* contact */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 44px; }
  form label {
    display: block; font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-mid); margin: 20px 0 8px;
  }
  form label:first-child { margin-top: 0; }
  form input, form textarea {
    width: 100%; padding: 14px 16px; font: inherit; font-size: 0.95rem;
    background: rgba(255,255,255,0.07); border: 1px solid var(--on-dark-line);
    border-radius: var(--r-m); color: var(--on-dark);
  }
  form input:focus, form textarea:focus { border-color: var(--green-lift); outline: none; }
  form textarea { min-height: 128px; resize: vertical; }
  form .btn { margin-top: 24px; }
  .contact-side .big { font-size: clamp(1.55rem, 2.7vw, 2.15rem); font-weight: 600; letter-spacing: -0.03em; }
  .contact-side .big a:hover { color: var(--green-lift); }
  .contact-side .label {
    font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mid); margin-top: 30px; margin-bottom: 6px;
  }

  /* footer */
  footer { background: var(--dark); color: var(--on-dark); padding: 64px 0 36px; }
  .foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
  .foot-name { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.03em; }
  .foot-cols > div > p { color: var(--on-dark-mid); font-size: 0.9rem; margin-top: 14px; max-width: 34ch; }
  .foot-cols h4 {
    font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mid); margin-bottom: 16px;
  }
  .foot-cols ul { list-style: none; }
  .foot-cols li { margin-bottom: 10px; }
  .foot-cols a { color: var(--on-dark-mid); font-size: 0.9rem; }
  .foot-cols a:hover { color: var(--on-dark); }
  .foot-base {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-dark-line);
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    color: var(--on-dark-mid); font-size: 0.82rem;
  }

  @media (max-width: 991px) {
    /* no hover on touch: each row carries its own image and stays open */
    .idx { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
    .idx-media { display: none; }
    .idx-head { grid-template-columns: 1fr; gap: 6px; padding: 22px 0 16px; }
    .idx-loc { justify-self: start; }
    .idx-thumb { display: block; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; }
    .idx-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .idx-detail { grid-template-rows: 1fr; }
    .idx-detail p { padding-top: 16px; }
    .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .hero-strip { grid-template-columns: 1fr 1fr; }
    .hero-strip-item:nth-child(3) { border-left: 0; }
    .hero-strip-item:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
    .stats-4 { grid-template-columns: 1fr 1fr; }
    .stats-4 .stat + .stat { border-left: 0; padding-left: 0; }
    .spec { grid-template-columns: 1fr 1fr; gap: 34px 40px; }
    .cap-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
    /* the stagger doesn't survive a narrow grid, so flatten it */
    .cap-head h2 { max-width: none; }
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-frame { padding-right: 40px; padding-bottom: 40px; max-width: 520px; }
  }

  @media (max-width: 767px) {
    html { font-size: 16px; }
    section { padding: 68px 0; }
    .hero-wide .container { padding-top: 64px; padding-bottom: 32px; }
    .hero-wide h1 { max-width: none; }
    .hero-strip { grid-template-columns: 1fr; margin-top: 48px; }
    .hero-strip-item + .hero-strip-item { border-left: 0; border-top: 1px solid var(--on-dark-line); }
    .logo img { height: 56px; }
    .head { position: relative; padding: 13px 24px; }
    .nav-btn {
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
      width: 42px; height: 42px; cursor: pointer;
    }
    .nav-btn span { display: block; height: 2px; width: 24px; background: var(--on-dark); transition: transform 0.55s ease, opacity 0.35s ease; }
    .nav-toggle:checked ~ .nav-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-btn span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    /* full screen panel: with only four things in it, they may as well be big */
    .head-right {
      display: none; position: fixed; inset: 0; z-index: 40;
      flex-direction: column; align-items: stretch; justify-content: center;
      gap: 0; background: var(--charcoal); padding: 104px 24px 44px;
    }
    .nav-toggle:checked ~ .head-right { display: flex; }
    /* back into flow: the centring is a desktop-only trick */
    nav { position: static; transform: none; flex-direction: column; align-items: stretch; gap: 0; }
    nav a {
      display: block; overflow: visible; padding: 20px 0; text-align: left;
      font-size: clamp(2.1rem, 9.5vw, 3rem); font-weight: 600; letter-spacing: -0.03em;
      color: var(--on-dark); border-bottom: 1px solid var(--on-dark-line);
    }
    nav a:first-child { border-top: 1px solid var(--on-dark-line); }
    nav a span { line-height: 1.05; }
    nav a::after { display: none; }
    .head .btn { justify-content: center; margin-top: 36px; padding: 17px 24px; }
    /* stop the page scrolling behind the panel */
    body:has(.nav-toggle:checked) { overflow: hidden; }

    .hero-wide h1 { max-width: none; }
    .about-statement { max-width: none; }
    .about-facts { grid-template-columns: 1fr; gap: 28px; }
    .about-frame { padding-right: 34px; padding-bottom: 34px; }
    .svc-grid { grid-template-columns: 1fr; }
    /* no hover on touch: drop the white face and leave the photo one showing */
    .stats { grid-template-columns: 1fr; }
    .spec { grid-template-columns: 1fr; gap: 34px; }
    .stat { padding: 28px 0; border-top: 1px solid var(--on-dark-line); }
    .stat:first-child { border-top: 0; }
    .stat + .stat { border-left: 0; padding-left: 0; }

    /* the stack is the point on mobile, keep it but tighten the offsets */

    .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .foot-cols > div:first-child { grid-column: 1 / -1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .marquee::before, .marquee::after { display: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee-track .logo-set:nth-child(2) { display: none; }
    .logo-set { flex-wrap: wrap; justify-content: center; gap: 32px 54px; padding: 0; }
    .marker::after, .nav-btn span { transition: none; }
    .btn, .btn-label > span { transition: none; }
    /* must match the .is-in selector's specificity or it loses the cascade */
    .svc-grid[data-reveal].is-in .svc-card,
    .svc-grid[data-reveal] .svc-card { opacity: 1; animation: none; }
    .btn:hover .btn-label > span:first-child { transform: none; }
    .btn:hover .btn-label > span + span { transform: translateY(110%); }
  }
