/* ==========================================================================
   Polyguard Industries — common.css
   Design tokens, reset, layout primitives, buttons, header, footer.
   Values pulled from the Figma file y7HJSMs1I0SULD0mDIpaZ4
   (canvas "Sitemap + Responsive", desktop frame 52313:6258 / mobile 52314:13093).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* -- Colour: named by role, not by hex ---------------------------------- */
  --color-primary: #e22731;          /* Primary/500 (Brand) */
  --color-primary-deep: #cd1c25;     /* Primary/600 — the red band */
  --color-primary-tint: #fdedee;     /* Primary/50 — eyebrow text on photos */
  --color-primary-soft: #f8a1a5;     /* Primary/200 — soft red on red bands */

  --color-ink: #11172c;              /* Secondary/950 — headings */
  --color-navy: #08102b;             /* footer / dark bands */
  --color-navy-veil: #2c3d75;        /* Secondary/700 — image veil base */
  --color-text: #4a4a4a;             /* body copy */
  --color-text-invert: #ffffff;      /* Secondary/50 */

  --color-bg: #ffffff;
  --color-band: rgba(44, 61, 117, 0.05);  /* Secondary/700 @5% — the light band
                                        behind several sections */
  --color-bg-card: #fafafa;          /* card hover surface */
  --color-line: #dee3f3;             /* Secondary/100 — hairlines, card borders */
  --color-line-invert: rgba(255, 255, 255, 0.2);
  --color-star: #ffab2e;             /* testimonial stars */

  /* Form controls carry their own greys, warmer than the --color-line used for
     card hairlines — 52313:10416 (field border) / 52313:10434 (placeholder). */
  --color-field-line: #e6e6e6;
  --color-field-placeholder: #b3b3b3;
  --color-error: #dc3232;            /* CF7's own invalid-field red */

  --overlay-hero: rgba(4, 16, 58, 0.5);
  --overlay-card: rgba(44, 61, 117, 0.2);
  --overlay-glass: rgba(0, 0, 0, 0.1);
  --overlay-white-10: rgba(255, 255, 255, 0.1);
  --overlay-white-05: rgba(255, 255, 255, 0.05);
  /* #D9D9D9 veil the design lays over dark bands — 5% at rest, lifted on hover */
  --surface-veil: rgba(217, 217, 217, 0.05);
  --surface-veil-hover: rgba(217, 217, 217, 0.14);
  --shadow-btn: inset 0 -2px 0 0 rgba(0, 0, 0, 0.25);

  /* -- Type --------------------------------------------------------------- */
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid between the 428px mobile frame and the 1440px desktop frame.
     Both endpoints are measured off the Figma nodes, not invented. */
  --fs-h1: clamp(2.75rem, 2.010rem + 2.767vw, 4.5rem);      /* 44 → 72 */
  --fs-h2: clamp(2.375rem, 1.899rem + 1.779vw, 3.5rem);     /* 38 → 56 */
  --fs-h3: clamp(1.75rem, 1.433rem + 1.186vw, 2.5rem);      /* 28 → 40 */
  --fs-h4: clamp(1.5rem, 1.289rem + 0.790vw, 2rem);         /* 24 → 32 */
  /* 22 → 28. The 428 frames set this step at 22 everywhere it appears —
     52315:11305 (testimonial), 52319:35151 (drawer panel title), 52314:16006
     (article card). It was 20 at the mobile end, which quietly shortened every
     component built on it. */
  --fs-h5: clamp(1.375rem, 1.216rem + 0.593vw, 1.75rem);    /* 22 → 28 */
  --fs-h6: clamp(1rem, 0.789rem + 0.790vw, 1.5rem);         /* 16 → 24 */
  --fs-body-xl: clamp(1.125rem, 1.072rem + 0.198vw, 1.25rem); /* 18 → 20 */
  --fs-body-lg: clamp(1rem, 0.947rem + 0.198vw, 1.125rem);  /* 16 → 18 */
  --fs-body-md: clamp(0.875rem, 0.822rem + 0.198vw, 1rem);  /* 14 → 16 */
  --fs-body-sm: clamp(0.75rem, 0.697rem + 0.198vw, 0.875rem); /* 12 → 14 */
  --fs-eyebrow: clamp(1rem, 0.947rem + 0.198vw, 1.125rem);  /* 16 → 18 */

  --lh-heading: 1.15;
  --lh-tight: 1.2;
  --lh-body: 1.5;

  /* -- Spacing scale (Figma "paddings/gap/*") ----------------------------- */
  --gap-2xs: 8px;
  --gap-xs: 16px;
  --gap-sm: 24px;
  --gap-md: 32px;
  --gap-lg: 40px;
  --gap-xl: 56px;
  --gap-2xl: 64px;
  --gap-3xl: 80px;

  /* -- Layout ------------------------------------------------------------- */
  --content-width: 1300px;           /* 12 cols × 90 + 11 × 20 gutter */
  --pad-x: 70px;                     /* artboard/padding-x */
  --section-py: 80px;                /* artboard/padding-y */
  --header-h: 117px;                 /* topbar + hairline + main row, as rendered */
}

@media (max-width: 1279px) {
  :root {
    --pad-x: 48px;
    --section-py: 64px;
    --gap-3xl: 64px;
    --gap-2xl: 56px;
  }
}

@media (max-width: 767px) {
  :root {
    --pad-x: 24px;
    --section-py: 40px;
    --gap-3xl: 48px;
    --gap-2xl: 40px;
    --gap-xl: 40px;
    --gap-lg: 32px;
    --gap-md: 24px;
    --header-h: 101px;              /* mobile navbar, as rendered */
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-ink);
  line-height: var(--lh-tight);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Icon images must never be stretched — Figma exports carry a
   preserveAspectRatio="none" that we strip, this is the belt-and-braces. */
.icon {
  object-fit: contain;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad-x);
  z-index: 200;
  padding: 12px 18px;
  background: var(--color-primary);
  color: var(--color-text-invert);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-width) + (var(--pad-x) * 2));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-py);
}

/* Light band used by Products, Stats, FAQs and — on inner pages — Featured
   Projects. Applied per instance because the same section sits on white on the
   homepage and on the band on Product Range. */
.section--alt { background: var(--color-band); }

/* Section eyebrow: 18px bold red, uppercase, 8% tracking (16px / 6% on mobile) */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
@media (max-width: 767px) {
  .eyebrow { letter-spacing: 0.06em; }
}

.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--color-text);
}

.section-lead p {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--color-text);
}

/* Header block shared by Solutions / Projects / Products / Resources:
   eyebrow + title on the left, supporting copy (and sometimes a CTA) on the right. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-2xl);
}

.section-head__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* Two equal columns: heading left, supporting copy + CTA right.
   Sized explicitly rather than with `flex: 1 1 0` — with border-box, a
   flex-basis of 0 hands the padded aside its 64px gutter *on top of* an equal
   share, which came out 606 / 670 instead of the designed 638 / 638. */
.section-head--split { align-items: flex-start; gap: var(--gap-sm); }
.section-head--split .section-head__text,
.section-head--split .section-head__aside {
  flex: 0 0 calc((100% - var(--gap-sm)) / 2);
  min-width: 0;
}

.section-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--gap-md);
  padding-left: var(--gap-2xl);
  padding-top: 46px;
}

@media (max-width: 1023px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-md);
  }
  /* Stacked, a 50% basis would size the *height* — reset to content */
  .section-head--split .section-head__text,
  .section-head--split .section-head__aside {
    flex: 0 0 auto;
    width: 100%;
  }
  /* Only the 64px gutter goes — the mobile frames keep the 46px top offset
     that separates the supporting copy from the heading above it.
     Figma 52315:5556 (solutions) / 52315:5992 (range) / 52315:5917 (detail)
     and 52315:11989 (projects) all agree on pad[46 0 0 0]. */
  .section-head__aside { padding-left: 0; }
}

/* Those same four frames stack the split head on a 16px gap, not the 24/32
   the generic rule above inherits — and every mobile frame checked keeps the
   head->body gap at the desktop 48 rather than following --gap-2xl down to 40
   (52316:15154 products, 52316:15102 resources, 52315:11984 projects,
   52332:15182 oil & gas products, 52315:11565 testimonials). */
@media (max-width: 767px) {
  .section-head--split { gap: var(--gap-xs); }
  .section-head { margin-bottom: 48px; }
}

.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--color-line);
}

/* --------------------------------------------------------------------------
   4. Buttons — one class per visually distinct style in the Figma file
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2xs);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: 600;
  line-height: var(--lh-body);
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn .icon { width: 20px; height: 20px; }

/* Solid brand red — the primary CTA everywhere */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-invert);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: #c81f28; }

/* Transparent + white hairline, used over photography */
.btn--outline-light {
  background: var(--overlay-white-10);
  border-color: var(--color-text-invert);
  color: var(--color-text-invert);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.2); }

/* White hairline on the red band */
.btn--outline-red {
  background: transparent;
  border-color: var(--color-text-invert);
  color: var(--color-text-invert);
}
.btn--outline-red:hover { background: var(--overlay-white-10); }

/* Red hairline on light — "Download Spec Sheet" in the Overview gallery */
.btn--outline-brand {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline-brand:hover { background: var(--color-primary-tint); }

/* Dark translucent pill — "Play Video", footer "Top" */
.btn--glass {
  background: var(--overlay-white-05);
  border-color: var(--color-line-invert);
  color: var(--color-text-invert);
  border-radius: 4px;
  padding: 10px 12px 8px 16px;
}
.btn--glass:hover { background: var(--overlay-white-10); }

/* Red text link with underline + arrow — "Read More", "Explore All Products" */
.btn--link {
  padding: 8px 0;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  gap: var(--gap-2xs);
}
.btn--link:hover { opacity: 0.75; }

/* Square carousel arrows. State-driven, not hard-coded: solid red while the
   move is available, white once Swiper marks the button disabled (end of the
   track) or locked (nothing to page at all). The arrow glyph ships dark, so
   the red state inverts it to white rather than loading a second file. */
.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  gap: 0;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}
.btn--icon .icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.btn--icon:hover {
  background: #c81f28;
  border-color: #c81f28;
}

/* A plain `disabled` arrow (the Projects paginator) reads the same as Swiper's
   own end-of-track state. */
.btn--icon:disabled,
.btn--icon.swiper-button-disabled,
.btn--icon.swiper-button-lock {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
  box-shadow: none;
  cursor: default;
  /* Swiper hides locked buttons outright; the design keeps them on show. */
  display: inline-flex;
  opacity: 1;
}
.btn--icon:disabled .icon,
.btn--icon.swiper-button-disabled .icon,
.btn--icon.swiper-button-lock .icon { filter: none; }
.btn--icon.swiper-button-disabled:hover,
.btn--icon.swiper-button-lock:hover {
  background: var(--color-bg);
  border-color: var(--color-line);
}
.btn--full { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  /* Fixed at every scroll position, not just once stuck. It used to be absolute
     until the hero was cleared, which meant that on the way back up it detached
     at the threshold and snapped to document y=0 — hundreds of pixels above the
     viewport — so the bar simply vanished until you were almost at the top.
     Fixed and absolute coincide at scrollY 0, so nothing moves; `is-stuck` now
     only swaps the glass background for the solid navy one. */
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--overlay-glass);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: var(--color-text-invert);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Scrolled state is not drawn in the Figma file — inferred: the bar detaches
   from the hero and becomes a solid navy sticky bar. */
.site-header.is-stuck {
  background: var(--color-navy);
  box-shadow: 0 2px 16px rgba(8, 16, 43, 0.25);
}

.site-header__row {
  border-bottom: 1px solid var(--color-line-invert);
}

