  /* ============================================================
     FONT: Messina Sans (commercial — Luzi Type).
     Drop your licensed files into /assets/fonts and the @font-face
     below will pick them up. Inter is loaded as a close visual
     fallback so the layout renders correctly without the license.
     ============================================================ */
  @font-face {
    font-family: "Messina Sans";
    src: url("assets/fonts/MessinaSans-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: "Messina Sans";
    src: url("assets/fonts/MessinaSans-SemiBold.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: "Messina Sans";
    src: url("assets/fonts/MessinaSans-Bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
  }
  /* Fallback face */
  @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

  :root {
    --blue: #5AE1F2;
    --white: #F9FAFB;
    --ink: #0d1117;
    --font: "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* fluid type scale */
    --h1: clamp(2.9rem, 6.6vw, 7rem);
    --nav: 0.82rem;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font);
    color: var(--white);
    background: #0b0f14;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { text-decoration: none; color: inherit; }
  img, svg, video { display: block; }

  /* ============================ HERO ============================ */
  .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
  }

  /* Background photo */
  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("../img/hero-bg.png") no-repeat center right / cover;
  }
  /* Left-to-right darkening so the headline stays readable on any width */
  .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
      linear-gradient(90deg, rgba(4,8,12,.72) 0%, rgba(4,8,12,.45) 34%, rgba(4,8,12,0) 62%),
      linear-gradient(0deg, rgba(4,8,12,.55) 0%, rgba(4,8,12,0) 40%);
  }
  @media (max-width: 820px) {
    .hero__scrim {
      background:
        linear-gradient(180deg, rgba(4,8,12,.55) 0%, rgba(4,8,12,.25) 30%, rgba(4,8,12,.78) 78%, rgba(4,8,12,.92) 100%);
    }
    .hero__body{
        justify-content: center;
    }
  }

  /* ---------------------------- NAV ---------------------------- */
  .nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.4rem, 4vw, 4rem);
  }
  .nav__logo svg { height: 18px; width: auto; }
  .nav__logo svg path { fill: var(--white); }

  /* group menu + cta together on the right */
  .nav__panel {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 3vw, 3.25rem);
  }

  .nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 2.6vw, 2.75rem);
    list-style: none;
  }
  .nav__menu a {
    font-size: var(--nav);
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--white);
    opacity: .92;
    position: relative;
    padding: .35rem 0;
    transition: opacity .2s ease;
  }
  .nav__menu a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1.5px;
    background: var(--blue);
    transition: width .28s ease;
  }
  .nav__menu a:hover { opacity: 1; }
  .nav__menu a:hover::after { width: 100%; }

  .nav__cta {
    display: inline-flex;
    align-items: center;
    background: var(--blue);
    color: #04252b;
    font-size: var(--nav);
    font-weight: 700;
    letter-spacing: .07em;
    padding: .95rem 1.7rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(90,225,242,.6);
  }

  /* burger */
  .nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: 0; cursor: pointer;
    padding: 6px;
  }
  .nav__burger span {
    width: 26px; height: 2px; background: var(--white);
    transition: transform .3s ease, opacity .3s ease;
  }
.nav__burger.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2){ opacity: 0; }
.nav__burger.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  /* --------------------------- CONTENT ------------------------- */
  .hero__body {
    position: relative;
    z-index: 4;
    padding: clamp(1rem, 4vw, 2rem) clamp(1.4rem, 4vw, 4rem) clamp(2.5rem, 6vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /*min-height: calc(100vh - 200px);*/
    min-height: calc(100dvh - 120px);
  }

  .headline {
    font-weight: 400;
    font-size: var(--h1);
    line-height: .96;
    letter-spacing: -.02em;
    width: fit-content;
    max-width: 60%;
  }
  .headline__line { display: block; white-space: nowrap; }

  /* animated blue word slot */
  .swap {
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
  }
  .swap__word {
    position: relative;
    color: var(--blue);
    display: inline-grid;
  }
  .swap__word span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(.18em);
    animation: wordCycle 12s infinite;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .12em;
  }
  .swap__word span svg {
    width: .82em;
    height: .82em;
    flex-shrink: 0;
    transform: translateY(.03em);
  }
  .swap__word span:nth-child(1){ animation-delay: 0s; }
  .swap__word span:nth-child(2){ animation-delay: 3s; }
  .swap__word span:nth-child(3){ animation-delay: 6s; }
  .swap__word span:nth-child(4){ animation-delay: 9s; }

  /* icon fades in sync with its word (grid-stacked like the word) */
  /* .swap__icon {
    width: .9em; height: .9em;
    position: relative;
    display: inline-grid;
    place-items: center;
    color: var(--blue);
    margin-left: -.14em;
    transform: translateY(.02em);
  }
  .swap__icon svg {
    grid-area: 1 / 1;
    width: 100%; height: 100%;
    opacity: 0;
    transform: translateY(.18em) scale(.9);
    animation: wordCycle 12s infinite;
  }
  .swap__icon svg:nth-child(1){ animation-delay: 0s; }
  .swap__icon svg:nth-child(2){ animation-delay: 3s; }
  .swap__icon svg:nth-child(3){ animation-delay: 6s; }
  .swap__icon svg:nth-child(4){ animation-delay: 9s; } */

  @keyframes wordCycle {
    0%   { opacity: 0; transform: translateY(.18em); }
    3%   { opacity: 1; transform: translateY(0); }
    22%  { opacity: 1; transform: translateY(0); }
    25%  { opacity: 0; transform: translateY(-.14em); }
    100% { opacity: 0; transform: translateY(-.14em); }
  }

  .hero__sub {
    margin-top: clamp(1.6rem, 3vw, 2.2rem);
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.5;
    max-width: 34ch;
    color: rgba(249,250,251,.94);
    font-weight: 400;
  }

  .hero__btn {
    margin-top: clamp(1.8rem, 3.2vw, 2.6rem);
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border: 1.5px solid rgba(249,250,251,.85);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .09em;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
  }
  .hero__btn .arrow {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    /* border: 1.5px solid rgba(249,250,251,.85); */
    transition: transform .3s ease, border-color .25s ease;
  }
  .hero__btn:hover {
    background: var(--blue);
    color: #04252b;
    border-color: var(--blue);
  }
  .hero__btn:hover .arrow { transform: translateX(4px); border-color: #04252b; }

  /* --------------------------- BADGE --------------------------- */
  .badge {
    position: absolute;
    z-index: 4;
    right: clamp(1.5rem, 4vw, 4.5rem);
    bottom: clamp(1.8rem, 5vw, 4rem);
    width: clamp(120px, 13vw, 190px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
  }
  .badge__ring {
    position: absolute;
    inset: 0;
    animation: ringSpin 15s linear infinite;
    transform-origin: 50% 50%;
  }
  .badge__ring text {
    fill: var(--white);
    font-size: 8.6px;
    font-weight: 600;
    letter-spacing: 2.4px;
  }
  .badge__star {
    position: relative;
    width: 34%;
    color: var(--white);
  }
  /* @keyframes ringSpin {
      0% {
          transform: rotate(0deg);
      }

      
      15% {
          transform: rotate(45deg);
      }

      
      50% {
          transform: rotate(45deg);
      }

      
      65% {
          transform: rotate(0deg);
      }

      
      100% {
          transform: rotate(0deg);
      }
  } */
  @keyframes ringSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  /* mobile menu panel */
  @media (max-width: 900px) {
    .nav__burger { display: flex; position: relative; z-index: 30; }

    .nav__panel {
      position: fixed;
      inset: 0;
      background: rgba(8,12,17,.98);
      backdrop-filter: blur(16px);
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      gap: 1.75rem;
      padding: 2.5rem;
      transform: translateY(-100%);
      transition: transform .45s cubic-bezier(.16,1,.3,1);
      z-index: 20;
    }
    /* .nav.open .nav__panel { transform: translateY(0); } */
    .nav__panel.is-open { transform: translateY(0); }

    .nav__menu {
      flex-direction: column;
      align-items: flex-start;
      gap: 1.5rem;
    }
    .nav__menu a { font-size: 1.5rem; letter-spacing: .04em; opacity: 1; }
    .nav__menu a::after { bottom: -4px; }

    .nav__cta {
      align-self: flex-start;
      margin-top: 1rem;
    }
  }

  /* headline widens as viewport narrows, since photo focus shifts */
  @media (max-width: 1100px) {
    .headline { max-width: 72%; }
  }
  @media (max-width: 900px) {
    .headline { max-width: 90%; }
  }
  @media (max-width: 480px) {
    .headline { max-width: 100%; font-size: clamp(2.6rem, 12vw, 3.4rem); line-height: 1.1; }
    .headline__line {white-space: normal;}
    .hero__sub { max-width: 30ch; }
    .badge { width: 92px; right: 1rem; bottom: 1.2rem; }
  }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .swap__word span, .swap__icon svg { animation: none; }
    .swap__word span:first-child, .swap__icon svg:first-child { opacity: 1; transform: none; }
    .badge__ring { animation: none; }
  }

  /* ============================================================
   APPOMATE — SECTION 2: "Appomate advantage"
   Uses the same font + blue as the hero. Requires --blue/--font
   already defined globally; falls back to local values if not.
   ============================================================ */

.adv {
  --adv-bg: #0E0E0E;
  --adv-card: #1a1a1a;
  --adv-border: rgba(90, 225, 242, .32);
  --adv-border-hover: #5AE1F2;
  --adv-blue: var(--blue, #5AE1F2);
  --adv-title: #F9FAFB;
  --adv-sub: #8b9096;

  background: var(--adv-bg);
  color: var(--adv-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3.5rem, 9vw, 8rem) 0;
}

.adv__inner {
  width: 100%;
  /* max-width: 1600px; */
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 4rem);
}

.adv__title {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 clamp(2.2rem, 5vw, 4rem);
}

/* ---------------------------- GRID ---------------------------- */
.adv__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(.9rem, 1.4vw, 1.6rem);
}