/* -- Utility bar --------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-md);
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
  padding-block: 6px;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  white-space: nowrap;
}
.topbar__item .icon { width: 18px; height: 18px; }
.topbar__item:hover { opacity: 0.8; }

.topbar__divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-line-invert);
}

/* -- Main nav row -------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--gap-xs);
}

.navbar__logo img {
  width: 178.906px;
  height: 40px;
  object-fit: contain;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-body-md);
  font-weight: 500;
  white-space: nowrap;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.nav__link .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.nav__item:hover > .nav__link,
.nav__link[aria-expanded="true"] {
  border-bottom-color: var(--color-text-invert);
}
.nav__link[aria-expanded="true"] .icon { transform: rotate(0deg); }

/* -- Mega dropdown ------------------------------------------------------- */
/* Each panel lives inside its own <li>, so the markup stays self-contained and
   the trigger and its menu can never drift apart. Keeping the item `static`
   (and every wrapper between it and the header unpositioned) is what lets the
   panel still resolve against .site-header and span the full-bleed width — the
   header is the containing block via its own position/backdrop-filter. */
.nav__item { position: static; }

.megamenu {
  position: absolute;
  inset: 100% 0 auto 0;
  z-index: 1;
  background: var(--color-bg);
  color: var(--color-ink);
  padding-block: var(--gap-md);
  display: none;
  /* the panel is its own block, not a nav row — undo what .nav sets on it */
  text-align: left;
  white-space: normal;
}
.megamenu.is-open { display: block; }

.megamenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-sm);
}

.megamenu__title {
  font-size: var(--fs-h5);
  letter-spacing: 0.02em;
}

.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}
.megamenu__grid--3 { grid-template-columns: repeat(3, 1fr); }

.megamenu__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xs);
  font-size: var(--fs-body-xl);
  font-weight: 700;
  color: var(--color-ink);
}
.megamenu__links a {
  display: block;
  padding: var(--gap-xs);
  border: 1px solid var(--color-line);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.megamenu__links a:hover {
  background: var(--color-bg-card);
  color: var(--color-primary);
}

/* Figma exports the arrow glyph pointing up; the design rotates it 90°. */
.icon--arrow-right { transform: rotate(90deg); }
.icon--arrow-left { transform: rotate(-90deg); }

/* Carousel prev/next pair */
.slider-nav {
  display: flex;
  gap: var(--gap-2xs);
}
.slider-nav .btn--icon { width: 44px; height: 44px; }
.slider-nav .btn--icon .icon { width: 20px; height: 20px; }
.slider-nav .btn--icon:disabled { opacity: 1; cursor: default; }
.slider-nav .btn--icon:disabled:hover {
  background: var(--color-bg);
  border-color: var(--color-line);
}

/* Shared product/solution card — also used in the Products section */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.tile__media {
  position: relative;
  aspect-ratio: 313 / 280;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}
/* Product shots are cut-outs on a plain field, so they must not be cropped. */
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Photography fills its box instead — `contain` letterboxed the solution
   images inside the taller card media area. */
.tile--photo .tile__media img { object-fit: cover; }
.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-card);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--gap-xs);
}

.tile__title {
  font-family: var(--font-body);
  font-size: var(--fs-body-xl);
  font-weight: 700;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

@media (min-width: 1024px) {
    .tile__title {
        min-height: 60px;
    }
}

.tile__desc {
  font-size: var(--fs-body-md);
  font-weight: 500;
  color: var(--color-text);
}

/* Hover reveal — matches the "View Products" state drawn in the Figma dropdown.
   The media box is `width × 280/313`, so half of that centres the button on it
   regardless of how tall the copy underneath runs. */
.tile { container-type: inline-size; }

.tile__cta {
  position: absolute;
  top: calc(50cqw * 280 / 313);
  left: 50%;
  transform: translate(-50%, calc(-50% + 6px));
  padding: 12px 14px 12px 18px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tile--tall .tile__cta { top: calc(50cqw * 320 / 313); }
.tile:hover,
.tile:focus-within { background: var(--color-bg-card); }
.tile:hover .tile__media::after,
.tile:focus-within .tile__media::after { opacity: 1; }
.tile:hover .tile__cta,
.tile:focus-within .tile__cta {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.tile--tall .tile__media { aspect-ratio: 313 / 320; }

/* The Products section runs these full-width on the 428 frames, where the media
   is pinned at 320 rather than keeping the 313:320 ratio — at 380 wide the
   ratio gives 389, which was making every product card ~74 too tall.
   52316:15161 (home) / 52316:14066 (product range). The mega-menu and drawer
   tiles are unaffected: they stay on a 313px track. */
@media (max-width: 767px) {
  .tile--tall .tile__media {
    aspect-ratio: auto;
    height: 320px;
  }
  .tile--tall .tile__cta { top: 160px; }
  /* 52316:15164 tightens the body to 14 of padding and gap */
  .tile--tall .tile__body {
    gap: 14px;
    padding: 14px;
  }
}

/* -- Mobile drawer ------------------------------------------------------- */
.navbar__toggle {
  display: none;
  align-items: center;
  padding: 6px;
  background: var(--overlay-white-10);
  border-radius: 4px;
}
.navbar__toggle .icon { width: 24px; height: 24px; }

.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--color-bg);
  color: var(--color-ink);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  max-height: calc(100dvh - var(--header-h));
  /* The sub-panels park off-canvas at translateX(100%), and a transformed box
     still counts toward a scroll container's overflow — so the drawer offered
     a horizontal scrollbar out to 856px. Nothing is ever meant to be scrolled
     to sideways here; the panels arrive by transform. */
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
              height 0.25s ease;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: var(--fs-body-md);
  font-weight: 500;
  color: var(--color-ink);
  text-align: left;
}
.drawer__link .icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

/* Sub-panel slides over the root list. Pinned top/left/right but NOT bottom:
   with `inset: 0` its height was locked to the drawer's, so the cards were
   squashed and it could never report its own content height. */
.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* `height`, not `min-height`: a closed panel taller than the drawer used to
     stretch the scroll area and put a vertical scrollbar on the root list even
     though the root list fit. Bounded to the drawer, each panel scrolls its own
     content instead — which is what should happen once main.js caps the drawer
     at the space below the header. */
  height: 100%;
  overflow-y: auto;
  background: var(--color-bg);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  transform: translateX(100%);
  /* Closed panels were still in the tab order — 15 off-screen stops across the
     three of them — and focusing one would have dragged the drawer sideways.
     visibility takes them out of the tab order and out of hit-testing; the
     transition on it holds them visible for the slide out. */
  visibility: hidden;
  /* visibility is discrete, so a plain transition would flip it halfway and the
     panel would pop in mid-slide. Instead it switches instantly on the way in
     and is held until the slide out finishes. */
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.drawer__panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s linear 0s;
}

.drawer__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-xs);
}

.drawer__back {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
  font-size: var(--fs-h5);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-ink);
}
.drawer__back .icon {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.drawer__cards {
  display: flex;
  flex: none;                /* never shrink — the cards set the panel height */
  align-items: flex-start;   /* cards keep their natural height, not the panel's */
  gap: var(--gap-xs);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.drawer__cards .tile {
  flex: 0 0 min(313px, 82%);
  scroll-snap-align: start;
}

body.is-locked { overflow: hidden; }

@media (max-width: 1023px) {
  .navbar__toggle { display: flex; }
  /* Hiding .nav also takes the mega panels nested inside it out of play, so
     mobile is served purely by the drawer below. */
  .nav,
  .navbar__right .btn { display: none; }
  /* The mobile frame keeps only "phone | email", so the leading rule,
     "Contact us" and its trailing rule all come out. */
  .topbar > *:nth-child(-n + 3) { display: none; }
  .topbar {
    justify-content: center;
    gap: clamp(12px, 5.6vw, var(--gap-sm));
  }
  .topbar__item .icon { width: 16px; height: 16px; }
  .navbar { padding-block: 14px; }
}

/* Narrower than the 428px mobile frame the address no longer fits, so the
   mail link falls back to its icon (the label stays as the accessible name). */
@media (max-width: 419px) {
  .topbar__label { display: none; }
}

@media (min-width: 1024px) {
  .drawer { display: none; }
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  align-items: stretch;
  background: var(--color-navy);
  border-top: 1px solid var(--color-line-invert);
  color: var(--color-text-invert);
}

.site-footer__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.site-footer__col + .site-footer__col {
  border-left: 1px solid var(--color-line-invert);
}

.site-footer__pad {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
  padding: var(--gap-2xl) var(--pad-x);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xl) var(--gap-2xl);
}

.footer-nav__group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer-nav__title {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.footer-nav__group .hairline { background: var(--color-line-invert); }

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  font-size: var(--fs-body-md);
}
.footer-nav__list a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.footer-nav__list a:hover { opacity: 1; }

.footer-bar {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  flex-wrap: wrap;
  padding: var(--gap-sm) var(--pad-x);
  border-top: 1px solid var(--color-line-invert);
  font-size: var(--fs-body-sm);
  font-weight: 600;
}
.footer-bar__sep { opacity: 0.2; font-weight: 400; }

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
}
.footer-brand img {
  width: 214.687px;
  height: 48px;
  object-fit: contain;
}
.site-footer .hairline { background: var(--color-line-invert); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.footer-contact a,
.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  word-break: break-all;
}
.footer-contact .icon { width: 24px; height: 24px; }
.footer-contact a:hover { color: var(--color-primary-soft); }

.footer-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  height: 69px;
  padding-right: 351px;              /* matches the Figma frame at 1440 */
  border-top: 1px solid var(--color-line-invert);
}

.footer-social {
  display: flex;
  align-items: center;
  height: 100%;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 69px;
  height: 100%;
  border-right: 1px solid var(--color-line-invert);
  transition: background-color 0.2s ease;
}
.footer-social a:hover { background: var(--overlay-white-05); }
.footer-social .icon { width: 40px; height: 40px; }

.footer-credit {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .footer-social-bar { padding-right: var(--pad-x); }
}

/* The mobile frame runs the footer in a different order to the desktop
   two-column split: link columns first, then the brand + contact block, then
   the socials, with the copyright bar last. `display: contents` lifts the four
   blocks out of their desktop columns so they can simply be re-ordered. */
@media (max-width: 1023px) {
  .site-footer { flex-direction: column; }
  .site-footer__col { display: contents; }

  .site-footer__pad--nav { order: 1; }
  .site-footer__pad--brand {
    order: 2;
    border-top: 1px solid var(--color-line-invert);
  }
  /* Figma 52314:13240 centres the icons and the credit together as one 348px
     group rather than pinning the credit to the far edge, where it clipped on
     a 428px screen. */
  .footer-social-bar {
    order: 3;
    justify-content: center;
    padding-right: 0;
    gap: 0;
  }
  .footer-credit { padding-inline: var(--gap-xs); }

  /* Figma 52314:13185 centres the whole bar and gives the copyright its own
     line, with the policy links centred beneath it. */
  .footer-bar {
    order: 4;
    justify-content: center;
    text-align: center;
  }
  /* The copyright line — no class on it, but it is always the first child. */
  .footer-bar > span:first-child { flex: 1 0 100%; }
  /* With the copyright on its own line the separator would lead the second
     line, so it only earns its place on the single-line desktop bar. */
  .footer-bar__sep { display: none; }

  .footer-nav { gap: var(--gap-lg) 48px; }
  .footer-nav__list { gap: 14px; }
  .footer-contact a,
  .footer-contact li { align-items: flex-start; }
  .footer-contact .icon { margin-top: 3px; }
}

/* Exact numbers from the 428 frame: 16px of vertical padding and a 14px gap
   between the two lines, against the desktop bar's 24. */
@media (max-width: 767px) {
  .footer-bar {
    gap: 14px;
    padding-block: var(--gap-xs);
  }

  /* 52314:13153 and 52314:13193 both pad 48 — --gap-2xl drops to 40 down here,
     so the block padding needs the 48 token instead. The 40 gap inside them is
     already what --gap-xl gives at this breakpoint. */
  .site-footer__pad { padding: var(--gap-3xl) var(--pad-x); }

  /* 52314:13154 → 52314:13170 is a 40 row gap between the two link rows; the
     1023 rule sets --gap-lg, which is 32 by the time it reaches mobile. */
  .footer-nav { gap: var(--gap-xl) 48px; }

  /* 52314:13192 puts 32 between the brand block and the social strip */
  .footer-social-bar { margin-top: var(--gap-lg); }
}

@media (max-width: 599px) {
  .footer-brand { gap: var(--gap-md); }
  
	.footer-contact a, .footer-contact li {
		font-size: 16px;
	}
}

/* --------------------------------------------------------------------------
   7. Motion
   -------------------------------------------------------------------------- */
/* Scoped to .js so a script failure can never leave sections invisible */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   8. Page hero — the dark banner every inner template opens with
      Figma: Product Range 52313:6660
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: #04103a;
  color: var(--color-text-invert);
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Oversized shield mark bleeding off the left edge, behind the heading */
.page-hero__mark {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 314px;
  height: 294px;
  opacity: 0.2;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  padding-block: var(--section-py);
}

/* Hero button row — Figma 52313:9177 is `hor gap:16` */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.page-hero .section-head { margin-bottom: 0; }
.page-hero .section-title { color: var(--color-text-invert); }
/* Every hero lead is Primary/50 at 80% node opacity — 52313:6670 (range),
   52313:7304 (detail), 52313:8648 (solutions), 52313:8849 (oil & gas),
   52313:9176 (why), 52313:9535 (about), 52313:7659 (overview). */
.page-hero .section-lead {
  color: var(--color-primary-tint);
  opacity: 0.8;
}
.page-hero__title { font-size: var(--fs-h1); }

@media (max-width: 767px) {
  .page-hero__mark { left: 15px; width: 250px; height: auto; top: 20px; }
}

/* --------------------------------------------------------------------------
   9. Hero breadcrumb — Figma 52313:7291 (detail) / 52313:7652 (overview)
   The same 18px bold red eyebrow row, with the current page in the pale tint.
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-2xs);
}
.breadcrumb a:hover { text-decoration: underline; }

/* Every trail before the current page is the full-strength brand red, including
   the separators. Only the current page is dropped back — Primary/50 at 50%
   node opacity, the same in all seven hero frames that carry a breadcrumb
   (52313:7291, 7652, 8849, 9932, 10036, 10179, 10268). */
.breadcrumb__current {
  color: var(--color-primary-tint);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   10. Full-bleed banner — Figma 52313:7306 (detail) / 52313:8650 (solutions)
   The edge-to-edge photo several inner templates run under their hero.
   -------------------------------------------------------------------------- */
.page-banner {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* Specifications runs a shorter banner — 52313:9945 is 400 at 1440 */
.page-banner--short { height: 400px; }

@media (max-width: 1023px) {
  .page-banner { height: 460px; }
}
@media (max-width: 767px) {
  .page-banner { height: 400px; }
}

/* --------------------------------------------------------------------------
   11. FAQ accordion — Figma 52313:7222 / faq_list 52313:7227
   -------------------------------------------------------------------------- */
.faq { background: var(--color-band); }

/* Figma's text box is 793px and fits "Everything You Want to Know" on one
   line; the browser measures Manrope a few px wider and wrapped it, turning
   the designed two-line heading into three. 840px keeps the designed break
   without changing what is on screen — the block is centred either way. */
.faq__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 840px;
  margin: 0 auto var(--gap-2xl);
  text-align: center;
}

.faq__list {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 1px;
  border: 1px solid var(--color-line);
}

.faq__item + .faq__item { border-top: 1px solid var(--color-line); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  width: 100%;
  padding: var(--gap-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
  text-align: left;
}
.faq__item.is-open {
  background: var(--color-bg);
}

/* Icon is drawn rather than exported: a 32px square holding an 11×2 bar, plus
   a second bar rotated 90° that collapses away when the panel opens. */
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--color-line);
  transition: background-color 0.2s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: var(--color-ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__question[aria-expanded="true"] .faq__icon { background: var(--color-primary); }
.faq__question[aria-expanded="true"] .faq__icon::before,
.faq__question[aria-expanded="true"] .faq__icon::after {
  background: var(--color-text-invert);
}
.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__panel > div { overflow: hidden; }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

.faq__answer {
  padding: 0 var(--gap-sm) var(--gap-sm);
  font-size: var(--fs-body-lg);
  color: var(--color-text);
}

@media (max-width: 767px) {
  .faq__question { padding: var(--gap-xs); gap: var(--gap-xs); }
  .faq__answer { padding: 0 var(--gap-xs) var(--gap-xs); }
}

/* Line break that only applies from the desktop frame up — used where the
   Figma text node carries an explicit break (e.g. the FAQ heading). */
.br-lg { display: none; }
@media (min-width: 1024px) {
  .br-lg { display: inline; }
}

/* --------------------------------------------------------------------------
   12. Scroll strips
   Rows that scroll sideways by design (product cards, article cards, drawer
   cards, filter tabs). The bar is redundant next to the visible peek of the
   next card, and it shifts the layout on platforms that reserve space for it.
   -------------------------------------------------------------------------- */
.resources__grid,
.catalogue__grid,
.catalogue__filters,
.drawer__cards {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* legacy Edge */
}
.resources__grid::-webkit-scrollbar,
.catalogue__grid::-webkit-scrollbar,
.catalogue__filters::-webkit-scrollbar,
.drawer__cards::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* --------------------------------------------------------------------------
   13. Corner notch
   Several Figma nodes are boolean subtracts with a bite out of the bottom-right
   corner — project cards, article cards, the video poster, the red band photo,
   the use-case images. Same shape, different bite sizes, so the polygon lives
   here once and each use just sets --notch-w / --notch-h.

   Note: clip-path clips the border box exactly on the polygon, so a `border`
   on a notched element is cut away on every edge, the diagonal included. Where
   Figma strokes the shape — .article-card__img (52313:6612), .team-card__img
   (52313:9626), .why-card — the hairline is drawn as two stacked clipped
   layers: the line colour on the parent, the content inset 1px over it.
   -------------------------------------------------------------------------- */
:root {
  --notch-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--notch-h, 67px)),
    calc(100% - var(--notch-w, 67px)) 100%,
    0 100%
  );
}

/* --------------------------------------------------------------------------
   14. Pagination — Figma 52313:10157 (Projects) / 52313:10361 (Guides)
   The same 244x44 component on both templates: a bordered prev arrow, the page
   numbers, and a red next arrow. Lives here rather than in projects.css now
   that two pages draw it.
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2xs);
  margin-top: var(--gap-2xl);
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* The unvisited pages carry the same hairline as the prev arrow — 52313:10368
     and 52313:10370 are both `border 1px #DEE3F3`. */
  border: 1px solid var(--color-line);
  font-size: var(--fs-body-md);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pagination__page:hover { background: var(--color-band); }

/* The current page is a solid fill with no hairline (52313:10366) */
.pagination__page[aria-current="page"] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-text-invert);
}

/* Both 428 frames sit the paginator 48 below the grid, where --gap-2xl is 40 */
@media (max-width: 767px) {
  .pagination { margin-top: 48px; }
}

/* --------------------------------------------------------------------------
   1 · Hero — Figma 52313:6259 (desktop) / 52315:6058 (mobile)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--color-text-invert);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 810px;
  padding-top: 216px;
  padding-bottom: 81px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-lg);
  width: 100%;
  max-width: 1095px;
  margin-inline: auto;
  text-align: center;
  letter-spacing: 0.02em;
}

.hero__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.hero__eyebrow {
  font-size: var(--fs-body-lg);
  font-weight: 700;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--color-primary-tint);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--color-text-invert);
}

.hero__actions {
  display: flex;
  gap: var(--gap-xs);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__note {
  max-width: 438px;
  margin-top: auto;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 1023px) {
  .hero__inner {
    min-height: 720px;
    padding-top: calc(var(--header-h) + var(--gap-2xl));
    padding-bottom: var(--gap-2xl);
    justify-content: center;
  }
  .hero__note { margin-top: var(--gap-lg); }
}

@media (max-width: 767px) {
  .hero__inner {
    min-height: 810px;
    gap: var(--gap-lg);
  }
  .hero__head { gap: 14px; }
  .hero__note {
    margin-top: 0;
    max-width: none;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   2 · Client logo strip — Figma 52313:6269 / 52315:12287
   -------------------------------------------------------------------------- */
.logo-strip {
  background: var(--color-band);
  padding-block: var(--gap-lg);
}

/* The ribbon crawls continuously. sliders.js clones the six logos once, so the
   track is exactly two identical halves and translating it -50% lands back on
   an identical frame — a seamless loop with no jump. */
.logo-strip__viewport { overflow: hidden; }

.logo-strip__track {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  width: max-content;
  padding-right: var(--gap-xl);   /* keeps the seam spacing even */
  animation: logo-crawl 45s linear infinite;
}
.logo-strip__viewport:hover .logo-strip__track,
.logo-strip__viewport:focus-within .logo-strip__track {
  animation-play-state: paused;
}

@keyframes logo-crawl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.logo-strip__item {
  display: flex;
  align-items: center;
  width: auto;
  flex: none;
}

/* Static, centred row when motion is unwelcome */
@media (prefers-reduced-motion: reduce) {
  .logo-strip__track {
    animation: none;
    width: 100%;
    justify-content: center;
    padding-right: 0;
    flex-wrap: wrap;
    row-gap: var(--gap-md);
  }
  .logo-strip__item[aria-hidden="true"] { display: none; }
}

/* Figma fills the logo silhouette with --color-text and drops the group to 50%.
   brightness(0) flattens the export to black, invert(29%) lifts it to #4a4a4a. */
.client-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0) invert(29%);
}

@media (max-width: 1023px) {
  .logo-strip { padding-block: var(--gap-md); }
  .client-logo { height: 40px; }
}

/* --------------------------------------------------------------------------
   3 · Solutions — Figma 52313:6296 / 52316:14971
   -------------------------------------------------------------------------- */
/* Grid rather than flex: desktop puts the logo top-right and the arrows
   bottom-right beside a full-height text column, while the mobile frame
   stacks them logo → text → arrows. Same markup, two row orders. */
.solutions__head {
  display: grid;
  grid-template-columns: 748px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: var(--gap-sm);
  margin-bottom: var(--gap-2xl);
}

.solutions__intro {
  grid-column: 1;
  grid-row: 1 / 3;
  max-width: 748px;
}

.solutions__logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-top: var(--gap-lg);
  width: 286px;
  height: 64px;
  object-fit: contain;
}

.solutions__nav {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
}

.solutions__swiper { overflow: hidden; }

/* Shared photo card with a hover CTA — Solutions today, reusable elsewhere */
.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}

.media-card__media {
  position: relative;
  display: block;
  height: 300px;
}
.media-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 61, 117, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.media-card__cta {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  padding: 12px 14px 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.media-card:hover .media-card__media::after,
.media-card:focus-visible .media-card__media::after { opacity: 1; }
.media-card:hover .media-card__cta,
.media-card:focus-visible .media-card__cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.media-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-2xs);
  padding: var(--gap-sm);
  margin-top: auto;
}

.media-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h6);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

@media (max-width: 1023px) {
  /* Mobile frame order: logo, then the copy, then the arrows */
  .solutions__head {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: var(--gap-sm);
  }
  .solutions__logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-top: 0;
  }
  .solutions__intro { grid-column: 1; grid-row: 2; }
  .solutions__nav {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .solutions__head { margin-bottom: var(--gap-xl); }
  .media-card__media { height: 240px; }
  .media-card__cta { top: 120px; }
  .media-card__foot { padding: var(--gap-xs); }
  .solutions__logo { width: 215px; height: 48px; }
}

/* --------------------------------------------------------------------------
   4 · Specialists red band — Figma 52313:6361 / 52315:12232
   -------------------------------------------------------------------------- */
.specialists {
  display: flex;
  align-items: stretch;
  background: var(--color-primary-deep);
  color: var(--color-text-invert);
}

.specialists__media {
  position: relative;
  flex: 0 0 49.44%;   /* 712 / 1440 */
  min-height: 786px;
}
.specialists__media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Boolean subtract in Figma: a 74 × 89 bite letting the red band through */
  --notch-w: 74px;
  --notch-h: 89px;
  clip-path: var(--notch-path);
}