/* ---------------------------- CARD ---------------------------- */
.adv-card {
  position: relative;
  background: var(--adv-card);
  border: 1px solid rgb(90 225 242);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  /* min-height: clamp(200px, 20vw, 250px); */
  display: flex;
  flex-direction: column;
  cursor: default;
  outline: none;
  transition:
    border-color .3s ease,
    box-shadow .35s ease,
    transform .35s ease;

  /* reveal-on-scroll starting state (JS adds .is-in) */
  opacity: 0;
  transform: translateY(22px);
}

.adv-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* hover / focus: glowing border */
.adv-card:hover,
.adv-card:focus-visible {
  border-color: var(--adv-border-hover);
  box-shadow:
    0 0 0 0px var(--adv-border-hover),
    0 0 18px -2px rgba(90, 225, 242, .55),
    0 0 10px -10px rgba(90, 225, 242, .35);
}

/* ---------------------------- ICON ---------------------------- */
.adv-card__icon {
  color: var(--adv-blue);
  height: clamp(44px, 5vw, 58px);
  display: flex;
  align-items: center;
  /* margin-bottom: auto; */
  /* icon lifts up on hover */
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.adv-card__icon svg {
  height: clamp(30px, 3.4vw, 40px);
  width: auto;
  display: block;
}
.adv-card__icon--wide svg {
  height: clamp(24px, 2.6vw, 32px);
}

/* Clutch text wordmark */
.adv-card__icon--clutch { align-items: center; }
.clutch-mark {
  color: var(--adv-blue);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -.02em;
  line-height: 1;
}
.clutch-mark__t {
  position: relative;
}
/* the signature dot inside Clutch's "t" */
.clutch-mark__t::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .12em;
  width: .26em;
  height: .26em;
  border-radius: 50%;
  background: var(--adv-bg);
  transform: translateX(-50%);
}

.adv-card:hover .adv-card__icon,
.adv-card:focus-visible .adv-card__icon {
  transform: translateY(-8px);
}

/* ---------------------------- TEXT ---------------------------- */
.adv-card__title {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.25;
  margin: 1rem 0 .5rem;
  color: var(--adv-title);
}

.adv-card__sub {
  font-weight: 400;
  font-size: clamp(.85rem, 1vw, .98rem);
  line-height: 1.4;
  color: var(--adv-sub);
  margin: 0;
}