.specialists__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 333px;
  height: 74px;
  object-fit: contain;
}

.specialists__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-lg);
  padding: var(--gap-2xl) var(--pad-x);
  /* Keeps the right edge on the 1300px content grid above 1440px */
  padding-right: max(var(--pad-x), calc((100vw - var(--content-width)) / 2));
}

.specialists__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
  color: var(--color-text-invert);
}

.specialists__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.specialists__item {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.25);
}

.specialists__item-title {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-text-invert);
}

.specialists__marker {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--color-primary-deep);
}

.specialists__item-text {
  padding-left: 26px;
  font-size: var(--fs-body-md);
  font-weight: 500;
  opacity: 0.8;
}

.specialists .btn { align-self: flex-start; }

@media (max-width: 1023px) {
  .specialists { flex-direction: column; }
  .specialists__media {
    flex: none;
    min-height: 0;
    height: 400px;
  }
  .specialists__body {
    padding: var(--gap-xl) var(--pad-x);
    padding-right: var(--pad-x);
    gap: var(--gap-md);
  }
}

@media (max-width: 767px) {
  .specialists__item { padding: 14px 16px; gap: 14px; }
  .specialists__list { gap: 14px; }
  .specialists__item-text { font-size: var(--fs-body-md); }
  .specialists__watermark { width: 240px; height: auto; }
}

/* --------------------------------------------------------------------------
   5 · Stat strip — Figma 52352:9183 / 52316:15035
   -------------------------------------------------------------------------- */
.stats {
  background: var(--color-band);
  border-top: 1px solid var(--color-line);
}

.stats__inner { display: flex; }

.stats__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--gap-lg);
}
.stats__item + .stats__item { border-left: 1px solid var(--color-line); }

.stats__icon {
  width: 64px;
  height: 64px;
}

.stats__text {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}
.stats__text span { color: var(--color-primary); }

/* Three 32px headings need ~300px of column each; below 1024 they'd wrap to
   four lines, so the strip switches to the stacked icon-beside-text rows the
   mobile frame uses. */
@media (max-width: 1023px) {
  .stats__inner { flex-direction: column; }
  .stats__item {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 32px 0;   /* the mobile frame keeps 32, not the reduced --gap-md */
  }
  .stats__item + .stats__item {
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }
  .stats__icon { width: 48px; height: 48px; }
}

/* The mobile frame leaves 12px under the last stat before the next section */
@media (max-width: 767px) {
  .stats { padding-bottom: 12px; }
}

/* --------------------------------------------------------------------------
   6 · Featured projects — Figma 52313:6436 / 52316:15057
   -------------------------------------------------------------------------- */
/* The track runs past the content column and is cut by the screen edge rather
   than by the 70px gutter — the same arrangement Testimonials uses: the section
   clips at the viewport, the swiper doesn't clip at the 1300 grid. Card widths
   are unchanged; only how much of the next one shows. */
.projects { overflow: hidden; }
.projects__swiper { overflow: visible; }

/* The photo sits behind on z-index -1 (same idiom as .hero__bg) rather than
   the caption being absolutely positioned over it. That keeps .project-card
   itself as the containing block, so the caption's stretched link can cover
   the whole card — with an absolute caption it only covered the caption. */
.project-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 496px;
  color: var(--color-text-invert);
}

.project-card:before {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
    z-index: 0;
    right: 0;
    bottom: 0;
    clip-path: var(--notch-path);
}

.project-card__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: var(--notch-path);   /* 67 × 67 bite, see common.css */
}

.project-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  position: relative;
}

.project-card__logo {
  width: auto;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.project-card__rule {
  width: calc(100% - var(--gap-md));
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--color-text-invert);
  opacity: 0.4;
}

/* The whole card is the click target, but the accessible name is just the
   title — a stretched link keeps the photo's alt informative instead of
   folding it into a long link label. .project-card is already positioned. */
.project-card__link {
  color: inherit;
  transition: color 0.2s ease;
}
.project-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* Soft red rather than the brand red: the title sits on dark photography, the
   same context where the footer links use this tint. */
.project-card:hover .project-card__link { color: var(--color-primary-soft); }

.project-card__title {
  max-width: 540px;
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-text-invert);
}

/* Swiper scrollbar styled as the design's progress rail.
   Figma: 64px below the cards, then a 36px-tall row (16 / 4 / 16). */
.projects__scrollbar {
  position: relative;
  height: 4px;
  margin-top: calc(var(--gap-2xl) + 16px);
  margin-bottom: 16px;
  background: var(--color-line);
  border-radius: 0;
}
.projects__scrollbar .swiper-scrollbar-drag {
  background: var(--color-primary);
  border-radius: 0;
}

@media (max-width: 767px) {
  /* The mobile frame runs the track past the container so the next project
     peeks in from the screen edge — 360px cards inside a 380px column. */
  .projects__swiper {
    margin-right: calc(var(--pad-x) * -1);
  }

  /* The head's gap, the aside's 46px offset and the 48px head->body gap all
     come from common.css now; only the scrollbar rail needs the 48 restating. */
  .projects__scrollbar { margin-top: calc(48px + 16px); }

  .project-card { height: 450px; }
  .project-card__body { padding: var(--gap-xs) var(--gap-sm); }
  .project-card__rule { width: calc(100% - var(--gap-sm)); }
}

/* --------------------------------------------------------------------------
   7 · Why Polyguard — Figma 52313:6471 (no mobile frame; built responsive)
   -------------------------------------------------------------------------- */
/* The hairlines run the full width as drawn, but the two columns sit on the
   1300px content grid — otherwise past 1440 the halves keep spreading and the
   copy and video drift outside the column the rest of the page aligns to. */
.why {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.why__inner {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Divider drawn on top rather than as a border, so it takes no layout width and
   both columns stay exactly half the content grid. */
.why__inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-line);
}

.why__col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-block: var(--gap-2xl);
}
/* 70px each side of the divider reproduces the Figma gutter at 1440 */
.why__col--text { padding-right: var(--pad-x); }
.why__col--media { padding-left: var(--pad-x); }

.why__col--text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--gap-md);
}

.why__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* Anchored off the divider edge — 4.95% of the 650px column reproduces the
   Figma offset now that the column is container-width rather than half-viewport. */
.why__watermark {
  position: absolute;
  right: 4.95%;
  top: 71.89%;
  width: 196px;
  height: 184px;
  pointer-events: none;
  opacity: 0.05;
}

.why__card {
  position: relative;
  margin: 0;
}

.why__poster {
  width: 100%;
  height: 640px;
  object-fit: cover;
  --notch-w: 61px;
  clip-path: var(--notch-path);
}

.why__card-foot {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: var(--gap-sm) var(--gap-md);
}

.why__play {
  border-radius: 0;
  background: var(--overlay-white-10);
  border-color: var(--color-text-invert);
  padding: 16px;
}
.why__play .icon { width: 24px; height: 24px; }

@media (max-width: 1023px) {
  .why__inner { flex-direction: column; }
  /* Stacked, the columns are no longer equal height, so the centred rule can't
     land between them — the second column carries the line instead. */
  .why__inner::before { display: none; }
  .why__col--text { padding-right: 0; }
  .why__col--media {
    padding-left: 0;
    border-top: 1px solid var(--color-line);
  }
  .why__poster { height: 420px; }
  .why__watermark { right: 0; top: auto; bottom: var(--gap-md); }
}

@media (max-width: 767px) {
  .why__poster { height: 320px; }
  .why__watermark { display: none; }
  .why__card-foot { padding: var(--gap-xs); }
}

/* --------------------------------------------------------------------------
   8 · Products — Figma 52313:6493 / 52316:15153
   -------------------------------------------------------------------------- */
.products { background: var(--color-band); }

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}

@media (max-width: 1023px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .products__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9 · Testimonials — Figma 52313:6532 / 52315:11285
   -------------------------------------------------------------------------- */
.testimonials { overflow: hidden; }

.testimonials__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 748px;
  margin: 0 auto var(--gap-2xl);
  text-align: center;
}

/* Slides run past the container so the next card peeks, exactly as drawn */
.testimonials__swiper { overflow: visible; }
.testimonials__swiper .swiper-slide { height: auto; }

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  height: 100%;
  margin: 0;
  padding: var(--gap-lg);
  background: var(--color-band);
  border: 1px solid var(--color-line);
}

.quote__rating { display: flex; gap: var(--gap-2xs); }
.quote__rating .icon { width: 130px; height: 20px; }

/* Figma gives every quote box the same fixed height, which lands the rule and
   the client name on a common baseline no matter how short the quote is.
   Letting the text absorb the slack does the same thing without capping how
   long a quote may run. */
.quote__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  flex: 1;
}

.quote__text {
  flex: 1;
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.quote__cite {
  font-style: normal;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--color-primary);
}

.testimonials__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-lg);
  margin-top: var(--gap-2xl);
}

/* Swiper's horizontal-pagination rule forces width:100%/left:0 — undo it so the
   bar group centres under the cards the way the design shows. */
.testimonials__pagination {
  display: flex;
  justify-content: center;
  gap: var(--gap-2xs);
  width: auto;
  position: static;
  padding: var(--gap-2xs);
}
.testimonials__pagination .swiper-pagination-bullet {
  width: 80px;
  height: 4px;
  margin: 0 !important;
  border-radius: 0;
  background: var(--color-line);
  opacity: 1;
}
.testimonials__pagination .swiper-pagination-bullet-active { background: var(--color-primary); }

@media (max-width: 767px) {
  /* 52315:11292 keeps 32 of padding and gap on the 428 frame — --gap-sm is 24
     and --gap-md drops to 24 down here, which was narrowing the card and
     letting the quote wrap short of the 8 lines the frame sets. */
  .quote { padding: var(--gap-lg); gap: var(--gap-lg); }
  .testimonials__pagination .swiper-pagination-bullet { width: 52px; }
}

/* --------------------------------------------------------------------------
   10 · Resources — Figma 52313:6601 / 52316:15101
   -------------------------------------------------------------------------- */
.resources__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}

/* Figma strokes this photo (52313:6612 is `stroke #DEE3F3 w:1`). A plain border
   is no use: clip-path clips the border box exactly on the polygon, so the rule
   is cut away on every edge, diagonal included. It's drawn as two stacked
   clipped layers instead — the line colour on the card, the photo inset 1px
   over it — the same idiom as .why-card. --card-img-h keeps the two in step. */
.article-card {
  position: relative;
  --card-img-h: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--card-img-h);
  background: var(--color-line);
  clip-path: var(--notch-path);
}

/* The 1px margin is what reveals the layer beneath, and it adds back the 2px
   the box loses, so the photo still occupies exactly --card-img-h. `position`
   puts it above the ::before without needing a stacking context. */
.article-card__img {
  position: relative;
  width: calc(100% - 2px);
  height: calc(var(--card-img-h) - 2px);
  margin: 1px;
  object-fit: cover;
  clip-path: var(--notch-path);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-xs);
  flex: 1;
}

.article-card__title {
  flex: 1;
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
}

/* Cards 1 and 3 carry narrower text boxes in Figma (264 / 258 of the 313
   column), which is what pushes those two titles onto a fourth line and sets
   the row height. Reproduced so the section matches the frame. */
.article-card:nth-child(1) .article-card__title { max-width: 264px; }
.article-card:nth-child(3) .article-card__title { max-width: 258px; }

@media (max-width: 1023px) {
  .resources__grid { grid-template-columns: repeat(2, 1fr); }
  .article-card { --card-img-h: 300px; }
}

/* The mobile frame keeps all four articles on one line and lets the row run
   off the edge, so it becomes a horizontal scroller — CSS only, no Swiper:
   there are no arrows, pagination or slide logic here, just a scroll strip. */