/* --------------------------- RESPONSIVE --------------------------- */
/* laptop: keep 5 across but allow wrap if very tight */
@media (max-width: 1100px) {
  .adv__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .adv__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .adv__grid { grid-template-columns: 1fr; }
  .adv-card { min-height: 0; padding: 1.5rem 1.5rem 1.7rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .adv-card { opacity: 1; transform: none; transition: border-color .2s ease, box-shadow .2s ease; }
  .adv-card__icon { transition: none; }
  .adv-card:hover .adv-card__icon,
  .adv-card:focus-visible .adv-card__icon { transform: none; }
}

@media (max-width: 640px) {
  .adv-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: .25rem;
    align-items: center;
  }

  .adv-card__icon {
    grid-column: 1;
    grid-row: 1 / 3;      /* spans both text rows, so it sits centered beside them */
  }

  .adv-card__title {
    grid-column: 2;
    grid-row: 1;
  }

  .adv-card__sub {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ============================================================
   APPOMATE — SECTION 3: "AI first. Intelligence at the core"
   Reuses global --blue / --font (falls back if not defined).
   Section background matches the site (#0E0E0E).
   ============================================================ */

.mf {
  --mf-bg: #0E0E0E;
  --mf-title: #F9FAFB;
  --mf-body: #8b9096;
  --mf-blue: var(--blue, #5AE1F2);

  background: var(--mf-bg);
  color: var(--mf-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(2.5rem, 8vw, 3rem) 0;
}

.mf__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
}

/* ------------------------------ TEXT ------------------------------ */
.mf__text {
  max-width: 34rem;
}

/* animated icon */
.mf__icon {
  display: block;
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}
.mf__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* the clip rect that wipes the icon into view (JS/CSS animates its height) */
.mf__icon svg #mfWipe rect {
  transform: scaleY(0);
  transform-origin: 50% 0%;
  transform-box: fill-box;
}

.mf__title {
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 clamp(1.4rem, 2.6vw, 2.2rem);
}

.mf__body {
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: var(--mf-body);
  margin: 0;
  max-width: 32rem;
}

/* ------------------------------ MEDIA ------------------------------ */
.mf__media {
  margin: 0;
}
.mf__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

/* --------------------- ENTRANCE ANIMATIONS --------------------- */
/* start states — JS adds .is-in to the section when it scrolls in */
.mf__icon,
.mf__title,
.mf__body,
.mf__media {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.mf.is-in .mf__icon   { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.mf.is-in .mf__title  { opacity: 1; transform: translateY(0); transition-delay: .28s; }
.mf.is-in .mf__body   { opacity: 1; transform: translateY(0); transition-delay: .42s; }
.mf.is-in .mf__media  { opacity: 1; transform: translateY(0); transition-delay: .15s; }

/* icon "draws" itself downward once, then stays visible */
.mf.is-in .mf__icon svg #mfWipe rect {
  animation: mfDraw 1.4s cubic-bezier(.65, 0, .35, 1) .2s forwards;
}
@keyframes mfDraw {
  0%   { transform: scaleY(0); }
  100% { transform: scaleY(1); }   /* drawn in, stays */
}

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 860px) {
  .mf__inner {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
  }
  .mf__text { max-width: 40rem; order: 2; }
  .mf__media { order: 1; }
}

/* --------------------------- REDUCED MOTION --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mf__icon, .mf__title, .mf__body, .mf__media {
    opacity: 1; transform: none; transition: none;
  }
  .mf__icon svg #mfWipe rect { transform: scaleY(1); animation: none; }
}

/* ============================================================
   APPOMATE — Logo marquee strip
   Fixed label + infinite left-scrolling brand logos.
   Reuses global --font; section bg matches the site (#0E0E0E).
   ============================================================ */

.lm {
  --lm-bg: #0E0E0E;
  --lm-label: #8b9096;
  --lm-logo: #4a4d52;         /* muted grey for logos, like the design */
  --lm-gap: clamp(3rem, 6vw, 6rem);

  background: var(--lm-bg);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  overflow: hidden;
}

.lm__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-left: clamp(1.4rem, 4vw, 4rem);
}

/* fixed label */
.lm__label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--lm-label);
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  line-height: 1.4;
  white-space: nowrap;
  z-index: 2;
}

/* scrolling viewport (fades at edges) */
.lm__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* each track holds one full set of logos; two identical tracks
   sit side by side and both translate -100% for a seamless loop */
.lm__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--lm-gap);
  padding-right: var(--lm-gap);        /* keep gap between the two sets */
  flex: 0 0 auto;
  min-width: max-content;
  animation: lmScroll 32s linear infinite;
  will-change: transform;
}

.lm__viewport:hover .lm__track { animation-play-state: paused; }

@keyframes lmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.lm__item { flex: 0 0 auto; }

/* ------------------------- LOGO WORDMARKS ------------------------- */
.logo {
  color: var(--lm-logo);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  user-select: none;
}

.logo--subway {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -.01em;
}
.logo--subway .logo__arrow {
  font-style: normal;
  font-size: .6em;
  margin-left: .12em;
  transform: translateY(-.05em);
}

.logo--spotless {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  letter-spacing: .04em;
}

.logo--loreal {
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  letter-spacing: .06em;
}

.logo--coles {
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  letter-spacing: -.03em;
}

.logo--adidas {
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  letter-spacing: -.02em;
}

.logo--cat {
  font-weight: 800;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  letter-spacing: .02em;
}

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 760px) {
  .lm__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-right: clamp(1.4rem, 4vw, 4rem);
  }
  .lm__label { white-space: normal; }
  .lm__viewport { width: 100%; }
  .lm__track { animation-duration: 22s; }
}

/* --------------------------- REDUCED MOTION --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lm__track { animation: none; }
  /* still let users scroll the strip horizontally if motion is off */
  .lm__viewport { overflow-x: auto; }
}

/* ============================================================
   APPOMATE — SECTION: "Selected work"
   2-column staggered grid. Reuses global --font; bg #0E0E0E.
   ============================================================ */

.work {
  --w-bg: #0E0E0E;
  --w-title: #F9FAFB;
  --w-desc: #8b9096;
  --w-radius: 6px;

  background: var(--w-bg);
  color: var(--w-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.work__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 4rem);
}

.work__title {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 clamp(2.2rem, 5vw, 3.5rem);
}

/* ------------------------------ GRID ------------------------------ */
/* The two columns swap widths between rows (Figma): top row is
   wide-left / narrow-right; bottom row is narrow-left / wide-right,
   and the bottom two cards are vertically offset from each other.
   A fine-grained fractional track grid lets each card span the exact
   width fraction, so no fragile overhang hacks are needed. */
.work__grid {
  display: grid;
  /*  wide      |  gutter |  narrow   (≈ Figma 583 : 70 : 347) */
  grid-template-columns: 583fr 70fr 347fr;
  column-gap: 0;
  row-gap: 0;
  align-items: start;
}

/* Top row */
.wcard--t2u {
  grid-column: 1 / 2;          /* wide track, left */
  grid-row: 1;
}
.wcard--devialet {
  grid-column: 3 / 4;          /* narrow track, right */
  grid-row: 1;
  margin-top: clamp(3.5rem, 5vw, 7rem);
}

/* Bottom row — widths swap */
.wcard--actempus {
  grid-column: 1 / 2;          /* sits in the wide track... */
  grid-row: 2;
  width: 59.5%;                /* ...but only fills the narrow measure (347/583) */
  margin-top: clamp(3rem, 5vw, 5rem);        /* pushed down → stagger */
    margin-left: auto;
    margin-right: auto;
}
.wcard--gigii {
  grid-column: 2 / 4;          /* gutter + narrow track → wide, right side */
  grid-row: 2;
  margin-top: clamp(1rem, 2vw, 2rem);        /* higher than Actempus */
}