@media (max-width: 767px) {
  .resources__grid {
    display: flex;
    grid-template-columns: none;
    gap: var(--gap-xs);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* bleed to the screen edge, then re-inset so the last card clears it */
    margin-right: calc(var(--pad-x) * -1);
    padding-right: var(--pad-x);
    padding-bottom: 4px;
  }
  .article-card {
    flex: 0 0 min(313px, 82%);
    scroll-snap-align: start;
  }
  .article-card { --card-img-h: 380px; }
}

/* Both 428 frames (52316:15111 homepage, 52315:6709 resource hub) tighten the
   card to a 16px gap and the body to 14. */
@media (max-width: 767px) {
  .article-card { gap: var(--gap-xs); }
  .article-card__body { gap: 14px; }
}

/* --------------------------------------------------------------------------
   Article index grid — Figma 52313:10278 (Guides & Articles)
   The same .article-card laid out as a paginated index rather than a strip:
   four to a row, columns 16 apart but rows 40 (52313:10278 is `vert gap:40`
   holding two `hor gap:16` rows).
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap-xs);
  row-gap: var(--gap-lg);
  /* Equal rows so every card matches the tallest in its row and the Read More
     links line up, the way the frame's 596px row frames do. */
  grid-auto-rows: 1fr;
}

/* The two longest titles carry narrower text boxes in Figma — 264px on
   "Understanding Polyurethane…" and 258px on "PU vs PE…" — which is what wraps
   them onto a fourth line and sets each row's height. The box travels with the
   text layer, not the position, so row 2 puts them on cards 5 and 6. */
.article-grid .article-card:nth-child(6) .article-card__title { max-width: 264px; }
.article-grid .article-card:nth-child(5) .article-card__title { max-width: 258px; }

@media (max-width: 1023px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

/* One column on the 428 frame (52314:15999), titles running the full 380 */
@media (max-width: 767px) {
  .article-grid {
    grid-template-columns: 1fr;
    row-gap: var(--gap-xs);
    grid-auto-rows: auto;
  }
  .article-grid .article-card:nth-child(n) .article-card__title { max-width: none; }
  /* The frame keeps the two rows as separate stacks 32 apart, so every fifth
     card opens a new group — 16 of row gap plus 16 of margin. */
  .article-grid .article-card:nth-child(4n + 5) { margin-top: var(--gap-xs); }
}

/* --------------------------------------------------------------------------
   11 · CTA band — Figma 52313:6651 / 52316:15093
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: var(--section-py);
  color: var(--color-text-invert);
  isolation: isolate;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 58, 0.6);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  text-align: center;
}

.eyebrow--light { color: var(--color-text-invert); }

.cta-band__title {
  max-width: 692px;
  color: var(--color-text-invert);
}

.cta-band__lead {
  max-width: 700px;
  color: var(--color-text-invert);
}

.cta-band__btn { margin-top: var(--gap-lg); }

/* --------------------------------------------------------------------------
   Video lightbox
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gap-sm);
  background: rgba(4, 16, 58, 0.85);
}
.modal.is-open { display: flex; }

.modal__dialog {
  position: relative;
  width: min(1100px, 100%);
}

.modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-invert);
}

.modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal__frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__frame iframe:not([src]) { display: none; }

.modal__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-invert);
  font-size: var(--fs-body-md);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Category filter tabs — Figma 52313:6733
   -------------------------------------------------------------------------- */
/* One rule under the whole row — Figma sets only a bottom stroke, not a box. */
.catalogue__filters {
  display: flex;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: var(--gap-2xl);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 117px;
  background-color: var(--color-bg);
}

@media (max-width: 1023px) {
  .catalogue__filters {
    top: 100px;
  }
}

.catalogue__filter {
  flex: none;
  padding: var(--gap-xs) var(--gap-md);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
  white-space: nowrap;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.catalogue__filter:hover { background: var(--color-band); }

/* The tabs jump to their section; the dark block marks whichever is in view */
.catalogue__filter[aria-current="true"] {
  background: var(--color-text);
  color: var(--color-text-invert);
}

.catalogue__group,
#catalogue {
  scroll-margin-top: calc(var(--header-h) + var(--gap-sm));
}

/* --------------------------------------------------------------------------
   Category groups — Figma 52313:6744
   -------------------------------------------------------------------------- */
.catalogue__groups {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl);
}

.catalogue__group + .catalogue__group {
  padding-top: var(--gap-2xl);
  border-top: 1px solid var(--color-line);
}
.catalogue__group[hidden] { display: none; }

.catalogue__group-head {
  display: flex;
  align-items: flex-end;
  gap: var(--gap-2xs);
  margin-bottom: var(--gap-lg);
}

.catalogue__group-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.catalogue__group-title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.catalogue__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xs);
}

/* --------------------------------------------------------------------------
   Spec card — Figma 52313:6752
   Photo + name on the left, the spec table on the right, split by a hairline.
   -------------------------------------------------------------------------- */
.spec-card {
  display: flex;
  align-items: stretch;
  min-height: 354px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}

.spec-card__main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--color-line);
}

.spec-card__media {
  height: 260px;   /* Figma sets no padding — object-contain does the insetting */
}
.spec-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spec-card__name {
  padding: var(--gap-xs);
  background: var(--color-band);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* No gap: Figma spaces the list and the "More Details" link purely with
   space-between inside the fixed 354px card, and a minimum gap here pushed the
   card 23px past the frame. */
.spec-card__specs {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gap-xs);
}

.spec-card__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-card__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
}
.spec-card__row + .spec-card__row {
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

.spec-card__label {
  font-weight: 400;
  color: var(--color-text);
}
.spec-card__value {
  font-weight: 600;
  color: var(--color-primary);
}

/* Underlined text link with a small arrow — dark rather than the red .btn--link */
.spec-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.spec-card__more span {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-ink);
}
.spec-card__more .icon { width: 18px; height: 18px; }
.spec-card__more:hover { opacity: 0.7; }

@media (max-width: 1279px) {
  .catalogue__grid { grid-template-columns: 1fr; }
}

/* Below the tablet break the mobile frame stacks each card — photo and name on
   top, specs under — and runs the row off the screen edge as a scroller,
   matching the projects and resources strips. */
@media (max-width: 767px) {
  .catalogue__grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: calc(var(--pad-x) * -1);
    padding-right: var(--pad-x);
    padding-bottom: 4px;
  }

  /* 360px is the mobile frame's card width; the calc keeps the same 20px of
     next-card peek on narrower screens instead of over-shooting it. */
  .spec-card {
    flex: 0 0 min(360px, calc(100% - 44px));
    flex-direction: column;
    min-height: 0;
    scroll-snap-align: start;
  }
  .spec-card__main {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }
  .spec-card__media { height: 240px; }
  .spec-card__name { padding: 14px; }
  .spec-card__specs {
    flex: 0 0 auto;
    gap: var(--gap-sm);
    padding: 14px;
  }

  .catalogue__group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
  }
  /* 52316:14149 keeps 48 either side of each divider on the 428 frame — the
     group ends at 917, the rule sits at 965 and the next group opens at 1013.
     --gap-3xl is the token that still reads 48 down here; --gap-md gives 24. */
  .catalogue__groups { gap: var(--gap-3xl); }
  .catalogue__group + .catalogue__group { padding-top: var(--gap-3xl); }
  .catalogue__filter { padding: 14px var(--gap-sm); font-weight: 600; }
}

/* --------------------------------------------------------------------------
   Split hero — Figma 52313:7649
   Same navy field and shield mark as .page-hero, but the copy shares the row
   with a photo that sets the height, and a tab bar closes the section.
   -------------------------------------------------------------------------- */
/* 1300 content = 752 copy + 16 gap + 532 photo, exactly as the frame splits it */
.product-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  position: relative;
}

.product-hero__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding-block: var(--section-py);
  padding-right: var(--gap-lg);
}

/* Figma holds the breadcrumb and the h1 in one 121px box, spaced apart */
.product-hero__heading {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.product-hero__title { font-size: var(--fs-h1); }

/* The trailing crumb is the page you are on — dimmed rather than linked */
.product-hero .breadcrumb__current { opacity: 0.5; }

/* The 80% comes from .page-hero .section-lead in common.css */
.product-hero__lead { max-width: 692px; }

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.product-hero__img {
  flex: none;
  width: 532px;
  height: 544px;
  object-fit: cover;
}

/* -- Tab bar ------------------------------------------------------------- */
/* The rule runs the full artboard width while the tabs sit on the content
   column, so the border lives on the outer element and the container insets
   the tabs — not the other way round. */
.product-tabs {
  border-top: 1px solid var(--color-line-invert);
  padding-top: var(--gap-xs);
}
/* The Specifications hero sits the bar straight under the rule — 52313:9938
   is 62 tall with no top padding, where the Overview bar (52313:7667) is 78. */
.product-tabs--flush { padding-top: 0; }

.product-tabs__list {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.product-tab {
  flex: none;
  padding: var(--gap-xs) var(--gap-md);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-text-invert);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.product-tab:hover { background: var(--overlay-white-10); }

.product-tab[aria-selected="true"] {
  background: var(--color-bg);
  color: var(--color-ink);
}

/* Without JS the tabs can't switch, so show every panel rather than stranding
   two of them behind `hidden`. The .js class is set in <head>, so no flash. */
html:not(.js) [role="tabpanel"][hidden] { display: block; }

@media (max-width: 1279px) {
  .product-hero__img { width: 44%; height: 480px; }
}

/* The mobile frame stacks the copy over the photo and drops the tab bar to a
   sideways scroller. Figma 52315:5812 */
@media (max-width: 767px) {
  .product-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .product-hero__text {
    gap: var(--gap-lg);           /* 32 on mobile */
    padding-block: var(--gap-xl); /* 40 on mobile */
    /* Figma insets the copy by 32px but lets the button row use the full
       column, so the padding sits on the text rather than the flex parent. */
    padding-right: 0;
  }
  .product-hero__heading,
  .product-hero__lead { padding-right: var(--gap-md); }
  .product-hero__img {
    width: 100%;
    height: 400px;
  }
  /* The label stays 18 on mobile — 52315:5837 (overview) and 52315:5127
     (specifications) are both 18/27, so only the padding tightens. */
  .product-tab { padding: 14px var(--gap-sm); }
}

/* --------------------------------------------------------------------------
   Gallery band — Figma 52313:7674
   Big product render with a thumbnail row on the left, the write-up right.
   -------------------------------------------------------------------------- */
.gallery__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-xs);
}

.gallery__media {
  flex: none;
  width: 532px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.gallery__stage {
  height: 544px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}
.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery__thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery__thumb {
  width: 100px;
  height: 100px;
  padding: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  opacity: 0.3;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery__thumb:hover { opacity: 0.7; }

.gallery__thumb[aria-current="true"] {
  border-color: var(--color-primary);
  opacity: 1;
}

.gallery__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding-block: var(--gap-sm);
  padding-left: var(--gap-lg);
}

.gallery__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.gallery__copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-text);
}

.gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

@media (max-width: 1279px) {
  .gallery__media { width: 42%; }
  .gallery__stage { height: 460px; }
}

/* Stacked full-width, matching Figma 52316:13835 */
@media (max-width: 767px) {
  .gallery__inner {
    flex-direction: column;
    gap: var(--gap-sm);
  }
  .gallery__media {
    width: 100%;
    gap: var(--gap-xs);
  }
  .gallery__stage { height: 380px; }
  .gallery__body {
    padding-left: 0;
    padding-block: var(--gap-xs);
    gap: var(--gap-lg);           /* 32 on mobile */
  }
}

/* --------------------------------------------------------------------------
   Spec panels — Figma 52313:7991 (liner) / 52313:8332 (technical)
   The other two tabs share one shape: a centred 1080px white card on the band,
   holding a 40px title, a dark rule and then either a tick list or a two-column
   table. Only the list inside differs.
   -------------------------------------------------------------------------- */
.spec-panel__card {
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--gap-2xl);
  background: var(--color-bg);
  /* 52313:7992 / 52313:8333 are both `stroke #DEE3F3 w:1` */
  border: 1px solid var(--color-line);
}

.spec-panel__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

/* 52313:7994 is a zero-height LINE: the colour that shows is its stroke
   (#DEE3F3), not the fill the node also carries — a fill on a line with no area
   paints nothing. This was reading the fill and coming out heading-ink dark. */
.spec-panel__rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--color-line);
}

/* -- Tick list (Polyurethane Liner Specification) ------------------------ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-text);
}
.check-list .icon { width: 24px; height: 24px; }

.check-listul ul {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.check-listul ul li {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: var(--gap-xs);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-text);
}
.check-listul ul li:before {
  content: '';
  background-image: url(../img/check-box.svg);
  background-size: 22px;
  min-width: 22px;
  min-height: 22px;
  background-repeat: no-repeat;
}

/* -- Spec table (Technical Specifications) ------------------------------- */
/* Figma spaces the rows with a 24px gap either side of a full-width rule, so
   the 48px between rows is gap + padding with the border on the padding edge. */
.spec-table {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.spec-table__row {
  display: flex;
  gap: var(--gap-md);
}
/* Figma models the divider as a zero-height Line with a stroke, so the 24px
   either side of it is 24 + 24. A real 1px border has to come out of the
   padding or every row pushes the card 1px taller than the frame. */
.spec-table__row + .spec-table__row {
  padding-top: calc(var(--gap-sm) - 1px);
  border-top: 1px solid var(--color-line);   /* 52313:8340, same LINE stroke */
}

.spec-table__label {
  flex: 0 0 350px;
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-text);
}

.spec-table__value {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-primary);
}

@media (max-width: 1023px) {
  .spec-table__label { flex: 0 0 260px; }
}

/* The 428 frames tighten the card to 32px of padding and stack each table row
   label-over-value. Figma 52316:13427 / 52316:13701 */
@media (max-width: 767px) {
  .spec-panel__card { padding: var(--gap-lg); }   /* 32 on mobile */
  .check-list { gap: 14px; }
  .check-list li { gap: 14px; }
  .spec-table { gap: var(--gap-xs); }
  .spec-table__row {
    flex-direction: column;
    gap: 14px;
  }
  .spec-table__row + .spec-table__row { padding-top: calc(var(--gap-xs) - 1px); }
  .spec-table__label { flex: none; }
}

/* --------------------------------------------------------------------------
   Similar Products — Figma 52313:7691
   The Product Range .spec-card, paged two at a time. Note the section runs on
   40px of padding rather than the usual 80.
   -------------------------------------------------------------------------- */
.similar { padding-block: var(--gap-lg); }

.similar__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-2xs);
  margin-bottom: var(--gap-lg);
}

.similar__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

/* Swiper sizes the slide; the card fills it and keeps its designed height */
/* Bleeds to the screen edge like Featured Projects and Testimonials, so the
   third card is cut by the viewport instead of vanishing at the grid edge. */
.similar { overflow: hidden; }
.similar__swiper { overflow: visible; }
.similar__swiper .spec-card { height: 100%; }

.similar .swiper-wrapper .swiper-slide {
    height: auto;
}

@media (max-width: 767px) {
  .similar { padding-block: var(--gap-lg); }        /* 32 on mobile */
  .similar__head { margin-bottom: var(--gap-xl); }  /* 40 on mobile */
}

/* --------------------------------------------------------------------------
   Product spec list — the same .spec-card grid as Product Range, without the
   category grouping. Figma 52313:7307
   -------------------------------------------------------------------------- */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xs);
}

/* The Figma frame shows the last card with a red title — the hover state */
.spec-card__main:hover .spec-card__name,
.spec-card:hover .spec-card__name {
  color: var(--color-primary);
}
.spec-card__name { transition: color 0.2s ease; }

@media (max-width: 1279px) {
  .spec-list { grid-template-columns: 1fr; }
}

/* This template's mobile frame stacks the spools full-width as a plain list —
   unlike the Product Range catalogue, which scrolls sideways. Scoped to
   .spec-list so .catalogue__grid keeps its own behaviour. */
@media (max-width: 767px) {
  .spec-list {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 14px;
  }

  /* The Oil & Gas frame (52333:15545) is a `row gap:14` of 360-wide cards, so
     that template opts back into the sideways scroller. */
  .spec-list--scroll {
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  /* This row is clipped at the container rather than bleeding to the screen
     edge like the Product Range catalogue, so the card keeps the frame's full
     360 and only the gap shows of the next one. */
  .spec-list--scroll .spec-card {
    flex-basis: min(360px, calc(100% - 20px));
  }
}

/* --------------------------------------------------------------------------
   Applications & Use cases — Figma 52313:7480
   -------------------------------------------------------------------------- */
.usecases__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 748px;
  margin-bottom: var(--gap-lg);
}

.usecases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}

.usecase-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.usecase-card__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--color-line);
  clip-path: var(--notch-path);
}

.usecase-card__caption {
  font-family: var(--font-body);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

@media (max-width: 1023px) {
  .usecases__grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-card__img { height: 260px; }
}

/* Stacked full-width on mobile, matching Figma 52316:13856 */
@media (max-width: 767px) {
  .usecases__head {
    gap: var(--gap-xs);
    margin-bottom: var(--gap-md);
  }
  .usecases__grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .usecase-card {
    gap: var(--gap-xs);
  }
  .usecase-card__img { height: 300px; }
}

/* --------------------------------------------------------------------------
   Project grid — Figma 52313:10087
   Two 642px cards per row. The frame spaces the columns 16 apart but the rows
   48, so the two gaps are set separately.
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gap-xs);
  row-gap: 48px;
}

/* The paginator below the grid is the shared component in common.css §14 —
   Projects and Guides & Articles draw the same 52313:10157 instance. */

/* The 428 frame runs a single column of 400px cards on a uniform 16 gap */
@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: 1fr;
    row-gap: var(--gap-xs);
  }
  .project-grid .project-card { height: 400px; }
}

/* --------------------------------------------------------------------------
   Inline section head — Figma 52313:9800 / 52313:9831 / 52313:9877
   Title on the left half, CTA hugging the right, both sitting on the baseline.
   -------------------------------------------------------------------------- */
.section-head--inline {
  gap: var(--gap-sm);
}
.section-head--inline .section-title {
  flex: 0 1 638px;   /* half the content grid, as the frame sets it */
}

/* The 428 frames stack the pair and left-align the CTA */
@media (max-width: 767px) {
  .section-head--inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head--inline .section-title { flex: none; }
}

/* --------------------------------------------------------------------------
   Insights, Specs & Guidance — Figma 52313:9834
   The homepage .article-card, but laid out as a grid that stacks rather than
   the sideways scroller the homepage frame calls for.
   -------------------------------------------------------------------------- */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}

@media (max-width: 1023px) {
  .insights__grid { grid-template-columns: repeat(2, 1fr); }
}
/* Cards 1 and 3 inherit home.css's narrow 264/258 title boxes, which this
   frame also uses at 1440 — but its 428 frame (52315:6714) runs the title the
   full 380. Matched to the nth-child specificity so it actually wins. */
@media (max-width: 767px) {
  .insights__grid { grid-template-columns: 1fr; }
  .insights__grid .article-card:nth-child(n) .article-card__title {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Product Specifications — Figma 52313:9880
   White tile: product render, hairline, then the name and a text link. Figma
   draws the first tile in its hover state — a veil over the render with a
   "Download Spec Sheet" button centred on it.
   -------------------------------------------------------------------------- */
.specs { background: var(--color-band); }

.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}

.spec-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}

.spec-tile__media {
  position: relative;
  height: 320px;
  border-bottom: 1px solid var(--color-line);
}
/* Cut-out renders on a plain field — never crop them */
.spec-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spec-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-card);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Figma pins the button's top edge at 160 of the 320 media box — a touch below
   the midpoint — so only the X axis is translated. */
.spec-tile__download {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  transform-origin: top center;
  /* `left: 50%` caps the shrink-to-fit width at half the tile, which wrapped
     the label onto two lines — the frame's button is a single 227px row. */
  white-space: nowrap;
  /* Above the veil: the ::after is the media's last child, so without this it
     paints over the button and tints the red toward navy. */
  z-index: 1;
  padding: 12px 14px 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.spec-tile:hover .spec-tile__media::after,
.spec-tile:focus-within .spec-tile__media::after { opacity: 1; }
.spec-tile:hover .spec-tile__download,
.spec-tile:focus-within .spec-tile__download {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.spec-tile__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-xs);
  padding: var(--gap-xs);
}

/* Only the hovered tile underlines this link: 52313:9886 (the tile Figma draws
   hovered) carries a bottom stroke, 52313:9894/9903/9912 do not. Toggling the
   colour rather than the border keeps the box from shifting on hover. */
.spec-tile__link { border-bottom-color: transparent; }
.spec-tile:hover .spec-tile__link,
.spec-tile:focus-within .spec-tile__link {
  border-bottom-color: var(--color-primary);
}

.spec-tile__name {
  font-family: var(--font-body);
  font-size: var(--fs-body-xl);
  font-weight: 700;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* Specifications & Downloads runs eight tiles as two rows — the frame spaces
   the columns 16 apart but the rows 24 (52313:9947 is col gap:24 of row gap:16). */
/* `1fr` rows so both rows match the tallest tile — the frame has all eight at
   468, but auto rows let the second (single-line names) collapse shorter. */
.specs__grid--rows {
  row-gap: var(--gap-sm);
  grid-auto-rows: 1fr;
}

@media (max-width: 1023px) {
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
}
/* Stacked full-width on the 428 frame (52315:6755), with the tile body on the
   frame's 14px padding and gap rather than 16. */
@media (max-width: 767px) {
  .specs__grid { grid-template-columns: 1fr; }
  .spec-tile__body {
    gap: 14px;
    padding: 14px;
  }
}

/* --------------------------------------------------------------------------
   "Our Solution" intro row — Figma 52313:8852 (Oil & Gas)
   Copy on the left, a 642×420 notched photo on the right. One row only, so it
   keeps its own class rather than reusing the alternating .solution-row.
   -------------------------------------------------------------------------- */
.solution-intro__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

.solution-intro__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding-right: var(--gap-2xl);
}
/* The paragraphs stretch to the column, but a CTA hugs its label — Figma has
   the button as w:HUG while every text child is self:STRETCH. */
.solution-intro__text > .btn { align-self: flex-start; }

.solution-intro__media {
  flex: none;
  width: 642px;
  height: 420px;
  object-fit: cover;
  clip-path: var(--notch-path);
}

/* Mirrored variant — photo left, copy right. Figma 52313:9371 (Why Polyguard) */
.solution-intro__inner--flip { flex-direction: row-reverse; }
.solution-intro__inner--flip .solution-intro__text {
  padding-right: 0;
  padding-left: var(--gap-2xl);
}

@media (max-width: 1279px) {
  .solution-intro__media { width: 48%; height: 380px; }
  .solution-intro__text { padding-right: var(--gap-xl); }
  .solution-intro__inner--flip .solution-intro__text {
    padding-right: 0;
    padding-left: var(--gap-xl);
  }
}

/* Stacked copy-over-photo on mobile, matching Figma 52316:13389 */
@media (max-width: 767px) {
  .solution-intro__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--gap-sm);
  }
  /* The flipped row leads with the photo on mobile too — Figma 52315:12164
     lists the image before the copy, where the un-flipped Oil & Gas row
     (52316:13389) puts the copy first. */
  .solution-intro__inner--flip { flex-direction: column-reverse; }
  .solution-intro__text,
  .solution-intro__inner--flip .solution-intro__text {
    padding-right: 0;
    padding-left: 0;
  }
  .solution-intro__media {
    width: 100%;
    height: 340px;
  }
  /* The 428 frames don't agree on one photo height for this row: 340 on Oil &
     Gas and Why Polyguard, 420 on the two upright About Us rows. */
  .solution-intro__media--tall { height: 420px; }
}

/* --------------------------------------------------------------------------
   Alternating solution rows — Figma 52313:8651
   600×400 photo one side, copy the other, hairline between each pair. Every
   other row swaps sides; the notch stays bottom-right throughout.
   -------------------------------------------------------------------------- */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.solution-row {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

/* Rules sit between rows only — the section supplies the outer spacing */
.solution-row + .solution-row {
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--color-line);
}