/* ------------------------------ CARD ------------------------------ */
.wcard {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.wcard__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--w-radius);
  background: #141414;
  transform: translateZ(0);           /* keep radius clipping video */
}
.wcard__media img,
.wcard__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

/* subtle zoom on hover for all media */
.wcard:hover .wcard__media img,
.wcard:hover .wcard__media video,
.wcard:hover .wcard__centervid {
  transform: scale(1.03);
}

/* Per-card media aspect ratios (from the Figma) */
.wcard--devialet .wcard__media { aspect-ratio: 319 / 411; }   /* tall-ish */
.wcard--gigii    .wcard__media { aspect-ratio: 447 / 500; }   /* ~square, wide */

/* Actempus is a TALL VERTICAL frame. The uploaded video is landscape,
   so object-fit:cover fills the portrait box and crops the left/right
   edges — exactly the requested behaviour. */
.wcard--actempus .wcard__media { aspect-ratio: 319 / 470; }   /* portrait */
.wcard--actempus .wcard__media video,
.wcard--actempus .wcard__media img {
  object-fit: cover;
  object-position: center;   /* keep the middle of the landscape video */
}

/* Card 1 — layered: B&W image behind, colour video in the middle band */
.wcard__media--layered { aspect-ratio: 1715 / 1629; }
.wcard__bw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wcard__centervid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* clip the full-size video to just the colour band so it lines up
     pixel-for-pixel with the B&W background behind it */
  clip-path: inset(20.8% 0 16.5% 0);
}

/* ------------------------------ FOOT ------------------------------ */
.wcard__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1rem, 1.6vw, 1.5rem);
}
.wcard__meta { min-width: 0; }
.wcard__name {
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
}
.wcard__desc {
  font-weight: 400;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.45;
  color: var(--w-desc);
  margin: 0;
  max-width: 40ch;
}
.wcard__arrow {
  flex: 0 0 auto;
  width: clamp(20px, 2vw, 26px);
  height: clamp(20px, 2vw, 26px);
  color: var(--w-title);
  transition: transform .3s ease;
}
.wcard__arrow svg { width: 100%; height: 100%; display: block; }
.wcard:hover .wcard__arrow { transform: translate(3px, -3px); }

/* --------------------- ENTRANCE (scroll reveal) --------------------- */
.wcard {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.wcard.is-in { opacity: 1; transform: translateY(0); }

/* --------------------------- RESPONSIVE --------------------------- */
/* Tablet: even 2 columns, drop the asymmetric widths + offsets */
@media (max-width: 1000px) {
  .work__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: clamp(2.5rem, 6vw, 4rem);
  }
  .wcard--t2u      { grid-column: 1 / 2; }
  .wcard--devialet { grid-column: 2 / 3; margin-top: 0; }
  .wcard--actempus { grid-column: 1 / 2; width: 100%; margin-top: 0; }
  .wcard--gigii    { grid-column: 2 / 3; margin-top: 0; }
}

/* Mobile: single column, natural stacking, all overrides reset */
@media (max-width: 640px) {
  .work__grid {
    grid-template-columns: 1fr;
    row-gap: clamp(2.5rem, 8vw, 3.5rem);
  }
  .wcard--t2u,
  .wcard--devialet,
  .wcard--actempus,
  .wcard--gigii {
    grid-column: 1;
    width: 100%;
    margin-top: 0;
    grid-row: auto;
  }
  .wcard__desc { max-width: none; }
}

/* --------------------------- REDUCED MOTION --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wcard { opacity: 1; transform: none; transition: none; }
  .wcard__media img, .wcard__media video, .wcard__centervid { transition: none; }
  .wcard:hover .wcard__media img,
  .wcard:hover .wcard__media video,
  .wcard:hover .wcard__centervid { transform: none; }
}

/* ============================================================
   APPOMATE — SECTION: stats ("Our proven way to get you ahead")
   Hairline top/bottom borders + animated right-side radial glow
   that bleeds beyond the section. Reuses global --font; bg #0E0E0E.
   ============================================================ */

.stats {
  --st-bg: #0E0E0E;
  --st-title: #F9FAFB;
  --st-body: #7c8085;
  --st-label: #7c8085;
  --st-border: rgba(255, 255, 255, .10);

  /* glow colours (given) */
  --glow-a: rgba(82, 236, 255, .77);   /* #52ECFF @ 77% */
  --glow-b: rgba(255, 181, 44, 0.77);   /* #FFB52C @ 77% */

  position: relative;
  background: var(--st-bg);
  color: var(--st-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  overflow-x: clip;
  overflow-y: visible;               /* let the glow spill above/below */
  isolation: isolate;
}

/* 90%-width centred hairline dividers (top + bottom) */
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: var(--st-border);
  z-index: 2;
  pointer-events: none;
}
.stats::before { top: 0; }
.stats::after  { bottom: 0; }

/* ------------------------- RADIAL GLOW ------------------------- */
/* Large, soft, right-of-centre. Sits behind content (z -1) and is
   intentionally taller than the section so it bleeds into the
   neighbouring sections, matching the Figma. */
/* animatable custom property so the colour can tween smoothly */
@property --glow-color {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(82, 236, 255, .77);
}

.stats__glow {
  --glow-color: var(--glow-a);
  position: absolute;
  z-index: -1;
  top: -55%;
  bottom: -55%;
  right: -22%;           /* pushed further off-screen → only ~50–60% shows */
  width: 52%;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  background: radial-gradient(circle at 60% 50%,
              var(--glow-color) 0%,
              var(--glow-color) 10%,
              transparent 60%);
  opacity: .42;          /* softer overall */
  animation:
    glowColor 4s ease-in-out infinite,
    glowDrift 4s ease-in-out infinite;
  will-change: --glow-color, transform, opacity;
}

/* colour tweens smoothly because only the custom property changes */
@keyframes glowColor {
  0%,
  100% { --glow-color: var(--glow-a); }
  50%  { --glow-color: var(--glow-b); }
}

/* subtle motion kept on a separate track */
@keyframes glowDrift {
  0%,
  100% { transform: translateY(-3%) scale(1);   opacity: .55; }
  50%  { transform: translateY(3%)  scale(1.06); opacity: .5; }
}

/* ------------------------------ LAYOUT ------------------------------ */
.stats__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* ------------------------------ TEXT ------------------------------ */
.stats__title {
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}
.stats__body {
  font-weight: 400;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.6;
  color: var(--st-body);
  margin: 0;
  max-width: 40ch;
}