.solution-row__media {
  flex: none;
  width: 600px;
  height: 400px;
  object-fit: cover;
  clip-path: var(--notch-path);
}

.solution-row__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-md);
  padding-left: var(--gap-2xl);
}

/* Even rows mirror: copy left, photo right */
.solution-row--flip { flex-direction: row-reverse; }
.solution-row--flip .solution-row__body {
  padding-left: 0;
  padding-right: var(--gap-2xl);
}

.solution-row__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.solution-row__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.solution-row__copy {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* The photo can't hold 600px once the copy column gets tight */
@media (max-width: 1279px) {
  .solution-row__media { width: 46%; height: 360px; }
  .solution-row__body { padding-left: var(--gap-xl); }
  .solution-row--flip .solution-row__body { padding-right: var(--gap-xl); }
}

/* The 428 frame stacks every row photo-first — including the flipped one —
   with a 24px gap and 32px between rows. Figma 52316:12483 */
@media (max-width: 767px) {
  /* The list gap and the rule offset stay on --gap-lg, which is already 40 on
     desktop and 32 on mobile — matching the frame's col gap:32. They are not
     overridden here; --gap-md would have quietly made them 24. */
  .solution-row,
  .solution-row--flip {
    flex-direction: column;
    align-items: stretch;
    gap: var(--gap-sm);
  }
  .solution-row__media {
    width: 100%;
    height: 340px;
  }
  .solution-row__body,
  .solution-row--flip .solution-row__body {
    padding-left: 0;
    padding-right: 0;
    gap: var(--gap-sm);
  }
}

/* --------------------------------------------------------------------------
   "Why It Matters" cards — Figma 52313:9203
   Four equal cards on the dark navy field, each notched bottom-right with a
   hairline outline.
   -------------------------------------------------------------------------- */
.why-matters {
  background: var(--color-navy);
  color: var(--color-text-invert);
}

.why-matters .section-title { color: var(--color-primary-tint); }
.why-matters .section-lead { color: var(--color-text-invert); }

/* Centred, not left-aligned: the container is cross:CENTER and all three texts
   are text:CENTER. 798px is the frame's text column, which is what sets the
   279px head height. 279 = 22 + 24 + 128 + 24 + 81, so the default 24px gap
   between the three lines is already right. */
.why-matters__head {
  max-width: 798px;
  margin-inline: auto;
  margin-bottom: var(--gap-2xl);
  text-align: center;
}

.why-matters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xs);
}

/* A clip-path can't carry a border along its diagonal, so the hairline is two
   stacked clipped layers: the outline colour, then the section colour inset by
   1px. Keeps the notch and the rule in one shape with no extra markup. */
.why-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--gap-md);
}
.why-card::before,
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--notch-path);
}
.why-card::before { background: var(--color-line-invert); }

/* The inner layer has to be opaque or the hairline colour bleeds through the
   whole card, so the frame's #D9D9D9 veil rides on top of the navy as a second
   background layer rather than replacing it. */
.why-card::after {
  inset: 1px;
  background-color: var(--color-navy);
  background-image: linear-gradient(var(--surface-veil), var(--surface-veil));
  transition: background-image 0.2s ease;
}
.why-card:hover::after {
  background-image: linear-gradient(var(--surface-veil-hover), var(--surface-veil-hover));
}

.why-card__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.why-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding-right: var(--gap-2xs);
}

.why-card__title {
  font-family: var(--font-body);
  font-size: var(--fs-body-xl);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-text-invert);
}

.why-card__copy {
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: var(--lh-body);
  opacity: 0.8;
}

@media (max-width: 1023px) {
  .why-matters__grid { grid-template-columns: repeat(2, 1fr); }
}

/* The 428 frame (52316:12573) turns each card on its side: a 48px icon beside
   the copy on 24px of padding, one card per row. */
@media (max-width: 767px) {
  .why-matters__grid { grid-template-columns: 1fr; }
  .why-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-lg);        /* 32 on mobile */
    padding: var(--gap-sm);
  }
  .why-card__icon { width: 48px; height: 48px; }
}

/* --------------------------------------------------------------------------
   Certifications & Compliance — Figma 52313:9381
   Copy block, then a row of four 106px marks spread across the content grid.
   -------------------------------------------------------------------------- */
.certifications { background: var(--color-band); }

/* Same centred head as "Why It Matters" — 862px box, all three lines centred */
.certifications__head {
  max-width: 862px;
  margin-inline: auto;
  margin-bottom: var(--gap-2xl);
  text-align: center;
}
.certifications__head .section-head__text { gap: var(--gap-sm); }

/* The marks sit centred on a fixed 120px gutter (52313:9387), not spread
   across the full content grid — space-between pushed them to the edges. */
.certifications__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
}

/* Four 106px marks plus three 120px gutters need 784px, more than the content
   column has below ~1280 — so the gutter tightens instead of overflowing. */
@media (max-width: 1279px) {
  .certifications__list { gap: min(120px, calc((100% - 424px) / 3)); }
}

.certifications__list img {
  width: 106px;
  height: 106px;
  object-fit: contain;
}

/* Two up on mobile — 170-wide cells on a 40px gutter. Figma 52315:12158 */
@media (max-width: 767px) {
  .certifications__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-xl);        /* 40 on mobile */
  }
  .certifications__list img {
    width: 100%;
    height: 106px;
  }
}

/* The only hero in the file that centres — 52313:10179 and 52314:16526 are both
   `cross: CENTER` with the title set CENTER, where every other inner page runs
   the left-aligned split head. */
.case-hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  text-align: center;
}
/* The trail shrinks to its content once centred, so a long one wraps centred
   rather than ragged against the left edge. */
.case-hero__head .breadcrumb { justify-content: center; }

/* --------------------------------------------------------------------------
   Body — Figma 52313:10189
   A 900px column centred on the grid, blocks 64 apart.
   -------------------------------------------------------------------------- */
.case-body {
  padding-block: var(--gap-2xl);
}

.case-body__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2xl);
}

/* Everything sits on the reading column except the gallery */
.case-body__inner > * {
  width: 100%;
  max-width: 900px;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.case-block__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.case-block__copy {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* The opening paragraph is set semibold and sits under the client mark.
   The mark shows unfiltered here: Figma masks it with #E22731 (52313:10193),
   which is the asset's own colour — elsewhere it's filtered white on the
   project cards and grey in the client strip. */
.case-intro__logo {
  width: auto;
  height: 64px;
  object-fit: contain;
  margin-right: auto;
}
.case-intro__copy { font-weight: 600; color: var(--color-ink); }

.case-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--color-line);
}

/* -- Check lists --------------------------------------------------------- */
/* The lead-in line belongs to the list, not the block — Figma keeps it inside
   the 226px list frame on a 16px gap, not the block's 40. */
.case-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.case-list__items {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.case-list__intro { font-weight: 400; }

/* Centred against the text, matching the Overview liner list — both frames
   are cross:CENTER (52313:10202 / 52313:7996). */
.case-list li {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}
.case-list li strong {
  display: contents;
}
.case-list li:before {
  content: '';
  background-image: url(../img/check-box.svg);
  background-size: 22px;
  min-width: 22px;
  min-height: 22px;
  background-repeat: no-repeat;
}
.case-list .icon { width: 24px; height: 24px; }

/* The Results list is set semibold where the challenges list is regular */
.case-list--strong .case-list__items li { font-weight: 600; }

/* -- Gallery ------------------------------------------------------------- */
/* The only block that breaks the reading column — three 600px frames on the
   full 1300 grid, so it pages sideways. */
.case-gallery {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* As a flex item the track would size to its content — the images' natural
   1200px — instead of the 1300 column, so Swiper measured a container five
   times too wide. min-width:0 lets it shrink to the column.
   The frame doesn't clip the strip (clipsContent: false, images running to
   1832 of a 1300 box), so it bleeds off the right edge instead. */
.case-gallery__swiper {
  width: auto;
  min-width: 0;
  /* Swiper's own CSS sets margin-inline: auto, and an auto cross-margin stops
     a flex item stretching — so it sized to content again until this reset. */
  margin-left: 0;
  margin-right: calc(var(--pad-x) * -1);
}

/* Fixed frames rather than a fraction of the container, so the bleed only
   changes how much of the next one shows. */
.case-gallery__swiper .swiper-slide { width: 600px; }

.case-gallery__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Centred on the content column — 52313:10226 sits at dx=602 of 1300 */
.case-gallery__nav {
  display: flex;
  justify-content: center;
}

/* -- Pull quote ---------------------------------------------------------- */
.case-quote {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
  background: var(--color-bg);
  background-image: linear-gradient(var(--color-band), var(--color-band));
  border: 1px solid var(--color-line);
}

.case-quote__icon {
  flex: none;
  width: 48px;
  height: 48px;
}

.case-quote__text {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

@media (max-width: 1023px) {
  .case-gallery__img { height: 400px; }
}

/* The 428 frame (52314:16446) runs its own rhythm: 48 of block padding and
   between blocks, 32 inside them — none of which the tokens give at mobile. */
@media (max-width: 767px) {
  .case-body { padding-block: 48px; }
  .case-body__inner { gap: 48px; }
  .case-block { gap: var(--gap-lg); }      /* 32 on mobile */
  .case-intro__logo { height: 48px; }
  .case-gallery__img { height: 400px; }   /* 52314:16479 is 468 = 400 + 24 + 44 */
  .case-gallery__swiper .swiper-slide { width: 360px; }
  .case-quote {
    flex-direction: column;
    gap: var(--gap-xs);
    padding: var(--gap-lg);                /* 32 on mobile */
  }
  /* the mark stays 48 on mobile — only the layout stacks */
}

/* --------------------------------------------------------------------------
   Mission / Vision — Figma 52313:9575
   Two equal cells on the light band, divided by hairlines. The section itself
   carries no vertical padding; the cells do.
   -------------------------------------------------------------------------- */
.split-band {
  background: var(--color-band);
  padding-block: 0;
  border-top: 1px solid var(--color-line);
}

.split-band__inner { display: flex; }

.split-band__cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--gap-lg);
  /* The frame draws a rule between the cells and one closing the grid */
  border-right: 1px solid var(--color-line);
}
.split-band__cell:last-child {
  border-right: 0;
}

.split-band__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.split-band__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.split-band__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
}

.split-band__copy {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* Stacked with a horizontal rule between, 48px icon, 32px of padding and none
   on the sides — the section's own padding handles that. Figma 52315:6840 */
@media (max-width: 767px) {
  .split-band__inner { flex-direction: column; }
  .split-band__cell {
    gap: var(--gap-lg);            /* both 32 on mobile — --gap-md is only 24 */
    padding: var(--gap-lg) 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }
  .split-band__cell:last-child { border-bottom: 0; }
  .split-band__icon { width: 48px; height: 48px; }
}

/* --------------------------------------------------------------------------
   The prose-and-photo row on the dark field — Figma 52313:9608
   Same .solution-intro as Oil & Gas, inverted, with a CTA under the copy.
   -------------------------------------------------------------------------- */
.solution-intro--dark { background: var(--color-navy); }
.solution-intro--dark .section-title,
.solution-intro--dark .section-lead { color: var(--color-text-invert); }

/* The frame spaces the button 32 from the copy while the copy itself runs on
   24, so the button needs its own level rather than sharing the text gap. */
.solution-intro__text--actions { gap: var(--gap-md); }
.solution-intro__copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* --------------------------------------------------------------------------
   Team & Expertise — Figma 52313:9619
   Three portrait cards on the light band, paged by the shared arrow pair.
   Note the 64px block padding rather than the usual 80.
   -------------------------------------------------------------------------- */
.team {
  background: var(--color-band);
  padding-block: var(--gap-2xl);
}

.team__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}

/* 52313:9626 strokes the portrait `#DEE3F3 w:1`. clip-path clips the border box
   on the polygon, so a border would be cut away — the hairline is two stacked
   clipped layers, as on .article-card (home.css) and .why-card. */
.team-card {
  position: relative;
  --card-img-h: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--card-img-h);
  background: var(--color-line);
  clip-path: var(--notch-path);
}

.team-card__img {
  position: relative;
  width: calc(100% - 2px);
  height: calc(var(--card-img-h) - 2px);
  margin: 1px;
  object-fit: cover;
  clip-path: var(--notch-path);
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.team-card__name {
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
}

.team-card__role {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-primary);
}

.team__nav {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--gap-lg);
}

@media (max-width: 767px) {
  .team { padding-block: 48px; }
  /* 52315:6890 keeps the block gaps at 32 on mobile, not --gap-md's 24 */
  .team__head { margin-bottom: var(--gap-lg); }
  .team-card { gap: var(--gap-xs); }
  .team__nav { margin-top: var(--gap-lg); }
}

@media (max-width: 599px) {
    .team .container {
        padding-right: 0;
    }
    .team__nav {
        padding-right: 24px;
    }
}

/* --------------------------------------------------------------------------
   Contact band — Figma 52313:10387 / 52314:15940
   Two equal cells split by a hairline. Full-bleed with only a top border
   (the node is `border-t`), so the divider is the only interior rule.
   -------------------------------------------------------------------------- */
.contact-band {
  background: var(--color-band);
  border-top: 1px solid var(--color-line);
}

.contact-band__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* The divider is a real 1px column edge rather than a border on the cell, so
   it can't double up where the two cells meet. */
.contact-card + .contact-card {
  border-left: 1px solid var(--color-line);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--gap-lg);
}

/* 64px frame holding a 54px glyph (52313:10389). The padding reproduces the
   frame's 5px inset so the artwork keeps its designed size inside the box. */
.contact-card__icon {
  width: 64px;
  height: 64px;
  padding: 5px;
  object-fit: contain;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-2xs);
}

.contact-card__label {
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* Figma leaves the email as flat text; both are links here so the pair behaves
   the same and matches the header and footer treatment. */
.contact-card__value {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  overflow-wrap: anywhere;
}
.contact-card__value:hover { text-decoration: underline; }

/* The 428 frame turns each cell into an icon-beside-text row and stacks the
   pair, so the divider becomes horizontal (52314:15948). */
@media (max-width: 767px) {
  .contact-band__inner { grid-template-columns: 1fr; }
  /* 52314:15941 is `pad 32/0 gap 32` — --gap-lg is the token that still reads
     32 down here; --gap-md drops to 24 at this breakpoint. */
  .contact-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-lg);
    padding: var(--gap-lg) 0;
  }
  .contact-card + .contact-card {
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }
  .contact-card__icon {
    width: 48px;
    height: 48px;
    padding: 4px;
  }
  .contact-card__body { flex: 1; }
}

/* --------------------------------------------------------------------------
   Form card — Figma 52313:10410 / 52314:15964
   A 1000px card on the band colour, centred in the 1300 grid.
   -------------------------------------------------------------------------- */
.contact-form-card {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-2xl);
  background: var(--color-band);
}

.contact-form-card__intro {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
}

@media (max-width: 767px) {
  /* 52314:15964 runs 24 of padding and gap where --gap-2xl would give 40 */
  .contact-form-card {
    gap: var(--gap-xs);
    padding: var(--gap-sm);
  }
}

/* --------------------------------------------------------------------------
   Form — Figma 52313:10412 / 52314:15966

   Everything below is written to survive Contact Form 7, which wraps each
   control in `<span class="wpcf7-form-control-wrap">` and adds its own classes
   to the control itself. The layout lives on the field wrapper, never on the
   control's parent, so the extra span changes nothing.
   -------------------------------------------------------------------------- */
.contact-form,
.wpcf7-form
{
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

/* Name/email sit two-up at 1440, stacked on the 428 frame. Figma spaces row 1
   by 14 and row 2 by 16 — the same pair of columns twice, so this uses 16 for
   both rather than reproducing a 2px inconsistency. */
.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xs);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.contact-form__label {
  font-size: var(--fs-body-md);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* CF7's wrap is an inline span by default, which would collapse the control to
   its intrinsic width — this is what lets the input still fill the field. */
.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  /* Block, not the default inline-block: inside the CF7 wrapper span these sit
     on a text baseline, and the descender space under it added 6px below the
     textarea that the frame doesn't have. */
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-field-line);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

/* 56px tall = 14 + 24 + 14 + the two borders, so the height comes out of the
   padding rather than being pinned — CF7 controls inherit it the same way. */
.contact-form__input,
.contact-form__select { height: 56px; }

.contact-form__textarea {
  height: 140px;
  resize: vertical;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: var(--color-field-placeholder); }

.contact-form__input:hover,
.contact-form__select:hover,
.contact-form__textarea:hover { border-color: var(--color-field-placeholder); }

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* The frame draws the select as a plain field with a placeholder and no
   affordance. A native arrow would differ per browser, so it is suppressed and
   the site's own chevron is drawn instead — the same glyph the nav uses. */
.contact-form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("../img/icons/chevron-down-dark.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  cursor: pointer;
}
/* Until something is chosen the select shows the placeholder colour */
.contact-form__select:has(option[value=""]:checked) {
  color: var(--color-field-placeholder);
}

.contact-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--gap-2xs);
}

@media (max-width: 767px) {
  /* 52314:15966 runs every field full width */
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__actions { margin-top: 0; }
}

/* -- Contact Form 7 states ------------------------------------------------ */
/* CF7 injects these; they have no counterpart in the Figma frame, so they are
   styled to the design system rather than left at the plugin's defaults. */
.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--gap-2xs);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-error);
}
.contact-form .wpcf7-not-valid { border-color: var(--color-error); }

.contact-form .wpcf7-response-output {
  margin: var(--gap-xs) 0 0;
  padding: 14px 16px;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  background: var(--color-bg);
  border: 1px solid var(--color-field-line);
  border-left-width: 4px;
}
/* CF7 puts the state class on the form; the static preview does the same, so
   both spellings are matched. */
.contact-form.invalid .wpcf7-response-output,
.contact-form.unaccepted .wpcf7-response-output,
.contact-form.failed .wpcf7-response-output,
.contact-form.aborted .wpcf7-response-output { border-left-color: var(--color-error); }
.contact-form.sent .wpcf7-response-output { border-left-color: var(--color-primary); }

/* The spinner sits beside the button rather than pushing it around */
.contact-form .wpcf7-spinner { margin: 0 0 0 var(--gap-2xs); }

/* CF7 adds a screen-reader-only region of its own; keep it out of the layout */
.contact-form .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* --------------------------------------------------------------------------
   Map — Figma 52313:10440 / 52314:15996
   The frame holds a flat image; this is a live embed of the Welshpool address.
   -------------------------------------------------------------------------- */
.contact-map {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

@media (max-width: 1023px) {
  .contact-map { height: 460px; }
}
@media (max-width: 767px) {
  .contact-map { height: 400px; }
}

/* --------------------------------------------------------------------------
   Document band — Figma 52327:8827 / 52327:9468
   Full-bleed band with a hairline on the top edge only — the node's
   individualStrokeWeights are {top:1, right:0, bottom:0, left:0}, the same
   as the contact band.
   -------------------------------------------------------------------------- */
.legal {
  padding-block: var(--section-py);
  background: var(--color-band);
  border-top: 1px solid var(--color-line);
}

/* 980 centred on the artboard rather than the 1300 grid, which at 1440 works
   out to the same 230px inset either way. */
.legal__doc {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl);
}

.legal__intro,
.legal__body {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* 40/46 at 1440 and 28/32 on the 428 frame — exactly the shared h3 scale.
   Figma sets the numbers and headings in caps but leaves section 7's
   parenthetical in sentence case, so the case is in the copy, not a
   text-transform. */
.legal__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  /* 40/46 and 28/32 are both 1.15 — the heading line-height, not the tight one
     the other h3-scale headings on the site use. */
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
  /* Figma indents the marker by 1.5em of the 18px body */
  padding-left: 1.5em;
  list-style: disc;
}
.legal__list li { list-style: inherit; }

.legal__list strong { font-weight: 700; }

.legal a {
  color: var(--color-primary);
  overflow-wrap: anywhere;
}
.legal a:hover { text-decoration: underline; }

/* The 428 frame tightens every rhythm: 48 between sections where the desktop
   uses 64, and 16 between a heading and its body where the desktop uses 24 —
   neither of which the tokens give at this breakpoint. */
@media (max-width: 767px) {
  .legal__doc { gap: 48px; }
  .legal__section { gap: var(--gap-xs); }
  br.mhide {
    display: none;
  }
}

.pagesec {
  padding-block: var(--section-py);
  background: var(--color-band);
}
.pagewrp {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
}
.defaultcnt {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
}
.defaultcnt p {
  margin-bottom: 24px;
}

.defaultcnt h2 {
  font-size: var(--fs-h3);
  margin: 50px 0 24px;
}

.defaultcnt h3{
  font-size: var(--fs-h4);
  margin: 40px 0 24px;
}

.defaultcnt h4{
  font-size: var(--fs-h5);
  margin: 30px 0 24px;
}

.defaultcnt h5,
.defaultcnt h6
{
  font-size: var(--fs-h6);
  margin: 30px 0 24px;
}

.defaultcnt h2,
.defaultcnt h3,
.defaultcnt h4,
.defaultcnt h5,
.defaultcnt h6
{
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.defaultcnt ul {
    padding-left: 1.5em;
    list-style: disc;
    margin-bottom: 24px;
}
.defaultcnt ol {
    padding-left: 1.5em;
    list-style: auto;
    margin-bottom: 24px;
}
.defaultcnt ol li:not(:last-child) {
    margin-bottom: 8px;
}
.defaultcnt ul li:not(:last-child) {
    margin-bottom: 8px;
}
.defaultcnt a {
  color: var(--color-primary);
  overflow-wrap: anywhere;
}
.defaultcnt a:hover {
  color: #c81f28;
}
.defaultcnt .wp-block-image {
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  line-height: 0;
}

.defaultcnt .wp-block-image img{
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.errorwrp {
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.errorwrp img {
  max-width: 500px;
  margin-bottom: 20px;
  width: 100%;
}
.erromsg {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--color-primary-tint);
  opacity: 0.8;
  text-align: center;
}
.errorwrp .btn {
  margin-top: 30px;
}
.errorwrp .page-hero__title {
  text-align: center;
}
.wc-quote-empty .wc-quote-more,
.wc-quote-actions .btn-submit
{
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-2xs);
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: var(--fs-body-md);
    font-weight: 600;
    line-height: var(--lh-body);
    text-align: center;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-radius: revert-layer;
    background: var(--color-primary);
    color: var(--color-text-invert);
    box-shadow: var(--shadow-btn);
    text-transform: capitalize;
    color: #fff;
}
.wc-quote-empty .wc-quote-more:hover,
.wc-quote-actions .btn-submit:hover {
    background: #c81f28;
}
.slider-nav:has(button:nth-child(1):disabled):has(button:nth-child(2):disabled) {
  display: none;
}
form#wc-quote-form input {
    font-family: 'Manrope';
    color: var(--color-ink);
}
form#wc-quote-form input::placeholder,
form#wc-quote-form textarea::placeholder
{
    font-family: 'Manrope';
    color: var(--color-ink);
}
.wc-quote-header .wc-quote-badge {
    background: #e22731;
}
.page-template-template-project .projects .btn {
    display: none;
}
    
}

.spec-panel__card table {
	width: 100%;
	max-width: 800px;
	border-collapse: collapse;
	margin: 20px 0;
	background-color: #ffffff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.spec-panel__card th, .spec-panel__card td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}
.spec-panel__card th {
	background-color: var(--color-navy);
	color: #ffffff;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}
.spec-panel__card tr:nth-child(even) {
	background-color: #f8f9fa;
}
.spec-panel__card td:first-child {
	font-weight: bold;
	color: #333;
	width: 30%;
}