/* ------------------------------ STATS ------------------------------ */
.stats__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.stat { margin: 0; }
.stat__num {
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--st-title);
  margin: 0 0 .6rem;
}
.stat__label {
  margin: 0;
  font-size: clamp(.78rem, .95vw, .92rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-label);
}

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 820px) {
  .stats__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 8vw, 3.5rem);
  }
  .stats__glow { width: 90%; right: -20%; filter: blur(70px); }
}

/* --------------------------- REDUCED MOTION --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .stats__glow { animation: none; }
}

/* ============================================================
   APPOMATE — SECTION: partner ("The right partner depends…")
   Two cards; the founders card has a cyan glowing border.
   Reuses global --font / --blue; bg #0E0E0E.
   ============================================================ */

.partner {
  --p-bg: #0E0E0E;
  --p-card: #171717;
  --p-title: #F9FAFB;
  --p-sub: #8b9096;
  --p-logo: #F9FAFB;
  --p-border: rgba(255, 255, 255, .08);
  --p-glow: var(--blue, #5AE1F2);

  background: var(--p-bg);
  color: var(--p-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.partner__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 4rem);
}

.partner__title {
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

/* ------------------------------ CARDS ------------------------------ */
.partner__cards {
  display: grid;
  grid-template-columns: 1fr 2fr;      /* ~30% / ~70% like the design */
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: stretch;
}

.pcard {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 3rem);
}

.pcard__head {
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.pcard__sub {
  font-size: clamp(.92rem, 1.05vw, 1.05rem);
  line-height: 1.45;
  color: var(--p-sub);
  margin: 0 0 clamp(2rem, 3.5vw, 3rem);
}

/* founders card — glowing cyan border */
.pcard--founders {
  transition: border-color .35s ease, box-shadow .35s ease;
}

.pcard--founders:hover {
  border-color: var(--p-glow);
  box-shadow:
    0 0 0 1px rgba(90, 225, 242, .35),
    0 0 30px -10px rgba(90, 225, 242, .45),
    0 0 70px -25px rgba(90, 225, 242, .30);
}

/* ------------------------- BRAND GRID (left) ------------------------- */
.brandgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem) 1rem;
  align-items: center;
  justify-items: center;
}
.brandgrid__logo {
  color: var(--p-logo);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  user-select: none;
  opacity: .95;
}
/* wordmark styles (same family as the marquee section) */
.logo--adidas  { font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.5rem); letter-spacing: -.02em; }
.logo--coles   { font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.6rem); letter-spacing: -.03em; }
.logo--hoyts   { font-weight: 800; font-size: clamp(1.05rem, 1.5vw, 1.5rem); letter-spacing: .02em; }
.logo--subway  { font-weight: 800; font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.5rem); }
.logo--subway .logo__arrow { font-style: normal; font-size: .55em; margin-left: .1em; transform: translateY(-.05em); }
.logo--loreal  { font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.45rem); letter-spacing: .05em; }
.logo--cat     { font-weight: 800; font-size: clamp(.95rem, 1.35vw, 1.35rem); letter-spacing: .01em; }
.logo--spotless{ font-weight: 600; font-size: clamp(.95rem, 1.35vw, 1.3rem); letter-spacing: .03em; }
.logo--lendlease{ font-weight: 500; font-size: clamp(1rem, 1.45vw, 1.4rem); letter-spacing: -.01em; }

/* ------------------------- FOUNDERS GRID (right) ------------------------- */
.founders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 2rem);
}
.founder {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.founder__avatar {
  flex: 0 0 auto;
  width: clamp(38px, 3vw, 46px);
  height: clamp(38px, 3vw, 46px);
  border-radius: 50%;
  background: #2a2a2a linear-gradient(135deg, #3a3a3a, #202020);
  display: grid;
  place-items: center;
  overflow: hidden;
  filter: grayscale(1) contrast(1.05);
  transition: filter .35s ease;
}
/* placeholder initials when no <img> is supplied */
.founder__avatar::after {
  content: attr(data-initials);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #cfd2d6;
}
.founder__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease;
}
/* hover the founder → drop grayscale on the avatar */
@media (hover: hover) {
  .pcard--founders:hover .founder__avatar {
    filter: grayscale(0) contrast(1.05);
  }
  .pcard--founders:hover .founder__avatar img {
    filter: grayscale(0);
  }
}
/* touch equivalent of the hover reveal — toggled by JS via a tap
   on .pcard--founders when the device has no true hover */
.pcard--founders.is-active .founder__avatar {
  filter: grayscale(0) contrast(1.05);
}
.pcard--founders.is-active .founder__avatar img {
  filter: grayscale(0);
}
.founder__avatar img ~ ::after { content: none; }

.founder__meta { display: flex; flex-direction: column; min-width: 0; }
.founder__name {
  font-size: clamp(.92rem, 1.05vw, 1.05rem);
  line-height: 1.25;
  color: var(--p-title);
}
.founder__role {
  font-size: clamp(.78rem, .9vw, .9rem);
  line-height: 1.3;
  color: var(--p-sub);
}

/* --------------------------- REVEAL --------------------------- */
.pcard {
  opacity: 0;
  transform: translateY(24px);
  /* transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); */
}
.pcard.is-in { opacity: 1; transform: translateY(0); }
.pcard--founders.is-in { transition-delay: .12s; }

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 1180px) {
  .founders { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .partner__cards { grid-template-columns: 1fr; }
  .brandgrid { grid-template-columns: repeat(3, 1fr); max-width: 460px; }
}
@media (max-width: 560px) {
  .founders { grid-template-columns: 1fr; }
  .brandgrid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

/* --------------------------- REDUCED MOTION --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pcard { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   APPOMATE — SECTION: "Six disciplines. One integrated team."
   Hoverable discipline rows: active row = cyan title/icon + bright
   copy; others dimmed. Floating image reveals per discipline.
   Reuses global --font / --blue; bg #0E0E0E.
   ============================================================ */

.disc-sec {
  --d-bg: #0E0E0E;
  --d-white: #F9FAFB;
  --d-blue: var(--blue, #5AE1F2);
  --d-dim: #4c4f54;          /* dimmed copy for inactive rows */
  --d-dim-strong: #6b6f75;   /* dimmed headings */
  --d-line: rgba(255, 255, 255, .10);

  background: var(--d-bg);
  color: var(--d-white);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 3rem);
  position: relative;
}

.disc-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: rgba(255, 255, 255, .10);
}

.disc-sec__inner {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 4rem);
}

/* ------------------------------ HEAD ------------------------------ */
.disc-sec__head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.disc-sec__eyebrow {
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--d-dim-strong);
  padding-top: .6rem;
}
.disc-sec__title {
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
}

/* ------------------------- FLOATING IMAGE ------------------------- */
.disc-sec__image {
  position: absolute;
  z-index: 3;
  /* sits over the boundary between the title column and content */
  left: 25%;
  width: clamp(230px, 15vw, 320px);
  aspect-ratio: 333 / 430;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1), top .45s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
  border-radius: 2px;
}
.disc-sec__image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.disc-sec__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------ LIST ------------------------------ */
.disc-list { position: relative; }

.disc {
  position: relative;
  display: grid;
  grid-template-columns: 0.5fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--d-line);
  cursor: pointer;
  outline: none;
}
/* .disc:last-child { border-bottom: 1px solid var(--d-line); } */

/* lead (icon + title) */
.disc__lead {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.disc__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  color: var(--d-dim-strong);
  margin-top: .35rem;
  transition: color .3s ease;
}
.disc__icon svg { width: 100%; height: 100%; display: block; }
.disc__name {
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--d-white);
  transition: color .3s ease;
}

/* body */
.disc__body { max-width: 42rem; justify-self: end; }
.disc__kicker {
  font-size: clamp(.82rem, 1vw, .95rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: .2rem 0 1rem;
  color: var(--d-dim-strong);
  transition: color .3s ease;
}
.disc__desc {
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.55;
  margin: 0 0 1.4rem;
  color: var(--d-dim);
  transition: color .3s ease;
}
.disc__tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.disc__tags li {
  font-size: clamp(.8rem, .95vw, .9rem);
  color: var(--d-dim);
  border: 1px solid var(--d-line);
  border-radius: 999px;
  padding: .5rem 1.05rem;
  transition: color .3s ease, border-color .3s ease;
}

/* ------------------------- ACTIVE STATE ------------------------- */
.disc.is-active .disc__name  { color: var(--d-blue); }
.disc.is-active .disc__icon  { color: var(--d-blue); }
.disc.is-active .disc__kicker{ color: var(--d-white); }
.disc.is-active .disc__desc  { color: var(--d-white); }
.disc.is-active .disc__tags li {
  color: var(--d-white);
  border-color: rgba(255,255,255,.35);
}

/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 900px) {
  .disc-sec__head { grid-template-columns: 1fr; gap: 1rem; }
  .disc { grid-template-columns: 1fr; gap: 1rem; }
  /* on touch/narrow, the floating image would overlap awkwardly →
     show it inline inside the active row instead */
  .disc-sec__image { display: none; }
}
@media (max-width: 520px) {
  .disc__lead { gap: .7rem; }
}

/* --------------------------- REDUCED MOTION --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .disc-sec__image { transition: opacity .2s ease; transform: none; }
}

@media (max-width: 760px) {
  .disc {
    opacity: 1 !important;
  }
  .disc__title,
  .disc__icon {
    color: var(--white, #F9FAFB) !important;
  }
  .disc__title svg,
  .disc__icon svg {
    color: var(--blue, #5AE1F2) !important;
  }
  .disc__kicker,
  .disc__desc {
    opacity: 1 !important;
    color: var(--white, #F9FAFB) !important;
  }

  /* tag pills: force the active-state border/text regardless of hover state */
  .disc__tags li {
    color: var(--d-white) !important;
    border-color: rgba(255, 255, 255, .35) !important;
  }

  .disc-sec__image {
    display: none !important;
  }
}

/* ============================================================
   APPOMATE — "As featured in" press strip.
   Static centered row, muted press-logo treatment. Uniform
   grayscale so mismatched logo colours read as one strip;
   hover lifts to the brand blue. Drop PNGs into /assets.
   ============================================================ */
.featured {
  --ft-bg: #0E0E0E;
  --ft-label: #7c8085;

  background: var(--ft-bg);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: 0 3rem clamp(1.25rem, 5vw, 4rem);
}

.featured__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.featured__label {
  margin: 0;
  font-size: clamp(.72rem, 1.4vw, .82rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ft-label);
  text-align: center;
}

.featured__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 3.5vw, 3.5rem);
}

@media (max-width: 640px) {
  .featured__logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    row-gap: clamp(1.75rem, 5vw, 2.5rem);
    column-gap: 1.5rem;
  }
}

/* all six on one line on wide viewports */
@media (min-width: 1080px) {
  .featured__logos { flex-wrap: nowrap; }
}

.featured__item {
  display: flex;
  align-items: center;
  justify-content: center;

  /* reveal-on-scroll base state */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0ms);
}
.featured.is-in .featured__item {
  opacity: 1;
  transform: none;
}

.featured__logo {
  display: block;
  width: auto;
  height: clamp(5.5rem, 2.6vw, 2.5rem);
  max-width: 190px;
  object-fit: contain;

  /* uniform muted press-strip treatment */
  /* filter: grayscale(1) brightness(0) invert(41%); */
  opacity: .78;
  transition: opacity .4s ease, filter .4s ease, transform .4s ease;
}

@media (hover: hover) {
  .featured__logo:hover {
    opacity: 1;
    filter: grayscale(.15) brightness(0) invert(78%) sepia(38%) saturate(600%) hue-rotate(140deg);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured__item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .featured__logo { transition: none; }
}

/* ============================================================
   APPOMATE — "Stories are best told…" reviews section.
   Big two-line headline + Google-reviews pill, 3 testimonial
   cards. Thin centred hairline on top of the section.
   3 → 2 → 1 columns responsive. Staggered reveal on scroll.
   ============================================================ */
.reviews {
  --rv-bg: #0E0E0E;
  --rv-title: #F9FAFB;
  --rv-quote: #C7CACE;
  --rv-name: #F9FAFB;
  --rv-role: #7c8085;
  --rv-card: rgba(255, 255, 255, .035);
  --rv-card-border: rgba(255, 255, 255, .08);
  --rv-hair: rgba(255, 255, 255, .10);

  position: relative;
  background: var(--rv-bg);
  color: var(--rv-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

/* thin centred hairline on top of the section */
.reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: var(--rv-hair);
}

.reviews__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* ---- header ---- */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.reviews__title {
  margin: 0;
  max-width: 22ch;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--rv-title);
}

.reviews__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .7em 1.2em;
  border: 1px solid var(--blue, #5AE1F2);
  border-radius: 999px;
  color: var(--blue, #5AE1F2);
  font-size: clamp(.85rem, 1.4vw, .95rem);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.reviews__cta svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform .3s ease;
}
@media (hover: hover) {
  .reviews__cta:hover {
    background: var(--blue, #5AE1F2);
    color: #0E0E0E;
  }
  .reviews__cta:hover svg { transform: translateX(3px); }
}
.reviews__cta:focus-visible {
  outline: 2px solid var(--blue, #5AE1F2);
  outline-offset: 3px;
}

/* ---- cards grid ---- */
.reviews__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.rcard {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: var(--rv-card);
  border: 1px solid var(--rv-card-border);
  border-radius: 18px;

  /* reveal-on-scroll base state */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease,
              border-color .35s ease, box-shadow .35s ease;
  transition-delay: var(--d, 0ms);
}
.reviews.is-in .rcard {
  opacity: 1;
  transform: none;
}

/* hover: primary-blue border + soft blue glow all sides */
@media (hover: hover) {
  .rcard:hover {
    border-color: var(--blue, #5AE1F2);
    box-shadow: 0 0 20px rgba(90, 225, 242, .22);
  }
}

.rcard__quote {
  margin: 0;
  flex: 1 1 auto;
}
.rcard__quote p {
  margin: 0;
  color: var(--rv-quote);
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.6;
}

/* ---- author ---- */
.rcard__author {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.rcard__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.rcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rcard__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.rcard__name {
  color: var(--rv-name);
  font-weight: 600;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
}
.rcard__role {
  color: var(--rv-role);
  font-size: clamp(.82rem, 1vw, .9rem);
}

/* ---- responsive: 3 → 2 → 1 ---- */
@media (max-width: 960px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rcard {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reviews__cta,
  .reviews__cta svg { transition: none; }
}

/* ============================================================
   APPOMATE — "Exploring the boundless world of growth" blog.
   Big two-line headline + "View all blogs" pill (white outline),
   3 article cards: landscape image, category · date, title.
   Thin centred hairline on top of the section.
   3 → 2 → 1 columns responsive. Staggered reveal on scroll.
   ============================================================ */
.blog {
  --bl-bg: #0E0E0E;
  --bl-title: #F9FAFB;
  --bl-headline: #F9FAFB;
  --bl-meta: #7c8085;
  --bl-hair: rgba(255, 255, 255, .10);

  position: relative;
  background: var(--bl-bg);
  color: var(--bl-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

/* thin centred hairline on top of the section */
.blog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: var(--bl-hair);
}

.blog__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* ---- header ---- */
.blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.blog__title {
  margin: 0;
  max-width: 18ch;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--bl-title);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.blog__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .7em 1.2em;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: var(--white, #F9FAFB);
  font-size: clamp(.85rem, 1.4vw, .95rem);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.blog__cta svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform .3s ease;
}
@media (hover: hover) {
  .blog__cta:hover {
    background: var(--white, #F9FAFB);
    color: #0E0E0E;
    border-color: var(--white, #F9FAFB);
  }
  .blog__cta:hover svg { transform: translateX(3px); }
}
.blog__cta:focus-visible {
  outline: 2px solid var(--blue, #5AE1F2);
  outline-offset: 3px;
}

/* ---- cards grid ---- */
.blog__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.bcard {
  /* reveal-on-scroll base state */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0ms);
}
.blog.is-in .bcard {
  opacity: 1;
  transform: none;
}

.bcard__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bcard__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}
.bcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
@media (hover: hover) {
  .bcard__link:hover .bcard__media img { transform: scale(1.04); }
}

.bcard__meta {
  margin: clamp(.9rem, 1.6vw, 1.2rem) 0 clamp(.5rem, 1vw, .75rem);
  font-size: clamp(.82rem, 1vw, .9rem);
  color: var(--bl-meta);
}
.bcard__dot { margin: 0 .35em; }

.bcard__headline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--bl-headline);
  transition: color .3s ease;
}
@media (hover: hover) {
  .bcard__link:hover .bcard__headline { color: var(--blue, #5AE1F2); }
}

/* ---- responsive: 3 → 2 → 1 ---- */
@media (max-width: 960px) {
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog__grid { grid-template-columns: 1fr; }
  .blog__head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bcard {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bcard__media img,
  .blog__cta,
  .blog__cta svg { transition: none; }
}

/* ============================================================
   APPOMATE — site footer.
   Centred CTA ("We create great things.") with hand-drawn cyan
   ellipse around "great" + pill button; 3-column link block;
   bottom bar. Teal radial glow bleeds from the bottom-left
   corner — CLIPPED to the footer so it never causes horizontal
   scroll. Responsive; reveal + reduced-motion respected.
   ============================================================ */
.site-footer {
  --ft-bg: #0E0E0E;
  --ft-white: #F9FAFB;
  --ft-muted: #8A8E93;
  --ft-label: #6B6E73;
  --ft-hair: rgba(255, 255, 255, .10);

  position: relative;
  isolation: isolate;
  background: var(--ft-bg);
  color: var(--ft-white);
  font-family: var(--font, "Messina Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);

  /* KEY: clip anything that bleeds past the footer edges.
     This is what prevents the corner glow from creating a
     horizontal scrollbar on the page. */
  overflow: hidden;
}

/* ---- bottom-left radial glow (clipped by .site-footer) ---- */
@property --footer-glow-color {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(90, 225, 242, .32);
}

.site-footer__glow {
  --footer-glow-color: rgba(90, 225, 242, .32);

  position: absolute;
  z-index: -1;
  left: -5rem;
  bottom: -5rem;
  width: 900px;
  height: 900px;
  transform: translate(-38%, 38%);
  background: radial-gradient(closest-side,
              var(--footer-glow-color) 0%,
              color-mix(in srgb, var(--footer-glow-color) 50%, transparent) 50%,
              transparent 100%);
  pointer-events: none;

  animation: footerGlowColor 3s ease-in-out infinite;
  will-change: --footer-glow-color;
}

@keyframes footerGlowColor {
  0%,
  100% { --footer-glow-color: rgba(90, 225, 242, .32); }
  50%  { --footer-glow-color: rgba(255, 181, 44, .32); }
}

.site-footer__inner {
  /* max-width: 1240px; */
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
}

/* ============================== CTA ============================== */
.foot-cta {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.foot-cta__title {
  margin: 0 auto;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ft-white);
}
.foot-cta__line { display: block; }

/* "great" + its hand-drawn ellipse */
.foot-cta__mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.foot-cta__word { position: relative; z-index: 1; }

.foot-cta__ellipse {
  position: absolute;
  z-index: 0;
  left: 47%;
  top: 60%;
  width: 130%;
  height: auto;
  aspect-ratio: 442 / 176;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.foot-cta__nowrap { white-space: nowrap; }

.foot-cta__sub {
  margin: clamp(1rem, 2vw, 1.75rem) auto 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ft-white);
}
.foot-cta__btn {
  display: inline-block;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: 1em 2.1em;
  border-radius: 999px;
  background: var(--blue, #5AE1F2);
  color: #0E0E0E;
  font-size: clamp(.8rem, 1.2vw, .92rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
@media (hover: hover) {
  .foot-cta__btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 30px rgba(90, 225, 242, .28);
  }
}
.foot-cta__btn:focus-visible {
  outline: 2px solid var(--blue, #5AE1F2);
  outline-offset: 3px;
}

/* ============================ columns ============================ */
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--ft-hair);
}

.foot-col__label {
  margin: 0 0 1.25rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ft-label);
}

/* brand col */
.foot-brand__logo {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ft-white);
}
.foot-brand__tag {
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  /* max-width: 34ch; */
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ft-muted);
}
.foot-social {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ft-white);
  transition: color .3s ease, transform .3s ease;
}
.foot-social svg { width: 100%; height: 100%; }
@media (hover: hover) {
  .foot-social a:hover { color: var(--blue, #5AE1F2); transform: translateY(-2px); }
}

/* nav cols */
.foot-nav__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: .9rem; }
.foot-nav a,
.foot-contact__email a {
  color: var(--ft-white);
  text-decoration: none;
  font-size: .95rem;
  transition: color .3s ease;
}
@media (hover: hover) {
  .foot-nav a:hover,
  .foot-contact__email a:hover { color: var(--blue, #5AE1F2); }
}

/* contact col */
.foot-contact__email { margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); font-size: .95rem; }
.foot-contact__addr {
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  /* max-width: 40ch; */
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ft-white);
  text-transform: uppercase;
}
.foot-contact > .foot-col__label:not(:first-child) { margin-top: 0; }

/* ========================== bottom bar ========================== */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--ft-hair);
}
.foot-bottom__copy,
.foot-bottom__status {
  margin: 0;
  font-size: .85rem;
  color: var(--ft-muted);
}
.foot-bottom__status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.foot-bottom__status svg { width: 16px; height: 16px; }

/* ========================== responsive ========================== */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-nav__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__glow {
    width: 420px;
    height: 420px;
    transform: translate(-42%, 42%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .foot-cta__btn,
  .foot-social a,
  .foot-nav a { transition: none; }
}

/* ============================================================
   APPOMATE — enquiry popup (HubSpot form). Light theme.
   ============================================================ */
.enquire-modal {
  --em-bg: #ffffff;
  --em-hair: rgba(0, 0, 0, .12);
  --em-text: #1a1c1e;
  --em-muted: #5b5f63;

  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  font-family: var(--font, "Messina Sans", "Inter", sans-serif);
}
.enquire-modal.is-open { display: flex; }

.enquire-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.enquire-modal.is-open .enquire-modal__overlay { opacity: 1; }

.enquire-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--em-bg);
  border: 1px solid var(--em-hair);
  border-radius: 18px;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}
.enquire-modal.is-open .enquire-modal__dialog {
  transform: none;
  opacity: 1;
}

.enquire-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--em-hair);
  border-radius: 50%;
  background: transparent;
  color: var(--em-text);
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.enquire-modal__close svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .enquire-modal__close:hover {
    border-color: var(--blue, #5AE1F2);
    color: #0E0E0E;
    background: var(--blue, #5AE1F2);
    transform: rotate(90deg);
  }
}

.enquire-modal__title {
  margin: 0 3rem 1.75rem 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--em-text);
}

/* ---- HubSpot form on a light surface ---- */
.enquire-modal__body .hs-form fieldset { max-width: none !important; }
.enquire-modal__body .hs-form-field { margin-bottom: 1.2rem; }

/* labels now read against the light bg without needing to override HubSpot */
.enquire-modal__body .hs-form-field > label,
.enquire-modal__body .hs-form-field > label span,
.enquire-modal__body form label {
  display: block;
  margin-bottom: .45rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--em-text);
}
.enquire-modal__body .hs-form-required { color: #d92d20; }

/* inputs, textareas, selects */
.enquire-modal__body .hs-input,
.enquire-modal__body input.hs-input,
.enquire-modal__body textarea.hs-input,
.enquire-modal__body select.hs-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: .85rem 1rem !important;
  background: #f7f8f9 !important;
  border: 1px solid var(--em-hair) !important;
  border-radius: 10px !important;
  color: var(--em-text) !important;
  font: inherit !important;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.enquire-modal__body textarea.hs-input { min-height: 120px; resize: vertical; }
.enquire-modal__body .hs-input:focus {
  outline: none !important;
  border-color: var(--blue, #5AE1F2) !important;
  box-shadow: 0 0 0 3px rgba(90, 225, 242, .25) !important;
}
.enquire-modal__body .hs-input::placeholder { color: #9aa0a6 !important; }

/* phone number: country-select + number sit side by side */
.enquire-modal__body .hs-fieldtype-phonenumber .input,
.enquire-modal__body .hs-fieldtype-intl-phone .input {
  display: flex;
  gap: .75rem;
}
.enquire-modal__body select.hs-input { max-width: 220px; }
.enquire-modal__body select.hs-input option {
  background: #ffffff;
  color: var(--em-text);
}

.enquire-modal__body .hs-button {
  display: inline-block;
  margin-top: .75rem;
  padding: 1em 2.2em !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--blue, #5AE1F2) !important;
  color: #0E0E0E !important;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
}
@media (hover: hover) {
  .enquire-modal__body .hs-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
}

/* validation + helper text */
.enquire-modal__body .hs-error-msg,
.enquire-modal__body .hs-error-msgs label { color: #d92d20 !important; font-size: .8rem; }
.enquire-modal__body .legal-consent-container,
.enquire-modal__body .hs-field-desc { color: var(--em-muted) !important; font-size: .8rem; }
.enquire-modal__body a { color: #0a7ea4 !important; }

body.enquire-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .enquire-modal__overlay,
  .enquire-modal__dialog,
  .enquire-modal__close { transition: none; }
}
/* prevents background scroll while the mobile menu is open —
   belt-and-suspenders alongside the JS portal fix above */
body.nav-open-lock { overflow: hidden; }
/* while the mobile menu is open, the burger (now an X) is moved
   to <body> alongside .nav__panel so .hero's isolation:isolate
   can't bury it beneath the panel — pin it in the same visual
   spot it occupied inside .nav */
.nav__burger.is-portaled {
  position: fixed;
  top: clamp(1.4rem, 3vw, 2.6rem);
  right: clamp(1.4rem, 4vw, 4rem);
  z-index: 25; /* above .nav__panel's z-index: 20 */
}